gdb: support for eBPF
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2 Jose E. Marchesi <jose.marchesi@oracle.com>
3
4 * configure.tgt: Add entry for bpf-*-*.
5 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6 (ALLDEPFILES): Add bpf-tdep.c.
7 * bpf-tdep.c: New file.
8 * MAINTAINERS: Add bpf target and maintainer.
9 * NEWS: Mention the support for the new target.
10
11 2020-08-04 Tom de Vries <tdevries@suse.de>
12
13 PR symtab/23270
14 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
15 Error.
16
17 2020-08-03 John Baldwin <jhb@FreeBSD.org>
18
19 * syscalls/freebsd.xml: Regenerate.
20
21 2020-08-03 John Baldwin <jhb@FreeBSD.org>
22
23 * syscalls/update-freebsd.sh: Fix usage and year range.
24
25 2020-08-03 Tom de Vries <tdevries@suse.de>
26
27 PR symtab/26333
28 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
29 DW_LNE_lo_user/DW_LNE_hi_user range.
30
31 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
32
33 PR ada/26318
34 * ada-lang.c (ada_modulus): Return 0 if property is not of const
35 kind.
36
37 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
38
39 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
40
41 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
42
43 * breakpoint.c (set_breakpoint_condition): Update the condition
44 expressions after checking that the input condition string parses
45 successfully and does not contain junk at the end.
46
47 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
48
49 * breakpoint.c (set_breakpoint_condition): Update the
50 condition string after parsing the new condition successfully.
51
52 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
53
54 * proc-api.c (_STRUCTURED_PROC): Don't define.
55 * proc-events.c: Likewise.
56 * proc-flags.c: Likewise.
57 * proc-why.c: Likewise.
58 * procfs.c: Likewise.
59
60 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
61 * configure, config.in: Regenerate.
62
63 2020-07-30 Tom de Vries <tdevries@suse.de>
64
65 PR build/26320
66 * ui-style.h (struct ui_file_style::color): Wrap m_value and
67 m_red/m_green/m_blue in a union.
68
69 2020-07-29 Tom de Vries <tdevries@suse.de>
70
71 PR tdep/26280
72 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
73
74 2020-07-28 Tom Tromey <tromey@adacore.com>
75
76 PR symtab/26270:
77 * symtab.h (find_pc_partial_function_sym): Declare.
78 * cli/cli-cmds.c (disassemble_command): Use
79 find_pc_partial_function_sym. Check asm_demangle.
80 * blockframe.c (cache_pc_function_sym): New global.
81 (cache_pc_function_name): Remove.
82 (clear_pc_function_cache): Update.
83 (find_pc_partial_function_sym): New function, from
84 find_pc_partial_function.
85 (find_pc_partial_function): Rewrite using
86 find_pc_partial_function_sym.
87
88 2020-07-28 Tom Tromey <tromey@adacore.com>
89
90 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
91 help. Add usage.
92
93 2020-07-28 Tom Tromey <tromey@adacore.com>
94
95 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
96 <DW_OP_GNU_variable_value>: Cast to address type.
97
98 2020-07-28 Kamil Rytarowski <n54@gmx.com>
99
100 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
101 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
102 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
103 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
104 (nbsd_get_siginfo_type): New.
105 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
106 (_initialize_nbsd_tdep): New.
107
108 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
109
110 PR binutils/26301
111 * configure: Regenerated.
112
113 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
114
115 PR binutils/26301
116 * configure: Regenerated.
117
118 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
119
120 * python/py-frame.c: Remove 'user-regs.h' include.
121 (frapy_read_register): Rewrite to make use of
122 gdbpy_parse_register_id.
123 * python/py-registers.c (gdbpy_parse_register_id): New function,
124 moved here from python/py-unwind.c. Updated the return type, and
125 also accepts register descriptor objects.
126 * python/py-unwind.c: Remove 'user-regs.h' include.
127 (pyuw_parse_register_id): Moved to python/py-registers.c.
128 (unwind_infopy_add_saved_register): Update to use
129 gdbpy_parse_register_id.
130 (pending_framepy_read_register): Likewise.
131 * python/python-internal.h (gdbpy_parse_register_id): Declare.
132
133 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
134
135 * python/py-registers.c: Add 'user-regs.h' include.
136 (register_descriptor_iter_find): New function.
137 (register_descriptor_iterator_object_methods): New static global
138 methods array.
139 (register_descriptor_iterator_object_type): Add pointer to methods
140 array.
141
142 2020-07-27 John Baldwin <jhb@FreeBSD.org>
143
144 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
145 for all architectures on FreeBSD 11.3 and later.
146
147 2020-07-27 Tom Tromey <tromey@adacore.com>
148
149 * gcore.h (load_corefile): Don't declare.
150
151 2020-07-27 Tom de Vries <tdevries@suse.de>
152
153 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
154 * config.in: Regenerate.
155 * configure: Regenerate.
156
157 2020-07-26 Eli Zaretskii <eliz@gnu.org>
158
159 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
160 ws2tcpip.h. When checking whether socklen_t type is defined, use
161 ws2tcpip.h if it is available and sys/socket.h isn't.
162 * configure: Regenerate.
163 * config.in: Regenerate.
164
165 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
166
167 PR fortran/23051
168 PR fortran/26139
169 * valops.c (value_ind): Pass address to
170 readjust_indirect_value_type.
171 * value.c (readjust_indirect_value_type): Make parameter
172 non-const, and add extra address parameter. Resolve original type
173 before using it.
174 * value.h (readjust_indirect_value_type): Update function
175 signature and comment.
176
177 2020-07-25 Tom de Vries <tdevries@suse.de>
178
179 PR symtab/26243
180 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
181 entries.
182
183 2020-07-24 Aaron Merey <amerey@redhat.com>
184
185 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
186 * configure: Rebuild.
187
188 2020-07-23 Kevin Buettner <kevinb@redhat.com>
189
190 PR corefiles/26294
191 * corelow.c (_initialize_corelow): Add period to help text
192 for "maintenance print core-file-backed-mappings".
193
194 2020-07-23 Pedro Alves <pedro@palves.net>
195
196 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
197 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
198 meanwhile.
199 * frame.c (frame_cache_generation, get_frame_cache_generation):
200 New.
201 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
202 (get_prev_frame_if_no_cycle): On exception, don't touch
203 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
204 * frame.h (get_frame_cache_generation): Declare.
205
206 2020-07-23 Tom de Vries <tdevries@suse.de>
207
208 PR tui/26282
209 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
210 New default constructor.
211
212 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
213
214 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
215 exclude non-statement entries.
216
217 2020-07-22 Kevin Buettner <kevinb@redhat.com>
218
219 * NEWS (New commands): Mention new command
220 "maintenance print core-file-backed-mappings".
221
222 2020-07-22 Kevin Buettner <kevinb@redhat.com>
223
224 * corelow.c (gdbcmd.h): Include.
225 (core_target::info_proc_mappings): New method.
226 (get_current_core_target): New function.
227 (maintenance_print_core_file_backed_mappings): New function.
228 (_initialize_corelow): Add core-file-backed-mappings to
229 "maint print" commands.
230
231 2020-07-22 Kevin Buettner <kevinb@redhat.com>
232
233 * linux-tdep.c (dump_note_entry_p): New function.
234 (linux_dump_mapping_p_ftype): New typedef.
235 (linux_find_memory_regions_full): Add new parameter,
236 should_dump_mapping_p.
237 (linux_find_memory_regions): Adjust call to
238 linux_find_memory_regions_full.
239 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
240 call to linux_find_memory_regions_full.
241
242 2020-07-22 Kevin Buettner <kevinb@redhat.com>
243
244 * corelow.c (solist.h, unordered_map): Include.
245 (class core_target): Add field m_core_file_mappings and
246 method build_file_mappings.
247 (core_target::core_target): Call build_file_mappings.
248 (core_target::~core_target): Free memory associated with
249 m_core_file_mappings.
250 (core_target::build_file_mappings): New method.
251 (core_target::xfer_partial): Use m_core_file_mappings
252 for memory transfers.
253 * linux-tdep.c (linux_read_core_file_mappings): New
254 function.
255 (linux_core_info_proc_mappings): Rewrite to use
256 linux_read_core_file_mappings.
257 (linux_init_abi): Register linux_read_core_file_mappings.
258
259 2020-07-22 Kevin Buettner <kevinb@redhat.com>
260
261 * arch-utils.c (default_read_core_file_mappings): New function.
262 * arch-utils.c (default_read_core_file_mappings): Declare.
263 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
264 * gdbarch.h, gdbarch.c: Regenerate.
265
266 2020-07-22 Kevin Buettner <kevinb@redhat.com>
267
268 PR corefiles/25631
269 * corelow.c (core_target:xfer_partial): Revise
270 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
271 case after first checking the stratum beneath the core
272 target.
273 (has_all_memory): Return true.
274 * target.c (raw_memory_xfer_partial): Revise comment
275 regarding use of has_all_memory.
276
277 2020-07-22 Kevin Buettner <kevinb@redhat.com>
278
279 * exec.h (section_table_xfer_memory): Revise declaration,
280 replacing section name parameter with an optional callback
281 predicate.
282 * exec.c (section_table_xfer_memory): Likewise.
283 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
284 of section_table_xfer_memory.
285
286 2020-07-22 Tom Tromey <tromey@adacore.com>
287
288 * mi/mi-cmd-stack.c (list_args_or_locals): Use
289 lookup_symbol_search_name.
290
291 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
292
293 * python/py-registers.c (gdbpy_register_object_data_init): Remove
294 redundant local variable.
295 (gdbpy_get_register_descriptor): Extract descriptor vector as a
296 reference, not pointer, update code accordingly.
297
298 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
299 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
300
301 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
302 * jit.c (jit_breakpoint_re_set_internal): Use the
303 `skip_jit_symbol_lookup` field.
304
305 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
306 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
307
308 * jit.c (jit_read_descriptor): Define the descriptor address once,
309 use twice.
310 (jit_breakpoint_deleted): Move the declaration of the loop variable
311 `iter` into the loop header.
312 (jit_breakpoint_re_set_internal): Move the declaration of the local
313 variable `objf_data` to the first point of definition.
314 (jit_event_handler): Move the declaration of local variables
315 `code_entry`, `entry_addr`, and `objf` to their first point of use.
316 Rename `objf` to `jited`.
317
318 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
319
320 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
321 Remove.
322 * jit.c (get_jiter_objfile_data): Update.
323
324 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
325 Simon Marchi <simon.marchi@polymtl.ca>
326
327 * jit.c (struct jit_program_space_data): Remove.
328 (jit_program_space_key): Remove.
329 (jiter_objfile_data::~jiter_objfile_data): Remove program space
330 stuff.
331 (get_jit_program_space_data): Remove.
332 (jit_breakpoint_deleted): Iterate on all of the program space's
333 objfiles.
334 (jit_inferior_init): Likewise.
335 (jit_breakpoint_re_set_internal): Likewise. Also change return
336 type to void.
337 (jit_breakpoint_re_set): Pass current_program_space to
338 jit_breakpoint_re_set_internal.
339
340 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
341
342 * jit.h (struct jiter_objfile_data) <cached_code_address,
343 jit_breakpoint>: Move to here from ...
344 * jit.c (jit_program_space_data): ... here.
345 (jiter_objfile_data::~jiter_objfile_data): Update.
346 (jit_breakpoint_deleted): Update.
347 (jit_breakpoint_re_set_internal): Update.
348
349 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
350
351 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
352 checks.
353 (jit_read_descriptor): Remove NULL check.
354 (jit_event_handler): Add an assertion.
355
356 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
357
358 * jit.h (struct jit_objfile_data): Split into...
359 (struct jiter_objfile_data): ... this ...
360 (struct jited_objfile_data): ... and this.
361 * objfiles.h (struct objfile) <jit_data>: Remove.
362 <jiter_data, jited_data>: New fields.
363 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
364 (jiter_objfile_data::~jiter_objfile_data): ... this.
365 (get_jit_objfile_data): Rename to ...
366 (get_jiter_objfile_data): ... this.
367 (add_objfile_entry): Update.
368 (jit_read_descriptor): Use get_jiter_objfile_data.
369 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
370 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
371 (jit_inferior_exit_hook): Use objfile's jited_data field.
372
373 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
374
375 * jit.h: Forward-declare `struct minimal_symbol`.
376 (struct jit_objfile_data): Migrate to here from jit.c; also add a
377 constructor, destructor, and an objfile* field.
378 * jit.c (jit_objfile_data): Remove.
379 (struct jit_objfile_data): Migrate from here to jit.h.
380 (jit_objfile_data::~jit_objfile_data): New destructor
381 implementation with code moved from free_objfile_data.
382 (free_objfile_data): Delete.
383 (get_jit_objfile_data): Update to use the jit_data field of objfile.
384 (jit_find_objf_with_entry_addr): Ditto.
385 (jit_inferior_exit_hook): Ditto.
386 (_initialize_jit): Remove the call to
387 register_objfile_data_with_cleanup.
388 * objfiles.h (struct objfile) <jit_data>: New field.
389
390 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
391
392 * jit.h: Forward-declare `struct objfile`.
393 (jit_event_handler): Add a second parameter, the JITer objfile.
394 * jit.c (jit_read_descriptor): Change the signature to take the
395 JITer objfile as an argument instead of the jit_program_space_data.
396 (jit_inferior_init): Update the call to jit_read_descriptor.
397 (jit_event_handler): Use the new JITer objfile argument when calling
398 jit_read_descriptor.
399 * breakpoint.c (handle_jit_event): Update the call to
400 jit_event_handler to pass the JITer objfile.
401
402 2020-07-21 John Baldwin <jhb@FreeBSD.org>
403
404 * gdbarch.c: Regenerate.
405 * gdbarch.h: Regenerate.
406 * gdbarch.sh (handle_segmentation_fault): Remove method.
407 * infrun.c (handle_segmentation_fault): Remove.
408 (print_signal_received_reason): Remove call to
409 handle_segmentation_fault.
410
411 2020-07-21 John Baldwin <jhb@FreeBSD.org>
412
413 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
414 Rename to sparc64_linux_report_signal_info and add siggnal
415 argument.
416 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
417 instead of sparc64_linux_handle_segmentation_fault.
418
419 2020-07-21 John Baldwin <jhb@FreeBSD.org>
420
421 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
422 i386_linux_report_signal_info instead of
423 i386_linux_handle_segmentation_fault.
424 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
425 to i386_linux_report_signal_info and add siggnal argument.
426 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
427 of i386_linux_handle_segmentation_fault.
428 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
429 to i386_linux_report_signal_info and add siggnal argument.
430
431 2020-07-21 John Baldwin <jhb@FreeBSD.org>
432
433 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
434 hook if present.
435
436 2020-07-21 John Baldwin <jhb@FreeBSD.org>
437
438 * gdbarch.c: Regenerate.
439 * gdbarch.h: Regenerate.
440 * gdbarch.sh (report_signal_info): New method.
441 * infrun.c (print_signal_received_reason): Invoke gdbarch
442 report_signal_info hook if present.
443
444 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
445
446 * python/py-registers.c : Add 'unordered_map' include.
447 (gdbpy_new_reggroup): Renamed to...
448 (gdbpy_get_reggroup): ...this. Update to only create register
449 group descriptors when needed.
450 (gdbpy_reggroup_iter_next): Update.
451
452 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
453
454 * python/py-registers.c (gdbpy_register_object_data): New static
455 global.
456 (gdbpy_register_object_data_init): New function.
457 (gdbpy_new_register_descriptor): Renamed to...
458 (gdbpy_get_register_descriptor): ...this, and update to reuse
459 existing register descriptors where possible.
460 (gdbpy_register_descriptor_iter_next): Update.
461 (gdbpy_initialize_registers): Register new gdbarch data.
462
463 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
464
465 * linux-nat.c (stopped_pids): Make static.
466
467 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
468
469 PR ada/26235
470 * gdbtypes.c (ada_discrete_type_low_bound,
471 ada_discrete_type_high_bound): Handle undefined bounds.
472
473 2020-07-21 Kamil Rytarowski <n54@gmx.com>
474
475 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
476 declaration.
477 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
478 function.
479
480 2020-07-20 John Baldwin <jhb@FreeBSD.org>
481
482 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
483 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
484 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
485 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
486 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
487 method.
488
489 2020-07-20 Ludovic Courtès <ludo@gnu.org>
490
491 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
492 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
493 which are deprecated in Guile 3.0.
494 * configure.ac (try_guile_versions): Add "guile-3.0".
495 * configure (try_guile_versions): Regenerate.
496 * NEWS: Update entry.
497
498 2020-07-20 Ludovic Courtès <ludo@gnu.org>
499 Doug Evans <dje@google.com>
500
501 PR gdb/21104
502 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
503 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
504 USING_GUILE_BEFORE_2_2.
505 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
506 Change type to 'scm_t_port_type *'.
507 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
508 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
509 parameter and honor it. Update callers.
510 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
511 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
512 functions.
513 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
514 USING_GUILE_BEFORE_2_2.
515 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
516 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
517 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
518 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
519 and 'SCM_PORT_TYPE'.
520 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
521 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
522 (gdbscm_memory_port_read, gdbscm_memory_port_write)
523 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
524 [!USING_GUILE_BEFORE_2_2]: New functions.
525 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
526 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
527 'gdbscm_memory_port_read'.
528 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
529 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
530 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
531 function.
532 (ioscm_init_memory_port): Remove.
533 (ioscm_init_memory_port_stream): New function
534 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
535 function.
536 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
537 Return scm_from_uint (0).
538 (gdbscm_set_memory_port_read_buffer_size_x)
539 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
540 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
541 Return scm_from_uint (0).
542 (gdbscm_set_memory_port_write_buffer_size_x)
543 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
544 * configure.ac (try_guile_versions): Add "guile-2.2".
545 * configure: Regenerate.
546 * NEWS: Add entry.
547
548 2020-07-18 Tom Tromey <tom@tromey.com>
549
550 * linux-nat.c (linux_multi_process): Remove.
551 (linux_nat_target::supports_multi_process): Return true.
552
553 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
554
555 * arch/riscv.c (riscv_tdesc_cache): Change map type.
556 (riscv_lookup_target_description): Return pointer out of
557 unique_ptr.
558 * target-descriptions.c (allocate_target_description): Add
559 comment.
560 (target_desc_deleter::operator()): Likewise.
561 * target-descriptions.h (struct target_desc_deleter): Moved to
562 gdbsupport/tdesc.h.
563 (target_desc_up): Likewise.
564
565 2020-07-17 Tom Tromey <tromey@adacore.com>
566
567 * linux-nat.c (linux_nat_target::supports_non_stop)
568 (linux_nat_target::always_non_stop_p): Use "true".
569 (linux_nat_target::supports_disable_randomization): Use "true" and
570 "false".
571
572 2020-07-16 Caroline Tice <cmtice@google.com>
573
574 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
575 (RNGLIST_HEADER_SIZE64): New constant definition.
576 (struct dwop_section_names): Add rnglists_dwo.
577 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
578 (struct loclist_header): Rename to 'loclists_rnglists_header'.
579 (struct dwo_sections): Add rnglists field.
580 (read_attribut_reprocess): Add tag parameter.
581 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
582 (cu_debug_rnglists_section): New function (decl & definition).
583 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
584 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
585 die whose range is being checked; get rnglist section from
586 cu_debug_rnglists_section, to get from either objfile or dwo file as
587 appropriate. Add cases for DW_RLE_base_addressx,
588 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
589 the base address to DW_RLE_offset_pairs (not to all ranges), moving
590 test inside if-condition and updating complaint message.
591 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
592 dwarf2_rnglists_process.
593 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
594 dwarf2_ranges_process.
595 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
596 need_ranges_base and update comment appropriately. Also pass die tag
597 to dwarf2_ranges_read.
598 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
599 need_ranges_base and update comment appropriately. Also pass die tag
600 to dwarf2_ranges_process.
601 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
602 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
603 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
604 need_ranges_base and update comment appropriately. Also pass die tag
605 to read_attribute_reprocess and dwarf2_ranges_read.
606 (read_loclist_header): Rename function to read_loclists_rnglists_header,
607 and update function comment appropriately.
608 (read_loclist_index): Call read_loclists_rnglists_header instead of
609 read_loclist_header.
610 (read_rnglist_index): New function.
611 (read_attribute_reprocess): Add tag parameter. Add code for
612 DW_FORM_rnglistx, passing tag to read_rnglist_index.
613 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
614
615 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
616
617 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
618 being resolved.
619
620 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
621
622 * arch-utils.c (show_architecture): Update formatting of messages.
623
624 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
625
626 * gdbtypes.h (struct type) <bounds>: Handle array and string
627 types.
628 * ada-lang.c (assign_aggregate): Use type::bounds on
629 array/string type.
630 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
631 * c-varobj.c (c_number_of_children): Likewise.
632 (c_describe_child): Likewise.
633 * eval.c (evaluate_subexp_for_sizeof): Likewise.
634 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
635 (f_type_print_base): Likewise.
636 * f-valprint.c (f77_array_offset_tbl): Likewise.
637 (f77_get_upperbound): Likewise.
638 (f77_print_array_1): Likewise.
639 * guile/scm-type.c (gdbscm_type_range): Likewise.
640 * m2-typeprint.c (m2_array): Likewise.
641 (m2_is_long_set_of_type): Likewise.
642 * m2-valprint.c (get_long_set_bounds): Likewise.
643 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
644 * python/py-type.c (typy_range): Likewise.
645 * rust-lang.c (rust_internal_print_type): Likewise.
646 * type-stack.c (type_stack::follow_types): Likewise.
647 * valarith.c (value_subscripted_rvalue): Likewise.
648 * valops.c (value_cast): Likewise.
649
650 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
651
652 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
653 callers to use the equivalent accessor methods.
654
655 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
656
657 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
658 (struct type) <bit_stride>: New method.
659 (TYPE_BIT_STRIDE): Remove.
660 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
661
662 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
663
664 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
665 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
666 callers to use the equivalent accessor methods instead.
667
668 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
669
670 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
671 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
672 callers to use the equivalent accessor methods instead.
673
674 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
675
676 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
677 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
678 to use dynamic_prop::kind.
679
680 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
681
682 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
683 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
684 to get the bound property's kind and check against
685 PROP_UNDEFINED.
686
687 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
688
689 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
690 all callers to use type::range_bounds followed by
691 dynamic_prop::{low,high}.
692
693 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
694
695 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
696 const_val, set_const_val, baton, set_locexpr, set_loclist,
697 set_addr_offset, variant_parts, set_variant_parts,
698 original_type, set_original_type>: New methods.
699 <kind>: Rename to...
700 <m_kind>: ... this. Update all users to use the new methods
701 instead.
702 <data>: Rename to...
703 <m_data>: ... this. Update all users to use the new methods
704 instead.
705
706 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
707
708 * gdbtypes.c (get_discrete_bounds): Return failure if
709 the range type's bounds are not both defined and constant
710 values.
711 (get_array_bounds): Update comment. Remove undefined bound check.
712
713 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
714
715 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
716 the type::bounds method directly.
717
718 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
719
720 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
721 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
722 are used to set the range type's bounds to use set_bounds.
723
724 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
725
726 * exec.c (_initialize_exec): Update exec-file-mismatch help.
727
728 2020-07-10 Pedro Alves <pedro@palves.net>
729
730 * gdbthread.h (inferior_ref): Define.
731 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
732 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
733 * thread.c
734 (scoped_restore_current_thread::restore):
735 Adjust to gdb::ref_ptr.
736 (scoped_restore_current_thread::~scoped_restore_current_thread):
737 Remove manual decref handling.
738 (scoped_restore_current_thread::scoped_restore_current_thread):
739 Adjust to use
740 inferior_ref::new_reference/thread_info_ref::new_reference.
741 Incref the thread before calling get_frame_id instead of after.
742 Let TARGET_CLOSE_ERROR propagate.
743
744 2020-07-10 Pedro Alves <pedro@palves.net>
745
746 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
747 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
748 NOT_AVAILABLE_ERROR.
749 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
750 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
751
752 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
753 Pedro Alves <pedro@palves.net>
754
755 PR gdb/26199
756 * infrun.c (threads_are_resumed_pending_p): Delete.
757 (do_target_wait): Remove threads_are_executing and
758 threads_are_resumed_pending_p checks from the inferior_matches
759 lambda. Update comments.
760
761 2020-07-10 Pedro Alves <pedro@palves.net>
762
763 PR gdb/26199
764 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
765 executing threads.
766
767 2020-07-10 Pedro Alves <pedro@palves.net>
768
769 PR gdb/26199
770 * infrun.c (handle_no_resumed): Handle multiple targets.
771
772 2020-07-10 Pedro Alves <pedro@palves.net>
773
774 PR gdb/26199
775 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
776 target_is_async_p.
777
778 2020-07-10 Pedro Alves <pedro@palves.net>
779
780 PR gdb/26199
781 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
782 threads, not all threads.
783
784 2020-07-10 Pedro Alves <pedro@palves.net>
785
786 PR gdb/26199
787 * remote.c (remote_target::open_1): Pass remote target pointer as
788 data to create_async_event_handler.
789 (remote_async_inferior_event_handler): Mark async event handler
790 before returning if the remote target still has either pending
791 events or unacknowledged notifications.
792
793 2020-07-10 John Baldwin <jhb@FreeBSD.org>
794
795 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
796 declaration.
797 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
798 function.
799
800 2020-07-09 John Baldwin <jhb@FreeBSD.org>
801
802 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
803 inferior_ptid.
804
805 2020-07-09 John Baldwin <jhb@FreeBSD.org>
806
807 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
808 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
809 AT_FREEBSD_PS_STRINGS.
810
811 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
812
813 * auto-load.c (auto_load_objfile_script_1): Convert drive part
814 of debugfile path on Windows.
815
816 2020-07-08 John Baldwin <jhb@FreeBSD.org>
817
818 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
819 argument to 'data'.
820
821 2020-07-08 Tom Tromey <tromey@adacore.com>
822
823 * ada-lang.c (ada_exception_message_1): Use read_memory.
824
825 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
826
827 PR python/22748
828 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
829 special handling for inline frames.
830 * findvar.c (value_of_register_lazy): Skip inline frames when
831 creating lazy register values.
832 * frame.c (frame_id_computed_p): Delete definition.
833 * frame.h (frame_id_computed_p): Delete declaration.
834
835 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
836
837 * NEWS: Mention additions to Python API.
838 * python/py-arch.c (archpy_register_groups): New function.
839 (arch_object_methods): Add 'register_groups' method.
840 * python/py-registers.c (reggroup_iterator_object): New struct.
841 (reggroup_object): New struct.
842 (gdbpy_new_reggroup): New function.
843 (gdbpy_reggroup_to_string): New function.
844 (gdbpy_reggroup_name): New function.
845 (gdbpy_reggroup_iter): New function.
846 (gdbpy_reggroup_iter_next): New function.
847 (gdbpy_new_reggroup_iterator): New function
848 (gdbpy_initialize_registers): Register new types.
849 (reggroup_iterator_object_type): Define new Python type.
850 (gdbpy_reggroup_getset): New static global.
851 (reggroup_object_type): Define new Python type.
852 * python/python-internal.h
853
854 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
855
856 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
857 * python/py-arch.c (archpy_registers): New function.
858 (arch_object_methods): Add 'registers' method.
859 * python/py-registers.c: New file.
860 * python/python-internal.h
861 (gdbpy_new_register_descriptor_iterator): Declare.
862 (gdbpy_initialize_registers): Declare.
863 * python/python.c (do_start_initialization): Call
864 gdbpy_initialize_registers.
865 * NEWS: Mention additions to the Python API.
866
867 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
868
869 * NEWS: Mention new Python API method.
870 * python/py-unwind.c (pending_framepy_architecture): New function.
871 (pending_frame_object_methods): Add architecture method.
872
873 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
874
875 * gdbarch.c: Regenerate.
876 * gdbarch.h: Regenerate.
877 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
878 (gdbarch_data): Use internal_error for the case where
879 deprecated_set_gdbarch_data was originally needed.
880 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
881 and use passed in obstack.
882 (libunwind_frame_set_descr): Should no longer get back NULL from
883 gdbarch_data.
884 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
885 type.
886 * user-regs.c (user_regs_init): Update parameters, and use passed
887 in obstack.
888 (user_reg_add): Should no longer get back NULL from gdbarch_data.
889 (_initialize_user_regs): Register as a pre-init gdbarch data type.
890
891 2020-07-06 Tom de Vries <tdevries@suse.de>
892
893 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
894 End-Of-Sequence in lte_is_less_than.
895 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
896 "gdb: Don't reorder line table entries too much when sorting".
897
898 2020-07-06 Tom de Vries <tdevries@suse.de>
899
900 PR tui/26205
901 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
902
903 2020-07-05 Tom de Vries <tdevries@suse.de>
904
905 PR build/26187
906 * inferior.h (struct infcall_suspend_state_deleter): If available, use
907 std::uncaught_exceptions instead of deprecated
908 std::uncaught_exception.
909
910 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
911
912 * macroexp.h (macro_stringify): Return
913 gdb::unique_xmalloc_ptr<char>.
914 * macroexp.c (macro_stringify): Likewise.
915 * macrotab.c (fixup_definition): Update.
916
917 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
918
919 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
920 (lex_one_token): Update.
921 * macroexp.c (struct macro_buffer) <release>: Return
922 gdb::unique_xmalloc_ptr<char>.
923 (macro_stringify): Update.
924 (macro_expand): Update.
925 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
926 * macroexp.h (macro_expand_next): Likewise.
927
928 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
929
930 * macroexp.h (macro_lookup_ftype): Remove.
931 (macro_expand, macro_expand_once, macro_expand_next): Remove
932 lookup function parameters, add scope parameter.
933 * macroexp.c (scan, substitute_args, expand, maybe_expand,
934 macro_expand, macro_expand_once, macro_expand_next): Likewise.
935 * macroscope.h (standard_macro_lookup): Change parameter type
936 to macro_scope.
937 * macroscope.c (standard_macro_lookup): Likewise.
938 * c-exp.y (lex_one_token): Update.
939 * macrocmd.c (macro_expand_command): Likewise.
940 (macro_expand_once_command): Likewise.
941
942 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
943
944 * inf-loop.c (inferior_event_handler): Remove client_data param.
945 * inf-loop.h (inferior_event_handler): Likewise.
946 * infcmd.c (step_1): Adjust.
947 * infrun.c (proceed): Adjust.
948 (fetch_inferior_event): Remove client_data param.
949 (infrun_async_inferior_event_handler): Adjust.
950 * infrun.h (fetch_inferior_event): Remove `void *` param.
951 * linux-nat.c (handle_target_event): Adjust.
952 * record-btrace.c (record_btrace_handle_async_inferior_event):
953 Adjust.
954 * record-full.c (record_full_async_inferior_event_handler):
955 Adjust.
956 * remote.c (remote_async_inferior_event_handler): Adjust.
957
958 2020-07-01 Tom Tromey <tom@tromey.com>
959
960 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
961 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
962
963 2020-07-01 Tom Tromey <tom@tromey.com>
964
965 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
966 tui_gen_win_info.
967 (tui_win_info::make_window): Merge with
968 tui_gen_win_info::make_window.
969 (tui_win_info::make_visible): Move from tui_gen_win_info.
970 * tui/tui-win.c (tui_win_info::max_width): Move from
971 tui_gen_win_info.
972 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
973 type.
974 <window_factory>: Likewise.
975 * tui/tui-layout.c (tui_win_info::resize): Move from
976 tui_gen_win_info.
977 (make_standard_window): Change return type.
978 (get_locator_window, tui_get_window_by_name): Likewise.
979 (tui_layout_window::apply): Remove a cast.
980 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
981 (struct tui_win_info): Merge with tui_gen_win_info.
982 (struct tui_gen_win_info): Remove.
983
984 2020-07-01 Tom Tromey <tom@tromey.com>
985
986 * tui/tui-stack.h (struct tui_locator_window): Derive from
987 tui_win_info.
988 <do_scroll_horizontal, do_scroll_vertical>: New methods.
989 <can_box>: New method.
990
991 2020-07-01 Tom Tromey <tom@tromey.com>
992
993 * tui/tui-stack.h (struct tui_locator_window): Remove body.
994
995 2020-07-01 Tom Tromey <tom@tromey.com>
996
997 * tui/tui-regs.c (tui_data_window::display_registers_from)
998 (tui_data_window::display_registers_from)
999 (tui_data_window::first_data_item_displayed)
1000 (tui_data_window::delete_data_content_windows): Update.
1001 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1002 Remove.
1003 (tui_data_window::check_register_values): Update.
1004 (tui_data_item_window::rerender): Add parameters. Update.
1005 (tui_data_item_window::refresh_window): Remove.
1006 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1007 virtual.
1008 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1009 tui_gen_win_info.
1010 <refresh_window, max_height, min_height>: Remove.
1011 <rerender>: Add parameters.
1012 <x, y, visible>: New members.
1013 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1014 <m_item_width>: New member.
1015
1016 2020-07-01 Tom Tromey <tom@tromey.com>
1017
1018 * tui/tui-regs.c (tui_data_window::show_register_group)
1019 (tui_data_window::check_register_values): Update.
1020 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1021 from item_no.
1022
1023 2020-07-01 Tom Tromey <tom@tromey.com>
1024
1025 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1026 useless "if".
1027
1028 2020-07-01 Tom Tromey <tom@tromey.com>
1029
1030 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1031 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1032
1033 2020-07-01 Tom Tromey <tom@tromey.com>
1034
1035 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1036 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1037 (struct tui_line_or_address): Move from tui-data.h.
1038 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1039 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1040 (tui_cmd_window, tui_source_window_base, tui_source_window)
1041 (tui_disasm_window): Don't declare.
1042 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1043 to tui-winsource.h.
1044 (SINGLE_KEY): Move to tui-stack.c.
1045
1046 2020-07-01 Tom Tromey <tom@tromey.com>
1047
1048 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1049 std::string.
1050 * tui/tui-regs.c (class tab_expansion_file): New.
1051 (tab_expansion_file::write): New method.
1052 (tui_register_format): Change return type. Use
1053 tab_expansion_file.
1054 (tui_get_register, tui_data_window::display_registers_from)
1055 (tui_data_item_window::rerender): Update.
1056 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1057 * tui/tui-io.c (tui_expand_tabs): Remove.
1058
1059 2020-07-01 Tom Tromey <tom@tromey.com>
1060
1061 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1062
1063 2020-07-01 Fangrui Song <maskray@google.com>
1064
1065 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1066
1067 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1068
1069 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1070 forms for DW_AT_associated and DW_AT_allocated attributes,
1071 which is already checked in function attr_to_dynamic_prop.
1072
1073 2020-06-30 Tom Tromey <tromey@adacore.com>
1074
1075 * dwarf2/read.c (quirk_rust_enum): Correctly call
1076 alloc_rust_variant for default-less enum.
1077
1078 2020-06-30 Tom Tromey <tromey@adacore.com>
1079
1080 PR build/26183:
1081 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1082 gdb::to_string.
1083
1084 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1085
1086 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1087 * gdbarch.h: Re-generate.
1088
1089 2020-06-28 Tom Tromey <tom@tromey.com>
1090
1091 * command.h (cmd_types): Remove.
1092 (cmd_type): Don't declare.
1093 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1094 typedef.
1095 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1096 * cli/cli-decode.c (cmd_type): Remove.
1097
1098 2020-06-27 Pedro Alves <palves@redhat.com>
1099
1100 * fork-child.c (prefork_hook): Adjust.
1101 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1102 Delete.
1103 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1104 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1105 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1106 Remove declarations.
1107 (struct inferior) <set_tty, tty>: New methods.
1108 (struct inferior) <terminal>: Rename to ...
1109 (struct inferior) <m_terminal>: ... this and make private.
1110 * main.c (captured_main_1): Adjust.
1111 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1112 (mi_cmd_inferior_tty_show): Adjust.
1113 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1114 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1115
1116 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1117
1118 * configure.ac: Add --enable-libctf: handle --disable-static
1119 properly.
1120 * acinclude.m4: sinclude ../config/enable.m4.
1121 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1122 (LIBCTF): Substitute in.
1123 (CTF_DEPS): New, likewise.
1124 (CLIBS): libctf needs symbols from libbfd: move earlier.
1125 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1126 flags.
1127 * ctfread.c: Surround in ENABLE_LIBCTF.
1128 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1129 * configure: Regenerate.
1130 * config.in: Likewise.
1131
1132 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1133
1134 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1135
1136 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1137
1138 * inferior.h (struct inferior) <terminal>: Change type to
1139 gdb::unique_xmalloc_ptr<char>.
1140 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1141 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1142 field, adjust to unique pointer.
1143 (get_inferior_io_terminal): Adjust to unique pointer.
1144
1145 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1146
1147 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1148 registers, not just the known core set of registers.
1149
1150 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1151
1152 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1153 fflags, frm, and fcsr registers.
1154 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1155 restore groups.
1156 (riscv_tdesc_unknown_reg): New function.
1157 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1158 tdesc_use_registers.
1159 * riscv-tdep.h (struct gdbarch_tdep): Add
1160 unknown_csrs_first_regnum, unknown_csrs_count,
1161 duplicate_fflags_regnum, duplicate_frm_regnum, and
1162 duplicate_fcsr_regnum fields.
1163
1164 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1165
1166 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1167 callback, use the callback (when not null) to help number unknown
1168 registers.
1169 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1170 (tdesc_use_registers): Add extra parameter to declaration.
1171
1172 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1173
1174 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1175 in the file.
1176 (class riscv_pending_register_alias): Likewise.
1177 (riscv_register_feature::register_info): Change 'required_p' field
1178 to 'required', and change its type. Add 'check' member function.
1179 (riscv_register_feature::register_info::check): Define new member
1180 function.
1181 (riscv_xreg_feature): Change initialisation of 'required' field.
1182 (riscv_freg_feature): Likewise.
1183 (riscv_virtual_feature): Likewise.
1184 (riscv_csr_feature): Likewise.
1185 (riscv_check_tdesc_feature): Take extra parameter, the csr
1186 tdesc_feature, rewrite the function to use the new
1187 riscv_register_feature::register_info::check function.
1188 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1189
1190 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1191
1192 * features/Makefile: Remove all references to the deleted files
1193 below.
1194 * features/riscv/32bit-csr.c: Deleted.
1195 * features/riscv/32bit-csr.xml: Deleted.
1196 * features/riscv/64bit-csr.c: Deleted.
1197 * features/riscv/64bit-csr.xml: Deleted.
1198 * features/riscv/rebuild-csr-xml.sh: Deleted.
1199
1200 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1201
1202 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1203 whitespace error for declaration of names member variable.
1204 (struct riscv_register_feature): Add new prefer_first_name member
1205 variable, and fix whitespace error in declaration of registers.
1206 (riscv_xreg_feature): Initialize prefer_first_name field.
1207 (riscv_freg_feature): Likewise.
1208 (riscv_virtual_feature): Likewise.
1209 (riscv_csr_feature): Likewise.
1210 (riscv_register_name): Expand on comments. Remove register name
1211 modifications for CSR and virtual registers.
1212
1213 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1214
1215 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1216 errors.
1217
1218 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1219
1220 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1221 riscv-opc.h.
1222 (class riscv_pending_register_alias): New class.
1223 (riscv_check_tdesc_feature): Take vector of pending aliases and
1224 populate it as appropriate.
1225 (riscv_setup_register_aliases): Delete.
1226 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1227 to riscv_check_tdesc_feature in all cases. Use the vector to
1228 create the register aliases.
1229
1230 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1231
1232 * sol2-tdep.c (sol2_static_transform_name): Remove.
1233 (sol2_init_abi): Don't register it.
1234 * gdbarch.sh (static_transform_name): Remove.
1235 * gdbarch.c, gdbarch.h: Regenerate.
1236
1237 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1238 gdbarch_static_transform_name.
1239 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1240 * stabsread.c (define_symbol) <'X'>: Remove.
1241 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1242 handling.
1243 <'V'>: Likewise.
1244 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1245 <'S'>: Remove call to gdbarch_static_transform_name.
1246
1247 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1248
1249 * procfs.c (procfs_pre_trace): New function.
1250 (procfs_target::create_inferior): Pass it to fork_inferior.
1251
1252 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1253
1254 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1255 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1256 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1257 sol2-tdep.o, sparc-sol2-tdep.o.
1258 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1259 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1260 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1261 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1262
1263 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1264
1265 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1266 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1267 Call sol2_init_abi.
1268 Remove calls to set_gdbarch_skip_solib_resolver,
1269 set_gdbarch_core_pid_to_str.
1270 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1271 (i386_sol2_static_transform_name): Remove.
1272 (i386_sol2_init_abi): Call sol2_init_abi.
1273 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1274 set_gdbarch_static_transform_name,
1275 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1276 Use sol2_sigtramp_p.
1277 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1278 (sol2_sigtramp_p): New function.
1279 (sol2_static_transform_name): New function.
1280 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1281 (sol2_init_abi): New function.
1282 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1283 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1284 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1285 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1286 (sparc_sol2_static_transform_name): Remove.
1287 (sparc32_sol2_init_abi): Call sol2_init_abi.
1288 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1289 set_gdbarch_static_transform_name,
1290 set_gdbarch_skip_solib_resolver,
1291 set_gdbarch_core_pid_to_str.
1292 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1293 (sparc_sol2_static_transform_name): Remove
1294 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1295 call sol2_sigtramp_p.
1296 (sparc64_sol2_init_abi): Call sol2_init_abi.
1297 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1298 set_gdbarch_static_transform_name,
1299 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1300
1301 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1302
1303 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1304 * exec.c (validate_exec_file): If from_tty, set both
1305 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1306 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1307 and from_tty, unconditionally ask a confirmation.
1308
1309 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1310
1311 * target-descriptions.c (tdesc_architecture_name): Protect against
1312 NULL pointer dereference.
1313 (maint_print_xml_tdesc_cmd): New function.
1314 (_initialize_target_descriptions): Register new 'maint print
1315 xml-tdesc' command and give it the filename completer.
1316 * NEWS: Mention new 'maint print xml-tdesc' command.
1317
1318 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1319
1320 * target-descriptions.c (class tdesc_compatible_info): New class.
1321 (struct target_desc): Change type of compatible vector.
1322 (tdesc_compatible_p): Update for change in type of
1323 target_desc::compatible.
1324 (tdesc_compatible_info_list): New function.
1325 (tdesc_compatible_info_arch_name): New function.
1326 (tdesc_add_compatible): Update for change in type of
1327 target_desc::compatible.
1328 (print_c_tdesc::visit_pre): Likewise.
1329
1330 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1331
1332 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1333 whitespace to underscore.
1334 (maint_print_c_tdesc_cmd): Use fake filename for target
1335 descriptions that came from the target.
1336 (_initialize_target_descriptions): Add filename command completion
1337 for 'maint print c-tdesc'.
1338
1339 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1340
1341 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1342 lines.
1343
1344 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1345
1346 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1347 lines.
1348 (dwarf2_find_location_expression): Likewise.
1349 (call_site_parameter_matches): Likewise.
1350 (dwarf2_compile_expr_to_ax): Likewise.
1351 (disassemble_dwarf_expression): Likewise.
1352 (loclist_describe_location): Likewise.
1353
1354 2020-06-23 Pedro Alves <palves@redhat.com>
1355
1356 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1357 progspace-and-thread.h. Include scoped-mock-context.h instead.
1358 (register_to_value_test): Use scoped_mock_context.
1359 * regcache.c: Include "scoped-mock-context.h".
1360 (cooked_read_test): Don't error out if a target is already pushed.
1361 Use scoped_mock_context. Adjust.
1362 * scoped-mock-context.h: New file.
1363
1364 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1365
1366 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1367 initializer.
1368 (ada_language::is_string_type_p): New member function.
1369 * c-lang.c (c_language_data): Delete la_is_string_type_p
1370 initializer.
1371 (cplus_language_data): Likewise.
1372 (asm_language_data): Likewise.
1373 (minimal_language_data): Likewise.
1374 * d-lang.c (d_language_data): Likewise.
1375 * f-lang.c (f_is_string_type_p): Delete function, implementation
1376 moved to f_language::is_string_type_p.
1377 (f_language_data): Delete la_is_string_type_p initializer.
1378 (f_language::is_string_type_p): New member function,
1379 implementation from f_is_string_type_p.
1380 * go-lang.c (go_is_string_type_p): Delete function, implementation
1381 moved to go_language::is_string_type_p.
1382 (go_language_data): Delete la_is_string_type_p initializer.
1383 (go_language::is_string_type_p): New member function,
1384 implementation from go_is_string_type_p.
1385 * language.c (language_defn::is_string_type_p): Define new member
1386 function.
1387 (default_is_string_type_p): Make static, add comment copied from
1388 header file.
1389 (unknown_language_data): Delete la_is_string_type_p initializer.
1390 (unknown_language::is_string_type_p): New member function.
1391 (auto_language_data): Delete la_is_string_type_p initializer.
1392 (auto_language::is_string_type_p): New member function.
1393 * language.h (language_data): Delete la_is_string_type_p field.
1394 (language_defn::is_string_type_p): Declare new function.
1395 (default_is_string_type_p): Delete desclaration, move comment to
1396 definition.
1397 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1398 moved to m2_language::is_string_type_p.
1399 (m2_language_data): Delete la_is_string_type_p initializer.
1400 (m2_language::is_string_type_p): New member function,
1401 implementation from m2_is_string_type_p.
1402 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1403 initializer.
1404 * opencl-lang.c (opencl_language_data): Likewise.
1405 * p-lang.c (pascal_is_string_type_p): Delete function,
1406 implementation moved to pascal_language::is_string_type_p.
1407 (pascal_language_data): Delete la_is_string_type_p initializer.
1408 (pascal_language::is_string_type_p): New member function,
1409 implementation from pascal_is_string_type_p.
1410 * rust-lang.c (rust_is_string_type_p): Delete function,
1411 implementation moved to rust_language::is_string_type_p.
1412 (rust_language_data): Delete la_is_string_type_p initializer.
1413 (rust_language::is_string_type_p): New member function,
1414 implementation from rust_is_string_type_p.
1415 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1416 is_string_type_p.
1417
1418 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1419
1420 * ada-lang.c (ada_language_data): Delete la_print_typedef
1421 initializer.
1422 (ada_language::print_typedef): New member function.
1423 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1424 (cplus_language_data): Likewise.
1425 (asm_language_data): Likewise.
1426 (minimal_language_data): Likewise.
1427 * d-lang.c (d_language_data): Likewise.
1428 * f-lang.c (f_language_data): Likewise.
1429 (f_language::print_typedef): New member function.
1430 * go-lang.c (go_language_data): Delete la_print_typedef
1431 initializer.
1432 * language.c (language_defn::print_typedef): Define member
1433 function.
1434 (unknown_language_data): Delete la_print_typedef initializer.
1435 (unknown_language::print_typedef): New member function.
1436 (auto_language_data): Delete la_print_typedef initializer.
1437 (auto_language::print_typedef): New member function.
1438 * language.h (language_data): Delete la_print_typedef field.
1439 (language_defn::print_typedef): Declare new member function.
1440 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1441 (default_print_typedef): Delete declaration.
1442 * m2-lang.c (m2_language_data): Delete la_print_typedef
1443 initializer.
1444 (m2_language::print_typedef): New member function.
1445 * objc-lang.c (objc_language_data): Delete la_print_typedef
1446 initializer.
1447 * opencl-lang.c (opencl_language_data): Likewise.
1448 * p-lang.c (pascal_language_data): Likewise.
1449 (pascal_language::print_typedef): New member function.
1450 * rust-lang.c (rust_print_typedef): Delete function,
1451 implementation moved to rust_language::print_typedef.
1452 (rust_language): Delete la_print_typedef initializer.
1453 (rust_language::print_typedef): New member function,
1454 implementation from rust_print_typedef.
1455 * typeprint.c (default_print_typedef): Delete.
1456
1457 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1458
1459 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1460 (ada_language::printstr): New member function.
1461 * c-lang.c (c_language_data): Delete la_printstr initializer.
1462 (cplus_language_data): Likewise.
1463 (asm_language_data): Likewise.
1464 (minimal_language_data): Likewise.
1465 * d-lang.c (d_language_data): Likewise.
1466 * f-lang.c (f_printstr): Rename to f_language::printstr.
1467 (f_language_data): Delete la_printstr initializer.
1468 (f_language::printstr): New member function, implementation from
1469 f_printstr.
1470 * go-lang.c (go_language_data): Delete la_printstr initializer.
1471 * language.c (language_defn::printstr): Define new member
1472 function.
1473 (unk_lang_printstr): Delete.
1474 (unknown_language_data): Delete la_printstr initializer.
1475 (unknown_language::printstr): New member function.
1476 (auto_language_data): Delete la_printstr initializer.
1477 (auto_language::printstr): New member function.
1478 * language.h (language_data): Delete la_printstr field.
1479 (language_defn::printstr): Declare new member function.
1480 (LA_PRINT_STRING): Update call to printstr.
1481 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1482 (m2_language_data): Delete la_printstr initializer.
1483 (m2_language::printstr): New member function, implementation from
1484 m2_printstr.
1485 * objc-lang.c (objc_language_data): Delete la_printstr
1486 initializer.
1487 * opencl-lang.c (opencl_language_data): Likewise.
1488 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1489 (pascal_language_data): Delete la_printstr initializer.
1490 (pascal_language::printstr): New member function, implementation
1491 from pascal_printstr.
1492 * p-lang.h (pascal_printstr): Delete declaration.
1493 * rust-lang.c (rust_printstr): Update header comment.
1494 (rust_language_data): Delete la_printstr initializer.
1495 (rust_language::printstr): New member function.
1496
1497 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1498
1499 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1500 (ada_language::printchar): New member function.
1501 * c-lang.c (c_language_data): Delete la_printchar initializer.
1502 (cplus_language_data): Likewise.
1503 (asm_language_data): Likewise.
1504 (minimal_language_data): Likewise.
1505 * d-lang.c (d_language_data): Likewise.
1506 * f-lang.c (f_printchar): Rename to f_language::printchar.
1507 (f_language_data): Delete la_printchar initializer.
1508 (f_language::printchar): New member function, implementation from
1509 f_printchar.
1510 * go-lang.c (go_language_data): Delete la_printchar initializer.
1511 * language.c (unk_lang_printchar): Delete.
1512 (language_defn::printchar): Define new member function.
1513 (unknown_language_data): Delete la_printchar initializer.
1514 (unknown_language::printchar): New member function.
1515 (auto_language_data): Delete la_printchar initializer.
1516 (auto_language::printchar): New member function.
1517 * language.h (language_data): Delete la_printchar field.
1518 (language_defn::printchar): Declare new member function.
1519 (LA_PRINT_CHAR): Update call to printchar.
1520 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1521 (m2_language::printchar): New member function.
1522 * objc-lang.c (objc_language_data): Delete la_printchar
1523 initializer.
1524 * opencl-lang.c (opencl_language_data): Likewise.
1525 * p-lang.c (pascal_language_data): Delete la_printchar
1526 initializer.
1527 (pascal_language::printchar): New member function.
1528 * rust-lang.c (rust_printchar): Rename to
1529 rust_language::printchar.
1530 (rust_language_data): Delete la_printchar initializer.
1531 (rust_language::printchar): New member function, implementation
1532 from rust_printchar.
1533
1534 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1535
1536 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1537 (ada_language_data): Delete la_emitchar initializer.
1538 (ada_language::emitchar): New member function, implementation from
1539 emit_char.
1540 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1541 (cplus_language_data): Likewise.
1542 (asm_language_data): Likewise.
1543 (minimal_language_data): Likewise.
1544 * d-lang.c (d_language_data): Likewise.
1545 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1546 (f_language_data): Delete la_emitchar initializer.
1547 (f_language::emitchar): New member function, implementation from
1548 f_emit_char.
1549 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1550 * language.c (unk_lang_emit_char): Delete.
1551 (language_defn::emitchar): New member function definition.
1552 (unknown_language_data): Delete la_emitchar initializer.
1553 (unknown_language::emitchar): New member function.
1554 (auto_language_data): Delete la_emitchar initializer.
1555 (auto_language::emitchar): New member function.
1556 * language.h (language_data): Delete la_emitchar field.
1557 (language_defn::emitchar): New member field declaration.
1558 (LA_EMIT_CHAR): Update call to emitchar.
1559 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1560 (m2_language_data): Delete la_emitchar initializer.
1561 (m2_language::emitchar): New member function, implementation from
1562 m2_emit_char.
1563 * objc-lang.c (objc_language_data): Delete la_emitchar
1564 initializer.
1565 * opencl-lang.c (opencl_language_data): Likewise.
1566 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1567 (pascal_language_data): Delete la_emitchar initializer.
1568 (pascal_language::emitchar): New member function, implementation
1569 from pascal_emit_char.
1570 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1571 (rust_language_data): Delete la_emitchar initializer.
1572 (rust_language::emitchar): New member function, implementation
1573 from rust_emitchar.
1574
1575 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1576
1577 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1578 (ada_language_data): Delete la_post_parser initializer.
1579 (ada_language::post_parser): New member function.
1580 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1581 (cplus_language_data): Likewise.
1582 (asm_language_data): Likewise.
1583 (minimal_language_data): Likewise.
1584 * d-lang.c (d_language_data): Likewise.
1585 * f-lang.c (f_language_data): Likewise.
1586 * go-lang.c (go_language_data): Likewise.
1587 * language.c (unknown_language_data): Likewise.
1588 (auto_language_data): Likewise.
1589 * language.h (language_data): Delete la_post_parser field.
1590 (language_defn::post_parser): New member function.
1591 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1592 * objc-lang.c (objc_language_data): Likewise.
1593 * opencl-lang.c (opencl_language_data): Likewise.
1594 * p-lang.c (pascal_language_data): Likewise.
1595 * parse.c (parse_exp_in_context): Update call to post_parser.
1596 (null_post_parser): Delete definition.
1597 * parser-defs.h (null_post_parser): Delete declaration.
1598 * rust-lang.c (rust_language_data): Delete la_post_parser
1599 initializer.
1600
1601 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1602
1603 * ada-lang.c (parse): Rename to ada_language::parser.
1604 (ada_language_data): Delete la_parser initializer.
1605 (ada_language::parser): New member function, implementation from
1606 parse.
1607 * c-lang.c (c_language_data): Delete la_parser initializer.
1608 (cplus_language_data): Likewise.
1609 (asm_language_data): Likewise.
1610 (minimal_language_data): Likewise.
1611 * d-lang.c (d_language_data): Likewise.
1612 (d_language::parser): New member function.
1613 * f-lang.c (f_language_data): Delete la_parser initializer.
1614 (f_language::parser): New member function.
1615 * go-lang.c (go_language_data): Delete la_parser initializer.
1616 (go_language::parser): New member function.
1617 * language.c (unk_lang_parser): Delete.
1618 (language_defn::parser): Define new member function.
1619 (unknown_language_data): Delete la_parser initializer.
1620 (unknown_language::parser): New member function.
1621 (auto_language_data): Delete la_parser initializer.
1622 (auto_language::parser): New member function.
1623 * language.h (language_data): Delete la_parser field.
1624 (language_defn::parser): Declare new member function.
1625 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1626 (m2_language::parser): New member function.
1627 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1628 * opencl-lang.c (opencl_language_data): Likewise.
1629 * p-lang.c (pascal_language_data): Likewise.
1630 (pascal_language::parser): New member function.
1631 * parse.c (parse_exp_in_context): Update call to parser.
1632 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1633 (rust_language::parser): New member function.
1634
1635 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1636
1637 * top.c (print_gdb_configuration): Print --with-python-libdir
1638 configuration value.
1639
1640 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1641
1642 * NEWS: Mention change to the alias command.
1643
1644 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1645
1646 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1647 (alias_command_completer)
1648 (make_alias_options_def_group): New functions.
1649 (alias_opts, alias_option_defs): New struct and array.
1650 (alias_usage_error): Update usage.
1651 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1652 Use option framework.
1653 (_initialize_cli_cmds): Update alias command help.
1654 Update aliases command help.
1655 (show_user):
1656 Add NULL for new default_args lookup_cmd argument.
1657 (valid_command_p): Rename to validate_aliased_command.
1658 Add NULL for new default_args lookup_cmd argument. Verify that the
1659 aliased_command has no default args.
1660 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1661 (lookup_cmd_1, lookup_cmd): New argument default_args.
1662 (add_alias_cmd):
1663 Add NULL for new default_args lookup_cmd argument.
1664 (print_help_for_command): Show default args under the layout
1665 alias some_alias = some_aliased_cmd some_alias_default_arg.
1666 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1667 xfree default_args in destructor.
1668 * cli/cli-script.c (process_next_line, do_define_command):
1669 Add NULL for new default_args lookup_cmd argument.
1670 * command.h: Declare new default_args argument in lookup_cmd
1671 and lookup_cmd_1.
1672 * completer.c (complete_line_internal_1):
1673 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1674 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1675 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1676 Likewise.
1677 * infcmd.c (_initialize_infcmd): Likewise.
1678 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1679 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1680 * python/py-param.c (add_setshow_generic): Likewise.
1681 * remote.c (_initialize_remote): Likewise.
1682 * top.c (execute_command): Prepend default_args if command has some.
1683 (set_verbose):
1684 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1685 * tracepoint.c (validate_actionline, encode_actions_1):
1686 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1687
1688 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1689
1690 * jit.c (jit_read_descriptor): Use bool as the return type.
1691 (jit_breakpoint_re_set_internal): Use bool as the return type.
1692 Invert the return value logic; return true if the jit breakpoint
1693 has been successfully initialized.
1694 (jit_inferior_init): Update the call to
1695 jit_breakpoint_re_set_internal.
1696
1697 2020-06-22 Pedro Alves <palves@redhat.com>
1698
1699 PR gdb/25939
1700 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1701 Use the current inferior instead. Don't return
1702 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1703 wait again.
1704 * sol-thread.c (sol_thread_target::wait): Don't reference
1705 inferior_ptid.
1706 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1707 (sol_update_thread_list_callback): Use the current inferior's pid
1708 instead of inferior_ptid.
1709
1710 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1711
1712 * procfs.c: Cleanup many comments.
1713
1714 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1715 (AFTER_WATCHFLAG): Replace by value.
1716
1717 (MAIN_PROC_NAME_FORMAT): Inline ...
1718 (create_procinfo): ... here.
1719
1720 (procfs_debug_inferior): Remove SYS_exec handling.
1721 (syscall_is_exec): Likewise.
1722 (procfs_set_exec_trap): Likewise.
1723
1724 (syscall_is_lwp_exit): Inline in callers.
1725 (syscall_is_exit): Likewise.
1726 (syscall_is_exec): Likewise.
1727 (syscall_is_lwp_create): Likewise.
1728
1729 (invalidate_cache): Remove #if 0 code.
1730
1731 (make_signal_thread_runnable): Remove.
1732 (procfs_target::resume): Remove #if 0 code.
1733
1734 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1735
1736 PR gdb/25939
1737 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1738 call ...
1739 (procfs_target::create_inferior): ... here.
1740
1741 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1742
1743 * exec.c (validate_exec_file): Ensure the build-id is up to
1744 date by calling reopen_exec_file (that checks file timestamp
1745 to decide to re-read the file).
1746
1747 2020-06-18 Pedro Alves <palves@redhat.com>
1748
1749 PR gdb/25412
1750 * gdbthread.h (delete_thread, delete_thread_silent)
1751 (find_thread_ptid): Update comments.
1752 * thread.c (current_thread_): New global.
1753 (is_current_thread): Move higher, and reimplement.
1754 (inferior_thread): Reimplement.
1755 (set_thread_exited): Use bool. Add assertions.
1756 (add_thread_silent): Simplify thread-reuse handling by always
1757 calling delete_thread.
1758 (delete_thread): Remove intro comment.
1759 (find_thread_ptid): Skip exited threads.
1760 (switch_to_thread_no_regs): Write to current_thread_.
1761 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1762 INFERIOR_PTID. Clear current_thread_.
1763
1764 2020-06-18 Pedro Alves <palves@redhat.com>
1765
1766 * aix-thread.c (pd_update): Use switch_to_thread.
1767
1768 2020-06-18 Pedro Alves <palves@redhat.com>
1769
1770 * ravenscar-thread.c (ravenscar_thread_target): Update.
1771 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1772 (ravenscar_thread_target::add_active_thread): ... this. Don't
1773 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1774 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1775
1776 2020-06-18 Pedro Alves <palves@redhat.com>
1777
1778 * nat/windows-nat.c (current_windows_thread): Remove.
1779 * nat/windows-nat.h (current_windows_thread): Remove.
1780 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1781 Adjust.
1782 (display_selectors): Adjust to fetch the current
1783 windows_thread_info based on inferior_ptid.
1784 (fake_create_process): No longer write to current_windows_thread.
1785 (windows_nat_target::get_windows_debug_event):
1786 Don't set inferior_ptid or current_windows_thread.
1787 (windows_nat_target::wait): Adjust to not rely on
1788 current_windows_thread.
1789 (do_initial_windows_stuff): Now a method of windows_nat_target.
1790 Switch to the last_ptid thread.
1791 (windows_nat_target::attach): Adjust.
1792 (windows_nat_target::detach): Use switch_to_no_thread instead of
1793 writing to inferior_ptid directly.
1794 (windows_nat_target::create_inferior): Adjust.
1795
1796 2020-06-18 Pedro Alves <palves@redhat.com>
1797
1798 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1799
1800 2020-06-18 Pedro Alves <palves@redhat.com>
1801
1802 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1803 after creating it, instead of writing to inferior_ptid. Don't
1804 write to inferior_ptid.
1805
1806 2020-06-18 Pedro Alves <palves@redhat.com>
1807
1808 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1809
1810 2020-06-18 Pedro Alves <palves@redhat.com>
1811
1812 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1813 it, instead of writing to inferior_ptid.
1814
1815 2020-06-18 Pedro Alves <palves@redhat.com>
1816
1817 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1818 to inferior_ptid.
1819
1820 2020-06-18 Pedro Alves <palves@redhat.com>
1821
1822 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1823 instead of writing to inferior_ptid directly.
1824
1825 2020-06-18 Pedro Alves <palves@redhat.com>
1826
1827 * corelow.c (core_target::close): Use switch_to_no_thread instead
1828 of writing to inferior_ptid directly.
1829 (add_to_thread_list, core_target_open): Use switch_to_thread
1830 instead of writing to inferior_ptid directly.
1831
1832 2020-06-18 Pedro Alves <palves@redhat.com>
1833
1834 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1835 inferior_ptid.
1836 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1837 inferior_ptid.
1838 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1839 inferior_ptid directly.
1840 (darwin_nat_target::init_thread_list): Switch to thread, instead
1841 of writing to inferior_ptid.
1842 (darwin_nat_target::attach): Don't write to inferior_ptid.
1843 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1844
1845 2020-06-18 Pedro Alves <palves@redhat.com>
1846
1847 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1848 thread.
1849 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1850 Instead use switch_to_thread.
1851 (gnu_nat_target::detach): Use switch_to_no_thread
1852 instead of writing to inferior_ptid directly. Used passed-in
1853 inferior instead of looking up the inferior by pid.
1854
1855 2020-06-18 Pedro Alves <palves@redhat.com>
1856
1857 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1858 inferior_ptid.
1859
1860 2020-06-18 Pedro Alves <palves@redhat.com>
1861
1862 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1863 inferior_ptid.
1864 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1865 thread.
1866 (nto_procfs_target::detach): Avoid referencing
1867 inferior_ptid. Use switch_to_no_thread instead of writing to
1868 inferior_ptid directly.
1869 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1870 instead of writing to inferior_ptid directly.
1871 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1872 to thread.
1873
1874 2020-06-18 Pedro Alves <palves@redhat.com>
1875
1876 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1877 after creating it, instead of writing to inferior_ptid.
1878 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1879 to inferior_ptid directly.
1880 (gdbsim_target::wait): Don't write to inferior_ptid.
1881
1882 2020-06-18 Pedro Alves <palves@redhat.com>
1883
1884 * remote.c (remote_target::remote_notice_new_inferior): Use
1885 switch_to_thread instead of writing to inferior_ptid directly.
1886 (remote_target::add_current_inferior_and_thread): Use
1887 switch_to_no_thread instead of writing to inferior_ptid directly.
1888 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1889 and switch_to_thread instead of using set_current_inferior or
1890 writing to inferior_ptid directly.
1891
1892 2020-06-18 Pedro Alves <palves@redhat.com>
1893
1894 * tracectf.c (ctf_target_open): Switch to added thread instead of
1895 writing to inferior_ptid directly.
1896 (ctf_target::close): Use switch_to_no_thread instead of writing to
1897 inferior_ptid directly.
1898
1899 2020-06-18 Pedro Alves <palves@redhat.com>
1900
1901 * tracefile-tfile.c (tfile_target_open): Don't write to
1902 inferior_ptid directly, instead switch to added thread.
1903 (tfile_target::close): Use switch_to_no_thread instead of writing
1904 to inferior_ptid directly.
1905
1906 2020-06-18 Pedro Alves <palves@redhat.com>
1907
1908 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1909 (procfs_target::detach): Use switch_to_no_thread
1910 instead of writing to inferior_ptid directly.
1911 (do_attach): Change return type to void. Switch to the added
1912 thread.
1913 (procfs_target::create_inferior): Switch to the added thread.
1914 (procfs_do_thread_registers): Don't write to inferior_ptid.
1915
1916 2020-06-18 Pedro Alves <palves@redhat.com>
1917
1918 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1919 of writing to inferior_ptid.
1920 (scoped_restore_exited_inferior): Delete.
1921 (handle_vfork_child_exec_or_exit): Simplify using
1922 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1923 instead of writing to inferior_ptid.
1924 (THREAD_STOPPED_BY): Delete.
1925 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1926 (thread_stopped_by_hw_breakpoint): Delete.
1927 (save_waitstatus): Use
1928 scoped_restore_current_thread+switch_to_thread, and call
1929 target_stopped_by_watchpoint instead of
1930 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1931 instead of thread_stopped_by_sw_breakpoint, and
1932 target_stopped_by_hw_breakpoint instead of
1933 thread_stopped_by_hw_breakpoint.
1934 (handle_inferior_event)
1935 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1936 inferior_ptid directly, nor
1937 set_current_inferior/set_current_program_space. Use
1938 switch_to_thread / switch_to_inferior_no_thread instead.
1939
1940 2020-06-18 Pedro Alves <palves@redhat.com>
1941
1942 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1943 instead of writing to inferior_ptid.
1944
1945 2020-06-18 Pedro Alves <palves@redhat.com>
1946
1947 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1948 added thread.
1949 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1950 to the added thread.
1951 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1952 instead of writing to inferior_ptid.
1953
1954 2020-06-18 Pedro Alves <palves@redhat.com>
1955
1956 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1957 (register_to_value_test): Mock a program_space too. Heap-allocate
1958 the address space. Don't write to inferior_ptid. Use
1959 switch_to_thread instead.
1960
1961 2020-06-18 Pedro Alves <palves@redhat.com>
1962
1963 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1964 Delete.
1965 (find_signalled_thread()): New, factored out from
1966 linux_make_corefile_notes and adjusted to handle exited threads.
1967 (linux_make_corefile_notes): Adjust to use the new
1968 find_signalled_thread.
1969
1970 2020-06-18 Pedro Alves <palves@redhat.com>
1971
1972 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1973 of saving/restoring inferior_ptid.
1974
1975 2020-06-17 Tom Tromey <tom@tromey.com>
1976
1977 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1978 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1979 declare.
1980 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1981
1982 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1983
1984 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1985 of partial symtabs.
1986
1987 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1988
1989 * regformats/reg-arm.dat: Remove.
1990 * regformats/reg-bfin.dat: Remove.
1991 * regformats/reg-cris.dat: Remove.
1992 * regformats/reg-crisv32.dat: Remove.
1993 * regformats/reg-m32r.dat: Remove.
1994 * regformats/reg-tilegx.dat: Remove.
1995 * regformats/reg-tilegx32.dat: Remove.
1996
1997 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1998
1999 * features/Makefile (WHICH): Remove arm files.
2000 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2001 * regformats/arm/arm-with-neon.dat: Remove.
2002 * regformats/arm/arm-with-vfpv2.dat: Remove.
2003 * regformats/arm/arm-with-vfpv3.dat: Remove.
2004
2005 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2006
2007 * features/Makefile (XMLTOC): Remove rx.xml.
2008
2009 2020-06-17 Pedro Alves <palves@redhat.com>
2010
2011 * gdbthread.h (thread_control_state) <trap_expected> Update
2012 comments.
2013
2014 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2015
2016 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2017 ada_language::lookup_symbol_nonlocal.
2018 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2019 (ada_language::lookup_symbol_nonlocal): New member function,
2020 implementation from ada_lookup_symbol_nonlocal.
2021 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2022 initializer.
2023 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2024 initializer.
2025 (cplus_language::lookup_symbol_nonlocal): New member function.
2026 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2027 (minimal_language_data) Likewise.
2028 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2029 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2030 initializer.
2031 (d_language::lookup_symbol_nonlocal): New member function.
2032 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2033 initializer.
2034 (f_language::lookup_symbol_nonlocal): New member function.
2035 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2036 initializer.
2037 * language.c (unknown_language_data): Likewise.
2038 (auto_language_data): Likewise.
2039 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2040 field.
2041 (language_defn::lookup_symbol_nonlocal): New member function.
2042 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2043 initializer.
2044 * objc-lang.c (objc_language_data): Likewise.
2045 * opencl-lang.c (opencl_language_data): Likewise.
2046 * p-lang.c (pascal_language_data): Likewise.
2047 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2048 rust_language::lookup_symbol_nonlocal.
2049 (rust_language_data): Delete la_lookup_symbol_nonlocal
2050 initializer.
2051 (rust_language::lookup_symbol_nonlocal): New member function,
2052 implementation from rust_lookup_symbol_nonlocal.
2053 * symtab.c (lookup_symbol_aux): Update call to
2054 lookup_symbol_nonlocal.
2055 (basic_lookup_symbol_nonlocal): Rename to...
2056 (language_defn::lookup_symbol_nonlocal): ...this, and update
2057 header comment. Remove language_defn parameter, and replace with
2058 uses of `this'.
2059 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2060
2061 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2062
2063 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2064 initializer.
2065 (ada_language::value_print_inner): New member function.
2066 * c-lang.c (c_language_data): Delete la_value_print_inner
2067 initializer.
2068 (cplus_language_data): Likewise.
2069 (asm_language_data): Likewise.
2070 (minimal_language_data): Likewise.
2071 * d-lang.c (d_language_data): Likewise.
2072 (d_language::value_print_inner): New member function.
2073 * f-lang.c (f_language_data): Delete la_value_print_inner
2074 initializer.
2075 (f_language::value_print_inner): New member function.
2076 * f-lang.h (f_value_print_innner): Rename to...
2077 (f_value_print_inner): ...this (note spelling of 'inner').
2078 * f-valprint.c (f_value_print_innner): Rename to...
2079 (f_value_print_inner): ...this (note spelling of 'inner').
2080 * go-lang.c (go_language_data): Delete la_value_print_inner
2081 initializer.
2082 (go_language::value_print_inner): New member function.
2083 * language.c (language_defn::value_print_inner): Define new member
2084 function.
2085 (unk_lang_value_print_inner): Delete.
2086 (unknown_language_data): Delete la_value_print_inner initializer.
2087 (unknown_language::value_print_inner): New member function.
2088 (auto_language_data): Delete la_value_print_inner initializer.
2089 (auto_language::value_print_inner): New member function.
2090 * language.h (language_data): Delete la_value_print_inner field.
2091 (language_defn::value_print_inner): Delcare new member function.
2092 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2093 initializer.
2094 (m2_language::value_print_inner): New member function.
2095 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2096 initializer.
2097 * opencl-lang.c (opencl_language_data): Likewise.
2098 * p-lang.c (pascal_language_data): Likewise.
2099 (pascal_language::value_print_inner): New member function.
2100 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2101 initializer.
2102 (rust_language::value_print_inner): New member function.
2103 * valprint.c (do_val_print): Update call to value_print_inner.
2104
2105 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2106
2107 * ada-lang.c (ada_language_data): Delete la_value_print
2108 initializer.
2109 (ada_language::value_print): New member function.
2110 * c-lang.c (c_language_data): Delete la_value_print initializer.
2111 (cplus_language_data): Likewise.
2112 (asm_language_data): Likewise.
2113 (minimal_language_data): Likewise.
2114 * d-lang.c (d_language_data): Likewise.
2115 * f-lang.c (f_language_data): Likewise.
2116 * go-lang.c (go_language_data): Likewise.
2117 * language.c (unk_lang_value_print): Delete.
2118 (language_defn::value_print): Define new member function.
2119 (unknown_language_data): Delete la_value_print initializer.
2120 (unknown_language::value_print): New member function.
2121 (auto_language_data): Delete la_value_print initializer.
2122 (auto_language::value_print): New member function.
2123 * language.h (language_data): Delete la_value_print field.
2124 (language_defn::value_print): Declare new member function.
2125 (LA_VALUE_PRINT): Update call to value_print.
2126 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2127 * objc-lang.c (objc_language_data): Likewise.
2128 * opencl-lang.c (opencl_language_data): Likewise.
2129 * p-lang.c (pascal_language_data): Likewise.
2130 (pascal_language::value_print): New member function.
2131 * rust-lang.c (rust_language_data): Delete la_value_print
2132 initializer.
2133
2134 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2135
2136 * ada-lang.c (ada_watch_location_expression): Rename to
2137 ada_language::watch_location_expression.
2138 (ada_language_data): Delete la_watch_location_expression
2139 initializer.
2140 (ada_language::watch_location_expression): New member function,
2141 implementation from ada_watch_location_expression.
2142 * breakpoint.c (watch_command_1): Update call to
2143 watch_location_expression.
2144 * c-lang.c (c_watch_location_expression): Rename to
2145 language_defn::watch_location_expression.
2146 (c_language_data): Delete la_watch_location_expression
2147 initializer.
2148 (cplus_language_data): Likewise.
2149 (asm_language_data): Likewise.
2150 (minimal_language_data): Likewise.
2151 * c-lang.h (c_watch_location_expression): Delete declaration.
2152 * d-lang.c (d_language_data): Delete la_watch_location_expression
2153 initializer.
2154 * f-lang.c (f_language_data): Likewise.
2155 * go-lang.c (go_language_data): Likewise.
2156 * language.c (language_defn::watch_location_expression): Member
2157 function implementation from c_watch_location_expression.
2158 (unknown_language_data): Delete la_watch_location_expression
2159 initializer.
2160 (auto_language_data): Likewise.
2161 * language.h (language_data): Delete la_watch_location_expression
2162 field.
2163 (language_defn::watch_location_expression): Declare new member
2164 function.
2165 * m2-lang.c (m2_language_data): Delete
2166 la_watch_location_expression initializer.
2167 * objc-lang.c (objc_language_data): Likewise.
2168 * opencl-lang.c (opencl_language_data): Likewise.
2169 * p-lang.c (pascal_language_data): Likewise.
2170 * rust-lang.c (rust_watch_location_expression): Rename to
2171 rust_language::watch_location_expression.
2172 (rust_language_data): Delete la_watch_location_expression
2173 initializer.
2174 (rust_language::watch_location_expression): New member function,
2175 implementation from rust_watch_location_expression.
2176
2177 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2178
2179 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2180 ada_language::collect_symbol_completion_matches.
2181 (ada_language_data): Delete la_collect_symbol_completion_matches
2182 initializer.
2183 (ada_language::collect_symbol_completion_matches): New member
2184 function, implementation from
2185 ada_collect_symbol_completion_matches.
2186 * c-lang.c (c_language_data): Delete
2187 la_collect_symbol_completion_matches initializer.
2188 (cplus_language_data): Likewise.
2189 (asm_language_data): Likewise.
2190 (minimal_language_data): Likewise.
2191 * d-lang.c (d_language_data): Likewise.
2192 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2193 f_language::collect_symbol_completion_matches.
2194 (f_language_data): Delete la_collect_symbol_completion_matches
2195 initializer.
2196 (f_language::collect_symbol_completion_matches) New member
2197 function, implementation from f_collect_symbol_completion_matches.
2198 * go-lang.c (go_language_data): Delete
2199 la_collect_symbol_completion_matches initializer.
2200 * language.c (unknown_language_data): Likewise.
2201 (auto_language_data): Likewise.
2202 * language.h (language_data): Delete
2203 la_collect_symbol_completion_matches field.
2204 (language_defn::collect_symbol_completion_matches): New member
2205 function.
2206 * m2-lang.c (m2_language_data): Delete
2207 la_collect_symbol_completion_matches initializer.
2208 * objc-lang.c (objc_language_data): Likewise.
2209 * opencl-lang.c (opencl_language_data): Likewise.
2210 * p-lang.c (pascal_language_data): Likewise.
2211 * rust-lang.c (rust_language_data): Likewise.
2212 * symtab.c (default_collect_symbol_completion_matches): Delete.
2213 (collect_symbol_completion_matches): Update call to
2214 collect_symbol_completion_matches.
2215 (collect_symbol_completion_matches_type): Likewise.
2216 * symtab.h (default_collect_symbol_completion_matches): Delete
2217 declaration.
2218
2219 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2220
2221 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2222 (ada_language_data): Delete la_word_break_characters initializer.
2223 (ada_language::word_break_characters): New member function.
2224 * c-lang.c (c_language_data): Delete la_word_break_characters
2225 initializer.
2226 (cplus_language_data): Likewise.
2227 (asm_language_data): Likewise.
2228 (minimal_language_data): Likewise.
2229 * completer.c: Update global comment.
2230 (advance_to_expression_complete_word_point): Update call to
2231 word_break_characters.
2232 (complete_files_symbols): Likewise.
2233 (complete_line_internal_1): Likewise.
2234 (default_completer_handle_brkchars): Likewise.
2235 (skip_quoted_chars): Likewise.
2236 * d-lang.c (d_language_data): Delete la_word_break_characters
2237 initializer.
2238 * f-lang.c (f_word_break_characters): Delete.
2239 (f_language_data): Delete la_word_break_characters initializer.
2240 (f_language::word_break_characters): New member function.
2241 * go-lang.c (go_language_data): Delete la_word_break_characters
2242 initializer.
2243 * language.c (unknown_language_data): Likewise.
2244 (auto_language_data): Likewise.
2245 * language.h (default_word_break_characters): Move declaration to
2246 earlier in the file.
2247 (language_data): Delete la_word_break_characters field.
2248 (language_defn::word_break_characters): New member function.
2249 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2250 initializer.
2251 * objc-lang.c (objc_language_data): Likewise.
2252 * opencl-lang.c (opencl_language_data): Likewise.
2253 * p-lang.c (pascal_language_data): Likewise.
2254 * rust-lang.c (rust_language_data): Likewise.
2255
2256 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2257
2258 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2259 (ada_language_data): Delete la_get_symbol_name_matcher
2260 initializer.
2261 (language_defn::get_symbol_name_matcher_inner): New member
2262 function.
2263 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2264 initializer.
2265 (cplus_language_data): Likewise.
2266 (cplus_language::get_symbol_name_matcher_inner): New member
2267 function.
2268 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2269 (minimal_language_data): Likewise.
2270 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2271 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2272 initializer.
2273 * dictionary.c (iter_match_first_hashed): Update call to
2274 get_symbol_name_matcher.
2275 (iter_match_next_hashed): Likewise.
2276 (iter_match_next_linear): Likewise.
2277 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2278 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2279 initializer.
2280 (f_language::get_symbol_name_matcher_inner): New member function.
2281 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2282 initializer.
2283 * language.c (default_symbol_name_matcher): Update header comment,
2284 make static.
2285 (language_defn::get_symbol_name_matcher): New definition.
2286 (language_defn::get_symbol_name_matcher_inner): Likewise.
2287 (get_symbol_name_matcher): Delete.
2288 (unknown_language_data): Delete la_get_symbol_name_matcher
2289 initializer.
2290 (auto_language_data): Likewise.
2291 * language.h (language_data): Delete la_get_symbol_name_matcher
2292 field.
2293 (language_defn::get_symbol_name_matcher): New member function.
2294 (language_defn::get_symbol_name_matcher_inner): Likewise.
2295 (default_symbol_name_matcher): Delete declaration.
2296 * linespec.c (find_methods): Update call to
2297 get_symbol_name_matcher.
2298 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2299 initializer.
2300 * minsyms.c (lookup_minimal_symbol): Update call to
2301 get_symbol_name_matcher.
2302 (iterate_over_minimal_symbols): Likewise.
2303 * objc-lang.c (objc_language_data): Delete
2304 la_get_symbol_name_matcher initializer.
2305 * opencl-lang.c (opencl_language_data): Likewise.
2306 * p-lang.c (pascal_language_data): Likewise.
2307 * psymtab.c (psymbol_name_matches): Update call to
2308 get_symbol_name_matcher.
2309 * rust-lang.c (rust_language_data): Delete
2310 la_get_symbol_name_matcher initializer.
2311 * symtab.c (symbol_matches_search_name): Update call to
2312 get_symbol_name_matcher.
2313 (compare_symbol_name): Likewise.
2314
2315 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2316
2317 * ada-lang.c (ada_language_data): Delete la_compute_program
2318 initializer.
2319 * c-lang.c (c_language_data): Likewise.
2320 (c_language::compute_program): New member function.
2321 (cplus_language_data): Delete la_compute_program initializer.
2322 (cplus_language::compute_program): New member function.
2323 (asm_language_data): Delete la_compute_program initializer.
2324 (minimal_language_data): Likewise.
2325 * c-lang.h (c_compute_program): Update comment.
2326 (cplus_compute_program): Likewise.
2327 * compile/compile-c-support.c (c_compute_program): Likewise.
2328 (cplus_compute_program): Likewise.
2329 * compile/compile.c (compile_to_object): Update call to
2330 la_compute_program.
2331 * d-lang.c (d_language_data): Delete la_compute_program
2332 initializer.
2333 * f-lang.c (f_language_data): Likewise.
2334 * go-lang.c (go_language_data): Likewise.
2335 * language.c (unknown_language_data): Likewise.
2336 (auto_language_data): Likewise.
2337 * language.h (language_data): Delete la_compute_program field.
2338 (language_defn::compute_program): New member function.
2339 * m2-lang.c (m2_language_data): Delete la_compute_program
2340 initializer.
2341 * objc-lang.c (objc_language_data): Likewise.
2342 * opencl-lang.c (opencl_language_data): Likewise.
2343 * p-lang.c (pascal_language_data): Likewise.
2344 * rust-lang.c (rust_language_data): Likewise.
2345
2346 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2347
2348 * ada-lang.c (ada_language_data) Delete
2349 la_class_name_from_physname initializer.
2350 * c-lang.c (c_language_data): Likewise.
2351 (cplus_language_data): Likewise.
2352 (cplus_language::class_name_from_physname): New member function.
2353 (asm_language_data): Delete la_class_name_from_physname
2354 initializer.
2355 (minimal_language_data): Likewise.
2356 * d-lang.c (d_language_data): Likewise.
2357 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2358 method on language_defn class.
2359 (guess_full_die_structure_name): Likewise.
2360 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2361 initializer.
2362 * go-lang.c (go_language_data): Likewise.
2363 * language.c (language_class_name_from_physname): Delete.
2364 (unk_lang_class_name): Delete.
2365 (unknown_language_data): Delete la_class_name_from_physname
2366 initializer.
2367 (auto_language_data): Likewise.
2368 * language.h (language_data): Delete la_class_name_from_physname
2369 field.
2370 (language_defn::class_name_from_physname): New function.
2371 (language_class_name_from_physname): Delete declaration.
2372 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2373 initializer.
2374 * objc-lang.c (objc_language_data): Likewise.
2375 * opencl-lang.c (opencl_language_data): Likewise.
2376 * p-lang.c (pascal_language_data): Likewise.
2377 * rust-lang.c (rust_language_data): Likewise.
2378
2379 2020-06-16 Tom Tromey <tom@tromey.com>
2380
2381 * tui/tui-data.h (STATUS_NAME): New macro.
2382 * tui/tui-layout.c (tui_remove_some_windows)
2383 (initialize_known_windows, tui_register_window)
2384 (tui_layout_split::remove_windows, initialize_layouts)
2385 (tui_new_layout_command): Don't use hard-coded window names.
2386
2387 2020-06-16 Tom Tromey <tom@tromey.com>
2388
2389 PR tui/25348:
2390 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2391 tui_initialize_readline. Only run once. Call rl_initialize.
2392 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2393 tui_initialize_readline.
2394 * tui/tui-io.c (tui_setup_io): Call
2395 tui_ensure_readline_initialized.
2396 * tui/tui-interp.c (tui_interp::init): Update.
2397
2398 2020-06-16 Tom Tromey <tom@tromey.com>
2399
2400 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2401 Also preserve the status window.
2402
2403 2020-06-16 Tom Tromey <tom@tromey.com>
2404
2405 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2406 where m_window==nullptr.
2407
2408 2020-06-15 Tom Tromey <tromey@adacore.com>
2409
2410 * windows-nat.c (windows_nat::handle_output_debug_string):
2411 Update.
2412 (windows_nat::handle_ms_vc_exception): Update.
2413 * target.h (target_read_string): Change API.
2414 * target.c (target_read_string): Change API.
2415 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2416 Update.
2417 * solib-frv.c (frv_current_sos): Update.
2418 * solib-dsbt.c (dsbt_current_sos): Update.
2419 * solib-darwin.c (darwin_current_sos): Update.
2420 * linux-thread-db.c (inferior_has_bug): Update.
2421 * expprint.c (print_subexp_standard): Update.
2422 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2423 (ada_exception_message_1): Update.
2424
2425 2020-06-15 Tom Tromey <tromey@adacore.com>
2426
2427 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2428
2429 2020-06-15 Tom Tromey <tromey@adacore.com>
2430
2431 * valprint.c (read_string): Update comment.
2432 * target.c (MIN): Remove.
2433 (target_read_string): Rewrite.
2434
2435 2020-06-15 Tom Tromey <tromey@adacore.com>
2436
2437 * corefile.c (read_memory_string): Remove.
2438 * ada-valprint.c (ada_value_print_ptr): Update.
2439 * ada-lang.h (ada_tag_name): Change return type.
2440 * ada-lang.c (type_from_tag): Update.
2441 (ada_tag_name_from_tsd): Change return type. Use
2442 target_read_string.
2443 (ada_tag_name): Likewise.
2444 * gdbcore.h (read_memory_string): Don't declare.
2445
2446 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2447
2448 * symtab.c (rbreak_command): Ignore Windows drive colon.
2449
2450 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2451
2452 * NEWS: Mention removed GDBserver host support.
2453
2454 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2455
2456 * features/riscv/rebuild-csr-xml.sh: Updated.
2457
2458 2020-06-11 Tom Tromey <tom@tromey.com>
2459
2460 PR gdb/18318:
2461 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2462
2463 2020-06-09 Jonny Grant <jg@jguk.org>
2464 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2465
2466 * main.c (captured_main_1): Don't print new line after help.
2467 (print_gdb_help): add mailing list and IRC channel information
2468 to --help. Add new lines between items in the footer. Remove
2469 quotes around bug url.
2470
2471 2020-06-11 Keith Seitz <keiths@redhat.com>
2472
2473 PR gdb/21356
2474 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2475 Resolve typedefs for type length calculations.
2476
2477 2020-06-10 Tom de Vries <tdevries@suse.de>
2478
2479 PR ada/24713
2480 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2481 (write_psymbols): Enable .gdb_index for ada.
2482 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2483 ada.
2484
2485 2020-06-10 Tom de Vries <tdevries@suse.de>
2486
2487 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2488 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2489 namei" instead of "const char *name" argument.
2490 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2491 dw2_symtab_iter_init.
2492
2493 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2494
2495 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2496 to use type::field and field::type instead.
2497
2498 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2499
2500 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2501 to use field::type instead.
2502
2503 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2504
2505 * gdbtypes.h (struct field) <type, set_type>: New methods.
2506 Rename `type` field to...
2507 <m_type>: ... this. Change references throughout to use type or
2508 set_type methods.
2509 (FIELD_TYPE): Use field::type. Change call sites that modify
2510 the field's type to use field::set_type instead.
2511
2512 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2513
2514 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2515 to use type::index_type instead.
2516
2517 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2518
2519 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2520 methods.
2521 (TYPE_INDEX_TYPE): Use type::index_type.
2522 * gdbtypes.c (create_array_type_with_stride): Likewise.
2523
2524 2020-06-07 Tom Tromey <tom@tromey.com>
2525
2526 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2527 parameter.
2528 (generic_value_print): Update.
2529
2530 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2531
2532 Revert commit 982a38f60b0.
2533 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2534
2535 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2536
2537 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2538 avoid use after free.
2539
2540 2020-06-05 Tom de Vries <tdevries@suse.de>
2541
2542 * NEWS: Fix typos.
2543
2544 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2545
2546 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2547 the per_bfd object.
2548 (dwarf2_read_debug_names): Likewise.
2549 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2550 object when re-using a per_bfd object with an index.
2551
2552 2020-06-03 Tom de Vries <tdevries@suse.de>
2553
2554 PR symtab/26046
2555 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2556 children for C++.
2557 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2558 DW_TAG_subprogram.
2559
2560 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2561
2562 * ada-lang.c (ada_language_data): Delete skip_trampoline
2563 initializer.
2564 * c-lang.c (c_language_data): Likewise.
2565 (cplus_language_data): Likewise.
2566 (cplus_language::skip_trampoline): New member function.
2567 (asm_language_data): Delete skip_trampoline initializer.
2568 (minimal_language_data): Likewise.
2569 * d-lang.c (d_language_data): Likewise.
2570 * f-lang.c (f_language_data): Likewise.
2571 * go-lang.c (go_language_data): Likewise.
2572 * language.c (unk_lang_trampoline): Delete function.
2573 (skip_language_trampoline): Update.
2574 (unknown_language_data): Delete skip_trampoline initializer.
2575 (auto_language_data): Likewise.
2576 * language.h (language_data): Delete skip_trampoline field.
2577 (language_defn::skip_trampoline): New function.
2578 * m2-lang.c (m2_language_data): Delete skip_trampoline
2579 initializer.
2580 * objc-lang.c (objc_skip_trampoline): Delete function, move
2581 implementation to objc_language::skip_trampoline.
2582 (objc_language_data): Delete skip_trampoline initializer.
2583 (objc_language::skip_trampoline): New member function with
2584 implementation from objc_skip_trampoline.
2585 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2586 initializer.
2587 * p-lang.c (pascal_language_data): Likewise.
2588 * rust-lang.c (rust_language_data): Likewise.
2589
2590 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2591
2592 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2593 (ada_language::demangle): New member function.
2594 * c-lang.c (c_language_data): Delete la_demangle initializer.
2595 (cplus_language_data): Delete la_demangle initializer.
2596 (cplus_language::demangle): New member function.
2597 (asm_language_data): Delete la_demangle initializer.
2598 (minimal_language_data): Delete la_demangle initializer.
2599 * d-lang.c (d_language_data): Delete la_demangle initializer.
2600 (d_language::demangle): New member function.
2601 * f-lang.c (f_language_data): Delete la_demangle initializer.
2602 (f_language::demangle): New member function.
2603 * go-lang.c (go_language_data): Delete la_demangle initializer.
2604 (go_language::demangle): New member function.
2605 * language.c (language_demangle): Update.
2606 (unk_lang_demangle): Delete.
2607 (unknown_language_data): Delete la_demangle initializer.
2608 (unknown_language::demangle): New member function.
2609 (auto_language_data): Delete la_demangle initializer.
2610 (auto_language::demangle): New member function.
2611 * language.h (language_data): Delete la_demangle field.
2612 (language_defn::demangle): New function.
2613 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2614 * objc-lang.c (objc_language_data): Delete la_demangle
2615 initializer.
2616 (objc_language::demangle): New member function.
2617 * opencl-lang.c (opencl_language_data): Delete la_demangle
2618 initializer.
2619 * p-lang.c (pascal_language_data): Likewise.
2620 * rust-lang.c (rust_language_data): Likewise.
2621 (rust_language::demangle): New member function.
2622
2623 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2624
2625 * ada-lang.c (ada_language_data): Delete la_print_type
2626 initializer.
2627 (ada_language::print_type): New member function.
2628 * c-lang.c (c_language_data): Delete la_print_type initializer.
2629 (c_language::print_type): New member function.
2630 (cplus_language_data): Delete la_print_type initializer.
2631 (cplus_language::print_type): New member function.
2632 (asm_language_data): Delete la_print_type initializer.
2633 (asm_language::print_type): New member function.
2634 (minimal_language_data): Delete la_print_type initializer.
2635 (minimal_language::print_type): New member function.
2636 * d-lang.c (d_language_data): Delete la_print_type initializer.
2637 (d_language::print_type): New member function.
2638 * f-lang.c (f_language_data): Delete la_print_type initializer.
2639 (f_language::print_type): New member function.
2640 * go-lang.c (go_language_data): Delete la_print_type initializer.
2641 (go_language::print_type): New member function.
2642 * language.c (unk_lang_print_type): Delete.
2643 (unknown_language_data): Delete la_print_type initializer.
2644 (unknown_language::print_type): New member function.
2645 (auto_language_data): Delete la_print_type initializer.
2646 (auto_language::print_type): New member function.
2647 * language.h (language_data): Delete la_print_type field.
2648 (language_defn::print_type): New function.
2649 (LA_PRINT_TYPE): Update.
2650 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2651 (m2_language::print_type): New member function.
2652 * objc-lang.c (objc_language_data): Delete la_print_type
2653 initializer.
2654 (objc_language::print_type): New member function.
2655 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2656 to opencl_language::print_type.
2657 (opencl_language_data): Delete la_print_type initializer.
2658 (opencl_language::print_type): New member function, implementation
2659 from opencl_print_type.
2660 * p-lang.c (pascal_language_data): Delete la_print_type
2661 initializer.
2662 (pascal_language::print_type): New member function.
2663 * rust-lang.c (rust_print_type): Delete, implementation moved to
2664 rust_language::print_type.
2665 (rust_language_data): Delete la_print_type initializer.
2666 (rust_language::print_type): New member function, implementation
2667 from rust_print_type.
2668
2669 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2670
2671 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2672 implementation moves to...
2673 (ada_language::sniff_from_mangled_name): ...here. Update return
2674 type.
2675 (ada_language_data): Delete la_sniff_from_mangled_name
2676 initializer.
2677 * c-lang.c (c_language_data): Likewise.
2678 (cplus_language_data): Likewise.
2679 (cplus_language::sniff_from_mangled_name): New member function,
2680 implementation taken from gdb_sniff_from_mangled_name.
2681 (asm_language_data): Delete la_sniff_from_mangled_name
2682 initializer.
2683 (minimal_language_data): Likewise.
2684 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2685 implementation moves to cplus_language::sniff_from_mangled_name.
2686 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2687 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2688 moves to...
2689 (d_language::sniff_from_mangled_name): ...here.
2690 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2691 * f-lang.c (f_language_data): Likewise.
2692 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2693 moves to...
2694 (go_language::sniff_from_mangled_name): ...here.
2695 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2696 * language.c (language_sniff_from_mangled_name): Delete.
2697 (unknown_language_data): Delete la_sniff_from_mangled_name
2698 initializer.
2699 (auto_language_data): Likewise.
2700 * language.h (language_data): Delete la_sniff_from_mangled_name
2701 field.
2702 (language_defn::sniff_from_mangled_name): New function.
2703 (language_sniff_from_mangled_name): Delete declaration.
2704 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2705 field.
2706 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2707 implementation moves to...
2708 (objc_language::sniff_from_mangled_name): ...here.
2709 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2710 * opencl-lang.c (opencl_language_data): Likewise.
2711 * p-lang.c (pascal_language_data): Likewise.
2712 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2713 implementation moves to...
2714 (rust_language::sniff_from_mangled_name): ...here.
2715 (rust_language_data): Delete la_sniff_from_mangled_name
2716 initializer.
2717 * symtab.c (symbol_find_demangled_name): Call
2718 sniff_from_mangled_name member function.
2719
2720 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2721
2722 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2723 initializer.
2724 * c-lang.c (c_language_data): Likewise.
2725 (cplus_language_data): Likewise.
2726 (cplus_language::search_name_hash): New member function.
2727 (asm_language_data): Delete la_search_name_hash initializer.
2728 (minimal_language_data): Likewise.
2729 * d-lang.c (d_language_data): Likewise.
2730 * dictionary.c (default_search_name_hash): Rename to...
2731 (language_defn::search_name_hash): ...this.
2732 * f-lang.c (f_language_data): Likewise.
2733 (f_language::search_name_hash): New member function.
2734 * go-lang.c (go_language_data): Delete la_search_name_hash
2735 initializer.
2736 * language.c (unknown_language_data): Likewise.
2737 (auto_language_data): Likewise.
2738 * language.h (struct language_data): Delete la_search_name_hash
2739 field.
2740 (language_defn::search_name_hash): Declare new member function.
2741 (default_search_name_hash): Delete declaration.
2742 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2743 initializer.
2744 * objc-lang.c (objc_language_data): Likewise.
2745 * opencl-lang.c (opencl_language_data): Likewise.
2746 * p-lang.c (pascal_language_data): Likewise.
2747 * rust-lang.c (rust_language_data): Likewise.
2748 * symtab.c (search_name_hash): Update call.
2749
2750 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2751
2752 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2753 initializer.
2754 * c-lang.c (class compile_instance): Declare.
2755 (c_language_data): Delete la_get_compile_instance initializer.
2756 (c_language::get_compile_instance): New member function.
2757 (cplus_language_data): Delete la_get_compile_instance initializer.
2758 (cplus_language::get_compile_instance): New member function.
2759 (asm_language_data): Delete la_get_compile_instance initializer.
2760 (minimal_language_data): Likewise.
2761 * c-lang.h (c_get_compile_context): Update comment.
2762 (cplus_get_compile_context): Update comment.
2763 * compile/compile.c (compile_to_object): Update calls, don't rely
2764 on function pointer being NULL.
2765 * d-lang.c (d_language_data): Delete la_get_compile_instance
2766 initializer.
2767 * f-lang.c (f_language_data): Likewise.
2768 * go-lang.c (go_language_data): Likewise.
2769 * language.c (unknown_language_data): Likewise.
2770 (auto_language_data): Likewise.
2771 * language.h (language_data): Delete la_get_compile_instance field.
2772 (language_defn::get_compile_instance): New member function.
2773 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2774 initializer.
2775 * objc-lang.c (objc_language_data): Likewise.
2776 * opencl-lang.c (opencl_language_data): Likewise.
2777 * p-lang.c (pascal_language_data): Likewise.
2778 * rust-lang.c (rust_language_data): Likewise.
2779
2780 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2781
2782 * ada-lang.c (ada_add_all_symbols): Update comment.
2783 (ada_iterate_over_symbols): Delete, move implementation to...
2784 (ada_language::iterate_over_symbols): ...here, a new member
2785 function, rewrite to use range based for loop.
2786 (ada_language_data): Delete la_iterate_over_symbols initializer.
2787 * c-lang.c (c_language_data): Likewise.
2788 (cplus_language_data): Likewise.
2789 (asm_language_data): Likewise.
2790 (minimal_language_data): Likewise.
2791 * d-lang.c (d_language_data): Likewise.
2792 * f-lang.c (f_language_data): Likewise.
2793 * go-lang.c (go_language_data): Likewise.
2794 * language.c (unknown_language_data): Likewise.
2795 (auto_language_data): Likewise.
2796 * language.h (language_data): Delete la_iterate_over_symbols field.
2797 (language_defn::iterate_over_symbols): New member function.
2798 (LA_ITERATE_OVER_SYMBOLS): Update.
2799 * linespec.c (iterate_over_all_matching_symtabs): Update.
2800 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2801 initializer.
2802 * objc-lang.c (objc_language_data): Likewise.
2803 * opencl-lang.c (opencl_language_data): Likewise.
2804 * p-lang.c (pascal_language_data): Likewise.
2805 * rust-lang.c (rust_language_data): Likewise.
2806
2807 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2808
2809 * ada-lang.c (ada_language_data): Delete
2810 la_lookup_transparent_type initializer.
2811 * c-lang.c (c_language_data): Likewise.
2812 (cplus_language_data): Likewise.
2813 (cplus_language::lookup_transparent_type): New member function.
2814 (asm_language_data): Delete la_lookup_transparent_type
2815 initializer.
2816 (minimal_language_data): Likewise.
2817 * d-lang.c (d_language_data): Likewise.
2818 * f-lang.c (f_language_data): Likewise.
2819 * go-lang.c (go_language_data): Likewise.
2820 * language.c (unknown_language_data): Likewise.
2821 (auto_language_data): Likewise.
2822 * language.h (struct language_data): Delete
2823 la_lookup_transparent_type field.
2824 (language_defn::lookup_transparent_type): New member function.
2825 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2826 initializer.
2827 * objc-lang.c (objc_language_data): Likewise.
2828 * opencl-lang.c (opencl_language_data): Likewise.
2829 * p-lang.c (pascal_language_data): Likewise.
2830 * rust-lang.c (rust_language_data): Likewise.
2831 * symtab.c (symbol_matches_domain): Update call.
2832
2833 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2834
2835 * ada-lang.c (ada_language_arch_info): Delete function, move
2836 implementation to...
2837 (ada_language::language_arch_info): ...here, a new member
2838 function.
2839 (ada_language_data): Delete la_language_arch_info.
2840 * c-lang.c (c_language_data): Likewise.
2841 (c_language::language_arch_info): New member function.
2842 (cplus_language_arch_info): Delete function, move
2843 implementation to...
2844 (cplus_language::language_arch_info): ...here, a new member
2845 function.
2846 (cplus_language_data): Delete la_language_arch_info.
2847 (asm_language_data): Likewise.
2848 (asm_language::language_arch_info): New member function.
2849 (minimal_language_data): Delete la_language_arch_info.
2850 (minimal_language::language_arch_info): New member function.
2851 * d-lang.c (d_language_arch_info): Delete function, move
2852 implementation to...
2853 (d_language::language_arch_info): ...here, a new member
2854 function.
2855 (d_language_data): Delete la_language_arch_info.
2856 * f-lang.c (f_language_arch_info): Delete function, move
2857 implementation to...
2858 (f_language::language_arch_info): ...here, a new member
2859 function.
2860 (f_language_data): Delete la_language_arch_info.
2861 * go-lang.c (go_language_arch_info): Delete function, move
2862 implementation to...
2863 (go_language::language_arch_info): ...here, a new member
2864 function.
2865 (go_language_data): Delete la_language_arch_info.
2866 * language.c (unknown_language_data): Likewise.
2867 (unknown_language::language_arch_info): New member function.
2868 (auto_language_data): Delete la_language_arch_info.
2869 (auto_language::language_arch_info): New member function.
2870 (language_gdbarch_post_init): Update call to
2871 la_language_arch_info.
2872 * language.h (language_data): Delete la_language_arch_info
2873 function pointer.
2874 (language_defn::language_arch_info): New function.
2875 * m2-lang.c (m2_language_arch_info): Delete function, move
2876 implementation to...
2877 (m2_language::language_arch_info): ...here, a new member
2878 function.
2879 (m2_language_data): Delete la_language_arch_info.
2880 * objc-lang.c (objc_language_arch_info): Delete function, move
2881 implementation to...
2882 (objc_language::language_arch_info): ...here, a new member
2883 function.
2884 (objc_language_data): Delete la_language_arch_info.
2885 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2886 implementation to...
2887 (opencl_language::language_arch_info): ...here, a new member
2888 function.
2889 (opencl_language_data): Delete la_language_arch_info.
2890 * p-lang.c (pascal_language_arch_info): Delete function, move
2891 implementation to...
2892 (pascal_language::language_arch_info): ...here, a new member
2893 function.
2894 (pascal_language_data): Delete la_language_arch_info.
2895 * rust-lang.c (rust_language_arch_info): Delete function, move
2896 implementation to...
2897 (rust_language::language_arch_info): ...here, a new member
2898 function.
2899 (rust_language_data): Delete la_language_arch_info.
2900
2901 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2902
2903 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2904 initializer.
2905 * c-lang.c (c_language_data): Likewise.
2906 (cplus_language_data): Likewise.
2907 (cplus_language::pass_by_reference_info): New method.
2908 (asm_language_data): Delete la_pass_by_reference initializer.
2909 (minimal_language_data): Likewise.
2910 * cp-abi.c (cp_pass_by_reference): Remove use of
2911 default_pass_by_reference.
2912 * d-lang.c (d_language_data): Likewise.
2913 * f-lang.c (f_language_data): Likewise.
2914 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2915 default_pass_by_reference.
2916 * go-lang.c (go_language_data): Likewise.
2917 * language.c (language_pass_by_reference): Update.
2918 (default_pass_by_reference): Delete.
2919 (unknown_language_data): Delete la_pass_by_reference
2920 initializer.
2921 (auto_language_data): Likewise.
2922 * language.h (struct language_data): Delete la_pass_by_reference
2923 field.
2924 (language_defn::pass_by_reference_info): New member function.
2925 (default_pass_by_reference): Delete declaration.
2926 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2927 initializer.
2928 * objc-lang.c (objc_language_data): Likewise.
2929 * opencl-lang.c (opencl_language_data): Likewise.
2930 * p-lang.c (pascal_language_data): Likewise.
2931 * rust-lang.c (rust_language_data): Likewise.
2932
2933 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2934
2935 * ada-lang.c (ada_read_var_value): Delete function, move
2936 implementation to...
2937 (ada_language::read_var_value): ...here.
2938 (ada_language_data): Delete la_read_var_value initializer.
2939 * c-lang.c (c_language_data): Likewise.
2940 (cplus_language_data): Likewise.
2941 (minimal_language_data): Likewise.
2942 * d-lang.c (d_language_data): Likewise.
2943 * f-lang.c (f_language_data): Likewise.
2944 * findvar.c (default_read_var_value): Rename to...
2945 (language_defn::read_var_value): ...this.
2946 * findvar.c (read_var_value): Update header comment, and change to
2947 call member function instead of function pointer.
2948 * go-lang.c (go_language_data): Likewise.
2949 * language.c (unknown_language_data): Delete la_read_var_value
2950 initializer.
2951 (auto_language_data): Likewise.
2952 * language.h (struct language_data): Delete la_read_var_value
2953 field.
2954 (language_defn::read_var_value): New member function.
2955 (default_read_var_value): Delete declaration.
2956 * m2-lang.c (m2_language_data): Delete la_read_var_value
2957 initializer.
2958 * objc-lang.c (objc_language_data): Likewise.
2959 * opencl-lang.c (opencl_language_data): Likewise.
2960 * p-lang.c (pascal_language_data): Likewise.
2961 * rust-lang.c (rust_language_data): Likewise.
2962 * value.h (default_read_var_value): Delete declaration.
2963
2964 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2965
2966 * ada-lang.c (ada_print_array_index): Delete function, move
2967 implementation to...
2968 (ada_language::print_array_index): ...here.
2969 (ada_language_data): Delete la_print_array_index initializer.
2970 * c-lang.c (c_language_data): Likewise.
2971 (cplus_language_data): Likewise.
2972 (minimal_language_data): Likewise.
2973 * d-lang.c (d_language_data): Likewise.
2974 * f-lang.c (f_language_data): Likewise.
2975 * go-lang.c (go_language_data): Likewise.
2976 * language.c (default_print_array_index): Delete function, move
2977 implementation to...
2978 (language_defn::print_array_index): ...here.
2979 (unknown_language_data): Delete la_print_array_index initializer.
2980 (auto_language_data): Likewise.
2981 * language.h (struct language_data): Delete la_print_array_index
2982 field.
2983 (language_defn::print_array_index): New member function.
2984 (LA_PRINT_ARRAY_INDEX): Update.
2985 (default_print_array_index): Delete declaration.
2986 * m2-lang.c (m2_language_data): Delete la_print_array_index
2987 initializer.
2988 * objc-lang.c (objc_language_data): Likewise.
2989 * opencl-lang.c (opencl_language_data): Likewise.
2990 * p-lang.c (pascal_language_data): Likewise.
2991 * rust-lang.c (rust_language_data): Likewise.
2992
2993 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2994
2995 * gdb/ada-lang.c (ada_language_defn): Convert to...
2996 (ada_language_data): ...this.
2997 (class ada_language): New class.
2998 (ada_language_defn): New static global.
2999 * gdb/c-lang.c (c_language_defn): Convert to...
3000 (c_language_data): ...this.
3001 (class c_language): New class.
3002 (c_language_defn): New static global.
3003 (cplus_language_defn): Convert to...
3004 (cplus_language_data): ...this.
3005 (class cplus_language): New class.
3006 (cplus_language_defn): New static global.
3007 (asm_language_defn): Convert to...
3008 (asm_language_data): ...this.
3009 (class asm_language): New class.
3010 (asm_language_defn): New static global.
3011 (minimal_language_defn): Convert to...
3012 (minimal_language_data): ...this.
3013 (class minimal_language): New class.
3014 (minimal_language_defn): New static global.
3015 * gdb/d-lang.c (d_language_defn): Convert to...
3016 (d_language_data): ...this.
3017 (class d_language): New class.
3018 (d_language_defn): New static global.
3019 * gdb/f-lang.c (f_language_defn): Convert to...
3020 (f_language_data): ...this.
3021 (class f_language): New class.
3022 (f_language_defn): New static global.
3023 * gdb/go-lang.c (go_language_defn): Convert to...
3024 (go_language_data): ...this.
3025 (class go_language): New class.
3026 (go_language_defn): New static global.
3027 * gdb/language.c (unknown_language_defn): Remove declaration.
3028 (current_language): Initialize to nullptr, real initialization is
3029 moved to _initialize_language.
3030 (languages): Delete global.
3031 (language_defn::languages): Define.
3032 (set_language_command): Use language_defn::languages.
3033 (set_language): Likewise.
3034 (range_error): Likewise.
3035 (language_enum): Likewise.
3036 (language_def): Likewise.
3037 (add_set_language_command): Use language_def::languages for the
3038 language list, and language_def to lookup language pointers.
3039 (skip_language_trampoline): Use language_defn::languages.
3040 (unknown_language_defn): Convert to...
3041 (unknown_language_data): ...this.
3042 (class unknown_language): New class.
3043 (unknown_language_defn): New static global.
3044 (auto_language_defn): Convert to...
3045 (auto_language_data): ...this.
3046 (class auto_language): New class.
3047 (auto_language_defn): New static global.
3048 (language_gdbarch_post_init): Use language_defn::languages.
3049 (_initialize_language): Initialize current_language.
3050 * gdb/language.h (struct language_defn): Rename to...
3051 (struct language_data): ...this.
3052 (struct language_defn): New.
3053 (auto_language_defn): Delete.
3054 (unknown_language_defn): Delete.
3055 (minimal_language_defn): Delete.
3056 (ada_language_defn): Delete.
3057 (asm_language_defn): Delete.
3058 (c_language_defn): Delete.
3059 (cplus_language_defn): Delete.
3060 (d_language_defn): Delete.
3061 (f_language_defn): Delete.
3062 (go_language_defn): Delete.
3063 (m2_language_defn): Delete.
3064 (objc_language_defn): Delete.
3065 (opencl_language_defn): Delete.
3066 (pascal_language_defn): Delete.
3067 (rust_language_defn): Delete.
3068 * gdb/m2-lang.c (m2_language_defn): Convert to...
3069 (m2_language_data): ...this.
3070 (class m2_language): New class.
3071 (m2_language_defn): New static global.
3072 * gdb/objc-lang.c (objc_language_defn): Convert to...
3073 (objc_language_data): ...this.
3074 (class objc_language): New class.
3075 (objc_language_defn): New static global.
3076 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3077 (opencl_language_data): ...this.
3078 (class opencl_language): New class.
3079 (opencl_language_defn): New static global.
3080 * gdb/p-lang.c (pascal_language_defn): Convert to...
3081 (pascal_language_data): ...this.
3082 (class pascal_language): New class.
3083 (pascal_language_defn): New static global.
3084 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3085 language pointer, update comment format.
3086 * gdb/rust-lang.c (rust_language_defn): Convert to...
3087 (rust_language_data): ...this.
3088 (class rust_language): New class.
3089 (rust_language_defn): New static global.
3090
3091 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3092
3093 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3094 member variable.
3095 <m_stmt_at_address>: New member variable.
3096 (lnp_state_machine::record_line): Don't record some lines, update
3097 tracking of is_stmt at the same address.
3098 (lnp_state_machine::lnp_state_machine): Initialise new member
3099 variables.
3100
3101 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3102
3103 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3104 "-include gnu-nat-mig.h".
3105 * gnu-nat-mig.h: New file.
3106 * gnu-nat.c: Include "gnu-nat-mig.h".
3107 (exc_server, msg_reply_server, notify_server,
3108 process_reply_server): Remove declarations.
3109
3110 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3111
3112 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3113 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3114 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3115 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3116 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3117 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3118 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3119 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3120 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3121 to gnu_nat_target class.
3122 * gnu-nat.c: Likewise.
3123 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3124 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3125 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3126 object.
3127 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3128 instead of `gnu_target'.
3129
3130 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3131
3132 * i386-gnu-tdep.c: Include "gdbcore.h"
3133 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3134 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3135 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3136 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3137 i386_gnu_sigcontext_addr): New functions
3138 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3139 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3140 tdep.
3141
3142 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3143
3144 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3145 before fork_inferior call. Avoid calling it if target_is_pushed returns
3146 true.
3147
3148 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3149
3150 * gnu-nat.h (gnu_target): New variable declaration.
3151 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3152 gnu_target.
3153 * gnu-nat.c (gnu_target): New variable.
3154 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3155 add_thread_silent, and add_thread calls.
3156 (gnu_nat_target::create_inferior): Pass gnu_target to
3157 add_thread_silent, thread_change_ptid call.
3158 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3159 call.
3160
3161 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3162
3163 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3164 (gnu_nat_target::find_memory_regions): Remove unused
3165 `old_address' variable.
3166
3167 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3168
3169 * gnu-nat.c: Include "gdbarch.h".
3170
3171 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3172
3173 * reply_mig_hack.awk (Error return): Cast function through
3174 void *, to bypass compiler function call check.
3175
3176 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3177
3178 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3179 $(srcdir)/reply_mig_hack.awk.
3180
3181 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3182
3183 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3184
3185 2020-05-30 Jonny Grant <jg@jguk.org>
3186
3187 * configure.ac (ACX_BUGURL): change bug URL to https.
3188
3189 2020-05-30 Pedro Alves <palves@redhat.com>
3190
3191 * cp-support.c (replace_typedefs_template): New.
3192 (replace_typedefs_qualified_name): Handle
3193 DEMANGLE_COMPONENT_TEMPLATE.
3194
3195 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3196
3197 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3198 dwarf2/index-cache.h, dwarf2/index-write.c,
3199 dwarf2/index-write.h, dwarf2/line-header.c,
3200 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3201 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3202 variables and fields from `dwarf2_per_objfile` to just
3203 `per_objfile` throughout.
3204
3205 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3206
3207 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3208 <push_dwarf_reg_entry_value>: Add comment.
3209
3210 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3211 Keith Seitz <keiths@redhat.com>
3212
3213 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3214 instead of PyEval_ReleaseLock.
3215 (class gdbpy_gil): Move to earlier in file.
3216 (finalize_python): Set gdb_python_initialized.
3217 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3218 when not initialized.
3219
3220 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3221
3222 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3223 <push_dwarf_reg_entry_value>: Remove assert. Override
3224 per_objfile with caller_per_objfile.
3225
3226 2020-05-28 Tom de Vries <tdevries@suse.de>
3227
3228 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3229 PR gold/15646 workaround to symbol kind "type".
3230
3231 2020-05-27 Tom Tromey <tromey@adacore.com>
3232
3233 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3234
3235 2020-05-27 Tom Tromey <tromey@adacore.com>
3236
3237 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3238 Use htab_find_with_hash.
3239 <add_abbrev>: Remove "abbrev_number" parameter.
3240 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3241 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3242 (hash_abbrev): Add comment.
3243 (abbrev_table::lookup_abbrev): Move to header file.
3244 (abbrev_table::read): Update.
3245
3246 2020-05-27 Tom Tromey <tromey@adacore.com>
3247
3248 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3249 method.
3250 <canonical_name>: New member.
3251 <raw_name>: Rename from "name".
3252 (partial_die_info): Initialize canonical_name.
3253 (scan_partial_symbols): Check raw_name.
3254 (partial_die_parent_scope, partial_die_full_name)
3255 (add_partial_symbol, add_partial_subprogram)
3256 (add_partial_enumeration, load_partial_dies): Use "name" method.
3257 (partial_die_info::name): New method.
3258 (partial_die_info::read, guess_partial_die_structure_name)
3259 (partial_die_info::fixup): Update.
3260
3261 2020-05-27 Tom Tromey <tromey@adacore.com>
3262
3263 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3264 <get_ref_die_offset>: Inline.
3265 <get_ref_die_offset_complaint>: New method.
3266 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3267 (attribute::get_ref_die_offset_complaint): Rename from
3268 get_ref_die_offset. Just issue complaint.
3269
3270 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3271
3272 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3273
3274 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3275
3276 * exec.c (exec_file_attach): Use errno value of first openp failure.
3277
3278 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3279
3280 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3281 Don't close thread handle.
3282
3283 2020-05-27 Tom Tromey <tom@tromey.com>
3284 Simon Marchi <simon.marchi@efficios.com>
3285
3286 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3287 shared_ptr.
3288 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3289 member.
3290 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3291 dwarf2_per_bfd_objfile_data_key>: New globals.
3292 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3293 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3294 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3295 shared.
3296 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3297 short-circuit when sharing.
3298 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3299 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3300
3301 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3302
3303 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3304 to...
3305 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3306 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3307
3308 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3309
3310 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3311 build_name_components, find_name_components_bounds>:
3312 Add per_objfile parameter.
3313 (struct mapped_index) <symbol_name_at>: Likewise.
3314 (struct mapped_debug_names): Remove constructor.
3315 <dwarf2_per_objfile>: Remove field.
3316 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3317 (mapped_index_base::find_name_components_bounds,
3318 mapped_index_base::build_name_components,
3319 dw2_expand_symtabs_matching_symbol): Likewise.
3320 (class mock_mapped_index) <symbol_name_at>: Likewise.
3321 (check_match): Likewise.
3322 (check_find_bounds_finds): Likewise.
3323 (test_mapped_index_find_name_component_bounds): Update.
3324 (CHECK_MATCH): Update.
3325 (dw2_expand_symtabs_matching): Update.
3326 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3327 per_objfile parameter.
3328 <find_vec_in_debug_names>: Likewise.
3329 <m_per_objfile>: New field.
3330 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3331 parameter.
3332 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3333 (dw2_debug_names_iterator::next): Update.
3334 (dw2_debug_names_lookup_symbol): Update.
3335 (dw2_debug_names_expand_symtabs_for_function): Update.
3336 (dw2_debug_names_map_matching_symbols): Update.
3337 (dw2_debug_names_expand_symtabs_matching): Update.
3338 (dwarf2_read_debug_names): Update.
3339
3340 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3341
3342 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3343 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3344 move to dwarf2_per_objfile.
3345 <read_in_chain>: Remove.
3346 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3347 remove_all_cus, age_comp_units>: New methods.
3348 <m_dwarf2_cus>: New member.
3349 (struct dwarf2_per_cu_data) <cu>: Remove.
3350 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3351 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3352 moved to methods of dwarf2_per_objfile.
3353 (dwarf2_clear_marks): Remove.
3354 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3355 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3356 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3357 (dwarf2_per_objfile::remove_all_cus): New.
3358 (class free_cached_comp_units) <~free_cached_comp_units>:
3359 Update.
3360 (load_cu): Update.
3361 (dw2_do_instantiate_symtab): Adjust.
3362 (fill_in_sig_entry_from_dwo_entry): Adjust.
3363 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3364 (cutu_reader::cutu_reader): Likewise.
3365 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3366 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3367 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3368 and dwarf2_per_objfile::age_comp_units.
3369 (load_partial_comp_unit): Update.
3370 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3371 (process_queue): Likewise.
3372 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3373 backlink.
3374 (dwarf2_read_addr_index): Likewise.
3375 (follow_die_offset): Likewise.
3376 (dwarf2_fetch_die_loc_sect_off): Likewise.
3377 (dwarf2_fetch_constant_bytes): Likewise.
3378 (dwarf2_fetch_die_type_sect_off): Likewise.
3379 (follow_die_sig_1): Likewise.
3380 (load_full_type_unit): Likewise.
3381 (read_signatured_type): Likewise.
3382 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3383 (dwarf2_cu::~dwarf2_cu): Remove.
3384 (dwarf2_per_objfile::get_cu): New.
3385 (dwarf2_per_objfile::set_cu): New.
3386 (age_cached_comp_units): Rename to...
3387 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3388 to std::unordered_map.
3389 (free_one_cached_comp_unit): Rename to...
3390 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3391 to std::unordered_map.
3392 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3393 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3394 a dwarf2_per_objfile in data.
3395 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3396 (dwarf2_clear_marks): Remove.
3397
3398 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3399
3400 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3401 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3402 (init_tu_and_read_dwo_dies): Likewise.
3403 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3404 (cutu_reader::cutu_reader): Likewise.
3405 (load_partial_comp_unit): Likewise.
3406 (process_psymtab_comp_unit): Update.
3407 (build_type_psymtabs_1): Update.
3408 (process_skeletonless_type_unit): Update.
3409 (load_full_comp_unit): Update.
3410 (find_partial_die): Update.
3411 (dwarf2_read_addr_index): Update.
3412 (read_signatured_type): Update.
3413
3414 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3415
3416 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3417 m_header_read_in>: New fields.
3418 <get_header>: New method.
3419 * dwarf2/read.c (per_cu_header_read_in): Remove.
3420 (dwarf2_per_cu_data::get_header): New.
3421 (dwarf2_per_cu_data::addr_size): Update.
3422 (dwarf2_per_cu_data::offset_size): Update.
3423 (dwarf2_per_cu_data::ref_addr_size): Update.
3424
3425 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3426
3427 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3428 (dw2_do_instantiate_symtab): Update.
3429 (queue_and_load_all_dwo_tus): Change parameter from
3430 dwarf2_per_cu_data to dwarf2_cu.
3431 (dwarf2_fetch_die_loc_sect_off): Update.
3432 (dwarf2_fetch_constant_bytes): Update.
3433 (dwarf2_fetch_die_type_sect_off): Update.
3434
3435 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3436
3437 * dwarf2/read.c (process_full_comp_unit,
3438 process_full_type_unit): Remove per_cu, per_objfile paramters.
3439 Add dwarf2_cu parameter.
3440 (process_queue): Update.
3441
3442 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3443
3444 * dwarf2/read.c (create_cu_from_index_list): Replace
3445 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3446 (create_cus_from_index_list): Likewise.
3447 (create_cus_from_index): Likewise.
3448 (create_signatured_type_table_from_index): Likewise.
3449 (create_cus_from_debug_names_list): Likewise.
3450 (create_cus_from_debug_names): Likewise.
3451 (dwarf2_read_gdb_index): Update.
3452 (dwarf2_read_debug_names): Update.
3453
3454 2020-05-27 Tom Tromey <tom@tromey.com>
3455 Simon Marchi <simon.marchi@efficios.com>
3456
3457 * dwarf2/read.h (struct dwarf2_per_objfile)
3458 <get_type_for_signatured_type, set_type_for_signatured_type>:
3459 New methods.
3460 <m_type_map>: New member.
3461 (struct signatured_type) <type>: Remove.
3462 * dwarf2/read.c
3463 (dwarf2_per_objfile::get_type_for_signatured_type,
3464 dwarf2_per_objfile::set_type_for_signatured_type): New.
3465 (get_signatured_type): Use new methods.
3466
3467 2020-05-27 Tom Tromey <tom@tromey.com>
3468 Simon Marchi <simon.marchi@efficios.com>
3469
3470 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3471 (struct dwarf2_per_objfile) <type_units>: New member.
3472 <get_type_unit_group_unshareable>: New method.
3473 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3474 num_symtabs, symtabs>: Remove; move to
3475 type_unit_group_unshareable.
3476 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3477 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3478 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3479
3480 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3481
3482 * dwarf2/read.h (struct dwarf2_per_cu_data):
3483 <dwarf2_per_objfile>: Remove.
3484 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3485 dwarf2_per_objfile.
3486 (create_signatured_type_table_from_index): Likewise.
3487 (create_signatured_type_table_from_debug_names): Likewise.
3488 (create_debug_type_hash_table): Likewise.
3489 (fill_in_sig_entry_from_dwo_entry): Likewise.
3490 (create_type_unit_group): Likewise.
3491 (read_comp_units_from_section): Likewise.
3492 (create_cus_hash_table): Likewise.
3493
3494 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3495
3496 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3497 dwarf2_per_cu_data::dwarf2_per_objfile.
3498 (compute_compunit_symtab_includes): Likewise.
3499 (dwarf2_cu::start_symtab): Likewise.
3500
3501 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3502
3503 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3504 parameter.
3505 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3506 (read_namespace_alias): Update.
3507 (lookup_die_type): Update.
3508 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3509 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3510 Update.
3511 (disassemble_dwarf_expression): Update.
3512
3513 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3514
3515 * dwarf2/read.h (struct dwarf2_queue_item): Add
3516 dwarf2_per_objfile parameter, assign new parameter.
3517 <per_objfile>: New field.
3518 * dwarf2/read.c (free_one_cached_comp_unit): Add
3519 dwarf2_per_objfile parameter.
3520 (queue_comp_unit): Likewise.
3521 (dw2_do_instantiate_symtab): Update.
3522 (process_psymtab_comp_unit): Update.
3523 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3524 (process_imported_unit_die): Update.
3525 (queue_and_load_dwo_tu): Update.
3526 (follow_die_offset): Update.
3527 (follow_die_sig_1): Update.
3528
3529 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3530
3531 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3532 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3533 (read_call_site_scope): Assign per_objfile.
3534 (dwarf2_per_cu_data::objfile): Remove.
3535 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3536 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3537 dwarf2_per_objfile parameter.
3538 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3539 dwarf2_per_objfile parameter.
3540 (dwarf_expr_reg_to_entry_parameter): Add output
3541 dwarf2_per_objfile parameter.
3542 (locexpr_get_frame_base): Update.
3543 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3544 <push_dwarf_reg_entry_value>: Update.
3545 <call_site_to_target_addr>: Update.
3546 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3547 parameter.
3548 (value_of_dwarf_reg_entry): Update.
3549 (rw_pieced_value): Update.
3550 (indirect_synthetic_pointer): Update.
3551 (dwarf2_evaluate_property): Update.
3552 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3553 parameter.
3554 (locexpr_read_variable): Update.
3555 (locexpr_get_symbol_read_needs): Update.
3556 (loclist_read_variable): Update.
3557
3558 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3559
3560 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3561 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3562 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3563 parameter.
3564 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3565 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3566 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3567 parameter.
3568 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3569 sect_variable_value): Add dwarf2_per_objfile parameter.
3570 (class dwarf_evaluate_loc_desc) <dwarf_call,
3571 dwarf_variable_value>: Update.
3572 (fetch_const_value_from_synthetic_pointer): Add
3573 dwarf2_per_objfile parameter.
3574 (fetch_const_value_from_synthetic_pointer): Update.
3575 (coerced_pieced_ref): Update.
3576 (class symbol_needs_eval_context) <dwarf_call,
3577 dwarf_variable_value>: Update.
3578 (dwarf2_compile_expr_to_ax): Update.
3579
3580 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3581
3582 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3583 parameter.
3584 (dwarf2_evaluate_loc_desc_full): Update.
3585
3586 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3587
3588 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3589 parameter.
3590 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3591 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3592 dwarf2_per_objfile parameter.
3593 (decode_debug_loc_dwo_addresses): Likewise.
3594 (dwarf2_find_location_expression): Update.
3595 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3596 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3597 parameter.
3598 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3599 parameter.
3600 (locexpr_describe_location_1): Likewise.
3601 (locexpr_describe_location): Update.
3602
3603 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3604
3605 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3606 Remove.
3607 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3608 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3609 (dwarf2_compile_property_to_c): Update.
3610 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3611 use text offset from objfile.
3612 (locexpr_tracepoint_var_ref): Update.
3613 (locexpr_generate_c_location): Update.
3614 (loclist_describe_location): Update.
3615 (loclist_tracepoint_var_ref): Update.
3616 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3617 dwarf2_per_objfile parameter.
3618 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3619 use text offset from objfile.
3620 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3621
3622 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3623
3624 * dwarf2/expr.h (struct dwarf_expr_context)
3625 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3626 <offset>: Remove.
3627 <per_objfile>: New member.
3628 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3629 dwarf2_per_objfile parameter. Don't set offset, set
3630 per_objfile.
3631 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3632 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3633 a dwarf2_per_objfile object instead of an offset.
3634 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3635 constructor.
3636 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3637 to dwarf2_expr_executor constructor. Don't set offset.
3638 (dwarf2_fetch_cfa_info): Update.
3639 (struct dwarf2_frame_cache) <text_offset>: Remove.
3640 <per_objfile>: New field.
3641 (dwarf2_frame_cache): Update.
3642 (dwarf2_frame_prev_register): Update.
3643 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3644 <dwarf_evaluate_loc_desc>: Add constructor.
3645 (dwarf2_evaluate_loc_desc_full): Update.
3646 (dwarf2_locexpr_baton_eval): Update.
3647 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3648 Add constructor.
3649 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3650
3651 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3652
3653 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3654 addr_sized_int_type>: Move to dwarf2_cu.
3655 <int_type>: Move to dwarf2_per_objfile.
3656 (struct dwarf2_per_objfile) <int_type>: Move here.
3657 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3658 addr_sized_int_type>: Move here.
3659 (read_func_scope): Update.
3660 (read_array_type): Update.
3661 (read_tag_string_type): Update.
3662 (attr_to_dynamic_prop): Update.
3663 (dwarf2_per_cu_data::int_type): Rename to...
3664 (dwarf2_per_objfile::int_type): ... this.
3665 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3666 (dwarf2_cu::addr_sized_int_type): ... this.
3667 (read_subrange_type): Update.
3668 (dwarf2_per_cu_data::addr_type): Rename to...
3669 (dwarf2_cu::addr_type): ... this.
3670 (set_die_type): Update.
3671
3672 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3673
3674 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3675 data through per_cu->cu.
3676
3677 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3678
3679 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3680 dwarf2_per_cu_data parameter fo dwarf2_cu.
3681 (lookup_dwo_type_unit): Likewise.
3682 (read_cutu_die_from_dwo): Likewise.
3683 (lookup_dwo_unit): Likewise.
3684 (open_and_init_dwo_file): Likewise.
3685 (lookup_dwo_cutu): Likewise.
3686 (lookup_dwo_comp_unit): Likewise.
3687 (lookup_dwo_type_unit): Likewise.
3688 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3689 (cutu_reader::cutu_reader): Update.
3690
3691 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3692
3693 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3694 parameter.
3695 (process_full_type_unit): Likewise.
3696 (process_queue): Update.
3697
3698 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3699
3700 * dwarf2/read.c (recursively_compute_inclusions): Add
3701 dwarf2_per_objfile parameter.
3702 (compute_compunit_symtab_includes): Likewise.
3703 (process_cu_includes): Update.
3704
3705 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3706
3707 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3708 parameter.
3709 (create_type_unit_group): Update.
3710 (process_psymtab_comp_unit_reader): Update.
3711 (build_type_psymtabs_reader): Update.
3712
3713 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3714
3715 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3716 object through m_this_cu->cu.
3717
3718 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3719
3720 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3721 the info parameter.
3722 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3723
3724 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3725
3726 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3727 per_objfile parameter.
3728 (load_full_type_unit): Add per_objfile parameter.
3729 (read_signatured_type): Likewise.
3730 (load_full_comp_unit): Likewise.
3731 (load_cu): Likewise.
3732 (dw2_do_instantiate_symtab): Likewise.
3733 (dw2_get_file_names): Likewise.
3734 (dw2_map_symtabs_matching_filename): Update.
3735 (dw_expand_symtabs_matching_file_matcher): Update.
3736 (dw2_map_symbol_filenames): Update.
3737 (process_psymtab_comp_unit): Add per_objfile parameter.
3738 (build_type_psymtabs_1): Update.
3739 (process_skeletonless_type_unit): Update.
3740 (dwarf2_build_psymtabs_hard): Update.
3741 (load_partial_comp_unit): Add per_objfile parameter.
3742 (scan_partial_symbols): Update.
3743 (load_full_comp_unit): Add per_objfile parameter.
3744 (process_imported_unit_die): Update.
3745 (create_cus_hash_table): Update.
3746 (find_partial_die): Update.
3747 (dwarf2_read_addr_index): Update.
3748 (follow_die_offset): Update.
3749 (dwarf2_fetch_die_loc_sect_off): Update.
3750 (dwarf2_fetch_constant_bytes): Update.
3751 (dwarf2_fetch_die_type_sect_off): Update.
3752 (follow_die_sig_1): Update.
3753 (load_full_type_unit): Add per_objfile parameter.
3754 (read_signatured_type): Likewise.
3755
3756 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3757
3758 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3759 of objfile_name.
3760
3761 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3762
3763 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3764 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3765 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3766 field.
3767 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3768 (create_cus_from_index): Update.
3769 (dwarf2_read_gdb_index): Update.
3770 (create_cus_from_debug_names): Update.
3771 (dwarf2_read_debug_names): Update.
3772 (get_abbrev_section_for_cu): Update.
3773 (create_all_comp_units): Update.
3774 (read_attribute_value): Update.
3775 (get_debug_line_section): Update.
3776 * dwarf2/index-cache.c (index_cache::store): Update.
3777 * dwarf2/index-write.c (save_gdb_index_command): Update.
3778 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3779
3780 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3781
3782 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3783 member.
3784 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3785 dwarf2_per_cu_data::per_bfd.
3786 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3787 (create_type_unit_group): Likewise.
3788 (queue_comp_unit): Remove reference to
3789 per_cu->dwarf2_per_objfile.
3790 (maybe_queue_comp_unit): Likewise.
3791 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3792 (create_cus_hash_table): Assign new field.
3793
3794 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3795
3796 * dwarf2/read.c: Replace
3797 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3798 dwarf2_cu->per_objfile throughout.
3799
3800 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3801
3802 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3803 parameter, don't use per_cu->dwarf2_per_objfile.
3804 (dw2_instantiate_symtab): Likewise.
3805 (dw2_find_last_source_symtab): Update.
3806 (dw2_map_expand_apply): Update.
3807 (dw2_lookup_symbol): Update.
3808 (dw2_expand_symtabs_for_function): Update.
3809 (dw2_expand_all_symtabs): Update.
3810 (dw2_expand_symtabs_with_fullname): Update.
3811 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3812 don't use per_cu->dwarf2_per_objfile.
3813 (dw2_expand_marked_cus): Update.
3814 (dw2_find_pc_sect_compunit_symtab): Update.
3815 (dw2_debug_names_lookup_symbol): Update.
3816 (dw2_debug_names_expand_symtabs_for_function): Update.
3817 (dw2_debug_names_map_matching_symbols): Update.
3818 (dwarf2_psymtab::expand_psymtab): Update.
3819
3820 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3821
3822 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3823 <per_objfile>: New member.
3824 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3825 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3826 call to dwarf2_cu.
3827 (cutu_reader::cutu_reader): Update.
3828 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3829
3830 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3831
3832 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3833 struct dwarf2_per_objfile.
3834 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3835 dwarf2_per_bfd.
3836 * dwarf2/read.c (set_die_type): Update.
3837 (get_die_type_at_offset): Update.
3838
3839 2020-05-27 Tom Tromey <tom@tromey.com>
3840 Simon Marchi <simon.marchi@efficios.com>
3841
3842 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3843 method.
3844 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3845 get_symtab, set_symtab>: New methods.
3846 <m_symtabs>: New field.
3847 (struct dwarf2_psymtab): Derive from partial_symtab.
3848 <readin_p, get_compunit_symtab>: Declare methods.
3849 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3850 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3851 New methods.
3852 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3853 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3854 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3855 (dw2_symtab_iter_next, dw2_print_stats)
3856 (dw2_expand_symtabs_with_fullname)
3857 (dw2_expand_symtabs_matching_one)
3858 (dw_expand_symtabs_matching_file_matcher)
3859 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3860 (dw2_debug_names_iterator::next)
3861 (dw2_debug_names_map_matching_symbols)
3862 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3863 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3864 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3865 New methods.
3866 (get_compunit_symtab, process_full_comp_unit)
3867 (process_full_type_unit): Update.
3868 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3869
3870 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3871
3872 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3873 then introduce a new dwarf2_per_objfile type.
3874 <read_line_string>: Move to the new dwarf2_per_objfile type.
3875 <objfile>: Likewise.
3876 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3877 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3878 dwarf2_per_objfile->per_bfd.
3879 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3880 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3881 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3882 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3883 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3884 (dwarf2_per_objfile::locate_sections): Rename to...
3885 (dwarf2_per_bfd::locate_sections): ... this.
3886 (dwarf2_per_objfile::get_cutu): Rename to...
3887 (dwarf2_per_bfd::get_cutu): ... this.
3888 (dwarf2_per_objfile::get_cu): Rename to...
3889 (dwarf2_per_bfd::get_cu): ... this.
3890 (dwarf2_per_objfile::get_tu): Rename to...
3891 (dwarf2_per_bfd::get_tu): ... this.
3892 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3893 (dwarf2_per_bfd::allocate_per_cu): ... this.
3894 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3895 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3896 (get_gdb_index_contents_ftype): Change parameter from
3897 dwarf2_per_objfile to dwarf2_per_bfd.
3898 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3899 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3900
3901 2020-05-27 Tom Tromey <tom@tromey.com>
3902 Simon Marchi <simon.marchi@efficios.com>
3903
3904 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3905 (allocate_piece_closure): Set "per_objfile" member.
3906 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3907 (locexpr_describe_location, loclist_describe_location): Use new
3908 member.
3909 * dwarf2/read.c (read_call_site_scope)
3910 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3911 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3912 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3913 handle_data_member_location): Set per_objfile member.
3914 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3915 member.
3916 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3917
3918 2020-05-27 Tom Tromey <tom@tromey.com>
3919
3920 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3921 allocate_signatured_type>: Declare new methods.
3922 <m_num_psymtabs>: New member.
3923 (struct dwarf2_per_cu_data) <index>: New member.
3924 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3925 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3926 (create_cu_from_index_list): Use allocate_per_cu.
3927 (create_signatured_type_table_from_index)
3928 (create_signatured_type_table_from_debug_names)
3929 (create_debug_type_hash_table, add_type_unit)
3930 (read_comp_units_from_section): Use allocate_signatured_type.
3931
3932 2020-05-27 Tom Tromey <tom@tromey.com>
3933
3934 * psymtab.c (partial_map_expand_apply)
3935 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3936 (psym_lookup_global_symbol_language)
3937 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3938 (psym_print_stats, psym_expand_symtabs_for_function)
3939 (psym_map_symbol_filenames, psym_map_matching_symbols)
3940 (psym_expand_symtabs_matching)
3941 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3942 (maintenance_check_psymtabs): Update.
3943 * psympriv.h (struct partial_symtab) <readin_p,
3944 get_compunit_symtab>: Add objfile parameter.
3945 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3946 Likewise.
3947 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3948 get_compunit_symtab>: Likewise.
3949 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3950
3951 2020-05-27 Tom Tromey <tom@tromey.com>
3952
3953 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3954 member.
3955 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3956 (create_cu_from_index_list)
3957 (create_signatured_type_table_from_index)
3958 (create_signatured_type_table_from_debug_names)
3959 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3960 (dwarf2_create_include_psymtab)
3961 (create_debug_type_hash_table, add_type_unit)
3962 (create_type_unit_group, read_comp_units_from_section)
3963 (dwarf2_compute_name, create_cus_hash_table)
3964 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3965 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3966 obstack.
3967 (dw2_get_real_path): Likewise. Change argument to
3968 dwarf2_per_objfile.
3969
3970 2020-05-27 Luis Machado <luis.machado@linaro.org>
3971
3972 PR tdep/26000
3973 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3974 for ldrd (immediate).
3975
3976 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3977
3978 * command.h: Add comment giving the name of class_tui.
3979 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3980 create the fake command for the help for class_tui.
3981
3982 2020-05-26 Tom Tromey <tromey@adacore.com>
3983
3984 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3985 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3986 (val_atr): New function.
3987 (value_val_atr): Use it.
3988 * ada-valprint.c (print_optional_low_bound): Change low bound
3989 handling for enums.
3990 (val_print_packed_array_elements): Don't call discrete_position.
3991 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3992 discrete_position for enum types.
3993 * language.c (default_print_array_index): Change type.
3994 * language.h (struct language_defn) <la_print_array_index>: Add
3995 index_type parameter, change type of index_value.
3996 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3997 (default_print_array_index): Update.
3998 * valprint.c (maybe_print_array_index): Don't call
3999 value_from_longest. Update.
4000 (value_print_array_elements): Don't call discrete_position.
4001
4002 2020-05-26 Tom Tromey <tromey@adacore.com>
4003
4004 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4005 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4006
4007 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4008
4009 PR gdb/13519
4010 * avr-tdep.c (avr_integer_to_address): Return data or code
4011 address accordingly to the second 'type' argument of the
4012 function.
4013
4014 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4015
4016 * infcmd.c, inferior.h: (construct_inferior_arguments):
4017 Moved function from here to gdbsupport/common-inferior.{h,cc}
4018
4019 2020-05-23 Tom Tromey <tom@tromey.com>
4020
4021 Revert commit eca1f90c:
4022 * NEWS: Remove entry for completion styling.
4023 * completer.c (_rl_completion_prefix_display_length): Move
4024 declaration later.
4025 (gdb_fnprint): Revert.
4026 (gdb_display_match_list_1): Likewise.
4027 * cli/cli-style.c (completion_prefix_style)
4028 (completion_difference_style, completion_suffix_style): Remove.
4029 (_initialize_cli_style): Revert.
4030 * cli/cli-style.h (completion_prefix_style)
4031 (completion_difference_style, completion_suffix_style): Don't
4032 declare.
4033
4034 2020-05-24 Pedro Alves <palves@redhat.com>
4035
4036 * symtab.c (completion_list_add_name): Return boolean indication
4037 of whether the symbol matched.
4038 (completion_list_add_symbol): Don't try to remove C++ aliases if
4039 the symbol didn't match in the first place.
4040 * symtab.h (completion_list_add_name): Return bool.
4041
4042 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4043
4044 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4045 type::field.
4046
4047 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4048
4049 GDB 9.2 released.
4050
4051 2020-05-23 Tom Tromey <tom@tromey.com>
4052
4053 * NEWS: Add entry for completion styling.
4054 * completer.c (_rl_completion_prefix_display_length): Move
4055 declaration earlier.
4056 (gdb_fnprint): Use completion_style.
4057 (gdb_display_match_list_1): Likewise.
4058 * cli/cli-style.c (completion_prefix_style)
4059 (completion_difference_style, completion_suffix_style): New
4060 globals.
4061 (_initialize_cli_style): Register new globals.
4062 * cli/cli-style.h (completion_prefix_style)
4063 (completion_difference_style, completion_suffix_style): Declare.
4064
4065 2020-05-23 Pedro Alves <palves@redhat.com>
4066
4067 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4068 (parse_escape): Use ISDIGIT instead of isdigit.
4069 (puts_debug): Use gdb_isprint instead of isprint.
4070 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4071 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4072 ISSPACE instead of isspace.
4073 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4074 instead of isspace.
4075 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4076 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4077 instead of isxdigit and ISDIGIT instead of isdigit.
4078
4079 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4080
4081 * gdbtypes.h (struct type) <field>: New method.
4082 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4083 or type::field.
4084
4085 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4086
4087 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4088 (TYPE_FIELDS): Use type::fields. Change all call sites that
4089 modify the propery to use type::set_fields instead.
4090
4091 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4092
4093 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4094 type::num_fields instead.
4095
4096 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4097
4098 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4099 methods.
4100 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4101 that modify the number of fields to use type::set_num_fields
4102 instead.
4103
4104 2020-05-22 Tom Tromey <tromey@adacore.com>
4105
4106 * compile/compile-object-load.h (munmap_list_free): Don't
4107 declare.
4108
4109 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4110
4111 * annotate.c (annotate_source_line): Update return type, add call
4112 to update current symtab and line.
4113 * annotate.h (annotate_source_line): Update return type, and
4114 extend header comment.
4115 * source.c (info_line_command): Check annotation_level before
4116 calling annotate_source_line.
4117 * stack.c (print_frame_info): If calling annotate_source_line
4118 returns true, then don't print any other source line information.
4119
4120 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4121
4122 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4123
4124 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4125
4126 * coffread.c (patch_type): Remove NULL check before xfree.
4127 * corefile.c (set_gnutarget): Likewise.
4128 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4129 * exec.c (build_section_table): Likewise.
4130 * remote.c (remote_target::pass_signals): Likewise.
4131 * utils.c (n_spaces): Likewise.
4132 * cli/cli-script.c (document_command): Likewise.
4133 * i386-windows-tdep.c (core_process_module_section): Likewise.
4134 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4135
4136 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4137
4138 * symfile.c (reread_symbols): Clear objfile's section_offsets
4139 vector and section indices, re-compute them by calling
4140 sym_offsets.
4141
4142 2020-05-20 Tom Tromey <tromey@adacore.com>
4143
4144 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4145 (desc_one_bound, desc_index_type): Compute field name.
4146
4147 2020-05-20 Tom de Vries <tdevries@suse.de>
4148
4149 PR symtab/25833
4150 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4151
4152 2020-05-20 Alan Modra <amodra@gmail.com>
4153
4154 PR 25993
4155 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4156 bfd_set_filename.
4157 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4158 passed to bfd_set_filename.
4159 * symfile-mem.c (add_vsyscall_page): Likewise for string
4160 passed to symbol_file_add_from_memory.
4161 (symbol_file_add_from_memory): Make name param a const char* and
4162 don't strdup.
4163
4164 2020-05-20 Alan Modra <amodra@gmail.com>
4165
4166 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4167 rather than accessing bfd->filename directly.
4168 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4169 and use bfd_section_name.
4170 * dwarf2/frame.c (decode_frame_entry): Likewise.
4171 * exec.c (exec_set_section_address): Likewise.
4172 * solib-aix.c (solib_aix_bfd_open): Likewise.
4173 * stap-probe.c (get_stap_base_address): Likewise.
4174 * symfile.c (reread_symbols): Likewise.
4175
4176 2020-05-19 Tom Tromey <tromey@adacore.com>
4177
4178 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4179
4180 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4181
4182 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4183
4184 2020-05-19 Pedro Alves <palves@redhat.com>
4185
4186 * NEWS (set exec-file-mismatch): Adjust entry.
4187 * exec.c: Include "build-id.h".
4188 (validate_exec_file): Try to match build IDs instead of filenames.
4189 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4190 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4191 and pass down 'warn_if_slow'.
4192 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4193 gdb_bfd_open_closure to pass it down.
4194 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4195
4196 2020-05-19 Pedro Alves <palves@redhat.com>
4197
4198 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4199 * target.c (target_fileio_open_1): Rename to target_fileio_open
4200 and make extern. Use bool.
4201 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4202 (target_fileio_read_alloc_1): Adjust.
4203 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4204 (target_fileio_open_warn_if_slow): Delete declaration.
4205
4206 2020-05-19 Pedro Alves <palves@redhat.com>
4207
4208 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4209 Adjust all callers.
4210
4211 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4212
4213 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4214 whether disp is negative.
4215
4216 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4217
4218 * symfile.h (struct symfile_segment_data)
4219 <~symfile_segment_data>: Remove.
4220 <segment_info>: Change to std::vector.
4221 * symfile.c (default_symfile_segments): Update.
4222 * elfread.c (elf_symfile_segments): Update.
4223
4224 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4225
4226 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4227 <segments>: New.
4228 <segment_bases, segment_sizes>: Remove.
4229 * symfile.c (default_symfile_segments): Update.
4230 * elfread.c (elf_symfile_segments): Update.
4231 * remote.c (remote_target::get_offsets): Update.
4232 * solib-target.c (solib_target_relocate_section_addresses):
4233 Update.
4234
4235 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4236
4237 * symfile.h (struct symfile_segment_data): Initialize fields.
4238 <~symfile_segment_data>: Add.
4239 (symfile_segment_data_up): New.
4240 (struct sym_fns) <sym_segments>: Return a
4241 symfile_segment_data_up.
4242 (default_symfile_segments): Return a symfile_segment_data_up.
4243 (free_symfile_segment_data): Remove.
4244 (get_symfile_segment_data): Return a symfile_segment_data_up.
4245 * symfile.c (default_symfile_segments): Likewise.
4246 (get_symfile_segment_data): Likewise.
4247 (free_symfile_segment_data): Remove.
4248 (symfile_find_segment_sections): Update.
4249 * elfread.c (elf_symfile_segments): Return a
4250 symfile_segment_data_up.
4251 * remote.c (remote_target::get_offsets): Update.
4252 * solib-target.c (solib_target_relocate_section_addresses):
4253 Update.
4254 * symfile-debug.c (debug_sym_segments): Return a
4255 symfile_segment_data_up.
4256
4257 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4258
4259 PR build/25981
4260 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4261 Hardcode register numbers.
4262
4263 PR build/25981
4264 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4265 procfs_find_LDT_entry): Remove.
4266 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4267 procfs_find_LDT_entry): Remove.
4268 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4269 Remove.
4270
4271 2020-05-17 Pedro Alves <palves@redhat.com>
4272 Andrew Burgess <andrew.burgess@embecosm.com>
4273 Keno Fischer <keno@juliacomputing.com>
4274
4275 PR gdb/25741
4276 * breakpoint.c (build_target_condition_list): Update comments.
4277 (build_target_command_list): Update comments and skip matching
4278 locations.
4279 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4280 a separate function. Simplify "set breakpoint auto-hw off"
4281 handling.
4282 (insert_breakpoints): Update comment.
4283 (tracepoint_locations_match): New parameter. For breakpoints,
4284 compare location types too, if the caller wants to.
4285 (handle_automatic_hardware_breakpoints): New functions.
4286 (bp_location_is_less_than): Also sort by location type and
4287 hardware breakpoint length.
4288 (update_global_location_list): Handle "set breakpoint auto-hw on"
4289 here.
4290 (update_breakpoint_locations): Ask breakpoint_locations_match to
4291 ignore location types.
4292
4293 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4294
4295 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4296 type::name instead.
4297
4298 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4299
4300 * gdbtypes.h (struct type) <name, set_name>: New methods.
4301 (TYPE_CODE): Use type::name. Change all call sites used to set
4302 the name to use type::set_name instead.
4303
4304 2020-05-16 Tom Tromey <tom@tromey.com>
4305
4306 * top.c (quit_force): Update.
4307 * infrun.c (handle_no_resumed): Update.
4308 * top.h (all_uis): New function.
4309 (ALL_UIS): Remove.
4310
4311 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4312
4313 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4314
4315 2020-05-16 Pedro Alves <palves@redhat.com>
4316
4317 * ia64-linux-nat.c
4318 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4319 Declare method.
4320 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4321
4322 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4323
4324 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4325 (sparc64_adi_info): Likewise.
4326
4327 2020-05-15 Tom Tromey <tom@tromey.com>
4328
4329 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4330 block_objfile.
4331 (lookup_objfile_from_block): Remove.
4332 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4333 (lookup_global_symbol): Use block_objfile.
4334 * symtab.h (lookup_objfile_from_block): Don't declare.
4335 * printcmd.c (clear_dangling_display_expressions): Use
4336 block_objfile.
4337 * parse.c (operator_check_standard): Use block_objfile.
4338
4339 2020-05-15 Tom Tromey <tom@tromey.com>
4340
4341 * language.c (language_alloc_type_symbol): Set
4342 SYMBOL_SECTION.
4343 * symtab.c (initialize_objfile_symbol): Remove.
4344 (allocate_symbol): Remove.
4345 (allocate_template_symbol): Remove.
4346 * dwarf2/read.c (fixup_go_packaging): Use "new".
4347 (new_symbol): Use "new".
4348 (read_variable): Don't call initialize_objfile_symbol. Use
4349 "new".
4350 (read_func_scope): Use "new".
4351 * xcoffread.c (process_xcoff_symbol): Don't call
4352 initialize_objfile_symbol.
4353 (SYMBOL_DUP): Remove.
4354 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4355 "new".
4356 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4357 (allocate_template_symbol): Don't declare.
4358 (struct symbol): Add copy constructor. Change defaults.
4359 * jit.c (finalize_symtab): Use "new".
4360 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4361 Use "new".
4362 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4363 (common_block_end): Use "new".
4364 * mdebugread.c (parse_symbol): Use "new".
4365 (new_symbol): Likewise.
4366
4367 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4368
4369 * NEWS: Mention changes to help and apropos.
4370
4371 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4372
4373 * command.h (enum command_class): Improve comments, document
4374 that class_alias is for user-defined aliases, give the class
4375 name for each class, remove unused class_xdb.
4376 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4377 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4378 by a precise class.
4379 * infcmd.c (_initialize_infcmd): Likewise.
4380 * reverse.c (_initialize_reverse): Likewise.
4381 * stack.c (_initialize_stack): Likewise.
4382 * symfile.c (_initialize_symfile): Likewise.
4383 * tracepoint.c (_initialize_tracepoint): Likewise.
4384
4385 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4386
4387 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4388 when their aliased command is traversed.
4389 (help_cmd): Add fput_command_names_styled call to
4390 output command name and aliases when command has an alias.
4391
4392 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4393
4394 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4395 * cli/cli-decode.c (help_cmd_list): Declare as static,
4396 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4397 a command together with the command.
4398 (fput_command_name_styled, fput_command_names_styled): New functions.
4399 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4400 fput_command_name_styled.
4401 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4402 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4403
4404 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4405
4406 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4407 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4408 * command.h (cmd_show_list): Likewise.
4409 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4410 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4411
4412 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4413
4414 * unittests/command-def-selftests.c (traverse_command_structure):
4415 Verify all commands of a list have the same prefix command and
4416 that only the top cmdlist commands have a null prefix.
4417
4418 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4419
4420 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4421 as prefix, not one of its aliases.
4422 (set_cmd_prefix): Remove.
4423 (do_add_cmd): Centralize the setting of the prefix of a command, when
4424 command is defined after its full chain of prefix commands.
4425 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4426 (add_setshow_cmd_full): Likewise.
4427 (update_prefix_field_of_prefixed_commands): New function.
4428 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4429 update_prefix_field_of_prefixed_commands.
4430 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4431 addresses of remote_set_cmdlist and remote_show_cmdlist given
4432 as argument, not the address of an argument.
4433 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4434 * gdb/remote.c (_initialize_remote): Likewise.
4435
4436 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4437
4438 * cli/cli-cmds.c (alias_command): Check for an existing alias
4439 using lookup_cmd_composition, as valid_command_p is too strict
4440 and forbids aliases that are the prefix of an existing alias
4441 or command.
4442 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4443 command is properly recognised as a valid command.
4444
4445 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4446
4447 * unittests/help-doc-selftests.c: Rename to
4448 unittests/command-def-selftests.c
4449 * unittests/command-def-selftests.c (help_doc_tests): Update some
4450 comments.
4451 (command_structure_tests, traverse_command_structure): New namespace
4452 and function.
4453 (command_structure_invariants_tests): New function.
4454 (_initialize_command_def_selftests) Renamed from
4455 _initialize_help_doc_selftests, register command_structure_invariants
4456 selftest.
4457
4458 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4459
4460 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4461 an alias of 'show'.
4462
4463 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4464
4465 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4466 ada_is_fixed_point_type. Update all callers.
4467 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4468 all callers.
4469 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4470 Update all callers.
4471 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4472 print_fixed_point_type. Update all callers.
4473 * ada-valprint.c (ada_value_print_num): Replace call to
4474 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4475
4476 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4477
4478 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4479 processors.
4480 (cpu_supports_bts): Add CV_AMD case.
4481
4482 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4483 Simon Marchi <simon.marchi@efficios.com>
4484
4485 * infrun.c (stop_all_threads): Collect multiple wait events at
4486 each pass.
4487
4488 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4489
4490 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4491 type::code instead.
4492
4493 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4494
4495 * gdbtypes.h (struct type) <code, set_code>: New methods.
4496 (TYPE_CODE): Use type::code. Change all call sites used to set
4497 the code to use type::set_code instead.
4498
4499 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4500 Tom de Vries <tdevries@suse.de>
4501 Pedro Alves <palves@redhat.com>
4502
4503 PR threads/25478
4504 * infrun.c (stop_all_threads): Do NOT ignore
4505 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4506 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4507 received.
4508 (handle_no_resumed): Remove code handling a live inferior with no
4509 threads.
4510 * remote.c (has_single_non_exited_thread): New.
4511 (remote_target::update_thread_list): Do not delete a thread if is
4512 the last thread of the process.
4513 * thread.c (thread_select): Call delete_exited_threads instead of
4514 prune_threads.
4515
4516 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4517
4518 * infrun.c (stop_all_threads): Enable/disable thread events of all
4519 targets. Move a debug message denoting the end of the function
4520 into the SCOPED_EXIT block.
4521
4522 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4523
4524 * process-stratum-target.h: Include <set>.
4525 (all_non_exited_process_targets, switch_to_target_no_thread): New
4526 function declarations.
4527 * process-stratum-target.c (all_non_exited_process_targets)
4528 (switch_to_target_no_thread): New function implementations.
4529
4530 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4531
4532 * infrun.c (handle_inferior_event): Extract out a piece of code
4533 into...
4534 (mark_non_executing_threads): ...this new function.
4535
4536 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4537
4538 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4539 use.
4540
4541 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4542
4543 * regcache.c (regcache_read_pc_protected): New function
4544 implementation that returns 0 if the PC cannot read via
4545 'regcache_read_pc'.
4546 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4547 instead of 'regcache_read_pc'.
4548 (keep_going_pass_signal): Ditto.
4549
4550 2020-05-13 Tom Tromey <tromey@adacore.com>
4551
4552 * ada-lang.c (align_value): Remove.
4553 (ada_template_to_fixed_record_type_1): Use align_up.
4554
4555 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4556
4557 * async-event.c: Update the copyright year.
4558 * async-event.h: Update the copyright year.
4559
4560 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4561
4562 * objfiles.h (is_addr_in_objfile,
4563 shared_objfile_contains_address_p): Return bool.
4564 * objfile.c (is_addr_in_objfile,
4565 shared_objfile_contains_address_p): Return bool.
4566
4567 2020-05-11 Tom Tromey <tromey@adacore.com>
4568
4569 * cli/cli-cmds.c (info_command): Restore.
4570 (_initialize_cli_cmds): Use add_prefix_command for "info".
4571 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4572
4573 2020-05-11 Tom Tromey <tromey@adacore.com>
4574
4575 * ada-lang.c (ada_value_primitive_field): Now public.
4576 * ada-lang.h (ada_value_primitive_field): Declare.
4577 * ada-valprint.c (print_field_values): Use
4578 ada_value_primitive_field for wrapper fields.
4579
4580 2020-05-11 Tom de Vries <tdevries@suse.de>
4581
4582 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4583 MODULE_DOMAIN.
4584
4585 2020-05-11 Tom de Vries <tdevries@suse.de>
4586
4587 PR symtab/25941
4588 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4589 with length 0, if not gdb-produced.
4590 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4591
4592 2020-05-09 Tom de Vries <tdevries@suse.de>
4593
4594 PR gdb/25955
4595 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4596 calculation.
4597
4598 2020-05-09 Tom Tromey <tom@tromey.com>
4599
4600 * top.c (server_command): Now bool.
4601 * top.h (server_command): Now bool.
4602
4603 2020-05-08 Tom Tromey <tromey@adacore.com>
4604
4605 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4606 already being processed.
4607
4608 2020-05-08 Tom Tromey <tom@tromey.com>
4609
4610 * printcmd.c (struct display) <next>: Remove.
4611 <display>: New constructor.
4612 <exp_string>: Now a std::string.
4613 <enabled_p>: Now a bool.
4614 (display_number): Move definition earlier.
4615 (displays): Rename from display_chain. Now a std::vector.
4616 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4617 (display_command): Update.
4618 (do_one_display, disable_display)
4619 (enable_disable_display_command, do_enable_disable_display):
4620 Update.
4621 (free_display): Remove.
4622 (clear_displays): Rewrite.
4623 (delete_display): Update.
4624 (map_display_numbers): Use function_view. Remove "data"
4625 parameter. Update.
4626 (do_delete_display): Remove.
4627 (undisplay_command): Update.
4628 (do_one_display, do_displays, disable_display)
4629 (info_display_command): Update.
4630 (do_enable_disable_display): Remove.
4631 (enable_disable_display_command)
4632 (clear_dangling_display_expressions): Update.
4633
4634 2020-05-08 Tom Tromey <tom@tromey.com>
4635
4636 * symtab.c (set_symbol_cache_size)
4637 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4638 (maintenance_print_symbol_cache_statistics): Update.
4639 * symmisc.c (print_symbol_bcache_statistics)
4640 (print_objfile_statistics, maintenance_print_objfiles)
4641 (maintenance_info_symtabs, maintenance_check_symtabs)
4642 (maintenance_expand_symtabs, maintenance_info_line_tables):
4643 Update.
4644 * symfile-debug.c (set_debug_symfile): Update.
4645 * source.c (forget_cached_source_info): Update.
4646 * python/python.c (gdbpy_progspaces): Update.
4647 * psymtab.c (maintenance_info_psymtabs): Update.
4648 * probe.c (parse_probes): Update.
4649 * linespec.c (iterate_over_all_matching_symtabs)
4650 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4651 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4652 * exec.c (exec_target::close): Update.
4653 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4654 * breakpoint.c (print_one_breakpoint_location)
4655 (create_longjmp_master_breakpoint)
4656 (create_std_terminate_master_breakpoint): Update.
4657 * progspace.c (program_spaces): Now a std::vector.
4658 (maybe_new_address_space): Update.
4659 (add_program_space): Remove.
4660 (program_space::program_space): Update.
4661 (remove_program_space): Update.
4662 (number_of_program_spaces): Remove.
4663 (print_program_space, update_address_spaces): Update.
4664 * progspace.h (program_spaces): Change type.
4665 (ALL_PSPACES): Remove.
4666 (number_of_program_spaces): Don't declare.
4667 (struct program_space) <next>: Remove.
4668
4669 2020-05-08 Tom Tromey <tom@tromey.com>
4670
4671 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4672 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4673 (enable_break): Update.
4674 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4675 (frv_fdpic_find_canonical_descriptor): Update.
4676 (frv_fetch_objfile_link_map): Update.
4677 * progspace.c (program_space::free_all_objfiles): Update.
4678 (program_space::solibs): New method.
4679 * progspace.h (struct program_space) <solibs>: New method.
4680 * solist.h (master_so_list): Don't declare.
4681 (ALL_SO_LIBS): Remove.
4682 * solib.h (so_list_head): Remove.
4683 (update_solib_list): Update comment.
4684 * solib.c (master_so_list): Remove.
4685 (solib_used, update_solib_list, solib_add)
4686 (info_sharedlibrary_command, clear_solib)
4687 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4688
4689 2020-05-08 Tom Tromey <tom@tromey.com>
4690
4691 * extension.c (extension_languages): Now a std::array.
4692 (ALL_EXTENSION_LANGUAGES): Remove.
4693 (get_ext_lang_defn, get_ext_lang_of_file)
4694 (eval_ext_lang_from_control_command): Update.
4695 (finish_ext_lang_initialization)
4696 (auto_load_ext_lang_scripts_for_objfile)
4697 (ext_lang_type_printers::ext_lang_type_printers)
4698 (apply_ext_lang_type_printers)
4699 (ext_lang_type_printers::~ext_lang_type_printers)
4700 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4701 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4702 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4703 (get_matching_xmethod_workers, ext_lang_colorize)
4704 (ext_lang_before_prompt): Update.
4705 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4706
4707 2020-05-08 Tom Tromey <tom@tromey.com>
4708
4709 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4710 overload.
4711 <swap_string, m_string>: Remove.
4712 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4713 Update.
4714 * stabsread.c (define_symbol, read_type): Update.
4715 * linespec.c (find_linespec_symbols): Update.
4716 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4717 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4718 * dbxread.c (read_dbx_symtab): Update.
4719 * cp-support.h (cp_canonicalize_string_full)
4720 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4721 Return unique_xmalloc_ptr.
4722 * cp-support.c (inspect_type): Update.
4723 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4724 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4725 Likewise.
4726 * c-typeprint.c (print_name_maybe_canonical): Update.
4727 * break-catch-throw.c (check_status_exception_catchpoint):
4728 Update.
4729
4730 2020-05-08 Tom de Vries <tdevries@suse.de>
4731
4732 * infrun.c (follow_fork): Copy current_line and current_symtab to
4733 child thread.
4734
4735 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4736
4737 * async-event.c (struct async_signal_handler, struct
4738 async_event_handler): Reformat, remove typedef.
4739
4740 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4741
4742 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4743 access thistype->main_type->dyn_prop_list directly.
4744
4745 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4746
4747 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4748 (remove_dyn_prop): Remove. Update all users to use
4749 type::remove_dyn_prop.
4750 * gdbtypes.c (remove_dyn_prop): Rename to...
4751 (type::remove_dyn_prop): ... this.
4752
4753 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4754
4755 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4756 (add_dyn_prop): Remove. Update all users to use
4757 type::add_dyn_prop.
4758 * gdbtypes.c (add_dyn_prop): Rename to...
4759 (type::add_dyn_prop): ... this.
4760
4761 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4762
4763 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4764 (get_dyn_prop): Remove. Update all users to use
4765 type::dyn_prop.
4766 * gdbtypes.c (get_dyn_prop): Rename to...
4767 (type::dyn_prop): ... this.
4768
4769 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4770
4771 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4772
4773 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4774
4775 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4776 instruction, skip it if it's there.
4777
4778 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4779
4780 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4781
4782 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4783
4784 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4785 * gdbtypes.c (recursive_dump_type): Remove use of
4786 TYPE_INCOMPLETE.
4787
4788 2020-05-03 Tom Tromey <tom@tromey.com>
4789
4790 * breakpoint.c (catch_command, tcatch_command): Remove.
4791 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4792 add_show_prefix_cmd.
4793 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4794 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4795 Remove.
4796 (add_internal_problem_command): Use add_basic_prefix_cmd,
4797 add_show_prefix_cmd.
4798 * mips-tdep.c (set_mipsfpu_command): Remove.
4799 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4800 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4801 (_initialize_index_cache): Use add_basic_prefix_cmd.
4802 * memattr.c (dummy_cmd): Remove.
4803 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4804 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4805 (_initialize_tui_win): Use add_basic_prefix_cmd,
4806 add_show_prefix_cmd.
4807 * cli/cli-logging.c (set_logging_command): Remove.
4808 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4809 add_show_prefix_cmd.
4810 (show_logging_command): Remove.
4811 * target.c (target_command): Remove.
4812 (add_target): Use add_basic_prefix_cmd.
4813
4814 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4815
4816 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4817
4818 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4819
4820 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4821 info_command.
4822
4823 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4824
4825 * nbsd-nat.c (nbsd_enable_proc_events)
4826 (nbsd_nat_target::post_startup_inferior): Add.
4827 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4828 (nbsd_nat_target::update_thread_list): Rewrite.
4829 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4830 "PTRACE_LWP_CREATE".
4831 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4832
4833 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4834
4835 * stack.c (_initialize_stack): Remove duplicated creation
4836 of "frame" command and "f" alias.
4837
4838 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4839
4840 PR gdb/18706
4841 * gdbtypes.c (check_typedef): Calculate size of array of
4842 stubbed type.
4843
4844 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4845
4846 PR gdb/15559
4847 * i386-tdep.c (i386_push_dummy_call): Call
4848 i386_thiscall_push_dummy_call.
4849 (i386_thiscall_push_dummy_call): New function.
4850 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4851 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4852 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4853
4854 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4855
4856 * gdbarch.sh (do_read): Add shellcheck disable directive for
4857 warning SC2162.
4858
4859 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4860
4861 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4862 "referenced but not assigned" warning.
4863
4864 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4865
4866 * gdbarch.sh: Remove code that sets fallbackdefault.
4867
4868 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4869
4870 * gdbarch.sh: Use shell operators && and || instead of
4871 -a and -o.
4872
4873 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4874
4875 * gdbarch.sh: Use $(...) instead of `...`.
4876
4877 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4878
4879 * gdbarch.sh: Use double quotes around variables.
4880
4881 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * gdbarch.sh: Use %s with printf, instead of variables in the
4884 format string.
4885
4886 2020-04-29 Tom Tromey <tromey@adacore.com>
4887
4888 PR ada/25875:
4889 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4890 type fields here.
4891 (read_enumeration_type): Call
4892 update_enumeration_type_from_children later. Update comments.
4893 (process_enumeration_scope): Don't create type fields.
4894
4895 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4896
4897 * nbsd-tdep.c: Include "xml-syscall.h".
4898 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4899
4900 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4901
4902 * nbsd-nat.c: Include "sys/wait.h".
4903 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4904 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4905 (nbsd_nat_target::remove_exec_catchpoint)
4906 (nbsd_nat_target::set_syscall_catchpoint): Add.
4907 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4908 (nbsd_nat_target::insert_exec_catchpoint)
4909 (nbsd_nat_target::remove_exec_catchpoint)
4910 (nbsd_nat_target::set_syscall_catchpoint): Add.
4911 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4912 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4913 `nbsd_get_syscall_number'.
4914
4915 2020-04-29 Tom Tromey <tom@tromey.com>
4916
4917 * stack.c (print_block_frame_labels): Remove.
4918
4919 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4920
4921 PR gdb/17320
4922 * ada-valprint.c (val_print_packed_array_elements): Move array
4923 end bracket to new line.
4924 (ada_val_print_string): Remove extra spaces before first array
4925 element.
4926 * c-valprint.c (c_value_print_array): Likewise.
4927 * m2-valprint.c (m2_print_array_contents): Likewise.
4928 (m2_value_print_inner): Likewise.
4929 * p-valprint.c (pascal_value_print_inner): Likewise.
4930 * valprint.c (generic_val_print_array): Likewise.
4931 (value_print_array_elements): Move first array element and array
4932 end bracket to new line.
4933
4934 2020-04-29 Tom de Vries <tdevries@suse.de>
4935
4936 PR symtab/25889
4937 * linespec.c (find_method): Fix ix calculation.
4938
4939 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4940
4941 * syscalls/update-netbsd.sh: New file.
4942 * syscalls/netbsd.xml: Regenerate.
4943 * data-directory/Makefile.in: Register `netbsd.xml' in
4944 `SYSCALLS_FILES'.
4945
4946 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4947
4948 * syscalls/update-freebsd.sh: Add double quotes.
4949
4950 2020-04-28 Tom Tromey <tom@tromey.com>
4951
4952 * NEWS: Update.
4953 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4954 (cmdpy_init): Allow class_tui.
4955
4956 2020-04-28 Mark Williams <mark@myosotissp.com>
4957
4958 PR gdb/24480
4959 * dwarf2read.c: Add missing assingments to list_in_scope when
4960 start_symtab was already called.
4961
4962 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4963
4964 PR gdb/25881
4965 * dwarf2/read.c (offset_map_type): Use
4966 gdb:hash_enum<sect_offset> as hash function.
4967
4968 2020-04-28 Tom de Vries <tdevries@suse.de>
4969
4970 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4971 with DW_AT_signature.
4972
4973 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4974
4975 * configure.ac: Remove check for fs_base/gs_base in
4976 user_regs_struct.
4977 * configure: Re-generate.
4978 * config.in: Re-generate.
4979 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4980 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4981 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4982
4983 2020-04-27 Luis Machado <luis.machado@linaro.org>
4984
4985 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4986 problematic inline frame unwinding situation.
4987 * frame.c (frame_id_computed_p): New function.
4988 * frame.h (frame_id_computed_p): New prototype.
4989
4990 2020-04-26 Tom Tromey <tom@tromey.com>
4991
4992 * command.h (enum command_class) <class_pseudo>: Remove.
4993
4994 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4995
4996 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4997 and whitespace.
4998
4999 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5000
5001 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5002 `PT_GET_PROCESS_STATE' block.
5003
5004 2020-04-24 Tom Tromey <tom@tromey.com>
5005
5006 * symtab.h (symbol_get_demangled_name): Don't declare.
5007 * symtab.c (symbol_get_demangled_name): Remove.
5008 (general_symbol_info::natural_name)
5009 (general_symbol_info::demangled_name): Update.
5010
5011 2020-04-24 Tom Tromey <tom@tromey.com>
5012
5013 PR rust/25025:
5014 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5015
5016 2020-04-24 Tom Tromey <tom@tromey.com>
5017
5018 PR symtab/12707:
5019 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5020 exists.
5021 (new_symbol): Likewise.
5022 * compile/compile-object-load.c (get_out_value_type): Use
5023 symbol_matches_search_name.
5024
5025 2020-04-24 Tom Tromey <tom@tromey.com>
5026
5027 * dwarf2/read.c (add_partial_symbol): Do not call
5028 compute_and_set_names.
5029
5030 2020-04-24 Tom Tromey <tom@tromey.com>
5031
5032 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5033 overload.
5034
5035 2020-04-24 Tom Tromey <tom@tromey.com>
5036
5037 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5038 (add_psymbol_to_list): New overload. Make old overload call new
5039 one.
5040 * psympriv.h (add_psymbol_to_list): New overload.
5041
5042 2020-04-24 Tom Tromey <tom@tromey.com>
5043
5044 * dwarf2/read.c (partial_die_info::read) <case
5045 DW_AT_linkage_name>: Use value_as_string.
5046 (dwarf2_string_attr): Use value_as_string.
5047 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5048 method.
5049 * dwarf2/attribute.c (attribute::value_as_string): New method.
5050
5051 2020-04-24 Tom Tromey <tom@tromey.com>
5052
5053 * symtab.c (general_symbol_info::natural_name)
5054 (general_symbol_info::demangled_name): Check for language_rust.
5055
5056 2020-04-24 Tom Tromey <tom@tromey.com>
5057
5058 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5059 (dwarf2_physname): ... from here.
5060 (partial_die_info::read): Add Rust "{" hack.
5061
5062 2020-04-24 Tom Tromey <tom@tromey.com>
5063
5064 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5065 method.
5066 (symbol_set_demangled_name): Don't declare.
5067 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5068 symbol_set_demangled_name.
5069 (general_symbol_info::set_language)
5070 (general_symbol_info::compute_and_set_names): Update.
5071 * minsyms.c (minimal_symbol_reader::install): Update.
5072 * dwarf2/read.c (new_symbol): Update.
5073
5074 2020-04-24 Tom Tromey <tromey@adacore.com>
5075
5076 PR python/23662:
5077 * python/py-type.c (convert_field): Handle
5078 FIELD_LOC_KIND_DWARF_BLOCK.
5079 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5080 (typy_get_dynamic): Nw function.
5081 (type_object_getset): Add "dynamic".
5082 * NEWS: Add entry.
5083
5084 2020-04-24 Tom Tromey <tromey@adacore.com>
5085
5086 * ada-typeprint.c (print_choices, print_variant_part)
5087 (print_record_field_types_dynamic): New functions.
5088 (print_record_field_types): Use print_record_field_types_dynamic.
5089
5090 2020-04-24 Tom Tromey <tromey@adacore.com>
5091
5092 * dwarf2/read.c (handle_data_member_location): New overload.
5093 (dwarf2_add_field): Use it.
5094 (decode_locdesc): Add "computed" parameter. Update comment.
5095 * gdbtypes.c (is_dynamic_type_internal): Also look for
5096 FIELD_LOC_KIND_DWARF_BLOCK.
5097 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5098 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5099 virtual base classes.
5100 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5101 FIELD_LOC_KIND_DWARF_BLOCK.
5102
5103 2020-04-24 Tom Tromey <tromey@adacore.com>
5104
5105 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5106 * gdbtypes.c (is_dynamic_type_internal): Check
5107 TYPE_HAS_DYNAMIC_LENGTH.
5108 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5109 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5110 New macros.
5111 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5112 constant.
5113
5114 2020-04-24 Tom Tromey <tromey@adacore.com>
5115
5116 * dwarf2/read.c (struct variant_field): Rewrite.
5117 (struct variant_part_builder): New.
5118 (struct nextfield): Remove "variant" field. Add "offset".
5119 (struct field_info): Add "current_variant_part" and
5120 "variant_parts".
5121 (alloc_discriminant_info): Remove.
5122 (alloc_rust_variant): New function.
5123 (quirk_rust_enum): Update.
5124 (dwarf2_add_field): Set "offset" member. Don't handle
5125 DW_TAG_variant_part.
5126 (offset_map_type): New typedef.
5127 (convert_variant_range, create_one_variant)
5128 (create_one_variant_part, create_variant_parts)
5129 (add_variant_property): New functions.
5130 (dwarf2_attach_fields_to_type): Call add_variant_property.
5131 (read_structure_type): Don't handle DW_TAG_variant_part.
5132 (handle_variant_part, handle_variant): New functions.
5133 (handle_struct_member_die): Use them.
5134 (process_structure_scope): Don't handle variant parts.
5135 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5136 (struct discriminant_info): Remove.
5137 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5138 (struct main_type) <flag_discriminated_union>: Remove.
5139 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5140 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5141 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5142 Update.
5143 * valops.c (value_union_variant): Remove.
5144 * value.h (value_union_variant): Don't declare.
5145
5146 2020-04-24 Tom Tromey <tromey@adacore.com>
5147
5148 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5149 (ada_value_primitive_packed_val): Update.
5150 * ada-valprint.c (ada_value_print_1): Update.
5151 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5152 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5153 just an address. Use evaluate_for_locexpr_baton.
5154 (dwarf2_evaluate_property): Update.
5155 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5156 array_view.
5157 * findvar.c (default_read_var_value): Update.
5158 * gdbtypes.c (compute_variant_fields_inner)
5159 (resolve_dynamic_type_internal): Update.
5160 (resolve_dynamic_type): Change type of valaddr parameter.
5161 * gdbtypes.h (resolve_dynamic_type): Update.
5162 * valarith.c (value_subscripted_rvalue): Update.
5163 * value.c (value_from_contents_and_address): Update.
5164
5165 2020-04-24 Tom Tromey <tromey@adacore.com>
5166
5167 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5168 "push_initial_value" parameter.
5169 (dwarf2_evaluate_property): Likewise.
5170 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5171
5172 2020-04-24 Tom Tromey <tromey@adacore.com>
5173
5174 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5175 (variant::matches, compute_variant_fields_recurse)
5176 (compute_variant_fields_inner, compute_variant_fields): New
5177 functions.
5178 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5179 Use resolved_type after type is made.
5180 (operator==): Add new cases.
5181 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5182 (struct discriminant_range, struct variant, struct variant_part):
5183 New.
5184 (union dynamic_prop_data) <variant_parts, original_type>: New
5185 members.
5186 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5187 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5188 constants.
5189 * value.c (unpack_bits_as_long): Now public.
5190 * value.h (unpack_bits_as_long): Declare.
5191
5192 2020-04-24 Tom Tromey <tromey@adacore.com>
5193
5194 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5195 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5196
5197 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5198
5199 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5200
5201 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5202
5203 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5204 (remove_fork_catchpoint, post_startup_inferior)
5205 (post_attach): Move...
5206 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5207 (remove_fork_catchpoint, post_startup_inferior)
5208 (post_attach): ...here.
5209 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5210 (remove_fork_catchpoint, post_startup_inferior)
5211 (post_attach): Move...
5212 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5213 (remove_fork_catchpoint, post_startup_inferior)
5214 (post_attach): ...here.
5215
5216 2020-04-24 Tom Tromey <tromey@adacore.com>
5217
5218 * nat/windows-nat.h (struct windows_thread_info)
5219 <pc_adjusted>: New member.
5220 * windows-nat.c (windows_fetch_one_register): Check
5221 pc_adjusted.
5222 (windows_nat_target::get_windows_debug_event)
5223 (windows_nat_target::wait): Set pc_adjusted.
5224
5225 2020-04-24 Tom de Vries <tdevries@suse.de>
5226
5227 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5228 Run gdb-add-index inside temp dir.
5229
5230 2020-04-23 Tom Tromey <tromey@adacore.com>
5231
5232 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5233 in loop.
5234
5235 2020-04-23 Luis Machado <luis.machado@linaro.org>
5236
5237 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5238 get_frame_register instead of gdbarch_unwind_pc.
5239
5240 2020-04-23 Tom de Vries <tdevries@suse.de>
5241
5242 * symtab.c (lookup_global_symbol): Prefer def over decl.
5243
5244 2020-04-23 Tom de Vries <tdevries@suse.de>
5245
5246 PR symtab/25807
5247 * block.c (best_symbol, better_symbol): Promote to external.
5248 * block.h (best_symbol, better_symbol): Declare.
5249 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5250 decl.
5251
5252 2020-04-23 Tom Tromey <tromey@adacore.com>
5253
5254 PR ada/25837:
5255 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5256 "const char *", not a "const std::string &".
5257 <name_and_matcher::operator==>: Update.
5258 * unittests/lookup_name_info-selftests.c: Change type of
5259 "result".
5260
5261 2020-04-23 Tom Tromey <tom@tromey.com>
5262
5263 * inferior.h (iterate_over_inferiors): Don't declare.
5264 * inferior.c (iterate_over_inferiors): Remove.
5265 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5266 Remove.
5267 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5268 use iterate_over_inferiors.
5269 (darwin_resume_inferior_it)
5270 (struct resume_inferior_threads_param)
5271 (darwin_resume_inferior_threads_it): Remove.
5272 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5273
5274 2020-04-23 Tom de Vries <tdevries@suse.de>
5275
5276 * blockframe.c (find_pc_partial_function): Use
5277 find_pc_sect_compunit_symtab rather than
5278 objfile->sf->qf->find_pc_sect_compunit_symtab.
5279
5280 2020-04-22 Tom de Vries <tdevries@suse.de>
5281
5282 PR symtab/25764
5283 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5284 in psymtabs.
5285
5286 2020-04-22 Tom de Vries <tdevries@suse.de>
5287
5288 PR symtab/25801
5289 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5290 symtabs.
5291
5292 2020-04-22 Tom de Vries <tdevries@suse.de>
5293
5294 PR symtab/25700
5295 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5296 CU if already created.
5297
5298 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5299
5300 * infrun.c (displaced_step_fixup): Switch to the event_thread
5301 before calling displaced_step_restore, not after.
5302
5303 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5304
5305 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5306 its inferior is not recorded by us.
5307 (record_btrace_target_open): Replace call to
5308 all_non_exited_threads () with call to current_inferior
5309 ()->non_exited_threads ().
5310 (record_btrace_target::stop_recording): Likewise.
5311 (record_btrace_target::close): Likewise.
5312 (record_btrace_target::wait): Likewise.
5313 (record_btrace_target::record_stop_replaying): Likewise.
5314
5315 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5316
5317 * btrace.c (btrace_enable): Throw an error on double enables and
5318 when enabling recording fails.
5319 (btrace_disable): Throw an error if the thread is not recorded.
5320
5321 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5322
5323 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5324 request if we do not have a thread_info.
5325
5326 2020-04-21 Tom de Vries <tdevries@suse.de>
5327
5328 PR gdb/25471
5329 * thread.c
5330 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5331 exception in get_frame_id.
5332
5333 2020-04-20 Tom Tromey <tromey@adacore.com>
5334
5335 * python/python.c (struct gdbpy_event): Mark move constructor as
5336 noexcept.
5337 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5338 constructor as noexcept.
5339 * completer.h (struct completion_result): Mark move constructor as
5340 noexcept.
5341 * completer.c (completion_result::completion_result): Use
5342 initialization style. Don't call reset_match_list.
5343
5344 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5345
5346 * MAINTAINERS (Write After Approval): Add myself.
5347
5348 2020-04-18 Tom Tromey <tom@tromey.com>
5349
5350 * windows-tdep.c (init_w32_command_list)
5351 (w32_prefix_command_valid): Restore.
5352 (_initialize_windows_tdep): Call init_w32_command_list.
5353
5354 2020-04-18 Tom Tromey <tom@tromey.com>
5355
5356 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5357 * value.c (value_fn_field): Update.
5358 * valops.c (find_function_in_inferior)
5359 (value_allocate_space_in_inferior): Update.
5360 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5361 Update.
5362 * tui/tui-source.c (tui_source_window::set_contents): Update.
5363 * symtab.c (lookup_global_or_static_symbol)
5364 (find_function_start_sal_1, skip_prologue_sal)
5365 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5366 * symmisc.c (dump_msymbols, dump_symtab_1)
5367 (maintenance_print_one_line_table): Update.
5368 * symfile.c (init_entry_point_info, section_is_mapped)
5369 (list_overlays_command, simple_read_overlay_table)
5370 (simple_overlay_update_1): Update.
5371 * stap-probe.c (handle_stap_probe): Update.
5372 * stabsread.c (dbx_init_float_type, define_symbol)
5373 (read_one_struct_field, read_enum_type, read_range_type): Update.
5374 * source.c (info_line_command): Update.
5375 * python/python.c (gdbpy_source_objfile_script)
5376 (gdbpy_execute_objfile_script): Update.
5377 * python/py-type.c (save_objfile_types): Update.
5378 * python/py-objfile.c (py_free_objfile): Update.
5379 * python/py-inferior.c (python_new_objfile): Update.
5380 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5381 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5382 (maintenance_check_psymtabs): Update.
5383 * printcmd.c (info_address_command): Update.
5384 * objfiles.h (struct objfile) <arch>: New method, from
5385 get_objfile_arch.
5386 (get_objfile_arch): Don't declare.
5387 * objfiles.c (get_objfile_arch): Remove.
5388 (filter_overlapping_sections): Update.
5389 * minsyms.c (msymbol_is_function): Update.
5390 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5391 (output_nondebug_symbol): Update.
5392 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5393 (mdebug_expand_psymtab): Update.
5394 * machoread.c (macho_add_oso_symfile): Update.
5395 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5396 Update.
5397 * linux-fork.c (checkpoint_command): Update.
5398 * linespec.c (convert_linespec_to_sals): Update.
5399 * jit.c (finalize_symtab): Update.
5400 * infrun.c (insert_exception_resume_from_probe): Update.
5401 * ia64-tdep.c (ia64_find_unwind_table): Update.
5402 * hppa-tdep.c (internalize_unwinds): Update.
5403 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5404 Update.
5405 * gcore.c (call_target_sbrk): Update.
5406 * elfread.c (record_minimal_symbol, elf_symtab_read)
5407 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5408 (elf_gnu_ifunc_resolve_by_got): Update.
5409 * dwarf2/read.c (create_addrmap_from_index)
5410 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5411 (read_debug_names_from_section)
5412 (process_psymtab_comp_unit_reader, add_partial_symbol)
5413 (add_partial_subprogram, process_full_comp_unit)
5414 (read_file_scope, read_func_scope, read_lexical_block_scope)
5415 (read_call_site_scope, dwarf2_ranges_read)
5416 (dwarf2_record_block_ranges, dwarf2_add_field)
5417 (mark_common_block_symbol_computed, read_tag_pointer_type)
5418 (read_tag_string_type, dwarf2_init_float_type)
5419 (dwarf2_init_complex_target_type, read_base_type)
5420 (partial_die_info::read, partial_die_info::read)
5421 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5422 (dwarf2_fetch_die_loc_sect_off): Update.
5423 * dwarf2/loc.c (dwarf2_find_location_expression)
5424 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5425 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5426 (dwarf2_loc_desc_get_symbol_read_needs)
5427 (locexpr_describe_location_piece, locexpr_describe_location_1)
5428 (loclist_describe_location): Update.
5429 * dwarf2/index-write.c (write_debug_names): Update.
5430 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5431 * dtrace-probe.c (dtrace_process_dof): Update.
5432 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5433 (process_one_symbol): Update.
5434 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5435 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5436 (coff_read_enum_type): Update.
5437 * cli/cli-cmds.c (edit_command, list_command): Update.
5438 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5439 * breakpoint.c (create_overlay_event_breakpoint)
5440 (create_longjmp_master_breakpoint)
5441 (create_std_terminate_master_breakpoint)
5442 (create_exception_master_breakpoint, get_sal_arch): Update.
5443 * block.c (block_gdbarch): Update.
5444 * annotate.c (annotate_source_line): Update.
5445
5446 2020-04-17 Tom Tromey <tromey@adacore.com>
5447
5448 * auto-load.c (show_auto_load_cmd): Remove.
5449 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5450 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5451 (maintenance_print_arc_command): Remove.
5452 * tui/tui-win.c (tui_command): Remove.
5453 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5454 * tui/tui-layout.c (tui_layout_command): Remove.
5455 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5456 * python/python.c (user_set_python, user_show_python): Remove.
5457 (_initialize_python): Use add_basic_prefix_cmd,
5458 add_show_prefix_cmd.
5459 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5460 (install_gdb_commands): Use add_basic_prefix_cmd,
5461 add_show_prefix_cmd.
5462 (info_guile_command): Remove.
5463 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5464 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5465 add_show_prefix_cmd.
5466 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5467 Remove do_set and do_show parameters.
5468 * cli/cli-style.c (set_style, show_style): Remove.
5469 (_initialize_cli_style): Use add_basic_prefix_cmd,
5470 add_show_prefix_cmd.
5471 (cli_style_option::add_setshow_commands): Remove do_set and
5472 do_show parameters.
5473 (cli_style_option::add_setshow_commands): Use
5474 add_basic_prefix_cmd, add_show_prefix_cmd.
5475 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5476 (set_style_name): Remove.
5477 * cli/cli-dump.c (dump_command, append_command): Remove.
5478 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5479 (tekhex_dump_command, binary_dump_command)
5480 (binary_append_command): Remove.
5481 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5482 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5483 (init_w32_command_list): Remove; move into ...
5484 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5485 * valprint.c (set_print, show_print, set_print_raw)
5486 (show_print_raw): Remove.
5487 (_initialize_valprint): Use add_basic_prefix_cmd,
5488 add_show_prefix_cmd.
5489 * typeprint.c (set_print_type, show_print_type): Remove.
5490 (_initialize_typeprint): Use add_basic_prefix_cmd,
5491 add_show_prefix_cmd.
5492 * record.c (set_record_command, show_record_command): Remove.
5493 (_initialize_record): Use add_basic_prefix_cmd,
5494 add_show_prefix_cmd.
5495 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5496 add_show_prefix_cmd.
5497 (info_command, show_command, set_debug, show_debug): Remove.
5498 * top.h (set_history, show_history): Don't declare.
5499 * top.c (set_history, show_history): Remove.
5500 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5501 (unset_tdesc_cmd): Remove.
5502 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5503 add_show_prefix_cmd.
5504 * symtab.c (info_module_command): Remove.
5505 (_initialize_symtab): Use add_basic_prefix_cmd.
5506 * symfile.c (overlay_command): Remove.
5507 (_initialize_symfile): Use add_basic_prefix_cmd.
5508 * sparc64-tdep.c (info_adi_command): Remove.
5509 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5510 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5511 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5512 add_show_prefix_cmd.
5513 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5514 (_initialize_serial): Use add_basic_prefix_cmd,
5515 add_show_prefix_cmd.
5516 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5517 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5518 add_show_prefix_cmd.
5519 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5520 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5521 add_show_prefix_cmd.
5522 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5523 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5524 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5525 add_show_prefix_cmd.
5526 * remote.c (remote_command, set_remote_cmd): Remove.
5527 (_initialize_remote): Use add_basic_prefix_cmd.
5528 * record-full.c (set_record_full_command)
5529 (show_record_full_command): Remove.
5530 (_initialize_record_full): Use add_basic_prefix_cmd,
5531 add_show_prefix_cmd.
5532 * record-btrace.c (cmd_set_record_btrace)
5533 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5534 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5535 (cmd_show_record_btrace_pt): Remove.
5536 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5537 add_show_prefix_cmd.
5538 * ravenscar-thread.c (set_ravenscar_command)
5539 (show_ravenscar_command): Remove.
5540 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5541 add_show_prefix_cmd.
5542 * mips-tdep.c (show_mips_command, set_mips_command)
5543 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5544 add_show_prefix_cmd.
5545 * maint.c (maintenance_command, maintenance_info_command)
5546 (maintenance_check_command, maintenance_print_command)
5547 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5548 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5549 add_show_prefix_cmd.
5550 (show_per_command_cmd): Remove.
5551 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5552 Remove.
5553 (maintenance_show_test_settings_cmd): Remove.
5554 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5555 add_show_prefix_cmd.
5556 * maint-test-options.c (maintenance_test_options_command):
5557 Remove.
5558 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5559 * macrocmd.c (macro_command): Remove
5560 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5561 * language.c (set_check, show_check): Remove.
5562 (_initialize_language): Use add_basic_prefix_cmd,
5563 add_show_prefix_cmd.
5564 * infcmd.c (unset_command): Remove.
5565 (_initialize_infcmd): Use add_basic_prefix_cmd.
5566 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5567 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5568 add_show_prefix_cmd.
5569 * go32-nat.c (go32_info_dos_command): Remove.
5570 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5571 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5572 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5573 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5574 (_initialize_frame): Use add_basic_prefix_cmd,
5575 add_show_prefix_cmd.
5576 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5577 (_initialize_dcache): Use add_basic_prefix_cmd,
5578 add_show_prefix_cmd.
5579 * cp-support.c (maint_cplus_command): Remove.
5580 (_initialize_cp_support): Use add_basic_prefix_cmd.
5581 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5582 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5583 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5584 add_basic_prefix_cmd, add_show_prefix_cmd.
5585 * breakpoint.c (save_command): Remove.
5586 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5587 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5588 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5589 add_show_prefix_cmd.
5590 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5591 (set_ada_command, show_ada_command): Remove.
5592 (_initialize_ada_language): Use add_basic_prefix_cmd,
5593 add_show_prefix_cmd.
5594 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5595
5596 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5597
5598 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5599 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5600
5601 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5602
5603 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5604 warning messages.
5605
5606 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5607
5608 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5609 import table is not at beginning of .idata section.
5610
5611 2020-04-16 Pedro Alves <palves@redhat.com>
5612
5613 * inferior.c (delete_inferior): Use delete operator directly
5614 instead of delete_program_space.
5615 * progspace.c (add_program_space): New, factored out from
5616 program_space::program_space.
5617 (remove_program_space): New, factored out from
5618 delete_program_space.
5619 (program_space::program_space): Remove intro comment. Rewrite.
5620 (program_space::~program_space): Remove intro comment. Call
5621 remove_program_space.
5622 (delete_program_space): Delete.
5623 * progspace.h (program_space::program_space): Make explicit. Move
5624 intro comment here, adjusted.
5625 (program_space::~program_space): Move intro comment here,
5626 adjusted.
5627 (delete_program_space): Remove.
5628
5629 2020-04-16 Tom Tromey <tromey@adacore.com>
5630
5631 * windows-nat.c (windows_nat::handle_access_violation): New
5632 function.
5633 * nat/windows-nat.h (handle_access_violation): Declare.
5634 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5635 windows-nat.c. Call handle_access_violation.
5636
5637 2020-04-16 Tom de Vries <tdevries@suse.de>
5638
5639 PR symtab/25791
5640 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5641 CUs without psymtab.
5642
5643 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5644
5645 * python/python.c (do_start_initialization): Don't call
5646 PyEval_InitThreads for Python 3.9 and beyond.
5647
5648 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5649
5650 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5651 thread functions.
5652 (obsd_nat_target::wait): Likewise.
5653
5654 2020-04-15 Tom Tromey <tromey@adacore.com>
5655
5656 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5657 (DEBUG_EXCEPT): Use debug_printf.
5658
5659 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5660
5661 * completer.c (class completion_tracker::completion_hash_entry)
5662 <hash_name>: New member function.
5663 (completion_tracker::discard_completions): New callback to hash a
5664 completion_hash_entry, pass this to htab_create_alloc.
5665
5666 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5667
5668 * windows-nat.c (windows_make_so): Warn rather than stopping with
5669 an error if realpath() fails.
5670
5671 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5672
5673 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5674 (nbsd_nat_target::info_proc): Add do_status.
5675
5676 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5677 Tom de Vries <tdevries@suse.de>
5678
5679 PR symtab/25718
5680 * psympriv.h (struct partial_symtab::read_symtab)
5681 (struct partial_symtab::expand_psymtab)
5682 (struct partial_symtab::read_dependencies): Update comments.
5683 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5684 read_symtab for includer.
5685 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5686 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5687 (struct dwarf2_include_psymtab::m_readin): Remove.
5688 (struct dwarf2_include_psymtab::includer): New member function.
5689 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5690
5691 2020-04-14 Tom de Vries <tdevries@suse.de>
5692
5693 PR symtab/25720
5694 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5695 with NULL symbol_matcher and lookup_name.
5696 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5697 and lookup_name.
5698 * dwarf2/read.c (dw2_expand_symtabs_matching)
5699 (dw2_debug_names_expand_symtabs_matching): Same.
5700 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5701 Make lookup_name a pointer. Update comment.
5702 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5703 lookup_name being a pointer.
5704 * symfile.c (expand_symtabs_matching): Same.
5705 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5706 * linespec.c (iterate_over_all_matching_symtabs): Same.
5707
5708 2020-04-13 Tom Tromey <tom@tromey.com>
5709
5710 * run-on-main-thread.c: Update include.
5711 * unittests/main-thread-selftests.c: Update include.
5712 * tui/tui-win.c: Update include.
5713 * tui/tui-io.c: Update include.
5714 * tui/tui-interp.c: Update include.
5715 * tui/tui-hooks.c: Update include.
5716 * top.h: Update include.
5717 * top.c: Update include.
5718 * ser-base.c: Update include.
5719 * remote.c: Update include.
5720 * remote-notif.c: Update include.
5721 * remote-fileio.c: Update include.
5722 * record-full.c: Update include.
5723 * record-btrace.c: Update include.
5724 * python/python.c: Update include.
5725 * posix-hdep.c: Update include.
5726 * mingw-hdep.c: Update include.
5727 * mi/mi-main.c: Update include.
5728 * mi/mi-interp.c: Update include.
5729 * main.c: Update include.
5730 * linux-nat.c: Update include.
5731 * interps.c: Update include.
5732 * infrun.c: Update include.
5733 * inf-loop.c: Update include.
5734 * event-top.c: Update include.
5735 * event-loop.c: Move to ../gdbsupport/.
5736 * event-loop.h: Move to ../gdbsupport/.
5737 * async-event.h: Update include.
5738 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5739
5740 2020-04-13 Tom Tromey <tom@tromey.com>
5741
5742 * tui/tui-win.c: Include async-event.h.
5743 * remote.c: Include async-event.h.
5744 * remote-notif.c: Include async-event.h.
5745 * record-full.c: Include async-event.h.
5746 * record-btrace.c: Include async-event.h.
5747 * infrun.c: Include async-event.h.
5748 * event-top.c: Include async-event.h.
5749 * event-loop.h: Move some declarations to async-event.h.
5750 * event-loop.c: Don't include ser-event.h or top.h. Move some
5751 code to async-event.c.
5752 * async-event.h: New file.
5753 * async-event.c: New file.
5754 * Makefile.in (COMMON_SFILES): Add async-event.c.
5755 (HFILES_NO_SRCDIR): Add async-event.h.
5756
5757 2020-04-13 Tom Tromey <tom@tromey.com>
5758
5759 * utils.c (flush_streams): New function.
5760 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5761
5762 2020-04-13 Tom Tromey <tom@tromey.com>
5763
5764 * event-loop.c (handle_file_event): Use warning, not
5765 printf_unfiltered.
5766
5767 2020-04-13 Tom Tromey <tom@tromey.com>
5768
5769 * event-loop.c: Include <chrono>.
5770
5771 2020-04-13 Tom Tromey <tom@tromey.com>
5772
5773 * gdb_select.h: Move to ../gdbsupport/.
5774 * event-loop.c: Update include path.
5775 * top.c: Update include path.
5776 * ser-base.c: Update include path.
5777 * ui-file.c: Update include path.
5778 * ser-tcp.c: Update include path.
5779 * guile/scm-ports.c: Update include path.
5780 * posix-hdep.c: Update include path.
5781 * ser-unix.c: Update include path.
5782 * gdb_usleep.c: Update include path.
5783 * mingw-hdep.c: Update include path.
5784 * inflow.c: Update include path.
5785 * infrun.c: Update include path.
5786 * event-top.c: Update include path.
5787
5788 2020-04-13 Tom Tromey <tom@tromey.com>
5789
5790 * configure: Rebuild.
5791 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5792
5793 2020-04-13 Tom Tromey <tom@tromey.com>
5794
5795 * event-loop.h (start_event_loop): Don't declare.
5796 * event-loop.c (start_event_loop): Move...
5797 * main.c (start_event_loop): ...here. Now static.
5798
5799 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5800
5801 * MAINTAINERS: Update my email address.
5802
5803 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5804
5805 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5806 IP_ALL.
5807
5808 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5809
5810 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5811 (nbsd_nat_target::info_proc): Add do_cmdline.
5812
5813 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5814
5815 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5816 (nbsd_nat_target::info_proc): Add do_cwd.
5817
5818 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5819
5820 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5821
5822 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5823
5824 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5825 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5826 (nbsd_nat_target::info_proc): New functions.
5827 * nbsd-nat.c (kinfo_get_vmmap): New function.
5828 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5829 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5830 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5831 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5832 functions.
5833 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5834 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5835 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5836 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5837 (KINFO_VME_FLAG_GROWS_DOWN): New.
5838
5839 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5840
5841 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5842 bit shift.
5843
5844 2020-04-10 Tom Tromey <tromey@adacore.com>
5845
5846 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5847
5848 2020-04-10 Tom Tromey <tromey@adacore.com>
5849
5850 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5851 separate debug files.
5852
5853 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5854
5855 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5856 Move to...
5857 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5858 ... here.
5859 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5860 Check for STATUS_WX86_BREAKPOINT.
5861 (windows_nat_target::wait): Same.
5862
5863 2020-04-10 Tom de Vries <tdevries@suse.de>
5864
5865 PR cli/25808
5866 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5867
5868 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5869
5870 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5871 (Write After Approval): Remove Tom de Vries.
5872
5873 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5874
5875 revert partially:
5876 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5877
5878 * buildsym.c (record_line): Fix undefined behavior and preserve
5879 lines at eof.
5880
5881 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5882
5883 * auxv.h (svr4_auxv_parse): New.
5884 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5885 and generic_auxv_parse.
5886 (svr4_auxv_parse): Add.
5887 * obsd-tdep.c: Include "auxv.h".
5888 (obsd_auxv_parse): Remove.
5889 (obsd_init_abi): Remove comment.
5890 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5891 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5892 * nbsd-tdep.c: Include "auxv.h".
5893 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5894
5895 2020-04-08 Tom Tromey <tromey@adacore.com>
5896
5897 * nat/windows-nat.h (last_wait_event): Don't declare.
5898 (wait_for_debug_event): Update comment.
5899 * nat/windows-nat.c (last_wait_event): Now static.
5900
5901 2020-04-08 Tom Tromey <tromey@adacore.com>
5902
5903 * windows-nat.c (wait_for_debug_event): Move to
5904 nat/windows-nat.c.
5905 * nat/windows-nat.h (wait_for_debug_event): Declare.
5906 * nat/windows-nat.c (wait_for_debug_event): Move from
5907 windows-nat.c. No longer static.
5908
5909 2020-04-08 Tom Tromey <tromey@adacore.com>
5910
5911 * windows-nat.c (get_windows_debug_event): Use
5912 fetch_pending_stop.
5913 * nat/windows-nat.h (fetch_pending_stop): Declare.
5914 * nat/windows-nat.c (fetch_pending_stop): New function.
5915
5916 2020-04-08 Tom Tromey <tromey@adacore.com>
5917
5918 * windows-nat.c (windows_continue): Use matching_pending_stop and
5919 continue_last_debug_event.
5920 * nat/windows-nat.h (matching_pending_stop)
5921 (continue_last_debug_event): Declare.
5922 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5923 (matching_pending_stop, continue_last_debug_event): New
5924 functions.
5925
5926 2020-04-08 Tom Tromey <tromey@adacore.com>
5927
5928 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5929 (handle_exception_result): Move to nat/windows-nat.h.
5930 (DEBUG_EXCEPTION_SIMPLE): Remove.
5931 (windows_nat::handle_ms_vc_exception): New function.
5932 (handle_exception): Move to nat/windows-nat.c.
5933 (get_windows_debug_event): Update.
5934 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5935 nat/windows-nat.c.
5936 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5937 (handle_exception_result): Move from windows-nat.c.
5938 (handle_exception): Declare.
5939 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5940 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5941 windows-nat.c.
5942
5943 2020-04-08 Tom Tromey <tromey@adacore.com>
5944
5945 * windows-nat.c (exception_count, event_count): Remove.
5946 (handle_exception, get_windows_debug_event)
5947 (do_initial_windows_stuff): Update.
5948
5949 2020-04-08 Tom Tromey <tromey@adacore.com>
5950
5951 * windows-nat.c (windows_nat::handle_load_dll)
5952 (windows_nat::handle_unload_dll): Rename. No longer static.
5953 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5954 Declare.
5955
5956 2020-04-08 Tom Tromey <tromey@adacore.com>
5957
5958 * complaints.h (stop_whining): Declare at top-level.
5959 (complaint): Don't declare stop_whining.
5960
5961 2020-04-08 Tom Tromey <tromey@adacore.com>
5962
5963 * windows-nat.c (windows_nat::handle_output_debug_string):
5964 Rename. No longer static.
5965 * nat/windows-nat.h (handle_output_debug_string): Declare.
5966
5967 2020-04-08 Tom Tromey <tromey@adacore.com>
5968
5969 * windows-nat.c (current_process_handle, current_process_id)
5970 (main_thread_id, last_sig, current_event, last_wait_event)
5971 (current_windows_thread, desired_stop_thread_id, pending_stops)
5972 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5973 (display_selectors, fake_create_process)
5974 (get_windows_debug_event): Update.
5975 * nat/windows-nat.h (current_process_handle, current_process_id)
5976 (main_thread_id, last_sig, current_event, last_wait_event)
5977 (current_windows_thread, desired_stop_thread_id, pending_stops)
5978 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5979 * nat/windows-nat.c (current_process_handle, current_process_id)
5980 (main_thread_id, last_sig, current_event, last_wait_event)
5981 (current_windows_thread, desired_stop_thread_id, pending_stops)
5982 (siginfo_er): New globals. Move from windows-nat.c.
5983
5984 2020-04-08 Tom Tromey <tromey@adacore.com>
5985
5986 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5987 (handle_load_dll): Update.
5988 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5989
5990 2020-04-08 Tom Tromey <tromey@adacore.com>
5991
5992 * windows-nat.c (enum thread_disposition_type): Move to
5993 nat/windows-nat.h.
5994 (windows_nat::thread_rec): Rename from thread_rec. No longer
5995 static.
5996 (windows_add_thread, windows_nat_target::fetch_registers)
5997 (windows_nat_target::store_registers, handle_exception)
5998 (windows_nat_target::resume, get_windows_debug_event)
5999 (windows_nat_target::get_tib_address)
6000 (windows_nat_target::thread_name)
6001 (windows_nat_target::thread_alive): Update.
6002 * nat/windows-nat.h (enum thread_disposition_type): Move from
6003 windows-nat.c.
6004 (thread_rec): Declare.
6005
6006 2020-04-08 Tom Tromey <tromey@adacore.com>
6007
6008 * windows-nat.c: Add "using namespace".
6009 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6010 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6011
6012 2020-04-08 Tom Tromey <tromey@adacore.com>
6013
6014 * nat/windows-nat.h (struct windows_thread_info): Declare
6015 destructor.
6016 * nat/windows-nat.c (~windows_thread_info): New.
6017
6018 2020-04-08 Tom Tromey <tromey@adacore.com>
6019
6020 PR gdb/22992
6021 * windows-nat.c (current_event): Update comment.
6022 (last_wait_event, desired_stop_thread_id): New globals.
6023 (struct pending_stop): New.
6024 (pending_stops): New global.
6025 (windows_nat_target) <stopped_by_sw_breakpoint>
6026 <supports_stopped_by_sw_breakpoint>: New methods.
6027 (windows_fetch_one_register): Add assertions. Adjust PC.
6028 (windows_continue): Handle pending stops. Suspend other threads
6029 when stepping. Use last_wait_event
6030 (wait_for_debug_event): New function.
6031 (get_windows_debug_event): Use wait_for_debug_event. Handle
6032 pending stops. Queue spurious stops.
6033 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6034 (windows_nat_target::kill): Use wait_for_debug_event.
6035 * nat/windows-nat.h (struct windows_thread_info)
6036 <stopped_at_software_breakpoint>: New field.
6037 * nat/windows-nat.c (windows_thread_info::resume): Clear
6038 stopped_at_software_breakpoint.
6039
6040 2020-04-08 Tom Tromey <tromey@adacore.com>
6041
6042 * windows-nat.c (enum thread_disposition_type): New.
6043 (thread_rec): Replace "get_context" parameter with "disposition";
6044 change type.
6045 (windows_add_thread, windows_nat_target::fetch_registers)
6046 (windows_nat_target::store_registers, handle_exception)
6047 (windows_nat_target::resume, get_windows_debug_event)
6048 (windows_nat_target::get_tib_address)
6049 (windows_nat_target::thread_name)
6050 (windows_nat_target::thread_alive): Update.
6051
6052 2020-04-08 Tom Tromey <tromey@adacore.com>
6053
6054 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6055 (windows_continue): Use windows_continue::resume.
6056 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6057 resume>: Declare new methods.
6058 * nat/windows-nat.c: New file.
6059 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6060
6061 2020-04-08 Tom Tromey <tromey@adacore.com>
6062
6063 * windows-nat.c (windows_add_thread, windows_delete_thread)
6064 (windows_nat_target::fetch_registers)
6065 (windows_nat_target::store_registers, fake_create_process)
6066 (windows_nat_target::resume, windows_nat_target::resume)
6067 (get_windows_debug_event, windows_nat_target::wait)
6068 (windows_nat_target::pid_to_str)
6069 (windows_nat_target::get_tib_address)
6070 (windows_nat_target::get_ada_task_ptid)
6071 (windows_nat_target::thread_name)
6072 (windows_nat_target::thread_alive): Use lwp, not tid.
6073
6074 2020-04-08 Tom Tromey <tromey@adacore.com>
6075
6076 * windows-nat.c (handle_exception)
6077 (windows_nat_target::thread_name): Update.
6078 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6079 <name>: Now unique_xmalloc_ptr.
6080
6081 2020-04-08 Tom Tromey <tromey@adacore.com>
6082
6083 * windows-nat.c (thread_rec)
6084 (windows_nat_target::fetch_registers): Update.
6085 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6086 Update comment.
6087 <debug_registers_changed, reload_context>: Now bool.
6088
6089 2020-04-08 Tom Tromey <tromey@adacore.com>
6090
6091 * windows-nat.c (windows_add_thread): Use new.
6092 (windows_init_thread_list, windows_delete_thread): Use delete.
6093 (get_windows_debug_event): Update.
6094 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6095 destructor, and initializers.
6096
6097 2020-04-08 Tom Tromey <tromey@adacore.com>
6098
6099 * windows-nat.c (struct windows_thread_info): Remove.
6100 * nat/windows-nat.h: New file.
6101
6102 2020-04-08 Tom Tromey <tromey@adacore.com>
6103
6104 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6105 (thread_rec, windows_add_thread, windows_delete_thread)
6106 (windows_continue): Update.
6107
6108 2020-04-08 Tom Tromey <tromey@adacore.com>
6109
6110 * windows-nat.c (struct windows_thread_info): Remove typedef.
6111 (thread_head): Remove.
6112 (thread_list): New global.
6113 (thread_rec, windows_add_thread, windows_init_thread_list)
6114 (windows_delete_thread, windows_continue): Update.
6115
6116 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6117
6118 * windows-tdep.h (windows_init_abi): Add comment.
6119 (cygwin_init_abi): New declaration.
6120 * windows-tdep.c: Split signal enumeration in two, one for
6121 Windows and one for Cygwin.
6122 (windows_gdb_signal_to_target): Only deal with signal of the
6123 Windows OS ABI.
6124 (cygwin_gdb_signal_to_target): New function.
6125 (windows_init_abi): Rename to windows_init_abi_common, don't set
6126 gdb_signal_to_target gdbarch method. Add new new function with
6127 this name.
6128 (cygwin_init_abi): New function.
6129 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6130 comment. Don't call windows_init_abi.
6131 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6132 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6133 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6134 i386_windows_init_abi_common, don't call windows_init_abi. Add
6135 a new function of this name.
6136 (i386_cygwin_init_abi): New function.
6137 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6138 OS ABI Cygwin.
6139
6140 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6141
6142 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6143 parameter.c.
6144 (dwarf2_read_gdb_index): Update.
6145
6146 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6147
6148 * nbsd-tdep.c: Include "objfiles.h".
6149 (nbsd_skip_solib_resolver): New.
6150 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6151
6152 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6153
6154 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6155 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6156 with DW_LLE_base_addressx are being emitted in DWARFv5.
6157 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6158 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6159 unsigned integer.
6160
6161 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6162
6163 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6164 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6165 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6166 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6167 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6168 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6169 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6170
6171
6172 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6173
6174 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6175 (read_loclist_index): New function definition.
6176 (lookup_loclist_base): New function definition.
6177 (read_loclist_header): New function definition.
6178 (dwarf2_cu): Add loclist_base and loclist_header field.
6179 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6180 (read_full_die_1): Read the value of DW_AT_loclists_base.
6181 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6182 (read_attribute_value): Handle DW_FORM_loclistx.
6183 (skip_one_die): Handle DW_FORM_loclistx.
6184 (loclist_header): New structure declaration.
6185 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6186
6187 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6188
6189 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6190 constructor. Remove `addr` parameter from other constructor and
6191 add `per_cu` parameter.
6192 * dwarf2/read.c (create_partial_symtab): Update.
6193
6194 2020-04-07 Tom de Vries <tdevries@suse.de>
6195
6196 PR symtab/25796
6197 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6198 (partial_die_info::fixup): Inherit has_const_value.
6199
6200 2020-04-07 Tom de Vries <tdevries@suse.de>
6201
6202 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6203 symbols without address.
6204
6205 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6206
6207 * nbsd-nat.h (struct thread_info): Add forward declaration.
6208 (nbsd_nat_target::thread_alive): Add.
6209 (nbsd_nat_target::thread_name): Likewise.
6210 (nbsd_nat_target::update_thread_list): Likewise.
6211 (update_thread_list::post_attach): Likewise.
6212 (post_attach::pid_to_str): Likewise.
6213 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6214 (nbsd_thread_lister): Add.
6215 (nbsd_nat_target::thread_alive): Likewise.
6216 (nbsd_nat_target::thread_name): Likewise.
6217 (nbsd_add_threads): Likewise.
6218 (update_thread_list::post_attach): Likewise.
6219 (nbsd_nat_target::update_thread_list): Likewise.
6220 (post_attach::pid_to_str): Likewise.
6221
6222 2020-04-06 Tom Tromey <tromey@adacore.com>
6223
6224 * ada-valprint.c (print_variant_part): Extract the variant field.
6225 (print_field_values): Use the field as the outer value when
6226 recursing.
6227
6228 2020-04-06 Tom Tromey <tromey@adacore.com>
6229
6230 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6231 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6232 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6233 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6234 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6235
6236 2020-04-06 Tom Tromey <tromey@adacore.com>
6237
6238 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6239 TYPE_CODE_ERROR.
6240
6241 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6242
6243 * nbsd-tdep.c: Include "gdbarch.h".
6244 Define enum with NetBSD signal numbers.
6245 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6246 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6247 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6248 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6249 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6250 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6251 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6252 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6253 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6254 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6255 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6256 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6257
6258 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6259
6260 PR gdb/25325
6261 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6262
6263 2020-04-03 Tom Tromey <tromey@adacore.com>
6264
6265 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6266 Read constant block.
6267
6268 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6269
6270 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6271 (gdb_bfd_get_full_section_contents): New declaration.
6272 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6273 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6274 gdb_bfd_get_full_section_contents.
6275
6276 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6277
6278 * exec.c (build_section_table): Replace internal_error with
6279 gdb_assert.
6280 (section_table_xfer_memory_partial): Likewise.
6281 * mdebugread.c (parse_partial_symbols): Likewise.
6282 * psymtab.c (lookup_partial_symbol): Likewise.
6283 * utils.c (wrap_here): Likewise.
6284
6285 2020-04-02 Tom Tromey <tromey@adacore.com>
6286
6287 * f-lang.c (build_fortran_types): Use arch_type to initialize
6288 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6289
6290 2020-04-02 Tom Tromey <tromey@adacore.com>
6291
6292 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6293 of attributes.
6294
6295 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6296 Bernd Edlinger <bernd.edlinger@hotmail.de>
6297 Tom Tromey <tromey@adacore.com>
6298
6299 * buildsym.c (buildsym_compunit::record_line): Remove
6300 deduplication code.
6301
6302 2020-04-02 Tom de Vries <tdevries@suse.de>
6303
6304 PR ada/24671
6305 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6306
6307 2020-04-02 Tom de Vries <tdevries@suse.de>
6308
6309 * dwarf2/read.c (dwarf2_gdb_index_functions,
6310 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6311 NULL.
6312 * psymtab.c (psym_lookup_global_symbol_language): New function.
6313 (psym_functions): Init psym_lookup_global_symbol_language with
6314 psym_lookup_global_symbol_language.
6315 * symfile-debug.c (debug_sym_quick_functions): Init
6316 lookup_global_symbol_language with NULL.
6317 * symfile.c (set_initial_language): Remove fixme comment.
6318 * symfile.h (struct quick_symbol_functions): Add
6319 lookup_global_symbol_language.
6320 * symtab.c (find_quick_global_symbol_language): New function.
6321 (find_main_name): Use find_quick_global_symbol_language.
6322
6323 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6324
6325 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6326
6327 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6328
6329 * buildsym.c (record_line): Fix undefined behavior and preserve
6330 lines at eof.
6331
6332 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6333
6334 * buildsym.c (record_line): Fix the resizing condition.
6335
6336 2020-04-01 Tom Tromey <tom@tromey.com>
6337
6338 * value.h (value_literal_complex): Add comment.
6339 * valops.c (value_literal_complex): Refer to value.h.
6340
6341 2020-04-01 Tom Tromey <tom@tromey.com>
6342
6343 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6344 (scalar_type): New rule, from typebase.
6345 (typebase): Use scalar_type. Recognize complex types.
6346 (field_name): Handle FLOAT_KEYWORD.
6347 (ident_tokens): Add _Complex and __complex__.
6348
6349 2020-04-01 Tom Tromey <tom@tromey.com>
6350
6351 PR exp/25299:
6352 * valarith.c (promotion_type, complex_binop): New functions.
6353 (scalar_binop): Handle complex numbers. Use promotion_type.
6354 (value_pos, value_neg, value_complement): Handle complex numbers.
6355
6356 2020-04-01 Tom Tromey <tom@tromey.com>
6357
6358 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6359 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6360 (parse_number): Handle complex numbers.
6361
6362 2020-04-01 Tom Tromey <tom@tromey.com>
6363
6364 * c-valprint.c (c_decorations): Change complex suffix to "i".
6365
6366 2020-04-01 Tom Tromey <tom@tromey.com>
6367
6368 * valprint.c (generic_value_print_complex): Use accessors.
6369 * value.h (value_real_part, value_imaginary_part): Declare.
6370 * valops.c (value_real_part, value_imaginary_part): New
6371 functions.
6372 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6373
6374 2020-04-01 Tom Tromey <tom@tromey.com>
6375
6376 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6377 (read_range_type): Update.
6378 * mdebugread.c (basic_type): Update.
6379 * go-lang.c (build_go_types): Use init_complex_type.
6380 * gdbtypes.h (struct main_type) <complex_type>: New member.
6381 (init_complex_type): Update.
6382 (arch_complex_type): Don't declare.
6383 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6384 Make name if none given. Use alloc_type_copy. Look for cached
6385 complex type.
6386 (arch_complex_type): Remove.
6387 (gdbtypes_post_init): Use init_complex_type.
6388 * f-lang.c (build_fortran_types): Use init_complex_type.
6389 * dwarf2/read.c (read_base_type): Update.
6390 * d-lang.c (build_d_types): Use init_complex_type.
6391 * ctfread.c (read_base_type): Update.
6392
6393 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6394
6395 * infrun.c (stop_all_threads): Update assertion, plus when
6396 stopping threads, take into account that we might be trying
6397 to stop an all-stop target.
6398 (stop_waiting): Call 'stop_all_threads' if there exists a
6399 non-stop target.
6400
6401 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6402
6403 * target.h (exists_non_stop_target): New function declaration.
6404 * target.c (exists_non_stop_target): New function.
6405
6406 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6407
6408 PR gdb/24789
6409 * eval.c (is_integral_or_integral_reference): New function.
6410 (evaluate_subexp_standard): Allow integer references in
6411 pointer arithmetic.
6412
6413 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6414
6415 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6416 check for no ptid in the stop reply when the target is non-stop.
6417
6418 2020-04-01 Tom Tromey <tromey@adacore.com>
6419
6420 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6421 "name" parameter to rvalue reference. Initialize m_name_holder.
6422 <lookup_name_info>: New overloads.
6423 <name>: Return gdb::string_view.
6424 <c_str>: New method.
6425 <make_ignore_params>: Update.
6426 <search_name_hash>: Update.
6427 <language_lookup_name>: Return const char *.
6428 <m_name>: Change type.
6429 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6430 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6431 (lookup_name_info::match_any): Update.
6432 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6433 Update.
6434 * minsyms.c (linkage_name_str): Update.
6435 * language.c (default_symbol_name_matcher): Update.
6436 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6437 Update.
6438 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6439 (ada_lookup_name_info::ada_lookup_name_info): Update.
6440 (literal_symbol_name_matcher): Update.
6441
6442 2020-04-01 Tom Tromey <tromey@adacore.com>
6443
6444 * psymtab.c (psymtab_search_name): Remove function.
6445 (psym_lookup_symbol): Create search name and lookup name here.
6446 (lookup_partial_symbol): Remove "name" parameter; add
6447 lookup_name.
6448 (psym_expand_symtabs_for_function): Update.
6449
6450 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6451
6452 PR tui/25597:
6453 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6454
6455 2020-03-31 Tom Tromey <tromey@adacore.com>
6456
6457 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6458 memcpy.
6459
6460 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6461
6462 * features/riscv/32bit-csr.xml: Regenerated.
6463 * features/riscv/64bit-csr.xml: Regenerated.
6464
6465 2020-03-30 Tom Tromey <tromey@adacore.com>
6466
6467 * ada-valprint.c (print_variant_part): Update.
6468 * ada-lang.h (ada_which_variant_applies): Update.
6469 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6470 outer_valaddr parameters; replace with "outer" value parameter.
6471 (to_fixed_variant_branch_type): Update.
6472
6473 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6474
6475 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6476 <list>. Remove inclusion of observable.h.
6477 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6478 (struct arch_lwp_info): New struct.
6479 (class ppc_linux_dreg_interface): New class.
6480 (struct ppc_linux_process_info): New struct.
6481 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6482 <low_new_clone, low_forget_process, low_prepare_to_resume>
6483 <copy_thread_dreg_state, mark_thread_stale>
6484 <mark_debug_registers_changed, register_hw_breakpoint>
6485 <clear_hw_breakpoint, register_wp, clear_wp>
6486 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6487 <num_memory_accesses, get_trigger_type>
6488 <create_watchpoint_request, hwdebug_point_cmp>
6489 <init_arch_lwp_info, get_arch_lwp_info>
6490 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6491 methods.
6492 <struct ptid_hash>: New inner struct.
6493 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6494 members.
6495 (saved_dabr_value, hwdebug_info, max_slots_number)
6496 (struct hw_break_tuple, struct thread_points, ppc_threads)
6497 (have_ptrace_hwdebug_interface)
6498 (hwdebug_find_thread_points_by_tid)
6499 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6500 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6501 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6502 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6503 use m_dreg_interface.
6504 (hwdebug_point_cmp): Change to...
6505 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6506 reference arguments instead of pointers.
6507 (ppc_linux_nat_target::ranged_break_num_registers): Use
6508 m_dreg_interface.
6509 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6510 m_dreg_interface. Call register_hw_breakpoint.
6511 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6512 m_dreg_interface. Call clear_hw_breakpoint.
6513 (get_trigger_type): Change to...
6514 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6515 comment.
6516 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6517 use m_dreg_interface. Call register_hw_breakpoint.
6518 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6519 use m_dreg_interface. Call clear_hw_breakpoint.
6520 (can_use_watchpoint_cond_accel): Change to...
6521 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6522 method. Update comment, use m_dreg_interface and
6523 m_process_info.
6524 (calculate_dvc): Change to...
6525 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6526 m_dreg_interface.
6527 (num_memory_accesses): Change to...
6528 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6529 (check_condition): Change to...
6530 (ppc_linux_nat_target::check_condition): ...this method.
6531 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6532 comment, use m_dreg_interface.
6533 (create_watchpoint_request): Change to...
6534 (ppc_linux_nat_target::create_watchpoint_request): ...this
6535 method. Use m_dreg_interface.
6536 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6537 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6538 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6539 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6540 (ppc_linux_nat_target::low_forget_process)
6541 (ppc_linux_nat_target::low_new_fork)
6542 (ppc_linux_nat_target::low_new_clone)
6543 (ppc_linux_nat_target::low_delete_thread)
6544 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6545 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6546 only call mark_thread_stale.
6547 (ppc_linux_thread_exit): Remove.
6548 (ppc_linux_nat_target::stopped_data_address): Change to...
6549 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6550 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6551 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6552 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6553 comment. Call low_stopped_data_address.
6554 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6555 m_dreg_interface.
6556 (ppc_linux_nat_target::masked_watch_num_registers): Use
6557 m_dreg_interface.
6558 (ppc_linux_nat_target::copy_thread_dreg_state)
6559 (ppc_linux_nat_target::mark_thread_stale)
6560 (ppc_linux_nat_target::mark_debug_registers_changed)
6561 (ppc_linux_nat_target::register_hw_breakpoint)
6562 (ppc_linux_nat_target::clear_hw_breakpoint)
6563 (ppc_linux_nat_target::register_wp)
6564 (ppc_linux_nat_target::clear_wp)
6565 (ppc_linux_nat_target::init_arch_lwp_info)
6566 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6567 (_initialize_ppc_linux_nat): Remove observer callback.
6568
6569 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6570
6571 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6572 (ppc_linux_nat_target::auxv_parse)
6573 (ppc_linux_nat_target::read_description)
6574 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6575 Move up.
6576
6577 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6578
6579 * linux-nat.h (low_new_clone): New method.
6580 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6581
6582 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6583
6584 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6585 (dbx_expand_psymtab): ... this.
6586 (start_psymtab): Update.
6587 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6588 (mdebug_expand_psymtab): ... this.
6589 (parse_partial_symbols): Update.
6590 (new_psymtab): Update.
6591 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6592 (xcoff_expand_psymtab): ... this.
6593 (xcoff_start_psymtab): Update.
6594
6595 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6596
6597 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6598 <expand_dependencies>: ... this.
6599 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6600 (partial_symtab::expand_dependencies): ... this.
6601 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6602 Update.
6603 (dwarf2_psymtab::expand_psymtab): Update.
6604 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6605 * mdebugread.c (psymtab_to_symtab_1): Update.
6606 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6607
6608 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6609
6610 * psympriv.h (discard_psymtab): Remove.
6611 * dbxread.c (dbx_end_psymtab): Update.
6612 * xcoffread.c (xcoff_end_psymtab): Update.
6613
6614 2020-03-28 Tom Tromey <tom@tromey.com>
6615
6616 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6617 comment.
6618
6619 2020-03-28 Tom Tromey <tom@tromey.com>
6620
6621 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6622
6623 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6624
6625 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6626
6627 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6628
6629 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6630
6631 2020-03-26 Tom Tromey <tom@tromey.com>
6632
6633 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6634 (mark_common_block_symbol_computed, read_tag_string_type)
6635 (attr_to_dynamic_prop, read_subrange_type): Update.
6636 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6637 to be methods on struct attribute.
6638 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6639 (read_call_site_scope, partial_die_info::read)
6640 (partial_die_info::read, lookup_die_type, follow_die_ref):
6641 Update.
6642 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6643 from dwarf2_get_ref_die_offset.
6644 (attribute::constant_value): New method, from
6645 dwarf2_get_attr_constant_value.
6646 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6647 Declare method.
6648 <constant_value>: New method.
6649
6650 2020-03-26 Tom Tromey <tom@tromey.com>
6651
6652 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6653 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6654 (dwarf_type_encoding_name): Move to stringify.c.
6655 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6656 * dwarf2/stringify.c: New file.
6657 * dwarf2/stringify.h: New file.
6658
6659 2020-03-26 Tom Tromey <tom@tromey.com>
6660
6661 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6662 Rewrite.
6663
6664 2020-03-26 Tom Tromey <tom@tromey.com>
6665
6666 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6667 methods.
6668 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6669 (lookup_ranges_base): Likewise.
6670 (read_cutu_die_from_dwo, read_full_die_1): Update.
6671
6672 2020-03-26 Tom Tromey <tom@tromey.com>
6673
6674 * dwarf2/read.c (read_import_statement, read_file_scope)
6675 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6676 (read_lexical_block_scope, read_call_site_scope)
6677 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6678 (handle_struct_member_die, process_structure_scope)
6679 (update_enumeration_type_from_children)
6680 (process_enumeration_scope, read_array_type, read_common_block)
6681 (read_namespace, read_module, read_subroutine_type): Update.
6682 (sibling_die): Remove.
6683
6684 2020-03-26 Tom Tromey <tom@tromey.com>
6685
6686 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6687 (build_type_psymtabs_reader, read_structure_type)
6688 (read_enumeration_type, read_full_die_1): Update.
6689 (dwarf2_attr_no_follow): Move to die.h.
6690 * dwarf2/die.h (struct die_info) <attr>: New method.
6691
6692 2020-03-26 Tom Tromey <tom@tromey.com>
6693
6694 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6695 <base_address>: Now an optional.
6696 (dwarf2_find_base_address, dwarf2_rnglists_process)
6697 (dwarf2_ranges_process, fill_in_loclist_baton)
6698 (dwarf2_symbol_mark_computed): Update.
6699
6700 2020-03-26 Tom Tromey <tom@tromey.com>
6701
6702 * dwarf2/read.c (struct die_info): Move to die.h.
6703 * dwarf2/die.h: New file.
6704
6705 2020-03-26 Tom Tromey <tom@tromey.com>
6706
6707 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6708 * dwarf2/read.c
6709 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6710 Move to line-header.c.
6711 (read_checked_initial_length_and_offset, read_formatted_entries):
6712 Likewise.
6713 (dwarf_decode_line_header): Split into two.
6714 * dwarf2/line-header.c
6715 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6716 Move from read.c.
6717 (read_checked_initial_length_and_offset, read_formatted_entries):
6718 Likewise.
6719 (dwarf_decode_line_header): New function, split from read.c.
6720
6721 2020-03-26 Tom Tromey <tom@tromey.com>
6722
6723 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6724 Declare method.
6725 * dwarf2/read.c (read_attribute_value): Update.
6726 (dwarf2_per_objfile::read_line_string): Rename from
6727 read_indirect_line_string.
6728 (read_formatted_entries): Update.
6729
6730 2020-03-26 Tom Tromey <tom@tromey.com>
6731
6732 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6733 variable.
6734
6735 2020-03-26 Tom Tromey <tom@tromey.com>
6736
6737 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6738 const.
6739 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6740 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6741 parameter const.
6742
6743 2020-03-26 Tom Tromey <tom@tromey.com>
6744
6745 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6746 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6747 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6748 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6749
6750 2020-03-26 Tom Tromey <tom@tromey.com>
6751
6752 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6753 file_names_size, file_full_name, file_file_name>: Use const.
6754 <file_name_at, file_names>: Add const overload.
6755 * dwarf2/line-header.c (line_header::file_file_name)
6756 (line_header::file_full_name): Update.
6757
6758 2020-03-26 Tom Tromey <tom@tromey.com>
6759
6760 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6761 (macro_start_file, consume_improper_spaces)
6762 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6763 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6764 (dwarf_decode_macros): Move to macro.c.
6765 * dwarf2/macro.c: New file.
6766 * dwarf2/macro.h: New file.
6767 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6768
6769 2020-03-26 Tom Tromey <tom@tromey.com>
6770
6771 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6772 method.
6773 * dwarf2/section.c: New method. From
6774 read_indirect_string_at_offset_from.
6775 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6776 (read_indirect_string_at_offset_from): Move to section.c.
6777 (read_indirect_string_at_offset): Rewrite.
6778 (read_indirect_line_string_at_offset): Remove.
6779 (read_indirect_string, read_indirect_line_string)
6780 (dwarf_decode_macro_bytes): Update.
6781
6782 2020-03-26 Tom Tromey <tom@tromey.com>
6783
6784 * dwarf2/section.h (struct dwarf2_section_info)
6785 <overload_complaint>: Declare.
6786 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6787 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6788 Rename from dwarf2_section_buffer_overflow_complaint.
6789 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6790 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6791
6792 2020-03-26 Tom Tromey <tom@tromey.com>
6793
6794 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6795 Declare.
6796 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6797 Move from read.c.
6798 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6799 to section.c.
6800
6801 2020-03-26 Tom Tromey <tom@tromey.com>
6802
6803 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6804
6805 2020-03-26 Tom Tromey <tom@tromey.com>
6806
6807 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6808 "builder".
6809 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6810 parameter.
6811 (dwarf_decode_macros): Update.
6812
6813 2020-03-26 Tom Tromey <tom@tromey.com>
6814
6815 * dwarf2/read.c (read_attribute_value): Update.
6816 (read_indirect_string_from_dwz): Move to dwz.c; change into
6817 method.
6818 (dwarf_decode_macro_bytes): Update.
6819 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6820 * dwarf2/dwz.c: New file.
6821 * Makefile.in (COMMON_SFILES): Add dwz.c.
6822
6823 2020-03-26 Tom Tromey <tom@tromey.com>
6824
6825 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6826 * dwarf2/read.c: Add include.
6827 * dwarf2/index-write.c: Add include.
6828 * dwarf2/index-cache.c: Add include.
6829 * dwarf2/dwz.h: New file.
6830
6831 2020-03-25 Tom Tromey <tom@tromey.com>
6832
6833 * compile/compile-object-load.c (get_out_value_type): Mention
6834 correct symbol name in error message.
6835
6836 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6837
6838 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6839
6840 2020-03-25 Tom de Vries <tdevries@suse.de>
6841
6842 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6843 * symmisc.c (dump_symtab_1): Print user and includes fields.
6844 (maintenance_info_symtabs): Same.
6845
6846 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6847
6848 PR gdb/25534
6849 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6850 (riscv_regcache_cooked_write): New function.
6851 (riscv_push_dummy_call): Use new function.
6852 (riscv_return_value): Likewise.
6853
6854 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6855
6856 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6857 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6858 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6859 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6860 * infrun.c (follow_fork): Likewise.
6861 (follow_fork_inferior): Likewise.
6862 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6863 * linux-nat.h (class linux_nat_target): Likewise.
6864 * remote.c (class remote_target) <follow_fork>: Likewise.
6865 (remote_target::follow_fork): Likewise.
6866 * target-delegates.c: Re-generate.
6867 * target.c (default_follow_fork): Likewise.
6868 (target_follow_fork): Likewise.
6869 * target.h (struct target_ops) <follow_fork>: Likewise.
6870 (target_follow_fork): Likewise.
6871
6872 2020-03-24 Tom de Vries <tdevries@suse.de>
6873
6874 * psymtab.c (maintenance_info_psymtabs): Print user field.
6875
6876 2020-03-20 Tom Tromey <tromey@adacore.com>
6877
6878 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6879 const.
6880 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6881 const.
6882
6883 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6884
6885 * ptrace.m4: Don't check for ptrace declaration.
6886 * config.in: Re-generate.
6887 * configure: Re-generate.
6888 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6889 not defined.
6890
6891 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6892
6893 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6894 `PTRACE_TYPE_RET'.
6895 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6896 * sparc-nat.c (gdb_ptrace): Likewise.
6897 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6898
6899 2020-03-20 Tom Tromey <tromey@adacore.com>
6900
6901 * c-exp.y (lex_one_token): Fix assert.
6902
6903 2020-03-20 Tom Tromey <tromey@adacore.com>
6904
6905 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6906 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6907 strncpy call.
6908
6909 2020-03-20 Tom Tromey <tromey@adacore.com>
6910
6911 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6912
6913 2020-03-20 Tom Tromey <tromey@adacore.com>
6914
6915 * ada-valprint.c (print_variant_part): Remove parameters; switch
6916 to value-based API.
6917 (print_field_values): Likewise.
6918 (ada_val_print_struct_union): Likewise.
6919 (ada_value_print_1): Update.
6920
6921 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6922
6923 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6924 nbsd_nat_target instead of inf_ptrace_target.
6925 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6926 nbsd_nat_target.
6927
6928 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6929
6930 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6931 it to the ptrace call.
6932 * (store_registers): Likewise.
6933
6934 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6935
6936 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6937 it to the ptrace call.
6938 * (store_registers): Likewise.
6939
6940 2020-03-19 Luis Machado <luis.machado@linaro.org>
6941
6942 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6943 valid, fetch vg value from ptrace.
6944
6945 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6946 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6947 * inf-ptrace.c: Likewise.
6948 * (gdb_ptrace): Add.
6949 * (inf_ptrace_target::resume): Update.
6950 * (inf_ptrace_target::xfer_partial): Likewise.
6951 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6952 * (inf_ptrace_peek_poke): Update.
6953
6954 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6955
6956 * x86-bsd-nat.c (gdb_ptrace): New.
6957 * (x86bsd_dr_set): Add new argument `ptid'.
6958 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6959 x86bsd_dr_set_addr): Update.
6960
6961 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6962
6963 * remote.c (remote_target::process_stop_reply): Handle events for
6964 all threads differently.
6965
6966 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6967
6968 * completer.c (completion_tracker::remove_completion): Define new
6969 function.
6970 * completer.h (completion_tracker::remove_completion): Declare new
6971 function.
6972 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6973 when adding a C++ function symbol.
6974
6975 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6976
6977 * completer.c (completion_tracker::completion_hash_entry): Define
6978 new class.
6979 (advance_to_filename_complete_word_point): Call
6980 recompute_lowest_common_denominator.
6981 (completion_tracker::completion_tracker): Call discard_completions
6982 to setup the hash table.
6983 (completion_tracker::discard_completions): Allow for being called
6984 from the constructor, pass new equal function, and element deleter
6985 when constructing the hash table. Initialise new class member
6986 variables.
6987 (completion_tracker::maybe_add_completion): Remove use of
6988 m_entries_vec, and store more information into m_entries_hash.
6989 (completion_tracker::recompute_lcd_visitor): New function, most
6990 content taken from...
6991 (completion_tracker::recompute_lowest_common_denominator):
6992 ...here, this now just visits each item in the hash calling the
6993 above visitor.
6994 (completion_tracker::build_completion_result): Remove use of
6995 m_entries_vec, call recompute_lowest_common_denominator.
6996 * completer.h (completion_tracker::have_completions): Remove use
6997 of m_entries_vec.
6998 (completion_tracker::completion_hash_entry): Declare new class.
6999 (completion_tracker::recompute_lowest_common_denominator): Change
7000 function signature.
7001 (completion_tracker::recompute_lcd_visitor): Declare new function.
7002 (completion_tracker::m_entries_vec): Delete.
7003 (completion_tracker::m_entries_hash): Initialize to NULL.
7004 (completion_tracker::m_lowest_common_denominator_valid): New
7005 member variable.
7006 (completion_tracker::m_lowest_common_denominator_max_length): New
7007 member variable.
7008
7009 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7010
7011 * regformats/regdef.h: Put reg in gdb namespace.
7012
7013 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7014
7015 * i386-bsd-nat.c (gdb_ptrace): New.
7016 * (i386bsd_fetch_inferior_registers,
7017 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7018 * (i386bsd_fetch_inferior_registers,
7019 i386bsd_store_inferior_registers) Use gdb_ptrace.
7020
7021 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7022
7023 * amd64-bsd-nat.c (gdb_ptrace): New.
7024 * (amd64bsd_fetch_inferior_registers,
7025 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7026 * (amd64bsd_fetch_inferior_registers,
7027 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7028
7029 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7030
7031 * user-regs.c (user_reg::read): Rename to...
7032 (user_reg::xread): ...this.
7033 * (append_user_reg): Rename argument `read' to `xread'.
7034 * (user_reg_add_builtin): Likewise.
7035 * (user_reg_add): Likewise.
7036 * (value_of_user_reg): Likewise.
7037
7038 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7039
7040 * sparc-nat.c (gdb_ptrace): New.
7041 * sparc-nat.c (sparc_fetch_inferior_registers)
7042 (sparc_store_inferior_registers) Remove obsolete comment.
7043 * sparc-nat.c (sparc_fetch_inferior_registers)
7044 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7045 * sparc-nat.c (sparc_fetch_inferior_registers)
7046 (sparc_store_inferior_registers) Use gdb_ptrace.
7047
7048 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7049
7050 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7051 it to the ptrace call.
7052 * sh-nbsd-nat.c (store_registers): Likewise.
7053
7054 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7055
7056 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7057 nbsd_nat_target instead of inf_ptrace_target.
7058 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7059 nbsd_nat_target.
7060
7061 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7062
7063 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7064
7065 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7066
7067 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7068 <sys/sysctl.h>.
7069 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7070
7071 2020-03-17 Tom de Vries <tdevries@suse.de>
7072
7073 PR gdb/23710
7074 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7075 fields.
7076 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7077 fields.
7078 (process_imported_unit_die): Skip import of c++ CUs.
7079
7080 2020-03-16 Tom Tromey <tom@tromey.com>
7081
7082 * p-valprint.c (pascal_object_print_value): Initialize
7083 base_value.
7084
7085 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7086 Shahab Vahedi <shahab@synopsys.com>
7087
7088 * Makefile.in: Add arch/arc.o
7089 * configure.tgt: Likewise.
7090 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7091 (_initialize_arc_tdep): Don't initialize old target descriptions.
7092 (arc_read_description): New function to cache target descriptions.
7093 * arc-tdep.h (arc_read_description): Add proto type.
7094 * arch/arc.c: New file.
7095 * arch/arc.h: Likewise.
7096 * features/Makefile: Replace old target descriptions with new.
7097 * features/arc-arcompact.c: Remove.
7098 * features/arc-arcompact.xml: Likewise.
7099 * features/arc-v2.c: Likewise
7100 * features/arc-v2.xml: Likewise
7101 * features/arc/aux-arcompact.xml: New file.
7102 * features/arc/aux-v2.xml: Likewise.
7103 * features/arc/core-arcompact.xml: Likewise.
7104 * features/arc/core-v2.xml: Likewise.
7105 * features/arc/aux-arcompact.c: Generate.
7106 * features/arc/aux-v2.c: Likewise.
7107 * features/arc/core-arcompact.c: Likewise.
7108 * features/arc/core-v2.c: Likewise.
7109 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7110
7111 2020-03-16 Tom Tromey <tromey@adacore.com>
7112
7113 PR gdb/25663:
7114 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7115 putting value into bcache.
7116
7117 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7118
7119 PR gdb/21500
7120 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7121 to...
7122 (amd64_windows_init_abi_common): ... this. Don't set size of
7123 long type.
7124 (amd64_windows_init_abi): New function.
7125 (amd64_cygwin_init_abi): New function.
7126 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7127 the Cygwin OS ABI.
7128 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7129 comment.
7130
7131 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7132
7133 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7134 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7135 (pe_import_directory_entry): New struct type.
7136 (is_linked_with_cygwin_dll): New function.
7137 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7138 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7139 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7140
7141 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7142
7143 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7144 i386_cygwin_core_osabi_sniffer.
7145
7146 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7147
7148 * i386-cygwin-tdep.c: Rename to...
7149 * i386-windows-tdep.c: ... this.
7150 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7151 i386-windows-tdep.c.
7152 * configure.tgt: Likewise.
7153
7154 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7155
7156 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7157 * osabi.c (gdb_osabi_names): Add "Windows".
7158 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7159 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7160 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7161 i386_cygwin_osabi_sniffer.
7162 (_initialize_i386_cygwin_tdep): Register OS ABI
7163 GDB_OSABI_WINDOWS for i386.
7164 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7165 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7166 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7167 for x86-64.
7168 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7169 when the target matches '*-*-mingw*'.
7170
7171 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7172
7173 * defs.h (enum gdb_osabi): Move to...
7174 * osabi.h (enum gdb_osabi): ... here.
7175 * gdbarch.sh: Include osabi.h in gdbarch.h.
7176 * gdbarch.h: Re-generate.
7177
7178 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7179
7180 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7181 function.
7182 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7183
7184 2020-03-14 Tom Tromey <tom@tromey.com>
7185
7186 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7187 for C++.
7188 (c_type_print_modifier): Likewise. Add "language" parameter.
7189 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7190 (c_type_print_base_1): Update.
7191 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7192 constants.
7193 * type-stack.c (type_stack::insert): Handle tp_atomic and
7194 tp_restrict.
7195 (type_stack::follow_type_instance_flags): Likewise.
7196 (type_stack::follow_types): Likewise. Merge type-following code.
7197 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7198 (space_identifier, cv_with_space_id)
7199 (const_or_volatile_or_space_identifier_noopt)
7200 (const_or_volatile_or_space_identifier): Remove.
7201 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7202 rules.
7203 (ptr_operator, typebase): Update.
7204 (enum token_flag) <FLAG_C>: New constant.
7205 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7206 "_Atomic".
7207 (lex_one_token): Handle FLAG_C.
7208
7209 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7210
7211 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7212 it to the ptrace call.
7213 * m68k-bsd-nat.c (store_registers): Likewise.
7214
7215 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7216
7217 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7218 gdb_byte *.
7219 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7220 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7221 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7222
7223 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7224
7225 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7226 nbsd_nat_target instead of inf_ptrace_target.
7227 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7228 nbsd_nat_target.
7229
7230 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7231
7232 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7233 register_t.
7234
7235 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7236
7237 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7238 it to the ptrace call.
7239 * alpha-bsd-nat.c (store_registers): Likewise.
7240
7241 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7242
7243 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7244 includes.
7245 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7246 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7247 fill_fpregset): Likewise.
7248
7249 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7250
7251 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7252 nbsd_nat_target instead of inf_ptrace_target.
7253 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7254 nbsd_nat_target.
7255
7256 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7257
7258 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7259 register_t.
7260
7261 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7262
7263 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7264 it to the ptrace call.
7265 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7266 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7267 * arm-nbsd-nat.c (store_register): Likewise.
7268 * arm-nbsd-nat.c (store_regs): Likewise.
7269 * arm-nbsd-nat.c (store_fp_register): Likewise.
7270 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7271
7272 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7273
7274 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7275 nbsd_nat_target instead of inf_ptrace_target.
7276 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7277 nbsd_nat_target.
7278
7279 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7280
7281 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7282 it to the ptrace call.
7283 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7284
7285 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7286
7287 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7288 it to the ptrace call.
7289 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7290
7291 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7292
7293 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7294 gdb_byte *.
7295 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7296
7297 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7298
7299 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7300 instead of inf_ptrace_target.
7301 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7302 nbsd_nat_target.
7303
7304 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7305
7306 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7307 register_t.
7308
7309 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7310
7311 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7312 register_t.
7313
7314 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7315
7316 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7317 register_t.
7318
7319 2020-03-13 Tom Tromey <tom@tromey.com>
7320
7321 * value.h (val_print): Don't declare.
7322 * valprint.h (val_print_array_elements)
7323 (val_print_scalar_formatted, generic_val_print): Don't declare.
7324 * valprint.c (generic_val_print_array): Take a struct value.
7325 (generic_val_print_ptr, generic_val_print_memberptr)
7326 (generic_val_print_bool, generic_val_print_int)
7327 (generic_val_print_char, generic_val_print_complex)
7328 (generic_val_print): Remove.
7329 (generic_value_print): Update.
7330 (do_val_print): Remove unused parameters. Don't call
7331 la_val_print.
7332 (val_print): Remove.
7333 (common_val_print): Update. Don't call value_check_printable.
7334 (val_print_scalar_formatted, val_print_array_elements): Remove.
7335 * rust-lang.c (rust_val_print): Remove.
7336 (rust_language_defn): Update.
7337 * p-valprint.c (pascal_val_print): Remove.
7338 (pascal_value_print_inner): Update.
7339 (pascal_object_print_val_fields, pascal_object_print_val):
7340 Remove.
7341 (pascal_object_print_static_field): Update.
7342 * p-lang.h (pascal_val_print): Don't declare.
7343 * p-lang.c (pascal_language_defn): Update.
7344 * opencl-lang.c (opencl_language_defn): Update.
7345 * objc-lang.c (objc_language_defn): Update.
7346 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7347 * m2-lang.h (m2_val_print): Don't declare.
7348 * m2-lang.c (m2_language_defn): Update.
7349 * language.h (struct language_defn) <la_val_print>: Remove.
7350 * language.c (unk_lang_value_print_inner): Rename. Change
7351 argument types.
7352 (unknown_language_defn, auto_language_defn): Update.
7353 * go-valprint.c (go_val_print): Remove.
7354 * go-lang.h (go_val_print): Don't declare.
7355 * go-lang.c (go_language_defn): Update.
7356 * f-valprint.c (f_val_print): Remove.
7357 * f-lang.h (f_value_print): Don't declare.
7358 * f-lang.c (f_language_defn): Update.
7359 * d-valprint.c (d_val_print): Remove.
7360 * d-lang.h (d_value_print): Don't declare.
7361 * d-lang.c (d_language_defn): Update.
7362 * cp-valprint.c (cp_print_value_fields)
7363 (cp_print_value_fields_rtti, cp_print_value): Remove.
7364 (cp_print_static_field): Update.
7365 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7366 (c_val_print_struct, c_val_print_union, c_val_print_int)
7367 (c_val_print_memberptr, c_val_print): Remove.
7368 * c-lang.h (c_val_print_array, cp_print_value_fields)
7369 (cp_print_value_fields_rtti): Don't declare.
7370 * c-lang.c (c_language_defn, cplus_language_defn)
7371 (asm_language_defn, minimal_language_defn): Update.
7372 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7373 (ada_val_print_enum): Take a struct value.
7374 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7375 (ada_val_print): Remove.
7376 (ada_value_print_1): Update.
7377 (printable_val_type): Remove.
7378 * ada-lang.h (ada_val_print): Don't declare.
7379 * ada-lang.c (ada_language_defn): Update.
7380
7381 2020-03-13 Tom Tromey <tom@tromey.com>
7382
7383 * valprint.c (do_val_print): Update.
7384 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7385 a struct value.
7386 (value_to_value_object_no_release): Declare.
7387 * python/py-value.c (value_to_value_object_no_release): New
7388 function.
7389 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7390 struct value.
7391 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7392 function.
7393 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7394 a struct value.
7395 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7396 Declare.
7397 (gdbscm_apply_val_pretty_printer): Take a struct value.
7398 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7399 value.
7400 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7401 value.
7402 * extension-priv.h (struct extension_language_ops)
7403 <apply_val_pretty_printer>: Take a struct value.
7404 * cp-valprint.c (cp_print_value): Create a struct value.
7405 (cp_print_value): Update.
7406
7407 2020-03-13 Tom Tromey <tom@tromey.com>
7408
7409 * ada-valprint.c (print_field_values): Call common_val_print.
7410
7411 2020-03-13 Tom Tromey <tom@tromey.com>
7412
7413 * ada-valprint.c (val_print_packed_array_elements): Remove
7414 bitoffset and val parameters. Call common_val_print.
7415 (ada_val_print_string): Remove offset, address, and original_value
7416 parameters.
7417 (ada_val_print_array): Update.
7418 (ada_value_print_array): New function.
7419 (ada_value_print_1): Call it.
7420
7421 2020-03-13 Tom Tromey <tom@tromey.com>
7422
7423 * ada-valprint.c (ada_value_print): Use common_val_print.
7424
7425 2020-03-13 Tom Tromey <tom@tromey.com>
7426
7427 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7428
7429 2020-03-13 Tom Tromey <tom@tromey.com>
7430
7431 * ada-valprint.c (ada_value_print_num): New function.
7432 (ada_value_print_1): Use it.
7433
7434 2020-03-13 Tom Tromey <tom@tromey.com>
7435
7436 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7437
7438 2020-03-13 Tom Tromey <tom@tromey.com>
7439
7440 * ada-valprint.c (ada_value_print_ptr): New function.
7441 (ada_value_print_1): Use it.
7442
7443 2020-03-13 Tom Tromey <tom@tromey.com>
7444
7445 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7446 call common_val_print.
7447 (ada_val_print_1): Update.
7448 (ada_value_print_1): New function.
7449 (ada_value_print_inner): Rewrite.
7450
7451 2020-03-13 Tom Tromey <tom@tromey.com>
7452
7453 * cp-valprint.c (cp_print_value_fields): Update.
7454 (cp_print_value): New function.
7455
7456 2020-03-13 Tom Tromey <tom@tromey.com>
7457
7458 * m2-valprint.c (m2_value_print_inner): Use
7459 cp_print_value_fields.
7460 * cp-valprint.c (cp_print_value_fields): New function.
7461 * c-valprint.c (c_value_print_struct): New function.
7462 (c_value_print_inner): Use c_value_print_struct.
7463 * c-lang.h (cp_print_value_fields): Declare.
7464
7465 2020-03-13 Tom Tromey <tom@tromey.com>
7466
7467 * c-valprint.c (c_value_print_array): New function.
7468 (c_value_print_inner): Use it.
7469
7470 2020-03-13 Tom Tromey <tom@tromey.com>
7471
7472 * c-valprint.c (c_value_print_memberptr): New function.
7473 (c_value_print_inner): Use it.
7474
7475 2020-03-13 Tom Tromey <tom@tromey.com>
7476
7477 * c-valprint.c (c_value_print_int): New function.
7478 (c_value_print_inner): Use it.
7479
7480 2020-03-13 Tom Tromey <tom@tromey.com>
7481
7482 * c-valprint.c (c_value_print_ptr): New function.
7483 (c_value_print_inner): Use it.
7484
7485 2020-03-13 Tom Tromey <tom@tromey.com>
7486
7487 * c-valprint.c (c_value_print_inner): Rewrite.
7488
7489 2020-03-13 Tom Tromey <tom@tromey.com>
7490
7491 * valprint.c (generic_value_print_complex): New function.
7492 (generic_value_print): Use it.
7493
7494 2020-03-13 Tom Tromey <tom@tromey.com>
7495
7496 * valprint.c (generic_val_print_float): Don't call
7497 val_print_scalar_formatted.
7498 (generic_val_print, generic_value_print): Update.
7499
7500 2020-03-13 Tom Tromey <tom@tromey.com>
7501
7502 * valprint.c (generic_value_print_char): New function
7503 (generic_value_print): Use it.
7504
7505 2020-03-13 Tom Tromey <tom@tromey.com>
7506
7507 * valprint.c (generic_value_print_int): New function.
7508 (generic_value_print): Use it.
7509
7510 2020-03-13 Tom Tromey <tom@tromey.com>
7511
7512 * valprint.c (generic_value_print_bool): New function.
7513 (generic_value_print): Use it.
7514
7515 2020-03-13 Tom Tromey <tom@tromey.com>
7516
7517 * valprint.c (generic_val_print_func): Simplify.
7518 (generic_val_print, generic_value_print): Update.
7519
7520 2020-03-13 Tom Tromey <tom@tromey.com>
7521
7522 * valprint.c (generic_val_print_flags): Remove.
7523 (generic_val_print, generic_value_print): Update.
7524 (val_print_type_code_flags): Add original_value parameter.
7525
7526 2020-03-13 Tom Tromey <tom@tromey.com>
7527
7528 * valprint.c (generic_val_print): Update.
7529 (generic_value_print): Update.
7530 * valprint.c (generic_val_print_enum): Don't call
7531 val_print_scalar_formatted.
7532
7533 2020-03-13 Tom Tromey <tom@tromey.com>
7534
7535 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7536 * valprint.c (generic_value_print_ptr): New function.
7537
7538 2020-03-13 Tom Tromey <tom@tromey.com>
7539
7540 * valprint.c (generic_value_print): Rewrite.
7541
7542 2020-03-13 Tom Tromey <tom@tromey.com>
7543
7544 * p-valprint.c (pascal_object_print_value_fields)
7545 (pascal_object_print_value): New functions.
7546
7547 2020-03-13 Tom Tromey <tom@tromey.com>
7548
7549 * p-valprint.c (pascal_value_print_inner): Rewrite.
7550
7551 2020-03-13 Tom Tromey <tom@tromey.com>
7552
7553 * f-valprint.c (f_value_print_innner): Rewrite.
7554
7555 2020-03-13 Tom Tromey <tom@tromey.com>
7556
7557 * m2-valprint.c (m2_print_unbounded_array): New overload.
7558 (m2_print_unbounded_array): Update.
7559 (m2_print_array_contents): Take a struct value.
7560 (m2_value_print_inner): Rewrite.
7561
7562 2020-03-13 Tom Tromey <tom@tromey.com>
7563
7564 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7565 (d_value_print_inner): New function.
7566 * d-lang.h (d_value_print_inner): Declare.
7567 * d-lang.c (d_language_defn): Use d_value_print_inner.
7568
7569 2020-03-13 Tom Tromey <tom@tromey.com>
7570
7571 * go-valprint.c (go_value_print_inner): New function.
7572 * go-lang.h (go_value_print_inner): Declare.
7573 * go-lang.c (go_language_defn): Use go_value_print_inner.
7574
7575 2020-03-13 Tom Tromey <tom@tromey.com>
7576
7577 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7578 API.
7579 (rust_val_print): Rewrite.
7580 (rust_value_print_inner): New function, from rust_val_print.
7581 (rust_language_defn): Use rust_value_print_inner.
7582
7583 2020-03-13 Tom Tromey <tom@tromey.com>
7584
7585 * ada-valprint.c (ada_value_print_inner): New function.
7586 * ada-lang.h (ada_value_print_inner): Declare.
7587 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7588
7589 2020-03-13 Tom Tromey <tom@tromey.com>
7590
7591 * f-valprint.c (f_value_print_innner): New function.
7592 * f-lang.h (f_value_print_innner): Declare.
7593 * f-lang.c (f_language_defn): Use f_value_print_innner.
7594
7595 2020-03-13 Tom Tromey <tom@tromey.com>
7596
7597 * p-valprint.c (pascal_value_print_inner): New function.
7598 * p-lang.h (pascal_value_print_inner): Declare.
7599 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7600
7601 2020-03-13 Tom Tromey <tom@tromey.com>
7602
7603 * m2-valprint.c (m2_value_print_inner): New function.
7604 * m2-lang.h (m2_value_print_inner): Declare.
7605 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7606
7607 2020-03-13 Tom Tromey <tom@tromey.com>
7608
7609 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7610 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7611 * c-valprint.c (c_value_print_inner): New function.
7612 * c-lang.h (c_value_print_inner): Declare.
7613 * c-lang.c (c_language_defn, cplus_language_defn)
7614 (asm_language_defn, minimal_language_defn): Use
7615 c_value_print_inner.
7616
7617 2020-03-13 Tom Tromey <tom@tromey.com>
7618
7619 * p-valprint.c (pascal_object_print_value_fields): Now static.
7620 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7621
7622 2020-03-13 Tom Tromey <tom@tromey.com>
7623
7624 * c-valprint.c (c_val_print_array): Simplify.
7625
7626 2020-03-13 Tom Tromey <tom@tromey.com>
7627
7628 * valprint.c (value_print_array_elements): New function.
7629 * valprint.h (value_print_array_elements): Declare.
7630
7631 2020-03-13 Tom Tromey <tom@tromey.com>
7632
7633 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7634 * mips-tdep.c (mips_print_register): Use
7635 value_print_scalar_formatted.
7636
7637 2020-03-13 Tom Tromey <tom@tromey.com>
7638
7639 * valprint.h (value_print_scalar_formatted): Declare.
7640 * valprint.c (value_print_scalar_formatted): New function.
7641
7642 2020-03-13 Tom Tromey <tom@tromey.com>
7643
7644 * valprint.h (generic_value_print): Declare.
7645 * valprint.c (generic_value_print): New function.
7646
7647 2020-03-13 Tom Tromey <tom@tromey.com>
7648
7649 * valprint.c (do_val_print): Call la_value_print_inner, if
7650 available.
7651 * rust-lang.c (rust_language_defn): Update.
7652 * p-lang.c (pascal_language_defn): Update.
7653 * opencl-lang.c (opencl_language_defn): Update.
7654 * objc-lang.c (objc_language_defn): Update.
7655 * m2-lang.c (m2_language_defn): Update.
7656 * language.h (struct language_defn) <la_value_print_inner>: New
7657 member.
7658 * language.c (unknown_language_defn, auto_language_defn): Update.
7659 * go-lang.c (go_language_defn): Update.
7660 * f-lang.c (f_language_defn): Update.
7661 * d-lang.c (d_language_defn): Update.
7662 * c-lang.c (c_language_defn, cplus_language_defn)
7663 (asm_language_defn, minimal_language_defn): Update.
7664 * ada-lang.c (ada_language_defn): Update.
7665
7666 2020-03-13 Tom Tromey <tom@tromey.com>
7667
7668 * c-valprint.c (c_value_print): Use common_val_print.
7669
7670 2020-03-13 Tom Tromey <tom@tromey.com>
7671
7672 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7673
7674 2020-03-13 Tom Tromey <tom@tromey.com>
7675
7676 * f-valprint.c (f77_print_array_1, f_val_print): Use
7677 common_val_print.
7678
7679 2020-03-13 Tom Tromey <tom@tromey.com>
7680
7681 * riscv-tdep.c (riscv_print_one_register_info): Use
7682 common_val_print.
7683
7684 2020-03-13 Tom Tromey <tom@tromey.com>
7685
7686 * mi/mi-main.c (output_register): Use common_val_print.
7687
7688 2020-03-13 Tom Tromey <tom@tromey.com>
7689
7690 * infcmd.c (default_print_one_register_info): Use
7691 common_val_print.
7692
7693 2020-03-13 Tom Tromey <tom@tromey.com>
7694
7695 * valprint.h (common_val_print_checked): Declare.
7696 * valprint.c (common_val_print_checked): New function.
7697 * stack.c (print_frame_arg): Use common_val_print_checked.
7698
7699 2020-03-13 Tom Tromey <tom@tromey.com>
7700
7701 * valprint.c (do_val_print): New function, from val_print.
7702 (val_print): Use do_val_print.
7703 (common_val_print): Use do_val_print.
7704
7705 2020-03-13 Tom Tromey <tom@tromey.com>
7706
7707 * valprint.c (value_print): Use scoped_value_mark.
7708
7709 2020-03-13 Tom de Vries <tdevries@suse.de>
7710
7711 PR symtab/25646
7712 * psymtab.c (partial_symtab::partial_symtab): Don't set
7713 globals_offset and statics_offset. Push element onto
7714 current_global_psymbols and current_static_psymbols stacks.
7715 (concat): New function.
7716 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7717 element from current_global_psymbols and current_static_psymbols
7718 stacks. Concat popped elements to global_psymbols and
7719 static_symbols.
7720 (add_psymbol_to_list): Use current_global_psymbols and
7721 current_static_psymbols stacks.
7722 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7723 current_static_psymbols fields.
7724
7725 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7726
7727 * corelow.c (sniff_core_bfd): Remove.
7728 (class core_target) <m_core_vec>: Remove.
7729 (core_target::core_target): Update.
7730 (core_file_fns): Remove.
7731 (deprecated_add_core_fns): Remove.
7732 (default_core_sniffer): Remove.
7733 (sniff_core_bfd): Remove.
7734 (default_check_format): Remove.
7735 (gdb_check_format): Remove.
7736 (core_target_open): Update.
7737 (core_target::get_core_register_section): Update.
7738 (get_core_registers_cb): Update.
7739 (core_target::fetch_registers): Update.
7740 * gdbcore.h (struct core_fns): Remove.
7741 (deprecated_add_core_fns): Remove.
7742 (default_core_sniffer): Remove.
7743 (default_check_format): Remove.
7744
7745 2020-03-12 Tom Tromey <tom@tromey.com>
7746
7747 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7748 CORE_ADDR.
7749 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7750
7751 2020-03-12 Tom Tromey <tom@tromey.com>
7752
7753 * remote.c (remote_target::download_tracepoint)
7754 (remote_target::enable_tracepoint)
7755 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7756 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7757 sprintf_vma.
7758
7759 2020-03-12 Tom Tromey <tom@tromey.com>
7760
7761 * symfile-mem.c: Update CORE_ADDR size assert.
7762
7763 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7764
7765 * selftest.m4: Move to gdbsupport/.
7766 * acinclude.m4: Update path to selftest.m4.
7767
7768 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7769
7770 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7771 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7772 gdbarch-selfselftests.c and selftest-arch.c.
7773 (SUBDIR_UNITTESTS_OBS): Rename to...
7774 (SELFTESTS_OBS): ... this.
7775 (COMMON_SFILES): Remove disasm-selftests.c and
7776 gdbarch-selftests.c.
7777 * configure.ac: Don't add selftest-arch.{c,o} to
7778 CONFIG_{SRCS,OBS}.
7779 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7780 preprocessor conditions.
7781
7782 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7783
7784 * configure.ac: Don't source bfd/development.sh.
7785 * selftest.m4: Modify comment.
7786 * configure: Re-generate.
7787
7788 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7789
7790 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7791 not "true" or "false".
7792 * configure: Re-generate.
7793
7794 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7795
7796 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7797 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7798 renamed to arm_nbsd_supply_gregset.
7799 (fetch_register): Update to call arm_nbsd_supply_gregset.
7800 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7801 (arm_netbsd_nat_target::fetch_registers): Update.
7802 (fetch_elfcore_registers): Removed.
7803 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7804 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7805 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7806 not require NetBSD system headers.
7807 (arm_nbsd_regset): New struct.
7808 (arm_nbsd_iterate_over_regset_sections): New function.
7809 (arm_netbsd_init_abi_common): Updated to call
7810 set_gdbarch_iterate_over_regset_sections.
7811 * arm-nbsd-tdep.h: New file.
7812
7813 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7814
7815 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7816 recursion.
7817
7818 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7819
7820 * configure: Re-generate.
7821
7822 2020-03-11 Tom Tromey <tromey@adacore.com>
7823
7824 * ada-typeprint.c (print_choices): Fix comment.
7825
7826 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7827
7828 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7829 previous item in the list, when the list has no items.
7830
7831 2020-03-11 Tom de Vries <tdevries@suse.de>
7832
7833 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7834 PROP_LOCLIST handling code.
7835
7836 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7837
7838 * buildsym-legacy.c (record_line): Pass extra parameter to
7839 record_line.
7840 * buildsym.c (buildsym_compunit::record_line): Take an extra
7841 parameter, reduce duplication in the line table, and record the
7842 is_stmt flag in the line table.
7843 * buildsym.h (buildsym_compunit::record_line): Add extra
7844 parameter.
7845 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7846 non-statement lines.
7847 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7848 this to the symtab builder.
7849 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7850 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7851 through to dwarf_record_line_1.
7852 * infrun.c (process_event_stop_test): When stepping, don't stop at
7853 a non-statement instruction, and only refresh the step info when
7854 we land in the middle of a line's range. Also add an extra
7855 comment.
7856 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7857 field.
7858 * record-btrace.c (btrace_find_line_range): Only record lines
7859 marked as is-statement.
7860 * stack.c (frame_show_address): Show the frame address if we are
7861 in a non-statement sal.
7862 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7863 (maintenance_print_one_line_table): Print a header for the is_stmt
7864 column, and include is_stmt information in the output.
7865 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7866 preference to non-statements.
7867 (find_pcs_for_symtab_line): Prefer is-statement entries.
7868 (find_line_common): Likewise.
7869 * symtab.h (struct linetable_entry): Add is_stmt field.
7870 (struct symtab_and_line): Likewise.
7871 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7872 arranging the line table.
7873
7874 2020-03-07 Tom de Vries <tdevries@suse.de>
7875
7876 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7877 DIE.
7878
7879 2020-03-07 Tom Tromey <tom@tromey.com>
7880
7881 * valops.c (value_literal_complex): Remove obsolete comment.
7882 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7883 comment.
7884
7885 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7886
7887 * infrun.h: Forward-declare thread_info.
7888 (set_step_info): Add thread_info parameter, add doc.
7889 * infrun.c (set_step_info): Add thread_info parameter, move doc
7890 to header.
7891 * infrun.c (process_event_stop_test): Pass thread to
7892 set_step_info call.
7893 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7894 set_step_info.
7895 (prepare_one_step): Add thread_info parameter, pass it to
7896 set_step_frame and prepare_one_step (recursive) call.
7897 (step_1): Pass thread to prepare_one_step call.
7898 (step_command_fsm::should_stop): Pass thread to
7899 prepare_one_step.
7900 (until_next_fsm): Pass thread to set_step_frame call.
7901 (finish_command): Pass thread to set_step_info call.
7902
7903 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7904
7905 * windows-tdep.c (windows_solib_create_inferior_hook):
7906 Check if inferior is running.
7907
7908 2020-03-06 Tom de Vries <tdevries@suse.de>
7909
7910 * NEWS: Fix "the the".
7911 * ctfread.c: Same.
7912
7913 2020-03-06 Tom de Vries <tdevries@suse.de>
7914
7915 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7916
7917 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7918
7919 * .dir-locals.el: Add a comment referencing the other copies of
7920 this file.
7921
7922 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7923
7924 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7925 psargs.
7926
7927 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7928
7929 * .gitattributes: New file.
7930
7931 2020-03-04 Tom Tromey <tom@tromey.com>
7932
7933 * symmisc.c (print_symbol_bcache_statistics)
7934 (print_objfile_statistics): Update.
7935 * symfile.c (allocate_symtab): Use intern.
7936 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7937 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7938 macro_cache>: Remove.
7939 <string_cache>: New member.
7940 (struct objfile) <intern>: New methods.
7941 * elfread.c (elf_symtab_read): Use intern.
7942 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7943 (dwarf2_compute_name, dwarf2_physname)
7944 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7945 names.
7946 (guess_partial_die_structure_name): Update.
7947 (partial_die_info::fixup): Intern name.
7948 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7949 name.
7950 (dwarf2_name): Intern name. Update.
7951 * buildsym.c (buildsym_compunit::get_macro_table): Use
7952 string_cache.
7953
7954 2020-03-04 Tom Tromey <tom@tromey.com>
7955
7956 * jit.c (bfd_open_from_target_memory): Make "target" const.
7957 * corefile.c (gnutarget): Now const.
7958 * gdbcore.h (gnutarget): Now const.
7959
7960 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7961
7962 * NEWS: Mention support for WOW64 processes.
7963 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7964 (amd64_windows_segment_register_p): Remove static.
7965 (_initialize_amd64_windows_nat): Update.
7966 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7967 * i386-windows-nat.c (context_offset): Update.
7968 (i386_mappings): Rename and remove static.
7969 (i386_windows_segment_register_p): Remove static.
7970 (_initialize_i386_windows_nat): Update.
7971 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7972 (STATUS_WX86_SINGLE_STEP): New macro.
7973 (EnumProcessModulesEx): New macro.
7974 (Wow64SuspendThread): New macro.
7975 (Wow64GetThreadContext): New macro.
7976 (Wow64SetThreadContext): New macro.
7977 (Wow64GetThreadSelectorEntry): New macro.
7978 (windows_set_context_register_offsets): Add static.
7979 (windows_set_segment_register_p): Likewise.
7980 (windows_add_thread): Adapt for WOW64 processes.
7981 (windows_fetch_one_register): Likewise.
7982 (windows_nat_target::fetch_registers): Likewise.
7983 (windows_store_one_register): Likewise.
7984 (display_selector): Likewise.
7985 (display_selectors): Likewise.
7986 (handle_exception): Likewise.
7987 (windows_continue): Likewise.
7988 (windows_nat_target::resume): Likewise.
7989 (windows_add_all_dlls): Likewise.
7990 (do_initial_windows_stuff): Likewise.
7991 (windows_nat_target::attach): Likewise.
7992 (windows_get_exec_module_filename): Likewise.
7993 (windows_nat_target::create_inferior): Likewise.
7994 (windows_xfer_siginfo): Likewise.
7995 (_initialize_loadable): Initialize Wow64SuspendThread,
7996 Wow64GetThreadContext, Wow64SetThreadContext,
7997 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7998 * windows-nat.h (windows_set_context_register_offsets):
7999 Remove declaration.
8000 (windows_set_segment_register_p): Likewise.
8001 (i386_windows_segment_register_p): Add declaration.
8002 (amd64_windows_segment_register_p): Likewise.
8003
8004 2020-03-04 Luis Machado <luis.machado@linaro.org>
8005
8006 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8007 in "info registers" for AArch64/ARM.
8008
8009 The change caused "info registers" to not print GPR's.
8010
8011 gdb/ChangeLog:
8012
8013 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8014
8015 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8016 when reg->group is empty and reggroup is not.
8017
8018 2020-03-03 Tom Tromey <tromey@adacore.com>
8019
8020 * dwarf2/frame.c (struct dwarf2_frame_cache)
8021 <checked_tailcall_bottom, entry_cfa_sp_offset,
8022 entry_cfa_sp_offset_p>: Remove members.
8023 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8024 (dwarf2_frame_prev_register): Don't call
8025 dwarf2_tailcall_sniffer_first.
8026 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8027 * frame-unwind.c (add_unwinder): New fuction.
8028 (frame_unwind_init): Use it. Add tailcall unwinder.
8029
8030 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8031 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8032
8033 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8034 value should be printed as true.
8035
8036 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8037
8038 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8039 (windows_init_abi): Set and use windows_so_ops.
8040
8041 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8042
8043 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8044 when verifying if dealing with a convenience variable.
8045
8046 2020-03-03 Luis Machado <luis.machado@linaro.org>
8047
8048 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8049
8050 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8051
8052 * infrun.c (gdbarch_supports_displaced_stepping): New.
8053 (use_displaced_stepping): Break up conditions in smaller pieces.
8054 Use gdbarch_supports_displaced_stepping.
8055 (displaced_step_prepare_throw): Use
8056 gdbarch_supports_displaced_stepping.
8057
8058 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8059
8060 * NEWS: Mention new behaviour of the history filename.
8061 * top.c (write_history_p): Add comment.
8062 (show_write_history_p): Add header comment, give a different
8063 message when history writing is on, but the history filename is
8064 empty.
8065 (history_filename): Add comment.
8066 (history_filename_empty): New function.
8067 (show_history_filename): Add header comment, give a different
8068 message when the filename is empty.
8069 (init_history): Compare history_filename against nullptr, and only
8070 read history if the filename is not empty.
8071 (set_history_filename): Add header comment, and only make
8072 non-empty filenames absolute.
8073 (init_main): Make the filename argument to 'set history filename'
8074 optional.
8075
8076 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8077
8078 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8079 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8080 (fetch_fp_register): Update.
8081 (fetch_fp_regs): Update.
8082 (store_fp_register): Update.
8083 (store_fp_regs): Update.
8084 (arm_netbsd_nat_target::read_description): New function.
8085 (fetch_elfcore_registers): Update.
8086
8087 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8088
8089 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8090 general_thread if the stop reply is missing a thread-id.
8091 (remote_target::process_stop_reply): Use the first non-exited
8092 thread if the target didn't pass a thread-id.
8093 * infrun.c (do_target_wait): Move call to
8094 switch_to_inferior_no_thread to ....
8095 (do_target_wait_1): ... here.
8096
8097 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8098
8099 * debuginfod-support.c: Include defs.h first.
8100
8101 2020-02-28 Tom de Vries <tdevries@suse.de>
8102
8103 * symfile.c (set_initial_language): Use default language for lookup.
8104
8105 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8106
8107 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8108 reader variable, pass `this` to read_cutu_die_from_dwo.
8109
8110 2020-02-27 Aaron Merey <amerey@redhat.com>
8111
8112 * source.c (open_source_file): Check for nullptr when computing
8113 srcpath.
8114
8115 2020-02-27 Tom Tromey <tromey@adacore.com>
8116
8117 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8118 member.
8119 (dwarf2_add_field): Don't update nfields.
8120 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8121
8122 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8123
8124 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8125 abs.
8126
8127 2020-02-26 Tom Tromey <tom@tromey.com>
8128
8129 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8130 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8131 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8132 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8133 per_cu_data.
8134
8135 2020-02-26 Tom Tromey <tom@tromey.com>
8136
8137 * dwarf2/index-write.c (psym_index_map): Change type.
8138 (add_address_entry_worker, write_one_signatured_type)
8139 (recursively_count_psymbols, recursively_write_psymbols)
8140 (class debug_names, psyms_seen_size, write_gdbindex)
8141 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8142
8143 2020-02-26 Aaron Merey <amerey@redhat.com>
8144
8145 * Makefile.in: Handle optional debuginfod support.
8146 * NEWS: Update.
8147 * README: Add --with-debuginfod summary.
8148 * config.in: Regenerate.
8149 * configure: Regenerate.
8150 * configure.ac: Handle optional debuginfod support.
8151 * debuginfod-support.c: debuginfod helper functions.
8152 * debuginfod-support.h: Ditto.
8153 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8154 summary.
8155 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8156 when a dwz file cannot be found.
8157 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8158 debuginfo file cannot be found.
8159 * source.c (open_source_file): Query debuginfod servers when a
8160 source file cannot be found.
8161 * top.c (print_gdb_configuration): Include
8162 --{with,without}-debuginfod in the output.
8163
8164 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8165
8166 * thread.c (thr_try_catch_cmd): Print thread name.
8167
8168 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8169
8170 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8171 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8172 dwarf2_fetch_die_type_sect_off): Move to...
8173 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8174 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8175 dwarf2_fetch_die_type_sect_off): ... here.
8176 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8177 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8178 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8179
8180 2020-02-26 Tom de Vries <tdevries@suse.de>
8181
8182 PR gdb/25603
8183 * symfile.c (set_initial_language): Exit-early if
8184 language_mode == language_mode_manual.
8185
8186 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8187
8188 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8189 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8190 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8191
8192 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8193
8194 * gdbtypes.c (create_array_type_with_stride): Handle negative
8195 array strides.
8196 * valarith.c (value_subscripted_rvalue): Likewise.
8197
8198 2020-02-25 Luis Machado <luis.machado@linaro.org>
8199
8200 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8201
8202 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8203
8204 * loc.h (dwarf2_get_die_type): Move to...
8205 * read.h (dwarf2_get_die_type): ... here.
8206 * read.c (dwarf2_get_die_type): Move doc to header.
8207
8208 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8209
8210 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8211 'gnulib/Makefile.in' to the list.
8212
8213 2020-02-24 Tom Tromey <tom@tromey.com>
8214
8215 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8216 Remove.
8217 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8218 XOBNEWVEC.
8219
8220 2020-02-24 Tom Tromey <tom@tromey.com>
8221
8222 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8223 New method.
8224 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8225 (dw2_do_instantiate_symtab, dw2_get_file_names)
8226 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8227
8228 2020-02-24 Tom Tromey <tom@tromey.com>
8229
8230 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8231 make_scoped_restore.
8232 (dwarf2_psymtab::read_symtab): Don't clear
8233 reading_partial_symbols.
8234
8235 2020-02-24 Tom de Vries <tdevries@suse.de>
8236
8237 PR gdb/25592
8238 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8239
8240 2020-02-24 Tom de Vries <tdevries@suse.de>
8241
8242 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8243 commands layout next/prev/regs.
8244
8245 2020-02-22 Tom Tromey <tom@tromey.com>
8246
8247 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8248 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8249
8250 2020-02-22 Tom Tromey <tom@tromey.com>
8251
8252 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8253
8254 2020-02-22 Tom Tromey <tom@tromey.com>
8255
8256 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8257 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8258 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8259 * tui/tui.c (_initialize_tui): Add usage text.
8260
8261 2020-02-22 Tom Tromey <tom@tromey.com>
8262
8263 * tui/tui-win.c (tui_set_focus_command)
8264 (tui_set_win_height_command): Use error_no_arg.
8265 (_initialize_tui_win): Update help text.
8266 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8267
8268 2020-02-22 Tom Tromey <tom@tromey.com>
8269
8270 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8271 * tui/tui-disasm.h (struct tui_disasm_window)
8272 <display_start_addr>: Declare.
8273 * tui/tui-source.h (struct tui_source_window)
8274 <display_start_addr>: Declare.
8275 * tui/tui-winsource.h (struct tui_source_window_base)
8276 <show_source_line, display_start_addr>: New methods.
8277 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8278 Rename and move to protected section.
8279 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8280 (tui_source_window_base::do_erase_source_content): Update.
8281 (tui_source_window_base::show_source_line): Now a method.
8282 (tui_source_window_base::show_source_content)
8283 (tui_source_window_base::tui_source_window_base)
8284 (tui_source_window_base::rerender)
8285 (tui_source_window_base::refill)
8286 (tui_source_window_base::do_scroll_horizontal)
8287 (tui_source_window_base::set_is_exec_point_at)
8288 (tui_source_window_base::update_breakpoint_info)
8289 (tui_source_window_base::update_exec_info): Update.
8290 * tui/tui-source.c (tui_source_window::set_contents)
8291 (tui_source_window::showing_source_p)
8292 (tui_source_window::do_scroll_vertical)
8293 (tui_source_window::location_matches_p)
8294 (tui_source_window::line_is_displayed): Update.
8295 (tui_source_window::display_start_addr): New method.
8296 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8297 (tui_disasm_window::do_scroll_vertical)
8298 (tui_disasm_window::location_matches_p): Update.
8299 (tui_disasm_window::display_start_addr): New method.
8300
8301 2020-02-22 Tom Tromey <tom@tromey.com>
8302
8303 * NEWS: Add entry for gdb.register_window_type.
8304 * tui/tui-layout.h (window_factory): New typedef.
8305 (tui_register_window): Declare.
8306 * tui/tui-layout.c (saved_tui_windows): New global.
8307 (tui_apply_current_layout): Use it.
8308 (tui_register_window): New function.
8309 * python/python.c (do_start_initialization): Call
8310 gdbpy_initialize_tui.
8311 (python_GdbMethods): Add "register_window_type" function.
8312 * python/python-internal.h (gdbpy_register_tui_window)
8313 (gdbpy_initialize_tui): Declare.
8314 * python/py-tui.c: New file.
8315 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8316
8317 2020-02-22 Tom Tromey <tom@tromey.com>
8318
8319 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8320
8321 2020-02-22 Tom Tromey <tom@tromey.com>
8322
8323 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8324 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8325 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8326 (tui_set_win_focus_to): Move from tui-win.c.
8327
8328 2020-02-22 Tom Tromey <tom@tromey.com>
8329
8330 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8331 functions.
8332 (known_window_types): New global.
8333 (tui_get_window_by_name): Reimplement.
8334 (initialize_known_windows): New function.
8335 (validate_window_name): Rewrite.
8336 (_initialize_tui_layout): Call initialize_known_windows.
8337
8338 2020-02-22 Tom Tromey <tom@tromey.com>
8339
8340 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8341 Remove constants.
8342 * tui/tui-winsource.h (struct tui_source_window_base)
8343 <tui_source_window_base>: Remove parameter.
8344 * tui/tui-winsource.c
8345 (tui_source_window_base::tui_source_window_base): Remove
8346 parameter.
8347 (tui_source_window_base::refill): Update.
8348 * tui/tui-stack.h (struct tui_locator_window)
8349 <tui_locator_window>: Update.
8350 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8351 Default the constructor.
8352 * tui/tui-regs.h (struct tui_data_item_window)
8353 <tui_data_item_window>: Default the constructor.
8354 (struct tui_data_window) <tui_data_window>: Likewise.
8355 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8356 Default the constructor.
8357 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8358 Default the constructor.
8359 <type>: Remove.
8360 (struct tui_win_info) <tui_win_info>: Default the constructor.
8361 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8362 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8363 Default the constructor.
8364
8365 2020-02-22 Tom Tromey <tom@tromey.com>
8366
8367 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8368 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8369 * tui/tui-win.c (tui_resize_all): Don't call
8370 tui_delete_invisible_windows.
8371 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8372 done.
8373 (tui_set_layout): Update.
8374 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8375 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8376 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8377
8378 2020-02-22 Tom Tromey <tom@tromey.com>
8379
8380 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8381 correctly.
8382
8383 2020-02-22 Tom Tromey <tom@tromey.com>
8384
8385 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8386
8387 2020-02-22 Tom Tromey <tom@tromey.com>
8388
8389 * tui/tui-winsource.h (struct tui_source_window_iterator)
8390 <inner_iterator>: New etytypedef.
8391 <tui_source_window_iterator>: Take "end" parameter.
8392 <tui_source_window_iterator>: Take iterator.
8393 <operator*, advance>: Update.
8394 <m_iter>: Change type.
8395 <m_end>: New field.
8396 (struct tui_source_windows) <begin, end>: Update.
8397 * tui/tui-layout.c (tui_windows): New global.
8398 (tui_apply_current_layout): Clear tui_windows.
8399 (tui_layout_window::apply): Update tui_windows.
8400 * tui/tui-data.h (tui_windows): Declare.
8401 (all_tui_windows): Now inline function.
8402 (class tui_window_iterator, struct all_tui_windows): Remove.
8403
8404 2020-02-22 Tom Tromey <tom@tromey.com>
8405
8406 PR tui/17850:
8407 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8408 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8409 "height" argument.
8410 (class tui_layout_window) <get_sizes>: Likewise.
8411 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8412 argument.
8413 <get_sizes>: Add "height" argument.
8414 <m_vertical>: New field.
8415 * tui/tui-layout.c (tui_layout_split::clone): Update.
8416 (tui_layout_split::get_sizes): Add "height" argument.
8417 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8418 (tui_new_layout_command): Parse "-horizontal".
8419 (_initialize_tui_layout): Update help string.
8420 (tui_layout_split::specification): Add "-horizontal" when needed.
8421 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8422 argument.
8423 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8424 New methods.
8425
8426 2020-02-22 Tom Tromey <tom@tromey.com>
8427
8428 * tui/tui-layout.h (enum tui_adjust_result): New.
8429 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8430 (class tui_layout_window) <adjust_size>: Return
8431 tui_adjust_result. Rewrite.
8432 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8433 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8434
8435 2020-02-22 Tom Tromey <tom@tromey.com>
8436
8437 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8438 parameter and return types.
8439 (class tui_layout_base) <specification>: Add "depth".
8440 (class tui_layout_window) <specification>: Add "depth".
8441 (class tui_layout_split) <specification>: Add "depth".
8442 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8443 and return types.
8444 (tui_new_layout_command): Parse sub-layouts.
8445 (_initialize_tui_layout): Update help string.
8446 (tui_layout_window::specification): Add "depth".
8447 (add_layout_command): Update.
8448
8449 2020-02-22 Tom Tromey <tom@tromey.com>
8450
8451 * NEWS: Add "tui new-layout" item.
8452 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8453 Add new-layout command to help text.
8454 (validate_window_name): New function.
8455 (tui_new_layout_command): New function.
8456 (_initialize_tui_layout): Register "new-layout".
8457 (tui_layout_window::specification): New method.
8458 (tui_layout_window::specification): New method.
8459 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8460 method.
8461 (class tui_layout_window) <specification>: New method.
8462 (class tui_layout_split) <specification>: New method.
8463
8464 2020-02-22 Tom Tromey <tom@tromey.com>
8465
8466 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8467 * tui/tui-win.c (window_name_completer): Update comment.
8468 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8469 Declare method.
8470 (class tui_layout_window) <replace_window>: Likewise.
8471 (class tui_layout_split) <replace_window>: Likewise.
8472 (tui_set_layout): Don't declare.
8473 (tui_set_initial_layout): Declare function.
8474 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8475 (asm_regs_layout): New globals.
8476 (tui_current_layout, show_layout): Remove.
8477 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8478 (find_layout, tui_apply_layout): New function.
8479 (layout_completer): Remove.
8480 (tui_next_layout): Reimplement.
8481 (tui_next_layout_command): New function.
8482 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8483 (tui_regs_layout): Reimplement.
8484 (tui_regs_layout_command): New function.
8485 (extract_display_start_addr): Rewrite.
8486 (next_layout, prev_layout): Remove.
8487 (tui_layout_window::replace_window): New method.
8488 (tui_layout_split::replace_window): New method.
8489 (destroy_layout): New function.
8490 (layout_list): New global.
8491 (add_layout_command): New function.
8492 (initialize_layouts): Update.
8493 (tui_layout_command): New function.
8494 (_initialize_tui_layout): Install "layout" commands.
8495 * tui/tui-data.h (enum tui_layout_type): Remove.
8496 (tui_current_layout): Don't declare.
8497
8498 2020-02-22 Tom Tromey <tom@tromey.com>
8499
8500 * tui/tui-regs.c (tui_reg_layout): Remove.
8501 (tui_reg_command): Use tui_regs_layout.
8502 * tui/tui-layout.h (tui_reg_command): Declare.
8503 * tui/tui-layout.c (tui_reg_command): New function.
8504
8505 2020-02-22 Tom Tromey <tom@tromey.com>
8506
8507 * tui/tui.c (tui_rl_delete_other_windows): Call
8508 tui_remove_some_windows.
8509 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8510 Declare method.
8511 (class tui_layout_window) <remove_windows>: New method.
8512 (class tui_layout_split) <remove_windows>: Declare.
8513 (tui_remove_some_windows): Declare.
8514 * tui/tui-layout.c (tui_remove_some_windows): New function.
8515 (tui_layout_split::remove_windows): New method.
8516
8517 2020-02-22 Tom Tromey <tom@tromey.com>
8518
8519 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8520 * tui/tui-layout.h (tui_next_layout): Declare.
8521 * tui/tui-layout.c (tui_next_layout): New function.
8522
8523 2020-02-22 Tom Tromey <tom@tromey.com>
8524
8525 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8526 correct coordinates.
8527
8528 2020-02-22 Tom Tromey <tom@tromey.com>
8529
8530 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8531 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8532 DATA_WIN case.
8533
8534 2020-02-22 Tom Tromey <tom@tromey.com>
8535
8536 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8537 TUI_DISASM_WIN, not tui_win_list.
8538
8539 2020-02-22 Tom Tromey <tom@tromey.com>
8540
8541 * valprint.c (generic_val_print_enum_1)
8542 (val_print_type_code_flags): Style member names.
8543 * rust-lang.c (val_print_struct, rust_print_enum)
8544 (rust_print_struct_def, rust_internal_print_type): Style member
8545 names.
8546 * p-valprint.c (pascal_object_print_value_fields): Style member
8547 names. Only call fprintf_symbol_filtered for static members.
8548 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8549 * f-valprint.c (f_val_print): Style member names.
8550 * f-typeprint.c (f_type_print_base): Style member names.
8551 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8552 call fprintf_symbol_filtered for static members.
8553 (cp_print_class_member): Style member names.
8554 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8555 member names.
8556 * ada-valprint.c (ada_print_scalar): Style enum names.
8557 (ada_val_print_enum): Likewise.
8558 * ada-typeprint.c (print_enum_type): Style enum names.
8559
8560 2020-02-21 Tom Tromey <tom@tromey.com>
8561
8562 * psympriv.h (struct partial_symtab): Update comment.
8563
8564 2020-02-21 Tom Tromey <tromey@adacore.com>
8565
8566 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8567 type is CORE_ADDR.
8568
8569 2020-02-21 Tom de Vries <tdevries@suse.de>
8570
8571 PR gdb/25534
8572 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8573 if dependencies[i]->user != NULL.
8574
8575 2020-02-21 Ali Tamur <tamur@google.com>
8576
8577 * dwarf2/read.c (dwarf2_name): Add null check.
8578
8579 2020-02-20 Tom Tromey <tom@tromey.com>
8580
8581 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8582 ">=", in binary search.
8583 (dwarf2_find_containing_comp_unit): New overload.
8584 (run_test): New self-test.
8585 (_initialize_dwarf2_read): Register new test.
8586
8587 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8588
8589 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8590 * riscv-tdep.h: Likewise.
8591 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8592 rv32-only CSR.
8593 * features/riscv/64bit-csr.xml: Regenerated.
8594
8595 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8596 Tom Tromey <tom@tromey.com>
8597
8598 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8599 of 'fputc_unfiltered'.
8600 (putchar_unfiltered): Call 'fputc_unfiltered'.
8601 (fputc_unfiltered): Call 'fputs_unfiltered'.
8602
8603 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8604
8605 * config.in: Regenerate.
8606 * configure: Regenerate.
8607 * configure.ac: Add --with-python-libdir option.
8608 * main.c: Use WITH_PYTHON_LIBDIR.
8609
8610 2020-02-19 Tom Tromey <tom@tromey.com>
8611
8612 * symtab.c (general_symbol_info::compute_and_set_names): Use
8613 obstack_strndup. Simplify call to symbol_set_demangled_name.
8614
8615 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8616
8617 * dwarf2/read.c (allocate_signatured_type_table,
8618 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8619 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8620 Remove objfile parameter, update all callers.
8621
8622 2020-02-19 Doug Evans <dje@google.com>
8623
8624 PR rust/25535
8625 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8626 rust_enum_variant calculation.
8627
8628 2020-02-19 Tom Tromey <tromey@adacore.com>
8629
8630 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8631
8632 2020-02-19 Tom Tromey <tromey@adacore.com>
8633
8634 * ada-lang.c (cache_symbol): Use obstack_strdup.
8635
8636 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8637
8638 * configure: Regenerate.
8639
8640 2020-02-19 Tom Tromey <tromey@adacore.com>
8641
8642 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8643 NULL check.
8644
8645 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8646
8647 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8648
8649 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8650
8651 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8652 if GDBSERVER is not defined.
8653 (riscv_tdesc_cache): Likewise, also store const target_desc.
8654 (STATIC_IN_GDB): Define.
8655 (riscv_create_target_description): Update declaration with
8656 STATIC_IN_GDB.
8657 (riscv_lookup_target_description): New function, only define if
8658 GDBSERVER is not defined.
8659 * arch/riscv.h (riscv_create_target_description): Declare only
8660 when GDBSERVER is defined.
8661 (riscv_lookup_target_description): New declaration when GDBSERVER
8662 is not defined.
8663 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8664 (riscv_linux_read_features): ...this, and return
8665 riscv_gdbarch_features instead of target_desc.
8666 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8667 (riscv_linux_read_description): Rename to...
8668 (riscv_linux_read_features): ...this.
8669 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8670 Update to use riscv_gdbarch_features and
8671 riscv_lookup_target_description.
8672 * riscv-tdep.c (riscv_find_default_target_description): Use
8673 riscv_lookup_target_description instead of
8674 riscv_create_target_description.
8675
8676 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8677
8678 * valprint.c (generic_val_print_enum_1): When printing a flag
8679 enum with value 0 and there is no enumerator with value 0, print
8680 just "0" instead of "(unknown: 0x0)".
8681
8682 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8683
8684 * valprint.c (generic_val_print_enum_1): Print unknown part of
8685 flag enum in hex.
8686
8687 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8688
8689 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8690 flag enums to contain duplicate enumerators.
8691 * valprint.c (generic_val_print_enum_1): Update comment.
8692
8693 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8694
8695 * dwarf2/read.c: Include "count-one-bits.h".
8696 (update_enumeration_type_from_children): If an enumerator has
8697 multiple bits set, don't treat the enumeration as a "flag enum".
8698 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8699 of flag enums have 0 or 1 bit set.
8700
8701 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8702
8703 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8704 conversion.
8705 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8706 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8707 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8708 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8709 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8710
8711 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8712
8713 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8714
8715 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8716
8717 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8718 displaced_step_closure_up.
8719 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8720 (struct displaced_step_closure_up):
8721 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8722 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8723 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8724 Likewise.
8725 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8726 * gdbarch.c, gdbarch.h: Re-generate.
8727 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8728 displaced_step_closure_up.
8729 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8730 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8731 * infrun.h (displaced_step_closure_up): New type alias.
8732 (struct displaced_step_inferior_state) <step_closure>: Change
8733 type to displaced_step_closure_up.
8734 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8735 displaced_step_closure_up.
8736 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8737
8738 2020-02-14 Tom Tromey <tom@tromey.com>
8739
8740 * minidebug.c (gnu_debug_key): New global.
8741 (find_separate_debug_file_in_section): Use it.
8742
8743 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8744
8745 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8746 std::unique_ptr.
8747 * gdbarch.c: Re-generate.
8748 * gdbarch.h: Re-generate.
8749 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8750 change.
8751 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8752 type to std::unique_ptr.
8753 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8754 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8755 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8756 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8757 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8758 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8759 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8760 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8761 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8762
8763 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8764
8765 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8766 std::unique_ptr.
8767 (displaced_step_clear): Rename to...
8768 (displaced_step_reset): ... this. Just call displaced->reset ().
8769 (displaced_step_clear_cleanup): Rename to...
8770 (displaced_step_reset_cleanup): ... this.
8771 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8772 (displaced_step_fixup): Likewise.
8773 (resume_1): Likewise.
8774 (handle_inferior_event): Restore child's memory before calling
8775 displaced_step_fixup on the parent.
8776 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8777 to std::unique_ptr.
8778 <step_closure>: Change type to std::unique_ptr.
8779
8780 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8781
8782 * arm-tdep.c: Include count-one-bits.h.
8783 (cleanup_block_store_pc): Use count_one_bits.
8784 (cleanup_block_load_pc): Use count_one_bits.
8785 (arm_copy_block_xfer): Use count_one_bits.
8786 (thumb2_copy_block_xfer): Use count_one_bits.
8787 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8788 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8789 (thumb_get_next_pcs_raw): Use count_one_bits.
8790 (arm_get_next_pcs_raw): Use count_one_bits_l.
8791 * arch/arm.c (bitcount): Remove.
8792 * arch/arm.h (bitcount): Remove.
8793
8794 2020-02-14 Tom Tromey <tromey@adacore.com>
8795
8796 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8797 Update.
8798 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8799 * dwarf2/loc.c (call_site_find_chain_1): Return
8800 unique_xmalloc_ptr.
8801 (call_site_find_chain): Likewise.
8802
8803 2020-02-14 Richard Biener <rguenther@suse.de>
8804
8805 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8806 on expression with division operators.
8807
8808 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8809
8810 * MAINTAINERS (Write After Approval): Adding myself.
8811
8812 2020-02-12 Tom Tromey <tom@tromey.com>
8813
8814 * event-loop.c (event_data, gdb_event, event_handler_func):
8815 Remove.
8816
8817 2020-02-12 Tom Tromey <tom@tromey.com>
8818
8819 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8820 (dwarf2_frame_objfile_data): Add comment.
8821 (find_comp_unit, set_comp_unit): New functions.
8822 (dwarf2_frame_find_fde): Use find_comp_unit.
8823 (dwarf2_build_frame_info): Use set_comp_unit.
8824
8825 2020-02-12 Tom Tromey <tom@tromey.com>
8826
8827 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8828 (comp_unit): Don't initialize objfile.
8829 (execute_cfa_program): Add text_offset parameter.
8830 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8831 (dwarf2_frame_cache): Update.
8832 (dwarf2_build_frame_info): Don't set "objfile" member.
8833
8834 2020-02-12 Tom Tromey <tom@tromey.com>
8835
8836 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8837 (decode_frame_entry): Likewise.
8838 (dwarf2_build_frame_info): Update.
8839
8840 2020-02-12 Tom Tromey <tom@tromey.com>
8841
8842 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8843 (decode_frame_entry_1): Use the comp_unit obstack.
8844
8845 2020-02-12 Tom Tromey <tom@tromey.com>
8846
8847 * dwarf2/frame.c (struct comp_unit): Add initializers and
8848 constructor.
8849 (dwarf2_frame_objfile_data): Store a comp_unit.
8850 (dwarf2_frame_find_fde): Update.
8851 (dwarf2_build_frame_info): Use "new".
8852
8853 2020-02-12 Tom Tromey <tom@tromey.com>
8854
8855 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8856 (dwarf2_fde_table): Typedef for std::vector.
8857 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8858 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8859 (decode_frame_entry): Update.
8860 (dwarf2_build_frame_info): Use "new".
8861
8862 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8863
8864 * arm-tdep.c (arm_gdbarch_init): Update.
8865 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8866 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8867 have_neon, is_m>: Change to bool.
8868
8869 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8870
8871 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8872
8873 2020-02-12 Tom Tromey <tom@tromey.com>
8874
8875 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8876
8877 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8878
8879 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8880 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8881
8882 2020-02-11 Tom Tromey <tom@tromey.com>
8883
8884 * psymtab.h: Update comment.
8885
8886 2020-02-11 Tom Tromey <tom@tromey.com>
8887
8888 * gdb_obstack.h (struct auto_obstack): Use
8889 DISABLE_COPY_AND_ASSIGN.
8890
8891 2020-02-11 Tom Tromey <tom@tromey.com>
8892
8893 * dwarf2/frame.h (struct objfile): Don't forward declare.
8894
8895 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8896
8897 * cris-tdep.c (cris_supply_gregset): Change signature to match
8898 what struct regset expects.
8899 (cris_regset): New struct.
8900 (fetch_core_registers): Remove.
8901 (cris_iterate_over_regset_sections): New function.
8902 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8903 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8904
8905 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8906
8907 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8908 registers.
8909
8910 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8911
8912 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8913
8914 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8915
8916 * configure: Re-generate.
8917
8918 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8919
8920 * configure: Re-generate.
8921
8922 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8923
8924 * acinclude: Update warning.m4 path.
8925 * warning.m4: Move to gdbsupport.
8926
8927 2020-02-11 Tom Tromey <tromey@adacore.com>
8928
8929 * remote.c (remote_console_output): Update.
8930 * printcmd.c (printf_command): Update.
8931 * event-loop.c (gdb_wait_for_event): Update.
8932 * linux-nat.c (sigchld_handler): Update.
8933 * remote-sim.c (gdb_os_write_stdout): Update.
8934 (gdb_os_flush_stdout): Update.
8935 (gdb_os_flush_stderr): Update.
8936 (gdb_os_write_stderr): Update.
8937 * exceptions.c (print_exception): Update.
8938 * remote-fileio.c (remote_fileio_func_read): Update.
8939 (remote_fileio_func_write): Update.
8940 * tui/tui.c (tui_enable): Update.
8941 * tui/tui-interp.c (tui_interp::init): Update.
8942 * utils.c (init_page_info): Update.
8943 (putchar_unfiltered, fputc_unfiltered): Update.
8944 (gdb_flush): Update.
8945 (emit_style_escape): Update.
8946 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8947 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8948 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8949 (stderr_file::write): Update.
8950 (stderr_file::puts): Update.
8951 * ui-file.h (ui_file_isatty, ui_file_write)
8952 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8953 (ui_file_puts): Don't declare.
8954
8955 2020-02-10 Tom de Vries <tdevries@suse.de>
8956
8957 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8958 sentinel to char *.
8959
8960 2020-02-09 Tom de Vries <tdevries@suse.de>
8961
8962 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8963 filename if it matches "<artificial>".
8964
8965 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8966
8967 * windows-tdep.c (struct enum_value_name): New struct.
8968 (create_enum): New function.
8969 (windows_get_siginfo_type): Create and use enum types.
8970
8971 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8972
8973 * NEWS: Mention $_siginfo support for Windows.
8974 * windows-nat.c (handle_exception): Set siginfo_er.
8975 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8976 (windows_xfer_siginfo): New function.
8977 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8978 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8979 (init_windows_gdbarch_data): New function.
8980 (get_windows_gdbarch_data): New function.
8981 (windows_get_siginfo_type): New function.
8982 (windows_init_abi): Register windows_get_siginfo_type.
8983 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8984
8985 2020-02-08 Tom Tromey <tom@tromey.com>
8986
8987 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8988 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8989 <keep>: Declare method.
8990 <m_keep>: Remove member.
8991 <~cutu_reader>: Remove.
8992 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8993 (cutu_reader::cutu_reader): Update.
8994 (cutu_reader::keep): Rename from ~cutu_reader.
8995 (process_psymtab_comp_unit, build_type_psymtabs_1)
8996 (process_skeletonless_type_unit, load_partial_comp_unit)
8997 (load_full_comp_unit, dwarf2_read_addr_index)
8998 (read_signatured_type): Update.
8999
9000 2020-02-08 Tom Tromey <tom@tromey.com>
9001
9002 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9003 "want_partial_unit" parameter.
9004 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9005 Inline check for DW_TAG_partial_unit.
9006 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9007
9008 2020-02-08 Tom Tromey <tom@tromey.com>
9009
9010 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9011 read.c.
9012 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9013 read.c.
9014
9015 2020-02-08 Tom Tromey <tom@tromey.com>
9016
9017 * dwarf2/read.c (read_address): Move to comp-unit.c.
9018 (dwarf2_rnglists_process, dwarf2_ranges_process)
9019 (read_attribute_value, dwarf_decode_lines_1)
9020 (var_decode_location, decode_locdesc): Update.
9021 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9022 read.c. Remove "cu" parameter.
9023 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9024 method.
9025
9026 2020-02-08 Tom Tromey <tom@tromey.com>
9027
9028 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9029 (read_indirect_line_string): Update.
9030 * dwarf2/comp-unit.c (read_offset): Remove.
9031 (read_comp_unit_head): Update.
9032 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9033 method.
9034 (read_offset): Don't declare.
9035
9036 2020-02-08 Tom Tromey <tom@tromey.com>
9037
9038 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9039 * dwarf2/read.c (struct comp_unit_head): Move to
9040 dwarf2/comp-unit.h.
9041 (enum class rcuh_kind): Move to comp-unit.h.
9042 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9043 (read_comp_unit_head, error_check_comp_unit_head)
9044 (read_and_check_comp_unit_head): Move to comp-unit.c.
9045 (read_offset, dwarf_unit_type_name): Likewise.
9046 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9047 (cutu_reader::cutu_reader, read_call_site_scope)
9048 (find_partial_die, follow_die_offset): Update.
9049 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9050
9051 2020-02-08 Tom Tromey <tom@tromey.com>
9052
9053 * dwarf2/read.c (read_offset_1): Move to leb.c.
9054 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9055 (dwarf_decode_macro_bytes): Update.
9056 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9057 * dwarf2/leb.h (read_offset): Declare.
9058
9059 2020-02-08 Tom Tromey <tom@tromey.com>
9060
9061 * dwarf2/read.c (dwarf2_section_size): Remove.
9062 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9063 Update.
9064 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9065
9066 2020-02-08 Tom Tromey <tom@tromey.com>
9067
9068 * dwarf2/read.c (read_initial_length): Move to leb.c.
9069 * dwarf2/leb.h (read_initial_length): Declare.
9070 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9071 handle_nonstd parameter.
9072 * dwarf2/frame.c (read_initial_length): Remove.
9073 (decode_frame_entry_1): Update.
9074
9075 2020-02-08 Tom Tromey <tom@tromey.com>
9076
9077 * dwarf2/loc.c (dwarf2_find_location_expression)
9078 (dwarf_evaluate_loc_desc::get_tls_address)
9079 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9080 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9081 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9082 (dwarf2_compile_property_to_c)
9083 (dwarf2_loc_desc_get_symbol_read_needs)
9084 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9085 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9086 (loclist_describe_location, loclist_tracepoint_var_ref)
9087 (loclist_generate_c_location): Update.
9088 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9089 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9090 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9091 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9092 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9093 (dwarf2_per_cu_data::addr_size)
9094 (dwarf2_per_cu_data::ref_addr_size)
9095 (dwarf2_per_cu_data::text_offset)
9096 (dwarf2_per_cu_data::addr_type): Now methods.
9097 (per_cu_header_read_in): Make per_cu "const".
9098 (dwarf2_version): Remove.
9099 (dwarf2_per_cu_data::int_type): Now a method.
9100 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9101 (set_die_type, read_array_type, read_subrange_index_type)
9102 (read_tag_string_type, read_subrange_type): Update.
9103 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9104 offset_size, ref_addr_size, text_offset, addr_type, version,
9105 objfile, int_type, addr_sized_int_type>: Declare methods.
9106
9107 2020-02-08 Tom Tromey <tom@tromey.com>
9108
9109 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9110 Move earlier.
9111
9112 2020-02-08 Tom Tromey <tom@tromey.com>
9113
9114 * dwarf2/read.h (dwarf_line_debug): Declare.
9115 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9116 * dwarf2/read.c: Move line_header code to new files.
9117 (dwarf_line_debug): No longer static.
9118 * dwarf2/line-header.c: New file.
9119 * dwarf2/line-header.h: New file.
9120
9121 2020-02-08 Tom Tromey <tom@tromey.com>
9122
9123 * dwarf2/read.c (struct line_header) <file_full_name,
9124 file_file_name>: Return unique_xmalloc_ptr.
9125 (line_header::file_file_name): Update.
9126 (line_header::file_full_name): Update.
9127 (dw2_get_file_names_reader): Update.
9128 (macro_start_file): Update.
9129
9130 2020-02-08 Tom Tromey <tom@tromey.com>
9131
9132 * dwarf2/read.c (struct line_header) <file_full_name,
9133 file_file_name>: Declare methods.
9134 (dw2_get_file_names_reader): Update.
9135 (file_file_name): Now a method.
9136 (file_full_name): Likewise.
9137 (macro_start_file): Update.
9138
9139 2020-02-08 Tom Tromey <tom@tromey.com>
9140
9141 * dwarf2/read.c (dwarf_always_disassemble)
9142 (show_dwarf_always_disassemble): Move to loc.c.
9143 (_initialize_dwarf2_read): Move "always-disassemble" registration
9144 to loc.c.
9145 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9146 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9147 static.
9148 (show_dwarf_always_disassemble): Move from read.c.
9149 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9150
9151 2020-02-08 Tom Tromey <tom@tromey.com>
9152
9153 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9154 (create_quick_file_names_table): Return htab_up.
9155 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9156 Update.
9157 * dwarf2/read.h (struct dwarf2_per_objfile)
9158 <quick_file_names_table>: Now htab_up.
9159
9160 2020-02-08 Tom Tromey <tom@tromey.com>
9161
9162 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9163
9164 2020-02-08 Tom Tromey <tom@tromey.com>
9165
9166 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9167 Rewrite.
9168 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9169 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9170 (abbrev_table::abbrev_table): No longer inline.
9171 (ABBREV_HASH_SIZE): Remove.
9172 (abbrev_table::m_abbrevs): Now an htab_up.
9173
9174 2020-02-08 Tom Tromey <tom@tromey.com>
9175
9176 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9177 (cutu_reader): Update.
9178 (build_type_psymtabs_1): Update.
9179 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9180 (abbrev_table::alloc_abbrev): Update.
9181 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9182 (abbrev_table::read): New static method, renamed from
9183 abbrev_table_read_table.
9184 (abbrev_table::alloc_abbrev)
9185 (abbrev_table::add_abbrev): Now private.
9186 (abbrev_table::abbrev_table): Now private.
9187 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9188
9189 2020-02-08 Tom Tromey <tom@tromey.com>
9190
9191 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9192 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9193 htab_up.
9194
9195 2020-02-08 Tom Tromey <tom@tromey.com>
9196
9197 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9198 htab_up.
9199 (lookup_dwo_unit_in_dwp): Update.
9200 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9201 on obstack.
9202
9203 2020-02-08 Tom Tromey <tom@tromey.com>
9204
9205 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9206 obstack.
9207
9208 2020-02-08 Tom Tromey <tom@tromey.com>
9209
9210 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9211 line_header_hash.
9212 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9213 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9214 Change type to htab_up.
9215
9216 2020-02-08 Tom Tromey <tom@tromey.com>
9217
9218 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9219 htab_up. Don't allocate on obstack.
9220 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9221 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9222 Change type to htab_up.
9223
9224 2020-02-08 Tom Tromey <tom@tromey.com>
9225
9226 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9227 Change type to htab_up.
9228 * dwarf2/read.c (create_signatured_type_table_from_index)
9229 (create_signatured_type_table_from_debug_names)
9230 (create_all_type_units, add_type_unit)
9231 (lookup_dwo_signatured_type, lookup_signatured_type)
9232 (process_skeletonless_type_unit): Update.
9233 (create_debug_type_hash_table, create_debug_types_hash_table):
9234 Change type of types_htab.
9235 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9236 htab_up. Don't allocate on obstack.
9237 (create_cus_hash_table): Change type of cus_htab parameter.
9238 (struct dwo_file) <cus, tus>: Now htab_up.
9239 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9240 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9241 (queue_and_load_all_dwo_tus): Update.
9242 * dwarf2/index-write.c (write_gdbindex): Update.
9243 (write_debug_names): Update.
9244
9245 2020-02-08 Tom Tromey <tom@tromey.com>
9246
9247 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9248 dwarf2/read.c. Remove "next" member. Add constructor ntad
9249 destructor.
9250 (struct dwarf2_per_objfile) <queue>: New member.
9251 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9252 dwarf2/read.h.
9253 (dwarf2_queue, dwarf2_queue_tail): Remove.
9254 (class dwarf2_queue_guard): Add parameter to constructor. Use
9255 DISABLE_COPY_AND_ASSIGN.
9256 <m_per_objfile>: New member.
9257 <~dwarf2_queue_guard>: Rewrite.
9258 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9259 Update.
9260 (~dwarf2_queue_item): New.
9261
9262 2020-02-08 Tom Tromey <tom@tromey.com>
9263
9264 * dwarf2/read.c (struct die_info) <has_children>: New member.
9265 (dw2_get_file_names_reader): Remove has_children.
9266 (dw2_get_file_names): Update.
9267 (read_cutu_die_from_dwo): Remove has_children.
9268 (cutu_reader::init_tu_and_read_dwo_dies)
9269 (cutu_reader::cutu_reader): Update.
9270 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9271 Remove has_children.
9272 (build_type_psymtabs_1, process_skeletonless_type_unit)
9273 (load_partial_comp_unit, load_full_comp_unit): Update.
9274 (create_dwo_cu_reader): Remove has_children.
9275 (create_cus_hash_table, read_die_and_children): Update.
9276 (read_full_die_1,read_full_die): Remove has_children.
9277 (read_signatured_type): Update.
9278 (class cutu_reader) <has_children>: Remove.
9279
9280 2020-02-08 Tom Tromey <tom@tromey.com>
9281
9282 * dwarf2/expr.c: Rename from dwarf2expr.c.
9283 * dwarf2/expr.h: Rename from dwarf2expr.h.
9284 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9285 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9286 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9287 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9288 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9289 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9290 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9291 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9292 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9293 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9294 * dwarf2/loc.c: Rename from dwarf2loc.c.
9295 * dwarf2/loc.h: Rename from dwarf2loc.h.
9296 * dwarf2/read.c: Rename from dwarf2read.c.
9297 * dwarf2/read.h: Rename from dwarf2read.h.
9298 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9299 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9300 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9301 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9302 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9303 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9304 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9305 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9306 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9307 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9308 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9309 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9310 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9311 Update.
9312 * Makefile.in (COMMON_SFILES): Update.
9313 (HFILES_NO_SRCDIR): Update.
9314
9315 2020-02-08 Tom Tromey <tom@tromey.com>
9316
9317 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9318 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9319
9320 2020-02-08 Tom Tromey <tom@tromey.com>
9321
9322 * dwarf2read.h (struct die_info): Don't declare.
9323
9324 2020-02-08 Tom Tromey <tom@tromey.com>
9325
9326 * dwarf2read.h (die_info_ptr): Remove typedef.
9327
9328 2020-02-08 Tom Tromey <tom@tromey.com>
9329
9330 * dwarf2read.c (read_call_site_scope)
9331 (handle_data_member_location, dwarf2_add_member_fn)
9332 (mark_common_block_symbol_computed, read_common_block)
9333 (attr_to_dynamic_prop, partial_die_info::read)
9334 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9335 (dwarf2_symbol_mark_computed, set_die_type): Update.
9336 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9337 method.
9338 (attr_form_is_block): Don't declare.
9339 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9340
9341 2020-02-08 Tom Tromey <tom@tromey.com>
9342
9343 * dwarf2read.c (dwarf2_find_base_address, )
9344 (read_call_site_scope, rust_containing_type)
9345 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9346 (handle_data_member_location, dwarf2_add_member_fn)
9347 (get_alignment, read_structure_type, process_structure_scope)
9348 (mark_common_block_symbol_computed, read_common_block)
9349 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9350 (partial_die_info::read, read_attribute_value, new_symbol)
9351 (lookup_die_type, dwarf2_get_ref_die_offset)
9352 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9353 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9354 (dwarf2_symbol_mark_computed): Update.
9355 * dwarf2/attribute.h (struct attribute) <value_as_address,
9356 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9357 methods.
9358 (value_as_address, attr_form_is_section_offset)
9359 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9360 * dwarf2/attribute.c (attribute::value_as_address)
9361 (attribute::form_is_section_offset, attribute::form_is_constant)
9362 (attribute::form_is_ref): Now methods.
9363
9364 2020-02-08 Tom Tromey <tom@tromey.com>
9365
9366 * dwarf2read.c (struct attribute, DW_STRING)
9367 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9368 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9369 (attr_form_is_block, attr_form_is_section_offset)
9370 (attr_form_is_constant, attr_form_is_ref): Move.
9371 * dwarf2/attribute.h: New file.
9372 * dwarf2/attribute.c: New file, from dwarf2read.c.
9373 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9374
9375 2020-02-08 Tom Tromey <tom@tromey.com>
9376
9377 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9378 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9379 Move.
9380 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9381 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9382 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9383 abbrev.c.
9384 * dwarf2/abbrev.h: New file.
9385 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9386 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9387
9388 2020-02-08 Tom Tromey <tom@tromey.com>
9389
9390 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9391 (dwarf2_section_size, dwarf2_get_section_info)
9392 (create_signatured_type_table_from_debug_names)
9393 (create_addrmap_from_aranges, read_debug_names_from_section)
9394 (get_gdb_index_contents_from_section, read_comp_unit_head)
9395 (error_check_comp_unit_head, read_abbrev_offset)
9396 (create_debug_type_hash_table, init_cu_die_reader)
9397 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9398 (read_comp_units_from_section, create_cus_hash_table)
9399 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9400 (create_dwp_v2_section, dwarf2_rnglists_process)
9401 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9402 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9403 (read_indirect_string_from_dwz, read_addr_index_1)
9404 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9405 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9406 (fill_in_loclist_baton): Update.
9407 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9408 get_containing_section, get_bfd_owner, get_bfd_section,
9409 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9410 (dwarf2_read_section, get_section_name, get_section_file_name)
9411 (get_containing_section, get_section_bfd_owner)
9412 (get_section_bfd_section, get_section_name, get_section_file_name)
9413 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9414 declare.
9415 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9416 (dwarf2_section_info::get_bfd_owner)
9417 (dwarf2_section_info::get_bfd_section)
9418 (dwarf2_section_info::get_name)
9419 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9420 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9421 (dwarf2_section_info::read): Now methods.
9422 * dwarf-index-write.c (class debug_names): Update.
9423
9424 2020-02-08 Tom Tromey <tom@tromey.com>
9425
9426 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9427 Move to dwarf2/section.h.
9428 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9429 (get_section_bfd_section, get_section_name)
9430 (get_section_file_name, get_section_id, get_section_flags)
9431 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9432 dwarf2/section.c.
9433 * dwarf2/section.h: New file.
9434 * dwarf2/section.c: New file, from dwarf2read.c.
9435 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9436
9437 2020-02-08 Tom Tromey <tom@tromey.com>
9438
9439 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9440 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9441 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9442 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9443 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9444 * dwarf2/leb.h: New file, from dwarf2read.c.
9445 * dwarf2/leb.c: New file, from dwarf2read.c.
9446 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9447 Remove.
9448 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9449 (COMMON_SFILES): Add dwarf2/leb.c.
9450
9451 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9452
9453 GDB 9.1 released.
9454
9455 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9456
9457 PR gdb/25190:
9458 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9459 * gdb/remote.c (remote_console_output): Update.
9460 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9461 (ui_file_puts): ...this.
9462 * gdb/ui-file.h (ui_file_puts): Add declaration.
9463 * gdb/utils.c (emit_style_escape): Update.
9464 (flush_wrap_buffer): Update.
9465 (fputs_maybe_filtered): Update.
9466 (fputs_unfiltered): Add function.
9467
9468 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9469
9470 * gdb/event-loop.c (gdb_wait_for_event): Update.
9471 * gdb/printcmd.c (printf_command): Update.
9472 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9473 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9474 (gdb_os_flush_stderr): Update.
9475 * gdb/remote.c (remote_console_output): Update.
9476 * gdb/ui-file.c (gdb_flush): Rename to...
9477 (ui_file_flush): ...this.
9478 (stderr_file::write): Update.
9479 (stderr_file::puts): Update.
9480 * gdb/ui-file.h (gdb_flush): Rename to...
9481 (ui_file_flush): ...this.
9482 * gdb/utils.c (gdb_flush): Add function.
9483 * gdb/utils.h (gdb_flush): Add declaration.
9484
9485 2020-02-07 Tom Tromey <tromey@adacore.com>
9486
9487 PR breakpoints/24915:
9488 * source.c (find_and_open_source): Do not check basenames_may_differ.
9489
9490 2020-02-07 Tom Tromey <tom@tromey.com>
9491
9492 * README: Update gdbserver documentation.
9493 * gdbserver: Move to top level.
9494 * configure.tgt (build_gdbserver): Remove.
9495 * configure.ac: Remove --enable-gdbserver.
9496 * configure: Rebuild.
9497 * Makefile.in (distclean): Don't mention gdbserver.
9498
9499 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9500
9501 * source-cache.c (source_cache::ensure): Surround
9502 get_plain_source_lines with a try/catch.
9503 (source_cache::get_line_charpos): Get rid of try/catch
9504 and only check for the return value of "ensure".
9505 * tui/tui-source.c (tui_source_window::set_contents):
9506 Simplify "nlines" calculation.
9507
9508 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9509
9510 * MAINTAINERS (Write After Approval): Add myself.
9511
9512 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9513
9514 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9515 function call.
9516
9517 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9518
9519 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9520
9521 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9522
9523 * nat/riscv-linux-tdesc.h: New file.
9524 * nat/riscv-linux-tdesc.c: New file, taking code from...
9525 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9526 ... here.
9527 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9528 NATDEPFILES.
9529
9530 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9531
9532 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9533 we don't set the fake simulator ptid to the null_ptid.
9534
9535 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9536
9537 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9538 * gdbthread.h (class thread_info) <resumed>: Likewise.
9539 * infrun.c (resume_1): Likewise.
9540 (proceed): Likewise.
9541 (infrun_thread_stop_requested): Likewise.
9542 (stop_all_threads): Likewise.
9543 (handle_inferior_event): Likewise.
9544 (restart_threads): Likewise.
9545 (finish_step_over): Likewise.
9546 (keep_going_stepped_thread): Likewise.
9547 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9548 (linux_handle_extended_wait): Likewise.
9549 * record-btrace.c (get_thread_current_frame_id): Likewise.
9550 * record-full.c (record_full_wait_1): Likewise.
9551 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9552 * target.c (target_resume): Likewise.
9553 * thread.c (set_running_thread): Likewise.
9554
9555 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9556
9557 * f-valprint.c (f77_print_array_1): Changed datatype of index
9558 variable to LONGEST from int to enable it to contain bound
9559 values correctly.
9560
9561 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9562
9563 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9564 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9565 offsets according to FLEN determined.
9566 (riscv_linux_nat_target::read_description): Determine FLEN
9567 dynamically.
9568 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9569 according to FLEN determined.
9570 (riscv_linux_nat_target::store_registers): Likewise.
9571
9572 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9573
9574 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9575 when reg->group is empty and reggroup is not.
9576
9577 2020-01-31 Tom Tromey <tromey@adacore.com>
9578
9579 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9580 Call beneath target's mourn_inferior after unpushing.
9581
9582 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9583
9584 PR tui/9765
9585 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9586 have enough lines to fill the screen, still return the lowest
9587 address we found.
9588
9589 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9590
9591 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9592 '-', '<', and '>' commands.
9593
9594 2020-01-29 Pedro Alves <palves@redhat.com>
9595 Sergio Durigan Junior <sergiodj@redhat.com>
9596
9597 * infcmd.c (construct_inferior_arguments): Assert that
9598 'argc' is greater than 0.
9599
9600 2020-01-29 Luis Machado <luis.machado@linaro.org>
9601
9602 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9603 (BRK_INSN_MASK): Define to 0xd4200000.
9604 (aarch64_program_breakpoint_here_p): New function.
9605 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9606 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9607 breakpoint.c.
9608 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9609 breakpoint.h
9610 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9611 call gdbarch_program_breakpoint_here_p.
9612 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9613 default_program_breakpoint_here_p, changed return type to bool and
9614 simplified.
9615 * breakpoint.h (program_breakpoint_here): Moved prototype to
9616 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9617 return type to bool.
9618 * gdbarch.c: Regenerate.
9619 * gdbarch.h: Regenerate.
9620 * gdbarch.sh (program_breakpoint_here_p): New method.
9621 * infrun.c (handle_signal_stop): Call
9622 gdbarch_program_breakpoint_here_p.
9623
9624 2020-01-26 Tom Tromey <tom@tromey.com>
9625
9626 * ctfread.c (struct ctf_fp_info): Reindent.
9627 (_initialize_ctfread): Remove.
9628
9629 2020-01-26 Tom Tromey <tom@tromey.com>
9630
9631 * psymtab.c (partial_map_expand_apply)
9632 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9633 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9634 (psym_print_stats, psym_expand_symtabs_for_function)
9635 (psym_map_symbol_filenames, psym_map_matching_symbols)
9636 (psym_expand_symtabs_matching)
9637 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9638 (maintenance_check_psymtabs): Use new methods.
9639 * psympriv.h (struct partial_symtab) <readin_p,
9640 get_compunit_symtab>: New methods.
9641 <readin, compunit_symtab>: Remove members.
9642 (struct standard_psymtab): New.
9643 (struct legacy_psymtab): Derive from standard_psymtab.
9644 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9645 standard_psymtab.
9646 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9647
9648 2020-01-26 Tom Tromey <tom@tromey.com>
9649
9650 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9651 read_dependencies. Add assert.
9652 * psymtab.c (partial_symtab::read_dependencies): New method.
9653 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9654 method.
9655 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9656 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9657 read_dependencies.
9658 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9659 Add assert.
9660
9661 2020-01-26 Tom Tromey <tom@tromey.com>
9662
9663 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9664 Call expand_psymtab.
9665 (xcoff_read_symtab): Call expand_psymtab.
9666 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9667 legacy_expand_psymtab.
9668 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9669 method.
9670 (struct legacy_psymtab) <expand_psymtab>: Implement.
9671 <legacy_expand_psymtab>: New member.
9672 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9673 (parse_partial_symbols): Set legacy_expand_psymtab.
9674 (psymtab_to_symtab_1): Change argument order. Call
9675 expand_psymtab.
9676 (new_psymtab): Set legacy_expand_psymtab.
9677 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9678 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9679 expand_psymtab.
9680 (dwarf2_psymtab::expand_psymtab): Rename from
9681 psymtab_to_symtab_1. Call expand_psymtab.
9682 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9683 (dbx_end_psymtab): Likewise.
9684 (dbx_psymtab_to_symtab_1): Change argument order. Call
9685 expand_psymtab.
9686 (dbx_read_symtab): Call expand_psymtab.
9687 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9688 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9689 (ctf_psymtab::read_symtab): Call expand_psymtab.
9690
9691 2020-01-26 Tom Tromey <tom@tromey.com>
9692
9693 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9694 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9695 messages.
9696 * mdebugread.c (mdebug_read_symtab): Remove prints.
9697 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9698 assert.
9699 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9700
9701 2020-01-26 Tom Tromey <tom@tromey.com>
9702
9703 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9704 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9705 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9706 legacy_symtab.
9707 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9708 * psymtab.c (psymtab_to_symtab): Call method.
9709 (dump_psymtab): Update.
9710 * psympriv.h (struct partial_symtab): Add virtual destructor.
9711 <read_symtab>: New method.
9712 (struct legacy_symtab): New.
9713 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9714 (struct pst_map) <pst>: Now a legacy_psymtab.
9715 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9716 (new_psymtab): Use legacy_psymtab.
9717 * dwarf2read.h (struct dwarf2_psymtab): New.
9718 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9719 * dwarf2read.c (dwarf2_create_include_psymtab)
9720 (dwarf2_build_include_psymtabs, create_type_unit_group)
9721 (create_partial_symtab, process_psymtab_comp_unit_reader)
9722 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9723 (set_partial_user): Use dwarf2_psymtab.
9724 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9725 (psymtab_to_symtab_1, process_full_comp_unit)
9726 (process_full_type_unit, dwarf2_ranges_read)
9727 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9728 (dwarf_decode_lines): Use dwarf2_psymtab.
9729 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9730 (add_address_entry_worker, write_one_signatured_type)
9731 (recursively_count_psymbols, recursively_write_psymbols)
9732 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9733 (write_debug_names): Likewise.
9734 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9735 <pst>: Now a legacy_psymtab.
9736 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9737 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9738 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9739 * ctfread.c (struct ctf_psymtab): New.
9740 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9741 ctf_psymtab.
9742 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9743 (create_partial_symtab): Return a ctf_psymtab.
9744 (scan_partial_symbols): Update.
9745
9746 2020-01-26 Tom Tromey <tom@tromey.com>
9747
9748 * xcoffread.c (xcoff_start_psymtab): Use new.
9749 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9750 renamed from start_psymtab_common.
9751 * psympriv.h (struct partial_symtab): Add new constructor.
9752 (start_psymtab_common): Don't declare.
9753 * mdebugread.c (parse_partial_symbols): Use new.
9754 * dwarf2read.c (create_partial_symtab): Use new.
9755 * dbxread.c (start_psymtab): Use new.
9756 * ctfread.c (create_partial_symtab): Use new.
9757
9758 2020-01-26 Tom Tromey <tom@tromey.com>
9759
9760 * xcoffread.c (xcoff_end_psymtab): Use new.
9761 * psymtab.c (start_psymtab_common): Use new.
9762 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9763 Update.
9764 * psympriv.h (struct partial_symtab): Add parameters to
9765 constructor. Don't inline.
9766 (allocate_psymtab): Don't declare.
9767 * mdebugread.c (new_psymtab): Use new.
9768 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9769 * dbxread.c (dbx_end_psymtab): Use new.
9770
9771 2020-01-26 Tom Tromey <tom@tromey.com>
9772
9773 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9774 allocate_psymtab. Update documentation.
9775 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9776 allocate_psymtab. Do not use new.
9777 (allocate_psymtab): Use new. Update.
9778
9779 2020-01-26 Tom Tromey <tom@tromey.com>
9780
9781 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9782 * psymtab.c (psym_print_stats): Update.
9783 * psympriv.h (struct partial_symtab) <readin,
9784 psymtabs_addrmap_supported, anonymous>: Now bool.
9785 * mdebugread.c (psymtab_to_symtab_1): Update.
9786 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9787 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9788 (process_full_comp_unit, process_full_type_unit): Update.
9789 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9790 * ctfread.c (psymtab_to_symtab): Update.
9791
9792 2020-01-26 Tom Tromey <tom@tromey.com>
9793
9794 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9795 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9796 * psymtab.c (psymtab_storage): Delete psymtabs.
9797 (psymtab_storage::allocate_psymtab): Use new.
9798 (psymtab_storage::discard_psymtab): Use delete.
9799 * psympriv.h (struct partial_symtab): Add constructor and
9800 initializers.
9801
9802 2020-01-26 Tom Tromey <tom@tromey.com>
9803
9804 * machoread.c: Do not include psympriv.h.
9805
9806 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9807
9808 * NEWS: Mention the new option and the set/show commands.
9809
9810 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9811
9812 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9813 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9814 (validate_exec_file): New variables, enums, functions.
9815 (exec_file_locate_attach, print_section_info): Style the filenames.
9816 (_initialize_exec): Install show_exec_file_mismatch_command and
9817 set_exec_file_mismatch_command.
9818 * gdbcore.h (validate_exec_file): Declare.
9819 * infcmd.c (attach_command): Call validate_exec_file.
9820 * remote.c ( remote_target::remote_add_inferior): Likewise.
9821
9822 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9823
9824 * frame.c (find_frame_sal): Move call to get_next_frame into more
9825 inner scope.
9826 * inline-frame.c (inilne_state) <inline_state>: Update argument
9827 types.
9828 (inilne_state) <skipped_symbol>: Rename to...
9829 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9830 (skip_inline_frames): Build vector of skipped symbols and use this
9831 to reate the inline_state.
9832 (inline_skipped_symbol): Add a comment and some assertions, fetch
9833 skipped symbol from the list.
9834
9835 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9836
9837 * buildsym.c (lte_is_less_than): Delete.
9838 (buildsym_compunit::end_symtab_with_blockvector): Create local
9839 lambda function to sort line table entries, and use
9840 std::stable_sort instead of std::sort.
9841 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9842 markers when looking for a previous line.
9843
9844 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9845
9846 * dwarf2read.c (lnp_state_machine::record_line): Include
9847 end_sequence parameter in debug print out. Record the line if we
9848 are at an end_sequence marker even if it's not the start of a
9849 statement.
9850 * symmisc.c (maintenance_print_one_line_table): Print end of
9851 sequence markers with 'END' not '0'.
9852
9853 2020-01-24 Pedro Alves <palves@redhat.com>
9854
9855 PR gdb/25410
9856 * thread.c (scoped_restore_current_thread::restore): Use
9857 switch_to_inferior_no_thread.
9858 * exec.c: Include "progspace-and-thread.h".
9859 (add_target_sections, remove_target_sections):
9860 scoped_restore_current_pspace_and_thread instead of
9861 scoped_restore_current_thread.
9862 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9863 and aspace to the inferior before calling clone_program_space.
9864 Remove stale comment.
9865
9866 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9867
9868 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9869 (arm_netbsd_nat_target::fetch_registers): ...this.
9870 (arm_nbsd_nat_target::store_registers): Rename to...
9871 (arm_netbsd_nat_target::store_registers): ...this.
9872
9873 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9874
9875 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9876 register_t.
9877
9878 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9879
9880 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9881 Update comment.
9882 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9883 Likewise.
9884 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9885 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9886 the correct replacement (iterate_over_regset_sections).
9887 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9888 Update comment.
9889
9890 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9891
9892 PR gdb/23718
9893 * gdb/python/python.c (execute_gdb_command): Call
9894 async_enable_stdin in catch block.
9895
9896 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9897
9898 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9899 SWITCH_THRU_ALL_UIS.
9900
9901 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9902
9903 PR tui/9765
9904 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9905 comment, add extra parameter, and update to store previous symbol
9906 when appropriate.
9907 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9908 add extra parameter.
9909 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9910 remove unneeded parameter, add try/catch around gdb_print_insn,
9911 rewrite to add items to asm_lines vector.
9912 (tui_find_backward_disassembly_start_address): New function.
9913 (tui_find_disassembly_address): Updated throughout.
9914 (tui_disasm_window::set_contents): Update for changes to
9915 tui_disassemble.
9916 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9917 number of lines to scroll.
9918
9919 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9920
9921 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9922 (SECT_OFF_DATA): Likewise.
9923 (SECT_OFF_RODATA): Likewise.
9924 (SECT_OFF_TEXT): Likewise.
9925 (SECT_OFF_BSS): Likewise.
9926 (struct objfile) <text_section_offset, data_section_offset>: New
9927 methods.
9928 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9929 objfile::text_section_offset.
9930 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9931 * coffread.c (coff_symtab_read): Likewise.
9932 (enter_linenos): Likewise.
9933 (process_coff_symbol): Likewise.
9934 * ctfread.c (get_objfile_text_range): Likewise.
9935 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9936 Use objfile::data_section_offset.
9937 * dwarf2-frame.c (execute_cfa_program): Use
9938 objfile::text_section_offset.
9939 (dwarf2_frame_find_fde): Likewise.
9940 * dwarf2read.c (create_addrmap_from_index): Likewise.
9941 (create_addrmap_from_aranges): Likewise.
9942 (dw2_find_pc_sect_compunit_symtab): Likewise.
9943 (process_psymtab_comp_unit_reader): Likewise.
9944 (add_partial_symbol): Likewise.
9945 (add_partial_subprogram): Likewise.
9946 (process_full_comp_unit): Likewise.
9947 (read_file_scope): Likewise.
9948 (read_func_scope): Likewise.
9949 (read_lexical_block_scope): Likewise.
9950 (read_call_site_scope): Likewise.
9951 (dwarf2_rnglists_process): Likewise.
9952 (dwarf2_ranges_process): Likewise.
9953 (dwarf2_ranges_read): Likewise.
9954 (dwarf_decode_lines_1): Likewise.
9955 (new_symbol): Likewise.
9956 (dwarf2_fetch_die_loc_sect_off): Likewise.
9957 (dwarf2_per_cu_text_offset): Likewise.
9958 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9959 * hppa-tdep.c (read_unwind_info): Likewise.
9960 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9961 * psympriv.h (struct partial_symtab): Likewise.
9962 * psymtab.c (find_pc_sect_psymtab): Likewise.
9963 * solib-svr4.c (enable_break): Likewise.
9964 * stap-probe.c (relocate_address): Use
9965 objfile::data_section_offset.
9966 * xcoffread.c (enter_line_range): Use
9967 objfile::text_section_offset.
9968 (read_xcoff_symtab): Likewise.
9969
9970 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9971
9972 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9973 declaration to narrower scopes.
9974
9975 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9976
9977 * darwin-nat.h (struct darwin_exception_msg, enum
9978 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9979 Move up.
9980 (class darwin_nat_target) <wait_1, check_new_threads,
9981 decode_exception_message, decode_message, stop_inferior,
9982 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9983 * darwin-nat.c (darwin_check_new_threads): Rename to...
9984 (darwin_nat_target::check_new_threads): ... this.
9985 (darwin_suspend_inferior_it): Remove.
9986 (darwin_decode_exception_message): Rename to...
9987 (darwin_nat_target::decode_exception_message): ... this.
9988 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9989 (darwin_decode_message): Rename to...
9990 (darwin_nat_target::decode_message): ... this.
9991 (cancel_breakpoint): Rename to...
9992 (darwin_nat_target::cancel_breakpoint): ... this.
9993 (darwin_wait): Rename to...
9994 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9995 instead of iterate_over_inferiors.
9996 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9997 (darwin_stop_inferior): Rename to...
9998 (darwin_nat_target::stop_inferior): ... this.
9999 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10000 (darwin_init_thread_list): Rename to...
10001 (darwin_nat_target::init_thread_list): ... this.
10002 (darwin_ptrace_him): Rename to...
10003 (darwin_nat_target::ptrace_him): ... this.
10004 (darwin_nat_target::create_inferior): Pass lambda function to
10005 fork_inferior.
10006 (darwin_nat_target::detach): Call stop_inferior instead of
10007 darwin_stop_inferior.
10008 * fork-inferior.h (fork_inferior): Change init_trace_fun
10009 parameter to gdb::function_view.
10010 * fork-inferior.c (fork_inferior): Likewise.
10011
10012 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10013
10014 * i386-cygwin-tdep.c (core_process_module_section): Update.
10015 * windows-nat.c (struct lm_info_windows): Add text_offset.
10016 (windows_xfer_shared_libraries): Update.
10017 * windows-tdep.c (windows_xfer_shared_library):
10018 Add text_offset_cached argument.
10019 * windows-tdep.h (windows_xfer_shared_library): Update.
10020
10021 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10022
10023 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10024
10025 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10026
10027 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10028 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10029 replace with range-based for.
10030 (gdbsim_interrupt_inferior): Remove.
10031 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10032 with a range-based for. Inline code from
10033 gdbsim_interrupt_inferior.
10034
10035 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10036
10037 * infrun.c (proceed): Fix indentation.
10038
10039 2020-01-21 Tom Tromey <tromey@adacore.com>
10040
10041 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10042 * python/python.c (python_extension_ops): Update.
10043 (gdbpy_colorize): New function.
10044 * python/lib/gdb/__init__.py (colorize): New function.
10045 * extension.h (ext_lang_colorize): Declare.
10046 * extension.c (ext_lang_colorize): New function.
10047 * extension-priv.h (struct extension_language_ops) <colorize>: New
10048 member.
10049 * cli/cli-style.c (_initialize_cli_style): Update help text.
10050
10051 2020-01-21 Luis Machado <luis.machado@linaro.org>
10052
10053 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10054 <cond>: Change type to bool.
10055 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10056 (aarch64_displaced_step_cb): Likewise.
10057 (aarch64_displaced_step_tb): Likewise.
10058
10059 2020-01-21 Luis Machado <luis.machado@linaro.org>
10060
10061 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10062 output.
10063
10064 2020-01-21 Luis Machado <luis.machado@linaro.org>
10065
10066 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10067 <pc_adjust>: Adjust the documentation.
10068 (aarch64_displaced_step_fixup): Check if PC really moved before
10069 adjusting it.
10070
10071 2020-01-19 Tom Tromey <tom@tromey.com>
10072
10073 * disasm.c (~gdb_disassembler): New destructor.
10074 (gdb_buffered_insn_length): Call disassemble_free_target.
10075 * disasm.h (class gdb_disassembler): Declare destructor. Use
10076 DISABLE_COPY_AND_ASSIGN.
10077
10078 2020-01-19 Tom Tromey <tom@tromey.com>
10079
10080 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10081 (die_reader_func_ftype): Remove.
10082 (cutu_reader): New class.
10083 (dw2_get_file_names_reader): Remove "data" parameter.
10084 (dw2_get_file_names): Use cutu_reader.
10085 (create_debug_type_hash_table): Update.
10086 (read_cutu_die_from_dwo): Update comment.
10087 (lookup_dwo_unit): Add dwo_name parameter.
10088 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10089 die_reader_func_ftype and data parameters.
10090 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10091 Remove die_reader_func_ftype and data parameters.
10092 (~cutu_reader): New; from init_cutu_and_read_dies.
10093 (cutu_reader::cutu_reader): Rename from
10094 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10095 and data parameters.
10096 (init_cutu_and_read_dies_simple): Remove.
10097 (struct process_psymtab_comp_unit_data): Remove.
10098 (process_psymtab_comp_unit_reader): Remove data parameter; add
10099 want_partial_unit and pretend_language parameters.
10100 (process_psymtab_comp_unit): Use cutu_reader.
10101 (build_type_psymtabs_reader): Remove data parameter.
10102 (build_type_psymtabs_1): Use cutu_reader.
10103 (process_skeletonless_type_unit): Likewise.
10104 (load_partial_comp_unit_reader): Remove.
10105 (load_partial_comp_unit): Use cutu_reader.
10106 (load_full_comp_unit_reader): Remove.
10107 (load_full_comp_unit): Use cutu_reader.
10108 (struct create_dwo_cu_data): Remove.
10109 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10110 dwo_unit parameters.
10111 (create_cus_hash_table): Use cutu_reader.
10112 (struct dwarf2_read_addr_index_data): Remove.
10113 (dwarf2_read_addr_index_reader): Remove.
10114 (dwarf2_read_addr_index): Use cutu_reader.
10115 (read_signatured_type_reader): Remove.
10116 (read_signatured_type): Use cutu_reader.
10117
10118 2020-01-19 Tom Tromey <tom@tromey.com>
10119
10120 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10121 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10122 (tui_wrefresh): Declare.
10123 * tui/tui-wingeneral.c (suppress_output): New global.
10124 (tui_suppress_output, ~tui_suppress_output): New constructor and
10125 destructor.
10126 (tui_wrefresh): New function.
10127 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10128 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10129 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10130 method.
10131 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10132 tui_wrefresh.
10133 (tui_data_window::no_refresh): New method.
10134 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10135 (tui_reg_command): Use tui_suppress_output
10136 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10137 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10138 method.
10139 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10140
10141 2020-01-19 Tom Tromey <tom@tromey.com>
10142
10143 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10144 Handle case where symtab is null.
10145
10146 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10147
10148 * linux-fork.c (one_fork_p): Simplify.
10149
10150 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10151
10152 * top.c (struct qt_args): Remove.
10153 (kill_or_detach): Change return type to void, replace `void *`
10154 parameter with a proper one.
10155 (print_inferior_quit_action): Likewise.
10156 (quit_confirm): Use range-based for loop to iterate over inferiors.
10157 (quit_force): Likewise.
10158
10159 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10160
10161 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10162 `void *` parameter with proper parameters.
10163 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10164 (print_one_inferior): Change return type to void, replace `void *`
10165 parameter with proper parameters.
10166 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10167 inferiors.
10168 (get_other_inferior): Remove.
10169 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10170 inferiors.
10171
10172 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10173
10174 * mi/mi-interp.c (report_initial_inferior): Remove.
10175 (mi_interp::init): Use range-based for to iterate over inferiors.
10176
10177 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10178
10179 * python/py-inferior.c (build_inferior_list): Remove.
10180 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10181
10182 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10183
10184 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10185 (btrace_stitch_trace): Likewise.
10186 * charset.c (intermediate_encoding): Likewise (vaild).
10187 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10188 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10189 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10190
10191 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10192
10193 * windows-tdep.c (windows_get_tlb_type):
10194 Add rtl_user_process_parameters type.
10195
10196 2020-01-16 Pedro Alves <palves@redhat.com>
10197 Norbert Lange <nolange79@gmail.com>
10198
10199 PR build/24805
10200 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10201 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10202 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10203 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10204 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10205 (ps_plog): Redeclare exported functions with default visibility.
10206
10207 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10208
10209 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10210 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10211
10212 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10213
10214 * infcmd.c (post_create_inferior): Use get_thread_regcache
10215 instead of get_current_regcache.
10216
10217 2020-01-14 Tom Tromey <tom@tromey.com>
10218
10219 PR symtab/12535:
10220 * python/python.c (gdbpy_decode_line): Treat empty string the same
10221 as no argument.
10222
10223 2020-01-14 Tom Tromey <tom@tromey.com>
10224
10225 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10226
10227 2020-01-14 Tom Tromey <tom@tromey.com>
10228
10229 * nat/linux-btrace.c: Don't include <config.h>.
10230 * nat/linux-ptrace.c: Don't include <config.h>.
10231 * nat/x86-linux-dregs.c: Don't include <config.h>.
10232
10233 2020-01-14 Tom Tromey <tom@tromey.com>
10234
10235 * configure: Rebuild.
10236 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10237
10238 2020-01-14 Tom Tromey <tom@tromey.com>
10239
10240 * nat/x86-linux-dregs.c: Include configh.h.
10241 * nat/linux-ptrace.c: Include configh.h.
10242 * nat/linux-btrace.c: Include configh.h.
10243 * defs.h: Include config.h, bfd.h.
10244 * configure.ac: Don't source common.host.
10245 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10246 * configure: Rebuild.
10247 * acinclude.m4: Update path.
10248 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10249 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10250 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10251 (CLIBS): Add LIBSUPPORT.
10252 (CDEPS): Likewise.
10253 (COMMON_SFILES): Remove gdbsupport files.
10254 (HFILES_NO_SRCDIR): Likewise.
10255 (stamp-version): Update path to create-version.sh.
10256 (ALLDEPFILES): Remove gdbsupport files.
10257
10258 2020-01-14 Tom Tromey <tom@tromey.com>
10259
10260 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10261 USE_WIN32API when needed.
10262 * configure.ac (USE_WIN32API): Don't define.
10263 (WIN32LIBS): Use WIN32APILIBS.
10264 * configure: Rebuild.
10265
10266 2020-01-14 Tom Tromey <tom@tromey.com>
10267
10268 * configure: Rebuild.
10269 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10270
10271 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10272
10273 * skip.c (skip_function_command): Make skip w/o arguments use the
10274 name of the inlined function if pc is inside any inlined function.
10275
10276 2020-01-14 Luis Machado <luis.machado@linaro.org>
10277
10278 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10279 * infrun.c (resume_1): Likewise.
10280 (handle_inferior_event): Remove stale comment.
10281 * linux-nat.c (linux_nat_target::resume): Update comments.
10282 (save_stop_reason): Likewise.
10283 (linux_nat_filter_event): Likewise.
10284 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10285
10286 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10287
10288 * elfread.c (record_minimal_symbol): Set section index to 0 for
10289 non-allocatable sections.
10290
10291
10292 2020-01-13 Ali Tamur <tamur@google.com>
10293
10294 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10295 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10296 to gdb::optional. Update comments.
10297 (dwo_file): Update comments.
10298 (read_attribute): Update API to take an additional out parameter,
10299 need_reprocess. This is used to mark attributes that need other
10300 attributes (e.g. str_offsets_base) for correct computation which may not
10301 have been read yet.
10302 (read_attribute_reprocess): New function declaration.
10303 (read_addr_index): Likewise.
10304 (read_dwo_str_index): Likewise.
10305 (read_stub_str_index): Likewise.
10306 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10307 (lookup_addr_base): New function definition.
10308 (lookup_ranges_base): Likewise.
10309 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10310 lookup_ranges_base.
10311 (init_cutu_and_read_dies): Update comments.
10312 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10313 unit. This is used to inherit parent's str_offsets_base and addr_base.
10314 Update comments.
10315 (init_cutu_and_read_dies_simple): Reflect API changes.
10316 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10317 (create_cus_hash_table): Change API to take parent compile unit.
10318 Reflect API changes.
10319 (open_and_init_dwo_file): Reflect API changes.
10320 (dwarf2_get_pc_bounds): Update comments.
10321 (dwarf2_record_block_ranges): Likewise.
10322 (read_full_die_1): Change implementation to reprocess attributes that
10323 need str_offsets_base and addr_base.
10324 (partial_die_info::read): Likewise.
10325 (read_attribute_reprocess): New function definition.
10326 (read_attribute_value): Change API to take an additional out parameter,
10327 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10328 when a non-dwo compile unit has index based attributes.
10329 (read_attribute): Reflect API changes.
10330 (read_addr_index_1): Reflect API changes. Update comments.
10331 (dwarf2_read_addr_index_data): Reflect API changes.
10332 (dwarf2_read_addr_index): Likewise.
10333 (read_str_index): Change API and implementation. This becomes a helper
10334 to be used by the new string index related methods. Update error
10335 message and comments.
10336 (read_dwo_str_index): New function definition.
10337 (read_stub_str_index): Likewise.
10338 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10339 * symfile.h (dwarf2_debug_sections): Likewise.
10340 * xcoffread.c (dwarf2_debug_sections): Likewise.
10341
10342 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10343
10344 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10345 core_reg_sect type to gdb_byte *.
10346 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10347 * cris-tdep.c (fetch_core_registers): Likewise.
10348 * corelow.c (core_target::get_core_register_section): Change
10349 type of `contents` to gdb::byte_vector.
10350
10351 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10352
10353 * tui/tui-wingeneral.c (box_win): Position the title in the center
10354 of the border.
10355
10356 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10357
10358 * corelow.c (core_target::get_core_register_section): Use
10359 std::vector instead of alloca.
10360
10361 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10362
10363 * warning.m4: Add -Wmissing-declarations to build_warnings.
10364 * configure: Re-generate.
10365
10366 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10367
10368 * python/python.c (init__gdb_module): Add declaration.
10369
10370 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10371
10372 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10373 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10374 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10375 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10376 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10377 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10378 * ada-exp.y (_initialize_ada_exp): Add declaration.
10379 * ada-lang.c (_initialize_ada_language): Add declaration.
10380 * ada-tasks.c (_initialize_tasks): Add declaration.
10381 * agent.c (_initialize_agent): Add declaration.
10382 * aix-thread.c (_initialize_aix_thread): Add declaration.
10383 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10384 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10385 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10386 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10387 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10388 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10389 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10390 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10391 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10392 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10393 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10394 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10395 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10396 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10397 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10398 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10399 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10400 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10401 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10402 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10403 * annotate.c (_initialize_annotate): Add declaration.
10404 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10405 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10406 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10407 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10408 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10409 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10410 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10411 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10412 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10413 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10414 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10415 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10416 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10417 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10418 * auto-load.c (_initialize_auto_load): Add declaration.
10419 * auxv.c (_initialize_auxv): Add declaration.
10420 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10421 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10422 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10423 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10424 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10425 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10426 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10427 * breakpoint.c (_initialize_breakpoint): Add declaration.
10428 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10429 * btrace.c (_initialize_btrace): Add declaration.
10430 * charset.c (_initialize_charset): Add declaration.
10431 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10432 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10433 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10434 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10435 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10436 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10437 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10438 * coffread.c (_initialize_coffread): Add declaration.
10439 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10440 * compile/compile.c (_initialize_compile): Add declaration.
10441 * complaints.c (_initialize_complaints): Add declaration.
10442 * completer.c (_initialize_completer): Add declaration.
10443 * copying.c (_initialize_copying): Add declaration.
10444 * corefile.c (_initialize_core): Add declaration.
10445 * corelow.c (_initialize_corelow): Add declaration.
10446 * cp-abi.c (_initialize_cp_abi): Add declaration.
10447 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10448 * cp-support.c (_initialize_cp_support): Add declaration.
10449 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10450 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10451 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10452 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10453 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10454 * ctfread.c (_initialize_ctfread): Add declaration.
10455 * d-lang.c (_initialize_d_language): Add declaration.
10456 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10457 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10458 * dbxread.c (_initialize_dbxread): Add declaration.
10459 * dcache.c (_initialize_dcache): Add declaration.
10460 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10461 * disasm.c (_initialize_disasm): Add declaration.
10462 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10463 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10464 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10465 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10466 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10467 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10468 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10469 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10470 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10471 * elfread.c (_initialize_elfread): Add declaration.
10472 * exec.c (_initialize_exec): Add declaration.
10473 * extension.c (_initialize_extension): Add declaration.
10474 * f-lang.c (_initialize_f_language): Add declaration.
10475 * f-valprint.c (_initialize_f_valprint): Add declaration.
10476 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10477 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10478 * filesystem.c (_initialize_filesystem): Add declaration.
10479 * findcmd.c (_initialize_mem_search): Add declaration.
10480 * findvar.c (_initialize_findvar): Add declaration.
10481 * fork-child.c (_initialize_fork_child): Add declaration.
10482 * frame-base.c (_initialize_frame_base): Add declaration.
10483 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10484 * frame.c (_initialize_frame): Add declaration.
10485 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10486 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10487 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10488 * gcore.c (_initialize_gcore): Add declaration.
10489 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10490 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10491 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10492 * gdbarch.c (_initialize_gdbarch): Add declaration.
10493 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10494 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10495 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10496 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10497 * go-lang.c (_initialize_go_language): Add declaration.
10498 * go32-nat.c (_initialize_go32_nat): Add declaration.
10499 * guile/guile.c (_initialize_guile): Add declaration.
10500 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10501 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10502 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10503 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10504 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10505 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10506 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10507 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10508 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10509 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10510 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10511 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10512 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10513 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10514 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10515 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10516 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10517 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10518 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10519 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10520 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10521 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10522 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10523 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10524 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10525 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10526 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10527 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10528 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10529 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10530 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10531 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10532 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10533 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10534 * infcall.c (_initialize_infcall): Add declaration.
10535 * infcmd.c (_initialize_infcmd): Add declaration.
10536 * inflow.c (_initialize_inflow): Add declaration.
10537 * infrun.c (_initialize_infrun): Add declaration.
10538 * interps.c (_initialize_interpreter): Add declaration.
10539 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10540 * jit.c (_initialize_jit): Add declaration.
10541 * language.c (_initialize_language): Add declaration.
10542 * linux-fork.c (_initialize_linux_fork): Add declaration.
10543 * linux-nat.c (_initialize_linux_nat): Add declaration.
10544 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10545 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10546 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10547 * m2-lang.c (_initialize_m2_language): Add declaration.
10548 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10549 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10550 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10551 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10552 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10553 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10554 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10555 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10556 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10557 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10558 * machoread.c (_initialize_machoread): Add declaration.
10559 * macrocmd.c (_initialize_macrocmd): Add declaration.
10560 * macroscope.c (_initialize_macroscope): Add declaration.
10561 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10562 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10563 * maint.c (_initialize_maint_cmds): Add declaration.
10564 * mdebugread.c (_initialize_mdebugread): Add declaration.
10565 * memattr.c (_initialize_mem): Add declaration.
10566 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10567 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10568 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10569 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10570 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10571 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10572 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10573 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10574 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10575 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10576 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10577 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10578 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10579 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10580 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10581 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10582 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10583 * mipsread.c (_initialize_mipsread): Add declaration.
10584 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10585 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10586 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10587 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10588 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10589 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10590 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10591 * nto-procfs.c (_initialize_procfs): Add declaration.
10592 * objc-lang.c (_initialize_objc_language): Add declaration.
10593 * observable.c (_initialize_observer): Add declaration.
10594 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10595 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10596 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10597 * osabi.c (_initialize_gdb_osabi): Add declaration.
10598 * osdata.c (_initialize_osdata): Add declaration.
10599 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10600 * parse.c (_initialize_parse): Add declaration.
10601 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10602 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10603 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10604 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10605 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10606 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10607 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10608 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10609 * printcmd.c (_initialize_printcmd): Add declaration.
10610 * probe.c (_initialize_probe): Add declaration.
10611 * proc-api.c (_initialize_proc_api): Add declaration.
10612 * proc-events.c (_initialize_proc_events): Add declaration.
10613 * proc-service.c (_initialize_proc_service): Add declaration.
10614 * procfs.c (_initialize_procfs): Add declaration.
10615 * producer.c (_initialize_producer): Add declaration.
10616 * psymtab.c (_initialize_psymtab): Add declaration.
10617 * python/python.c (_initialize_python): Add declaration.
10618 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10619 * record-btrace.c (_initialize_record_btrace): Add declaration.
10620 * record-full.c (_initialize_record_full): Add declaration.
10621 * record.c (_initialize_record): Add declaration.
10622 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10623 * regcache.c (_initialize_regcache): Add declaration.
10624 * reggroups.c (_initialize_reggroup): Add declaration.
10625 * remote-notif.c (_initialize_notif): Add declaration.
10626 * remote-sim.c (_initialize_remote_sim): Add declaration.
10627 * remote.c (_initialize_remote): Add declaration.
10628 * reverse.c (_initialize_reverse): Add declaration.
10629 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10630 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10631 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10632 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10633 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10634 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10635 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10636 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10637 Add declaration.
10638 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10639 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10640 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10641 * rust-exp.y (_initialize_rust_exp): Add declaration.
10642 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10643 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10644 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10645 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10646 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10647 * score-tdep.c (_initialize_score_tdep): Add declaration.
10648 * ser-go32.c (_initialize_ser_dos): Add declaration.
10649 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10650 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10651 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10652 * ser-uds.c (_initialize_ser_socket): Add declaration.
10653 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10654 * serial.c (_initialize_serial): Add declaration.
10655 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10656 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10657 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10658 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10659 * skip.c (_initialize_step_skip): Add declaration.
10660 * sol-thread.c (_initialize_sol_thread): Add declaration.
10661 * solib-aix.c (_initialize_solib_aix): Add declaration.
10662 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10663 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10664 * solib-frv.c (_initialize_frv_solib): Add declaration.
10665 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10666 * solib-target.c (_initialize_solib_target): Add declaration.
10667 * solib.c (_initialize_solib): Add declaration.
10668 * source-cache.c (_initialize_source_cache): Add declaration.
10669 * source.c (_initialize_source): Add declaration.
10670 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10671 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10672 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10673 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10674 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10675 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10676 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10677 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10678 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10679 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10680 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10681 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10682 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10683 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10684 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10685 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10686 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10687 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10688 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10689 * stabsread.c (_initialize_stabsread): Add declaration.
10690 * stack.c (_initialize_stack): Add declaration.
10691 * stap-probe.c (_initialize_stap_probe): Add declaration.
10692 * std-regs.c (_initialize_frame_reg): Add declaration.
10693 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10694 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10695 * symfile.c (_initialize_symfile): Add declaration.
10696 * symmisc.c (_initialize_symmisc): Add declaration.
10697 * symtab.c (_initialize_symtab): Add declaration.
10698 * target.c (_initialize_target): Add declaration.
10699 * target-connection.c (_initialize_target_connection): Add
10700 declaration.
10701 * target-dcache.c (_initialize_target_dcache): Add declaration.
10702 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10703 * thread.c (_initialize_thread): Add declaration.
10704 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10705 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10706 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10707 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10708 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10709 * tracectf.c (_initialize_ctf): Add declaration.
10710 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10711 * tracefile.c (_initialize_tracefile): Add declaration.
10712 * tracepoint.c (_initialize_tracepoint): Add declaration.
10713 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10714 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10715 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10716 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10717 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10718 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10719 * tui/tui.c (_initialize_tui): Add declaration.
10720 * typeprint.c (_initialize_typeprint): Add declaration.
10721 * ui-style.c (_initialize_ui_style): Add declaration.
10722 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10723 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10724 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10725 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10726 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10727 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10728 * unittests/filtered_iterator-selftests.c
10729 (_initialize_filtered_iterator_selftests): Add declaration.
10730 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10731 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10732 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10733 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10734 * unittests/main-thread-selftests.c
10735 (_initialize_main_thread_selftests): Add declaration.
10736 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10737 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10738 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10739 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10740 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10741 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10742 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10743 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10744 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10745 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10746 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10747 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10748 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10749 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10750 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10751 declaration.
10752 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10753 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10754 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10755 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10756 * user-regs.c (_initialize_user_regs): Add declaration.
10757 * utils.c (_initialize_utils): Add declaration.
10758 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10759 * valops.c (_initialize_valops): Add declaration.
10760 * valprint.c (_initialize_valprint): Add declaration.
10761 * value.c (_initialize_values): Add declaration.
10762 * varobj.c (_initialize_varobj): Add declaration.
10763 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10764 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10765 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10766 * windows-nat.c (_initialize_windows_nat): Add declaration.
10767 (_initialize_check_for_gdb_ini): Add declaration.
10768 (_initialize_loadable): Add declaration.
10769 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10770 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10771 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10772 * xcoffread.c (_initialize_xcoffread): Add declaration.
10773 * xml-support.c (_initialize_xml_support): Add declaration.
10774 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10775 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10776 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10777 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10778
10779 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10780
10781 * regformats/regdat.sh: Generate declaration for init function.
10782
10783 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10784
10785 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10786 up.
10787 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10788 close_one_inferior>: New methods.
10789 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10790 pass down target to find_inferior_pid.
10791 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10792 Pass down target to find_inferior_ptid.
10793 (gdbsim_target::create_inferior): Pass down target to
10794 add_thread_silent.
10795 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10796 target down to find_inferior_ptid and switch_to_thread.
10797 (gdbsim_target::close): Update to call close_one_inferior.
10798 (struct resume_data): Remove.
10799 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10800 directly, rather than through a void pointer.
10801 (gdbsim_target::resume): Update to call resume_one_inferior.
10802
10803 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10804
10805 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10806
10807 2020-01-12 Pedro Alves <palves@redhat.com>
10808
10809 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10810 directly for the current inferior instead of
10811 discard_all_inferiors.
10812 (discard_all_inferiors): Delete.
10813
10814 2020-01-11 Tom Tromey <tom@tromey.com>
10815
10816 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10817 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10818 deprecated_safe_get_selected_frame.
10819
10820 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10821
10822 * inferior.c (print_inferior): Switch inferior before printing it.
10823
10824 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10825 Pedro Alves <palves@redhat.com>
10826
10827 * progspace-and-thread.c (switch_to_program_space_and_thread):
10828 Assert there's an inferior for PSPACE. Use
10829 switch_to_inferior_no_thread to switch the inferior too.
10830 * progspace.c (program_space::~program_space): Call
10831 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10832 (program_space::free_all_objfiles): Don't call clear_symtab_users
10833 here.
10834 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10835
10836 2020-01-10 Pedro Alves <palves@redhat.com>
10837
10838 * NEWS: Mention multi-target debugging, "info connections", and
10839 "add-inferior -no-connection".
10840
10841 2020-01-10 Pedro Alves <palves@redhat.com>
10842
10843 * infrun.c: Include "target-connection.h".
10844 (check_multi_target_resumption): New.
10845 (proceed): Call it.
10846 * target-connection.c (make_target_connection_string): Make
10847 extern.
10848 * target-connection.h (make_target_connection_string): Declare.
10849
10850 2020-01-10 Pedro Alves <palves@redhat.com>
10851
10852 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10853 * inferior.c (uiout_field_connection): New function.
10854 (print_inferior): Add new "connection-id" column.
10855 (add_inferior_command): Show connection number/string of added
10856 inferior.
10857 * process-stratum-target.h
10858 (process_stratum_target::connection_string): New virtual method.
10859 (process_stratum_target::connection_number): New field.
10860 * remote.c (remote_target::connection_string): New override.
10861 * target-connection.c: New file.
10862 * target-connection.h: New file.
10863 * target.c (decref_target): Remove process_stratum targets from
10864 the connection list.
10865 (target_stack::push): Add process_stratum targets to the
10866 connection list.
10867
10868 2020-01-10 Pedro Alves <palves@redhat.com>
10869
10870 Revert:
10871 2016-04-12 Pedro Alves <palves@redhat.com>
10872 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10873 Remove references to name.
10874 * serial.h (struct serial) <name>: Delete.
10875
10876 2020-01-10 Pedro Alves <palves@redhat.com>
10877
10878 * gdbarch-selftests.c (register_to_value_test): Remove "target
10879 already pushed" check.
10880
10881 2020-01-10 Pedro Alves <palves@redhat.com>
10882 John Baldwin <jhb@FreeBSD.org>
10883
10884 * aarch64-linux-nat.c
10885 (aarch64_linux_nat_target::thread_architecture): Adjust.
10886 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10887 (task_command_1): Likewise.
10888 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10889 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10890 (aix_thread_target::store_registers)
10891 (aix_thread_target::thread_alive): Adjust.
10892 * amd64-fbsd-tdep.c: Include "inferior.h".
10893 (amd64fbsd_get_thread_local_address): Pass down target.
10894 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10895 thread's gdbarch instead of target_gdbarch.
10896 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10897 get_last_target_status.
10898 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10899 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10900 inferiors.
10901 (update_inserted_breakpoint_locations): Skip if inferiors with no
10902 execution.
10903 (update_global_location_list): When handling moribund locations,
10904 find representative inferior for location's pspace, and use thread
10905 count of its process_stratum target.
10906 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10907 * bsd-uthread.c (bsd_uthread_target::wait): Use
10908 as_process_stratum_target and adjust thread_change_ptid and
10909 add_thread calls.
10910 (bsd_uthread_target::update_thread_list): Use
10911 as_process_stratum_target and adjust find_thread_ptid,
10912 thread_change_ptid and add_thread calls.
10913 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10914 find_thread_ptid call.
10915 * corelow.c (add_to_thread_list): Adjust add_thread call.
10916 (core_target_open): Adjust add_thread_silent and thread_count
10917 calls.
10918 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10919 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10920 * event-top.c (async_disconnect): Pop targets from all inferiors.
10921 * exec.c (add_target_sections): Push exec target on all inferiors
10922 sharing the program space.
10923 (remove_target_sections): Remove the exec target from all
10924 inferiors sharing the program space.
10925 (exec_on_vfork): New.
10926 * exec.h (exec_on_vfork): Declare.
10927 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10928 Pass it down.
10929 (fbsd_nat_target::update_thread_list): Adjust.
10930 (fbsd_nat_target::resume): Adjust.
10931 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10932 down.
10933 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10934 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10935 get_thread_arch_regcache call.
10936 * fork-child.c (gdb_startup_inferior): Pass target down to
10937 startup_inferior and set_executing.
10938 * gdbthread.h (struct process_stratum_target): Forward declare.
10939 (add_thread, add_thread_silent, add_thread_with_info)
10940 (in_thread_list): Add process_stratum_target parameter.
10941 (find_thread_ptid(inferior*, ptid_t)): New overload.
10942 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10943 parameter.
10944 (all_threads()): Delete overload.
10945 (all_threads, all_non_exited_threads): Add process_stratum_target
10946 parameter.
10947 (all_threads_safe): Use brace initialization.
10948 (thread_count): Add process_stratum_target parameter.
10949 (set_resumed, set_running, set_stop_requested, set_executing)
10950 (threads_are_executing, finish_thread_state): Add
10951 process_stratum_target parameter.
10952 (switch_to_thread): Use is_current_thread.
10953 * i386-fbsd-tdep.c: Include "inferior.h".
10954 (i386fbsd_get_thread_local_address): Pass down target.
10955 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10956 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10957 have_inferiors check.
10958 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10959 (inf_ptrace_target::attach): Adjust.
10960 * infcall.c (run_inferior_call): Adjust.
10961 * infcmd.c (run_command_1): Pass target to
10962 scoped_finish_thread_state.
10963 (proceed_thread_callback): Skip inferiors with no execution.
10964 (continue_command): Rename 'all_threads' local to avoid hiding
10965 'all_threads' function. Adjust get_last_target_status call.
10966 (prepare_one_step): Adjust set_running call.
10967 (signal_command): Use user_visible_resume_target. Compare thread
10968 pointers instead of inferior_ptid.
10969 (info_program_command): Adjust to pass down target.
10970 (attach_command): Mark target's 'thread_executing' flag.
10971 (stop_current_target_threads_ns): New, factored out from ...
10972 (interrupt_target_1): ... this. Switch inferior before making
10973 target calls.
10974 * inferior-iter.h
10975 (struct all_inferiors_iterator, struct all_inferiors_range)
10976 (struct all_inferiors_safe_range)
10977 (struct all_non_exited_inferiors_range): Filter on
10978 process_stratum_target too. Remove explicit.
10979 * inferior.c (inferior::inferior): Push dummy target on target
10980 stack.
10981 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10982 Add process_stratum_target parameter, and pass it down.
10983 (have_live_inferiors): Adjust.
10984 (switch_to_inferior_and_push_target): New.
10985 (add_inferior_command, clone_inferior_command): Handle
10986 "-no-connection" parameter. Use
10987 switch_to_inferior_and_push_target.
10988 (_initialize_inferior): Mention "-no-connection" option in
10989 the help of "add-inferior" and "clone-inferior" commands.
10990 * inferior.h: Include "process-stratum-target.h".
10991 (interrupt_target_1): Use bool.
10992 (struct inferior) <push_target, unpush_target, target_is_pushed,
10993 find_target_beneath, top_target, process_target, target_at,
10994 m_stack>: New.
10995 (discard_all_inferiors): Delete.
10996 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10997 (all_inferiors, all_non_exited_inferiors): Add
10998 process_stratum_target parameter.
10999 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11000 (target_last_proc_target): New global.
11001 (follow_fork_inferior): Push target on new inferior. Pass target
11002 to add_thread_silent. Call exec_on_vfork. Handle target's
11003 reference count.
11004 (follow_fork): Adjust get_last_target_status call. Also consider
11005 target.
11006 (follow_exec): Push target on new inferior.
11007 (struct execution_control_state) <target>: New field.
11008 (user_visible_resume_target): New.
11009 (do_target_resume): Call target_async.
11010 (resume_1): Set target's threads_executing flag. Consider resume
11011 target.
11012 (commit_resume_all_targets): New.
11013 (proceed): Also consider resume target. Skip threads of inferiors
11014 with no execution. Commit resumtion in all targets.
11015 (start_remote): Pass current inferior to wait_for_inferior.
11016 (infrun_thread_stop_requested): Consider target as well. Pass
11017 thread_info pointer to clear_inline_frame_state instead of ptid.
11018 (infrun_thread_thread_exit): Consider target as well.
11019 (random_pending_event_thread): New inferior parameter. Use it.
11020 (do_target_wait): Rename to ...
11021 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11022 down.
11023 (threads_are_resumed_pending_p, do_target_wait): New.
11024 (prepare_for_detach): Adjust calls.
11025 (wait_for_inferior): New inferior parameter. Handle it. Use
11026 do_target_wait_1 instead of do_target_wait.
11027 (fetch_inferior_event): Adjust. Switch to representative
11028 inferior. Pass target down.
11029 (set_last_target_status): Add process_stratum_target parameter.
11030 Save target in global.
11031 (get_last_target_status): Add process_stratum_target parameter and
11032 handle it.
11033 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11034 (context_switch): Check inferior_ptid == null_ptid before calling
11035 inferior_thread().
11036 (get_inferior_stop_soon): Pass down target.
11037 (wait_one): Rename to ...
11038 (poll_one_curr_target): ... this.
11039 (struct wait_one_event): New.
11040 (wait_one): New.
11041 (stop_all_threads): Adjust.
11042 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11043 event's target.
11044 (switch_back_to_stepped_thread): Also consider target.
11045 (print_stop_event): Update.
11046 (normal_stop): Update. Also consider the resume target.
11047 * infrun.h (wait_for_inferior): Remove declaration.
11048 (user_visible_resume_target): New declaration.
11049 (get_last_target_status, set_last_target_status): New
11050 process_stratum_target parameter.
11051 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11052 process_stratum_target parameter, and use it.
11053 (clear_inline_frame_state (thread_info*)): New.
11054 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11055 process_stratum_target parameter.
11056 (clear_inline_frame_state (thread_info*)): Declare.
11057 * linux-fork.c (delete_checkpoint_command): Pass target down to
11058 find_thread_ptid.
11059 (checkpoint_command): Adjust.
11060 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11061 instead of just tweaking inferior_ptid.
11062 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11063 (exit_lwp): Pass target down to find_thread_ptid.
11064 (attach_proc_task_lwp_callback): Pass target down to
11065 add_thread/set_running/set_executing.
11066 (linux_nat_target::attach): Pass target down to
11067 thread_change_ptid.
11068 (get_detach_signal): Pass target down to find_thread_ptid.
11069 Consider last target status's target.
11070 (linux_resume_one_lwp_throw, resume_lwp)
11071 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11072 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11073 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11074 (linux_nat_target::async_wait_fd): New.
11075 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11076 target down.
11077 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11078 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11079 * linux-thread-db.c (struct thread_db_info::process_target): New
11080 field.
11081 (add_thread_db_info): Save target.
11082 (get_thread_db_info): New process_stratum_target parameter. Also
11083 match target.
11084 (delete_thread_db_info): New process_stratum_target parameter.
11085 Also match target.
11086 (thread_from_lwp): Adjust to pass down target.
11087 (thread_db_notice_clone): Pass down target.
11088 (check_thread_db_callback): Pass down target.
11089 (try_thread_db_load_1): Always push the thread_db target.
11090 (try_thread_db_load, record_thread): Pass target down.
11091 (thread_db_target::detach): Pass target down. Always unpush the
11092 thread_db target.
11093 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11094 target down. Always unpush the thread_db target.
11095 (find_new_threads_callback, thread_db_find_new_threads_2)
11096 (thread_db_target::update_thread_list): Pass target down.
11097 (thread_db_target::pid_to_str): Pass current inferior down.
11098 (thread_db_target::get_thread_local_address): Pass target down.
11099 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11100 target down.
11101 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11102 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11103 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11104 (procfs_init_inferior): Rename to ...
11105 (procfs_target::procfs_init_inferior): ... this and adjust.
11106 (procfs_target::create_inferior, procfs_notice_thread)
11107 (procfs_do_thread_registers): Adjust.
11108 * ppc-fbsd-tdep.c: Include "inferior.h".
11109 (ppcfbsd_get_thread_local_address): Pass down target.
11110 * proc-service.c (ps_xfer_memory): Switch current inferior and
11111 program space as well.
11112 (get_ps_regcache): Pass target down.
11113 * process-stratum-target.c
11114 (process_stratum_target::thread_address_space)
11115 (process_stratum_target::thread_architecture): Pass target down.
11116 * process-stratum-target.h
11117 (process_stratum_target::threads_executing): New field.
11118 (as_process_stratum_target): New.
11119 * ravenscar-thread.c
11120 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11121 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11122 down.
11123 * record-btrace.c (record_btrace_target::info_record): Adjust.
11124 (record_btrace_target::record_method)
11125 (record_btrace_target::record_is_replaying)
11126 (record_btrace_target::fetch_registers)
11127 (get_thread_current_frame_id, record_btrace_target::resume)
11128 (record_btrace_target::wait, record_btrace_target::stop): Pass
11129 target down.
11130 * record-full.c (record_full_wait_1): Switch to event thread.
11131 Pass target down.
11132 * regcache.c (regcache::regcache)
11133 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11134 process_stratum_target parameter and handle it.
11135 (current_thread_target): New global.
11136 (get_thread_regcache): Add process_stratum_target parameter and
11137 handle it. Switch inferior before calling target method.
11138 (get_thread_regcache): Pass target down.
11139 (get_thread_regcache_for_ptid): Pass target down.
11140 (registers_changed_ptid): Add process_stratum_target parameter and
11141 handle it.
11142 (registers_changed_thread, registers_changed): Pass target down.
11143 (test_get_thread_arch_aspace_regcache): New.
11144 (current_regcache_test): Define a couple local test_target_ops
11145 instances and use them for testing.
11146 (readwrite_regcache): Pass process_stratum_target parameter.
11147 (cooked_read_test, cooked_write_test): Pass mock_target down.
11148 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11149 (get_thread_arch_aspace_regcache): Add process_stratum_target
11150 parameter.
11151 (regcache::target): New method.
11152 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11153 (regcache::registers_changed_ptid): Add process_stratum_target
11154 parameter.
11155 (regcache::m_target): New field.
11156 (registers_changed_ptid): Add process_stratum_target parameter.
11157 * remote.c (remote_state::supports_vCont_probed): New field.
11158 (remote_target::async_wait_fd): New method.
11159 (remote_unpush_and_throw): Add remote_target parameter.
11160 (get_current_remote_target): Adjust.
11161 (remote_target::remote_add_inferior): Push target.
11162 (remote_target::remote_add_thread)
11163 (remote_target::remote_notice_new_inferior)
11164 (get_remote_thread_info): Pass target down.
11165 (remote_target::update_thread_list): Skip threads of inferiors
11166 bound to other targets. (remote_target::close): Don't discard
11167 inferiors. (remote_target::add_current_inferior_and_thread)
11168 (remote_target::process_initial_stop_replies)
11169 (remote_target::start_remote)
11170 (remote_target::remote_serial_quit_handler): Pass down target.
11171 (remote_target::remote_unpush_target): New remote_target
11172 parameter. Unpush the target from all inferiors.
11173 (remote_target::remote_unpush_and_throw): New remote_target
11174 parameter. Pass it down.
11175 (remote_target::open_1): Check whether the current inferior has
11176 execution instead of checking whether any inferior is live. Pass
11177 target down.
11178 (remote_target::remote_detach_1): Pass down target. Use
11179 remote_unpush_target.
11180 (extended_remote_target::attach): Pass down target.
11181 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11182 (remote_target::append_resumption): Pass down target.
11183 (remote_target::append_pending_thread_resumptions)
11184 (remote_target::remote_resume_with_hc, remote_target::resume)
11185 (remote_target::commit_resume): Pass down target.
11186 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11187 (remote_target::interrupt_query)
11188 (remote_target::remove_new_fork_children)
11189 (remote_target::check_pending_events_prevent_wildcard_vcont)
11190 (remote_target::remote_parse_stop_reply)
11191 (remote_target::process_stop_reply): Pass down target.
11192 (first_remote_resumed_thread): New remote_target parameter. Pass
11193 it down.
11194 (remote_target::wait_as): Pass down target.
11195 (unpush_and_perror): New remote_target parameter. Pass it down.
11196 (remote_target::readchar, remote_target::remote_serial_write)
11197 (remote_target::getpkt_or_notif_sane_1)
11198 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11199 down target.
11200 (remote_target::mourn_inferior): Pass down target. Use
11201 remote_unpush_target.
11202 (remote_target::core_of_thread)
11203 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11204 (remote_target::pid_to_exec_file)
11205 (remote_target::thread_handle_to_thread_info): Pass down target.
11206 (remote_target::async_wait_fd): New.
11207 * riscv-fbsd-tdep.c: Include "inferior.h".
11208 (riscv_fbsd_get_thread_local_address): Pass down target.
11209 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11210 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11211 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11212 Adjust.
11213 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11214 * solib-svr4.c (enable_break): Pass down target.
11215 * spu-multiarch.c (parse_spufs_run): Pass down target.
11216 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11217 * target-delegates.c: Regenerate.
11218 * target.c (g_target_stack): Delete.
11219 (current_top_target): Return the current inferior's top target.
11220 (target_has_execution_1): Refer to the passed-in inferior's top
11221 target.
11222 (target_supports_terminal_ours): Check whether the initial
11223 inferior was already created.
11224 (decref_target): New.
11225 (target_stack::push): Incref/decref the target.
11226 (push_target, push_target, unpush_target): Adjust.
11227 (target_stack::unpush): Defref target.
11228 (target_is_pushed): Return bool. Adjust to refer to the current
11229 inferior's target stack.
11230 (dispose_inferior): Delete, and inline parts ...
11231 (target_preopen): ... here. Only dispose of the current inferior.
11232 (target_detach): Hold strong target reference while detaching.
11233 Pass target down.
11234 (target_thread_name): Add assertion.
11235 (target_resume): Pass down target.
11236 (target_ops::beneath, find_target_at): Adjust to refer to the
11237 current inferior's target stack.
11238 (get_dummy_target): New.
11239 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11240 has a thread running.
11241 (initialize_targets): Rename to ...
11242 (_initialize_target): ... this.
11243 * target.h: Include "gdbsupport/refcounted-object.h".
11244 (struct target_ops): Inherit refcounted_object.
11245 (target_ops::shortname, target_ops::longname): Make const.
11246 (target_ops::async_wait_fd): New method.
11247 (decref_target): Declare.
11248 (struct target_ops_ref_policy): New.
11249 (target_ops_ref): New typedef.
11250 (get_dummy_target): Declare function.
11251 (target_is_pushed): Return bool.
11252 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11253 (all_matching_threads_iterator::all_matching_threads_iterator):
11254 Handle filter target.
11255 * thread-iter.h (struct all_matching_threads_iterator, struct
11256 all_matching_threads_range, class all_non_exited_threads_range):
11257 Filter by target too. Remove explicit.
11258 * thread.c (threads_executing): Delete.
11259 (inferior_thread): Pass down current inferior.
11260 (clear_thread_inferior_resources): Pass down thread pointer
11261 instead of ptid_t.
11262 (add_thread_silent, add_thread_with_info, add_thread): Add
11263 process_stratum_target parameter. Use it for thread and inferior
11264 searches.
11265 (is_current_thread): New.
11266 (thread_info::deletable): Use it.
11267 (find_thread_ptid, thread_count, in_thread_list)
11268 (thread_change_ptid, set_resumed, set_running): New
11269 process_stratum_target parameter. Pass it down.
11270 (set_executing): New process_stratum_target parameter. Pass it
11271 down. Adjust reference to 'threads_executing'.
11272 (threads_are_executing): New process_stratum_target parameter.
11273 Adjust reference to 'threads_executing'.
11274 (set_stop_requested, finish_thread_state): New
11275 process_stratum_target parameter. Pass it down.
11276 (switch_to_thread): Also match inferior.
11277 (switch_to_thread): New process_stratum_target parameter. Pass it
11278 down.
11279 (update_threads_executing): Reimplement.
11280 * top.c (quit_force): Pop targets from all inferior.
11281 (gdb_init): Don't call initialize_targets.
11282 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11283 Declare.
11284 (windows_add_thread, windows_delete_thread): Adjust.
11285 (get_windows_debug_event): Rename to ...
11286 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11287 * tracefile-tfile.c (tfile_target_open): Pass down target.
11288 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11289 Forward declare.
11290 (switch_to_thread): Add process_stratum_target parameter.
11291 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11292 parameter. Use it.
11293 (mi_on_resume): Pass target down.
11294 * nat/fork-inferior.c (startup_inferior): Add
11295 process_stratum_target parameter. Pass it down.
11296 * nat/fork-inferior.h (startup_inferior): Add
11297 process_stratum_target parameter.
11298 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11299
11300 2020-01-10 Pedro Alves <palves@redhat.com>
11301
11302 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11303 directly. Instead find the first thread in the thread list and
11304 use switch_to_thread.
11305
11306 2020-01-10 Pedro Alves <palves@redhat.com>
11307
11308 * remote.c (remote_target::remote_add_inferior): Don't bind a
11309 process to the current inferior if the current inferior is already
11310 bound to a process.
11311
11312 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11313 Pedro Alves <palves@redhat.com>
11314
11315 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11316 If no process is specified, return null_ptid instead of
11317 inferior_ptid.
11318 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11319 TARGET_WAITKIND_SIGNALLED with no pid.
11320
11321 2020-01-10 Pedro Alves <palves@redhat.com>
11322
11323 * remote.c (first_remote_resumed_thread): New.
11324 (remote_target::wait_as): Use it as default event_ptid instead of
11325 inferior_ptid.
11326
11327 2020-01-10 Pedro Alves <palves@redhat.com>
11328
11329 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11330
11331 2020-01-10 Pedro Alves <palves@redhat.com>
11332
11333 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11334 not -1.
11335
11336 2020-01-10 Pedro Alves <palves@redhat.com>
11337
11338 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11339 ptid to get_last_target_status.
11340 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11341 ptid to get_last_target_status.
11342 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11343 get_last_target_status.
11344 (info_program_command): Don't pass a target_waitstatus to
11345 get_last_target_status.
11346 * infrun.c (init_wait_for_inferior): Use
11347 nullify_last_target_wait_ptid.
11348 (get_last_target_status): Handle nullptr arguments.
11349 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11350 (print_stop_event): Don't pass a ptid to get_last_target_status.
11351 (normal_stop): Don't pass a ptid to get_last_target_status.
11352 * infrun.h (get_last_target_status, set_last_target_status): Move
11353 comments here and update.
11354 (nullify_last_target_wait_ptid): Declare.
11355 * linux-fork.c (fork_load_infrun_state): Remove local extern
11356 declaration of nullify_last_target_wait_ptid.
11357 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11358 to get_last_target_status.
11359
11360 2020-01-10 Pedro Alves <palves@redhat.com>
11361
11362 * gdbthread.h (scoped_restore_current_thread)
11363 <dont_restore, restore, m_dont_restore>: Declare.
11364 * thread.c (thread_alive): Add assertion. Return bool.
11365 (switch_to_thread_if_alive): New.
11366 (prune_threads): Switch inferior/thread.
11367 (print_thread_info_1): Switch thread before calling target methods.
11368 (scoped_restore_current_thread::restore): New, factored out from
11369 ...
11370 (scoped_restore_current_thread::~scoped_restore_current_thread):
11371 ... this.
11372 (scoped_restore_current_thread::scoped_restore_current_thread):
11373 Add assertion.
11374 (thread_apply_all_command, thread_select): Use
11375 switch_to_thread_if_alive.
11376 * infrun.c (proceed, restart_threads, handle_signal_stop)
11377 (switch_back_to_stepped_thread): Switch current thread before
11378 calling target methods.
11379
11380 2020-01-10 Pedro Alves <palves@redhat.com>
11381
11382 * inferior.c (switch_to_inferior_no_thread): New function,
11383 factored out from ...
11384 (inferior_command): ... here.
11385 * inferior.h (switch_to_inferior_no_thread): Declare.
11386 * mi/mi-main.c (run_one_inferior): Use
11387 switch_to_inferior_no_thread.
11388
11389 2020-01-10 Pedro Alves <palves@redhat.com>
11390
11391 * infcmd.c (kill_command): Remove dead code.
11392
11393 2020-01-10 Pedro Alves <palves@redhat.com>
11394
11395 * remote.c (remote_target::mourn_inferior): No longer check
11396 whether the target is running.
11397
11398 2020-01-10 Pedro Alves <palves@redhat.com>
11399
11400 * corelow.c (core_target::has_execution): Change parameter type to
11401 inferior pointer.
11402 * inferior.c (number_of_live_inferiors): Use
11403 inferior::has_execution instead of target_has_execution_1.
11404 * inferior.h (inferior::has_execution): New.
11405 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11406 inferior::has_execution instead of target_has_execution_1.
11407 * process-stratum-target.c
11408 (process_stratum_target::has_execution): Change parameter type to
11409 inferior pointer. Check the inferior's PID instead of
11410 inferior_ptid.
11411 * process-stratum-target.h
11412 (process_stratum_target::has_execution): Change parameter type to
11413 inferior pointer.
11414 * record-full.c (record_full_core_target::has_execution): Change
11415 parameter type to inferior pointer.
11416 * target.c (target_has_execution_1): Change parameter type to
11417 inferior pointer.
11418 (target_has_execution_current): Adjust.
11419 * target.h (target_ops::has_execution): Change parameter type to
11420 inferior pointer.
11421 (target_has_execution_1): Change parameter type to inferior
11422 pointer. Change return type to bool.
11423 * tracefile.h (tracefile_target::has_execution): Change parameter
11424 type to inferior pointer.
11425
11426 2020-01-10 Pedro Alves <palves@redhat.com>
11427
11428 * exceptions.c (print_flush): Remove current_top_target() check.
11429
11430 2020-01-10 Pedro Alves <palves@redhat.com>
11431
11432 * remote.c (show_remote_exec_file): Show the current inferior's
11433 exec-file instead of the command variable's value.
11434
11435 2020-01-10 Pedro Alves <palves@redhat.com>
11436
11437 * record-full.c (record_full_resume_ptid): New global.
11438 (record_full_target::resume): Set it.
11439 (record_full_wait_1): Use record_full_resume_ptid instead of
11440 inferior_ptid.
11441
11442 2020-01-10 Pedro Alves <palves@redhat.com>
11443
11444 * gdbthread.h (scoped_restore_current_thread)
11445 <dont_restore, restore, m_dont_restore>: Declare.
11446 * thread.c (thread_alive): Add assertion. Return bool.
11447 (switch_to_thread_if_alive): New.
11448 (prune_threads): Switch inferior/thread.
11449 (print_thread_info_1): Switch thread before calling target methods.
11450 (scoped_restore_current_thread::restore): New, factored out from
11451 ...
11452 (scoped_restore_current_thread::~scoped_restore_current_thread):
11453 ... this.
11454 (scoped_restore_current_thread::scoped_restore_current_thread):
11455 Add assertion.
11456 (thread_apply_all_command, thread_select): Use
11457 switch_to_thread_if_alive.
11458
11459 2020-01-10 George Barrett <bob@bob131.so>
11460
11461 * stap-probe.c (stap_modify_semaphore): Don't check for null
11462 semaphores.
11463 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11464 for null semaphores.
11465
11466 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11467
11468 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11469 all source windows, and maintain horizontal scroll status while
11470 doing so.
11471
11472 2020-01-09 Tom Tromey <tom@tromey.com>
11473
11474 PR tui/18932:
11475 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11476 update_source_window, not print_source_lines.
11477
11478 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11479
11480 * tui/tui.c (tui_enable): Register tui hooks after calling
11481 tui_display_main.
11482
11483 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11484
11485 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11486
11487 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11488
11489 * thread.c (print_thread_info_1): Fix indentation.
11490
11491 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11492
11493 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11494 unique_xmalloc_ptr outside the if to always free the demangled name.
11495
11496 2020-01-08 Tom Tromey <tromey@adacore.com>
11497
11498 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11499 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11500 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11501 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11502 Remove.
11503 (section_offsets): New typedef.
11504 * symtab.c (fixup_section, get_msymbol_address): Update.
11505 * symmisc.c (dump_msymbols): Update.
11506 * symfile.h (relative_addr_info_to_section_offsets)
11507 (symfile_map_offsets_to_segments): Update.
11508 * symfile.c (build_section_addr_info_from_objfile)
11509 (init_objfile_sect_indices): Update.
11510 (struct place_section_arg): Change type of "offsets".
11511 (place_section): Update.
11512 (relative_addr_info_to_section_offsets): Change type of
11513 "section_offsets". Remove "num_sections" parameter.
11514 (default_symfile_offsets, syms_from_objfile_1)
11515 (set_objfile_default_section_offset): Update.
11516 (reread_symbols): No need to preserve section offsets by hand.
11517 (symfile_map_offsets_to_segments): Change type of "offsets".
11518 * stap-probe.c (relocate_address): Update.
11519 * stabsread.h (process_one_symbol): Update.
11520 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11521 (solib_target_relocate_section_addresses): Update.
11522 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11523 Update.
11524 * solib-frv.c (frv_relocate_main_executable): Update.
11525 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11526 * solib-aix.c (solib_aix_get_section_offsets): Change return
11527 type.
11528 (solib_aix_solib_create_inferior_hook): Update.
11529 * remote.c (remote_target::get_offsets): Update.
11530 * psymtab.c (find_pc_sect_psymtab): Update.
11531 * psympriv.h (struct partial_symbol) <address, text_low,
11532 text_high>: Update.
11533 * objfiles.h (obj_section_offset): Update.
11534 (struct objfile) <section_offsets>: Change type.
11535 <num_sections>: Remove.
11536 (objfile_relocate): Update.
11537 * objfiles.c (entry_point_address_query): Update
11538 (relocate_one_symbol): Change type of "section_offsets".
11539 (objfile_relocate1, objfile_relocate1): Change type of
11540 "new_offsets".
11541 (objfile_rebase1): Update.
11542 * mipsread.c (mipscoff_symfile_read): Update.
11543 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11544 parameter.
11545 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11546 (parse_external, psymtab_to_symtab_1): Update.
11547 * machoread.c (macho_symfile_offsets): Update.
11548 * ia64-tdep.c (ia64_find_unwind_table): Update.
11549 * hppa-tdep.c (read_unwind_info): Update.
11550 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11551 * dwarf2read.c (create_addrmap_from_index)
11552 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11553 (process_psymtab_comp_unit_reader, add_partial_symbol)
11554 (add_partial_subprogram, process_full_comp_unit)
11555 (read_file_scope, read_func_scope, read_lexical_block_scope)
11556 (read_call_site_scope, dwarf2_rnglists_process)
11557 (dwarf2_ranges_process, dwarf2_ranges_read)
11558 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11559 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11560 Update.
11561 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11562 Update.
11563 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11564 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11565 (process_one_symbol): Change type of "section_offsets".
11566 * ctfread.c (get_objfile_text_range): Update.
11567 * coffread.c (coff_symtab_read, enter_linenos)
11568 (process_coff_symbol): Update.
11569 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11570 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11571
11572 2020-01-08 Tom Tromey <tromey@adacore.com>
11573
11574 * dwarf2read.c (parse_macro_definition): Use std::string.
11575 (parse_macro_definition): Likewise.
11576
11577 2020-01-08 Tom Tromey <tromey@adacore.com>
11578
11579 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11580 (ATTR_ALLOC_CHUNK): Remove.
11581
11582 2020-01-08 Tom Tromey <tromey@adacore.com>
11583
11584 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11585
11586 2020-01-08 Tom Tromey <tromey@adacore.com>
11587
11588 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11589 (dwarf2_compute_name, open_dwo_file): Likewise.
11590 (process_enumeration_scope): Use std::vector.
11591 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11592 (partial_die_info::fixup, dwarf2_start_subfile)
11593 (guess_full_die_structure_name, dwarf2_name): Likewise.
11594 (determine_prefix): Update.
11595 (guess_full_die_structure_name): Make return type const.
11596 (partial_die_full_name): Return unique_xmalloc_ptr.
11597 (DW_FIELD_ALLOC_CHUNK): Remove.
11598
11599 2020-01-07 Tom Tromey <tromey@adacore.com>
11600
11601 PR build/24937:
11602 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11603
11604 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11605
11606 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11607
11608 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11609
11610 * stack.c (print_frame_info): Move disassemble_next_line code
11611 inside source_print block.
11612
11613 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11614
11615 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11616 gdb/signals.h, as we are now using native signal symbols.
11617
11618 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11619
11620 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11621 overflow by an early check of content vs threshold.
11622 * tui/tui-source.c (tui_source_window::line_is_displayed):
11623 Likewise.
11624
11625 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11626
11627 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11628
11629 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11630
11631 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11632 export table if no section contains it's RVA.
11633
11634 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11635
11636 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11637
11638 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11639
11640 * source.c (print_source_lines_base): Set last_line_listed.
11641
11642 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11643
11644 * tui/tui-disasm.c: Remove trailing spaces.
11645
11646 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11647 Pedro Alves <palves@redhat.com>
11648
11649 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11650 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11651 (windows_gdb_signal_to_target): New function, uses the above
11652 enumeration to convert GDB internal signal codes to equivalent
11653 Windows codes.
11654 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11655 * windows-nat.c: Include "gdb_wait.h".
11656 (get_windows_debug_event): Extract the fatal exception from the
11657 exit status and convert to the equivalent Posix signal number.
11658 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11659 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11660 * gdbsupport/gdb_wait.c: New file, implements
11661 windows_status_to_termsig.
11662 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11663 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11664
11665 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11666
11667 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11668 show_layout.
11669
11670 2020-01-05 Luis Machado <luis.machado@linaro.org>
11671
11672 * aarch64-linux-nat.c
11673 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11674 and bfd_mach_aarch64.
11675
11676 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11677
11678 * ui-file.c (stdio_file::can_emit_style_escape)
11679 (tee_file::can_emit_style_escape): Ensure style is used also on
11680 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11681 to gdb_stdout.
11682 * main.c (set_gdb_data_directory): Use file style to output the
11683 warning that the given pathname is not a directory.
11684 * top.c (show_history_filename, gdb_safe_append_history)
11685 (show_gdb_datadir): Use file style.
11686
11687 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11688
11689 * solib-target.c (struct lm_info_target):
11690 Change offsets to be a unique_xmalloc_ptr.
11691 (solib_target_relocate_section_addresses): Update.
11692
11693 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11694
11695 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11696
11697 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11698
11699 * MAINTAINERS (Write After Approval): Add myself.
11700
11701 2020-01-02 Luis Machado <luis.machado@linaro.org>
11702
11703 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11704 Cell BE architecture.
11705 * target.h (struct target_ops) <thread_architecture>: Likewise.
11706
11707 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11708
11709 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11710
11711 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11712
11713 * MAINTAINERS (Write After Approval): Add myself.
11714
11715 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11716
11717 * gdbarch.sh: Update copyright year range of generated files.
11718
11719 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11720
11721 Update copyright year range in all GDB files.
11722
11723 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11724
11725 * copyright.py: Convert to Python 3.
11726
11727 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11728
11729 * copyright.py: Adapt after move of gnulib directory from gdb
11730 directory to toplevel directory.
11731
11732 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11733
11734 * copyright.py (main): Exit if run from the wrong directory.
11735
11736 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11737
11738 * top.c (print_gdb_version): Change copyright year to 2020.
11739
11740 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11741
11742 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11743
11744 For older changes see ChangeLog-2019.
11745 \f
11746 Local Variables:
11747 mode: change-log
11748 left-margin: 8
11749 fill-column: 74
11750 version-control: never
11751 coding: utf-8
11752 End:
This page took 0.25839 seconds and 5 git commands to generate.