]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
[gdb/symtab] Handle invalid partial DIE reference
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-08-04 Tom de Vries <tdevries@suse.de>
2
3 PR symtab/23270
4 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5 Error.
6
7 2020-08-03 John Baldwin <jhb@FreeBSD.org>
8
9 * syscalls/freebsd.xml: Regenerate.
10
11 2020-08-03 John Baldwin <jhb@FreeBSD.org>
12
13 * syscalls/update-freebsd.sh: Fix usage and year range.
14
15 2020-08-03 Tom de Vries <tdevries@suse.de>
16
17 PR symtab/26333
18 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
19 DW_LNE_lo_user/DW_LNE_hi_user range.
20
21 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
22
23 PR ada/26318
24 * ada-lang.c (ada_modulus): Return 0 if property is not of const
25 kind.
26
27 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
28
29 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
30
31 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
32
33 * breakpoint.c (set_breakpoint_condition): Update the condition
34 expressions after checking that the input condition string parses
35 successfully and does not contain junk at the end.
36
37 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
38
39 * breakpoint.c (set_breakpoint_condition): Update the
40 condition string after parsing the new condition successfully.
41
42 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
43
44 * proc-api.c (_STRUCTURED_PROC): Don't define.
45 * proc-events.c: Likewise.
46 * proc-flags.c: Likewise.
47 * proc-why.c: Likewise.
48 * procfs.c: Likewise.
49
50 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
51 * configure, config.in: Regenerate.
52
53 2020-07-30 Tom de Vries <tdevries@suse.de>
54
55 PR build/26320
56 * ui-style.h (struct ui_file_style::color): Wrap m_value and
57 m_red/m_green/m_blue in a union.
58
59 2020-07-29 Tom de Vries <tdevries@suse.de>
60
61 PR tdep/26280
62 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
63
64 2020-07-28 Tom Tromey <tromey@adacore.com>
65
66 PR symtab/26270:
67 * symtab.h (find_pc_partial_function_sym): Declare.
68 * cli/cli-cmds.c (disassemble_command): Use
69 find_pc_partial_function_sym. Check asm_demangle.
70 * blockframe.c (cache_pc_function_sym): New global.
71 (cache_pc_function_name): Remove.
72 (clear_pc_function_cache): Update.
73 (find_pc_partial_function_sym): New function, from
74 find_pc_partial_function.
75 (find_pc_partial_function): Rewrite using
76 find_pc_partial_function_sym.
77
78 2020-07-28 Tom Tromey <tromey@adacore.com>
79
80 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
81 help. Add usage.
82
83 2020-07-28 Tom Tromey <tromey@adacore.com>
84
85 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
86 <DW_OP_GNU_variable_value>: Cast to address type.
87
88 2020-07-28 Kamil Rytarowski <n54@gmx.com>
89
90 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
91 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
92 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
93 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
94 (nbsd_get_siginfo_type): New.
95 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
96 (_initialize_nbsd_tdep): New.
97
98 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
99
100 PR binutils/26301
101 * configure: Regenerated.
102
103 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
104
105 PR binutils/26301
106 * configure: Regenerated.
107
108 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
109
110 * python/py-frame.c: Remove 'user-regs.h' include.
111 (frapy_read_register): Rewrite to make use of
112 gdbpy_parse_register_id.
113 * python/py-registers.c (gdbpy_parse_register_id): New function,
114 moved here from python/py-unwind.c. Updated the return type, and
115 also accepts register descriptor objects.
116 * python/py-unwind.c: Remove 'user-regs.h' include.
117 (pyuw_parse_register_id): Moved to python/py-registers.c.
118 (unwind_infopy_add_saved_register): Update to use
119 gdbpy_parse_register_id.
120 (pending_framepy_read_register): Likewise.
121 * python/python-internal.h (gdbpy_parse_register_id): Declare.
122
123 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
124
125 * python/py-registers.c: Add 'user-regs.h' include.
126 (register_descriptor_iter_find): New function.
127 (register_descriptor_iterator_object_methods): New static global
128 methods array.
129 (register_descriptor_iterator_object_type): Add pointer to methods
130 array.
131
132 2020-07-27 John Baldwin <jhb@FreeBSD.org>
133
134 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
135 for all architectures on FreeBSD 11.3 and later.
136
137 2020-07-27 Tom Tromey <tromey@adacore.com>
138
139 * gcore.h (load_corefile): Don't declare.
140
141 2020-07-27 Tom de Vries <tdevries@suse.de>
142
143 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
144 * config.in: Regenerate.
145 * configure: Regenerate.
146
147 2020-07-26 Eli Zaretskii <eliz@gnu.org>
148
149 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
150 ws2tcpip.h. When checking whether socklen_t type is defined, use
151 ws2tcpip.h if it is available and sys/socket.h isn't.
152 * configure: Regenerate.
153 * config.in: Regenerate.
154
155 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
156
157 PR fortran/23051
158 PR fortran/26139
159 * valops.c (value_ind): Pass address to
160 readjust_indirect_value_type.
161 * value.c (readjust_indirect_value_type): Make parameter
162 non-const, and add extra address parameter. Resolve original type
163 before using it.
164 * value.h (readjust_indirect_value_type): Update function
165 signature and comment.
166
167 2020-07-25 Tom de Vries <tdevries@suse.de>
168
169 PR symtab/26243
170 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
171 entries.
172
173 2020-07-24 Aaron Merey <amerey@redhat.com>
174
175 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
176 * configure: Rebuild.
177
178 2020-07-23 Kevin Buettner <kevinb@redhat.com>
179
180 PR corefiles/26294
181 * corelow.c (_initialize_corelow): Add period to help text
182 for "maintenance print core-file-backed-mappings".
183
184 2020-07-23 Pedro Alves <pedro@palves.net>
185
186 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
187 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
188 meanwhile.
189 * frame.c (frame_cache_generation, get_frame_cache_generation):
190 New.
191 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
192 (get_prev_frame_if_no_cycle): On exception, don't touch
193 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
194 * frame.h (get_frame_cache_generation): Declare.
195
196 2020-07-23 Tom de Vries <tdevries@suse.de>
197
198 PR tui/26282
199 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
200 New default constructor.
201
202 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
203
204 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
205 exclude non-statement entries.
206
207 2020-07-22 Kevin Buettner <kevinb@redhat.com>
208
209 * NEWS (New commands): Mention new command
210 "maintenance print core-file-backed-mappings".
211
212 2020-07-22 Kevin Buettner <kevinb@redhat.com>
213
214 * corelow.c (gdbcmd.h): Include.
215 (core_target::info_proc_mappings): New method.
216 (get_current_core_target): New function.
217 (maintenance_print_core_file_backed_mappings): New function.
218 (_initialize_corelow): Add core-file-backed-mappings to
219 "maint print" commands.
220
221 2020-07-22 Kevin Buettner <kevinb@redhat.com>
222
223 * linux-tdep.c (dump_note_entry_p): New function.
224 (linux_dump_mapping_p_ftype): New typedef.
225 (linux_find_memory_regions_full): Add new parameter,
226 should_dump_mapping_p.
227 (linux_find_memory_regions): Adjust call to
228 linux_find_memory_regions_full.
229 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
230 call to linux_find_memory_regions_full.
231
232 2020-07-22 Kevin Buettner <kevinb@redhat.com>
233
234 * corelow.c (solist.h, unordered_map): Include.
235 (class core_target): Add field m_core_file_mappings and
236 method build_file_mappings.
237 (core_target::core_target): Call build_file_mappings.
238 (core_target::~core_target): Free memory associated with
239 m_core_file_mappings.
240 (core_target::build_file_mappings): New method.
241 (core_target::xfer_partial): Use m_core_file_mappings
242 for memory transfers.
243 * linux-tdep.c (linux_read_core_file_mappings): New
244 function.
245 (linux_core_info_proc_mappings): Rewrite to use
246 linux_read_core_file_mappings.
247 (linux_init_abi): Register linux_read_core_file_mappings.
248
249 2020-07-22 Kevin Buettner <kevinb@redhat.com>
250
251 * arch-utils.c (default_read_core_file_mappings): New function.
252 * arch-utils.c (default_read_core_file_mappings): Declare.
253 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
254 * gdbarch.h, gdbarch.c: Regenerate.
255
256 2020-07-22 Kevin Buettner <kevinb@redhat.com>
257
258 PR corefiles/25631
259 * corelow.c (core_target:xfer_partial): Revise
260 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
261 case after first checking the stratum beneath the core
262 target.
263 (has_all_memory): Return true.
264 * target.c (raw_memory_xfer_partial): Revise comment
265 regarding use of has_all_memory.
266
267 2020-07-22 Kevin Buettner <kevinb@redhat.com>
268
269 * exec.h (section_table_xfer_memory): Revise declaration,
270 replacing section name parameter with an optional callback
271 predicate.
272 * exec.c (section_table_xfer_memory): Likewise.
273 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
274 of section_table_xfer_memory.
275
276 2020-07-22 Tom Tromey <tromey@adacore.com>
277
278 * mi/mi-cmd-stack.c (list_args_or_locals): Use
279 lookup_symbol_search_name.
280
281 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
282
283 * python/py-registers.c (gdbpy_register_object_data_init): Remove
284 redundant local variable.
285 (gdbpy_get_register_descriptor): Extract descriptor vector as a
286 reference, not pointer, update code accordingly.
287
288 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
289 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
290
291 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
292 * jit.c (jit_breakpoint_re_set_internal): Use the
293 `skip_jit_symbol_lookup` field.
294
295 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
296 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
297
298 * jit.c (jit_read_descriptor): Define the descriptor address once,
299 use twice.
300 (jit_breakpoint_deleted): Move the declaration of the loop variable
301 `iter` into the loop header.
302 (jit_breakpoint_re_set_internal): Move the declaration of the local
303 variable `objf_data` to the first point of definition.
304 (jit_event_handler): Move the declaration of local variables
305 `code_entry`, `entry_addr`, and `objf` to their first point of use.
306 Rename `objf` to `jited`.
307
308 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
309
310 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
311 Remove.
312 * jit.c (get_jiter_objfile_data): Update.
313
314 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
315 Simon Marchi <simon.marchi@polymtl.ca>
316
317 * jit.c (struct jit_program_space_data): Remove.
318 (jit_program_space_key): Remove.
319 (jiter_objfile_data::~jiter_objfile_data): Remove program space
320 stuff.
321 (get_jit_program_space_data): Remove.
322 (jit_breakpoint_deleted): Iterate on all of the program space's
323 objfiles.
324 (jit_inferior_init): Likewise.
325 (jit_breakpoint_re_set_internal): Likewise. Also change return
326 type to void.
327 (jit_breakpoint_re_set): Pass current_program_space to
328 jit_breakpoint_re_set_internal.
329
330 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
331
332 * jit.h (struct jiter_objfile_data) <cached_code_address,
333 jit_breakpoint>: Move to here from ...
334 * jit.c (jit_program_space_data): ... here.
335 (jiter_objfile_data::~jiter_objfile_data): Update.
336 (jit_breakpoint_deleted): Update.
337 (jit_breakpoint_re_set_internal): Update.
338
339 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
340
341 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
342 checks.
343 (jit_read_descriptor): Remove NULL check.
344 (jit_event_handler): Add an assertion.
345
346 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
347
348 * jit.h (struct jit_objfile_data): Split into...
349 (struct jiter_objfile_data): ... this ...
350 (struct jited_objfile_data): ... and this.
351 * objfiles.h (struct objfile) <jit_data>: Remove.
352 <jiter_data, jited_data>: New fields.
353 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
354 (jiter_objfile_data::~jiter_objfile_data): ... this.
355 (get_jit_objfile_data): Rename to ...
356 (get_jiter_objfile_data): ... this.
357 (add_objfile_entry): Update.
358 (jit_read_descriptor): Use get_jiter_objfile_data.
359 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
360 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
361 (jit_inferior_exit_hook): Use objfile's jited_data field.
362
363 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
364
365 * jit.h: Forward-declare `struct minimal_symbol`.
366 (struct jit_objfile_data): Migrate to here from jit.c; also add a
367 constructor, destructor, and an objfile* field.
368 * jit.c (jit_objfile_data): Remove.
369 (struct jit_objfile_data): Migrate from here to jit.h.
370 (jit_objfile_data::~jit_objfile_data): New destructor
371 implementation with code moved from free_objfile_data.
372 (free_objfile_data): Delete.
373 (get_jit_objfile_data): Update to use the jit_data field of objfile.
374 (jit_find_objf_with_entry_addr): Ditto.
375 (jit_inferior_exit_hook): Ditto.
376 (_initialize_jit): Remove the call to
377 register_objfile_data_with_cleanup.
378 * objfiles.h (struct objfile) <jit_data>: New field.
379
380 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
381
382 * jit.h: Forward-declare `struct objfile`.
383 (jit_event_handler): Add a second parameter, the JITer objfile.
384 * jit.c (jit_read_descriptor): Change the signature to take the
385 JITer objfile as an argument instead of the jit_program_space_data.
386 (jit_inferior_init): Update the call to jit_read_descriptor.
387 (jit_event_handler): Use the new JITer objfile argument when calling
388 jit_read_descriptor.
389 * breakpoint.c (handle_jit_event): Update the call to
390 jit_event_handler to pass the JITer objfile.
391
392 2020-07-21 John Baldwin <jhb@FreeBSD.org>
393
394 * gdbarch.c: Regenerate.
395 * gdbarch.h: Regenerate.
396 * gdbarch.sh (handle_segmentation_fault): Remove method.
397 * infrun.c (handle_segmentation_fault): Remove.
398 (print_signal_received_reason): Remove call to
399 handle_segmentation_fault.
400
401 2020-07-21 John Baldwin <jhb@FreeBSD.org>
402
403 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
404 Rename to sparc64_linux_report_signal_info and add siggnal
405 argument.
406 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
407 instead of sparc64_linux_handle_segmentation_fault.
408
409 2020-07-21 John Baldwin <jhb@FreeBSD.org>
410
411 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
412 i386_linux_report_signal_info instead of
413 i386_linux_handle_segmentation_fault.
414 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
415 to i386_linux_report_signal_info and add siggnal argument.
416 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
417 of i386_linux_handle_segmentation_fault.
418 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
419 to i386_linux_report_signal_info and add siggnal argument.
420
421 2020-07-21 John Baldwin <jhb@FreeBSD.org>
422
423 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
424 hook if present.
425
426 2020-07-21 John Baldwin <jhb@FreeBSD.org>
427
428 * gdbarch.c: Regenerate.
429 * gdbarch.h: Regenerate.
430 * gdbarch.sh (report_signal_info): New method.
431 * infrun.c (print_signal_received_reason): Invoke gdbarch
432 report_signal_info hook if present.
433
434 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
435
436 * python/py-registers.c : Add 'unordered_map' include.
437 (gdbpy_new_reggroup): Renamed to...
438 (gdbpy_get_reggroup): ...this. Update to only create register
439 group descriptors when needed.
440 (gdbpy_reggroup_iter_next): Update.
441
442 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
443
444 * python/py-registers.c (gdbpy_register_object_data): New static
445 global.
446 (gdbpy_register_object_data_init): New function.
447 (gdbpy_new_register_descriptor): Renamed to...
448 (gdbpy_get_register_descriptor): ...this, and update to reuse
449 existing register descriptors where possible.
450 (gdbpy_register_descriptor_iter_next): Update.
451 (gdbpy_initialize_registers): Register new gdbarch data.
452
453 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
454
455 * linux-nat.c (stopped_pids): Make static.
456
457 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
458
459 PR ada/26235
460 * gdbtypes.c (ada_discrete_type_low_bound,
461 ada_discrete_type_high_bound): Handle undefined bounds.
462
463 2020-07-21 Kamil Rytarowski <n54@gmx.com>
464
465 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
466 declaration.
467 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
468 function.
469
470 2020-07-20 John Baldwin <jhb@FreeBSD.org>
471
472 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
473 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
474 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
475 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
476 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
477 method.
478
479 2020-07-20 Ludovic Courtès <ludo@gnu.org>
480
481 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
482 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
483 which are deprecated in Guile 3.0.
484 * configure.ac (try_guile_versions): Add "guile-3.0".
485 * configure (try_guile_versions): Regenerate.
486 * NEWS: Update entry.
487
488 2020-07-20 Ludovic Courtès <ludo@gnu.org>
489 Doug Evans <dje@google.com>
490
491 PR gdb/21104
492 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
493 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
494 USING_GUILE_BEFORE_2_2.
495 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
496 Change type to 'scm_t_port_type *'.
497 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
498 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
499 parameter and honor it. Update callers.
500 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
501 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
502 functions.
503 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
504 USING_GUILE_BEFORE_2_2.
505 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
506 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
507 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
508 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
509 and 'SCM_PORT_TYPE'.
510 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
511 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
512 (gdbscm_memory_port_read, gdbscm_memory_port_write)
513 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
514 [!USING_GUILE_BEFORE_2_2]: New functions.
515 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
516 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
517 'gdbscm_memory_port_read'.
518 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
519 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
520 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
521 function.
522 (ioscm_init_memory_port): Remove.
523 (ioscm_init_memory_port_stream): New function
524 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
525 function.
526 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
527 Return scm_from_uint (0).
528 (gdbscm_set_memory_port_read_buffer_size_x)
529 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
530 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
531 Return scm_from_uint (0).
532 (gdbscm_set_memory_port_write_buffer_size_x)
533 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
534 * configure.ac (try_guile_versions): Add "guile-2.2".
535 * configure: Regenerate.
536 * NEWS: Add entry.
537
538 2020-07-18 Tom Tromey <tom@tromey.com>
539
540 * linux-nat.c (linux_multi_process): Remove.
541 (linux_nat_target::supports_multi_process): Return true.
542
543 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * arch/riscv.c (riscv_tdesc_cache): Change map type.
546 (riscv_lookup_target_description): Return pointer out of
547 unique_ptr.
548 * target-descriptions.c (allocate_target_description): Add
549 comment.
550 (target_desc_deleter::operator()): Likewise.
551 * target-descriptions.h (struct target_desc_deleter): Moved to
552 gdbsupport/tdesc.h.
553 (target_desc_up): Likewise.
554
555 2020-07-17 Tom Tromey <tromey@adacore.com>
556
557 * linux-nat.c (linux_nat_target::supports_non_stop)
558 (linux_nat_target::always_non_stop_p): Use "true".
559 (linux_nat_target::supports_disable_randomization): Use "true" and
560 "false".
561
562 2020-07-16 Caroline Tice <cmtice@google.com>
563
564 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
565 (RNGLIST_HEADER_SIZE64): New constant definition.
566 (struct dwop_section_names): Add rnglists_dwo.
567 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
568 (struct loclist_header): Rename to 'loclists_rnglists_header'.
569 (struct dwo_sections): Add rnglists field.
570 (read_attribut_reprocess): Add tag parameter.
571 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
572 (cu_debug_rnglists_section): New function (decl & definition).
573 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
574 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
575 die whose range is being checked; get rnglist section from
576 cu_debug_rnglists_section, to get from either objfile or dwo file as
577 appropriate. Add cases for DW_RLE_base_addressx,
578 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
579 the base address to DW_RLE_offset_pairs (not to all ranges), moving
580 test inside if-condition and updating complaint message.
581 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
582 dwarf2_rnglists_process.
583 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
584 dwarf2_ranges_process.
585 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
586 need_ranges_base and update comment appropriately. Also pass die tag
587 to dwarf2_ranges_read.
588 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
589 need_ranges_base and update comment appropriately. Also pass die tag
590 to dwarf2_ranges_process.
591 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
592 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
593 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
594 need_ranges_base and update comment appropriately. Also pass die tag
595 to read_attribute_reprocess and dwarf2_ranges_read.
596 (read_loclist_header): Rename function to read_loclists_rnglists_header,
597 and update function comment appropriately.
598 (read_loclist_index): Call read_loclists_rnglists_header instead of
599 read_loclist_header.
600 (read_rnglist_index): New function.
601 (read_attribute_reprocess): Add tag parameter. Add code for
602 DW_FORM_rnglistx, passing tag to read_rnglist_index.
603 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
604
605 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
606
607 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
608 being resolved.
609
610 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
611
612 * arch-utils.c (show_architecture): Update formatting of messages.
613
614 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
615
616 * gdbtypes.h (struct type) <bounds>: Handle array and string
617 types.
618 * ada-lang.c (assign_aggregate): Use type::bounds on
619 array/string type.
620 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
621 * c-varobj.c (c_number_of_children): Likewise.
622 (c_describe_child): Likewise.
623 * eval.c (evaluate_subexp_for_sizeof): Likewise.
624 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
625 (f_type_print_base): Likewise.
626 * f-valprint.c (f77_array_offset_tbl): Likewise.
627 (f77_get_upperbound): Likewise.
628 (f77_print_array_1): Likewise.
629 * guile/scm-type.c (gdbscm_type_range): Likewise.
630 * m2-typeprint.c (m2_array): Likewise.
631 (m2_is_long_set_of_type): Likewise.
632 * m2-valprint.c (get_long_set_bounds): Likewise.
633 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
634 * python/py-type.c (typy_range): Likewise.
635 * rust-lang.c (rust_internal_print_type): Likewise.
636 * type-stack.c (type_stack::follow_types): Likewise.
637 * valarith.c (value_subscripted_rvalue): Likewise.
638 * valops.c (value_cast): Likewise.
639
640 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
641
642 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
643 callers to use the equivalent accessor methods.
644
645 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
646
647 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
648 (struct type) <bit_stride>: New method.
649 (TYPE_BIT_STRIDE): Remove.
650 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
651
652 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
653
654 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
655 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
656 callers to use the equivalent accessor methods instead.
657
658 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
659
660 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
661 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
662 callers to use the equivalent accessor methods instead.
663
664 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
665
666 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
667 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
668 to use dynamic_prop::kind.
669
670 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
671
672 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
673 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
674 to get the bound property's kind and check against
675 PROP_UNDEFINED.
676
677 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
678
679 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
680 all callers to use type::range_bounds followed by
681 dynamic_prop::{low,high}.
682
683 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
684
685 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
686 const_val, set_const_val, baton, set_locexpr, set_loclist,
687 set_addr_offset, variant_parts, set_variant_parts,
688 original_type, set_original_type>: New methods.
689 <kind>: Rename to...
690 <m_kind>: ... this. Update all users to use the new methods
691 instead.
692 <data>: Rename to...
693 <m_data>: ... this. Update all users to use the new methods
694 instead.
695
696 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
697
698 * gdbtypes.c (get_discrete_bounds): Return failure if
699 the range type's bounds are not both defined and constant
700 values.
701 (get_array_bounds): Update comment. Remove undefined bound check.
702
703 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
704
705 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
706 the type::bounds method directly.
707
708 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
709
710 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
711 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
712 are used to set the range type's bounds to use set_bounds.
713
714 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
715
716 * exec.c (_initialize_exec): Update exec-file-mismatch help.
717
718 2020-07-10 Pedro Alves <pedro@palves.net>
719
720 * gdbthread.h (inferior_ref): Define.
721 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
722 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
723 * thread.c
724 (scoped_restore_current_thread::restore):
725 Adjust to gdb::ref_ptr.
726 (scoped_restore_current_thread::~scoped_restore_current_thread):
727 Remove manual decref handling.
728 (scoped_restore_current_thread::scoped_restore_current_thread):
729 Adjust to use
730 inferior_ref::new_reference/thread_info_ref::new_reference.
731 Incref the thread before calling get_frame_id instead of after.
732 Let TARGET_CLOSE_ERROR propagate.
733
734 2020-07-10 Pedro Alves <pedro@palves.net>
735
736 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
737 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
738 NOT_AVAILABLE_ERROR.
739 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
740 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
741
742 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
743 Pedro Alves <pedro@palves.net>
744
745 PR gdb/26199
746 * infrun.c (threads_are_resumed_pending_p): Delete.
747 (do_target_wait): Remove threads_are_executing and
748 threads_are_resumed_pending_p checks from the inferior_matches
749 lambda. Update comments.
750
751 2020-07-10 Pedro Alves <pedro@palves.net>
752
753 PR gdb/26199
754 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
755 executing threads.
756
757 2020-07-10 Pedro Alves <pedro@palves.net>
758
759 PR gdb/26199
760 * infrun.c (handle_no_resumed): Handle multiple targets.
761
762 2020-07-10 Pedro Alves <pedro@palves.net>
763
764 PR gdb/26199
765 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
766 target_is_async_p.
767
768 2020-07-10 Pedro Alves <pedro@palves.net>
769
770 PR gdb/26199
771 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
772 threads, not all threads.
773
774 2020-07-10 Pedro Alves <pedro@palves.net>
775
776 PR gdb/26199
777 * remote.c (remote_target::open_1): Pass remote target pointer as
778 data to create_async_event_handler.
779 (remote_async_inferior_event_handler): Mark async event handler
780 before returning if the remote target still has either pending
781 events or unacknowledged notifications.
782
783 2020-07-10 John Baldwin <jhb@FreeBSD.org>
784
785 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
786 declaration.
787 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
788 function.
789
790 2020-07-09 John Baldwin <jhb@FreeBSD.org>
791
792 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
793 inferior_ptid.
794
795 2020-07-09 John Baldwin <jhb@FreeBSD.org>
796
797 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
798 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
799 AT_FREEBSD_PS_STRINGS.
800
801 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
802
803 * auto-load.c (auto_load_objfile_script_1): Convert drive part
804 of debugfile path on Windows.
805
806 2020-07-08 John Baldwin <jhb@FreeBSD.org>
807
808 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
809 argument to 'data'.
810
811 2020-07-08 Tom Tromey <tromey@adacore.com>
812
813 * ada-lang.c (ada_exception_message_1): Use read_memory.
814
815 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
816
817 PR python/22748
818 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
819 special handling for inline frames.
820 * findvar.c (value_of_register_lazy): Skip inline frames when
821 creating lazy register values.
822 * frame.c (frame_id_computed_p): Delete definition.
823 * frame.h (frame_id_computed_p): Delete declaration.
824
825 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
826
827 * NEWS: Mention additions to Python API.
828 * python/py-arch.c (archpy_register_groups): New function.
829 (arch_object_methods): Add 'register_groups' method.
830 * python/py-registers.c (reggroup_iterator_object): New struct.
831 (reggroup_object): New struct.
832 (gdbpy_new_reggroup): New function.
833 (gdbpy_reggroup_to_string): New function.
834 (gdbpy_reggroup_name): New function.
835 (gdbpy_reggroup_iter): New function.
836 (gdbpy_reggroup_iter_next): New function.
837 (gdbpy_new_reggroup_iterator): New function
838 (gdbpy_initialize_registers): Register new types.
839 (reggroup_iterator_object_type): Define new Python type.
840 (gdbpy_reggroup_getset): New static global.
841 (reggroup_object_type): Define new Python type.
842 * python/python-internal.h
843
844 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
845
846 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
847 * python/py-arch.c (archpy_registers): New function.
848 (arch_object_methods): Add 'registers' method.
849 * python/py-registers.c: New file.
850 * python/python-internal.h
851 (gdbpy_new_register_descriptor_iterator): Declare.
852 (gdbpy_initialize_registers): Declare.
853 * python/python.c (do_start_initialization): Call
854 gdbpy_initialize_registers.
855 * NEWS: Mention additions to the Python API.
856
857 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
858
859 * NEWS: Mention new Python API method.
860 * python/py-unwind.c (pending_framepy_architecture): New function.
861 (pending_frame_object_methods): Add architecture method.
862
863 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
864
865 * gdbarch.c: Regenerate.
866 * gdbarch.h: Regenerate.
867 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
868 (gdbarch_data): Use internal_error for the case where
869 deprecated_set_gdbarch_data was originally needed.
870 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
871 and use passed in obstack.
872 (libunwind_frame_set_descr): Should no longer get back NULL from
873 gdbarch_data.
874 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
875 type.
876 * user-regs.c (user_regs_init): Update parameters, and use passed
877 in obstack.
878 (user_reg_add): Should no longer get back NULL from gdbarch_data.
879 (_initialize_user_regs): Register as a pre-init gdbarch data type.
880
881 2020-07-06 Tom de Vries <tdevries@suse.de>
882
883 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
884 End-Of-Sequence in lte_is_less_than.
885 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
886 "gdb: Don't reorder line table entries too much when sorting".
887
888 2020-07-06 Tom de Vries <tdevries@suse.de>
889
890 PR tui/26205
891 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
892
893 2020-07-05 Tom de Vries <tdevries@suse.de>
894
895 PR build/26187
896 * inferior.h (struct infcall_suspend_state_deleter): If available, use
897 std::uncaught_exceptions instead of deprecated
898 std::uncaught_exception.
899
900 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
901
902 * macroexp.h (macro_stringify): Return
903 gdb::unique_xmalloc_ptr<char>.
904 * macroexp.c (macro_stringify): Likewise.
905 * macrotab.c (fixup_definition): Update.
906
907 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
908
909 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
910 (lex_one_token): Update.
911 * macroexp.c (struct macro_buffer) <release>: Return
912 gdb::unique_xmalloc_ptr<char>.
913 (macro_stringify): Update.
914 (macro_expand): Update.
915 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
916 * macroexp.h (macro_expand_next): Likewise.
917
918 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
919
920 * macroexp.h (macro_lookup_ftype): Remove.
921 (macro_expand, macro_expand_once, macro_expand_next): Remove
922 lookup function parameters, add scope parameter.
923 * macroexp.c (scan, substitute_args, expand, maybe_expand,
924 macro_expand, macro_expand_once, macro_expand_next): Likewise.
925 * macroscope.h (standard_macro_lookup): Change parameter type
926 to macro_scope.
927 * macroscope.c (standard_macro_lookup): Likewise.
928 * c-exp.y (lex_one_token): Update.
929 * macrocmd.c (macro_expand_command): Likewise.
930 (macro_expand_once_command): Likewise.
931
932 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
933
934 * inf-loop.c (inferior_event_handler): Remove client_data param.
935 * inf-loop.h (inferior_event_handler): Likewise.
936 * infcmd.c (step_1): Adjust.
937 * infrun.c (proceed): Adjust.
938 (fetch_inferior_event): Remove client_data param.
939 (infrun_async_inferior_event_handler): Adjust.
940 * infrun.h (fetch_inferior_event): Remove `void *` param.
941 * linux-nat.c (handle_target_event): Adjust.
942 * record-btrace.c (record_btrace_handle_async_inferior_event):
943 Adjust.
944 * record-full.c (record_full_async_inferior_event_handler):
945 Adjust.
946 * remote.c (remote_async_inferior_event_handler): Adjust.
947
948 2020-07-01 Tom Tromey <tom@tromey.com>
949
950 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
951 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
952
953 2020-07-01 Tom Tromey <tom@tromey.com>
954
955 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
956 tui_gen_win_info.
957 (tui_win_info::make_window): Merge with
958 tui_gen_win_info::make_window.
959 (tui_win_info::make_visible): Move from tui_gen_win_info.
960 * tui/tui-win.c (tui_win_info::max_width): Move from
961 tui_gen_win_info.
962 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
963 type.
964 <window_factory>: Likewise.
965 * tui/tui-layout.c (tui_win_info::resize): Move from
966 tui_gen_win_info.
967 (make_standard_window): Change return type.
968 (get_locator_window, tui_get_window_by_name): Likewise.
969 (tui_layout_window::apply): Remove a cast.
970 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
971 (struct tui_win_info): Merge with tui_gen_win_info.
972 (struct tui_gen_win_info): Remove.
973
974 2020-07-01 Tom Tromey <tom@tromey.com>
975
976 * tui/tui-stack.h (struct tui_locator_window): Derive from
977 tui_win_info.
978 <do_scroll_horizontal, do_scroll_vertical>: New methods.
979 <can_box>: New method.
980
981 2020-07-01 Tom Tromey <tom@tromey.com>
982
983 * tui/tui-stack.h (struct tui_locator_window): Remove body.
984
985 2020-07-01 Tom Tromey <tom@tromey.com>
986
987 * tui/tui-regs.c (tui_data_window::display_registers_from)
988 (tui_data_window::display_registers_from)
989 (tui_data_window::first_data_item_displayed)
990 (tui_data_window::delete_data_content_windows): Update.
991 (tui_data_window::refresh_window, tui_data_window::no_refresh):
992 Remove.
993 (tui_data_window::check_register_values): Update.
994 (tui_data_item_window::rerender): Add parameters. Update.
995 (tui_data_item_window::refresh_window): Remove.
996 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
997 virtual.
998 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
999 tui_gen_win_info.
1000 <refresh_window, max_height, min_height>: Remove.
1001 <rerender>: Add parameters.
1002 <x, y, visible>: New members.
1003 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1004 <m_item_width>: New member.
1005
1006 2020-07-01 Tom Tromey <tom@tromey.com>
1007
1008 * tui/tui-regs.c (tui_data_window::show_register_group)
1009 (tui_data_window::check_register_values): Update.
1010 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1011 from item_no.
1012
1013 2020-07-01 Tom Tromey <tom@tromey.com>
1014
1015 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1016 useless "if".
1017
1018 2020-07-01 Tom Tromey <tom@tromey.com>
1019
1020 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1021 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1022
1023 2020-07-01 Tom Tromey <tom@tromey.com>
1024
1025 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1026 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1027 (struct tui_line_or_address): Move from tui-data.h.
1028 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1029 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1030 (tui_cmd_window, tui_source_window_base, tui_source_window)
1031 (tui_disasm_window): Don't declare.
1032 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1033 to tui-winsource.h.
1034 (SINGLE_KEY): Move to tui-stack.c.
1035
1036 2020-07-01 Tom Tromey <tom@tromey.com>
1037
1038 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1039 std::string.
1040 * tui/tui-regs.c (class tab_expansion_file): New.
1041 (tab_expansion_file::write): New method.
1042 (tui_register_format): Change return type. Use
1043 tab_expansion_file.
1044 (tui_get_register, tui_data_window::display_registers_from)
1045 (tui_data_item_window::rerender): Update.
1046 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1047 * tui/tui-io.c (tui_expand_tabs): Remove.
1048
1049 2020-07-01 Tom Tromey <tom@tromey.com>
1050
1051 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1052
1053 2020-07-01 Fangrui Song <maskray@google.com>
1054
1055 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1056
1057 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1058
1059 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1060 forms for DW_AT_associated and DW_AT_allocated attributes,
1061 which is already checked in function attr_to_dynamic_prop.
1062
1063 2020-06-30 Tom Tromey <tromey@adacore.com>
1064
1065 * dwarf2/read.c (quirk_rust_enum): Correctly call
1066 alloc_rust_variant for default-less enum.
1067
1068 2020-06-30 Tom Tromey <tromey@adacore.com>
1069
1070 PR build/26183:
1071 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1072 gdb::to_string.
1073
1074 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1075
1076 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1077 * gdbarch.h: Re-generate.
1078
1079 2020-06-28 Tom Tromey <tom@tromey.com>
1080
1081 * command.h (cmd_types): Remove.
1082 (cmd_type): Don't declare.
1083 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1084 typedef.
1085 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1086 * cli/cli-decode.c (cmd_type): Remove.
1087
1088 2020-06-27 Pedro Alves <palves@redhat.com>
1089
1090 * fork-child.c (prefork_hook): Adjust.
1091 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1092 Delete.
1093 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1094 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1095 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1096 Remove declarations.
1097 (struct inferior) <set_tty, tty>: New methods.
1098 (struct inferior) <terminal>: Rename to ...
1099 (struct inferior) <m_terminal>: ... this and make private.
1100 * main.c (captured_main_1): Adjust.
1101 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1102 (mi_cmd_inferior_tty_show): Adjust.
1103 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1104 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1105
1106 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1107
1108 * configure.ac: Add --enable-libctf: handle --disable-static
1109 properly.
1110 * acinclude.m4: sinclude ../config/enable.m4.
1111 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1112 (LIBCTF): Substitute in.
1113 (CTF_DEPS): New, likewise.
1114 (CLIBS): libctf needs symbols from libbfd: move earlier.
1115 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1116 flags.
1117 * ctfread.c: Surround in ENABLE_LIBCTF.
1118 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1119 * configure: Regenerate.
1120 * config.in: Likewise.
1121
1122 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1123
1124 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1125
1126 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1127
1128 * inferior.h (struct inferior) <terminal>: Change type to
1129 gdb::unique_xmalloc_ptr<char>.
1130 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1131 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1132 field, adjust to unique pointer.
1133 (get_inferior_io_terminal): Adjust to unique pointer.
1134
1135 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1136
1137 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1138 registers, not just the known core set of registers.
1139
1140 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1141
1142 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1143 fflags, frm, and fcsr registers.
1144 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1145 restore groups.
1146 (riscv_tdesc_unknown_reg): New function.
1147 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1148 tdesc_use_registers.
1149 * riscv-tdep.h (struct gdbarch_tdep): Add
1150 unknown_csrs_first_regnum, unknown_csrs_count,
1151 duplicate_fflags_regnum, duplicate_frm_regnum, and
1152 duplicate_fcsr_regnum fields.
1153
1154 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1155
1156 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1157 callback, use the callback (when not null) to help number unknown
1158 registers.
1159 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1160 (tdesc_use_registers): Add extra parameter to declaration.
1161
1162 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1163
1164 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1165 in the file.
1166 (class riscv_pending_register_alias): Likewise.
1167 (riscv_register_feature::register_info): Change 'required_p' field
1168 to 'required', and change its type. Add 'check' member function.
1169 (riscv_register_feature::register_info::check): Define new member
1170 function.
1171 (riscv_xreg_feature): Change initialisation of 'required' field.
1172 (riscv_freg_feature): Likewise.
1173 (riscv_virtual_feature): Likewise.
1174 (riscv_csr_feature): Likewise.
1175 (riscv_check_tdesc_feature): Take extra parameter, the csr
1176 tdesc_feature, rewrite the function to use the new
1177 riscv_register_feature::register_info::check function.
1178 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1179
1180 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1181
1182 * features/Makefile: Remove all references to the deleted files
1183 below.
1184 * features/riscv/32bit-csr.c: Deleted.
1185 * features/riscv/32bit-csr.xml: Deleted.
1186 * features/riscv/64bit-csr.c: Deleted.
1187 * features/riscv/64bit-csr.xml: Deleted.
1188 * features/riscv/rebuild-csr-xml.sh: Deleted.
1189
1190 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1191
1192 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1193 whitespace error for declaration of names member variable.
1194 (struct riscv_register_feature): Add new prefer_first_name member
1195 variable, and fix whitespace error in declaration of registers.
1196 (riscv_xreg_feature): Initialize prefer_first_name field.
1197 (riscv_freg_feature): Likewise.
1198 (riscv_virtual_feature): Likewise.
1199 (riscv_csr_feature): Likewise.
1200 (riscv_register_name): Expand on comments. Remove register name
1201 modifications for CSR and virtual registers.
1202
1203 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1204
1205 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1206 errors.
1207
1208 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1209
1210 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1211 riscv-opc.h.
1212 (class riscv_pending_register_alias): New class.
1213 (riscv_check_tdesc_feature): Take vector of pending aliases and
1214 populate it as appropriate.
1215 (riscv_setup_register_aliases): Delete.
1216 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1217 to riscv_check_tdesc_feature in all cases. Use the vector to
1218 create the register aliases.
1219
1220 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1221
1222 * sol2-tdep.c (sol2_static_transform_name): Remove.
1223 (sol2_init_abi): Don't register it.
1224 * gdbarch.sh (static_transform_name): Remove.
1225 * gdbarch.c, gdbarch.h: Regenerate.
1226
1227 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1228 gdbarch_static_transform_name.
1229 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1230 * stabsread.c (define_symbol) <'X'>: Remove.
1231 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1232 handling.
1233 <'V'>: Likewise.
1234 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1235 <'S'>: Remove call to gdbarch_static_transform_name.
1236
1237 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1238
1239 * procfs.c (procfs_pre_trace): New function.
1240 (procfs_target::create_inferior): Pass it to fork_inferior.
1241
1242 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1243
1244 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1245 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1246 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1247 sol2-tdep.o, sparc-sol2-tdep.o.
1248 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1249 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1250 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1251 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1252
1253 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1254
1255 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1256 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1257 Call sol2_init_abi.
1258 Remove calls to set_gdbarch_skip_solib_resolver,
1259 set_gdbarch_core_pid_to_str.
1260 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1261 (i386_sol2_static_transform_name): Remove.
1262 (i386_sol2_init_abi): Call sol2_init_abi.
1263 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1264 set_gdbarch_static_transform_name,
1265 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1266 Use sol2_sigtramp_p.
1267 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1268 (sol2_sigtramp_p): New function.
1269 (sol2_static_transform_name): New function.
1270 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1271 (sol2_init_abi): New function.
1272 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1273 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1274 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1275 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1276 (sparc_sol2_static_transform_name): Remove.
1277 (sparc32_sol2_init_abi): Call sol2_init_abi.
1278 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1279 set_gdbarch_static_transform_name,
1280 set_gdbarch_skip_solib_resolver,
1281 set_gdbarch_core_pid_to_str.
1282 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1283 (sparc_sol2_static_transform_name): Remove
1284 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1285 call sol2_sigtramp_p.
1286 (sparc64_sol2_init_abi): Call sol2_init_abi.
1287 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1288 set_gdbarch_static_transform_name,
1289 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1290
1291 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1292
1293 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1294 * exec.c (validate_exec_file): If from_tty, set both
1295 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1296 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1297 and from_tty, unconditionally ask a confirmation.
1298
1299 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1300
1301 * target-descriptions.c (tdesc_architecture_name): Protect against
1302 NULL pointer dereference.
1303 (maint_print_xml_tdesc_cmd): New function.
1304 (_initialize_target_descriptions): Register new 'maint print
1305 xml-tdesc' command and give it the filename completer.
1306 * NEWS: Mention new 'maint print xml-tdesc' command.
1307
1308 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1309
1310 * target-descriptions.c (class tdesc_compatible_info): New class.
1311 (struct target_desc): Change type of compatible vector.
1312 (tdesc_compatible_p): Update for change in type of
1313 target_desc::compatible.
1314 (tdesc_compatible_info_list): New function.
1315 (tdesc_compatible_info_arch_name): New function.
1316 (tdesc_add_compatible): Update for change in type of
1317 target_desc::compatible.
1318 (print_c_tdesc::visit_pre): Likewise.
1319
1320 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1321
1322 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1323 whitespace to underscore.
1324 (maint_print_c_tdesc_cmd): Use fake filename for target
1325 descriptions that came from the target.
1326 (_initialize_target_descriptions): Add filename command completion
1327 for 'maint print c-tdesc'.
1328
1329 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1330
1331 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1332 lines.
1333
1334 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1335
1336 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1337 lines.
1338 (dwarf2_find_location_expression): Likewise.
1339 (call_site_parameter_matches): Likewise.
1340 (dwarf2_compile_expr_to_ax): Likewise.
1341 (disassemble_dwarf_expression): Likewise.
1342 (loclist_describe_location): Likewise.
1343
1344 2020-06-23 Pedro Alves <palves@redhat.com>
1345
1346 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1347 progspace-and-thread.h. Include scoped-mock-context.h instead.
1348 (register_to_value_test): Use scoped_mock_context.
1349 * regcache.c: Include "scoped-mock-context.h".
1350 (cooked_read_test): Don't error out if a target is already pushed.
1351 Use scoped_mock_context. Adjust.
1352 * scoped-mock-context.h: New file.
1353
1354 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1355
1356 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1357 initializer.
1358 (ada_language::is_string_type_p): New member function.
1359 * c-lang.c (c_language_data): Delete la_is_string_type_p
1360 initializer.
1361 (cplus_language_data): Likewise.
1362 (asm_language_data): Likewise.
1363 (minimal_language_data): Likewise.
1364 * d-lang.c (d_language_data): Likewise.
1365 * f-lang.c (f_is_string_type_p): Delete function, implementation
1366 moved to f_language::is_string_type_p.
1367 (f_language_data): Delete la_is_string_type_p initializer.
1368 (f_language::is_string_type_p): New member function,
1369 implementation from f_is_string_type_p.
1370 * go-lang.c (go_is_string_type_p): Delete function, implementation
1371 moved to go_language::is_string_type_p.
1372 (go_language_data): Delete la_is_string_type_p initializer.
1373 (go_language::is_string_type_p): New member function,
1374 implementation from go_is_string_type_p.
1375 * language.c (language_defn::is_string_type_p): Define new member
1376 function.
1377 (default_is_string_type_p): Make static, add comment copied from
1378 header file.
1379 (unknown_language_data): Delete la_is_string_type_p initializer.
1380 (unknown_language::is_string_type_p): New member function.
1381 (auto_language_data): Delete la_is_string_type_p initializer.
1382 (auto_language::is_string_type_p): New member function.
1383 * language.h (language_data): Delete la_is_string_type_p field.
1384 (language_defn::is_string_type_p): Declare new function.
1385 (default_is_string_type_p): Delete desclaration, move comment to
1386 definition.
1387 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1388 moved to m2_language::is_string_type_p.
1389 (m2_language_data): Delete la_is_string_type_p initializer.
1390 (m2_language::is_string_type_p): New member function,
1391 implementation from m2_is_string_type_p.
1392 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1393 initializer.
1394 * opencl-lang.c (opencl_language_data): Likewise.
1395 * p-lang.c (pascal_is_string_type_p): Delete function,
1396 implementation moved to pascal_language::is_string_type_p.
1397 (pascal_language_data): Delete la_is_string_type_p initializer.
1398 (pascal_language::is_string_type_p): New member function,
1399 implementation from pascal_is_string_type_p.
1400 * rust-lang.c (rust_is_string_type_p): Delete function,
1401 implementation moved to rust_language::is_string_type_p.
1402 (rust_language_data): Delete la_is_string_type_p initializer.
1403 (rust_language::is_string_type_p): New member function,
1404 implementation from rust_is_string_type_p.
1405 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1406 is_string_type_p.
1407
1408 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1409
1410 * ada-lang.c (ada_language_data): Delete la_print_typedef
1411 initializer.
1412 (ada_language::print_typedef): New member function.
1413 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1414 (cplus_language_data): Likewise.
1415 (asm_language_data): Likewise.
1416 (minimal_language_data): Likewise.
1417 * d-lang.c (d_language_data): Likewise.
1418 * f-lang.c (f_language_data): Likewise.
1419 (f_language::print_typedef): New member function.
1420 * go-lang.c (go_language_data): Delete la_print_typedef
1421 initializer.
1422 * language.c (language_defn::print_typedef): Define member
1423 function.
1424 (unknown_language_data): Delete la_print_typedef initializer.
1425 (unknown_language::print_typedef): New member function.
1426 (auto_language_data): Delete la_print_typedef initializer.
1427 (auto_language::print_typedef): New member function.
1428 * language.h (language_data): Delete la_print_typedef field.
1429 (language_defn::print_typedef): Declare new member function.
1430 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1431 (default_print_typedef): Delete declaration.
1432 * m2-lang.c (m2_language_data): Delete la_print_typedef
1433 initializer.
1434 (m2_language::print_typedef): New member function.
1435 * objc-lang.c (objc_language_data): Delete la_print_typedef
1436 initializer.
1437 * opencl-lang.c (opencl_language_data): Likewise.
1438 * p-lang.c (pascal_language_data): Likewise.
1439 (pascal_language::print_typedef): New member function.
1440 * rust-lang.c (rust_print_typedef): Delete function,
1441 implementation moved to rust_language::print_typedef.
1442 (rust_language): Delete la_print_typedef initializer.
1443 (rust_language::print_typedef): New member function,
1444 implementation from rust_print_typedef.
1445 * typeprint.c (default_print_typedef): Delete.
1446
1447 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1448
1449 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1450 (ada_language::printstr): New member function.
1451 * c-lang.c (c_language_data): Delete la_printstr initializer.
1452 (cplus_language_data): Likewise.
1453 (asm_language_data): Likewise.
1454 (minimal_language_data): Likewise.
1455 * d-lang.c (d_language_data): Likewise.
1456 * f-lang.c (f_printstr): Rename to f_language::printstr.
1457 (f_language_data): Delete la_printstr initializer.
1458 (f_language::printstr): New member function, implementation from
1459 f_printstr.
1460 * go-lang.c (go_language_data): Delete la_printstr initializer.
1461 * language.c (language_defn::printstr): Define new member
1462 function.
1463 (unk_lang_printstr): Delete.
1464 (unknown_language_data): Delete la_printstr initializer.
1465 (unknown_language::printstr): New member function.
1466 (auto_language_data): Delete la_printstr initializer.
1467 (auto_language::printstr): New member function.
1468 * language.h (language_data): Delete la_printstr field.
1469 (language_defn::printstr): Declare new member function.
1470 (LA_PRINT_STRING): Update call to printstr.
1471 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1472 (m2_language_data): Delete la_printstr initializer.
1473 (m2_language::printstr): New member function, implementation from
1474 m2_printstr.
1475 * objc-lang.c (objc_language_data): Delete la_printstr
1476 initializer.
1477 * opencl-lang.c (opencl_language_data): Likewise.
1478 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1479 (pascal_language_data): Delete la_printstr initializer.
1480 (pascal_language::printstr): New member function, implementation
1481 from pascal_printstr.
1482 * p-lang.h (pascal_printstr): Delete declaration.
1483 * rust-lang.c (rust_printstr): Update header comment.
1484 (rust_language_data): Delete la_printstr initializer.
1485 (rust_language::printstr): New member function.
1486
1487 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1488
1489 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1490 (ada_language::printchar): New member function.
1491 * c-lang.c (c_language_data): Delete la_printchar initializer.
1492 (cplus_language_data): Likewise.
1493 (asm_language_data): Likewise.
1494 (minimal_language_data): Likewise.
1495 * d-lang.c (d_language_data): Likewise.
1496 * f-lang.c (f_printchar): Rename to f_language::printchar.
1497 (f_language_data): Delete la_printchar initializer.
1498 (f_language::printchar): New member function, implementation from
1499 f_printchar.
1500 * go-lang.c (go_language_data): Delete la_printchar initializer.
1501 * language.c (unk_lang_printchar): Delete.
1502 (language_defn::printchar): Define new member function.
1503 (unknown_language_data): Delete la_printchar initializer.
1504 (unknown_language::printchar): New member function.
1505 (auto_language_data): Delete la_printchar initializer.
1506 (auto_language::printchar): New member function.
1507 * language.h (language_data): Delete la_printchar field.
1508 (language_defn::printchar): Declare new member function.
1509 (LA_PRINT_CHAR): Update call to printchar.
1510 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1511 (m2_language::printchar): New member function.
1512 * objc-lang.c (objc_language_data): Delete la_printchar
1513 initializer.
1514 * opencl-lang.c (opencl_language_data): Likewise.
1515 * p-lang.c (pascal_language_data): Delete la_printchar
1516 initializer.
1517 (pascal_language::printchar): New member function.
1518 * rust-lang.c (rust_printchar): Rename to
1519 rust_language::printchar.
1520 (rust_language_data): Delete la_printchar initializer.
1521 (rust_language::printchar): New member function, implementation
1522 from rust_printchar.
1523
1524 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1525
1526 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1527 (ada_language_data): Delete la_emitchar initializer.
1528 (ada_language::emitchar): New member function, implementation from
1529 emit_char.
1530 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1531 (cplus_language_data): Likewise.
1532 (asm_language_data): Likewise.
1533 (minimal_language_data): Likewise.
1534 * d-lang.c (d_language_data): Likewise.
1535 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1536 (f_language_data): Delete la_emitchar initializer.
1537 (f_language::emitchar): New member function, implementation from
1538 f_emit_char.
1539 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1540 * language.c (unk_lang_emit_char): Delete.
1541 (language_defn::emitchar): New member function definition.
1542 (unknown_language_data): Delete la_emitchar initializer.
1543 (unknown_language::emitchar): New member function.
1544 (auto_language_data): Delete la_emitchar initializer.
1545 (auto_language::emitchar): New member function.
1546 * language.h (language_data): Delete la_emitchar field.
1547 (language_defn::emitchar): New member field declaration.
1548 (LA_EMIT_CHAR): Update call to emitchar.
1549 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1550 (m2_language_data): Delete la_emitchar initializer.
1551 (m2_language::emitchar): New member function, implementation from
1552 m2_emit_char.
1553 * objc-lang.c (objc_language_data): Delete la_emitchar
1554 initializer.
1555 * opencl-lang.c (opencl_language_data): Likewise.
1556 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1557 (pascal_language_data): Delete la_emitchar initializer.
1558 (pascal_language::emitchar): New member function, implementation
1559 from pascal_emit_char.
1560 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1561 (rust_language_data): Delete la_emitchar initializer.
1562 (rust_language::emitchar): New member function, implementation
1563 from rust_emitchar.
1564
1565 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1566
1567 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1568 (ada_language_data): Delete la_post_parser initializer.
1569 (ada_language::post_parser): New member function.
1570 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1571 (cplus_language_data): Likewise.
1572 (asm_language_data): Likewise.
1573 (minimal_language_data): Likewise.
1574 * d-lang.c (d_language_data): Likewise.
1575 * f-lang.c (f_language_data): Likewise.
1576 * go-lang.c (go_language_data): Likewise.
1577 * language.c (unknown_language_data): Likewise.
1578 (auto_language_data): Likewise.
1579 * language.h (language_data): Delete la_post_parser field.
1580 (language_defn::post_parser): New member function.
1581 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1582 * objc-lang.c (objc_language_data): Likewise.
1583 * opencl-lang.c (opencl_language_data): Likewise.
1584 * p-lang.c (pascal_language_data): Likewise.
1585 * parse.c (parse_exp_in_context): Update call to post_parser.
1586 (null_post_parser): Delete definition.
1587 * parser-defs.h (null_post_parser): Delete declaration.
1588 * rust-lang.c (rust_language_data): Delete la_post_parser
1589 initializer.
1590
1591 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1592
1593 * ada-lang.c (parse): Rename to ada_language::parser.
1594 (ada_language_data): Delete la_parser initializer.
1595 (ada_language::parser): New member function, implementation from
1596 parse.
1597 * c-lang.c (c_language_data): Delete la_parser initializer.
1598 (cplus_language_data): Likewise.
1599 (asm_language_data): Likewise.
1600 (minimal_language_data): Likewise.
1601 * d-lang.c (d_language_data): Likewise.
1602 (d_language::parser): New member function.
1603 * f-lang.c (f_language_data): Delete la_parser initializer.
1604 (f_language::parser): New member function.
1605 * go-lang.c (go_language_data): Delete la_parser initializer.
1606 (go_language::parser): New member function.
1607 * language.c (unk_lang_parser): Delete.
1608 (language_defn::parser): Define new member function.
1609 (unknown_language_data): Delete la_parser initializer.
1610 (unknown_language::parser): New member function.
1611 (auto_language_data): Delete la_parser initializer.
1612 (auto_language::parser): New member function.
1613 * language.h (language_data): Delete la_parser field.
1614 (language_defn::parser): Declare new member function.
1615 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1616 (m2_language::parser): New member function.
1617 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1618 * opencl-lang.c (opencl_language_data): Likewise.
1619 * p-lang.c (pascal_language_data): Likewise.
1620 (pascal_language::parser): New member function.
1621 * parse.c (parse_exp_in_context): Update call to parser.
1622 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1623 (rust_language::parser): New member function.
1624
1625 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1626
1627 * top.c (print_gdb_configuration): Print --with-python-libdir
1628 configuration value.
1629
1630 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1631
1632 * NEWS: Mention change to the alias command.
1633
1634 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1635
1636 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1637 (alias_command_completer)
1638 (make_alias_options_def_group): New functions.
1639 (alias_opts, alias_option_defs): New struct and array.
1640 (alias_usage_error): Update usage.
1641 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1642 Use option framework.
1643 (_initialize_cli_cmds): Update alias command help.
1644 Update aliases command help.
1645 (show_user):
1646 Add NULL for new default_args lookup_cmd argument.
1647 (valid_command_p): Rename to validate_aliased_command.
1648 Add NULL for new default_args lookup_cmd argument. Verify that the
1649 aliased_command has no default args.
1650 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1651 (lookup_cmd_1, lookup_cmd): New argument default_args.
1652 (add_alias_cmd):
1653 Add NULL for new default_args lookup_cmd argument.
1654 (print_help_for_command): Show default args under the layout
1655 alias some_alias = some_aliased_cmd some_alias_default_arg.
1656 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1657 xfree default_args in destructor.
1658 * cli/cli-script.c (process_next_line, do_define_command):
1659 Add NULL for new default_args lookup_cmd argument.
1660 * command.h: Declare new default_args argument in lookup_cmd
1661 and lookup_cmd_1.
1662 * completer.c (complete_line_internal_1):
1663 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1664 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1665 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1666 Likewise.
1667 * infcmd.c (_initialize_infcmd): Likewise.
1668 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1669 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1670 * python/py-param.c (add_setshow_generic): Likewise.
1671 * remote.c (_initialize_remote): Likewise.
1672 * top.c (execute_command): Prepend default_args if command has some.
1673 (set_verbose):
1674 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1675 * tracepoint.c (validate_actionline, encode_actions_1):
1676 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1677
1678 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1679
1680 * jit.c (jit_read_descriptor): Use bool as the return type.
1681 (jit_breakpoint_re_set_internal): Use bool as the return type.
1682 Invert the return value logic; return true if the jit breakpoint
1683 has been successfully initialized.
1684 (jit_inferior_init): Update the call to
1685 jit_breakpoint_re_set_internal.
1686
1687 2020-06-22 Pedro Alves <palves@redhat.com>
1688
1689 PR gdb/25939
1690 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1691 Use the current inferior instead. Don't return
1692 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1693 wait again.
1694 * sol-thread.c (sol_thread_target::wait): Don't reference
1695 inferior_ptid.
1696 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1697 (sol_update_thread_list_callback): Use the current inferior's pid
1698 instead of inferior_ptid.
1699
1700 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1701
1702 * procfs.c: Cleanup many comments.
1703
1704 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1705 (AFTER_WATCHFLAG): Replace by value.
1706
1707 (MAIN_PROC_NAME_FORMAT): Inline ...
1708 (create_procinfo): ... here.
1709
1710 (procfs_debug_inferior): Remove SYS_exec handling.
1711 (syscall_is_exec): Likewise.
1712 (procfs_set_exec_trap): Likewise.
1713
1714 (syscall_is_lwp_exit): Inline in callers.
1715 (syscall_is_exit): Likewise.
1716 (syscall_is_exec): Likewise.
1717 (syscall_is_lwp_create): Likewise.
1718
1719 (invalidate_cache): Remove #if 0 code.
1720
1721 (make_signal_thread_runnable): Remove.
1722 (procfs_target::resume): Remove #if 0 code.
1723
1724 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1725
1726 PR gdb/25939
1727 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1728 call ...
1729 (procfs_target::create_inferior): ... here.
1730
1731 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1732
1733 * exec.c (validate_exec_file): Ensure the build-id is up to
1734 date by calling reopen_exec_file (that checks file timestamp
1735 to decide to re-read the file).
1736
1737 2020-06-18 Pedro Alves <palves@redhat.com>
1738
1739 PR gdb/25412
1740 * gdbthread.h (delete_thread, delete_thread_silent)
1741 (find_thread_ptid): Update comments.
1742 * thread.c (current_thread_): New global.
1743 (is_current_thread): Move higher, and reimplement.
1744 (inferior_thread): Reimplement.
1745 (set_thread_exited): Use bool. Add assertions.
1746 (add_thread_silent): Simplify thread-reuse handling by always
1747 calling delete_thread.
1748 (delete_thread): Remove intro comment.
1749 (find_thread_ptid): Skip exited threads.
1750 (switch_to_thread_no_regs): Write to current_thread_.
1751 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1752 INFERIOR_PTID. Clear current_thread_.
1753
1754 2020-06-18 Pedro Alves <palves@redhat.com>
1755
1756 * aix-thread.c (pd_update): Use switch_to_thread.
1757
1758 2020-06-18 Pedro Alves <palves@redhat.com>
1759
1760 * ravenscar-thread.c (ravenscar_thread_target): Update.
1761 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1762 (ravenscar_thread_target::add_active_thread): ... this. Don't
1763 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1764 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1765
1766 2020-06-18 Pedro Alves <palves@redhat.com>
1767
1768 * nat/windows-nat.c (current_windows_thread): Remove.
1769 * nat/windows-nat.h (current_windows_thread): Remove.
1770 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1771 Adjust.
1772 (display_selectors): Adjust to fetch the current
1773 windows_thread_info based on inferior_ptid.
1774 (fake_create_process): No longer write to current_windows_thread.
1775 (windows_nat_target::get_windows_debug_event):
1776 Don't set inferior_ptid or current_windows_thread.
1777 (windows_nat_target::wait): Adjust to not rely on
1778 current_windows_thread.
1779 (do_initial_windows_stuff): Now a method of windows_nat_target.
1780 Switch to the last_ptid thread.
1781 (windows_nat_target::attach): Adjust.
1782 (windows_nat_target::detach): Use switch_to_no_thread instead of
1783 writing to inferior_ptid directly.
1784 (windows_nat_target::create_inferior): Adjust.
1785
1786 2020-06-18 Pedro Alves <palves@redhat.com>
1787
1788 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1789
1790 2020-06-18 Pedro Alves <palves@redhat.com>
1791
1792 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1793 after creating it, instead of writing to inferior_ptid. Don't
1794 write to inferior_ptid.
1795
1796 2020-06-18 Pedro Alves <palves@redhat.com>
1797
1798 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1799
1800 2020-06-18 Pedro Alves <palves@redhat.com>
1801
1802 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1803 it, instead of writing to inferior_ptid.
1804
1805 2020-06-18 Pedro Alves <palves@redhat.com>
1806
1807 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1808 to inferior_ptid.
1809
1810 2020-06-18 Pedro Alves <palves@redhat.com>
1811
1812 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1813 instead of writing to inferior_ptid directly.
1814
1815 2020-06-18 Pedro Alves <palves@redhat.com>
1816
1817 * corelow.c (core_target::close): Use switch_to_no_thread instead
1818 of writing to inferior_ptid directly.
1819 (add_to_thread_list, core_target_open): Use switch_to_thread
1820 instead of writing to inferior_ptid directly.
1821
1822 2020-06-18 Pedro Alves <palves@redhat.com>
1823
1824 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1825 inferior_ptid.
1826 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1827 inferior_ptid.
1828 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1829 inferior_ptid directly.
1830 (darwin_nat_target::init_thread_list): Switch to thread, instead
1831 of writing to inferior_ptid.
1832 (darwin_nat_target::attach): Don't write to inferior_ptid.
1833 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1834
1835 2020-06-18 Pedro Alves <palves@redhat.com>
1836
1837 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1838 thread.
1839 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1840 Instead use switch_to_thread.
1841 (gnu_nat_target::detach): Use switch_to_no_thread
1842 instead of writing to inferior_ptid directly. Used passed-in
1843 inferior instead of looking up the inferior by pid.
1844
1845 2020-06-18 Pedro Alves <palves@redhat.com>
1846
1847 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1848 inferior_ptid.
1849
1850 2020-06-18 Pedro Alves <palves@redhat.com>
1851
1852 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1853 inferior_ptid.
1854 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1855 thread.
1856 (nto_procfs_target::detach): Avoid referencing
1857 inferior_ptid. Use switch_to_no_thread instead of writing to
1858 inferior_ptid directly.
1859 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1860 instead of writing to inferior_ptid directly.
1861 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1862 to thread.
1863
1864 2020-06-18 Pedro Alves <palves@redhat.com>
1865
1866 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1867 after creating it, instead of writing to inferior_ptid.
1868 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1869 to inferior_ptid directly.
1870 (gdbsim_target::wait): Don't write to inferior_ptid.
1871
1872 2020-06-18 Pedro Alves <palves@redhat.com>
1873
1874 * remote.c (remote_target::remote_notice_new_inferior): Use
1875 switch_to_thread instead of writing to inferior_ptid directly.
1876 (remote_target::add_current_inferior_and_thread): Use
1877 switch_to_no_thread instead of writing to inferior_ptid directly.
1878 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1879 and switch_to_thread instead of using set_current_inferior or
1880 writing to inferior_ptid directly.
1881
1882 2020-06-18 Pedro Alves <palves@redhat.com>
1883
1884 * tracectf.c (ctf_target_open): Switch to added thread instead of
1885 writing to inferior_ptid directly.
1886 (ctf_target::close): Use switch_to_no_thread instead of writing to
1887 inferior_ptid directly.
1888
1889 2020-06-18 Pedro Alves <palves@redhat.com>
1890
1891 * tracefile-tfile.c (tfile_target_open): Don't write to
1892 inferior_ptid directly, instead switch to added thread.
1893 (tfile_target::close): Use switch_to_no_thread instead of writing
1894 to inferior_ptid directly.
1895
1896 2020-06-18 Pedro Alves <palves@redhat.com>
1897
1898 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1899 (procfs_target::detach): Use switch_to_no_thread
1900 instead of writing to inferior_ptid directly.
1901 (do_attach): Change return type to void. Switch to the added
1902 thread.
1903 (procfs_target::create_inferior): Switch to the added thread.
1904 (procfs_do_thread_registers): Don't write to inferior_ptid.
1905
1906 2020-06-18 Pedro Alves <palves@redhat.com>
1907
1908 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1909 of writing to inferior_ptid.
1910 (scoped_restore_exited_inferior): Delete.
1911 (handle_vfork_child_exec_or_exit): Simplify using
1912 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1913 instead of writing to inferior_ptid.
1914 (THREAD_STOPPED_BY): Delete.
1915 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1916 (thread_stopped_by_hw_breakpoint): Delete.
1917 (save_waitstatus): Use
1918 scoped_restore_current_thread+switch_to_thread, and call
1919 target_stopped_by_watchpoint instead of
1920 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1921 instead of thread_stopped_by_sw_breakpoint, and
1922 target_stopped_by_hw_breakpoint instead of
1923 thread_stopped_by_hw_breakpoint.
1924 (handle_inferior_event)
1925 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1926 inferior_ptid directly, nor
1927 set_current_inferior/set_current_program_space. Use
1928 switch_to_thread / switch_to_inferior_no_thread instead.
1929
1930 2020-06-18 Pedro Alves <palves@redhat.com>
1931
1932 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1933 instead of writing to inferior_ptid.
1934
1935 2020-06-18 Pedro Alves <palves@redhat.com>
1936
1937 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1938 added thread.
1939 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1940 to the added thread.
1941 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1942 instead of writing to inferior_ptid.
1943
1944 2020-06-18 Pedro Alves <palves@redhat.com>
1945
1946 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1947 (register_to_value_test): Mock a program_space too. Heap-allocate
1948 the address space. Don't write to inferior_ptid. Use
1949 switch_to_thread instead.
1950
1951 2020-06-18 Pedro Alves <palves@redhat.com>
1952
1953 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1954 Delete.
1955 (find_signalled_thread()): New, factored out from
1956 linux_make_corefile_notes and adjusted to handle exited threads.
1957 (linux_make_corefile_notes): Adjust to use the new
1958 find_signalled_thread.
1959
1960 2020-06-18 Pedro Alves <palves@redhat.com>
1961
1962 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1963 of saving/restoring inferior_ptid.
1964
1965 2020-06-17 Tom Tromey <tom@tromey.com>
1966
1967 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1968 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1969 declare.
1970 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1971
1972 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1973
1974 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1975 of partial symtabs.
1976
1977 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1978
1979 * regformats/reg-arm.dat: Remove.
1980 * regformats/reg-bfin.dat: Remove.
1981 * regformats/reg-cris.dat: Remove.
1982 * regformats/reg-crisv32.dat: Remove.
1983 * regformats/reg-m32r.dat: Remove.
1984 * regformats/reg-tilegx.dat: Remove.
1985 * regformats/reg-tilegx32.dat: Remove.
1986
1987 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1988
1989 * features/Makefile (WHICH): Remove arm files.
1990 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1991 * regformats/arm/arm-with-neon.dat: Remove.
1992 * regformats/arm/arm-with-vfpv2.dat: Remove.
1993 * regformats/arm/arm-with-vfpv3.dat: Remove.
1994
1995 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1996
1997 * features/Makefile (XMLTOC): Remove rx.xml.
1998
1999 2020-06-17 Pedro Alves <palves@redhat.com>
2000
2001 * gdbthread.h (thread_control_state) <trap_expected> Update
2002 comments.
2003
2004 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2005
2006 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2007 ada_language::lookup_symbol_nonlocal.
2008 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2009 (ada_language::lookup_symbol_nonlocal): New member function,
2010 implementation from ada_lookup_symbol_nonlocal.
2011 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2012 initializer.
2013 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2014 initializer.
2015 (cplus_language::lookup_symbol_nonlocal): New member function.
2016 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2017 (minimal_language_data) Likewise.
2018 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2019 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2020 initializer.
2021 (d_language::lookup_symbol_nonlocal): New member function.
2022 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2023 initializer.
2024 (f_language::lookup_symbol_nonlocal): New member function.
2025 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2026 initializer.
2027 * language.c (unknown_language_data): Likewise.
2028 (auto_language_data): Likewise.
2029 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2030 field.
2031 (language_defn::lookup_symbol_nonlocal): New member function.
2032 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2033 initializer.
2034 * objc-lang.c (objc_language_data): Likewise.
2035 * opencl-lang.c (opencl_language_data): Likewise.
2036 * p-lang.c (pascal_language_data): Likewise.
2037 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2038 rust_language::lookup_symbol_nonlocal.
2039 (rust_language_data): Delete la_lookup_symbol_nonlocal
2040 initializer.
2041 (rust_language::lookup_symbol_nonlocal): New member function,
2042 implementation from rust_lookup_symbol_nonlocal.
2043 * symtab.c (lookup_symbol_aux): Update call to
2044 lookup_symbol_nonlocal.
2045 (basic_lookup_symbol_nonlocal): Rename to...
2046 (language_defn::lookup_symbol_nonlocal): ...this, and update
2047 header comment. Remove language_defn parameter, and replace with
2048 uses of `this'.
2049 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2050
2051 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2052
2053 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2054 initializer.
2055 (ada_language::value_print_inner): New member function.
2056 * c-lang.c (c_language_data): Delete la_value_print_inner
2057 initializer.
2058 (cplus_language_data): Likewise.
2059 (asm_language_data): Likewise.
2060 (minimal_language_data): Likewise.
2061 * d-lang.c (d_language_data): Likewise.
2062 (d_language::value_print_inner): New member function.
2063 * f-lang.c (f_language_data): Delete la_value_print_inner
2064 initializer.
2065 (f_language::value_print_inner): New member function.
2066 * f-lang.h (f_value_print_innner): Rename to...
2067 (f_value_print_inner): ...this (note spelling of 'inner').
2068 * f-valprint.c (f_value_print_innner): Rename to...
2069 (f_value_print_inner): ...this (note spelling of 'inner').
2070 * go-lang.c (go_language_data): Delete la_value_print_inner
2071 initializer.
2072 (go_language::value_print_inner): New member function.
2073 * language.c (language_defn::value_print_inner): Define new member
2074 function.
2075 (unk_lang_value_print_inner): Delete.
2076 (unknown_language_data): Delete la_value_print_inner initializer.
2077 (unknown_language::value_print_inner): New member function.
2078 (auto_language_data): Delete la_value_print_inner initializer.
2079 (auto_language::value_print_inner): New member function.
2080 * language.h (language_data): Delete la_value_print_inner field.
2081 (language_defn::value_print_inner): Delcare new member function.
2082 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2083 initializer.
2084 (m2_language::value_print_inner): New member function.
2085 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2086 initializer.
2087 * opencl-lang.c (opencl_language_data): Likewise.
2088 * p-lang.c (pascal_language_data): Likewise.
2089 (pascal_language::value_print_inner): New member function.
2090 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2091 initializer.
2092 (rust_language::value_print_inner): New member function.
2093 * valprint.c (do_val_print): Update call to value_print_inner.
2094
2095 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2096
2097 * ada-lang.c (ada_language_data): Delete la_value_print
2098 initializer.
2099 (ada_language::value_print): New member function.
2100 * c-lang.c (c_language_data): Delete la_value_print initializer.
2101 (cplus_language_data): Likewise.
2102 (asm_language_data): Likewise.
2103 (minimal_language_data): Likewise.
2104 * d-lang.c (d_language_data): Likewise.
2105 * f-lang.c (f_language_data): Likewise.
2106 * go-lang.c (go_language_data): Likewise.
2107 * language.c (unk_lang_value_print): Delete.
2108 (language_defn::value_print): Define new member function.
2109 (unknown_language_data): Delete la_value_print initializer.
2110 (unknown_language::value_print): New member function.
2111 (auto_language_data): Delete la_value_print initializer.
2112 (auto_language::value_print): New member function.
2113 * language.h (language_data): Delete la_value_print field.
2114 (language_defn::value_print): Declare new member function.
2115 (LA_VALUE_PRINT): Update call to value_print.
2116 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2117 * objc-lang.c (objc_language_data): Likewise.
2118 * opencl-lang.c (opencl_language_data): Likewise.
2119 * p-lang.c (pascal_language_data): Likewise.
2120 (pascal_language::value_print): New member function.
2121 * rust-lang.c (rust_language_data): Delete la_value_print
2122 initializer.
2123
2124 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2125
2126 * ada-lang.c (ada_watch_location_expression): Rename to
2127 ada_language::watch_location_expression.
2128 (ada_language_data): Delete la_watch_location_expression
2129 initializer.
2130 (ada_language::watch_location_expression): New member function,
2131 implementation from ada_watch_location_expression.
2132 * breakpoint.c (watch_command_1): Update call to
2133 watch_location_expression.
2134 * c-lang.c (c_watch_location_expression): Rename to
2135 language_defn::watch_location_expression.
2136 (c_language_data): Delete la_watch_location_expression
2137 initializer.
2138 (cplus_language_data): Likewise.
2139 (asm_language_data): Likewise.
2140 (minimal_language_data): Likewise.
2141 * c-lang.h (c_watch_location_expression): Delete declaration.
2142 * d-lang.c (d_language_data): Delete la_watch_location_expression
2143 initializer.
2144 * f-lang.c (f_language_data): Likewise.
2145 * go-lang.c (go_language_data): Likewise.
2146 * language.c (language_defn::watch_location_expression): Member
2147 function implementation from c_watch_location_expression.
2148 (unknown_language_data): Delete la_watch_location_expression
2149 initializer.
2150 (auto_language_data): Likewise.
2151 * language.h (language_data): Delete la_watch_location_expression
2152 field.
2153 (language_defn::watch_location_expression): Declare new member
2154 function.
2155 * m2-lang.c (m2_language_data): Delete
2156 la_watch_location_expression initializer.
2157 * objc-lang.c (objc_language_data): Likewise.
2158 * opencl-lang.c (opencl_language_data): Likewise.
2159 * p-lang.c (pascal_language_data): Likewise.
2160 * rust-lang.c (rust_watch_location_expression): Rename to
2161 rust_language::watch_location_expression.
2162 (rust_language_data): Delete la_watch_location_expression
2163 initializer.
2164 (rust_language::watch_location_expression): New member function,
2165 implementation from rust_watch_location_expression.
2166
2167 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2168
2169 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2170 ada_language::collect_symbol_completion_matches.
2171 (ada_language_data): Delete la_collect_symbol_completion_matches
2172 initializer.
2173 (ada_language::collect_symbol_completion_matches): New member
2174 function, implementation from
2175 ada_collect_symbol_completion_matches.
2176 * c-lang.c (c_language_data): Delete
2177 la_collect_symbol_completion_matches initializer.
2178 (cplus_language_data): Likewise.
2179 (asm_language_data): Likewise.
2180 (minimal_language_data): Likewise.
2181 * d-lang.c (d_language_data): Likewise.
2182 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2183 f_language::collect_symbol_completion_matches.
2184 (f_language_data): Delete la_collect_symbol_completion_matches
2185 initializer.
2186 (f_language::collect_symbol_completion_matches) New member
2187 function, implementation from f_collect_symbol_completion_matches.
2188 * go-lang.c (go_language_data): Delete
2189 la_collect_symbol_completion_matches initializer.
2190 * language.c (unknown_language_data): Likewise.
2191 (auto_language_data): Likewise.
2192 * language.h (language_data): Delete
2193 la_collect_symbol_completion_matches field.
2194 (language_defn::collect_symbol_completion_matches): New member
2195 function.
2196 * m2-lang.c (m2_language_data): Delete
2197 la_collect_symbol_completion_matches initializer.
2198 * objc-lang.c (objc_language_data): Likewise.
2199 * opencl-lang.c (opencl_language_data): Likewise.
2200 * p-lang.c (pascal_language_data): Likewise.
2201 * rust-lang.c (rust_language_data): Likewise.
2202 * symtab.c (default_collect_symbol_completion_matches): Delete.
2203 (collect_symbol_completion_matches): Update call to
2204 collect_symbol_completion_matches.
2205 (collect_symbol_completion_matches_type): Likewise.
2206 * symtab.h (default_collect_symbol_completion_matches): Delete
2207 declaration.
2208
2209 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2210
2211 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2212 (ada_language_data): Delete la_word_break_characters initializer.
2213 (ada_language::word_break_characters): New member function.
2214 * c-lang.c (c_language_data): Delete la_word_break_characters
2215 initializer.
2216 (cplus_language_data): Likewise.
2217 (asm_language_data): Likewise.
2218 (minimal_language_data): Likewise.
2219 * completer.c: Update global comment.
2220 (advance_to_expression_complete_word_point): Update call to
2221 word_break_characters.
2222 (complete_files_symbols): Likewise.
2223 (complete_line_internal_1): Likewise.
2224 (default_completer_handle_brkchars): Likewise.
2225 (skip_quoted_chars): Likewise.
2226 * d-lang.c (d_language_data): Delete la_word_break_characters
2227 initializer.
2228 * f-lang.c (f_word_break_characters): Delete.
2229 (f_language_data): Delete la_word_break_characters initializer.
2230 (f_language::word_break_characters): New member function.
2231 * go-lang.c (go_language_data): Delete la_word_break_characters
2232 initializer.
2233 * language.c (unknown_language_data): Likewise.
2234 (auto_language_data): Likewise.
2235 * language.h (default_word_break_characters): Move declaration to
2236 earlier in the file.
2237 (language_data): Delete la_word_break_characters field.
2238 (language_defn::word_break_characters): New member function.
2239 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2240 initializer.
2241 * objc-lang.c (objc_language_data): Likewise.
2242 * opencl-lang.c (opencl_language_data): Likewise.
2243 * p-lang.c (pascal_language_data): Likewise.
2244 * rust-lang.c (rust_language_data): Likewise.
2245
2246 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2247
2248 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2249 (ada_language_data): Delete la_get_symbol_name_matcher
2250 initializer.
2251 (language_defn::get_symbol_name_matcher_inner): New member
2252 function.
2253 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2254 initializer.
2255 (cplus_language_data): Likewise.
2256 (cplus_language::get_symbol_name_matcher_inner): New member
2257 function.
2258 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2259 (minimal_language_data): Likewise.
2260 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2261 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2262 initializer.
2263 * dictionary.c (iter_match_first_hashed): Update call to
2264 get_symbol_name_matcher.
2265 (iter_match_next_hashed): Likewise.
2266 (iter_match_next_linear): Likewise.
2267 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2268 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2269 initializer.
2270 (f_language::get_symbol_name_matcher_inner): New member function.
2271 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2272 initializer.
2273 * language.c (default_symbol_name_matcher): Update header comment,
2274 make static.
2275 (language_defn::get_symbol_name_matcher): New definition.
2276 (language_defn::get_symbol_name_matcher_inner): Likewise.
2277 (get_symbol_name_matcher): Delete.
2278 (unknown_language_data): Delete la_get_symbol_name_matcher
2279 initializer.
2280 (auto_language_data): Likewise.
2281 * language.h (language_data): Delete la_get_symbol_name_matcher
2282 field.
2283 (language_defn::get_symbol_name_matcher): New member function.
2284 (language_defn::get_symbol_name_matcher_inner): Likewise.
2285 (default_symbol_name_matcher): Delete declaration.
2286 * linespec.c (find_methods): Update call to
2287 get_symbol_name_matcher.
2288 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2289 initializer.
2290 * minsyms.c (lookup_minimal_symbol): Update call to
2291 get_symbol_name_matcher.
2292 (iterate_over_minimal_symbols): Likewise.
2293 * objc-lang.c (objc_language_data): Delete
2294 la_get_symbol_name_matcher initializer.
2295 * opencl-lang.c (opencl_language_data): Likewise.
2296 * p-lang.c (pascal_language_data): Likewise.
2297 * psymtab.c (psymbol_name_matches): Update call to
2298 get_symbol_name_matcher.
2299 * rust-lang.c (rust_language_data): Delete
2300 la_get_symbol_name_matcher initializer.
2301 * symtab.c (symbol_matches_search_name): Update call to
2302 get_symbol_name_matcher.
2303 (compare_symbol_name): Likewise.
2304
2305 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2306
2307 * ada-lang.c (ada_language_data): Delete la_compute_program
2308 initializer.
2309 * c-lang.c (c_language_data): Likewise.
2310 (c_language::compute_program): New member function.
2311 (cplus_language_data): Delete la_compute_program initializer.
2312 (cplus_language::compute_program): New member function.
2313 (asm_language_data): Delete la_compute_program initializer.
2314 (minimal_language_data): Likewise.
2315 * c-lang.h (c_compute_program): Update comment.
2316 (cplus_compute_program): Likewise.
2317 * compile/compile-c-support.c (c_compute_program): Likewise.
2318 (cplus_compute_program): Likewise.
2319 * compile/compile.c (compile_to_object): Update call to
2320 la_compute_program.
2321 * d-lang.c (d_language_data): Delete la_compute_program
2322 initializer.
2323 * f-lang.c (f_language_data): Likewise.
2324 * go-lang.c (go_language_data): Likewise.
2325 * language.c (unknown_language_data): Likewise.
2326 (auto_language_data): Likewise.
2327 * language.h (language_data): Delete la_compute_program field.
2328 (language_defn::compute_program): New member function.
2329 * m2-lang.c (m2_language_data): Delete la_compute_program
2330 initializer.
2331 * objc-lang.c (objc_language_data): Likewise.
2332 * opencl-lang.c (opencl_language_data): Likewise.
2333 * p-lang.c (pascal_language_data): Likewise.
2334 * rust-lang.c (rust_language_data): Likewise.
2335
2336 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2337
2338 * ada-lang.c (ada_language_data) Delete
2339 la_class_name_from_physname initializer.
2340 * c-lang.c (c_language_data): Likewise.
2341 (cplus_language_data): Likewise.
2342 (cplus_language::class_name_from_physname): New member function.
2343 (asm_language_data): Delete la_class_name_from_physname
2344 initializer.
2345 (minimal_language_data): Likewise.
2346 * d-lang.c (d_language_data): Likewise.
2347 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2348 method on language_defn class.
2349 (guess_full_die_structure_name): Likewise.
2350 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2351 initializer.
2352 * go-lang.c (go_language_data): Likewise.
2353 * language.c (language_class_name_from_physname): Delete.
2354 (unk_lang_class_name): Delete.
2355 (unknown_language_data): Delete la_class_name_from_physname
2356 initializer.
2357 (auto_language_data): Likewise.
2358 * language.h (language_data): Delete la_class_name_from_physname
2359 field.
2360 (language_defn::class_name_from_physname): New function.
2361 (language_class_name_from_physname): Delete declaration.
2362 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2363 initializer.
2364 * objc-lang.c (objc_language_data): Likewise.
2365 * opencl-lang.c (opencl_language_data): Likewise.
2366 * p-lang.c (pascal_language_data): Likewise.
2367 * rust-lang.c (rust_language_data): Likewise.
2368
2369 2020-06-16 Tom Tromey <tom@tromey.com>
2370
2371 * tui/tui-data.h (STATUS_NAME): New macro.
2372 * tui/tui-layout.c (tui_remove_some_windows)
2373 (initialize_known_windows, tui_register_window)
2374 (tui_layout_split::remove_windows, initialize_layouts)
2375 (tui_new_layout_command): Don't use hard-coded window names.
2376
2377 2020-06-16 Tom Tromey <tom@tromey.com>
2378
2379 PR tui/25348:
2380 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2381 tui_initialize_readline. Only run once. Call rl_initialize.
2382 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2383 tui_initialize_readline.
2384 * tui/tui-io.c (tui_setup_io): Call
2385 tui_ensure_readline_initialized.
2386 * tui/tui-interp.c (tui_interp::init): Update.
2387
2388 2020-06-16 Tom Tromey <tom@tromey.com>
2389
2390 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2391 Also preserve the status window.
2392
2393 2020-06-16 Tom Tromey <tom@tromey.com>
2394
2395 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2396 where m_window==nullptr.
2397
2398 2020-06-15 Tom Tromey <tromey@adacore.com>
2399
2400 * windows-nat.c (windows_nat::handle_output_debug_string):
2401 Update.
2402 (windows_nat::handle_ms_vc_exception): Update.
2403 * target.h (target_read_string): Change API.
2404 * target.c (target_read_string): Change API.
2405 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2406 Update.
2407 * solib-frv.c (frv_current_sos): Update.
2408 * solib-dsbt.c (dsbt_current_sos): Update.
2409 * solib-darwin.c (darwin_current_sos): Update.
2410 * linux-thread-db.c (inferior_has_bug): Update.
2411 * expprint.c (print_subexp_standard): Update.
2412 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2413 (ada_exception_message_1): Update.
2414
2415 2020-06-15 Tom Tromey <tromey@adacore.com>
2416
2417 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2418
2419 2020-06-15 Tom Tromey <tromey@adacore.com>
2420
2421 * valprint.c (read_string): Update comment.
2422 * target.c (MIN): Remove.
2423 (target_read_string): Rewrite.
2424
2425 2020-06-15 Tom Tromey <tromey@adacore.com>
2426
2427 * corefile.c (read_memory_string): Remove.
2428 * ada-valprint.c (ada_value_print_ptr): Update.
2429 * ada-lang.h (ada_tag_name): Change return type.
2430 * ada-lang.c (type_from_tag): Update.
2431 (ada_tag_name_from_tsd): Change return type. Use
2432 target_read_string.
2433 (ada_tag_name): Likewise.
2434 * gdbcore.h (read_memory_string): Don't declare.
2435
2436 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2437
2438 * symtab.c (rbreak_command): Ignore Windows drive colon.
2439
2440 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2441
2442 * NEWS: Mention removed GDBserver host support.
2443
2444 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2445
2446 * features/riscv/rebuild-csr-xml.sh: Updated.
2447
2448 2020-06-11 Tom Tromey <tom@tromey.com>
2449
2450 PR gdb/18318:
2451 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2452
2453 2020-06-09 Jonny Grant <jg@jguk.org>
2454 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2455
2456 * main.c (captured_main_1): Don't print new line after help.
2457 (print_gdb_help): add mailing list and IRC channel information
2458 to --help. Add new lines between items in the footer. Remove
2459 quotes around bug url.
2460
2461 2020-06-11 Keith Seitz <keiths@redhat.com>
2462
2463 PR gdb/21356
2464 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2465 Resolve typedefs for type length calculations.
2466
2467 2020-06-10 Tom de Vries <tdevries@suse.de>
2468
2469 PR ada/24713
2470 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2471 (write_psymbols): Enable .gdb_index for ada.
2472 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2473 ada.
2474
2475 2020-06-10 Tom de Vries <tdevries@suse.de>
2476
2477 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2478 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2479 namei" instead of "const char *name" argument.
2480 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2481 dw2_symtab_iter_init.
2482
2483 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2484
2485 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2486 to use type::field and field::type instead.
2487
2488 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2489
2490 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2491 to use field::type instead.
2492
2493 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2494
2495 * gdbtypes.h (struct field) <type, set_type>: New methods.
2496 Rename `type` field to...
2497 <m_type>: ... this. Change references throughout to use type or
2498 set_type methods.
2499 (FIELD_TYPE): Use field::type. Change call sites that modify
2500 the field's type to use field::set_type instead.
2501
2502 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2503
2504 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2505 to use type::index_type instead.
2506
2507 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2508
2509 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2510 methods.
2511 (TYPE_INDEX_TYPE): Use type::index_type.
2512 * gdbtypes.c (create_array_type_with_stride): Likewise.
2513
2514 2020-06-07 Tom Tromey <tom@tromey.com>
2515
2516 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2517 parameter.
2518 (generic_value_print): Update.
2519
2520 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2521
2522 Revert commit 982a38f60b0.
2523 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2524
2525 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2526
2527 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2528 avoid use after free.
2529
2530 2020-06-05 Tom de Vries <tdevries@suse.de>
2531
2532 * NEWS: Fix typos.
2533
2534 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2535
2536 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2537 the per_bfd object.
2538 (dwarf2_read_debug_names): Likewise.
2539 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2540 object when re-using a per_bfd object with an index.
2541
2542 2020-06-03 Tom de Vries <tdevries@suse.de>
2543
2544 PR symtab/26046
2545 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2546 children for C++.
2547 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2548 DW_TAG_subprogram.
2549
2550 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2551
2552 * ada-lang.c (ada_language_data): Delete skip_trampoline
2553 initializer.
2554 * c-lang.c (c_language_data): Likewise.
2555 (cplus_language_data): Likewise.
2556 (cplus_language::skip_trampoline): New member function.
2557 (asm_language_data): Delete skip_trampoline initializer.
2558 (minimal_language_data): Likewise.
2559 * d-lang.c (d_language_data): Likewise.
2560 * f-lang.c (f_language_data): Likewise.
2561 * go-lang.c (go_language_data): Likewise.
2562 * language.c (unk_lang_trampoline): Delete function.
2563 (skip_language_trampoline): Update.
2564 (unknown_language_data): Delete skip_trampoline initializer.
2565 (auto_language_data): Likewise.
2566 * language.h (language_data): Delete skip_trampoline field.
2567 (language_defn::skip_trampoline): New function.
2568 * m2-lang.c (m2_language_data): Delete skip_trampoline
2569 initializer.
2570 * objc-lang.c (objc_skip_trampoline): Delete function, move
2571 implementation to objc_language::skip_trampoline.
2572 (objc_language_data): Delete skip_trampoline initializer.
2573 (objc_language::skip_trampoline): New member function with
2574 implementation from objc_skip_trampoline.
2575 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2576 initializer.
2577 * p-lang.c (pascal_language_data): Likewise.
2578 * rust-lang.c (rust_language_data): Likewise.
2579
2580 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2581
2582 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2583 (ada_language::demangle): New member function.
2584 * c-lang.c (c_language_data): Delete la_demangle initializer.
2585 (cplus_language_data): Delete la_demangle initializer.
2586 (cplus_language::demangle): New member function.
2587 (asm_language_data): Delete la_demangle initializer.
2588 (minimal_language_data): Delete la_demangle initializer.
2589 * d-lang.c (d_language_data): Delete la_demangle initializer.
2590 (d_language::demangle): New member function.
2591 * f-lang.c (f_language_data): Delete la_demangle initializer.
2592 (f_language::demangle): New member function.
2593 * go-lang.c (go_language_data): Delete la_demangle initializer.
2594 (go_language::demangle): New member function.
2595 * language.c (language_demangle): Update.
2596 (unk_lang_demangle): Delete.
2597 (unknown_language_data): Delete la_demangle initializer.
2598 (unknown_language::demangle): New member function.
2599 (auto_language_data): Delete la_demangle initializer.
2600 (auto_language::demangle): New member function.
2601 * language.h (language_data): Delete la_demangle field.
2602 (language_defn::demangle): New function.
2603 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2604 * objc-lang.c (objc_language_data): Delete la_demangle
2605 initializer.
2606 (objc_language::demangle): New member function.
2607 * opencl-lang.c (opencl_language_data): Delete la_demangle
2608 initializer.
2609 * p-lang.c (pascal_language_data): Likewise.
2610 * rust-lang.c (rust_language_data): Likewise.
2611 (rust_language::demangle): New member function.
2612
2613 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2614
2615 * ada-lang.c (ada_language_data): Delete la_print_type
2616 initializer.
2617 (ada_language::print_type): New member function.
2618 * c-lang.c (c_language_data): Delete la_print_type initializer.
2619 (c_language::print_type): New member function.
2620 (cplus_language_data): Delete la_print_type initializer.
2621 (cplus_language::print_type): New member function.
2622 (asm_language_data): Delete la_print_type initializer.
2623 (asm_language::print_type): New member function.
2624 (minimal_language_data): Delete la_print_type initializer.
2625 (minimal_language::print_type): New member function.
2626 * d-lang.c (d_language_data): Delete la_print_type initializer.
2627 (d_language::print_type): New member function.
2628 * f-lang.c (f_language_data): Delete la_print_type initializer.
2629 (f_language::print_type): New member function.
2630 * go-lang.c (go_language_data): Delete la_print_type initializer.
2631 (go_language::print_type): New member function.
2632 * language.c (unk_lang_print_type): Delete.
2633 (unknown_language_data): Delete la_print_type initializer.
2634 (unknown_language::print_type): New member function.
2635 (auto_language_data): Delete la_print_type initializer.
2636 (auto_language::print_type): New member function.
2637 * language.h (language_data): Delete la_print_type field.
2638 (language_defn::print_type): New function.
2639 (LA_PRINT_TYPE): Update.
2640 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2641 (m2_language::print_type): New member function.
2642 * objc-lang.c (objc_language_data): Delete la_print_type
2643 initializer.
2644 (objc_language::print_type): New member function.
2645 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2646 to opencl_language::print_type.
2647 (opencl_language_data): Delete la_print_type initializer.
2648 (opencl_language::print_type): New member function, implementation
2649 from opencl_print_type.
2650 * p-lang.c (pascal_language_data): Delete la_print_type
2651 initializer.
2652 (pascal_language::print_type): New member function.
2653 * rust-lang.c (rust_print_type): Delete, implementation moved to
2654 rust_language::print_type.
2655 (rust_language_data): Delete la_print_type initializer.
2656 (rust_language::print_type): New member function, implementation
2657 from rust_print_type.
2658
2659 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2660
2661 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2662 implementation moves to...
2663 (ada_language::sniff_from_mangled_name): ...here. Update return
2664 type.
2665 (ada_language_data): Delete la_sniff_from_mangled_name
2666 initializer.
2667 * c-lang.c (c_language_data): Likewise.
2668 (cplus_language_data): Likewise.
2669 (cplus_language::sniff_from_mangled_name): New member function,
2670 implementation taken from gdb_sniff_from_mangled_name.
2671 (asm_language_data): Delete la_sniff_from_mangled_name
2672 initializer.
2673 (minimal_language_data): Likewise.
2674 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2675 implementation moves to cplus_language::sniff_from_mangled_name.
2676 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2677 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2678 moves to...
2679 (d_language::sniff_from_mangled_name): ...here.
2680 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2681 * f-lang.c (f_language_data): Likewise.
2682 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2683 moves to...
2684 (go_language::sniff_from_mangled_name): ...here.
2685 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2686 * language.c (language_sniff_from_mangled_name): Delete.
2687 (unknown_language_data): Delete la_sniff_from_mangled_name
2688 initializer.
2689 (auto_language_data): Likewise.
2690 * language.h (language_data): Delete la_sniff_from_mangled_name
2691 field.
2692 (language_defn::sniff_from_mangled_name): New function.
2693 (language_sniff_from_mangled_name): Delete declaration.
2694 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2695 field.
2696 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2697 implementation moves to...
2698 (objc_language::sniff_from_mangled_name): ...here.
2699 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2700 * opencl-lang.c (opencl_language_data): Likewise.
2701 * p-lang.c (pascal_language_data): Likewise.
2702 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2703 implementation moves to...
2704 (rust_language::sniff_from_mangled_name): ...here.
2705 (rust_language_data): Delete la_sniff_from_mangled_name
2706 initializer.
2707 * symtab.c (symbol_find_demangled_name): Call
2708 sniff_from_mangled_name member function.
2709
2710 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2711
2712 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2713 initializer.
2714 * c-lang.c (c_language_data): Likewise.
2715 (cplus_language_data): Likewise.
2716 (cplus_language::search_name_hash): New member function.
2717 (asm_language_data): Delete la_search_name_hash initializer.
2718 (minimal_language_data): Likewise.
2719 * d-lang.c (d_language_data): Likewise.
2720 * dictionary.c (default_search_name_hash): Rename to...
2721 (language_defn::search_name_hash): ...this.
2722 * f-lang.c (f_language_data): Likewise.
2723 (f_language::search_name_hash): New member function.
2724 * go-lang.c (go_language_data): Delete la_search_name_hash
2725 initializer.
2726 * language.c (unknown_language_data): Likewise.
2727 (auto_language_data): Likewise.
2728 * language.h (struct language_data): Delete la_search_name_hash
2729 field.
2730 (language_defn::search_name_hash): Declare new member function.
2731 (default_search_name_hash): Delete declaration.
2732 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2733 initializer.
2734 * objc-lang.c (objc_language_data): Likewise.
2735 * opencl-lang.c (opencl_language_data): Likewise.
2736 * p-lang.c (pascal_language_data): Likewise.
2737 * rust-lang.c (rust_language_data): Likewise.
2738 * symtab.c (search_name_hash): Update call.
2739
2740 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2741
2742 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2743 initializer.
2744 * c-lang.c (class compile_instance): Declare.
2745 (c_language_data): Delete la_get_compile_instance initializer.
2746 (c_language::get_compile_instance): New member function.
2747 (cplus_language_data): Delete la_get_compile_instance initializer.
2748 (cplus_language::get_compile_instance): New member function.
2749 (asm_language_data): Delete la_get_compile_instance initializer.
2750 (minimal_language_data): Likewise.
2751 * c-lang.h (c_get_compile_context): Update comment.
2752 (cplus_get_compile_context): Update comment.
2753 * compile/compile.c (compile_to_object): Update calls, don't rely
2754 on function pointer being NULL.
2755 * d-lang.c (d_language_data): Delete la_get_compile_instance
2756 initializer.
2757 * f-lang.c (f_language_data): Likewise.
2758 * go-lang.c (go_language_data): Likewise.
2759 * language.c (unknown_language_data): Likewise.
2760 (auto_language_data): Likewise.
2761 * language.h (language_data): Delete la_get_compile_instance field.
2762 (language_defn::get_compile_instance): New member function.
2763 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2764 initializer.
2765 * objc-lang.c (objc_language_data): Likewise.
2766 * opencl-lang.c (opencl_language_data): Likewise.
2767 * p-lang.c (pascal_language_data): Likewise.
2768 * rust-lang.c (rust_language_data): Likewise.
2769
2770 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2771
2772 * ada-lang.c (ada_add_all_symbols): Update comment.
2773 (ada_iterate_over_symbols): Delete, move implementation to...
2774 (ada_language::iterate_over_symbols): ...here, a new member
2775 function, rewrite to use range based for loop.
2776 (ada_language_data): Delete la_iterate_over_symbols initializer.
2777 * c-lang.c (c_language_data): Likewise.
2778 (cplus_language_data): Likewise.
2779 (asm_language_data): Likewise.
2780 (minimal_language_data): Likewise.
2781 * d-lang.c (d_language_data): Likewise.
2782 * f-lang.c (f_language_data): Likewise.
2783 * go-lang.c (go_language_data): Likewise.
2784 * language.c (unknown_language_data): Likewise.
2785 (auto_language_data): Likewise.
2786 * language.h (language_data): Delete la_iterate_over_symbols field.
2787 (language_defn::iterate_over_symbols): New member function.
2788 (LA_ITERATE_OVER_SYMBOLS): Update.
2789 * linespec.c (iterate_over_all_matching_symtabs): Update.
2790 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2791 initializer.
2792 * objc-lang.c (objc_language_data): Likewise.
2793 * opencl-lang.c (opencl_language_data): Likewise.
2794 * p-lang.c (pascal_language_data): Likewise.
2795 * rust-lang.c (rust_language_data): Likewise.
2796
2797 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2798
2799 * ada-lang.c (ada_language_data): Delete
2800 la_lookup_transparent_type initializer.
2801 * c-lang.c (c_language_data): Likewise.
2802 (cplus_language_data): Likewise.
2803 (cplus_language::lookup_transparent_type): New member function.
2804 (asm_language_data): Delete la_lookup_transparent_type
2805 initializer.
2806 (minimal_language_data): Likewise.
2807 * d-lang.c (d_language_data): Likewise.
2808 * f-lang.c (f_language_data): Likewise.
2809 * go-lang.c (go_language_data): Likewise.
2810 * language.c (unknown_language_data): Likewise.
2811 (auto_language_data): Likewise.
2812 * language.h (struct language_data): Delete
2813 la_lookup_transparent_type field.
2814 (language_defn::lookup_transparent_type): New member function.
2815 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2816 initializer.
2817 * objc-lang.c (objc_language_data): Likewise.
2818 * opencl-lang.c (opencl_language_data): Likewise.
2819 * p-lang.c (pascal_language_data): Likewise.
2820 * rust-lang.c (rust_language_data): Likewise.
2821 * symtab.c (symbol_matches_domain): Update call.
2822
2823 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2824
2825 * ada-lang.c (ada_language_arch_info): Delete function, move
2826 implementation to...
2827 (ada_language::language_arch_info): ...here, a new member
2828 function.
2829 (ada_language_data): Delete la_language_arch_info.
2830 * c-lang.c (c_language_data): Likewise.
2831 (c_language::language_arch_info): New member function.
2832 (cplus_language_arch_info): Delete function, move
2833 implementation to...
2834 (cplus_language::language_arch_info): ...here, a new member
2835 function.
2836 (cplus_language_data): Delete la_language_arch_info.
2837 (asm_language_data): Likewise.
2838 (asm_language::language_arch_info): New member function.
2839 (minimal_language_data): Delete la_language_arch_info.
2840 (minimal_language::language_arch_info): New member function.
2841 * d-lang.c (d_language_arch_info): Delete function, move
2842 implementation to...
2843 (d_language::language_arch_info): ...here, a new member
2844 function.
2845 (d_language_data): Delete la_language_arch_info.
2846 * f-lang.c (f_language_arch_info): Delete function, move
2847 implementation to...
2848 (f_language::language_arch_info): ...here, a new member
2849 function.
2850 (f_language_data): Delete la_language_arch_info.
2851 * go-lang.c (go_language_arch_info): Delete function, move
2852 implementation to...
2853 (go_language::language_arch_info): ...here, a new member
2854 function.
2855 (go_language_data): Delete la_language_arch_info.
2856 * language.c (unknown_language_data): Likewise.
2857 (unknown_language::language_arch_info): New member function.
2858 (auto_language_data): Delete la_language_arch_info.
2859 (auto_language::language_arch_info): New member function.
2860 (language_gdbarch_post_init): Update call to
2861 la_language_arch_info.
2862 * language.h (language_data): Delete la_language_arch_info
2863 function pointer.
2864 (language_defn::language_arch_info): New function.
2865 * m2-lang.c (m2_language_arch_info): Delete function, move
2866 implementation to...
2867 (m2_language::language_arch_info): ...here, a new member
2868 function.
2869 (m2_language_data): Delete la_language_arch_info.
2870 * objc-lang.c (objc_language_arch_info): Delete function, move
2871 implementation to...
2872 (objc_language::language_arch_info): ...here, a new member
2873 function.
2874 (objc_language_data): Delete la_language_arch_info.
2875 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2876 implementation to...
2877 (opencl_language::language_arch_info): ...here, a new member
2878 function.
2879 (opencl_language_data): Delete la_language_arch_info.
2880 * p-lang.c (pascal_language_arch_info): Delete function, move
2881 implementation to...
2882 (pascal_language::language_arch_info): ...here, a new member
2883 function.
2884 (pascal_language_data): Delete la_language_arch_info.
2885 * rust-lang.c (rust_language_arch_info): Delete function, move
2886 implementation to...
2887 (rust_language::language_arch_info): ...here, a new member
2888 function.
2889 (rust_language_data): Delete la_language_arch_info.
2890
2891 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2892
2893 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2894 initializer.
2895 * c-lang.c (c_language_data): Likewise.
2896 (cplus_language_data): Likewise.
2897 (cplus_language::pass_by_reference_info): New method.
2898 (asm_language_data): Delete la_pass_by_reference initializer.
2899 (minimal_language_data): Likewise.
2900 * cp-abi.c (cp_pass_by_reference): Remove use of
2901 default_pass_by_reference.
2902 * d-lang.c (d_language_data): Likewise.
2903 * f-lang.c (f_language_data): Likewise.
2904 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2905 default_pass_by_reference.
2906 * go-lang.c (go_language_data): Likewise.
2907 * language.c (language_pass_by_reference): Update.
2908 (default_pass_by_reference): Delete.
2909 (unknown_language_data): Delete la_pass_by_reference
2910 initializer.
2911 (auto_language_data): Likewise.
2912 * language.h (struct language_data): Delete la_pass_by_reference
2913 field.
2914 (language_defn::pass_by_reference_info): New member function.
2915 (default_pass_by_reference): Delete declaration.
2916 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2917 initializer.
2918 * objc-lang.c (objc_language_data): Likewise.
2919 * opencl-lang.c (opencl_language_data): Likewise.
2920 * p-lang.c (pascal_language_data): Likewise.
2921 * rust-lang.c (rust_language_data): Likewise.
2922
2923 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2924
2925 * ada-lang.c (ada_read_var_value): Delete function, move
2926 implementation to...
2927 (ada_language::read_var_value): ...here.
2928 (ada_language_data): Delete la_read_var_value initializer.
2929 * c-lang.c (c_language_data): Likewise.
2930 (cplus_language_data): Likewise.
2931 (minimal_language_data): Likewise.
2932 * d-lang.c (d_language_data): Likewise.
2933 * f-lang.c (f_language_data): Likewise.
2934 * findvar.c (default_read_var_value): Rename to...
2935 (language_defn::read_var_value): ...this.
2936 * findvar.c (read_var_value): Update header comment, and change to
2937 call member function instead of function pointer.
2938 * go-lang.c (go_language_data): Likewise.
2939 * language.c (unknown_language_data): Delete la_read_var_value
2940 initializer.
2941 (auto_language_data): Likewise.
2942 * language.h (struct language_data): Delete la_read_var_value
2943 field.
2944 (language_defn::read_var_value): New member function.
2945 (default_read_var_value): Delete declaration.
2946 * m2-lang.c (m2_language_data): Delete la_read_var_value
2947 initializer.
2948 * objc-lang.c (objc_language_data): Likewise.
2949 * opencl-lang.c (opencl_language_data): Likewise.
2950 * p-lang.c (pascal_language_data): Likewise.
2951 * rust-lang.c (rust_language_data): Likewise.
2952 * value.h (default_read_var_value): Delete declaration.
2953
2954 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2955
2956 * ada-lang.c (ada_print_array_index): Delete function, move
2957 implementation to...
2958 (ada_language::print_array_index): ...here.
2959 (ada_language_data): Delete la_print_array_index initializer.
2960 * c-lang.c (c_language_data): Likewise.
2961 (cplus_language_data): Likewise.
2962 (minimal_language_data): Likewise.
2963 * d-lang.c (d_language_data): Likewise.
2964 * f-lang.c (f_language_data): Likewise.
2965 * go-lang.c (go_language_data): Likewise.
2966 * language.c (default_print_array_index): Delete function, move
2967 implementation to...
2968 (language_defn::print_array_index): ...here.
2969 (unknown_language_data): Delete la_print_array_index initializer.
2970 (auto_language_data): Likewise.
2971 * language.h (struct language_data): Delete la_print_array_index
2972 field.
2973 (language_defn::print_array_index): New member function.
2974 (LA_PRINT_ARRAY_INDEX): Update.
2975 (default_print_array_index): Delete declaration.
2976 * m2-lang.c (m2_language_data): Delete la_print_array_index
2977 initializer.
2978 * objc-lang.c (objc_language_data): Likewise.
2979 * opencl-lang.c (opencl_language_data): Likewise.
2980 * p-lang.c (pascal_language_data): Likewise.
2981 * rust-lang.c (rust_language_data): Likewise.
2982
2983 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2984
2985 * gdb/ada-lang.c (ada_language_defn): Convert to...
2986 (ada_language_data): ...this.
2987 (class ada_language): New class.
2988 (ada_language_defn): New static global.
2989 * gdb/c-lang.c (c_language_defn): Convert to...
2990 (c_language_data): ...this.
2991 (class c_language): New class.
2992 (c_language_defn): New static global.
2993 (cplus_language_defn): Convert to...
2994 (cplus_language_data): ...this.
2995 (class cplus_language): New class.
2996 (cplus_language_defn): New static global.
2997 (asm_language_defn): Convert to...
2998 (asm_language_data): ...this.
2999 (class asm_language): New class.
3000 (asm_language_defn): New static global.
3001 (minimal_language_defn): Convert to...
3002 (minimal_language_data): ...this.
3003 (class minimal_language): New class.
3004 (minimal_language_defn): New static global.
3005 * gdb/d-lang.c (d_language_defn): Convert to...
3006 (d_language_data): ...this.
3007 (class d_language): New class.
3008 (d_language_defn): New static global.
3009 * gdb/f-lang.c (f_language_defn): Convert to...
3010 (f_language_data): ...this.
3011 (class f_language): New class.
3012 (f_language_defn): New static global.
3013 * gdb/go-lang.c (go_language_defn): Convert to...
3014 (go_language_data): ...this.
3015 (class go_language): New class.
3016 (go_language_defn): New static global.
3017 * gdb/language.c (unknown_language_defn): Remove declaration.
3018 (current_language): Initialize to nullptr, real initialization is
3019 moved to _initialize_language.
3020 (languages): Delete global.
3021 (language_defn::languages): Define.
3022 (set_language_command): Use language_defn::languages.
3023 (set_language): Likewise.
3024 (range_error): Likewise.
3025 (language_enum): Likewise.
3026 (language_def): Likewise.
3027 (add_set_language_command): Use language_def::languages for the
3028 language list, and language_def to lookup language pointers.
3029 (skip_language_trampoline): Use language_defn::languages.
3030 (unknown_language_defn): Convert to...
3031 (unknown_language_data): ...this.
3032 (class unknown_language): New class.
3033 (unknown_language_defn): New static global.
3034 (auto_language_defn): Convert to...
3035 (auto_language_data): ...this.
3036 (class auto_language): New class.
3037 (auto_language_defn): New static global.
3038 (language_gdbarch_post_init): Use language_defn::languages.
3039 (_initialize_language): Initialize current_language.
3040 * gdb/language.h (struct language_defn): Rename to...
3041 (struct language_data): ...this.
3042 (struct language_defn): New.
3043 (auto_language_defn): Delete.
3044 (unknown_language_defn): Delete.
3045 (minimal_language_defn): Delete.
3046 (ada_language_defn): Delete.
3047 (asm_language_defn): Delete.
3048 (c_language_defn): Delete.
3049 (cplus_language_defn): Delete.
3050 (d_language_defn): Delete.
3051 (f_language_defn): Delete.
3052 (go_language_defn): Delete.
3053 (m2_language_defn): Delete.
3054 (objc_language_defn): Delete.
3055 (opencl_language_defn): Delete.
3056 (pascal_language_defn): Delete.
3057 (rust_language_defn): Delete.
3058 * gdb/m2-lang.c (m2_language_defn): Convert to...
3059 (m2_language_data): ...this.
3060 (class m2_language): New class.
3061 (m2_language_defn): New static global.
3062 * gdb/objc-lang.c (objc_language_defn): Convert to...
3063 (objc_language_data): ...this.
3064 (class objc_language): New class.
3065 (objc_language_defn): New static global.
3066 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3067 (opencl_language_data): ...this.
3068 (class opencl_language): New class.
3069 (opencl_language_defn): New static global.
3070 * gdb/p-lang.c (pascal_language_defn): Convert to...
3071 (pascal_language_data): ...this.
3072 (class pascal_language): New class.
3073 (pascal_language_defn): New static global.
3074 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3075 language pointer, update comment format.
3076 * gdb/rust-lang.c (rust_language_defn): Convert to...
3077 (rust_language_data): ...this.
3078 (class rust_language): New class.
3079 (rust_language_defn): New static global.
3080
3081 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3082
3083 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3084 member variable.
3085 <m_stmt_at_address>: New member variable.
3086 (lnp_state_machine::record_line): Don't record some lines, update
3087 tracking of is_stmt at the same address.
3088 (lnp_state_machine::lnp_state_machine): Initialise new member
3089 variables.
3090
3091 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3092
3093 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3094 "-include gnu-nat-mig.h".
3095 * gnu-nat-mig.h: New file.
3096 * gnu-nat.c: Include "gnu-nat-mig.h".
3097 (exc_server, msg_reply_server, notify_server,
3098 process_reply_server): Remove declarations.
3099
3100 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3101
3102 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3103 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3104 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3105 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3106 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3107 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3108 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3109 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3110 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3111 to gnu_nat_target class.
3112 * gnu-nat.c: Likewise.
3113 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3114 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3115 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3116 object.
3117 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3118 instead of `gnu_target'.
3119
3120 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3121
3122 * i386-gnu-tdep.c: Include "gdbcore.h"
3123 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3124 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3125 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3126 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3127 i386_gnu_sigcontext_addr): New functions
3128 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3129 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3130 tdep.
3131
3132 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3133
3134 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3135 before fork_inferior call. Avoid calling it if target_is_pushed returns
3136 true.
3137
3138 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3139
3140 * gnu-nat.h (gnu_target): New variable declaration.
3141 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3142 gnu_target.
3143 * gnu-nat.c (gnu_target): New variable.
3144 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3145 add_thread_silent, and add_thread calls.
3146 (gnu_nat_target::create_inferior): Pass gnu_target to
3147 add_thread_silent, thread_change_ptid call.
3148 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3149 call.
3150
3151 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3152
3153 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3154 (gnu_nat_target::find_memory_regions): Remove unused
3155 `old_address' variable.
3156
3157 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3158
3159 * gnu-nat.c: Include "gdbarch.h".
3160
3161 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3162
3163 * reply_mig_hack.awk (Error return): Cast function through
3164 void *, to bypass compiler function call check.
3165
3166 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3167
3168 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3169 $(srcdir)/reply_mig_hack.awk.
3170
3171 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3172
3173 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3174
3175 2020-05-30 Jonny Grant <jg@jguk.org>
3176
3177 * configure.ac (ACX_BUGURL): change bug URL to https.
3178
3179 2020-05-30 Pedro Alves <palves@redhat.com>
3180
3181 * cp-support.c (replace_typedefs_template): New.
3182 (replace_typedefs_qualified_name): Handle
3183 DEMANGLE_COMPONENT_TEMPLATE.
3184
3185 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3186
3187 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3188 dwarf2/index-cache.h, dwarf2/index-write.c,
3189 dwarf2/index-write.h, dwarf2/line-header.c,
3190 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3191 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3192 variables and fields from `dwarf2_per_objfile` to just
3193 `per_objfile` throughout.
3194
3195 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3196
3197 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3198 <push_dwarf_reg_entry_value>: Add comment.
3199
3200 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3201 Keith Seitz <keiths@redhat.com>
3202
3203 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3204 instead of PyEval_ReleaseLock.
3205 (class gdbpy_gil): Move to earlier in file.
3206 (finalize_python): Set gdb_python_initialized.
3207 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3208 when not initialized.
3209
3210 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3211
3212 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3213 <push_dwarf_reg_entry_value>: Remove assert. Override
3214 per_objfile with caller_per_objfile.
3215
3216 2020-05-28 Tom de Vries <tdevries@suse.de>
3217
3218 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3219 PR gold/15646 workaround to symbol kind "type".
3220
3221 2020-05-27 Tom Tromey <tromey@adacore.com>
3222
3223 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3224
3225 2020-05-27 Tom Tromey <tromey@adacore.com>
3226
3227 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3228 Use htab_find_with_hash.
3229 <add_abbrev>: Remove "abbrev_number" parameter.
3230 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3231 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3232 (hash_abbrev): Add comment.
3233 (abbrev_table::lookup_abbrev): Move to header file.
3234 (abbrev_table::read): Update.
3235
3236 2020-05-27 Tom Tromey <tromey@adacore.com>
3237
3238 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3239 method.
3240 <canonical_name>: New member.
3241 <raw_name>: Rename from "name".
3242 (partial_die_info): Initialize canonical_name.
3243 (scan_partial_symbols): Check raw_name.
3244 (partial_die_parent_scope, partial_die_full_name)
3245 (add_partial_symbol, add_partial_subprogram)
3246 (add_partial_enumeration, load_partial_dies): Use "name" method.
3247 (partial_die_info::name): New method.
3248 (partial_die_info::read, guess_partial_die_structure_name)
3249 (partial_die_info::fixup): Update.
3250
3251 2020-05-27 Tom Tromey <tromey@adacore.com>
3252
3253 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3254 <get_ref_die_offset>: Inline.
3255 <get_ref_die_offset_complaint>: New method.
3256 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3257 (attribute::get_ref_die_offset_complaint): Rename from
3258 get_ref_die_offset. Just issue complaint.
3259
3260 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3261
3262 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3263
3264 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3265
3266 * exec.c (exec_file_attach): Use errno value of first openp failure.
3267
3268 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3269
3270 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3271 Don't close thread handle.
3272
3273 2020-05-27 Tom Tromey <tom@tromey.com>
3274 Simon Marchi <simon.marchi@efficios.com>
3275
3276 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3277 shared_ptr.
3278 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3279 member.
3280 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3281 dwarf2_per_bfd_objfile_data_key>: New globals.
3282 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3283 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3284 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3285 shared.
3286 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3287 short-circuit when sharing.
3288 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3289 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3290
3291 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3292
3293 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3294 to...
3295 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3296 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3297
3298 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3299
3300 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3301 build_name_components, find_name_components_bounds>:
3302 Add per_objfile parameter.
3303 (struct mapped_index) <symbol_name_at>: Likewise.
3304 (struct mapped_debug_names): Remove constructor.
3305 <dwarf2_per_objfile>: Remove field.
3306 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3307 (mapped_index_base::find_name_components_bounds,
3308 mapped_index_base::build_name_components,
3309 dw2_expand_symtabs_matching_symbol): Likewise.
3310 (class mock_mapped_index) <symbol_name_at>: Likewise.
3311 (check_match): Likewise.
3312 (check_find_bounds_finds): Likewise.
3313 (test_mapped_index_find_name_component_bounds): Update.
3314 (CHECK_MATCH): Update.
3315 (dw2_expand_symtabs_matching): Update.
3316 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3317 per_objfile parameter.
3318 <find_vec_in_debug_names>: Likewise.
3319 <m_per_objfile>: New field.
3320 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3321 parameter.
3322 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3323 (dw2_debug_names_iterator::next): Update.
3324 (dw2_debug_names_lookup_symbol): Update.
3325 (dw2_debug_names_expand_symtabs_for_function): Update.
3326 (dw2_debug_names_map_matching_symbols): Update.
3327 (dw2_debug_names_expand_symtabs_matching): Update.
3328 (dwarf2_read_debug_names): Update.
3329
3330 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3331
3332 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3333 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3334 move to dwarf2_per_objfile.
3335 <read_in_chain>: Remove.
3336 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3337 remove_all_cus, age_comp_units>: New methods.
3338 <m_dwarf2_cus>: New member.
3339 (struct dwarf2_per_cu_data) <cu>: Remove.
3340 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3341 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3342 moved to methods of dwarf2_per_objfile.
3343 (dwarf2_clear_marks): Remove.
3344 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3345 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3346 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3347 (dwarf2_per_objfile::remove_all_cus): New.
3348 (class free_cached_comp_units) <~free_cached_comp_units>:
3349 Update.
3350 (load_cu): Update.
3351 (dw2_do_instantiate_symtab): Adjust.
3352 (fill_in_sig_entry_from_dwo_entry): Adjust.
3353 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3354 (cutu_reader::cutu_reader): Likewise.
3355 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3356 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3357 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3358 and dwarf2_per_objfile::age_comp_units.
3359 (load_partial_comp_unit): Update.
3360 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3361 (process_queue): Likewise.
3362 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3363 backlink.
3364 (dwarf2_read_addr_index): Likewise.
3365 (follow_die_offset): Likewise.
3366 (dwarf2_fetch_die_loc_sect_off): Likewise.
3367 (dwarf2_fetch_constant_bytes): Likewise.
3368 (dwarf2_fetch_die_type_sect_off): Likewise.
3369 (follow_die_sig_1): Likewise.
3370 (load_full_type_unit): Likewise.
3371 (read_signatured_type): Likewise.
3372 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3373 (dwarf2_cu::~dwarf2_cu): Remove.
3374 (dwarf2_per_objfile::get_cu): New.
3375 (dwarf2_per_objfile::set_cu): New.
3376 (age_cached_comp_units): Rename to...
3377 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3378 to std::unordered_map.
3379 (free_one_cached_comp_unit): Rename to...
3380 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3381 to std::unordered_map.
3382 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3383 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3384 a dwarf2_per_objfile in data.
3385 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3386 (dwarf2_clear_marks): Remove.
3387
3388 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3389
3390 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3391 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3392 (init_tu_and_read_dwo_dies): Likewise.
3393 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3394 (cutu_reader::cutu_reader): Likewise.
3395 (load_partial_comp_unit): Likewise.
3396 (process_psymtab_comp_unit): Update.
3397 (build_type_psymtabs_1): Update.
3398 (process_skeletonless_type_unit): Update.
3399 (load_full_comp_unit): Update.
3400 (find_partial_die): Update.
3401 (dwarf2_read_addr_index): Update.
3402 (read_signatured_type): Update.
3403
3404 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3405
3406 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3407 m_header_read_in>: New fields.
3408 <get_header>: New method.
3409 * dwarf2/read.c (per_cu_header_read_in): Remove.
3410 (dwarf2_per_cu_data::get_header): New.
3411 (dwarf2_per_cu_data::addr_size): Update.
3412 (dwarf2_per_cu_data::offset_size): Update.
3413 (dwarf2_per_cu_data::ref_addr_size): Update.
3414
3415 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3416
3417 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3418 (dw2_do_instantiate_symtab): Update.
3419 (queue_and_load_all_dwo_tus): Change parameter from
3420 dwarf2_per_cu_data to dwarf2_cu.
3421 (dwarf2_fetch_die_loc_sect_off): Update.
3422 (dwarf2_fetch_constant_bytes): Update.
3423 (dwarf2_fetch_die_type_sect_off): Update.
3424
3425 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3426
3427 * dwarf2/read.c (process_full_comp_unit,
3428 process_full_type_unit): Remove per_cu, per_objfile paramters.
3429 Add dwarf2_cu parameter.
3430 (process_queue): Update.
3431
3432 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3433
3434 * dwarf2/read.c (create_cu_from_index_list): Replace
3435 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3436 (create_cus_from_index_list): Likewise.
3437 (create_cus_from_index): Likewise.
3438 (create_signatured_type_table_from_index): Likewise.
3439 (create_cus_from_debug_names_list): Likewise.
3440 (create_cus_from_debug_names): Likewise.
3441 (dwarf2_read_gdb_index): Update.
3442 (dwarf2_read_debug_names): Update.
3443
3444 2020-05-27 Tom Tromey <tom@tromey.com>
3445 Simon Marchi <simon.marchi@efficios.com>
3446
3447 * dwarf2/read.h (struct dwarf2_per_objfile)
3448 <get_type_for_signatured_type, set_type_for_signatured_type>:
3449 New methods.
3450 <m_type_map>: New member.
3451 (struct signatured_type) <type>: Remove.
3452 * dwarf2/read.c
3453 (dwarf2_per_objfile::get_type_for_signatured_type,
3454 dwarf2_per_objfile::set_type_for_signatured_type): New.
3455 (get_signatured_type): Use new methods.
3456
3457 2020-05-27 Tom Tromey <tom@tromey.com>
3458 Simon Marchi <simon.marchi@efficios.com>
3459
3460 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3461 (struct dwarf2_per_objfile) <type_units>: New member.
3462 <get_type_unit_group_unshareable>: New method.
3463 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3464 num_symtabs, symtabs>: Remove; move to
3465 type_unit_group_unshareable.
3466 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3467 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3468 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3469
3470 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3471
3472 * dwarf2/read.h (struct dwarf2_per_cu_data):
3473 <dwarf2_per_objfile>: Remove.
3474 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3475 dwarf2_per_objfile.
3476 (create_signatured_type_table_from_index): Likewise.
3477 (create_signatured_type_table_from_debug_names): Likewise.
3478 (create_debug_type_hash_table): Likewise.
3479 (fill_in_sig_entry_from_dwo_entry): Likewise.
3480 (create_type_unit_group): Likewise.
3481 (read_comp_units_from_section): Likewise.
3482 (create_cus_hash_table): Likewise.
3483
3484 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3485
3486 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3487 dwarf2_per_cu_data::dwarf2_per_objfile.
3488 (compute_compunit_symtab_includes): Likewise.
3489 (dwarf2_cu::start_symtab): Likewise.
3490
3491 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3492
3493 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3494 parameter.
3495 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3496 (read_namespace_alias): Update.
3497 (lookup_die_type): Update.
3498 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3499 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3500 Update.
3501 (disassemble_dwarf_expression): Update.
3502
3503 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3504
3505 * dwarf2/read.h (struct dwarf2_queue_item): Add
3506 dwarf2_per_objfile parameter, assign new parameter.
3507 <per_objfile>: New field.
3508 * dwarf2/read.c (free_one_cached_comp_unit): Add
3509 dwarf2_per_objfile parameter.
3510 (queue_comp_unit): Likewise.
3511 (dw2_do_instantiate_symtab): Update.
3512 (process_psymtab_comp_unit): Update.
3513 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3514 (process_imported_unit_die): Update.
3515 (queue_and_load_dwo_tu): Update.
3516 (follow_die_offset): Update.
3517 (follow_die_sig_1): Update.
3518
3519 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3520
3521 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3522 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3523 (read_call_site_scope): Assign per_objfile.
3524 (dwarf2_per_cu_data::objfile): Remove.
3525 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3526 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3527 dwarf2_per_objfile parameter.
3528 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3529 dwarf2_per_objfile parameter.
3530 (dwarf_expr_reg_to_entry_parameter): Add output
3531 dwarf2_per_objfile parameter.
3532 (locexpr_get_frame_base): Update.
3533 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3534 <push_dwarf_reg_entry_value>: Update.
3535 <call_site_to_target_addr>: Update.
3536 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3537 parameter.
3538 (value_of_dwarf_reg_entry): Update.
3539 (rw_pieced_value): Update.
3540 (indirect_synthetic_pointer): Update.
3541 (dwarf2_evaluate_property): Update.
3542 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3543 parameter.
3544 (locexpr_read_variable): Update.
3545 (locexpr_get_symbol_read_needs): Update.
3546 (loclist_read_variable): Update.
3547
3548 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3549
3550 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3551 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3552 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3553 parameter.
3554 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3555 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3556 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3557 parameter.
3558 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3559 sect_variable_value): Add dwarf2_per_objfile parameter.
3560 (class dwarf_evaluate_loc_desc) <dwarf_call,
3561 dwarf_variable_value>: Update.
3562 (fetch_const_value_from_synthetic_pointer): Add
3563 dwarf2_per_objfile parameter.
3564 (fetch_const_value_from_synthetic_pointer): Update.
3565 (coerced_pieced_ref): Update.
3566 (class symbol_needs_eval_context) <dwarf_call,
3567 dwarf_variable_value>: Update.
3568 (dwarf2_compile_expr_to_ax): Update.
3569
3570 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3571
3572 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3573 parameter.
3574 (dwarf2_evaluate_loc_desc_full): Update.
3575
3576 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3577
3578 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3579 parameter.
3580 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3581 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3582 dwarf2_per_objfile parameter.
3583 (decode_debug_loc_dwo_addresses): Likewise.
3584 (dwarf2_find_location_expression): Update.
3585 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3586 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3587 parameter.
3588 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3589 parameter.
3590 (locexpr_describe_location_1): Likewise.
3591 (locexpr_describe_location): Update.
3592
3593 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3594
3595 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3596 Remove.
3597 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3598 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3599 (dwarf2_compile_property_to_c): Update.
3600 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3601 use text offset from objfile.
3602 (locexpr_tracepoint_var_ref): Update.
3603 (locexpr_generate_c_location): Update.
3604 (loclist_describe_location): Update.
3605 (loclist_tracepoint_var_ref): Update.
3606 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3607 dwarf2_per_objfile parameter.
3608 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3609 use text offset from objfile.
3610 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3611
3612 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3613
3614 * dwarf2/expr.h (struct dwarf_expr_context)
3615 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3616 <offset>: Remove.
3617 <per_objfile>: New member.
3618 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3619 dwarf2_per_objfile parameter. Don't set offset, set
3620 per_objfile.
3621 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3622 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3623 a dwarf2_per_objfile object instead of an offset.
3624 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3625 constructor.
3626 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3627 to dwarf2_expr_executor constructor. Don't set offset.
3628 (dwarf2_fetch_cfa_info): Update.
3629 (struct dwarf2_frame_cache) <text_offset>: Remove.
3630 <per_objfile>: New field.
3631 (dwarf2_frame_cache): Update.
3632 (dwarf2_frame_prev_register): Update.
3633 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3634 <dwarf_evaluate_loc_desc>: Add constructor.
3635 (dwarf2_evaluate_loc_desc_full): Update.
3636 (dwarf2_locexpr_baton_eval): Update.
3637 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3638 Add constructor.
3639 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3640
3641 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3642
3643 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3644 addr_sized_int_type>: Move to dwarf2_cu.
3645 <int_type>: Move to dwarf2_per_objfile.
3646 (struct dwarf2_per_objfile) <int_type>: Move here.
3647 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3648 addr_sized_int_type>: Move here.
3649 (read_func_scope): Update.
3650 (read_array_type): Update.
3651 (read_tag_string_type): Update.
3652 (attr_to_dynamic_prop): Update.
3653 (dwarf2_per_cu_data::int_type): Rename to...
3654 (dwarf2_per_objfile::int_type): ... this.
3655 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3656 (dwarf2_cu::addr_sized_int_type): ... this.
3657 (read_subrange_type): Update.
3658 (dwarf2_per_cu_data::addr_type): Rename to...
3659 (dwarf2_cu::addr_type): ... this.
3660 (set_die_type): Update.
3661
3662 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3663
3664 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3665 data through per_cu->cu.
3666
3667 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3668
3669 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3670 dwarf2_per_cu_data parameter fo dwarf2_cu.
3671 (lookup_dwo_type_unit): Likewise.
3672 (read_cutu_die_from_dwo): Likewise.
3673 (lookup_dwo_unit): Likewise.
3674 (open_and_init_dwo_file): Likewise.
3675 (lookup_dwo_cutu): Likewise.
3676 (lookup_dwo_comp_unit): Likewise.
3677 (lookup_dwo_type_unit): Likewise.
3678 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3679 (cutu_reader::cutu_reader): Update.
3680
3681 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3682
3683 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3684 parameter.
3685 (process_full_type_unit): Likewise.
3686 (process_queue): Update.
3687
3688 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3689
3690 * dwarf2/read.c (recursively_compute_inclusions): Add
3691 dwarf2_per_objfile parameter.
3692 (compute_compunit_symtab_includes): Likewise.
3693 (process_cu_includes): Update.
3694
3695 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3696
3697 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3698 parameter.
3699 (create_type_unit_group): Update.
3700 (process_psymtab_comp_unit_reader): Update.
3701 (build_type_psymtabs_reader): Update.
3702
3703 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3704
3705 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3706 object through m_this_cu->cu.
3707
3708 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3709
3710 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3711 the info parameter.
3712 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3713
3714 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3715
3716 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3717 per_objfile parameter.
3718 (load_full_type_unit): Add per_objfile parameter.
3719 (read_signatured_type): Likewise.
3720 (load_full_comp_unit): Likewise.
3721 (load_cu): Likewise.
3722 (dw2_do_instantiate_symtab): Likewise.
3723 (dw2_get_file_names): Likewise.
3724 (dw2_map_symtabs_matching_filename): Update.
3725 (dw_expand_symtabs_matching_file_matcher): Update.
3726 (dw2_map_symbol_filenames): Update.
3727 (process_psymtab_comp_unit): Add per_objfile parameter.
3728 (build_type_psymtabs_1): Update.
3729 (process_skeletonless_type_unit): Update.
3730 (dwarf2_build_psymtabs_hard): Update.
3731 (load_partial_comp_unit): Add per_objfile parameter.
3732 (scan_partial_symbols): Update.
3733 (load_full_comp_unit): Add per_objfile parameter.
3734 (process_imported_unit_die): Update.
3735 (create_cus_hash_table): Update.
3736 (find_partial_die): Update.
3737 (dwarf2_read_addr_index): Update.
3738 (follow_die_offset): Update.
3739 (dwarf2_fetch_die_loc_sect_off): Update.
3740 (dwarf2_fetch_constant_bytes): Update.
3741 (dwarf2_fetch_die_type_sect_off): Update.
3742 (follow_die_sig_1): Update.
3743 (load_full_type_unit): Add per_objfile parameter.
3744 (read_signatured_type): Likewise.
3745
3746 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3747
3748 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3749 of objfile_name.
3750
3751 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3752
3753 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3754 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3755 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3756 field.
3757 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3758 (create_cus_from_index): Update.
3759 (dwarf2_read_gdb_index): Update.
3760 (create_cus_from_debug_names): Update.
3761 (dwarf2_read_debug_names): Update.
3762 (get_abbrev_section_for_cu): Update.
3763 (create_all_comp_units): Update.
3764 (read_attribute_value): Update.
3765 (get_debug_line_section): Update.
3766 * dwarf2/index-cache.c (index_cache::store): Update.
3767 * dwarf2/index-write.c (save_gdb_index_command): Update.
3768 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3769
3770 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3771
3772 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3773 member.
3774 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3775 dwarf2_per_cu_data::per_bfd.
3776 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3777 (create_type_unit_group): Likewise.
3778 (queue_comp_unit): Remove reference to
3779 per_cu->dwarf2_per_objfile.
3780 (maybe_queue_comp_unit): Likewise.
3781 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3782 (create_cus_hash_table): Assign new field.
3783
3784 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3785
3786 * dwarf2/read.c: Replace
3787 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3788 dwarf2_cu->per_objfile throughout.
3789
3790 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3791
3792 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3793 parameter, don't use per_cu->dwarf2_per_objfile.
3794 (dw2_instantiate_symtab): Likewise.
3795 (dw2_find_last_source_symtab): Update.
3796 (dw2_map_expand_apply): Update.
3797 (dw2_lookup_symbol): Update.
3798 (dw2_expand_symtabs_for_function): Update.
3799 (dw2_expand_all_symtabs): Update.
3800 (dw2_expand_symtabs_with_fullname): Update.
3801 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3802 don't use per_cu->dwarf2_per_objfile.
3803 (dw2_expand_marked_cus): Update.
3804 (dw2_find_pc_sect_compunit_symtab): Update.
3805 (dw2_debug_names_lookup_symbol): Update.
3806 (dw2_debug_names_expand_symtabs_for_function): Update.
3807 (dw2_debug_names_map_matching_symbols): Update.
3808 (dwarf2_psymtab::expand_psymtab): Update.
3809
3810 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3811
3812 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3813 <per_objfile>: New member.
3814 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3815 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3816 call to dwarf2_cu.
3817 (cutu_reader::cutu_reader): Update.
3818 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3819
3820 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3821
3822 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3823 struct dwarf2_per_objfile.
3824 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3825 dwarf2_per_bfd.
3826 * dwarf2/read.c (set_die_type): Update.
3827 (get_die_type_at_offset): Update.
3828
3829 2020-05-27 Tom Tromey <tom@tromey.com>
3830 Simon Marchi <simon.marchi@efficios.com>
3831
3832 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3833 method.
3834 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3835 get_symtab, set_symtab>: New methods.
3836 <m_symtabs>: New field.
3837 (struct dwarf2_psymtab): Derive from partial_symtab.
3838 <readin_p, get_compunit_symtab>: Declare methods.
3839 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3840 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3841 New methods.
3842 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3843 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3844 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3845 (dw2_symtab_iter_next, dw2_print_stats)
3846 (dw2_expand_symtabs_with_fullname)
3847 (dw2_expand_symtabs_matching_one)
3848 (dw_expand_symtabs_matching_file_matcher)
3849 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3850 (dw2_debug_names_iterator::next)
3851 (dw2_debug_names_map_matching_symbols)
3852 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3853 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3854 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3855 New methods.
3856 (get_compunit_symtab, process_full_comp_unit)
3857 (process_full_type_unit): Update.
3858 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3859
3860 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3861
3862 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3863 then introduce a new dwarf2_per_objfile type.
3864 <read_line_string>: Move to the new dwarf2_per_objfile type.
3865 <objfile>: Likewise.
3866 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3867 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3868 dwarf2_per_objfile->per_bfd.
3869 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3870 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3871 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3872 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3873 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3874 (dwarf2_per_objfile::locate_sections): Rename to...
3875 (dwarf2_per_bfd::locate_sections): ... this.
3876 (dwarf2_per_objfile::get_cutu): Rename to...
3877 (dwarf2_per_bfd::get_cutu): ... this.
3878 (dwarf2_per_objfile::get_cu): Rename to...
3879 (dwarf2_per_bfd::get_cu): ... this.
3880 (dwarf2_per_objfile::get_tu): Rename to...
3881 (dwarf2_per_bfd::get_tu): ... this.
3882 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3883 (dwarf2_per_bfd::allocate_per_cu): ... this.
3884 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3885 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3886 (get_gdb_index_contents_ftype): Change parameter from
3887 dwarf2_per_objfile to dwarf2_per_bfd.
3888 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3889 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3890
3891 2020-05-27 Tom Tromey <tom@tromey.com>
3892 Simon Marchi <simon.marchi@efficios.com>
3893
3894 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3895 (allocate_piece_closure): Set "per_objfile" member.
3896 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3897 (locexpr_describe_location, loclist_describe_location): Use new
3898 member.
3899 * dwarf2/read.c (read_call_site_scope)
3900 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3901 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3902 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3903 handle_data_member_location): Set per_objfile member.
3904 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3905 member.
3906 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3907
3908 2020-05-27 Tom Tromey <tom@tromey.com>
3909
3910 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3911 allocate_signatured_type>: Declare new methods.
3912 <m_num_psymtabs>: New member.
3913 (struct dwarf2_per_cu_data) <index>: New member.
3914 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3915 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3916 (create_cu_from_index_list): Use allocate_per_cu.
3917 (create_signatured_type_table_from_index)
3918 (create_signatured_type_table_from_debug_names)
3919 (create_debug_type_hash_table, add_type_unit)
3920 (read_comp_units_from_section): Use allocate_signatured_type.
3921
3922 2020-05-27 Tom Tromey <tom@tromey.com>
3923
3924 * psymtab.c (partial_map_expand_apply)
3925 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3926 (psym_lookup_global_symbol_language)
3927 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3928 (psym_print_stats, psym_expand_symtabs_for_function)
3929 (psym_map_symbol_filenames, psym_map_matching_symbols)
3930 (psym_expand_symtabs_matching)
3931 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3932 (maintenance_check_psymtabs): Update.
3933 * psympriv.h (struct partial_symtab) <readin_p,
3934 get_compunit_symtab>: Add objfile parameter.
3935 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3936 Likewise.
3937 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3938 get_compunit_symtab>: Likewise.
3939 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3940
3941 2020-05-27 Tom Tromey <tom@tromey.com>
3942
3943 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3944 member.
3945 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3946 (create_cu_from_index_list)
3947 (create_signatured_type_table_from_index)
3948 (create_signatured_type_table_from_debug_names)
3949 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3950 (dwarf2_create_include_psymtab)
3951 (create_debug_type_hash_table, add_type_unit)
3952 (create_type_unit_group, read_comp_units_from_section)
3953 (dwarf2_compute_name, create_cus_hash_table)
3954 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3955 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3956 obstack.
3957 (dw2_get_real_path): Likewise. Change argument to
3958 dwarf2_per_objfile.
3959
3960 2020-05-27 Luis Machado <luis.machado@linaro.org>
3961
3962 PR tdep/26000
3963 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3964 for ldrd (immediate).
3965
3966 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3967
3968 * command.h: Add comment giving the name of class_tui.
3969 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3970 create the fake command for the help for class_tui.
3971
3972 2020-05-26 Tom Tromey <tromey@adacore.com>
3973
3974 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3975 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3976 (val_atr): New function.
3977 (value_val_atr): Use it.
3978 * ada-valprint.c (print_optional_low_bound): Change low bound
3979 handling for enums.
3980 (val_print_packed_array_elements): Don't call discrete_position.
3981 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3982 discrete_position for enum types.
3983 * language.c (default_print_array_index): Change type.
3984 * language.h (struct language_defn) <la_print_array_index>: Add
3985 index_type parameter, change type of index_value.
3986 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3987 (default_print_array_index): Update.
3988 * valprint.c (maybe_print_array_index): Don't call
3989 value_from_longest. Update.
3990 (value_print_array_elements): Don't call discrete_position.
3991
3992 2020-05-26 Tom Tromey <tromey@adacore.com>
3993
3994 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3995 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3996
3997 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3998
3999 PR gdb/13519
4000 * avr-tdep.c (avr_integer_to_address): Return data or code
4001 address accordingly to the second 'type' argument of the
4002 function.
4003
4004 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4005
4006 * infcmd.c, inferior.h: (construct_inferior_arguments):
4007 Moved function from here to gdbsupport/common-inferior.{h,cc}
4008
4009 2020-05-23 Tom Tromey <tom@tromey.com>
4010
4011 Revert commit eca1f90c:
4012 * NEWS: Remove entry for completion styling.
4013 * completer.c (_rl_completion_prefix_display_length): Move
4014 declaration later.
4015 (gdb_fnprint): Revert.
4016 (gdb_display_match_list_1): Likewise.
4017 * cli/cli-style.c (completion_prefix_style)
4018 (completion_difference_style, completion_suffix_style): Remove.
4019 (_initialize_cli_style): Revert.
4020 * cli/cli-style.h (completion_prefix_style)
4021 (completion_difference_style, completion_suffix_style): Don't
4022 declare.
4023
4024 2020-05-24 Pedro Alves <palves@redhat.com>
4025
4026 * symtab.c (completion_list_add_name): Return boolean indication
4027 of whether the symbol matched.
4028 (completion_list_add_symbol): Don't try to remove C++ aliases if
4029 the symbol didn't match in the first place.
4030 * symtab.h (completion_list_add_name): Return bool.
4031
4032 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4033
4034 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4035 type::field.
4036
4037 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4038
4039 GDB 9.2 released.
4040
4041 2020-05-23 Tom Tromey <tom@tromey.com>
4042
4043 * NEWS: Add entry for completion styling.
4044 * completer.c (_rl_completion_prefix_display_length): Move
4045 declaration earlier.
4046 (gdb_fnprint): Use completion_style.
4047 (gdb_display_match_list_1): Likewise.
4048 * cli/cli-style.c (completion_prefix_style)
4049 (completion_difference_style, completion_suffix_style): New
4050 globals.
4051 (_initialize_cli_style): Register new globals.
4052 * cli/cli-style.h (completion_prefix_style)
4053 (completion_difference_style, completion_suffix_style): Declare.
4054
4055 2020-05-23 Pedro Alves <palves@redhat.com>
4056
4057 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4058 (parse_escape): Use ISDIGIT instead of isdigit.
4059 (puts_debug): Use gdb_isprint instead of isprint.
4060 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4061 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4062 ISSPACE instead of isspace.
4063 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4064 instead of isspace.
4065 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4066 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4067 instead of isxdigit and ISDIGIT instead of isdigit.
4068
4069 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4070
4071 * gdbtypes.h (struct type) <field>: New method.
4072 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4073 or type::field.
4074
4075 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4076
4077 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4078 (TYPE_FIELDS): Use type::fields. Change all call sites that
4079 modify the propery to use type::set_fields instead.
4080
4081 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4084 type::num_fields instead.
4085
4086 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4087
4088 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4089 methods.
4090 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4091 that modify the number of fields to use type::set_num_fields
4092 instead.
4093
4094 2020-05-22 Tom Tromey <tromey@adacore.com>
4095
4096 * compile/compile-object-load.h (munmap_list_free): Don't
4097 declare.
4098
4099 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4100
4101 * annotate.c (annotate_source_line): Update return type, add call
4102 to update current symtab and line.
4103 * annotate.h (annotate_source_line): Update return type, and
4104 extend header comment.
4105 * source.c (info_line_command): Check annotation_level before
4106 calling annotate_source_line.
4107 * stack.c (print_frame_info): If calling annotate_source_line
4108 returns true, then don't print any other source line information.
4109
4110 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4111
4112 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4113
4114 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4115
4116 * coffread.c (patch_type): Remove NULL check before xfree.
4117 * corefile.c (set_gnutarget): Likewise.
4118 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4119 * exec.c (build_section_table): Likewise.
4120 * remote.c (remote_target::pass_signals): Likewise.
4121 * utils.c (n_spaces): Likewise.
4122 * cli/cli-script.c (document_command): Likewise.
4123 * i386-windows-tdep.c (core_process_module_section): Likewise.
4124 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4125
4126 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4127
4128 * symfile.c (reread_symbols): Clear objfile's section_offsets
4129 vector and section indices, re-compute them by calling
4130 sym_offsets.
4131
4132 2020-05-20 Tom Tromey <tromey@adacore.com>
4133
4134 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4135 (desc_one_bound, desc_index_type): Compute field name.
4136
4137 2020-05-20 Tom de Vries <tdevries@suse.de>
4138
4139 PR symtab/25833
4140 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4141
4142 2020-05-20 Alan Modra <amodra@gmail.com>
4143
4144 PR 25993
4145 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4146 bfd_set_filename.
4147 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4148 passed to bfd_set_filename.
4149 * symfile-mem.c (add_vsyscall_page): Likewise for string
4150 passed to symbol_file_add_from_memory.
4151 (symbol_file_add_from_memory): Make name param a const char* and
4152 don't strdup.
4153
4154 2020-05-20 Alan Modra <amodra@gmail.com>
4155
4156 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4157 rather than accessing bfd->filename directly.
4158 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4159 and use bfd_section_name.
4160 * dwarf2/frame.c (decode_frame_entry): Likewise.
4161 * exec.c (exec_set_section_address): Likewise.
4162 * solib-aix.c (solib_aix_bfd_open): Likewise.
4163 * stap-probe.c (get_stap_base_address): Likewise.
4164 * symfile.c (reread_symbols): Likewise.
4165
4166 2020-05-19 Tom Tromey <tromey@adacore.com>
4167
4168 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4169
4170 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4171
4172 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4173
4174 2020-05-19 Pedro Alves <palves@redhat.com>
4175
4176 * NEWS (set exec-file-mismatch): Adjust entry.
4177 * exec.c: Include "build-id.h".
4178 (validate_exec_file): Try to match build IDs instead of filenames.
4179 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4180 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4181 and pass down 'warn_if_slow'.
4182 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4183 gdb_bfd_open_closure to pass it down.
4184 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4185
4186 2020-05-19 Pedro Alves <palves@redhat.com>
4187
4188 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4189 * target.c (target_fileio_open_1): Rename to target_fileio_open
4190 and make extern. Use bool.
4191 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4192 (target_fileio_read_alloc_1): Adjust.
4193 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4194 (target_fileio_open_warn_if_slow): Delete declaration.
4195
4196 2020-05-19 Pedro Alves <palves@redhat.com>
4197
4198 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4199 Adjust all callers.
4200
4201 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4202
4203 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4204 whether disp is negative.
4205
4206 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4207
4208 * symfile.h (struct symfile_segment_data)
4209 <~symfile_segment_data>: Remove.
4210 <segment_info>: Change to std::vector.
4211 * symfile.c (default_symfile_segments): Update.
4212 * elfread.c (elf_symfile_segments): Update.
4213
4214 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4215
4216 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4217 <segments>: New.
4218 <segment_bases, segment_sizes>: Remove.
4219 * symfile.c (default_symfile_segments): Update.
4220 * elfread.c (elf_symfile_segments): Update.
4221 * remote.c (remote_target::get_offsets): Update.
4222 * solib-target.c (solib_target_relocate_section_addresses):
4223 Update.
4224
4225 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4226
4227 * symfile.h (struct symfile_segment_data): Initialize fields.
4228 <~symfile_segment_data>: Add.
4229 (symfile_segment_data_up): New.
4230 (struct sym_fns) <sym_segments>: Return a
4231 symfile_segment_data_up.
4232 (default_symfile_segments): Return a symfile_segment_data_up.
4233 (free_symfile_segment_data): Remove.
4234 (get_symfile_segment_data): Return a symfile_segment_data_up.
4235 * symfile.c (default_symfile_segments): Likewise.
4236 (get_symfile_segment_data): Likewise.
4237 (free_symfile_segment_data): Remove.
4238 (symfile_find_segment_sections): Update.
4239 * elfread.c (elf_symfile_segments): Return a
4240 symfile_segment_data_up.
4241 * remote.c (remote_target::get_offsets): Update.
4242 * solib-target.c (solib_target_relocate_section_addresses):
4243 Update.
4244 * symfile-debug.c (debug_sym_segments): Return a
4245 symfile_segment_data_up.
4246
4247 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4248
4249 PR build/25981
4250 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4251 Hardcode register numbers.
4252
4253 PR build/25981
4254 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4255 procfs_find_LDT_entry): Remove.
4256 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4257 procfs_find_LDT_entry): Remove.
4258 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4259 Remove.
4260
4261 2020-05-17 Pedro Alves <palves@redhat.com>
4262 Andrew Burgess <andrew.burgess@embecosm.com>
4263 Keno Fischer <keno@juliacomputing.com>
4264
4265 PR gdb/25741
4266 * breakpoint.c (build_target_condition_list): Update comments.
4267 (build_target_command_list): Update comments and skip matching
4268 locations.
4269 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4270 a separate function. Simplify "set breakpoint auto-hw off"
4271 handling.
4272 (insert_breakpoints): Update comment.
4273 (tracepoint_locations_match): New parameter. For breakpoints,
4274 compare location types too, if the caller wants to.
4275 (handle_automatic_hardware_breakpoints): New functions.
4276 (bp_location_is_less_than): Also sort by location type and
4277 hardware breakpoint length.
4278 (update_global_location_list): Handle "set breakpoint auto-hw on"
4279 here.
4280 (update_breakpoint_locations): Ask breakpoint_locations_match to
4281 ignore location types.
4282
4283 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4284
4285 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4286 type::name instead.
4287
4288 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4289
4290 * gdbtypes.h (struct type) <name, set_name>: New methods.
4291 (TYPE_CODE): Use type::name. Change all call sites used to set
4292 the name to use type::set_name instead.
4293
4294 2020-05-16 Tom Tromey <tom@tromey.com>
4295
4296 * top.c (quit_force): Update.
4297 * infrun.c (handle_no_resumed): Update.
4298 * top.h (all_uis): New function.
4299 (ALL_UIS): Remove.
4300
4301 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4302
4303 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4304
4305 2020-05-16 Pedro Alves <palves@redhat.com>
4306
4307 * ia64-linux-nat.c
4308 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4309 Declare method.
4310 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4311
4312 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4313
4314 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4315 (sparc64_adi_info): Likewise.
4316
4317 2020-05-15 Tom Tromey <tom@tromey.com>
4318
4319 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4320 block_objfile.
4321 (lookup_objfile_from_block): Remove.
4322 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4323 (lookup_global_symbol): Use block_objfile.
4324 * symtab.h (lookup_objfile_from_block): Don't declare.
4325 * printcmd.c (clear_dangling_display_expressions): Use
4326 block_objfile.
4327 * parse.c (operator_check_standard): Use block_objfile.
4328
4329 2020-05-15 Tom Tromey <tom@tromey.com>
4330
4331 * language.c (language_alloc_type_symbol): Set
4332 SYMBOL_SECTION.
4333 * symtab.c (initialize_objfile_symbol): Remove.
4334 (allocate_symbol): Remove.
4335 (allocate_template_symbol): Remove.
4336 * dwarf2/read.c (fixup_go_packaging): Use "new".
4337 (new_symbol): Use "new".
4338 (read_variable): Don't call initialize_objfile_symbol. Use
4339 "new".
4340 (read_func_scope): Use "new".
4341 * xcoffread.c (process_xcoff_symbol): Don't call
4342 initialize_objfile_symbol.
4343 (SYMBOL_DUP): Remove.
4344 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4345 "new".
4346 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4347 (allocate_template_symbol): Don't declare.
4348 (struct symbol): Add copy constructor. Change defaults.
4349 * jit.c (finalize_symtab): Use "new".
4350 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4351 Use "new".
4352 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4353 (common_block_end): Use "new".
4354 * mdebugread.c (parse_symbol): Use "new".
4355 (new_symbol): Likewise.
4356
4357 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4358
4359 * NEWS: Mention changes to help and apropos.
4360
4361 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4362
4363 * command.h (enum command_class): Improve comments, document
4364 that class_alias is for user-defined aliases, give the class
4365 name for each class, remove unused class_xdb.
4366 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4367 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4368 by a precise class.
4369 * infcmd.c (_initialize_infcmd): Likewise.
4370 * reverse.c (_initialize_reverse): Likewise.
4371 * stack.c (_initialize_stack): Likewise.
4372 * symfile.c (_initialize_symfile): Likewise.
4373 * tracepoint.c (_initialize_tracepoint): Likewise.
4374
4375 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4376
4377 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4378 when their aliased command is traversed.
4379 (help_cmd): Add fput_command_names_styled call to
4380 output command name and aliases when command has an alias.
4381
4382 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4383
4384 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4385 * cli/cli-decode.c (help_cmd_list): Declare as static,
4386 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4387 a command together with the command.
4388 (fput_command_name_styled, fput_command_names_styled): New functions.
4389 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4390 fput_command_name_styled.
4391 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4392 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4393
4394 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4395
4396 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4397 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4398 * command.h (cmd_show_list): Likewise.
4399 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4400 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4401
4402 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4403
4404 * unittests/command-def-selftests.c (traverse_command_structure):
4405 Verify all commands of a list have the same prefix command and
4406 that only the top cmdlist commands have a null prefix.
4407
4408 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4409
4410 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4411 as prefix, not one of its aliases.
4412 (set_cmd_prefix): Remove.
4413 (do_add_cmd): Centralize the setting of the prefix of a command, when
4414 command is defined after its full chain of prefix commands.
4415 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4416 (add_setshow_cmd_full): Likewise.
4417 (update_prefix_field_of_prefixed_commands): New function.
4418 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4419 update_prefix_field_of_prefixed_commands.
4420 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4421 addresses of remote_set_cmdlist and remote_show_cmdlist given
4422 as argument, not the address of an argument.
4423 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4424 * gdb/remote.c (_initialize_remote): Likewise.
4425
4426 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4427
4428 * cli/cli-cmds.c (alias_command): Check for an existing alias
4429 using lookup_cmd_composition, as valid_command_p is too strict
4430 and forbids aliases that are the prefix of an existing alias
4431 or command.
4432 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4433 command is properly recognised as a valid command.
4434
4435 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4436
4437 * unittests/help-doc-selftests.c: Rename to
4438 unittests/command-def-selftests.c
4439 * unittests/command-def-selftests.c (help_doc_tests): Update some
4440 comments.
4441 (command_structure_tests, traverse_command_structure): New namespace
4442 and function.
4443 (command_structure_invariants_tests): New function.
4444 (_initialize_command_def_selftests) Renamed from
4445 _initialize_help_doc_selftests, register command_structure_invariants
4446 selftest.
4447
4448 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4449
4450 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4451 an alias of 'show'.
4452
4453 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4454
4455 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4456 ada_is_fixed_point_type. Update all callers.
4457 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4458 all callers.
4459 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4460 Update all callers.
4461 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4462 print_fixed_point_type. Update all callers.
4463 * ada-valprint.c (ada_value_print_num): Replace call to
4464 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4465
4466 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4467
4468 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4469 processors.
4470 (cpu_supports_bts): Add CV_AMD case.
4471
4472 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4473 Simon Marchi <simon.marchi@efficios.com>
4474
4475 * infrun.c (stop_all_threads): Collect multiple wait events at
4476 each pass.
4477
4478 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4479
4480 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4481 type::code instead.
4482
4483 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4484
4485 * gdbtypes.h (struct type) <code, set_code>: New methods.
4486 (TYPE_CODE): Use type::code. Change all call sites used to set
4487 the code to use type::set_code instead.
4488
4489 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4490 Tom de Vries <tdevries@suse.de>
4491 Pedro Alves <palves@redhat.com>
4492
4493 PR threads/25478
4494 * infrun.c (stop_all_threads): Do NOT ignore
4495 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4496 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4497 received.
4498 (handle_no_resumed): Remove code handling a live inferior with no
4499 threads.
4500 * remote.c (has_single_non_exited_thread): New.
4501 (remote_target::update_thread_list): Do not delete a thread if is
4502 the last thread of the process.
4503 * thread.c (thread_select): Call delete_exited_threads instead of
4504 prune_threads.
4505
4506 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4507
4508 * infrun.c (stop_all_threads): Enable/disable thread events of all
4509 targets. Move a debug message denoting the end of the function
4510 into the SCOPED_EXIT block.
4511
4512 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4513
4514 * process-stratum-target.h: Include <set>.
4515 (all_non_exited_process_targets, switch_to_target_no_thread): New
4516 function declarations.
4517 * process-stratum-target.c (all_non_exited_process_targets)
4518 (switch_to_target_no_thread): New function implementations.
4519
4520 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4521
4522 * infrun.c (handle_inferior_event): Extract out a piece of code
4523 into...
4524 (mark_non_executing_threads): ...this new function.
4525
4526 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4527
4528 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4529 use.
4530
4531 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4532
4533 * regcache.c (regcache_read_pc_protected): New function
4534 implementation that returns 0 if the PC cannot read via
4535 'regcache_read_pc'.
4536 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4537 instead of 'regcache_read_pc'.
4538 (keep_going_pass_signal): Ditto.
4539
4540 2020-05-13 Tom Tromey <tromey@adacore.com>
4541
4542 * ada-lang.c (align_value): Remove.
4543 (ada_template_to_fixed_record_type_1): Use align_up.
4544
4545 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4546
4547 * async-event.c: Update the copyright year.
4548 * async-event.h: Update the copyright year.
4549
4550 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4551
4552 * objfiles.h (is_addr_in_objfile,
4553 shared_objfile_contains_address_p): Return bool.
4554 * objfile.c (is_addr_in_objfile,
4555 shared_objfile_contains_address_p): Return bool.
4556
4557 2020-05-11 Tom Tromey <tromey@adacore.com>
4558
4559 * cli/cli-cmds.c (info_command): Restore.
4560 (_initialize_cli_cmds): Use add_prefix_command for "info".
4561 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4562
4563 2020-05-11 Tom Tromey <tromey@adacore.com>
4564
4565 * ada-lang.c (ada_value_primitive_field): Now public.
4566 * ada-lang.h (ada_value_primitive_field): Declare.
4567 * ada-valprint.c (print_field_values): Use
4568 ada_value_primitive_field for wrapper fields.
4569
4570 2020-05-11 Tom de Vries <tdevries@suse.de>
4571
4572 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4573 MODULE_DOMAIN.
4574
4575 2020-05-11 Tom de Vries <tdevries@suse.de>
4576
4577 PR symtab/25941
4578 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4579 with length 0, if not gdb-produced.
4580 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4581
4582 2020-05-09 Tom de Vries <tdevries@suse.de>
4583
4584 PR gdb/25955
4585 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4586 calculation.
4587
4588 2020-05-09 Tom Tromey <tom@tromey.com>
4589
4590 * top.c (server_command): Now bool.
4591 * top.h (server_command): Now bool.
4592
4593 2020-05-08 Tom Tromey <tromey@adacore.com>
4594
4595 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4596 already being processed.
4597
4598 2020-05-08 Tom Tromey <tom@tromey.com>
4599
4600 * printcmd.c (struct display) <next>: Remove.
4601 <display>: New constructor.
4602 <exp_string>: Now a std::string.
4603 <enabled_p>: Now a bool.
4604 (display_number): Move definition earlier.
4605 (displays): Rename from display_chain. Now a std::vector.
4606 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4607 (display_command): Update.
4608 (do_one_display, disable_display)
4609 (enable_disable_display_command, do_enable_disable_display):
4610 Update.
4611 (free_display): Remove.
4612 (clear_displays): Rewrite.
4613 (delete_display): Update.
4614 (map_display_numbers): Use function_view. Remove "data"
4615 parameter. Update.
4616 (do_delete_display): Remove.
4617 (undisplay_command): Update.
4618 (do_one_display, do_displays, disable_display)
4619 (info_display_command): Update.
4620 (do_enable_disable_display): Remove.
4621 (enable_disable_display_command)
4622 (clear_dangling_display_expressions): Update.
4623
4624 2020-05-08 Tom Tromey <tom@tromey.com>
4625
4626 * symtab.c (set_symbol_cache_size)
4627 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4628 (maintenance_print_symbol_cache_statistics): Update.
4629 * symmisc.c (print_symbol_bcache_statistics)
4630 (print_objfile_statistics, maintenance_print_objfiles)
4631 (maintenance_info_symtabs, maintenance_check_symtabs)
4632 (maintenance_expand_symtabs, maintenance_info_line_tables):
4633 Update.
4634 * symfile-debug.c (set_debug_symfile): Update.
4635 * source.c (forget_cached_source_info): Update.
4636 * python/python.c (gdbpy_progspaces): Update.
4637 * psymtab.c (maintenance_info_psymtabs): Update.
4638 * probe.c (parse_probes): Update.
4639 * linespec.c (iterate_over_all_matching_symtabs)
4640 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4641 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4642 * exec.c (exec_target::close): Update.
4643 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4644 * breakpoint.c (print_one_breakpoint_location)
4645 (create_longjmp_master_breakpoint)
4646 (create_std_terminate_master_breakpoint): Update.
4647 * progspace.c (program_spaces): Now a std::vector.
4648 (maybe_new_address_space): Update.
4649 (add_program_space): Remove.
4650 (program_space::program_space): Update.
4651 (remove_program_space): Update.
4652 (number_of_program_spaces): Remove.
4653 (print_program_space, update_address_spaces): Update.
4654 * progspace.h (program_spaces): Change type.
4655 (ALL_PSPACES): Remove.
4656 (number_of_program_spaces): Don't declare.
4657 (struct program_space) <next>: Remove.
4658
4659 2020-05-08 Tom Tromey <tom@tromey.com>
4660
4661 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4662 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4663 (enable_break): Update.
4664 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4665 (frv_fdpic_find_canonical_descriptor): Update.
4666 (frv_fetch_objfile_link_map): Update.
4667 * progspace.c (program_space::free_all_objfiles): Update.
4668 (program_space::solibs): New method.
4669 * progspace.h (struct program_space) <solibs>: New method.
4670 * solist.h (master_so_list): Don't declare.
4671 (ALL_SO_LIBS): Remove.
4672 * solib.h (so_list_head): Remove.
4673 (update_solib_list): Update comment.
4674 * solib.c (master_so_list): Remove.
4675 (solib_used, update_solib_list, solib_add)
4676 (info_sharedlibrary_command, clear_solib)
4677 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4678
4679 2020-05-08 Tom Tromey <tom@tromey.com>
4680
4681 * extension.c (extension_languages): Now a std::array.
4682 (ALL_EXTENSION_LANGUAGES): Remove.
4683 (get_ext_lang_defn, get_ext_lang_of_file)
4684 (eval_ext_lang_from_control_command): Update.
4685 (finish_ext_lang_initialization)
4686 (auto_load_ext_lang_scripts_for_objfile)
4687 (ext_lang_type_printers::ext_lang_type_printers)
4688 (apply_ext_lang_type_printers)
4689 (ext_lang_type_printers::~ext_lang_type_printers)
4690 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4691 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4692 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4693 (get_matching_xmethod_workers, ext_lang_colorize)
4694 (ext_lang_before_prompt): Update.
4695 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4696
4697 2020-05-08 Tom Tromey <tom@tromey.com>
4698
4699 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4700 overload.
4701 <swap_string, m_string>: Remove.
4702 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4703 Update.
4704 * stabsread.c (define_symbol, read_type): Update.
4705 * linespec.c (find_linespec_symbols): Update.
4706 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4707 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4708 * dbxread.c (read_dbx_symtab): Update.
4709 * cp-support.h (cp_canonicalize_string_full)
4710 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4711 Return unique_xmalloc_ptr.
4712 * cp-support.c (inspect_type): Update.
4713 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4714 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4715 Likewise.
4716 * c-typeprint.c (print_name_maybe_canonical): Update.
4717 * break-catch-throw.c (check_status_exception_catchpoint):
4718 Update.
4719
4720 2020-05-08 Tom de Vries <tdevries@suse.de>
4721
4722 * infrun.c (follow_fork): Copy current_line and current_symtab to
4723 child thread.
4724
4725 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4726
4727 * async-event.c (struct async_signal_handler, struct
4728 async_event_handler): Reformat, remove typedef.
4729
4730 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4731
4732 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4733 access thistype->main_type->dyn_prop_list directly.
4734
4735 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4736
4737 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4738 (remove_dyn_prop): Remove. Update all users to use
4739 type::remove_dyn_prop.
4740 * gdbtypes.c (remove_dyn_prop): Rename to...
4741 (type::remove_dyn_prop): ... this.
4742
4743 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4744
4745 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4746 (add_dyn_prop): Remove. Update all users to use
4747 type::add_dyn_prop.
4748 * gdbtypes.c (add_dyn_prop): Rename to...
4749 (type::add_dyn_prop): ... this.
4750
4751 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4752
4753 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4754 (get_dyn_prop): Remove. Update all users to use
4755 type::dyn_prop.
4756 * gdbtypes.c (get_dyn_prop): Rename to...
4757 (type::dyn_prop): ... this.
4758
4759 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4760
4761 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4762
4763 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4764
4765 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4766 instruction, skip it if it's there.
4767
4768 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4769
4770 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4771
4772 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4773
4774 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4775 * gdbtypes.c (recursive_dump_type): Remove use of
4776 TYPE_INCOMPLETE.
4777
4778 2020-05-03 Tom Tromey <tom@tromey.com>
4779
4780 * breakpoint.c (catch_command, tcatch_command): Remove.
4781 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4782 add_show_prefix_cmd.
4783 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4784 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4785 Remove.
4786 (add_internal_problem_command): Use add_basic_prefix_cmd,
4787 add_show_prefix_cmd.
4788 * mips-tdep.c (set_mipsfpu_command): Remove.
4789 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4790 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4791 (_initialize_index_cache): Use add_basic_prefix_cmd.
4792 * memattr.c (dummy_cmd): Remove.
4793 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4794 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4795 (_initialize_tui_win): Use add_basic_prefix_cmd,
4796 add_show_prefix_cmd.
4797 * cli/cli-logging.c (set_logging_command): Remove.
4798 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4799 add_show_prefix_cmd.
4800 (show_logging_command): Remove.
4801 * target.c (target_command): Remove.
4802 (add_target): Use add_basic_prefix_cmd.
4803
4804 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4805
4806 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4807
4808 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4809
4810 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4811 info_command.
4812
4813 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4814
4815 * nbsd-nat.c (nbsd_enable_proc_events)
4816 (nbsd_nat_target::post_startup_inferior): Add.
4817 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4818 (nbsd_nat_target::update_thread_list): Rewrite.
4819 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4820 "PTRACE_LWP_CREATE".
4821 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4822
4823 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4824
4825 * stack.c (_initialize_stack): Remove duplicated creation
4826 of "frame" command and "f" alias.
4827
4828 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4829
4830 PR gdb/18706
4831 * gdbtypes.c (check_typedef): Calculate size of array of
4832 stubbed type.
4833
4834 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4835
4836 PR gdb/15559
4837 * i386-tdep.c (i386_push_dummy_call): Call
4838 i386_thiscall_push_dummy_call.
4839 (i386_thiscall_push_dummy_call): New function.
4840 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4841 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4842 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4843
4844 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4845
4846 * gdbarch.sh (do_read): Add shellcheck disable directive for
4847 warning SC2162.
4848
4849 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4850
4851 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4852 "referenced but not assigned" warning.
4853
4854 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4855
4856 * gdbarch.sh: Remove code that sets fallbackdefault.
4857
4858 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4859
4860 * gdbarch.sh: Use shell operators && and || instead of
4861 -a and -o.
4862
4863 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4864
4865 * gdbarch.sh: Use $(...) instead of `...`.
4866
4867 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4868
4869 * gdbarch.sh: Use double quotes around variables.
4870
4871 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4872
4873 * gdbarch.sh: Use %s with printf, instead of variables in the
4874 format string.
4875
4876 2020-04-29 Tom Tromey <tromey@adacore.com>
4877
4878 PR ada/25875:
4879 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4880 type fields here.
4881 (read_enumeration_type): Call
4882 update_enumeration_type_from_children later. Update comments.
4883 (process_enumeration_scope): Don't create type fields.
4884
4885 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4886
4887 * nbsd-tdep.c: Include "xml-syscall.h".
4888 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4889
4890 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4891
4892 * nbsd-nat.c: Include "sys/wait.h".
4893 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4894 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4895 (nbsd_nat_target::remove_exec_catchpoint)
4896 (nbsd_nat_target::set_syscall_catchpoint): Add.
4897 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4898 (nbsd_nat_target::insert_exec_catchpoint)
4899 (nbsd_nat_target::remove_exec_catchpoint)
4900 (nbsd_nat_target::set_syscall_catchpoint): Add.
4901 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4902 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4903 `nbsd_get_syscall_number'.
4904
4905 2020-04-29 Tom Tromey <tom@tromey.com>
4906
4907 * stack.c (print_block_frame_labels): Remove.
4908
4909 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4910
4911 PR gdb/17320
4912 * ada-valprint.c (val_print_packed_array_elements): Move array
4913 end bracket to new line.
4914 (ada_val_print_string): Remove extra spaces before first array
4915 element.
4916 * c-valprint.c (c_value_print_array): Likewise.
4917 * m2-valprint.c (m2_print_array_contents): Likewise.
4918 (m2_value_print_inner): Likewise.
4919 * p-valprint.c (pascal_value_print_inner): Likewise.
4920 * valprint.c (generic_val_print_array): Likewise.
4921 (value_print_array_elements): Move first array element and array
4922 end bracket to new line.
4923
4924 2020-04-29 Tom de Vries <tdevries@suse.de>
4925
4926 PR symtab/25889
4927 * linespec.c (find_method): Fix ix calculation.
4928
4929 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4930
4931 * syscalls/update-netbsd.sh: New file.
4932 * syscalls/netbsd.xml: Regenerate.
4933 * data-directory/Makefile.in: Register `netbsd.xml' in
4934 `SYSCALLS_FILES'.
4935
4936 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4937
4938 * syscalls/update-freebsd.sh: Add double quotes.
4939
4940 2020-04-28 Tom Tromey <tom@tromey.com>
4941
4942 * NEWS: Update.
4943 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4944 (cmdpy_init): Allow class_tui.
4945
4946 2020-04-28 Mark Williams <mark@myosotissp.com>
4947
4948 PR gdb/24480
4949 * dwarf2read.c: Add missing assingments to list_in_scope when
4950 start_symtab was already called.
4951
4952 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4953
4954 PR gdb/25881
4955 * dwarf2/read.c (offset_map_type): Use
4956 gdb:hash_enum<sect_offset> as hash function.
4957
4958 2020-04-28 Tom de Vries <tdevries@suse.de>
4959
4960 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4961 with DW_AT_signature.
4962
4963 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4964
4965 * configure.ac: Remove check for fs_base/gs_base in
4966 user_regs_struct.
4967 * configure: Re-generate.
4968 * config.in: Re-generate.
4969 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4970 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4971 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4972
4973 2020-04-27 Luis Machado <luis.machado@linaro.org>
4974
4975 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4976 problematic inline frame unwinding situation.
4977 * frame.c (frame_id_computed_p): New function.
4978 * frame.h (frame_id_computed_p): New prototype.
4979
4980 2020-04-26 Tom Tromey <tom@tromey.com>
4981
4982 * command.h (enum command_class) <class_pseudo>: Remove.
4983
4984 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4985
4986 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4987 and whitespace.
4988
4989 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4990
4991 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4992 `PT_GET_PROCESS_STATE' block.
4993
4994 2020-04-24 Tom Tromey <tom@tromey.com>
4995
4996 * symtab.h (symbol_get_demangled_name): Don't declare.
4997 * symtab.c (symbol_get_demangled_name): Remove.
4998 (general_symbol_info::natural_name)
4999 (general_symbol_info::demangled_name): Update.
5000
5001 2020-04-24 Tom Tromey <tom@tromey.com>
5002
5003 PR rust/25025:
5004 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5005
5006 2020-04-24 Tom Tromey <tom@tromey.com>
5007
5008 PR symtab/12707:
5009 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5010 exists.
5011 (new_symbol): Likewise.
5012 * compile/compile-object-load.c (get_out_value_type): Use
5013 symbol_matches_search_name.
5014
5015 2020-04-24 Tom Tromey <tom@tromey.com>
5016
5017 * dwarf2/read.c (add_partial_symbol): Do not call
5018 compute_and_set_names.
5019
5020 2020-04-24 Tom Tromey <tom@tromey.com>
5021
5022 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5023 overload.
5024
5025 2020-04-24 Tom Tromey <tom@tromey.com>
5026
5027 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5028 (add_psymbol_to_list): New overload. Make old overload call new
5029 one.
5030 * psympriv.h (add_psymbol_to_list): New overload.
5031
5032 2020-04-24 Tom Tromey <tom@tromey.com>
5033
5034 * dwarf2/read.c (partial_die_info::read) <case
5035 DW_AT_linkage_name>: Use value_as_string.
5036 (dwarf2_string_attr): Use value_as_string.
5037 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5038 method.
5039 * dwarf2/attribute.c (attribute::value_as_string): New method.
5040
5041 2020-04-24 Tom Tromey <tom@tromey.com>
5042
5043 * symtab.c (general_symbol_info::natural_name)
5044 (general_symbol_info::demangled_name): Check for language_rust.
5045
5046 2020-04-24 Tom Tromey <tom@tromey.com>
5047
5048 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5049 (dwarf2_physname): ... from here.
5050 (partial_die_info::read): Add Rust "{" hack.
5051
5052 2020-04-24 Tom Tromey <tom@tromey.com>
5053
5054 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5055 method.
5056 (symbol_set_demangled_name): Don't declare.
5057 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5058 symbol_set_demangled_name.
5059 (general_symbol_info::set_language)
5060 (general_symbol_info::compute_and_set_names): Update.
5061 * minsyms.c (minimal_symbol_reader::install): Update.
5062 * dwarf2/read.c (new_symbol): Update.
5063
5064 2020-04-24 Tom Tromey <tromey@adacore.com>
5065
5066 PR python/23662:
5067 * python/py-type.c (convert_field): Handle
5068 FIELD_LOC_KIND_DWARF_BLOCK.
5069 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5070 (typy_get_dynamic): Nw function.
5071 (type_object_getset): Add "dynamic".
5072 * NEWS: Add entry.
5073
5074 2020-04-24 Tom Tromey <tromey@adacore.com>
5075
5076 * ada-typeprint.c (print_choices, print_variant_part)
5077 (print_record_field_types_dynamic): New functions.
5078 (print_record_field_types): Use print_record_field_types_dynamic.
5079
5080 2020-04-24 Tom Tromey <tromey@adacore.com>
5081
5082 * dwarf2/read.c (handle_data_member_location): New overload.
5083 (dwarf2_add_field): Use it.
5084 (decode_locdesc): Add "computed" parameter. Update comment.
5085 * gdbtypes.c (is_dynamic_type_internal): Also look for
5086 FIELD_LOC_KIND_DWARF_BLOCK.
5087 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5088 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5089 virtual base classes.
5090 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5091 FIELD_LOC_KIND_DWARF_BLOCK.
5092
5093 2020-04-24 Tom Tromey <tromey@adacore.com>
5094
5095 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5096 * gdbtypes.c (is_dynamic_type_internal): Check
5097 TYPE_HAS_DYNAMIC_LENGTH.
5098 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5099 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5100 New macros.
5101 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5102 constant.
5103
5104 2020-04-24 Tom Tromey <tromey@adacore.com>
5105
5106 * dwarf2/read.c (struct variant_field): Rewrite.
5107 (struct variant_part_builder): New.
5108 (struct nextfield): Remove "variant" field. Add "offset".
5109 (struct field_info): Add "current_variant_part" and
5110 "variant_parts".
5111 (alloc_discriminant_info): Remove.
5112 (alloc_rust_variant): New function.
5113 (quirk_rust_enum): Update.
5114 (dwarf2_add_field): Set "offset" member. Don't handle
5115 DW_TAG_variant_part.
5116 (offset_map_type): New typedef.
5117 (convert_variant_range, create_one_variant)
5118 (create_one_variant_part, create_variant_parts)
5119 (add_variant_property): New functions.
5120 (dwarf2_attach_fields_to_type): Call add_variant_property.
5121 (read_structure_type): Don't handle DW_TAG_variant_part.
5122 (handle_variant_part, handle_variant): New functions.
5123 (handle_struct_member_die): Use them.
5124 (process_structure_scope): Don't handle variant parts.
5125 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5126 (struct discriminant_info): Remove.
5127 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5128 (struct main_type) <flag_discriminated_union>: Remove.
5129 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5130 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5131 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5132 Update.
5133 * valops.c (value_union_variant): Remove.
5134 * value.h (value_union_variant): Don't declare.
5135
5136 2020-04-24 Tom Tromey <tromey@adacore.com>
5137
5138 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5139 (ada_value_primitive_packed_val): Update.
5140 * ada-valprint.c (ada_value_print_1): Update.
5141 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5142 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5143 just an address. Use evaluate_for_locexpr_baton.
5144 (dwarf2_evaluate_property): Update.
5145 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5146 array_view.
5147 * findvar.c (default_read_var_value): Update.
5148 * gdbtypes.c (compute_variant_fields_inner)
5149 (resolve_dynamic_type_internal): Update.
5150 (resolve_dynamic_type): Change type of valaddr parameter.
5151 * gdbtypes.h (resolve_dynamic_type): Update.
5152 * valarith.c (value_subscripted_rvalue): Update.
5153 * value.c (value_from_contents_and_address): Update.
5154
5155 2020-04-24 Tom Tromey <tromey@adacore.com>
5156
5157 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5158 "push_initial_value" parameter.
5159 (dwarf2_evaluate_property): Likewise.
5160 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5161
5162 2020-04-24 Tom Tromey <tromey@adacore.com>
5163
5164 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5165 (variant::matches, compute_variant_fields_recurse)
5166 (compute_variant_fields_inner, compute_variant_fields): New
5167 functions.
5168 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5169 Use resolved_type after type is made.
5170 (operator==): Add new cases.
5171 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5172 (struct discriminant_range, struct variant, struct variant_part):
5173 New.
5174 (union dynamic_prop_data) <variant_parts, original_type>: New
5175 members.
5176 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5177 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5178 constants.
5179 * value.c (unpack_bits_as_long): Now public.
5180 * value.h (unpack_bits_as_long): Declare.
5181
5182 2020-04-24 Tom Tromey <tromey@adacore.com>
5183
5184 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5185 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5186
5187 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5188
5189 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5190
5191 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5192
5193 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5194 (remove_fork_catchpoint, post_startup_inferior)
5195 (post_attach): Move...
5196 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5197 (remove_fork_catchpoint, post_startup_inferior)
5198 (post_attach): ...here.
5199 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5200 (remove_fork_catchpoint, post_startup_inferior)
5201 (post_attach): Move...
5202 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5203 (remove_fork_catchpoint, post_startup_inferior)
5204 (post_attach): ...here.
5205
5206 2020-04-24 Tom Tromey <tromey@adacore.com>
5207
5208 * nat/windows-nat.h (struct windows_thread_info)
5209 <pc_adjusted>: New member.
5210 * windows-nat.c (windows_fetch_one_register): Check
5211 pc_adjusted.
5212 (windows_nat_target::get_windows_debug_event)
5213 (windows_nat_target::wait): Set pc_adjusted.
5214
5215 2020-04-24 Tom de Vries <tdevries@suse.de>
5216
5217 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5218 Run gdb-add-index inside temp dir.
5219
5220 2020-04-23 Tom Tromey <tromey@adacore.com>
5221
5222 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5223 in loop.
5224
5225 2020-04-23 Luis Machado <luis.machado@linaro.org>
5226
5227 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5228 get_frame_register instead of gdbarch_unwind_pc.
5229
5230 2020-04-23 Tom de Vries <tdevries@suse.de>
5231
5232 * symtab.c (lookup_global_symbol): Prefer def over decl.
5233
5234 2020-04-23 Tom de Vries <tdevries@suse.de>
5235
5236 PR symtab/25807
5237 * block.c (best_symbol, better_symbol): Promote to external.
5238 * block.h (best_symbol, better_symbol): Declare.
5239 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5240 decl.
5241
5242 2020-04-23 Tom Tromey <tromey@adacore.com>
5243
5244 PR ada/25837:
5245 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5246 "const char *", not a "const std::string &".
5247 <name_and_matcher::operator==>: Update.
5248 * unittests/lookup_name_info-selftests.c: Change type of
5249 "result".
5250
5251 2020-04-23 Tom Tromey <tom@tromey.com>
5252
5253 * inferior.h (iterate_over_inferiors): Don't declare.
5254 * inferior.c (iterate_over_inferiors): Remove.
5255 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5256 Remove.
5257 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5258 use iterate_over_inferiors.
5259 (darwin_resume_inferior_it)
5260 (struct resume_inferior_threads_param)
5261 (darwin_resume_inferior_threads_it): Remove.
5262 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5263
5264 2020-04-23 Tom de Vries <tdevries@suse.de>
5265
5266 * blockframe.c (find_pc_partial_function): Use
5267 find_pc_sect_compunit_symtab rather than
5268 objfile->sf->qf->find_pc_sect_compunit_symtab.
5269
5270 2020-04-22 Tom de Vries <tdevries@suse.de>
5271
5272 PR symtab/25764
5273 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5274 in psymtabs.
5275
5276 2020-04-22 Tom de Vries <tdevries@suse.de>
5277
5278 PR symtab/25801
5279 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5280 symtabs.
5281
5282 2020-04-22 Tom de Vries <tdevries@suse.de>
5283
5284 PR symtab/25700
5285 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5286 CU if already created.
5287
5288 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5289
5290 * infrun.c (displaced_step_fixup): Switch to the event_thread
5291 before calling displaced_step_restore, not after.
5292
5293 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5294
5295 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5296 its inferior is not recorded by us.
5297 (record_btrace_target_open): Replace call to
5298 all_non_exited_threads () with call to current_inferior
5299 ()->non_exited_threads ().
5300 (record_btrace_target::stop_recording): Likewise.
5301 (record_btrace_target::close): Likewise.
5302 (record_btrace_target::wait): Likewise.
5303 (record_btrace_target::record_stop_replaying): Likewise.
5304
5305 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5306
5307 * btrace.c (btrace_enable): Throw an error on double enables and
5308 when enabling recording fails.
5309 (btrace_disable): Throw an error if the thread is not recorded.
5310
5311 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5312
5313 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5314 request if we do not have a thread_info.
5315
5316 2020-04-21 Tom de Vries <tdevries@suse.de>
5317
5318 PR gdb/25471
5319 * thread.c
5320 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5321 exception in get_frame_id.
5322
5323 2020-04-20 Tom Tromey <tromey@adacore.com>
5324
5325 * python/python.c (struct gdbpy_event): Mark move constructor as
5326 noexcept.
5327 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5328 constructor as noexcept.
5329 * completer.h (struct completion_result): Mark move constructor as
5330 noexcept.
5331 * completer.c (completion_result::completion_result): Use
5332 initialization style. Don't call reset_match_list.
5333
5334 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5335
5336 * MAINTAINERS (Write After Approval): Add myself.
5337
5338 2020-04-18 Tom Tromey <tom@tromey.com>
5339
5340 * windows-tdep.c (init_w32_command_list)
5341 (w32_prefix_command_valid): Restore.
5342 (_initialize_windows_tdep): Call init_w32_command_list.
5343
5344 2020-04-18 Tom Tromey <tom@tromey.com>
5345
5346 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5347 * value.c (value_fn_field): Update.
5348 * valops.c (find_function_in_inferior)
5349 (value_allocate_space_in_inferior): Update.
5350 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5351 Update.
5352 * tui/tui-source.c (tui_source_window::set_contents): Update.
5353 * symtab.c (lookup_global_or_static_symbol)
5354 (find_function_start_sal_1, skip_prologue_sal)
5355 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5356 * symmisc.c (dump_msymbols, dump_symtab_1)
5357 (maintenance_print_one_line_table): Update.
5358 * symfile.c (init_entry_point_info, section_is_mapped)
5359 (list_overlays_command, simple_read_overlay_table)
5360 (simple_overlay_update_1): Update.
5361 * stap-probe.c (handle_stap_probe): Update.
5362 * stabsread.c (dbx_init_float_type, define_symbol)
5363 (read_one_struct_field, read_enum_type, read_range_type): Update.
5364 * source.c (info_line_command): Update.
5365 * python/python.c (gdbpy_source_objfile_script)
5366 (gdbpy_execute_objfile_script): Update.
5367 * python/py-type.c (save_objfile_types): Update.
5368 * python/py-objfile.c (py_free_objfile): Update.
5369 * python/py-inferior.c (python_new_objfile): Update.
5370 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5371 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5372 (maintenance_check_psymtabs): Update.
5373 * printcmd.c (info_address_command): Update.
5374 * objfiles.h (struct objfile) <arch>: New method, from
5375 get_objfile_arch.
5376 (get_objfile_arch): Don't declare.
5377 * objfiles.c (get_objfile_arch): Remove.
5378 (filter_overlapping_sections): Update.
5379 * minsyms.c (msymbol_is_function): Update.
5380 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5381 (output_nondebug_symbol): Update.
5382 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5383 (mdebug_expand_psymtab): Update.
5384 * machoread.c (macho_add_oso_symfile): Update.
5385 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5386 Update.
5387 * linux-fork.c (checkpoint_command): Update.
5388 * linespec.c (convert_linespec_to_sals): Update.
5389 * jit.c (finalize_symtab): Update.
5390 * infrun.c (insert_exception_resume_from_probe): Update.
5391 * ia64-tdep.c (ia64_find_unwind_table): Update.
5392 * hppa-tdep.c (internalize_unwinds): Update.
5393 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5394 Update.
5395 * gcore.c (call_target_sbrk): Update.
5396 * elfread.c (record_minimal_symbol, elf_symtab_read)
5397 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5398 (elf_gnu_ifunc_resolve_by_got): Update.
5399 * dwarf2/read.c (create_addrmap_from_index)
5400 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5401 (read_debug_names_from_section)
5402 (process_psymtab_comp_unit_reader, add_partial_symbol)
5403 (add_partial_subprogram, process_full_comp_unit)
5404 (read_file_scope, read_func_scope, read_lexical_block_scope)
5405 (read_call_site_scope, dwarf2_ranges_read)
5406 (dwarf2_record_block_ranges, dwarf2_add_field)
5407 (mark_common_block_symbol_computed, read_tag_pointer_type)
5408 (read_tag_string_type, dwarf2_init_float_type)
5409 (dwarf2_init_complex_target_type, read_base_type)
5410 (partial_die_info::read, partial_die_info::read)
5411 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5412 (dwarf2_fetch_die_loc_sect_off): Update.
5413 * dwarf2/loc.c (dwarf2_find_location_expression)
5414 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5415 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5416 (dwarf2_loc_desc_get_symbol_read_needs)
5417 (locexpr_describe_location_piece, locexpr_describe_location_1)
5418 (loclist_describe_location): Update.
5419 * dwarf2/index-write.c (write_debug_names): Update.
5420 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5421 * dtrace-probe.c (dtrace_process_dof): Update.
5422 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5423 (process_one_symbol): Update.
5424 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5425 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5426 (coff_read_enum_type): Update.
5427 * cli/cli-cmds.c (edit_command, list_command): Update.
5428 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5429 * breakpoint.c (create_overlay_event_breakpoint)
5430 (create_longjmp_master_breakpoint)
5431 (create_std_terminate_master_breakpoint)
5432 (create_exception_master_breakpoint, get_sal_arch): Update.
5433 * block.c (block_gdbarch): Update.
5434 * annotate.c (annotate_source_line): Update.
5435
5436 2020-04-17 Tom Tromey <tromey@adacore.com>
5437
5438 * auto-load.c (show_auto_load_cmd): Remove.
5439 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5440 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5441 (maintenance_print_arc_command): Remove.
5442 * tui/tui-win.c (tui_command): Remove.
5443 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5444 * tui/tui-layout.c (tui_layout_command): Remove.
5445 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5446 * python/python.c (user_set_python, user_show_python): Remove.
5447 (_initialize_python): Use add_basic_prefix_cmd,
5448 add_show_prefix_cmd.
5449 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5450 (install_gdb_commands): Use add_basic_prefix_cmd,
5451 add_show_prefix_cmd.
5452 (info_guile_command): Remove.
5453 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5454 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5455 add_show_prefix_cmd.
5456 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5457 Remove do_set and do_show parameters.
5458 * cli/cli-style.c (set_style, show_style): Remove.
5459 (_initialize_cli_style): Use add_basic_prefix_cmd,
5460 add_show_prefix_cmd.
5461 (cli_style_option::add_setshow_commands): Remove do_set and
5462 do_show parameters.
5463 (cli_style_option::add_setshow_commands): Use
5464 add_basic_prefix_cmd, add_show_prefix_cmd.
5465 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5466 (set_style_name): Remove.
5467 * cli/cli-dump.c (dump_command, append_command): Remove.
5468 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5469 (tekhex_dump_command, binary_dump_command)
5470 (binary_append_command): Remove.
5471 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5472 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5473 (init_w32_command_list): Remove; move into ...
5474 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5475 * valprint.c (set_print, show_print, set_print_raw)
5476 (show_print_raw): Remove.
5477 (_initialize_valprint): Use add_basic_prefix_cmd,
5478 add_show_prefix_cmd.
5479 * typeprint.c (set_print_type, show_print_type): Remove.
5480 (_initialize_typeprint): Use add_basic_prefix_cmd,
5481 add_show_prefix_cmd.
5482 * record.c (set_record_command, show_record_command): Remove.
5483 (_initialize_record): Use add_basic_prefix_cmd,
5484 add_show_prefix_cmd.
5485 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5486 add_show_prefix_cmd.
5487 (info_command, show_command, set_debug, show_debug): Remove.
5488 * top.h (set_history, show_history): Don't declare.
5489 * top.c (set_history, show_history): Remove.
5490 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5491 (unset_tdesc_cmd): Remove.
5492 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5493 add_show_prefix_cmd.
5494 * symtab.c (info_module_command): Remove.
5495 (_initialize_symtab): Use add_basic_prefix_cmd.
5496 * symfile.c (overlay_command): Remove.
5497 (_initialize_symfile): Use add_basic_prefix_cmd.
5498 * sparc64-tdep.c (info_adi_command): Remove.
5499 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5500 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5501 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5502 add_show_prefix_cmd.
5503 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5504 (_initialize_serial): Use add_basic_prefix_cmd,
5505 add_show_prefix_cmd.
5506 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5507 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5508 add_show_prefix_cmd.
5509 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5510 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5511 add_show_prefix_cmd.
5512 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5513 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5514 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5515 add_show_prefix_cmd.
5516 * remote.c (remote_command, set_remote_cmd): Remove.
5517 (_initialize_remote): Use add_basic_prefix_cmd.
5518 * record-full.c (set_record_full_command)
5519 (show_record_full_command): Remove.
5520 (_initialize_record_full): Use add_basic_prefix_cmd,
5521 add_show_prefix_cmd.
5522 * record-btrace.c (cmd_set_record_btrace)
5523 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5524 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5525 (cmd_show_record_btrace_pt): Remove.
5526 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5527 add_show_prefix_cmd.
5528 * ravenscar-thread.c (set_ravenscar_command)
5529 (show_ravenscar_command): Remove.
5530 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5531 add_show_prefix_cmd.
5532 * mips-tdep.c (show_mips_command, set_mips_command)
5533 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5534 add_show_prefix_cmd.
5535 * maint.c (maintenance_command, maintenance_info_command)
5536 (maintenance_check_command, maintenance_print_command)
5537 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5538 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5539 add_show_prefix_cmd.
5540 (show_per_command_cmd): Remove.
5541 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5542 Remove.
5543 (maintenance_show_test_settings_cmd): Remove.
5544 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5545 add_show_prefix_cmd.
5546 * maint-test-options.c (maintenance_test_options_command):
5547 Remove.
5548 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5549 * macrocmd.c (macro_command): Remove
5550 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5551 * language.c (set_check, show_check): Remove.
5552 (_initialize_language): Use add_basic_prefix_cmd,
5553 add_show_prefix_cmd.
5554 * infcmd.c (unset_command): Remove.
5555 (_initialize_infcmd): Use add_basic_prefix_cmd.
5556 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5557 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5558 add_show_prefix_cmd.
5559 * go32-nat.c (go32_info_dos_command): Remove.
5560 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5561 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5562 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5563 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5564 (_initialize_frame): Use add_basic_prefix_cmd,
5565 add_show_prefix_cmd.
5566 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5567 (_initialize_dcache): Use add_basic_prefix_cmd,
5568 add_show_prefix_cmd.
5569 * cp-support.c (maint_cplus_command): Remove.
5570 (_initialize_cp_support): Use add_basic_prefix_cmd.
5571 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5572 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5573 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5574 add_basic_prefix_cmd, add_show_prefix_cmd.
5575 * breakpoint.c (save_command): Remove.
5576 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5577 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5578 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5579 add_show_prefix_cmd.
5580 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5581 (set_ada_command, show_ada_command): Remove.
5582 (_initialize_ada_language): Use add_basic_prefix_cmd,
5583 add_show_prefix_cmd.
5584 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5585
5586 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5587
5588 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5589 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5590
5591 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5592
5593 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5594 warning messages.
5595
5596 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5597
5598 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5599 import table is not at beginning of .idata section.
5600
5601 2020-04-16 Pedro Alves <palves@redhat.com>
5602
5603 * inferior.c (delete_inferior): Use delete operator directly
5604 instead of delete_program_space.
5605 * progspace.c (add_program_space): New, factored out from
5606 program_space::program_space.
5607 (remove_program_space): New, factored out from
5608 delete_program_space.
5609 (program_space::program_space): Remove intro comment. Rewrite.
5610 (program_space::~program_space): Remove intro comment. Call
5611 remove_program_space.
5612 (delete_program_space): Delete.
5613 * progspace.h (program_space::program_space): Make explicit. Move
5614 intro comment here, adjusted.
5615 (program_space::~program_space): Move intro comment here,
5616 adjusted.
5617 (delete_program_space): Remove.
5618
5619 2020-04-16 Tom Tromey <tromey@adacore.com>
5620
5621 * windows-nat.c (windows_nat::handle_access_violation): New
5622 function.
5623 * nat/windows-nat.h (handle_access_violation): Declare.
5624 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5625 windows-nat.c. Call handle_access_violation.
5626
5627 2020-04-16 Tom de Vries <tdevries@suse.de>
5628
5629 PR symtab/25791
5630 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5631 CUs without psymtab.
5632
5633 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5634
5635 * python/python.c (do_start_initialization): Don't call
5636 PyEval_InitThreads for Python 3.9 and beyond.
5637
5638 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5639
5640 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5641 thread functions.
5642 (obsd_nat_target::wait): Likewise.
5643
5644 2020-04-15 Tom Tromey <tromey@adacore.com>
5645
5646 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5647 (DEBUG_EXCEPT): Use debug_printf.
5648
5649 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5650
5651 * completer.c (class completion_tracker::completion_hash_entry)
5652 <hash_name>: New member function.
5653 (completion_tracker::discard_completions): New callback to hash a
5654 completion_hash_entry, pass this to htab_create_alloc.
5655
5656 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5657
5658 * windows-nat.c (windows_make_so): Warn rather than stopping with
5659 an error if realpath() fails.
5660
5661 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5662
5663 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5664 (nbsd_nat_target::info_proc): Add do_status.
5665
5666 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5667 Tom de Vries <tdevries@suse.de>
5668
5669 PR symtab/25718
5670 * psympriv.h (struct partial_symtab::read_symtab)
5671 (struct partial_symtab::expand_psymtab)
5672 (struct partial_symtab::read_dependencies): Update comments.
5673 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5674 read_symtab for includer.
5675 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5676 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5677 (struct dwarf2_include_psymtab::m_readin): Remove.
5678 (struct dwarf2_include_psymtab::includer): New member function.
5679 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5680
5681 2020-04-14 Tom de Vries <tdevries@suse.de>
5682
5683 PR symtab/25720
5684 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5685 with NULL symbol_matcher and lookup_name.
5686 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5687 and lookup_name.
5688 * dwarf2/read.c (dw2_expand_symtabs_matching)
5689 (dw2_debug_names_expand_symtabs_matching): Same.
5690 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5691 Make lookup_name a pointer. Update comment.
5692 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5693 lookup_name being a pointer.
5694 * symfile.c (expand_symtabs_matching): Same.
5695 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5696 * linespec.c (iterate_over_all_matching_symtabs): Same.
5697
5698 2020-04-13 Tom Tromey <tom@tromey.com>
5699
5700 * run-on-main-thread.c: Update include.
5701 * unittests/main-thread-selftests.c: Update include.
5702 * tui/tui-win.c: Update include.
5703 * tui/tui-io.c: Update include.
5704 * tui/tui-interp.c: Update include.
5705 * tui/tui-hooks.c: Update include.
5706 * top.h: Update include.
5707 * top.c: Update include.
5708 * ser-base.c: Update include.
5709 * remote.c: Update include.
5710 * remote-notif.c: Update include.
5711 * remote-fileio.c: Update include.
5712 * record-full.c: Update include.
5713 * record-btrace.c: Update include.
5714 * python/python.c: Update include.
5715 * posix-hdep.c: Update include.
5716 * mingw-hdep.c: Update include.
5717 * mi/mi-main.c: Update include.
5718 * mi/mi-interp.c: Update include.
5719 * main.c: Update include.
5720 * linux-nat.c: Update include.
5721 * interps.c: Update include.
5722 * infrun.c: Update include.
5723 * inf-loop.c: Update include.
5724 * event-top.c: Update include.
5725 * event-loop.c: Move to ../gdbsupport/.
5726 * event-loop.h: Move to ../gdbsupport/.
5727 * async-event.h: Update include.
5728 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5729
5730 2020-04-13 Tom Tromey <tom@tromey.com>
5731
5732 * tui/tui-win.c: Include async-event.h.
5733 * remote.c: Include async-event.h.
5734 * remote-notif.c: Include async-event.h.
5735 * record-full.c: Include async-event.h.
5736 * record-btrace.c: Include async-event.h.
5737 * infrun.c: Include async-event.h.
5738 * event-top.c: Include async-event.h.
5739 * event-loop.h: Move some declarations to async-event.h.
5740 * event-loop.c: Don't include ser-event.h or top.h. Move some
5741 code to async-event.c.
5742 * async-event.h: New file.
5743 * async-event.c: New file.
5744 * Makefile.in (COMMON_SFILES): Add async-event.c.
5745 (HFILES_NO_SRCDIR): Add async-event.h.
5746
5747 2020-04-13 Tom Tromey <tom@tromey.com>
5748
5749 * utils.c (flush_streams): New function.
5750 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5751
5752 2020-04-13 Tom Tromey <tom@tromey.com>
5753
5754 * event-loop.c (handle_file_event): Use warning, not
5755 printf_unfiltered.
5756
5757 2020-04-13 Tom Tromey <tom@tromey.com>
5758
5759 * event-loop.c: Include <chrono>.
5760
5761 2020-04-13 Tom Tromey <tom@tromey.com>
5762
5763 * gdb_select.h: Move to ../gdbsupport/.
5764 * event-loop.c: Update include path.
5765 * top.c: Update include path.
5766 * ser-base.c: Update include path.
5767 * ui-file.c: Update include path.
5768 * ser-tcp.c: Update include path.
5769 * guile/scm-ports.c: Update include path.
5770 * posix-hdep.c: Update include path.
5771 * ser-unix.c: Update include path.
5772 * gdb_usleep.c: Update include path.
5773 * mingw-hdep.c: Update include path.
5774 * inflow.c: Update include path.
5775 * infrun.c: Update include path.
5776 * event-top.c: Update include path.
5777
5778 2020-04-13 Tom Tromey <tom@tromey.com>
5779
5780 * configure: Rebuild.
5781 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5782
5783 2020-04-13 Tom Tromey <tom@tromey.com>
5784
5785 * event-loop.h (start_event_loop): Don't declare.
5786 * event-loop.c (start_event_loop): Move...
5787 * main.c (start_event_loop): ...here. Now static.
5788
5789 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5790
5791 * MAINTAINERS: Update my email address.
5792
5793 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5794
5795 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5796 IP_ALL.
5797
5798 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5799
5800 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5801 (nbsd_nat_target::info_proc): Add do_cmdline.
5802
5803 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5804
5805 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5806 (nbsd_nat_target::info_proc): Add do_cwd.
5807
5808 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5809
5810 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5811
5812 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5813
5814 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5815 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5816 (nbsd_nat_target::info_proc): New functions.
5817 * nbsd-nat.c (kinfo_get_vmmap): New function.
5818 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5819 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5820 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5821 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5822 functions.
5823 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5824 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5825 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5826 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5827 (KINFO_VME_FLAG_GROWS_DOWN): New.
5828
5829 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5830
5831 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5832 bit shift.
5833
5834 2020-04-10 Tom Tromey <tromey@adacore.com>
5835
5836 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5837
5838 2020-04-10 Tom Tromey <tromey@adacore.com>
5839
5840 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5841 separate debug files.
5842
5843 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5844
5845 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5846 Move to...
5847 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5848 ... here.
5849 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5850 Check for STATUS_WX86_BREAKPOINT.
5851 (windows_nat_target::wait): Same.
5852
5853 2020-04-10 Tom de Vries <tdevries@suse.de>
5854
5855 PR cli/25808
5856 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5857
5858 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5859
5860 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5861 (Write After Approval): Remove Tom de Vries.
5862
5863 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5864
5865 revert partially:
5866 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5867
5868 * buildsym.c (record_line): Fix undefined behavior and preserve
5869 lines at eof.
5870
5871 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5872
5873 * auxv.h (svr4_auxv_parse): New.
5874 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5875 and generic_auxv_parse.
5876 (svr4_auxv_parse): Add.
5877 * obsd-tdep.c: Include "auxv.h".
5878 (obsd_auxv_parse): Remove.
5879 (obsd_init_abi): Remove comment.
5880 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5881 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5882 * nbsd-tdep.c: Include "auxv.h".
5883 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5884
5885 2020-04-08 Tom Tromey <tromey@adacore.com>
5886
5887 * nat/windows-nat.h (last_wait_event): Don't declare.
5888 (wait_for_debug_event): Update comment.
5889 * nat/windows-nat.c (last_wait_event): Now static.
5890
5891 2020-04-08 Tom Tromey <tromey@adacore.com>
5892
5893 * windows-nat.c (wait_for_debug_event): Move to
5894 nat/windows-nat.c.
5895 * nat/windows-nat.h (wait_for_debug_event): Declare.
5896 * nat/windows-nat.c (wait_for_debug_event): Move from
5897 windows-nat.c. No longer static.
5898
5899 2020-04-08 Tom Tromey <tromey@adacore.com>
5900
5901 * windows-nat.c (get_windows_debug_event): Use
5902 fetch_pending_stop.
5903 * nat/windows-nat.h (fetch_pending_stop): Declare.
5904 * nat/windows-nat.c (fetch_pending_stop): New function.
5905
5906 2020-04-08 Tom Tromey <tromey@adacore.com>
5907
5908 * windows-nat.c (windows_continue): Use matching_pending_stop and
5909 continue_last_debug_event.
5910 * nat/windows-nat.h (matching_pending_stop)
5911 (continue_last_debug_event): Declare.
5912 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5913 (matching_pending_stop, continue_last_debug_event): New
5914 functions.
5915
5916 2020-04-08 Tom Tromey <tromey@adacore.com>
5917
5918 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5919 (handle_exception_result): Move to nat/windows-nat.h.
5920 (DEBUG_EXCEPTION_SIMPLE): Remove.
5921 (windows_nat::handle_ms_vc_exception): New function.
5922 (handle_exception): Move to nat/windows-nat.c.
5923 (get_windows_debug_event): Update.
5924 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5925 nat/windows-nat.c.
5926 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5927 (handle_exception_result): Move from windows-nat.c.
5928 (handle_exception): Declare.
5929 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5930 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5931 windows-nat.c.
5932
5933 2020-04-08 Tom Tromey <tromey@adacore.com>
5934
5935 * windows-nat.c (exception_count, event_count): Remove.
5936 (handle_exception, get_windows_debug_event)
5937 (do_initial_windows_stuff): Update.
5938
5939 2020-04-08 Tom Tromey <tromey@adacore.com>
5940
5941 * windows-nat.c (windows_nat::handle_load_dll)
5942 (windows_nat::handle_unload_dll): Rename. No longer static.
5943 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5944 Declare.
5945
5946 2020-04-08 Tom Tromey <tromey@adacore.com>
5947
5948 * complaints.h (stop_whining): Declare at top-level.
5949 (complaint): Don't declare stop_whining.
5950
5951 2020-04-08 Tom Tromey <tromey@adacore.com>
5952
5953 * windows-nat.c (windows_nat::handle_output_debug_string):
5954 Rename. No longer static.
5955 * nat/windows-nat.h (handle_output_debug_string): Declare.
5956
5957 2020-04-08 Tom Tromey <tromey@adacore.com>
5958
5959 * windows-nat.c (current_process_handle, current_process_id)
5960 (main_thread_id, last_sig, current_event, last_wait_event)
5961 (current_windows_thread, desired_stop_thread_id, pending_stops)
5962 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5963 (display_selectors, fake_create_process)
5964 (get_windows_debug_event): Update.
5965 * nat/windows-nat.h (current_process_handle, current_process_id)
5966 (main_thread_id, last_sig, current_event, last_wait_event)
5967 (current_windows_thread, desired_stop_thread_id, pending_stops)
5968 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5969 * nat/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 (siginfo_er): New globals. Move from windows-nat.c.
5973
5974 2020-04-08 Tom Tromey <tromey@adacore.com>
5975
5976 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5977 (handle_load_dll): Update.
5978 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5979
5980 2020-04-08 Tom Tromey <tromey@adacore.com>
5981
5982 * windows-nat.c (enum thread_disposition_type): Move to
5983 nat/windows-nat.h.
5984 (windows_nat::thread_rec): Rename from thread_rec. No longer
5985 static.
5986 (windows_add_thread, windows_nat_target::fetch_registers)
5987 (windows_nat_target::store_registers, handle_exception)
5988 (windows_nat_target::resume, get_windows_debug_event)
5989 (windows_nat_target::get_tib_address)
5990 (windows_nat_target::thread_name)
5991 (windows_nat_target::thread_alive): Update.
5992 * nat/windows-nat.h (enum thread_disposition_type): Move from
5993 windows-nat.c.
5994 (thread_rec): Declare.
5995
5996 2020-04-08 Tom Tromey <tromey@adacore.com>
5997
5998 * windows-nat.c: Add "using namespace".
5999 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6000 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6001
6002 2020-04-08 Tom Tromey <tromey@adacore.com>
6003
6004 * nat/windows-nat.h (struct windows_thread_info): Declare
6005 destructor.
6006 * nat/windows-nat.c (~windows_thread_info): New.
6007
6008 2020-04-08 Tom Tromey <tromey@adacore.com>
6009
6010 PR gdb/22992
6011 * windows-nat.c (current_event): Update comment.
6012 (last_wait_event, desired_stop_thread_id): New globals.
6013 (struct pending_stop): New.
6014 (pending_stops): New global.
6015 (windows_nat_target) <stopped_by_sw_breakpoint>
6016 <supports_stopped_by_sw_breakpoint>: New methods.
6017 (windows_fetch_one_register): Add assertions. Adjust PC.
6018 (windows_continue): Handle pending stops. Suspend other threads
6019 when stepping. Use last_wait_event
6020 (wait_for_debug_event): New function.
6021 (get_windows_debug_event): Use wait_for_debug_event. Handle
6022 pending stops. Queue spurious stops.
6023 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6024 (windows_nat_target::kill): Use wait_for_debug_event.
6025 * nat/windows-nat.h (struct windows_thread_info)
6026 <stopped_at_software_breakpoint>: New field.
6027 * nat/windows-nat.c (windows_thread_info::resume): Clear
6028 stopped_at_software_breakpoint.
6029
6030 2020-04-08 Tom Tromey <tromey@adacore.com>
6031
6032 * windows-nat.c (enum thread_disposition_type): New.
6033 (thread_rec): Replace "get_context" parameter with "disposition";
6034 change type.
6035 (windows_add_thread, windows_nat_target::fetch_registers)
6036 (windows_nat_target::store_registers, handle_exception)
6037 (windows_nat_target::resume, get_windows_debug_event)
6038 (windows_nat_target::get_tib_address)
6039 (windows_nat_target::thread_name)
6040 (windows_nat_target::thread_alive): Update.
6041
6042 2020-04-08 Tom Tromey <tromey@adacore.com>
6043
6044 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6045 (windows_continue): Use windows_continue::resume.
6046 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6047 resume>: Declare new methods.
6048 * nat/windows-nat.c: New file.
6049 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6050
6051 2020-04-08 Tom Tromey <tromey@adacore.com>
6052
6053 * windows-nat.c (windows_add_thread, windows_delete_thread)
6054 (windows_nat_target::fetch_registers)
6055 (windows_nat_target::store_registers, fake_create_process)
6056 (windows_nat_target::resume, windows_nat_target::resume)
6057 (get_windows_debug_event, windows_nat_target::wait)
6058 (windows_nat_target::pid_to_str)
6059 (windows_nat_target::get_tib_address)
6060 (windows_nat_target::get_ada_task_ptid)
6061 (windows_nat_target::thread_name)
6062 (windows_nat_target::thread_alive): Use lwp, not tid.
6063
6064 2020-04-08 Tom Tromey <tromey@adacore.com>
6065
6066 * windows-nat.c (handle_exception)
6067 (windows_nat_target::thread_name): Update.
6068 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6069 <name>: Now unique_xmalloc_ptr.
6070
6071 2020-04-08 Tom Tromey <tromey@adacore.com>
6072
6073 * windows-nat.c (thread_rec)
6074 (windows_nat_target::fetch_registers): Update.
6075 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6076 Update comment.
6077 <debug_registers_changed, reload_context>: Now bool.
6078
6079 2020-04-08 Tom Tromey <tromey@adacore.com>
6080
6081 * windows-nat.c (windows_add_thread): Use new.
6082 (windows_init_thread_list, windows_delete_thread): Use delete.
6083 (get_windows_debug_event): Update.
6084 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6085 destructor, and initializers.
6086
6087 2020-04-08 Tom Tromey <tromey@adacore.com>
6088
6089 * windows-nat.c (struct windows_thread_info): Remove.
6090 * nat/windows-nat.h: New file.
6091
6092 2020-04-08 Tom Tromey <tromey@adacore.com>
6093
6094 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6095 (thread_rec, windows_add_thread, windows_delete_thread)
6096 (windows_continue): Update.
6097
6098 2020-04-08 Tom Tromey <tromey@adacore.com>
6099
6100 * windows-nat.c (struct windows_thread_info): Remove typedef.
6101 (thread_head): Remove.
6102 (thread_list): New global.
6103 (thread_rec, windows_add_thread, windows_init_thread_list)
6104 (windows_delete_thread, windows_continue): Update.
6105
6106 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6107
6108 * windows-tdep.h (windows_init_abi): Add comment.
6109 (cygwin_init_abi): New declaration.
6110 * windows-tdep.c: Split signal enumeration in two, one for
6111 Windows and one for Cygwin.
6112 (windows_gdb_signal_to_target): Only deal with signal of the
6113 Windows OS ABI.
6114 (cygwin_gdb_signal_to_target): New function.
6115 (windows_init_abi): Rename to windows_init_abi_common, don't set
6116 gdb_signal_to_target gdbarch method. Add new new function with
6117 this name.
6118 (cygwin_init_abi): New function.
6119 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6120 comment. Don't call windows_init_abi.
6121 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6122 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6123 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6124 i386_windows_init_abi_common, don't call windows_init_abi. Add
6125 a new function of this name.
6126 (i386_cygwin_init_abi): New function.
6127 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6128 OS ABI Cygwin.
6129
6130 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6131
6132 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6133 parameter.c.
6134 (dwarf2_read_gdb_index): Update.
6135
6136 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6137
6138 * nbsd-tdep.c: Include "objfiles.h".
6139 (nbsd_skip_solib_resolver): New.
6140 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6141
6142 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6143
6144 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6145 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6146 with DW_LLE_base_addressx are being emitted in DWARFv5.
6147 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6148 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6149 unsigned integer.
6150
6151 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6152
6153 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6154 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6155 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6156 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6157 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6158 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6159 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6160
6161
6162 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6163
6164 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6165 (read_loclist_index): New function definition.
6166 (lookup_loclist_base): New function definition.
6167 (read_loclist_header): New function definition.
6168 (dwarf2_cu): Add loclist_base and loclist_header field.
6169 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6170 (read_full_die_1): Read the value of DW_AT_loclists_base.
6171 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6172 (read_attribute_value): Handle DW_FORM_loclistx.
6173 (skip_one_die): Handle DW_FORM_loclistx.
6174 (loclist_header): New structure declaration.
6175 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6176
6177 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6178
6179 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6180 constructor. Remove `addr` parameter from other constructor and
6181 add `per_cu` parameter.
6182 * dwarf2/read.c (create_partial_symtab): Update.
6183
6184 2020-04-07 Tom de Vries <tdevries@suse.de>
6185
6186 PR symtab/25796
6187 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6188 (partial_die_info::fixup): Inherit has_const_value.
6189
6190 2020-04-07 Tom de Vries <tdevries@suse.de>
6191
6192 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6193 symbols without address.
6194
6195 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6196
6197 * nbsd-nat.h (struct thread_info): Add forward declaration.
6198 (nbsd_nat_target::thread_alive): Add.
6199 (nbsd_nat_target::thread_name): Likewise.
6200 (nbsd_nat_target::update_thread_list): Likewise.
6201 (update_thread_list::post_attach): Likewise.
6202 (post_attach::pid_to_str): Likewise.
6203 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6204 (nbsd_thread_lister): Add.
6205 (nbsd_nat_target::thread_alive): Likewise.
6206 (nbsd_nat_target::thread_name): Likewise.
6207 (nbsd_add_threads): Likewise.
6208 (update_thread_list::post_attach): Likewise.
6209 (nbsd_nat_target::update_thread_list): Likewise.
6210 (post_attach::pid_to_str): Likewise.
6211
6212 2020-04-06 Tom Tromey <tromey@adacore.com>
6213
6214 * ada-valprint.c (print_variant_part): Extract the variant field.
6215 (print_field_values): Use the field as the outer value when
6216 recursing.
6217
6218 2020-04-06 Tom Tromey <tromey@adacore.com>
6219
6220 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6221 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6222 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6223 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6224 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6225
6226 2020-04-06 Tom Tromey <tromey@adacore.com>
6227
6228 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6229 TYPE_CODE_ERROR.
6230
6231 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6232
6233 * nbsd-tdep.c: Include "gdbarch.h".
6234 Define enum with NetBSD signal numbers.
6235 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6236 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6237 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6238 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6239 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6240 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6241 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6242 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6243 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6244 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6245 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6246 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6247
6248 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6249
6250 PR gdb/25325
6251 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6252
6253 2020-04-03 Tom Tromey <tromey@adacore.com>
6254
6255 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6256 Read constant block.
6257
6258 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6259
6260 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6261 (gdb_bfd_get_full_section_contents): New declaration.
6262 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6263 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6264 gdb_bfd_get_full_section_contents.
6265
6266 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6267
6268 * exec.c (build_section_table): Replace internal_error with
6269 gdb_assert.
6270 (section_table_xfer_memory_partial): Likewise.
6271 * mdebugread.c (parse_partial_symbols): Likewise.
6272 * psymtab.c (lookup_partial_symbol): Likewise.
6273 * utils.c (wrap_here): Likewise.
6274
6275 2020-04-02 Tom Tromey <tromey@adacore.com>
6276
6277 * f-lang.c (build_fortran_types): Use arch_type to initialize
6278 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6279
6280 2020-04-02 Tom Tromey <tromey@adacore.com>
6281
6282 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6283 of attributes.
6284
6285 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6286 Bernd Edlinger <bernd.edlinger@hotmail.de>
6287 Tom Tromey <tromey@adacore.com>
6288
6289 * buildsym.c (buildsym_compunit::record_line): Remove
6290 deduplication code.
6291
6292 2020-04-02 Tom de Vries <tdevries@suse.de>
6293
6294 PR ada/24671
6295 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6296
6297 2020-04-02 Tom de Vries <tdevries@suse.de>
6298
6299 * dwarf2/read.c (dwarf2_gdb_index_functions,
6300 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6301 NULL.
6302 * psymtab.c (psym_lookup_global_symbol_language): New function.
6303 (psym_functions): Init psym_lookup_global_symbol_language with
6304 psym_lookup_global_symbol_language.
6305 * symfile-debug.c (debug_sym_quick_functions): Init
6306 lookup_global_symbol_language with NULL.
6307 * symfile.c (set_initial_language): Remove fixme comment.
6308 * symfile.h (struct quick_symbol_functions): Add
6309 lookup_global_symbol_language.
6310 * symtab.c (find_quick_global_symbol_language): New function.
6311 (find_main_name): Use find_quick_global_symbol_language.
6312
6313 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6314
6315 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6316
6317 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6318
6319 * buildsym.c (record_line): Fix undefined behavior and preserve
6320 lines at eof.
6321
6322 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6323
6324 * buildsym.c (record_line): Fix the resizing condition.
6325
6326 2020-04-01 Tom Tromey <tom@tromey.com>
6327
6328 * value.h (value_literal_complex): Add comment.
6329 * valops.c (value_literal_complex): Refer to value.h.
6330
6331 2020-04-01 Tom Tromey <tom@tromey.com>
6332
6333 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6334 (scalar_type): New rule, from typebase.
6335 (typebase): Use scalar_type. Recognize complex types.
6336 (field_name): Handle FLOAT_KEYWORD.
6337 (ident_tokens): Add _Complex and __complex__.
6338
6339 2020-04-01 Tom Tromey <tom@tromey.com>
6340
6341 PR exp/25299:
6342 * valarith.c (promotion_type, complex_binop): New functions.
6343 (scalar_binop): Handle complex numbers. Use promotion_type.
6344 (value_pos, value_neg, value_complement): Handle complex numbers.
6345
6346 2020-04-01 Tom Tromey <tom@tromey.com>
6347
6348 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6349 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6350 (parse_number): Handle complex numbers.
6351
6352 2020-04-01 Tom Tromey <tom@tromey.com>
6353
6354 * c-valprint.c (c_decorations): Change complex suffix to "i".
6355
6356 2020-04-01 Tom Tromey <tom@tromey.com>
6357
6358 * valprint.c (generic_value_print_complex): Use accessors.
6359 * value.h (value_real_part, value_imaginary_part): Declare.
6360 * valops.c (value_real_part, value_imaginary_part): New
6361 functions.
6362 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6363
6364 2020-04-01 Tom Tromey <tom@tromey.com>
6365
6366 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6367 (read_range_type): Update.
6368 * mdebugread.c (basic_type): Update.
6369 * go-lang.c (build_go_types): Use init_complex_type.
6370 * gdbtypes.h (struct main_type) <complex_type>: New member.
6371 (init_complex_type): Update.
6372 (arch_complex_type): Don't declare.
6373 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6374 Make name if none given. Use alloc_type_copy. Look for cached
6375 complex type.
6376 (arch_complex_type): Remove.
6377 (gdbtypes_post_init): Use init_complex_type.
6378 * f-lang.c (build_fortran_types): Use init_complex_type.
6379 * dwarf2/read.c (read_base_type): Update.
6380 * d-lang.c (build_d_types): Use init_complex_type.
6381 * ctfread.c (read_base_type): Update.
6382
6383 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6384
6385 * infrun.c (stop_all_threads): Update assertion, plus when
6386 stopping threads, take into account that we might be trying
6387 to stop an all-stop target.
6388 (stop_waiting): Call 'stop_all_threads' if there exists a
6389 non-stop target.
6390
6391 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6392
6393 * target.h (exists_non_stop_target): New function declaration.
6394 * target.c (exists_non_stop_target): New function.
6395
6396 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6397
6398 PR gdb/24789
6399 * eval.c (is_integral_or_integral_reference): New function.
6400 (evaluate_subexp_standard): Allow integer references in
6401 pointer arithmetic.
6402
6403 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6404
6405 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6406 check for no ptid in the stop reply when the target is non-stop.
6407
6408 2020-04-01 Tom Tromey <tromey@adacore.com>
6409
6410 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6411 "name" parameter to rvalue reference. Initialize m_name_holder.
6412 <lookup_name_info>: New overloads.
6413 <name>: Return gdb::string_view.
6414 <c_str>: New method.
6415 <make_ignore_params>: Update.
6416 <search_name_hash>: Update.
6417 <language_lookup_name>: Return const char *.
6418 <m_name>: Change type.
6419 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6420 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6421 (lookup_name_info::match_any): Update.
6422 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6423 Update.
6424 * minsyms.c (linkage_name_str): Update.
6425 * language.c (default_symbol_name_matcher): Update.
6426 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6427 Update.
6428 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6429 (ada_lookup_name_info::ada_lookup_name_info): Update.
6430 (literal_symbol_name_matcher): Update.
6431
6432 2020-04-01 Tom Tromey <tromey@adacore.com>
6433
6434 * psymtab.c (psymtab_search_name): Remove function.
6435 (psym_lookup_symbol): Create search name and lookup name here.
6436 (lookup_partial_symbol): Remove "name" parameter; add
6437 lookup_name.
6438 (psym_expand_symtabs_for_function): Update.
6439
6440 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6441
6442 PR tui/25597:
6443 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6444
6445 2020-03-31 Tom Tromey <tromey@adacore.com>
6446
6447 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6448 memcpy.
6449
6450 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6451
6452 * features/riscv/32bit-csr.xml: Regenerated.
6453 * features/riscv/64bit-csr.xml: Regenerated.
6454
6455 2020-03-30 Tom Tromey <tromey@adacore.com>
6456
6457 * ada-valprint.c (print_variant_part): Update.
6458 * ada-lang.h (ada_which_variant_applies): Update.
6459 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6460 outer_valaddr parameters; replace with "outer" value parameter.
6461 (to_fixed_variant_branch_type): Update.
6462
6463 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6464
6465 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6466 <list>. Remove inclusion of observable.h.
6467 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6468 (struct arch_lwp_info): New struct.
6469 (class ppc_linux_dreg_interface): New class.
6470 (struct ppc_linux_process_info): New struct.
6471 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6472 <low_new_clone, low_forget_process, low_prepare_to_resume>
6473 <copy_thread_dreg_state, mark_thread_stale>
6474 <mark_debug_registers_changed, register_hw_breakpoint>
6475 <clear_hw_breakpoint, register_wp, clear_wp>
6476 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6477 <num_memory_accesses, get_trigger_type>
6478 <create_watchpoint_request, hwdebug_point_cmp>
6479 <init_arch_lwp_info, get_arch_lwp_info>
6480 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6481 methods.
6482 <struct ptid_hash>: New inner struct.
6483 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6484 members.
6485 (saved_dabr_value, hwdebug_info, max_slots_number)
6486 (struct hw_break_tuple, struct thread_points, ppc_threads)
6487 (have_ptrace_hwdebug_interface)
6488 (hwdebug_find_thread_points_by_tid)
6489 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6490 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6491 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6492 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6493 use m_dreg_interface.
6494 (hwdebug_point_cmp): Change to...
6495 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6496 reference arguments instead of pointers.
6497 (ppc_linux_nat_target::ranged_break_num_registers): Use
6498 m_dreg_interface.
6499 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6500 m_dreg_interface. Call register_hw_breakpoint.
6501 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6502 m_dreg_interface. Call clear_hw_breakpoint.
6503 (get_trigger_type): Change to...
6504 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6505 comment.
6506 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6507 use m_dreg_interface. Call register_hw_breakpoint.
6508 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6509 use m_dreg_interface. Call clear_hw_breakpoint.
6510 (can_use_watchpoint_cond_accel): Change to...
6511 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6512 method. Update comment, use m_dreg_interface and
6513 m_process_info.
6514 (calculate_dvc): Change to...
6515 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6516 m_dreg_interface.
6517 (num_memory_accesses): Change to...
6518 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6519 (check_condition): Change to...
6520 (ppc_linux_nat_target::check_condition): ...this method.
6521 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6522 comment, use m_dreg_interface.
6523 (create_watchpoint_request): Change to...
6524 (ppc_linux_nat_target::create_watchpoint_request): ...this
6525 method. Use m_dreg_interface.
6526 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6527 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6528 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6529 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6530 (ppc_linux_nat_target::low_forget_process)
6531 (ppc_linux_nat_target::low_new_fork)
6532 (ppc_linux_nat_target::low_new_clone)
6533 (ppc_linux_nat_target::low_delete_thread)
6534 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6535 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6536 only call mark_thread_stale.
6537 (ppc_linux_thread_exit): Remove.
6538 (ppc_linux_nat_target::stopped_data_address): Change to...
6539 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6540 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6541 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6542 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6543 comment. Call low_stopped_data_address.
6544 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6545 m_dreg_interface.
6546 (ppc_linux_nat_target::masked_watch_num_registers): Use
6547 m_dreg_interface.
6548 (ppc_linux_nat_target::copy_thread_dreg_state)
6549 (ppc_linux_nat_target::mark_thread_stale)
6550 (ppc_linux_nat_target::mark_debug_registers_changed)
6551 (ppc_linux_nat_target::register_hw_breakpoint)
6552 (ppc_linux_nat_target::clear_hw_breakpoint)
6553 (ppc_linux_nat_target::register_wp)
6554 (ppc_linux_nat_target::clear_wp)
6555 (ppc_linux_nat_target::init_arch_lwp_info)
6556 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6557 (_initialize_ppc_linux_nat): Remove observer callback.
6558
6559 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6560
6561 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6562 (ppc_linux_nat_target::auxv_parse)
6563 (ppc_linux_nat_target::read_description)
6564 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6565 Move up.
6566
6567 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6568
6569 * linux-nat.h (low_new_clone): New method.
6570 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6571
6572 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6573
6574 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6575 (dbx_expand_psymtab): ... this.
6576 (start_psymtab): Update.
6577 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6578 (mdebug_expand_psymtab): ... this.
6579 (parse_partial_symbols): Update.
6580 (new_psymtab): Update.
6581 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6582 (xcoff_expand_psymtab): ... this.
6583 (xcoff_start_psymtab): Update.
6584
6585 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6586
6587 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6588 <expand_dependencies>: ... this.
6589 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6590 (partial_symtab::expand_dependencies): ... this.
6591 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6592 Update.
6593 (dwarf2_psymtab::expand_psymtab): Update.
6594 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6595 * mdebugread.c (psymtab_to_symtab_1): Update.
6596 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6597
6598 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6599
6600 * psympriv.h (discard_psymtab): Remove.
6601 * dbxread.c (dbx_end_psymtab): Update.
6602 * xcoffread.c (xcoff_end_psymtab): Update.
6603
6604 2020-03-28 Tom Tromey <tom@tromey.com>
6605
6606 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6607 comment.
6608
6609 2020-03-28 Tom Tromey <tom@tromey.com>
6610
6611 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6612
6613 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6614
6615 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6616
6617 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6618
6619 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6620
6621 2020-03-26 Tom Tromey <tom@tromey.com>
6622
6623 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6624 (mark_common_block_symbol_computed, read_tag_string_type)
6625 (attr_to_dynamic_prop, read_subrange_type): Update.
6626 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6627 to be methods on struct attribute.
6628 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6629 (read_call_site_scope, partial_die_info::read)
6630 (partial_die_info::read, lookup_die_type, follow_die_ref):
6631 Update.
6632 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6633 from dwarf2_get_ref_die_offset.
6634 (attribute::constant_value): New method, from
6635 dwarf2_get_attr_constant_value.
6636 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6637 Declare method.
6638 <constant_value>: New method.
6639
6640 2020-03-26 Tom Tromey <tom@tromey.com>
6641
6642 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6643 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6644 (dwarf_type_encoding_name): Move to stringify.c.
6645 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6646 * dwarf2/stringify.c: New file.
6647 * dwarf2/stringify.h: New file.
6648
6649 2020-03-26 Tom Tromey <tom@tromey.com>
6650
6651 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6652 Rewrite.
6653
6654 2020-03-26 Tom Tromey <tom@tromey.com>
6655
6656 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6657 methods.
6658 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6659 (lookup_ranges_base): Likewise.
6660 (read_cutu_die_from_dwo, read_full_die_1): Update.
6661
6662 2020-03-26 Tom Tromey <tom@tromey.com>
6663
6664 * dwarf2/read.c (read_import_statement, read_file_scope)
6665 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6666 (read_lexical_block_scope, read_call_site_scope)
6667 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6668 (handle_struct_member_die, process_structure_scope)
6669 (update_enumeration_type_from_children)
6670 (process_enumeration_scope, read_array_type, read_common_block)
6671 (read_namespace, read_module, read_subroutine_type): Update.
6672 (sibling_die): Remove.
6673
6674 2020-03-26 Tom Tromey <tom@tromey.com>
6675
6676 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6677 (build_type_psymtabs_reader, read_structure_type)
6678 (read_enumeration_type, read_full_die_1): Update.
6679 (dwarf2_attr_no_follow): Move to die.h.
6680 * dwarf2/die.h (struct die_info) <attr>: New method.
6681
6682 2020-03-26 Tom Tromey <tom@tromey.com>
6683
6684 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6685 <base_address>: Now an optional.
6686 (dwarf2_find_base_address, dwarf2_rnglists_process)
6687 (dwarf2_ranges_process, fill_in_loclist_baton)
6688 (dwarf2_symbol_mark_computed): Update.
6689
6690 2020-03-26 Tom Tromey <tom@tromey.com>
6691
6692 * dwarf2/read.c (struct die_info): Move to die.h.
6693 * dwarf2/die.h: New file.
6694
6695 2020-03-26 Tom Tromey <tom@tromey.com>
6696
6697 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6698 * dwarf2/read.c
6699 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6700 Move to line-header.c.
6701 (read_checked_initial_length_and_offset, read_formatted_entries):
6702 Likewise.
6703 (dwarf_decode_line_header): Split into two.
6704 * dwarf2/line-header.c
6705 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6706 Move from read.c.
6707 (read_checked_initial_length_and_offset, read_formatted_entries):
6708 Likewise.
6709 (dwarf_decode_line_header): New function, split from read.c.
6710
6711 2020-03-26 Tom Tromey <tom@tromey.com>
6712
6713 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6714 Declare method.
6715 * dwarf2/read.c (read_attribute_value): Update.
6716 (dwarf2_per_objfile::read_line_string): Rename from
6717 read_indirect_line_string.
6718 (read_formatted_entries): Update.
6719
6720 2020-03-26 Tom Tromey <tom@tromey.com>
6721
6722 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6723 variable.
6724
6725 2020-03-26 Tom Tromey <tom@tromey.com>
6726
6727 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6728 const.
6729 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6730 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6731 parameter const.
6732
6733 2020-03-26 Tom Tromey <tom@tromey.com>
6734
6735 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6736 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6737 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6738 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6739
6740 2020-03-26 Tom Tromey <tom@tromey.com>
6741
6742 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6743 file_names_size, file_full_name, file_file_name>: Use const.
6744 <file_name_at, file_names>: Add const overload.
6745 * dwarf2/line-header.c (line_header::file_file_name)
6746 (line_header::file_full_name): Update.
6747
6748 2020-03-26 Tom Tromey <tom@tromey.com>
6749
6750 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6751 (macro_start_file, consume_improper_spaces)
6752 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6753 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6754 (dwarf_decode_macros): Move to macro.c.
6755 * dwarf2/macro.c: New file.
6756 * dwarf2/macro.h: New file.
6757 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6758
6759 2020-03-26 Tom Tromey <tom@tromey.com>
6760
6761 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6762 method.
6763 * dwarf2/section.c: New method. From
6764 read_indirect_string_at_offset_from.
6765 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6766 (read_indirect_string_at_offset_from): Move to section.c.
6767 (read_indirect_string_at_offset): Rewrite.
6768 (read_indirect_line_string_at_offset): Remove.
6769 (read_indirect_string, read_indirect_line_string)
6770 (dwarf_decode_macro_bytes): Update.
6771
6772 2020-03-26 Tom Tromey <tom@tromey.com>
6773
6774 * dwarf2/section.h (struct dwarf2_section_info)
6775 <overload_complaint>: Declare.
6776 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6777 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6778 Rename from dwarf2_section_buffer_overflow_complaint.
6779 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6780 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6781
6782 2020-03-26 Tom Tromey <tom@tromey.com>
6783
6784 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6785 Declare.
6786 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6787 Move from read.c.
6788 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6789 to section.c.
6790
6791 2020-03-26 Tom Tromey <tom@tromey.com>
6792
6793 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6794
6795 2020-03-26 Tom Tromey <tom@tromey.com>
6796
6797 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6798 "builder".
6799 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6800 parameter.
6801 (dwarf_decode_macros): Update.
6802
6803 2020-03-26 Tom Tromey <tom@tromey.com>
6804
6805 * dwarf2/read.c (read_attribute_value): Update.
6806 (read_indirect_string_from_dwz): Move to dwz.c; change into
6807 method.
6808 (dwarf_decode_macro_bytes): Update.
6809 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6810 * dwarf2/dwz.c: New file.
6811 * Makefile.in (COMMON_SFILES): Add dwz.c.
6812
6813 2020-03-26 Tom Tromey <tom@tromey.com>
6814
6815 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6816 * dwarf2/read.c: Add include.
6817 * dwarf2/index-write.c: Add include.
6818 * dwarf2/index-cache.c: Add include.
6819 * dwarf2/dwz.h: New file.
6820
6821 2020-03-25 Tom Tromey <tom@tromey.com>
6822
6823 * compile/compile-object-load.c (get_out_value_type): Mention
6824 correct symbol name in error message.
6825
6826 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6827
6828 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6829
6830 2020-03-25 Tom de Vries <tdevries@suse.de>
6831
6832 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6833 * symmisc.c (dump_symtab_1): Print user and includes fields.
6834 (maintenance_info_symtabs): Same.
6835
6836 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6837
6838 PR gdb/25534
6839 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6840 (riscv_regcache_cooked_write): New function.
6841 (riscv_push_dummy_call): Use new function.
6842 (riscv_return_value): Likewise.
6843
6844 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6845
6846 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6847 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6848 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6849 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6850 * infrun.c (follow_fork): Likewise.
6851 (follow_fork_inferior): Likewise.
6852 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6853 * linux-nat.h (class linux_nat_target): Likewise.
6854 * remote.c (class remote_target) <follow_fork>: Likewise.
6855 (remote_target::follow_fork): Likewise.
6856 * target-delegates.c: Re-generate.
6857 * target.c (default_follow_fork): Likewise.
6858 (target_follow_fork): Likewise.
6859 * target.h (struct target_ops) <follow_fork>: Likewise.
6860 (target_follow_fork): Likewise.
6861
6862 2020-03-24 Tom de Vries <tdevries@suse.de>
6863
6864 * psymtab.c (maintenance_info_psymtabs): Print user field.
6865
6866 2020-03-20 Tom Tromey <tromey@adacore.com>
6867
6868 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6869 const.
6870 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6871 const.
6872
6873 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6874
6875 * ptrace.m4: Don't check for ptrace declaration.
6876 * config.in: Re-generate.
6877 * configure: Re-generate.
6878 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6879 not defined.
6880
6881 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6882
6883 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6884 `PTRACE_TYPE_RET'.
6885 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6886 * sparc-nat.c (gdb_ptrace): Likewise.
6887 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6888
6889 2020-03-20 Tom Tromey <tromey@adacore.com>
6890
6891 * c-exp.y (lex_one_token): Fix assert.
6892
6893 2020-03-20 Tom Tromey <tromey@adacore.com>
6894
6895 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6896 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6897 strncpy call.
6898
6899 2020-03-20 Tom Tromey <tromey@adacore.com>
6900
6901 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6902
6903 2020-03-20 Tom Tromey <tromey@adacore.com>
6904
6905 * ada-valprint.c (print_variant_part): Remove parameters; switch
6906 to value-based API.
6907 (print_field_values): Likewise.
6908 (ada_val_print_struct_union): Likewise.
6909 (ada_value_print_1): Update.
6910
6911 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6912
6913 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6914 nbsd_nat_target instead of inf_ptrace_target.
6915 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6916 nbsd_nat_target.
6917
6918 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6919
6920 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6921 it to the ptrace call.
6922 * (store_registers): Likewise.
6923
6924 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6925
6926 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6927 it to the ptrace call.
6928 * (store_registers): Likewise.
6929
6930 2020-03-19 Luis Machado <luis.machado@linaro.org>
6931
6932 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6933 valid, fetch vg value from ptrace.
6934
6935 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6936 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6937 * inf-ptrace.c: Likewise.
6938 * (gdb_ptrace): Add.
6939 * (inf_ptrace_target::resume): Update.
6940 * (inf_ptrace_target::xfer_partial): Likewise.
6941 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6942 * (inf_ptrace_peek_poke): Update.
6943
6944 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6945
6946 * x86-bsd-nat.c (gdb_ptrace): New.
6947 * (x86bsd_dr_set): Add new argument `ptid'.
6948 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6949 x86bsd_dr_set_addr): Update.
6950
6951 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6952
6953 * remote.c (remote_target::process_stop_reply): Handle events for
6954 all threads differently.
6955
6956 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6957
6958 * completer.c (completion_tracker::remove_completion): Define new
6959 function.
6960 * completer.h (completion_tracker::remove_completion): Declare new
6961 function.
6962 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6963 when adding a C++ function symbol.
6964
6965 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6966
6967 * completer.c (completion_tracker::completion_hash_entry): Define
6968 new class.
6969 (advance_to_filename_complete_word_point): Call
6970 recompute_lowest_common_denominator.
6971 (completion_tracker::completion_tracker): Call discard_completions
6972 to setup the hash table.
6973 (completion_tracker::discard_completions): Allow for being called
6974 from the constructor, pass new equal function, and element deleter
6975 when constructing the hash table. Initialise new class member
6976 variables.
6977 (completion_tracker::maybe_add_completion): Remove use of
6978 m_entries_vec, and store more information into m_entries_hash.
6979 (completion_tracker::recompute_lcd_visitor): New function, most
6980 content taken from...
6981 (completion_tracker::recompute_lowest_common_denominator):
6982 ...here, this now just visits each item in the hash calling the
6983 above visitor.
6984 (completion_tracker::build_completion_result): Remove use of
6985 m_entries_vec, call recompute_lowest_common_denominator.
6986 * completer.h (completion_tracker::have_completions): Remove use
6987 of m_entries_vec.
6988 (completion_tracker::completion_hash_entry): Declare new class.
6989 (completion_tracker::recompute_lowest_common_denominator): Change
6990 function signature.
6991 (completion_tracker::recompute_lcd_visitor): Declare new function.
6992 (completion_tracker::m_entries_vec): Delete.
6993 (completion_tracker::m_entries_hash): Initialize to NULL.
6994 (completion_tracker::m_lowest_common_denominator_valid): New
6995 member variable.
6996 (completion_tracker::m_lowest_common_denominator_max_length): New
6997 member variable.
6998
6999 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7000
7001 * regformats/regdef.h: Put reg in gdb namespace.
7002
7003 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7004
7005 * i386-bsd-nat.c (gdb_ptrace): New.
7006 * (i386bsd_fetch_inferior_registers,
7007 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7008 * (i386bsd_fetch_inferior_registers,
7009 i386bsd_store_inferior_registers) Use gdb_ptrace.
7010
7011 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7012
7013 * amd64-bsd-nat.c (gdb_ptrace): New.
7014 * (amd64bsd_fetch_inferior_registers,
7015 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7016 * (amd64bsd_fetch_inferior_registers,
7017 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7018
7019 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7020
7021 * user-regs.c (user_reg::read): Rename to...
7022 (user_reg::xread): ...this.
7023 * (append_user_reg): Rename argument `read' to `xread'.
7024 * (user_reg_add_builtin): Likewise.
7025 * (user_reg_add): Likewise.
7026 * (value_of_user_reg): Likewise.
7027
7028 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7029
7030 * sparc-nat.c (gdb_ptrace): New.
7031 * sparc-nat.c (sparc_fetch_inferior_registers)
7032 (sparc_store_inferior_registers) Remove obsolete comment.
7033 * sparc-nat.c (sparc_fetch_inferior_registers)
7034 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7035 * sparc-nat.c (sparc_fetch_inferior_registers)
7036 (sparc_store_inferior_registers) Use gdb_ptrace.
7037
7038 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7039
7040 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7041 it to the ptrace call.
7042 * sh-nbsd-nat.c (store_registers): Likewise.
7043
7044 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7045
7046 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7047 nbsd_nat_target instead of inf_ptrace_target.
7048 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7049 nbsd_nat_target.
7050
7051 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7052
7053 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7054
7055 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7056
7057 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7058 <sys/sysctl.h>.
7059 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7060
7061 2020-03-17 Tom de Vries <tdevries@suse.de>
7062
7063 PR gdb/23710
7064 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7065 fields.
7066 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7067 fields.
7068 (process_imported_unit_die): Skip import of c++ CUs.
7069
7070 2020-03-16 Tom Tromey <tom@tromey.com>
7071
7072 * p-valprint.c (pascal_object_print_value): Initialize
7073 base_value.
7074
7075 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7076 Shahab Vahedi <shahab@synopsys.com>
7077
7078 * Makefile.in: Add arch/arc.o
7079 * configure.tgt: Likewise.
7080 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7081 (_initialize_arc_tdep): Don't initialize old target descriptions.
7082 (arc_read_description): New function to cache target descriptions.
7083 * arc-tdep.h (arc_read_description): Add proto type.
7084 * arch/arc.c: New file.
7085 * arch/arc.h: Likewise.
7086 * features/Makefile: Replace old target descriptions with new.
7087 * features/arc-arcompact.c: Remove.
7088 * features/arc-arcompact.xml: Likewise.
7089 * features/arc-v2.c: Likewise
7090 * features/arc-v2.xml: Likewise
7091 * features/arc/aux-arcompact.xml: New file.
7092 * features/arc/aux-v2.xml: Likewise.
7093 * features/arc/core-arcompact.xml: Likewise.
7094 * features/arc/core-v2.xml: Likewise.
7095 * features/arc/aux-arcompact.c: Generate.
7096 * features/arc/aux-v2.c: Likewise.
7097 * features/arc/core-arcompact.c: Likewise.
7098 * features/arc/core-v2.c: Likewise.
7099 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7100
7101 2020-03-16 Tom Tromey <tromey@adacore.com>
7102
7103 PR gdb/25663:
7104 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7105 putting value into bcache.
7106
7107 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7108
7109 PR gdb/21500
7110 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7111 to...
7112 (amd64_windows_init_abi_common): ... this. Don't set size of
7113 long type.
7114 (amd64_windows_init_abi): New function.
7115 (amd64_cygwin_init_abi): New function.
7116 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7117 the Cygwin OS ABI.
7118 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7119 comment.
7120
7121 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7122
7123 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7124 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7125 (pe_import_directory_entry): New struct type.
7126 (is_linked_with_cygwin_dll): New function.
7127 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7128 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7129 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7130
7131 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7132
7133 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7134 i386_cygwin_core_osabi_sniffer.
7135
7136 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7137
7138 * i386-cygwin-tdep.c: Rename to...
7139 * i386-windows-tdep.c: ... this.
7140 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7141 i386-windows-tdep.c.
7142 * configure.tgt: Likewise.
7143
7144 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7145
7146 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7147 * osabi.c (gdb_osabi_names): Add "Windows".
7148 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7149 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7150 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7151 i386_cygwin_osabi_sniffer.
7152 (_initialize_i386_cygwin_tdep): Register OS ABI
7153 GDB_OSABI_WINDOWS for i386.
7154 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7155 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7156 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7157 for x86-64.
7158 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7159 when the target matches '*-*-mingw*'.
7160
7161 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7162
7163 * defs.h (enum gdb_osabi): Move to...
7164 * osabi.h (enum gdb_osabi): ... here.
7165 * gdbarch.sh: Include osabi.h in gdbarch.h.
7166 * gdbarch.h: Re-generate.
7167
7168 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7169
7170 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7171 function.
7172 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7173
7174 2020-03-14 Tom Tromey <tom@tromey.com>
7175
7176 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7177 for C++.
7178 (c_type_print_modifier): Likewise. Add "language" parameter.
7179 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7180 (c_type_print_base_1): Update.
7181 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7182 constants.
7183 * type-stack.c (type_stack::insert): Handle tp_atomic and
7184 tp_restrict.
7185 (type_stack::follow_type_instance_flags): Likewise.
7186 (type_stack::follow_types): Likewise. Merge type-following code.
7187 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7188 (space_identifier, cv_with_space_id)
7189 (const_or_volatile_or_space_identifier_noopt)
7190 (const_or_volatile_or_space_identifier): Remove.
7191 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7192 rules.
7193 (ptr_operator, typebase): Update.
7194 (enum token_flag) <FLAG_C>: New constant.
7195 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7196 "_Atomic".
7197 (lex_one_token): Handle FLAG_C.
7198
7199 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7200
7201 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7202 it to the ptrace call.
7203 * m68k-bsd-nat.c (store_registers): Likewise.
7204
7205 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7206
7207 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7208 gdb_byte *.
7209 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7210 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7211 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7212
7213 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7214
7215 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7216 nbsd_nat_target instead of inf_ptrace_target.
7217 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7218 nbsd_nat_target.
7219
7220 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7221
7222 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7223 register_t.
7224
7225 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7226
7227 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7228 it to the ptrace call.
7229 * alpha-bsd-nat.c (store_registers): Likewise.
7230
7231 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7232
7233 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7234 includes.
7235 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7236 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7237 fill_fpregset): Likewise.
7238
7239 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7240
7241 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7242 nbsd_nat_target instead of inf_ptrace_target.
7243 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7244 nbsd_nat_target.
7245
7246 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7247
7248 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7249 register_t.
7250
7251 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7252
7253 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7254 it to the ptrace call.
7255 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7256 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7257 * arm-nbsd-nat.c (store_register): Likewise.
7258 * arm-nbsd-nat.c (store_regs): Likewise.
7259 * arm-nbsd-nat.c (store_fp_register): Likewise.
7260 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7261
7262 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7263
7264 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7265 nbsd_nat_target instead of inf_ptrace_target.
7266 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7267 nbsd_nat_target.
7268
7269 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7270
7271 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7272 it to the ptrace call.
7273 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7274
7275 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7276
7277 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7278 it to the ptrace call.
7279 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7280
7281 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7282
7283 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7284 gdb_byte *.
7285 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7286
7287 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7288
7289 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7290 instead of inf_ptrace_target.
7291 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7292 nbsd_nat_target.
7293
7294 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7295
7296 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7297 register_t.
7298
7299 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7300
7301 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7302 register_t.
7303
7304 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7305
7306 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7307 register_t.
7308
7309 2020-03-13 Tom Tromey <tom@tromey.com>
7310
7311 * value.h (val_print): Don't declare.
7312 * valprint.h (val_print_array_elements)
7313 (val_print_scalar_formatted, generic_val_print): Don't declare.
7314 * valprint.c (generic_val_print_array): Take a struct value.
7315 (generic_val_print_ptr, generic_val_print_memberptr)
7316 (generic_val_print_bool, generic_val_print_int)
7317 (generic_val_print_char, generic_val_print_complex)
7318 (generic_val_print): Remove.
7319 (generic_value_print): Update.
7320 (do_val_print): Remove unused parameters. Don't call
7321 la_val_print.
7322 (val_print): Remove.
7323 (common_val_print): Update. Don't call value_check_printable.
7324 (val_print_scalar_formatted, val_print_array_elements): Remove.
7325 * rust-lang.c (rust_val_print): Remove.
7326 (rust_language_defn): Update.
7327 * p-valprint.c (pascal_val_print): Remove.
7328 (pascal_value_print_inner): Update.
7329 (pascal_object_print_val_fields, pascal_object_print_val):
7330 Remove.
7331 (pascal_object_print_static_field): Update.
7332 * p-lang.h (pascal_val_print): Don't declare.
7333 * p-lang.c (pascal_language_defn): Update.
7334 * opencl-lang.c (opencl_language_defn): Update.
7335 * objc-lang.c (objc_language_defn): Update.
7336 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7337 * m2-lang.h (m2_val_print): Don't declare.
7338 * m2-lang.c (m2_language_defn): Update.
7339 * language.h (struct language_defn) <la_val_print>: Remove.
7340 * language.c (unk_lang_value_print_inner): Rename. Change
7341 argument types.
7342 (unknown_language_defn, auto_language_defn): Update.
7343 * go-valprint.c (go_val_print): Remove.
7344 * go-lang.h (go_val_print): Don't declare.
7345 * go-lang.c (go_language_defn): Update.
7346 * f-valprint.c (f_val_print): Remove.
7347 * f-lang.h (f_value_print): Don't declare.
7348 * f-lang.c (f_language_defn): Update.
7349 * d-valprint.c (d_val_print): Remove.
7350 * d-lang.h (d_value_print): Don't declare.
7351 * d-lang.c (d_language_defn): Update.
7352 * cp-valprint.c (cp_print_value_fields)
7353 (cp_print_value_fields_rtti, cp_print_value): Remove.
7354 (cp_print_static_field): Update.
7355 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7356 (c_val_print_struct, c_val_print_union, c_val_print_int)
7357 (c_val_print_memberptr, c_val_print): Remove.
7358 * c-lang.h (c_val_print_array, cp_print_value_fields)
7359 (cp_print_value_fields_rtti): Don't declare.
7360 * c-lang.c (c_language_defn, cplus_language_defn)
7361 (asm_language_defn, minimal_language_defn): Update.
7362 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7363 (ada_val_print_enum): Take a struct value.
7364 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7365 (ada_val_print): Remove.
7366 (ada_value_print_1): Update.
7367 (printable_val_type): Remove.
7368 * ada-lang.h (ada_val_print): Don't declare.
7369 * ada-lang.c (ada_language_defn): Update.
7370
7371 2020-03-13 Tom Tromey <tom@tromey.com>
7372
7373 * valprint.c (do_val_print): Update.
7374 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7375 a struct value.
7376 (value_to_value_object_no_release): Declare.
7377 * python/py-value.c (value_to_value_object_no_release): New
7378 function.
7379 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7380 struct value.
7381 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7382 function.
7383 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7384 a struct value.
7385 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7386 Declare.
7387 (gdbscm_apply_val_pretty_printer): Take a struct value.
7388 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7389 value.
7390 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7391 value.
7392 * extension-priv.h (struct extension_language_ops)
7393 <apply_val_pretty_printer>: Take a struct value.
7394 * cp-valprint.c (cp_print_value): Create a struct value.
7395 (cp_print_value): Update.
7396
7397 2020-03-13 Tom Tromey <tom@tromey.com>
7398
7399 * ada-valprint.c (print_field_values): Call common_val_print.
7400
7401 2020-03-13 Tom Tromey <tom@tromey.com>
7402
7403 * ada-valprint.c (val_print_packed_array_elements): Remove
7404 bitoffset and val parameters. Call common_val_print.
7405 (ada_val_print_string): Remove offset, address, and original_value
7406 parameters.
7407 (ada_val_print_array): Update.
7408 (ada_value_print_array): New function.
7409 (ada_value_print_1): Call it.
7410
7411 2020-03-13 Tom Tromey <tom@tromey.com>
7412
7413 * ada-valprint.c (ada_value_print): Use common_val_print.
7414
7415 2020-03-13 Tom Tromey <tom@tromey.com>
7416
7417 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7418
7419 2020-03-13 Tom Tromey <tom@tromey.com>
7420
7421 * ada-valprint.c (ada_value_print_num): New function.
7422 (ada_value_print_1): Use it.
7423
7424 2020-03-13 Tom Tromey <tom@tromey.com>
7425
7426 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7427
7428 2020-03-13 Tom Tromey <tom@tromey.com>
7429
7430 * ada-valprint.c (ada_value_print_ptr): New function.
7431 (ada_value_print_1): Use it.
7432
7433 2020-03-13 Tom Tromey <tom@tromey.com>
7434
7435 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7436 call common_val_print.
7437 (ada_val_print_1): Update.
7438 (ada_value_print_1): New function.
7439 (ada_value_print_inner): Rewrite.
7440
7441 2020-03-13 Tom Tromey <tom@tromey.com>
7442
7443 * cp-valprint.c (cp_print_value_fields): Update.
7444 (cp_print_value): New function.
7445
7446 2020-03-13 Tom Tromey <tom@tromey.com>
7447
7448 * m2-valprint.c (m2_value_print_inner): Use
7449 cp_print_value_fields.
7450 * cp-valprint.c (cp_print_value_fields): New function.
7451 * c-valprint.c (c_value_print_struct): New function.
7452 (c_value_print_inner): Use c_value_print_struct.
7453 * c-lang.h (cp_print_value_fields): Declare.
7454
7455 2020-03-13 Tom Tromey <tom@tromey.com>
7456
7457 * c-valprint.c (c_value_print_array): New function.
7458 (c_value_print_inner): Use it.
7459
7460 2020-03-13 Tom Tromey <tom@tromey.com>
7461
7462 * c-valprint.c (c_value_print_memberptr): New function.
7463 (c_value_print_inner): Use it.
7464
7465 2020-03-13 Tom Tromey <tom@tromey.com>
7466
7467 * c-valprint.c (c_value_print_int): 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_ptr): 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_inner): Rewrite.
7478
7479 2020-03-13 Tom Tromey <tom@tromey.com>
7480
7481 * valprint.c (generic_value_print_complex): New function.
7482 (generic_value_print): Use it.
7483
7484 2020-03-13 Tom Tromey <tom@tromey.com>
7485
7486 * valprint.c (generic_val_print_float): Don't call
7487 val_print_scalar_formatted.
7488 (generic_val_print, generic_value_print): Update.
7489
7490 2020-03-13 Tom Tromey <tom@tromey.com>
7491
7492 * valprint.c (generic_value_print_char): New function
7493 (generic_value_print): Use it.
7494
7495 2020-03-13 Tom Tromey <tom@tromey.com>
7496
7497 * valprint.c (generic_value_print_int): New function.
7498 (generic_value_print): Use it.
7499
7500 2020-03-13 Tom Tromey <tom@tromey.com>
7501
7502 * valprint.c (generic_value_print_bool): New function.
7503 (generic_value_print): Use it.
7504
7505 2020-03-13 Tom Tromey <tom@tromey.com>
7506
7507 * valprint.c (generic_val_print_func): Simplify.
7508 (generic_val_print, generic_value_print): Update.
7509
7510 2020-03-13 Tom Tromey <tom@tromey.com>
7511
7512 * valprint.c (generic_val_print_flags): Remove.
7513 (generic_val_print, generic_value_print): Update.
7514 (val_print_type_code_flags): Add original_value parameter.
7515
7516 2020-03-13 Tom Tromey <tom@tromey.com>
7517
7518 * valprint.c (generic_val_print): Update.
7519 (generic_value_print): Update.
7520 * valprint.c (generic_val_print_enum): Don't call
7521 val_print_scalar_formatted.
7522
7523 2020-03-13 Tom Tromey <tom@tromey.com>
7524
7525 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7526 * valprint.c (generic_value_print_ptr): New function.
7527
7528 2020-03-13 Tom Tromey <tom@tromey.com>
7529
7530 * valprint.c (generic_value_print): Rewrite.
7531
7532 2020-03-13 Tom Tromey <tom@tromey.com>
7533
7534 * p-valprint.c (pascal_object_print_value_fields)
7535 (pascal_object_print_value): New functions.
7536
7537 2020-03-13 Tom Tromey <tom@tromey.com>
7538
7539 * p-valprint.c (pascal_value_print_inner): Rewrite.
7540
7541 2020-03-13 Tom Tromey <tom@tromey.com>
7542
7543 * f-valprint.c (f_value_print_innner): Rewrite.
7544
7545 2020-03-13 Tom Tromey <tom@tromey.com>
7546
7547 * m2-valprint.c (m2_print_unbounded_array): New overload.
7548 (m2_print_unbounded_array): Update.
7549 (m2_print_array_contents): Take a struct value.
7550 (m2_value_print_inner): Rewrite.
7551
7552 2020-03-13 Tom Tromey <tom@tromey.com>
7553
7554 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7555 (d_value_print_inner): New function.
7556 * d-lang.h (d_value_print_inner): Declare.
7557 * d-lang.c (d_language_defn): Use d_value_print_inner.
7558
7559 2020-03-13 Tom Tromey <tom@tromey.com>
7560
7561 * go-valprint.c (go_value_print_inner): New function.
7562 * go-lang.h (go_value_print_inner): Declare.
7563 * go-lang.c (go_language_defn): Use go_value_print_inner.
7564
7565 2020-03-13 Tom Tromey <tom@tromey.com>
7566
7567 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7568 API.
7569 (rust_val_print): Rewrite.
7570 (rust_value_print_inner): New function, from rust_val_print.
7571 (rust_language_defn): Use rust_value_print_inner.
7572
7573 2020-03-13 Tom Tromey <tom@tromey.com>
7574
7575 * ada-valprint.c (ada_value_print_inner): New function.
7576 * ada-lang.h (ada_value_print_inner): Declare.
7577 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7578
7579 2020-03-13 Tom Tromey <tom@tromey.com>
7580
7581 * f-valprint.c (f_value_print_innner): New function.
7582 * f-lang.h (f_value_print_innner): Declare.
7583 * f-lang.c (f_language_defn): Use f_value_print_innner.
7584
7585 2020-03-13 Tom Tromey <tom@tromey.com>
7586
7587 * p-valprint.c (pascal_value_print_inner): New function.
7588 * p-lang.h (pascal_value_print_inner): Declare.
7589 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7590
7591 2020-03-13 Tom Tromey <tom@tromey.com>
7592
7593 * m2-valprint.c (m2_value_print_inner): New function.
7594 * m2-lang.h (m2_value_print_inner): Declare.
7595 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7596
7597 2020-03-13 Tom Tromey <tom@tromey.com>
7598
7599 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7600 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7601 * c-valprint.c (c_value_print_inner): New function.
7602 * c-lang.h (c_value_print_inner): Declare.
7603 * c-lang.c (c_language_defn, cplus_language_defn)
7604 (asm_language_defn, minimal_language_defn): Use
7605 c_value_print_inner.
7606
7607 2020-03-13 Tom Tromey <tom@tromey.com>
7608
7609 * p-valprint.c (pascal_object_print_value_fields): Now static.
7610 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7611
7612 2020-03-13 Tom Tromey <tom@tromey.com>
7613
7614 * c-valprint.c (c_val_print_array): Simplify.
7615
7616 2020-03-13 Tom Tromey <tom@tromey.com>
7617
7618 * valprint.c (value_print_array_elements): New function.
7619 * valprint.h (value_print_array_elements): Declare.
7620
7621 2020-03-13 Tom Tromey <tom@tromey.com>
7622
7623 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7624 * mips-tdep.c (mips_print_register): Use
7625 value_print_scalar_formatted.
7626
7627 2020-03-13 Tom Tromey <tom@tromey.com>
7628
7629 * valprint.h (value_print_scalar_formatted): Declare.
7630 * valprint.c (value_print_scalar_formatted): New function.
7631
7632 2020-03-13 Tom Tromey <tom@tromey.com>
7633
7634 * valprint.h (generic_value_print): Declare.
7635 * valprint.c (generic_value_print): New function.
7636
7637 2020-03-13 Tom Tromey <tom@tromey.com>
7638
7639 * valprint.c (do_val_print): Call la_value_print_inner, if
7640 available.
7641 * rust-lang.c (rust_language_defn): Update.
7642 * p-lang.c (pascal_language_defn): Update.
7643 * opencl-lang.c (opencl_language_defn): Update.
7644 * objc-lang.c (objc_language_defn): Update.
7645 * m2-lang.c (m2_language_defn): Update.
7646 * language.h (struct language_defn) <la_value_print_inner>: New
7647 member.
7648 * language.c (unknown_language_defn, auto_language_defn): Update.
7649 * go-lang.c (go_language_defn): Update.
7650 * f-lang.c (f_language_defn): Update.
7651 * d-lang.c (d_language_defn): Update.
7652 * c-lang.c (c_language_defn, cplus_language_defn)
7653 (asm_language_defn, minimal_language_defn): Update.
7654 * ada-lang.c (ada_language_defn): Update.
7655
7656 2020-03-13 Tom Tromey <tom@tromey.com>
7657
7658 * c-valprint.c (c_value_print): Use common_val_print.
7659
7660 2020-03-13 Tom Tromey <tom@tromey.com>
7661
7662 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7663
7664 2020-03-13 Tom Tromey <tom@tromey.com>
7665
7666 * f-valprint.c (f77_print_array_1, f_val_print): Use
7667 common_val_print.
7668
7669 2020-03-13 Tom Tromey <tom@tromey.com>
7670
7671 * riscv-tdep.c (riscv_print_one_register_info): Use
7672 common_val_print.
7673
7674 2020-03-13 Tom Tromey <tom@tromey.com>
7675
7676 * mi/mi-main.c (output_register): Use common_val_print.
7677
7678 2020-03-13 Tom Tromey <tom@tromey.com>
7679
7680 * infcmd.c (default_print_one_register_info): Use
7681 common_val_print.
7682
7683 2020-03-13 Tom Tromey <tom@tromey.com>
7684
7685 * valprint.h (common_val_print_checked): Declare.
7686 * valprint.c (common_val_print_checked): New function.
7687 * stack.c (print_frame_arg): Use common_val_print_checked.
7688
7689 2020-03-13 Tom Tromey <tom@tromey.com>
7690
7691 * valprint.c (do_val_print): New function, from val_print.
7692 (val_print): Use do_val_print.
7693 (common_val_print): Use do_val_print.
7694
7695 2020-03-13 Tom Tromey <tom@tromey.com>
7696
7697 * valprint.c (value_print): Use scoped_value_mark.
7698
7699 2020-03-13 Tom de Vries <tdevries@suse.de>
7700
7701 PR symtab/25646
7702 * psymtab.c (partial_symtab::partial_symtab): Don't set
7703 globals_offset and statics_offset. Push element onto
7704 current_global_psymbols and current_static_psymbols stacks.
7705 (concat): New function.
7706 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7707 element from current_global_psymbols and current_static_psymbols
7708 stacks. Concat popped elements to global_psymbols and
7709 static_symbols.
7710 (add_psymbol_to_list): Use current_global_psymbols and
7711 current_static_psymbols stacks.
7712 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7713 current_static_psymbols fields.
7714
7715 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7716
7717 * corelow.c (sniff_core_bfd): Remove.
7718 (class core_target) <m_core_vec>: Remove.
7719 (core_target::core_target): Update.
7720 (core_file_fns): Remove.
7721 (deprecated_add_core_fns): Remove.
7722 (default_core_sniffer): Remove.
7723 (sniff_core_bfd): Remove.
7724 (default_check_format): Remove.
7725 (gdb_check_format): Remove.
7726 (core_target_open): Update.
7727 (core_target::get_core_register_section): Update.
7728 (get_core_registers_cb): Update.
7729 (core_target::fetch_registers): Update.
7730 * gdbcore.h (struct core_fns): Remove.
7731 (deprecated_add_core_fns): Remove.
7732 (default_core_sniffer): Remove.
7733 (default_check_format): Remove.
7734
7735 2020-03-12 Tom Tromey <tom@tromey.com>
7736
7737 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7738 CORE_ADDR.
7739 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7740
7741 2020-03-12 Tom Tromey <tom@tromey.com>
7742
7743 * remote.c (remote_target::download_tracepoint)
7744 (remote_target::enable_tracepoint)
7745 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7746 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7747 sprintf_vma.
7748
7749 2020-03-12 Tom Tromey <tom@tromey.com>
7750
7751 * symfile-mem.c: Update CORE_ADDR size assert.
7752
7753 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7754
7755 * selftest.m4: Move to gdbsupport/.
7756 * acinclude.m4: Update path to selftest.m4.
7757
7758 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7759
7760 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7761 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7762 gdbarch-selfselftests.c and selftest-arch.c.
7763 (SUBDIR_UNITTESTS_OBS): Rename to...
7764 (SELFTESTS_OBS): ... this.
7765 (COMMON_SFILES): Remove disasm-selftests.c and
7766 gdbarch-selftests.c.
7767 * configure.ac: Don't add selftest-arch.{c,o} to
7768 CONFIG_{SRCS,OBS}.
7769 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7770 preprocessor conditions.
7771
7772 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7773
7774 * configure.ac: Don't source bfd/development.sh.
7775 * selftest.m4: Modify comment.
7776 * configure: Re-generate.
7777
7778 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7779
7780 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7781 not "true" or "false".
7782 * configure: Re-generate.
7783
7784 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7785
7786 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7787 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7788 renamed to arm_nbsd_supply_gregset.
7789 (fetch_register): Update to call arm_nbsd_supply_gregset.
7790 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7791 (arm_netbsd_nat_target::fetch_registers): Update.
7792 (fetch_elfcore_registers): Removed.
7793 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7794 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7795 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7796 not require NetBSD system headers.
7797 (arm_nbsd_regset): New struct.
7798 (arm_nbsd_iterate_over_regset_sections): New function.
7799 (arm_netbsd_init_abi_common): Updated to call
7800 set_gdbarch_iterate_over_regset_sections.
7801 * arm-nbsd-tdep.h: New file.
7802
7803 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7804
7805 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7806 recursion.
7807
7808 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7809
7810 * configure: Re-generate.
7811
7812 2020-03-11 Tom Tromey <tromey@adacore.com>
7813
7814 * ada-typeprint.c (print_choices): Fix comment.
7815
7816 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7817
7818 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7819 previous item in the list, when the list has no items.
7820
7821 2020-03-11 Tom de Vries <tdevries@suse.de>
7822
7823 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7824 PROP_LOCLIST handling code.
7825
7826 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7827
7828 * buildsym-legacy.c (record_line): Pass extra parameter to
7829 record_line.
7830 * buildsym.c (buildsym_compunit::record_line): Take an extra
7831 parameter, reduce duplication in the line table, and record the
7832 is_stmt flag in the line table.
7833 * buildsym.h (buildsym_compunit::record_line): Add extra
7834 parameter.
7835 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7836 non-statement lines.
7837 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7838 this to the symtab builder.
7839 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7840 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7841 through to dwarf_record_line_1.
7842 * infrun.c (process_event_stop_test): When stepping, don't stop at
7843 a non-statement instruction, and only refresh the step info when
7844 we land in the middle of a line's range. Also add an extra
7845 comment.
7846 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7847 field.
7848 * record-btrace.c (btrace_find_line_range): Only record lines
7849 marked as is-statement.
7850 * stack.c (frame_show_address): Show the frame address if we are
7851 in a non-statement sal.
7852 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7853 (maintenance_print_one_line_table): Print a header for the is_stmt
7854 column, and include is_stmt information in the output.
7855 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7856 preference to non-statements.
7857 (find_pcs_for_symtab_line): Prefer is-statement entries.
7858 (find_line_common): Likewise.
7859 * symtab.h (struct linetable_entry): Add is_stmt field.
7860 (struct symtab_and_line): Likewise.
7861 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7862 arranging the line table.
7863
7864 2020-03-07 Tom de Vries <tdevries@suse.de>
7865
7866 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7867 DIE.
7868
7869 2020-03-07 Tom Tromey <tom@tromey.com>
7870
7871 * valops.c (value_literal_complex): Remove obsolete comment.
7872 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7873 comment.
7874
7875 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7876
7877 * infrun.h: Forward-declare thread_info.
7878 (set_step_info): Add thread_info parameter, add doc.
7879 * infrun.c (set_step_info): Add thread_info parameter, move doc
7880 to header.
7881 * infrun.c (process_event_stop_test): Pass thread to
7882 set_step_info call.
7883 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7884 set_step_info.
7885 (prepare_one_step): Add thread_info parameter, pass it to
7886 set_step_frame and prepare_one_step (recursive) call.
7887 (step_1): Pass thread to prepare_one_step call.
7888 (step_command_fsm::should_stop): Pass thread to
7889 prepare_one_step.
7890 (until_next_fsm): Pass thread to set_step_frame call.
7891 (finish_command): Pass thread to set_step_info call.
7892
7893 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7894
7895 * windows-tdep.c (windows_solib_create_inferior_hook):
7896 Check if inferior is running.
7897
7898 2020-03-06 Tom de Vries <tdevries@suse.de>
7899
7900 * NEWS: Fix "the the".
7901 * ctfread.c: Same.
7902
7903 2020-03-06 Tom de Vries <tdevries@suse.de>
7904
7905 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7906
7907 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7908
7909 * .dir-locals.el: Add a comment referencing the other copies of
7910 this file.
7911
7912 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7913
7914 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7915 psargs.
7916
7917 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7918
7919 * .gitattributes: New file.
7920
7921 2020-03-04 Tom Tromey <tom@tromey.com>
7922
7923 * symmisc.c (print_symbol_bcache_statistics)
7924 (print_objfile_statistics): Update.
7925 * symfile.c (allocate_symtab): Use intern.
7926 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7927 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7928 macro_cache>: Remove.
7929 <string_cache>: New member.
7930 (struct objfile) <intern>: New methods.
7931 * elfread.c (elf_symtab_read): Use intern.
7932 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7933 (dwarf2_compute_name, dwarf2_physname)
7934 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7935 names.
7936 (guess_partial_die_structure_name): Update.
7937 (partial_die_info::fixup): Intern name.
7938 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7939 name.
7940 (dwarf2_name): Intern name. Update.
7941 * buildsym.c (buildsym_compunit::get_macro_table): Use
7942 string_cache.
7943
7944 2020-03-04 Tom Tromey <tom@tromey.com>
7945
7946 * jit.c (bfd_open_from_target_memory): Make "target" const.
7947 * corefile.c (gnutarget): Now const.
7948 * gdbcore.h (gnutarget): Now const.
7949
7950 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7951
7952 * NEWS: Mention support for WOW64 processes.
7953 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7954 (amd64_windows_segment_register_p): Remove static.
7955 (_initialize_amd64_windows_nat): Update.
7956 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7957 * i386-windows-nat.c (context_offset): Update.
7958 (i386_mappings): Rename and remove static.
7959 (i386_windows_segment_register_p): Remove static.
7960 (_initialize_i386_windows_nat): Update.
7961 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7962 (STATUS_WX86_SINGLE_STEP): New macro.
7963 (EnumProcessModulesEx): New macro.
7964 (Wow64SuspendThread): New macro.
7965 (Wow64GetThreadContext): New macro.
7966 (Wow64SetThreadContext): New macro.
7967 (Wow64GetThreadSelectorEntry): New macro.
7968 (windows_set_context_register_offsets): Add static.
7969 (windows_set_segment_register_p): Likewise.
7970 (windows_add_thread): Adapt for WOW64 processes.
7971 (windows_fetch_one_register): Likewise.
7972 (windows_nat_target::fetch_registers): Likewise.
7973 (windows_store_one_register): Likewise.
7974 (display_selector): Likewise.
7975 (display_selectors): Likewise.
7976 (handle_exception): Likewise.
7977 (windows_continue): Likewise.
7978 (windows_nat_target::resume): Likewise.
7979 (windows_add_all_dlls): Likewise.
7980 (do_initial_windows_stuff): Likewise.
7981 (windows_nat_target::attach): Likewise.
7982 (windows_get_exec_module_filename): Likewise.
7983 (windows_nat_target::create_inferior): Likewise.
7984 (windows_xfer_siginfo): Likewise.
7985 (_initialize_loadable): Initialize Wow64SuspendThread,
7986 Wow64GetThreadContext, Wow64SetThreadContext,
7987 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7988 * windows-nat.h (windows_set_context_register_offsets):
7989 Remove declaration.
7990 (windows_set_segment_register_p): Likewise.
7991 (i386_windows_segment_register_p): Add declaration.
7992 (amd64_windows_segment_register_p): Likewise.
7993
7994 2020-03-04 Luis Machado <luis.machado@linaro.org>
7995
7996 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7997 in "info registers" for AArch64/ARM.
7998
7999 The change caused "info registers" to not print GPR's.
8000
8001 gdb/ChangeLog:
8002
8003 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8004
8005 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8006 when reg->group is empty and reggroup is not.
8007
8008 2020-03-03 Tom Tromey <tromey@adacore.com>
8009
8010 * dwarf2/frame.c (struct dwarf2_frame_cache)
8011 <checked_tailcall_bottom, entry_cfa_sp_offset,
8012 entry_cfa_sp_offset_p>: Remove members.
8013 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8014 (dwarf2_frame_prev_register): Don't call
8015 dwarf2_tailcall_sniffer_first.
8016 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8017 * frame-unwind.c (add_unwinder): New fuction.
8018 (frame_unwind_init): Use it. Add tailcall unwinder.
8019
8020 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8021 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8022
8023 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8024 value should be printed as true.
8025
8026 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8027
8028 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8029 (windows_init_abi): Set and use windows_so_ops.
8030
8031 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8032
8033 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8034 when verifying if dealing with a convenience variable.
8035
8036 2020-03-03 Luis Machado <luis.machado@linaro.org>
8037
8038 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8039
8040 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8041
8042 * infrun.c (gdbarch_supports_displaced_stepping): New.
8043 (use_displaced_stepping): Break up conditions in smaller pieces.
8044 Use gdbarch_supports_displaced_stepping.
8045 (displaced_step_prepare_throw): Use
8046 gdbarch_supports_displaced_stepping.
8047
8048 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8049
8050 * NEWS: Mention new behaviour of the history filename.
8051 * top.c (write_history_p): Add comment.
8052 (show_write_history_p): Add header comment, give a different
8053 message when history writing is on, but the history filename is
8054 empty.
8055 (history_filename): Add comment.
8056 (history_filename_empty): New function.
8057 (show_history_filename): Add header comment, give a different
8058 message when the filename is empty.
8059 (init_history): Compare history_filename against nullptr, and only
8060 read history if the filename is not empty.
8061 (set_history_filename): Add header comment, and only make
8062 non-empty filenames absolute.
8063 (init_main): Make the filename argument to 'set history filename'
8064 optional.
8065
8066 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8067
8068 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8069 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8070 (fetch_fp_register): Update.
8071 (fetch_fp_regs): Update.
8072 (store_fp_register): Update.
8073 (store_fp_regs): Update.
8074 (arm_netbsd_nat_target::read_description): New function.
8075 (fetch_elfcore_registers): Update.
8076
8077 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8078
8079 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8080 general_thread if the stop reply is missing a thread-id.
8081 (remote_target::process_stop_reply): Use the first non-exited
8082 thread if the target didn't pass a thread-id.
8083 * infrun.c (do_target_wait): Move call to
8084 switch_to_inferior_no_thread to ....
8085 (do_target_wait_1): ... here.
8086
8087 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8088
8089 * debuginfod-support.c: Include defs.h first.
8090
8091 2020-02-28 Tom de Vries <tdevries@suse.de>
8092
8093 * symfile.c (set_initial_language): Use default language for lookup.
8094
8095 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8096
8097 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8098 reader variable, pass `this` to read_cutu_die_from_dwo.
8099
8100 2020-02-27 Aaron Merey <amerey@redhat.com>
8101
8102 * source.c (open_source_file): Check for nullptr when computing
8103 srcpath.
8104
8105 2020-02-27 Tom Tromey <tromey@adacore.com>
8106
8107 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8108 member.
8109 (dwarf2_add_field): Don't update nfields.
8110 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8111
8112 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8113
8114 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8115 abs.
8116
8117 2020-02-26 Tom Tromey <tom@tromey.com>
8118
8119 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8120 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8121 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8122 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8123 per_cu_data.
8124
8125 2020-02-26 Tom Tromey <tom@tromey.com>
8126
8127 * dwarf2/index-write.c (psym_index_map): Change type.
8128 (add_address_entry_worker, write_one_signatured_type)
8129 (recursively_count_psymbols, recursively_write_psymbols)
8130 (class debug_names, psyms_seen_size, write_gdbindex)
8131 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8132
8133 2020-02-26 Aaron Merey <amerey@redhat.com>
8134
8135 * Makefile.in: Handle optional debuginfod support.
8136 * NEWS: Update.
8137 * README: Add --with-debuginfod summary.
8138 * config.in: Regenerate.
8139 * configure: Regenerate.
8140 * configure.ac: Handle optional debuginfod support.
8141 * debuginfod-support.c: debuginfod helper functions.
8142 * debuginfod-support.h: Ditto.
8143 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8144 summary.
8145 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8146 when a dwz file cannot be found.
8147 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8148 debuginfo file cannot be found.
8149 * source.c (open_source_file): Query debuginfod servers when a
8150 source file cannot be found.
8151 * top.c (print_gdb_configuration): Include
8152 --{with,without}-debuginfod in the output.
8153
8154 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8155
8156 * thread.c (thr_try_catch_cmd): Print thread name.
8157
8158 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8159
8160 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8161 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8162 dwarf2_fetch_die_type_sect_off): Move to...
8163 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8164 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8165 dwarf2_fetch_die_type_sect_off): ... here.
8166 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8167 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8168 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8169
8170 2020-02-26 Tom de Vries <tdevries@suse.de>
8171
8172 PR gdb/25603
8173 * symfile.c (set_initial_language): Exit-early if
8174 language_mode == language_mode_manual.
8175
8176 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8177
8178 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8179 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8180 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8181
8182 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8183
8184 * gdbtypes.c (create_array_type_with_stride): Handle negative
8185 array strides.
8186 * valarith.c (value_subscripted_rvalue): Likewise.
8187
8188 2020-02-25 Luis Machado <luis.machado@linaro.org>
8189
8190 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8191
8192 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8193
8194 * loc.h (dwarf2_get_die_type): Move to...
8195 * read.h (dwarf2_get_die_type): ... here.
8196 * read.c (dwarf2_get_die_type): Move doc to header.
8197
8198 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8199
8200 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8201 'gnulib/Makefile.in' to the list.
8202
8203 2020-02-24 Tom Tromey <tom@tromey.com>
8204
8205 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8206 Remove.
8207 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8208 XOBNEWVEC.
8209
8210 2020-02-24 Tom Tromey <tom@tromey.com>
8211
8212 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8213 New method.
8214 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8215 (dw2_do_instantiate_symtab, dw2_get_file_names)
8216 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8217
8218 2020-02-24 Tom Tromey <tom@tromey.com>
8219
8220 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8221 make_scoped_restore.
8222 (dwarf2_psymtab::read_symtab): Don't clear
8223 reading_partial_symbols.
8224
8225 2020-02-24 Tom de Vries <tdevries@suse.de>
8226
8227 PR gdb/25592
8228 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8229
8230 2020-02-24 Tom de Vries <tdevries@suse.de>
8231
8232 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8233 commands layout next/prev/regs.
8234
8235 2020-02-22 Tom Tromey <tom@tromey.com>
8236
8237 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8238 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8239
8240 2020-02-22 Tom Tromey <tom@tromey.com>
8241
8242 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8243
8244 2020-02-22 Tom Tromey <tom@tromey.com>
8245
8246 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8247 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8248 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8249 * tui/tui.c (_initialize_tui): Add usage text.
8250
8251 2020-02-22 Tom Tromey <tom@tromey.com>
8252
8253 * tui/tui-win.c (tui_set_focus_command)
8254 (tui_set_win_height_command): Use error_no_arg.
8255 (_initialize_tui_win): Update help text.
8256 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8257
8258 2020-02-22 Tom Tromey <tom@tromey.com>
8259
8260 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8261 * tui/tui-disasm.h (struct tui_disasm_window)
8262 <display_start_addr>: Declare.
8263 * tui/tui-source.h (struct tui_source_window)
8264 <display_start_addr>: Declare.
8265 * tui/tui-winsource.h (struct tui_source_window_base)
8266 <show_source_line, display_start_addr>: New methods.
8267 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8268 Rename and move to protected section.
8269 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8270 (tui_source_window_base::do_erase_source_content): Update.
8271 (tui_source_window_base::show_source_line): Now a method.
8272 (tui_source_window_base::show_source_content)
8273 (tui_source_window_base::tui_source_window_base)
8274 (tui_source_window_base::rerender)
8275 (tui_source_window_base::refill)
8276 (tui_source_window_base::do_scroll_horizontal)
8277 (tui_source_window_base::set_is_exec_point_at)
8278 (tui_source_window_base::update_breakpoint_info)
8279 (tui_source_window_base::update_exec_info): Update.
8280 * tui/tui-source.c (tui_source_window::set_contents)
8281 (tui_source_window::showing_source_p)
8282 (tui_source_window::do_scroll_vertical)
8283 (tui_source_window::location_matches_p)
8284 (tui_source_window::line_is_displayed): Update.
8285 (tui_source_window::display_start_addr): New method.
8286 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8287 (tui_disasm_window::do_scroll_vertical)
8288 (tui_disasm_window::location_matches_p): Update.
8289 (tui_disasm_window::display_start_addr): New method.
8290
8291 2020-02-22 Tom Tromey <tom@tromey.com>
8292
8293 * NEWS: Add entry for gdb.register_window_type.
8294 * tui/tui-layout.h (window_factory): New typedef.
8295 (tui_register_window): Declare.
8296 * tui/tui-layout.c (saved_tui_windows): New global.
8297 (tui_apply_current_layout): Use it.
8298 (tui_register_window): New function.
8299 * python/python.c (do_start_initialization): Call
8300 gdbpy_initialize_tui.
8301 (python_GdbMethods): Add "register_window_type" function.
8302 * python/python-internal.h (gdbpy_register_tui_window)
8303 (gdbpy_initialize_tui): Declare.
8304 * python/py-tui.c: New file.
8305 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8306
8307 2020-02-22 Tom Tromey <tom@tromey.com>
8308
8309 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8310
8311 2020-02-22 Tom Tromey <tom@tromey.com>
8312
8313 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8314 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8315 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8316 (tui_set_win_focus_to): Move from tui-win.c.
8317
8318 2020-02-22 Tom Tromey <tom@tromey.com>
8319
8320 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8321 functions.
8322 (known_window_types): New global.
8323 (tui_get_window_by_name): Reimplement.
8324 (initialize_known_windows): New function.
8325 (validate_window_name): Rewrite.
8326 (_initialize_tui_layout): Call initialize_known_windows.
8327
8328 2020-02-22 Tom Tromey <tom@tromey.com>
8329
8330 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8331 Remove constants.
8332 * tui/tui-winsource.h (struct tui_source_window_base)
8333 <tui_source_window_base>: Remove parameter.
8334 * tui/tui-winsource.c
8335 (tui_source_window_base::tui_source_window_base): Remove
8336 parameter.
8337 (tui_source_window_base::refill): Update.
8338 * tui/tui-stack.h (struct tui_locator_window)
8339 <tui_locator_window>: Update.
8340 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8341 Default the constructor.
8342 * tui/tui-regs.h (struct tui_data_item_window)
8343 <tui_data_item_window>: Default the constructor.
8344 (struct tui_data_window) <tui_data_window>: Likewise.
8345 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8346 Default the constructor.
8347 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8348 Default the constructor.
8349 <type>: Remove.
8350 (struct tui_win_info) <tui_win_info>: Default the constructor.
8351 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8352 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8353 Default the constructor.
8354
8355 2020-02-22 Tom Tromey <tom@tromey.com>
8356
8357 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8358 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8359 * tui/tui-win.c (tui_resize_all): Don't call
8360 tui_delete_invisible_windows.
8361 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8362 done.
8363 (tui_set_layout): Update.
8364 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8365 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8366 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8367
8368 2020-02-22 Tom Tromey <tom@tromey.com>
8369
8370 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8371 correctly.
8372
8373 2020-02-22 Tom Tromey <tom@tromey.com>
8374
8375 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8376
8377 2020-02-22 Tom Tromey <tom@tromey.com>
8378
8379 * tui/tui-winsource.h (struct tui_source_window_iterator)
8380 <inner_iterator>: New etytypedef.
8381 <tui_source_window_iterator>: Take "end" parameter.
8382 <tui_source_window_iterator>: Take iterator.
8383 <operator*, advance>: Update.
8384 <m_iter>: Change type.
8385 <m_end>: New field.
8386 (struct tui_source_windows) <begin, end>: Update.
8387 * tui/tui-layout.c (tui_windows): New global.
8388 (tui_apply_current_layout): Clear tui_windows.
8389 (tui_layout_window::apply): Update tui_windows.
8390 * tui/tui-data.h (tui_windows): Declare.
8391 (all_tui_windows): Now inline function.
8392 (class tui_window_iterator, struct all_tui_windows): Remove.
8393
8394 2020-02-22 Tom Tromey <tom@tromey.com>
8395
8396 PR tui/17850:
8397 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8398 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8399 "height" argument.
8400 (class tui_layout_window) <get_sizes>: Likewise.
8401 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8402 argument.
8403 <get_sizes>: Add "height" argument.
8404 <m_vertical>: New field.
8405 * tui/tui-layout.c (tui_layout_split::clone): Update.
8406 (tui_layout_split::get_sizes): Add "height" argument.
8407 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8408 (tui_new_layout_command): Parse "-horizontal".
8409 (_initialize_tui_layout): Update help string.
8410 (tui_layout_split::specification): Add "-horizontal" when needed.
8411 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8412 argument.
8413 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8414 New methods.
8415
8416 2020-02-22 Tom Tromey <tom@tromey.com>
8417
8418 * tui/tui-layout.h (enum tui_adjust_result): New.
8419 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8420 (class tui_layout_window) <adjust_size>: Return
8421 tui_adjust_result. Rewrite.
8422 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8423 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8424
8425 2020-02-22 Tom Tromey <tom@tromey.com>
8426
8427 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8428 parameter and return types.
8429 (class tui_layout_base) <specification>: Add "depth".
8430 (class tui_layout_window) <specification>: Add "depth".
8431 (class tui_layout_split) <specification>: Add "depth".
8432 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8433 and return types.
8434 (tui_new_layout_command): Parse sub-layouts.
8435 (_initialize_tui_layout): Update help string.
8436 (tui_layout_window::specification): Add "depth".
8437 (add_layout_command): Update.
8438
8439 2020-02-22 Tom Tromey <tom@tromey.com>
8440
8441 * NEWS: Add "tui new-layout" item.
8442 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8443 Add new-layout command to help text.
8444 (validate_window_name): New function.
8445 (tui_new_layout_command): New function.
8446 (_initialize_tui_layout): Register "new-layout".
8447 (tui_layout_window::specification): New method.
8448 (tui_layout_window::specification): New method.
8449 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8450 method.
8451 (class tui_layout_window) <specification>: New method.
8452 (class tui_layout_split) <specification>: New method.
8453
8454 2020-02-22 Tom Tromey <tom@tromey.com>
8455
8456 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8457 * tui/tui-win.c (window_name_completer): Update comment.
8458 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8459 Declare method.
8460 (class tui_layout_window) <replace_window>: Likewise.
8461 (class tui_layout_split) <replace_window>: Likewise.
8462 (tui_set_layout): Don't declare.
8463 (tui_set_initial_layout): Declare function.
8464 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8465 (asm_regs_layout): New globals.
8466 (tui_current_layout, show_layout): Remove.
8467 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8468 (find_layout, tui_apply_layout): New function.
8469 (layout_completer): Remove.
8470 (tui_next_layout): Reimplement.
8471 (tui_next_layout_command): New function.
8472 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8473 (tui_regs_layout): Reimplement.
8474 (tui_regs_layout_command): New function.
8475 (extract_display_start_addr): Rewrite.
8476 (next_layout, prev_layout): Remove.
8477 (tui_layout_window::replace_window): New method.
8478 (tui_layout_split::replace_window): New method.
8479 (destroy_layout): New function.
8480 (layout_list): New global.
8481 (add_layout_command): New function.
8482 (initialize_layouts): Update.
8483 (tui_layout_command): New function.
8484 (_initialize_tui_layout): Install "layout" commands.
8485 * tui/tui-data.h (enum tui_layout_type): Remove.
8486 (tui_current_layout): Don't declare.
8487
8488 2020-02-22 Tom Tromey <tom@tromey.com>
8489
8490 * tui/tui-regs.c (tui_reg_layout): Remove.
8491 (tui_reg_command): Use tui_regs_layout.
8492 * tui/tui-layout.h (tui_reg_command): Declare.
8493 * tui/tui-layout.c (tui_reg_command): New function.
8494
8495 2020-02-22 Tom Tromey <tom@tromey.com>
8496
8497 * tui/tui.c (tui_rl_delete_other_windows): Call
8498 tui_remove_some_windows.
8499 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8500 Declare method.
8501 (class tui_layout_window) <remove_windows>: New method.
8502 (class tui_layout_split) <remove_windows>: Declare.
8503 (tui_remove_some_windows): Declare.
8504 * tui/tui-layout.c (tui_remove_some_windows): New function.
8505 (tui_layout_split::remove_windows): New method.
8506
8507 2020-02-22 Tom Tromey <tom@tromey.com>
8508
8509 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8510 * tui/tui-layout.h (tui_next_layout): Declare.
8511 * tui/tui-layout.c (tui_next_layout): New function.
8512
8513 2020-02-22 Tom Tromey <tom@tromey.com>
8514
8515 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8516 correct coordinates.
8517
8518 2020-02-22 Tom Tromey <tom@tromey.com>
8519
8520 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8521 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8522 DATA_WIN case.
8523
8524 2020-02-22 Tom Tromey <tom@tromey.com>
8525
8526 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8527 TUI_DISASM_WIN, not tui_win_list.
8528
8529 2020-02-22 Tom Tromey <tom@tromey.com>
8530
8531 * valprint.c (generic_val_print_enum_1)
8532 (val_print_type_code_flags): Style member names.
8533 * rust-lang.c (val_print_struct, rust_print_enum)
8534 (rust_print_struct_def, rust_internal_print_type): Style member
8535 names.
8536 * p-valprint.c (pascal_object_print_value_fields): Style member
8537 names. Only call fprintf_symbol_filtered for static members.
8538 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8539 * f-valprint.c (f_val_print): Style member names.
8540 * f-typeprint.c (f_type_print_base): Style member names.
8541 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8542 call fprintf_symbol_filtered for static members.
8543 (cp_print_class_member): Style member names.
8544 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8545 member names.
8546 * ada-valprint.c (ada_print_scalar): Style enum names.
8547 (ada_val_print_enum): Likewise.
8548 * ada-typeprint.c (print_enum_type): Style enum names.
8549
8550 2020-02-21 Tom Tromey <tom@tromey.com>
8551
8552 * psympriv.h (struct partial_symtab): Update comment.
8553
8554 2020-02-21 Tom Tromey <tromey@adacore.com>
8555
8556 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8557 type is CORE_ADDR.
8558
8559 2020-02-21 Tom de Vries <tdevries@suse.de>
8560
8561 PR gdb/25534
8562 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8563 if dependencies[i]->user != NULL.
8564
8565 2020-02-21 Ali Tamur <tamur@google.com>
8566
8567 * dwarf2/read.c (dwarf2_name): Add null check.
8568
8569 2020-02-20 Tom Tromey <tom@tromey.com>
8570
8571 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8572 ">=", in binary search.
8573 (dwarf2_find_containing_comp_unit): New overload.
8574 (run_test): New self-test.
8575 (_initialize_dwarf2_read): Register new test.
8576
8577 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8578
8579 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8580 * riscv-tdep.h: Likewise.
8581 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8582 rv32-only CSR.
8583 * features/riscv/64bit-csr.xml: Regenerated.
8584
8585 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8586 Tom Tromey <tom@tromey.com>
8587
8588 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8589 of 'fputc_unfiltered'.
8590 (putchar_unfiltered): Call 'fputc_unfiltered'.
8591 (fputc_unfiltered): Call 'fputs_unfiltered'.
8592
8593 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8594
8595 * config.in: Regenerate.
8596 * configure: Regenerate.
8597 * configure.ac: Add --with-python-libdir option.
8598 * main.c: Use WITH_PYTHON_LIBDIR.
8599
8600 2020-02-19 Tom Tromey <tom@tromey.com>
8601
8602 * symtab.c (general_symbol_info::compute_and_set_names): Use
8603 obstack_strndup. Simplify call to symbol_set_demangled_name.
8604
8605 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8606
8607 * dwarf2/read.c (allocate_signatured_type_table,
8608 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8609 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8610 Remove objfile parameter, update all callers.
8611
8612 2020-02-19 Doug Evans <dje@google.com>
8613
8614 PR rust/25535
8615 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8616 rust_enum_variant calculation.
8617
8618 2020-02-19 Tom Tromey <tromey@adacore.com>
8619
8620 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8621
8622 2020-02-19 Tom Tromey <tromey@adacore.com>
8623
8624 * ada-lang.c (cache_symbol): Use obstack_strdup.
8625
8626 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8627
8628 * configure: Regenerate.
8629
8630 2020-02-19 Tom Tromey <tromey@adacore.com>
8631
8632 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8633 NULL check.
8634
8635 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8636
8637 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8638
8639 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8640
8641 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8642 if GDBSERVER is not defined.
8643 (riscv_tdesc_cache): Likewise, also store const target_desc.
8644 (STATIC_IN_GDB): Define.
8645 (riscv_create_target_description): Update declaration with
8646 STATIC_IN_GDB.
8647 (riscv_lookup_target_description): New function, only define if
8648 GDBSERVER is not defined.
8649 * arch/riscv.h (riscv_create_target_description): Declare only
8650 when GDBSERVER is defined.
8651 (riscv_lookup_target_description): New declaration when GDBSERVER
8652 is not defined.
8653 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8654 (riscv_linux_read_features): ...this, and return
8655 riscv_gdbarch_features instead of target_desc.
8656 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8657 (riscv_linux_read_description): Rename to...
8658 (riscv_linux_read_features): ...this.
8659 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8660 Update to use riscv_gdbarch_features and
8661 riscv_lookup_target_description.
8662 * riscv-tdep.c (riscv_find_default_target_description): Use
8663 riscv_lookup_target_description instead of
8664 riscv_create_target_description.
8665
8666 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8667
8668 * valprint.c (generic_val_print_enum_1): When printing a flag
8669 enum with value 0 and there is no enumerator with value 0, print
8670 just "0" instead of "(unknown: 0x0)".
8671
8672 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8673
8674 * valprint.c (generic_val_print_enum_1): Print unknown part of
8675 flag enum in hex.
8676
8677 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8678
8679 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8680 flag enums to contain duplicate enumerators.
8681 * valprint.c (generic_val_print_enum_1): Update comment.
8682
8683 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8684
8685 * dwarf2/read.c: Include "count-one-bits.h".
8686 (update_enumeration_type_from_children): If an enumerator has
8687 multiple bits set, don't treat the enumeration as a "flag enum".
8688 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8689 of flag enums have 0 or 1 bit set.
8690
8691 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8692
8693 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8694 conversion.
8695 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8696 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8697 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8698 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8699 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8700
8701 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8702
8703 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8704
8705 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8706
8707 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8708 displaced_step_closure_up.
8709 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8710 (struct displaced_step_closure_up):
8711 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8712 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8713 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8714 Likewise.
8715 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8716 * gdbarch.c, gdbarch.h: Re-generate.
8717 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8718 displaced_step_closure_up.
8719 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8720 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8721 * infrun.h (displaced_step_closure_up): New type alias.
8722 (struct displaced_step_inferior_state) <step_closure>: Change
8723 type to displaced_step_closure_up.
8724 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8725 displaced_step_closure_up.
8726 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8727
8728 2020-02-14 Tom Tromey <tom@tromey.com>
8729
8730 * minidebug.c (gnu_debug_key): New global.
8731 (find_separate_debug_file_in_section): Use it.
8732
8733 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8734
8735 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8736 std::unique_ptr.
8737 * gdbarch.c: Re-generate.
8738 * gdbarch.h: Re-generate.
8739 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8740 change.
8741 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8742 type to std::unique_ptr.
8743 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8744 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8745 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8746 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8747 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8748 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8749 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8750 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8751 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8752
8753 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8754
8755 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8756 std::unique_ptr.
8757 (displaced_step_clear): Rename to...
8758 (displaced_step_reset): ... this. Just call displaced->reset ().
8759 (displaced_step_clear_cleanup): Rename to...
8760 (displaced_step_reset_cleanup): ... this.
8761 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8762 (displaced_step_fixup): Likewise.
8763 (resume_1): Likewise.
8764 (handle_inferior_event): Restore child's memory before calling
8765 displaced_step_fixup on the parent.
8766 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8767 to std::unique_ptr.
8768 <step_closure>: Change type to std::unique_ptr.
8769
8770 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8771
8772 * arm-tdep.c: Include count-one-bits.h.
8773 (cleanup_block_store_pc): Use count_one_bits.
8774 (cleanup_block_load_pc): Use count_one_bits.
8775 (arm_copy_block_xfer): Use count_one_bits.
8776 (thumb2_copy_block_xfer): Use count_one_bits.
8777 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8778 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8779 (thumb_get_next_pcs_raw): Use count_one_bits.
8780 (arm_get_next_pcs_raw): Use count_one_bits_l.
8781 * arch/arm.c (bitcount): Remove.
8782 * arch/arm.h (bitcount): Remove.
8783
8784 2020-02-14 Tom Tromey <tromey@adacore.com>
8785
8786 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8787 Update.
8788 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8789 * dwarf2/loc.c (call_site_find_chain_1): Return
8790 unique_xmalloc_ptr.
8791 (call_site_find_chain): Likewise.
8792
8793 2020-02-14 Richard Biener <rguenther@suse.de>
8794
8795 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8796 on expression with division operators.
8797
8798 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8799
8800 * MAINTAINERS (Write After Approval): Adding myself.
8801
8802 2020-02-12 Tom Tromey <tom@tromey.com>
8803
8804 * event-loop.c (event_data, gdb_event, event_handler_func):
8805 Remove.
8806
8807 2020-02-12 Tom Tromey <tom@tromey.com>
8808
8809 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8810 (dwarf2_frame_objfile_data): Add comment.
8811 (find_comp_unit, set_comp_unit): New functions.
8812 (dwarf2_frame_find_fde): Use find_comp_unit.
8813 (dwarf2_build_frame_info): Use set_comp_unit.
8814
8815 2020-02-12 Tom Tromey <tom@tromey.com>
8816
8817 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8818 (comp_unit): Don't initialize objfile.
8819 (execute_cfa_program): Add text_offset parameter.
8820 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8821 (dwarf2_frame_cache): Update.
8822 (dwarf2_build_frame_info): Don't set "objfile" member.
8823
8824 2020-02-12 Tom Tromey <tom@tromey.com>
8825
8826 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8827 (decode_frame_entry): Likewise.
8828 (dwarf2_build_frame_info): Update.
8829
8830 2020-02-12 Tom Tromey <tom@tromey.com>
8831
8832 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8833 (decode_frame_entry_1): Use the comp_unit obstack.
8834
8835 2020-02-12 Tom Tromey <tom@tromey.com>
8836
8837 * dwarf2/frame.c (struct comp_unit): Add initializers and
8838 constructor.
8839 (dwarf2_frame_objfile_data): Store a comp_unit.
8840 (dwarf2_frame_find_fde): Update.
8841 (dwarf2_build_frame_info): Use "new".
8842
8843 2020-02-12 Tom Tromey <tom@tromey.com>
8844
8845 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8846 (dwarf2_fde_table): Typedef for std::vector.
8847 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8848 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8849 (decode_frame_entry): Update.
8850 (dwarf2_build_frame_info): Use "new".
8851
8852 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8853
8854 * arm-tdep.c (arm_gdbarch_init): Update.
8855 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8856 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8857 have_neon, is_m>: Change to bool.
8858
8859 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8860
8861 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8862
8863 2020-02-12 Tom Tromey <tom@tromey.com>
8864
8865 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8866
8867 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8868
8869 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8870 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8871
8872 2020-02-11 Tom Tromey <tom@tromey.com>
8873
8874 * psymtab.h: Update comment.
8875
8876 2020-02-11 Tom Tromey <tom@tromey.com>
8877
8878 * gdb_obstack.h (struct auto_obstack): Use
8879 DISABLE_COPY_AND_ASSIGN.
8880
8881 2020-02-11 Tom Tromey <tom@tromey.com>
8882
8883 * dwarf2/frame.h (struct objfile): Don't forward declare.
8884
8885 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8886
8887 * cris-tdep.c (cris_supply_gregset): Change signature to match
8888 what struct regset expects.
8889 (cris_regset): New struct.
8890 (fetch_core_registers): Remove.
8891 (cris_iterate_over_regset_sections): New function.
8892 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8893 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8894
8895 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8896
8897 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8898 registers.
8899
8900 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8901
8902 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8903
8904 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8905
8906 * configure: Re-generate.
8907
8908 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8909
8910 * configure: Re-generate.
8911
8912 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8913
8914 * acinclude: Update warning.m4 path.
8915 * warning.m4: Move to gdbsupport.
8916
8917 2020-02-11 Tom Tromey <tromey@adacore.com>
8918
8919 * remote.c (remote_console_output): Update.
8920 * printcmd.c (printf_command): Update.
8921 * event-loop.c (gdb_wait_for_event): Update.
8922 * linux-nat.c (sigchld_handler): Update.
8923 * remote-sim.c (gdb_os_write_stdout): Update.
8924 (gdb_os_flush_stdout): Update.
8925 (gdb_os_flush_stderr): Update.
8926 (gdb_os_write_stderr): Update.
8927 * exceptions.c (print_exception): Update.
8928 * remote-fileio.c (remote_fileio_func_read): Update.
8929 (remote_fileio_func_write): Update.
8930 * tui/tui.c (tui_enable): Update.
8931 * tui/tui-interp.c (tui_interp::init): Update.
8932 * utils.c (init_page_info): Update.
8933 (putchar_unfiltered, fputc_unfiltered): Update.
8934 (gdb_flush): Update.
8935 (emit_style_escape): Update.
8936 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8937 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8938 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8939 (stderr_file::write): Update.
8940 (stderr_file::puts): Update.
8941 * ui-file.h (ui_file_isatty, ui_file_write)
8942 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8943 (ui_file_puts): Don't declare.
8944
8945 2020-02-10 Tom de Vries <tdevries@suse.de>
8946
8947 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8948 sentinel to char *.
8949
8950 2020-02-09 Tom de Vries <tdevries@suse.de>
8951
8952 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8953 filename if it matches "<artificial>".
8954
8955 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8956
8957 * windows-tdep.c (struct enum_value_name): New struct.
8958 (create_enum): New function.
8959 (windows_get_siginfo_type): Create and use enum types.
8960
8961 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8962
8963 * NEWS: Mention $_siginfo support for Windows.
8964 * windows-nat.c (handle_exception): Set siginfo_er.
8965 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8966 (windows_xfer_siginfo): New function.
8967 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8968 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8969 (init_windows_gdbarch_data): New function.
8970 (get_windows_gdbarch_data): New function.
8971 (windows_get_siginfo_type): New function.
8972 (windows_init_abi): Register windows_get_siginfo_type.
8973 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8974
8975 2020-02-08 Tom Tromey <tom@tromey.com>
8976
8977 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8978 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8979 <keep>: Declare method.
8980 <m_keep>: Remove member.
8981 <~cutu_reader>: Remove.
8982 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8983 (cutu_reader::cutu_reader): Update.
8984 (cutu_reader::keep): Rename from ~cutu_reader.
8985 (process_psymtab_comp_unit, build_type_psymtabs_1)
8986 (process_skeletonless_type_unit, load_partial_comp_unit)
8987 (load_full_comp_unit, dwarf2_read_addr_index)
8988 (read_signatured_type): Update.
8989
8990 2020-02-08 Tom Tromey <tom@tromey.com>
8991
8992 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8993 "want_partial_unit" parameter.
8994 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8995 Inline check for DW_TAG_partial_unit.
8996 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8997
8998 2020-02-08 Tom Tromey <tom@tromey.com>
8999
9000 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9001 read.c.
9002 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9003 read.c.
9004
9005 2020-02-08 Tom Tromey <tom@tromey.com>
9006
9007 * dwarf2/read.c (read_address): Move to comp-unit.c.
9008 (dwarf2_rnglists_process, dwarf2_ranges_process)
9009 (read_attribute_value, dwarf_decode_lines_1)
9010 (var_decode_location, decode_locdesc): Update.
9011 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9012 read.c. Remove "cu" parameter.
9013 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9014 method.
9015
9016 2020-02-08 Tom Tromey <tom@tromey.com>
9017
9018 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9019 (read_indirect_line_string): Update.
9020 * dwarf2/comp-unit.c (read_offset): Remove.
9021 (read_comp_unit_head): Update.
9022 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9023 method.
9024 (read_offset): Don't declare.
9025
9026 2020-02-08 Tom Tromey <tom@tromey.com>
9027
9028 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9029 * dwarf2/read.c (struct comp_unit_head): Move to
9030 dwarf2/comp-unit.h.
9031 (enum class rcuh_kind): Move to comp-unit.h.
9032 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9033 (read_comp_unit_head, error_check_comp_unit_head)
9034 (read_and_check_comp_unit_head): Move to comp-unit.c.
9035 (read_offset, dwarf_unit_type_name): Likewise.
9036 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9037 (cutu_reader::cutu_reader, read_call_site_scope)
9038 (find_partial_die, follow_die_offset): Update.
9039 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9040
9041 2020-02-08 Tom Tromey <tom@tromey.com>
9042
9043 * dwarf2/read.c (read_offset_1): Move to leb.c.
9044 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9045 (dwarf_decode_macro_bytes): Update.
9046 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9047 * dwarf2/leb.h (read_offset): Declare.
9048
9049 2020-02-08 Tom Tromey <tom@tromey.com>
9050
9051 * dwarf2/read.c (dwarf2_section_size): Remove.
9052 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9053 Update.
9054 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9055
9056 2020-02-08 Tom Tromey <tom@tromey.com>
9057
9058 * dwarf2/read.c (read_initial_length): Move to leb.c.
9059 * dwarf2/leb.h (read_initial_length): Declare.
9060 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9061 handle_nonstd parameter.
9062 * dwarf2/frame.c (read_initial_length): Remove.
9063 (decode_frame_entry_1): Update.
9064
9065 2020-02-08 Tom Tromey <tom@tromey.com>
9066
9067 * dwarf2/loc.c (dwarf2_find_location_expression)
9068 (dwarf_evaluate_loc_desc::get_tls_address)
9069 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9070 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9071 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9072 (dwarf2_compile_property_to_c)
9073 (dwarf2_loc_desc_get_symbol_read_needs)
9074 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9075 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9076 (loclist_describe_location, loclist_tracepoint_var_ref)
9077 (loclist_generate_c_location): Update.
9078 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9079 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9080 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9081 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9082 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9083 (dwarf2_per_cu_data::addr_size)
9084 (dwarf2_per_cu_data::ref_addr_size)
9085 (dwarf2_per_cu_data::text_offset)
9086 (dwarf2_per_cu_data::addr_type): Now methods.
9087 (per_cu_header_read_in): Make per_cu "const".
9088 (dwarf2_version): Remove.
9089 (dwarf2_per_cu_data::int_type): Now a method.
9090 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9091 (set_die_type, read_array_type, read_subrange_index_type)
9092 (read_tag_string_type, read_subrange_type): Update.
9093 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9094 offset_size, ref_addr_size, text_offset, addr_type, version,
9095 objfile, int_type, addr_sized_int_type>: Declare methods.
9096
9097 2020-02-08 Tom Tromey <tom@tromey.com>
9098
9099 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9100 Move earlier.
9101
9102 2020-02-08 Tom Tromey <tom@tromey.com>
9103
9104 * dwarf2/read.h (dwarf_line_debug): Declare.
9105 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9106 * dwarf2/read.c: Move line_header code to new files.
9107 (dwarf_line_debug): No longer static.
9108 * dwarf2/line-header.c: New file.
9109 * dwarf2/line-header.h: New file.
9110
9111 2020-02-08 Tom Tromey <tom@tromey.com>
9112
9113 * dwarf2/read.c (struct line_header) <file_full_name,
9114 file_file_name>: Return unique_xmalloc_ptr.
9115 (line_header::file_file_name): Update.
9116 (line_header::file_full_name): Update.
9117 (dw2_get_file_names_reader): Update.
9118 (macro_start_file): Update.
9119
9120 2020-02-08 Tom Tromey <tom@tromey.com>
9121
9122 * dwarf2/read.c (struct line_header) <file_full_name,
9123 file_file_name>: Declare methods.
9124 (dw2_get_file_names_reader): Update.
9125 (file_file_name): Now a method.
9126 (file_full_name): Likewise.
9127 (macro_start_file): Update.
9128
9129 2020-02-08 Tom Tromey <tom@tromey.com>
9130
9131 * dwarf2/read.c (dwarf_always_disassemble)
9132 (show_dwarf_always_disassemble): Move to loc.c.
9133 (_initialize_dwarf2_read): Move "always-disassemble" registration
9134 to loc.c.
9135 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9136 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9137 static.
9138 (show_dwarf_always_disassemble): Move from read.c.
9139 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9140
9141 2020-02-08 Tom Tromey <tom@tromey.com>
9142
9143 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9144 (create_quick_file_names_table): Return htab_up.
9145 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9146 Update.
9147 * dwarf2/read.h (struct dwarf2_per_objfile)
9148 <quick_file_names_table>: Now htab_up.
9149
9150 2020-02-08 Tom Tromey <tom@tromey.com>
9151
9152 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9153
9154 2020-02-08 Tom Tromey <tom@tromey.com>
9155
9156 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9157 Rewrite.
9158 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9159 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9160 (abbrev_table::abbrev_table): No longer inline.
9161 (ABBREV_HASH_SIZE): Remove.
9162 (abbrev_table::m_abbrevs): Now an htab_up.
9163
9164 2020-02-08 Tom Tromey <tom@tromey.com>
9165
9166 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9167 (cutu_reader): Update.
9168 (build_type_psymtabs_1): Update.
9169 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9170 (abbrev_table::alloc_abbrev): Update.
9171 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9172 (abbrev_table::read): New static method, renamed from
9173 abbrev_table_read_table.
9174 (abbrev_table::alloc_abbrev)
9175 (abbrev_table::add_abbrev): Now private.
9176 (abbrev_table::abbrev_table): Now private.
9177 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9178
9179 2020-02-08 Tom Tromey <tom@tromey.com>
9180
9181 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9182 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9183 htab_up.
9184
9185 2020-02-08 Tom Tromey <tom@tromey.com>
9186
9187 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9188 htab_up.
9189 (lookup_dwo_unit_in_dwp): Update.
9190 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9191 on obstack.
9192
9193 2020-02-08 Tom Tromey <tom@tromey.com>
9194
9195 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9196 obstack.
9197
9198 2020-02-08 Tom Tromey <tom@tromey.com>
9199
9200 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9201 line_header_hash.
9202 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9203 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9204 Change type to htab_up.
9205
9206 2020-02-08 Tom Tromey <tom@tromey.com>
9207
9208 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9209 htab_up. Don't allocate on obstack.
9210 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9211 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9212 Change type to htab_up.
9213
9214 2020-02-08 Tom Tromey <tom@tromey.com>
9215
9216 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9217 Change type to htab_up.
9218 * dwarf2/read.c (create_signatured_type_table_from_index)
9219 (create_signatured_type_table_from_debug_names)
9220 (create_all_type_units, add_type_unit)
9221 (lookup_dwo_signatured_type, lookup_signatured_type)
9222 (process_skeletonless_type_unit): Update.
9223 (create_debug_type_hash_table, create_debug_types_hash_table):
9224 Change type of types_htab.
9225 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9226 htab_up. Don't allocate on obstack.
9227 (create_cus_hash_table): Change type of cus_htab parameter.
9228 (struct dwo_file) <cus, tus>: Now htab_up.
9229 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9230 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9231 (queue_and_load_all_dwo_tus): Update.
9232 * dwarf2/index-write.c (write_gdbindex): Update.
9233 (write_debug_names): Update.
9234
9235 2020-02-08 Tom Tromey <tom@tromey.com>
9236
9237 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9238 dwarf2/read.c. Remove "next" member. Add constructor ntad
9239 destructor.
9240 (struct dwarf2_per_objfile) <queue>: New member.
9241 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9242 dwarf2/read.h.
9243 (dwarf2_queue, dwarf2_queue_tail): Remove.
9244 (class dwarf2_queue_guard): Add parameter to constructor. Use
9245 DISABLE_COPY_AND_ASSIGN.
9246 <m_per_objfile>: New member.
9247 <~dwarf2_queue_guard>: Rewrite.
9248 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9249 Update.
9250 (~dwarf2_queue_item): New.
9251
9252 2020-02-08 Tom Tromey <tom@tromey.com>
9253
9254 * dwarf2/read.c (struct die_info) <has_children>: New member.
9255 (dw2_get_file_names_reader): Remove has_children.
9256 (dw2_get_file_names): Update.
9257 (read_cutu_die_from_dwo): Remove has_children.
9258 (cutu_reader::init_tu_and_read_dwo_dies)
9259 (cutu_reader::cutu_reader): Update.
9260 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9261 Remove has_children.
9262 (build_type_psymtabs_1, process_skeletonless_type_unit)
9263 (load_partial_comp_unit, load_full_comp_unit): Update.
9264 (create_dwo_cu_reader): Remove has_children.
9265 (create_cus_hash_table, read_die_and_children): Update.
9266 (read_full_die_1,read_full_die): Remove has_children.
9267 (read_signatured_type): Update.
9268 (class cutu_reader) <has_children>: Remove.
9269
9270 2020-02-08 Tom Tromey <tom@tromey.com>
9271
9272 * dwarf2/expr.c: Rename from dwarf2expr.c.
9273 * dwarf2/expr.h: Rename from dwarf2expr.h.
9274 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9275 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9276 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9277 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9278 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9279 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9280 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9281 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9282 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9283 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9284 * dwarf2/loc.c: Rename from dwarf2loc.c.
9285 * dwarf2/loc.h: Rename from dwarf2loc.h.
9286 * dwarf2/read.c: Rename from dwarf2read.c.
9287 * dwarf2/read.h: Rename from dwarf2read.h.
9288 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9289 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9290 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9291 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9292 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9293 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9294 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9295 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9296 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9297 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9298 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9299 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9300 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9301 Update.
9302 * Makefile.in (COMMON_SFILES): Update.
9303 (HFILES_NO_SRCDIR): Update.
9304
9305 2020-02-08 Tom Tromey <tom@tromey.com>
9306
9307 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9308 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9309
9310 2020-02-08 Tom Tromey <tom@tromey.com>
9311
9312 * dwarf2read.h (struct die_info): Don't declare.
9313
9314 2020-02-08 Tom Tromey <tom@tromey.com>
9315
9316 * dwarf2read.h (die_info_ptr): Remove typedef.
9317
9318 2020-02-08 Tom Tromey <tom@tromey.com>
9319
9320 * dwarf2read.c (read_call_site_scope)
9321 (handle_data_member_location, dwarf2_add_member_fn)
9322 (mark_common_block_symbol_computed, read_common_block)
9323 (attr_to_dynamic_prop, partial_die_info::read)
9324 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9325 (dwarf2_symbol_mark_computed, set_die_type): Update.
9326 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9327 method.
9328 (attr_form_is_block): Don't declare.
9329 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9330
9331 2020-02-08 Tom Tromey <tom@tromey.com>
9332
9333 * dwarf2read.c (dwarf2_find_base_address, )
9334 (read_call_site_scope, rust_containing_type)
9335 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9336 (handle_data_member_location, dwarf2_add_member_fn)
9337 (get_alignment, read_structure_type, process_structure_scope)
9338 (mark_common_block_symbol_computed, read_common_block)
9339 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9340 (partial_die_info::read, read_attribute_value, new_symbol)
9341 (lookup_die_type, dwarf2_get_ref_die_offset)
9342 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9343 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9344 (dwarf2_symbol_mark_computed): Update.
9345 * dwarf2/attribute.h (struct attribute) <value_as_address,
9346 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9347 methods.
9348 (value_as_address, attr_form_is_section_offset)
9349 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9350 * dwarf2/attribute.c (attribute::value_as_address)
9351 (attribute::form_is_section_offset, attribute::form_is_constant)
9352 (attribute::form_is_ref): Now methods.
9353
9354 2020-02-08 Tom Tromey <tom@tromey.com>
9355
9356 * dwarf2read.c (struct attribute, DW_STRING)
9357 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9358 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9359 (attr_form_is_block, attr_form_is_section_offset)
9360 (attr_form_is_constant, attr_form_is_ref): Move.
9361 * dwarf2/attribute.h: New file.
9362 * dwarf2/attribute.c: New file, from dwarf2read.c.
9363 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9364
9365 2020-02-08 Tom Tromey <tom@tromey.com>
9366
9367 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9368 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9369 Move.
9370 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9371 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9372 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9373 abbrev.c.
9374 * dwarf2/abbrev.h: New file.
9375 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9376 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9377
9378 2020-02-08 Tom Tromey <tom@tromey.com>
9379
9380 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9381 (dwarf2_section_size, dwarf2_get_section_info)
9382 (create_signatured_type_table_from_debug_names)
9383 (create_addrmap_from_aranges, read_debug_names_from_section)
9384 (get_gdb_index_contents_from_section, read_comp_unit_head)
9385 (error_check_comp_unit_head, read_abbrev_offset)
9386 (create_debug_type_hash_table, init_cu_die_reader)
9387 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9388 (read_comp_units_from_section, create_cus_hash_table)
9389 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9390 (create_dwp_v2_section, dwarf2_rnglists_process)
9391 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9392 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9393 (read_indirect_string_from_dwz, read_addr_index_1)
9394 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9395 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9396 (fill_in_loclist_baton): Update.
9397 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9398 get_containing_section, get_bfd_owner, get_bfd_section,
9399 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9400 (dwarf2_read_section, get_section_name, get_section_file_name)
9401 (get_containing_section, get_section_bfd_owner)
9402 (get_section_bfd_section, get_section_name, get_section_file_name)
9403 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9404 declare.
9405 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9406 (dwarf2_section_info::get_bfd_owner)
9407 (dwarf2_section_info::get_bfd_section)
9408 (dwarf2_section_info::get_name)
9409 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9410 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9411 (dwarf2_section_info::read): Now methods.
9412 * dwarf-index-write.c (class debug_names): Update.
9413
9414 2020-02-08 Tom Tromey <tom@tromey.com>
9415
9416 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9417 Move to dwarf2/section.h.
9418 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9419 (get_section_bfd_section, get_section_name)
9420 (get_section_file_name, get_section_id, get_section_flags)
9421 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9422 dwarf2/section.c.
9423 * dwarf2/section.h: New file.
9424 * dwarf2/section.c: New file, from dwarf2read.c.
9425 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9426
9427 2020-02-08 Tom Tromey <tom@tromey.com>
9428
9429 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9430 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9431 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9432 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9433 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9434 * dwarf2/leb.h: New file, from dwarf2read.c.
9435 * dwarf2/leb.c: New file, from dwarf2read.c.
9436 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9437 Remove.
9438 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9439 (COMMON_SFILES): Add dwarf2/leb.c.
9440
9441 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9442
9443 GDB 9.1 released.
9444
9445 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9446
9447 PR gdb/25190:
9448 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9449 * gdb/remote.c (remote_console_output): Update.
9450 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9451 (ui_file_puts): ...this.
9452 * gdb/ui-file.h (ui_file_puts): Add declaration.
9453 * gdb/utils.c (emit_style_escape): Update.
9454 (flush_wrap_buffer): Update.
9455 (fputs_maybe_filtered): Update.
9456 (fputs_unfiltered): Add function.
9457
9458 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9459
9460 * gdb/event-loop.c (gdb_wait_for_event): Update.
9461 * gdb/printcmd.c (printf_command): Update.
9462 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9463 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9464 (gdb_os_flush_stderr): Update.
9465 * gdb/remote.c (remote_console_output): Update.
9466 * gdb/ui-file.c (gdb_flush): Rename to...
9467 (ui_file_flush): ...this.
9468 (stderr_file::write): Update.
9469 (stderr_file::puts): Update.
9470 * gdb/ui-file.h (gdb_flush): Rename to...
9471 (ui_file_flush): ...this.
9472 * gdb/utils.c (gdb_flush): Add function.
9473 * gdb/utils.h (gdb_flush): Add declaration.
9474
9475 2020-02-07 Tom Tromey <tromey@adacore.com>
9476
9477 PR breakpoints/24915:
9478 * source.c (find_and_open_source): Do not check basenames_may_differ.
9479
9480 2020-02-07 Tom Tromey <tom@tromey.com>
9481
9482 * README: Update gdbserver documentation.
9483 * gdbserver: Move to top level.
9484 * configure.tgt (build_gdbserver): Remove.
9485 * configure.ac: Remove --enable-gdbserver.
9486 * configure: Rebuild.
9487 * Makefile.in (distclean): Don't mention gdbserver.
9488
9489 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9490
9491 * source-cache.c (source_cache::ensure): Surround
9492 get_plain_source_lines with a try/catch.
9493 (source_cache::get_line_charpos): Get rid of try/catch
9494 and only check for the return value of "ensure".
9495 * tui/tui-source.c (tui_source_window::set_contents):
9496 Simplify "nlines" calculation.
9497
9498 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9499
9500 * MAINTAINERS (Write After Approval): Add myself.
9501
9502 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9503
9504 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9505 function call.
9506
9507 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9508
9509 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9510
9511 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9512
9513 * nat/riscv-linux-tdesc.h: New file.
9514 * nat/riscv-linux-tdesc.c: New file, taking code from...
9515 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9516 ... here.
9517 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9518 NATDEPFILES.
9519
9520 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9521
9522 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9523 we don't set the fake simulator ptid to the null_ptid.
9524
9525 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9526
9527 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9528 * gdbthread.h (class thread_info) <resumed>: Likewise.
9529 * infrun.c (resume_1): Likewise.
9530 (proceed): Likewise.
9531 (infrun_thread_stop_requested): Likewise.
9532 (stop_all_threads): Likewise.
9533 (handle_inferior_event): Likewise.
9534 (restart_threads): Likewise.
9535 (finish_step_over): Likewise.
9536 (keep_going_stepped_thread): Likewise.
9537 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9538 (linux_handle_extended_wait): Likewise.
9539 * record-btrace.c (get_thread_current_frame_id): Likewise.
9540 * record-full.c (record_full_wait_1): Likewise.
9541 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9542 * target.c (target_resume): Likewise.
9543 * thread.c (set_running_thread): Likewise.
9544
9545 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9546
9547 * f-valprint.c (f77_print_array_1): Changed datatype of index
9548 variable to LONGEST from int to enable it to contain bound
9549 values correctly.
9550
9551 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9552
9553 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9554 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9555 offsets according to FLEN determined.
9556 (riscv_linux_nat_target::read_description): Determine FLEN
9557 dynamically.
9558 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9559 according to FLEN determined.
9560 (riscv_linux_nat_target::store_registers): Likewise.
9561
9562 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9563
9564 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9565 when reg->group is empty and reggroup is not.
9566
9567 2020-01-31 Tom Tromey <tromey@adacore.com>
9568
9569 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9570 Call beneath target's mourn_inferior after unpushing.
9571
9572 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9573
9574 PR tui/9765
9575 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9576 have enough lines to fill the screen, still return the lowest
9577 address we found.
9578
9579 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9580
9581 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9582 '-', '<', and '>' commands.
9583
9584 2020-01-29 Pedro Alves <palves@redhat.com>
9585 Sergio Durigan Junior <sergiodj@redhat.com>
9586
9587 * infcmd.c (construct_inferior_arguments): Assert that
9588 'argc' is greater than 0.
9589
9590 2020-01-29 Luis Machado <luis.machado@linaro.org>
9591
9592 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9593 (BRK_INSN_MASK): Define to 0xd4200000.
9594 (aarch64_program_breakpoint_here_p): New function.
9595 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9596 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9597 breakpoint.c.
9598 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9599 breakpoint.h
9600 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9601 call gdbarch_program_breakpoint_here_p.
9602 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9603 default_program_breakpoint_here_p, changed return type to bool and
9604 simplified.
9605 * breakpoint.h (program_breakpoint_here): Moved prototype to
9606 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9607 return type to bool.
9608 * gdbarch.c: Regenerate.
9609 * gdbarch.h: Regenerate.
9610 * gdbarch.sh (program_breakpoint_here_p): New method.
9611 * infrun.c (handle_signal_stop): Call
9612 gdbarch_program_breakpoint_here_p.
9613
9614 2020-01-26 Tom Tromey <tom@tromey.com>
9615
9616 * ctfread.c (struct ctf_fp_info): Reindent.
9617 (_initialize_ctfread): Remove.
9618
9619 2020-01-26 Tom Tromey <tom@tromey.com>
9620
9621 * psymtab.c (partial_map_expand_apply)
9622 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9623 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9624 (psym_print_stats, psym_expand_symtabs_for_function)
9625 (psym_map_symbol_filenames, psym_map_matching_symbols)
9626 (psym_expand_symtabs_matching)
9627 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9628 (maintenance_check_psymtabs): Use new methods.
9629 * psympriv.h (struct partial_symtab) <readin_p,
9630 get_compunit_symtab>: New methods.
9631 <readin, compunit_symtab>: Remove members.
9632 (struct standard_psymtab): New.
9633 (struct legacy_psymtab): Derive from standard_psymtab.
9634 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9635 standard_psymtab.
9636 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9637
9638 2020-01-26 Tom Tromey <tom@tromey.com>
9639
9640 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9641 read_dependencies. Add assert.
9642 * psymtab.c (partial_symtab::read_dependencies): New method.
9643 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9644 method.
9645 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9646 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9647 read_dependencies.
9648 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9649 Add assert.
9650
9651 2020-01-26 Tom Tromey <tom@tromey.com>
9652
9653 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9654 Call expand_psymtab.
9655 (xcoff_read_symtab): Call expand_psymtab.
9656 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9657 legacy_expand_psymtab.
9658 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9659 method.
9660 (struct legacy_psymtab) <expand_psymtab>: Implement.
9661 <legacy_expand_psymtab>: New member.
9662 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9663 (parse_partial_symbols): Set legacy_expand_psymtab.
9664 (psymtab_to_symtab_1): Change argument order. Call
9665 expand_psymtab.
9666 (new_psymtab): Set legacy_expand_psymtab.
9667 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9668 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9669 expand_psymtab.
9670 (dwarf2_psymtab::expand_psymtab): Rename from
9671 psymtab_to_symtab_1. Call expand_psymtab.
9672 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9673 (dbx_end_psymtab): Likewise.
9674 (dbx_psymtab_to_symtab_1): Change argument order. Call
9675 expand_psymtab.
9676 (dbx_read_symtab): Call expand_psymtab.
9677 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9678 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9679 (ctf_psymtab::read_symtab): Call expand_psymtab.
9680
9681 2020-01-26 Tom Tromey <tom@tromey.com>
9682
9683 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9684 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9685 messages.
9686 * mdebugread.c (mdebug_read_symtab): Remove prints.
9687 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9688 assert.
9689 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9690
9691 2020-01-26 Tom Tromey <tom@tromey.com>
9692
9693 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9694 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9695 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9696 legacy_symtab.
9697 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9698 * psymtab.c (psymtab_to_symtab): Call method.
9699 (dump_psymtab): Update.
9700 * psympriv.h (struct partial_symtab): Add virtual destructor.
9701 <read_symtab>: New method.
9702 (struct legacy_symtab): New.
9703 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9704 (struct pst_map) <pst>: Now a legacy_psymtab.
9705 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9706 (new_psymtab): Use legacy_psymtab.
9707 * dwarf2read.h (struct dwarf2_psymtab): New.
9708 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9709 * dwarf2read.c (dwarf2_create_include_psymtab)
9710 (dwarf2_build_include_psymtabs, create_type_unit_group)
9711 (create_partial_symtab, process_psymtab_comp_unit_reader)
9712 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9713 (set_partial_user): Use dwarf2_psymtab.
9714 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9715 (psymtab_to_symtab_1, process_full_comp_unit)
9716 (process_full_type_unit, dwarf2_ranges_read)
9717 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9718 (dwarf_decode_lines): Use dwarf2_psymtab.
9719 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9720 (add_address_entry_worker, write_one_signatured_type)
9721 (recursively_count_psymbols, recursively_write_psymbols)
9722 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9723 (write_debug_names): Likewise.
9724 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9725 <pst>: Now a legacy_psymtab.
9726 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9727 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9728 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9729 * ctfread.c (struct ctf_psymtab): New.
9730 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9731 ctf_psymtab.
9732 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9733 (create_partial_symtab): Return a ctf_psymtab.
9734 (scan_partial_symbols): Update.
9735
9736 2020-01-26 Tom Tromey <tom@tromey.com>
9737
9738 * xcoffread.c (xcoff_start_psymtab): Use new.
9739 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9740 renamed from start_psymtab_common.
9741 * psympriv.h (struct partial_symtab): Add new constructor.
9742 (start_psymtab_common): Don't declare.
9743 * mdebugread.c (parse_partial_symbols): Use new.
9744 * dwarf2read.c (create_partial_symtab): Use new.
9745 * dbxread.c (start_psymtab): Use new.
9746 * ctfread.c (create_partial_symtab): Use new.
9747
9748 2020-01-26 Tom Tromey <tom@tromey.com>
9749
9750 * xcoffread.c (xcoff_end_psymtab): Use new.
9751 * psymtab.c (start_psymtab_common): Use new.
9752 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9753 Update.
9754 * psympriv.h (struct partial_symtab): Add parameters to
9755 constructor. Don't inline.
9756 (allocate_psymtab): Don't declare.
9757 * mdebugread.c (new_psymtab): Use new.
9758 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9759 * dbxread.c (dbx_end_psymtab): Use new.
9760
9761 2020-01-26 Tom Tromey <tom@tromey.com>
9762
9763 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9764 allocate_psymtab. Update documentation.
9765 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9766 allocate_psymtab. Do not use new.
9767 (allocate_psymtab): Use new. Update.
9768
9769 2020-01-26 Tom Tromey <tom@tromey.com>
9770
9771 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9772 * psymtab.c (psym_print_stats): Update.
9773 * psympriv.h (struct partial_symtab) <readin,
9774 psymtabs_addrmap_supported, anonymous>: Now bool.
9775 * mdebugread.c (psymtab_to_symtab_1): Update.
9776 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9777 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9778 (process_full_comp_unit, process_full_type_unit): Update.
9779 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9780 * ctfread.c (psymtab_to_symtab): Update.
9781
9782 2020-01-26 Tom Tromey <tom@tromey.com>
9783
9784 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9785 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9786 * psymtab.c (psymtab_storage): Delete psymtabs.
9787 (psymtab_storage::allocate_psymtab): Use new.
9788 (psymtab_storage::discard_psymtab): Use delete.
9789 * psympriv.h (struct partial_symtab): Add constructor and
9790 initializers.
9791
9792 2020-01-26 Tom Tromey <tom@tromey.com>
9793
9794 * machoread.c: Do not include psympriv.h.
9795
9796 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9797
9798 * NEWS: Mention the new option and the set/show commands.
9799
9800 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9801
9802 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9803 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9804 (validate_exec_file): New variables, enums, functions.
9805 (exec_file_locate_attach, print_section_info): Style the filenames.
9806 (_initialize_exec): Install show_exec_file_mismatch_command and
9807 set_exec_file_mismatch_command.
9808 * gdbcore.h (validate_exec_file): Declare.
9809 * infcmd.c (attach_command): Call validate_exec_file.
9810 * remote.c ( remote_target::remote_add_inferior): Likewise.
9811
9812 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9813
9814 * frame.c (find_frame_sal): Move call to get_next_frame into more
9815 inner scope.
9816 * inline-frame.c (inilne_state) <inline_state>: Update argument
9817 types.
9818 (inilne_state) <skipped_symbol>: Rename to...
9819 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9820 (skip_inline_frames): Build vector of skipped symbols and use this
9821 to reate the inline_state.
9822 (inline_skipped_symbol): Add a comment and some assertions, fetch
9823 skipped symbol from the list.
9824
9825 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9826
9827 * buildsym.c (lte_is_less_than): Delete.
9828 (buildsym_compunit::end_symtab_with_blockvector): Create local
9829 lambda function to sort line table entries, and use
9830 std::stable_sort instead of std::sort.
9831 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9832 markers when looking for a previous line.
9833
9834 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9835
9836 * dwarf2read.c (lnp_state_machine::record_line): Include
9837 end_sequence parameter in debug print out. Record the line if we
9838 are at an end_sequence marker even if it's not the start of a
9839 statement.
9840 * symmisc.c (maintenance_print_one_line_table): Print end of
9841 sequence markers with 'END' not '0'.
9842
9843 2020-01-24 Pedro Alves <palves@redhat.com>
9844
9845 PR gdb/25410
9846 * thread.c (scoped_restore_current_thread::restore): Use
9847 switch_to_inferior_no_thread.
9848 * exec.c: Include "progspace-and-thread.h".
9849 (add_target_sections, remove_target_sections):
9850 scoped_restore_current_pspace_and_thread instead of
9851 scoped_restore_current_thread.
9852 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9853 and aspace to the inferior before calling clone_program_space.
9854 Remove stale comment.
9855
9856 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9857
9858 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9859 (arm_netbsd_nat_target::fetch_registers): ...this.
9860 (arm_nbsd_nat_target::store_registers): Rename to...
9861 (arm_netbsd_nat_target::store_registers): ...this.
9862
9863 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9864
9865 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9866 register_t.
9867
9868 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9869
9870 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9871 Update comment.
9872 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9873 Likewise.
9874 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9875 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9876 the correct replacement (iterate_over_regset_sections).
9877 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9878 Update comment.
9879
9880 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9881
9882 PR gdb/23718
9883 * gdb/python/python.c (execute_gdb_command): Call
9884 async_enable_stdin in catch block.
9885
9886 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9887
9888 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9889 SWITCH_THRU_ALL_UIS.
9890
9891 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9892
9893 PR tui/9765
9894 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9895 comment, add extra parameter, and update to store previous symbol
9896 when appropriate.
9897 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9898 add extra parameter.
9899 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9900 remove unneeded parameter, add try/catch around gdb_print_insn,
9901 rewrite to add items to asm_lines vector.
9902 (tui_find_backward_disassembly_start_address): New function.
9903 (tui_find_disassembly_address): Updated throughout.
9904 (tui_disasm_window::set_contents): Update for changes to
9905 tui_disassemble.
9906 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9907 number of lines to scroll.
9908
9909 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9910
9911 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9912 (SECT_OFF_DATA): Likewise.
9913 (SECT_OFF_RODATA): Likewise.
9914 (SECT_OFF_TEXT): Likewise.
9915 (SECT_OFF_BSS): Likewise.
9916 (struct objfile) <text_section_offset, data_section_offset>: New
9917 methods.
9918 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9919 objfile::text_section_offset.
9920 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9921 * coffread.c (coff_symtab_read): Likewise.
9922 (enter_linenos): Likewise.
9923 (process_coff_symbol): Likewise.
9924 * ctfread.c (get_objfile_text_range): Likewise.
9925 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9926 Use objfile::data_section_offset.
9927 * dwarf2-frame.c (execute_cfa_program): Use
9928 objfile::text_section_offset.
9929 (dwarf2_frame_find_fde): Likewise.
9930 * dwarf2read.c (create_addrmap_from_index): Likewise.
9931 (create_addrmap_from_aranges): Likewise.
9932 (dw2_find_pc_sect_compunit_symtab): Likewise.
9933 (process_psymtab_comp_unit_reader): Likewise.
9934 (add_partial_symbol): Likewise.
9935 (add_partial_subprogram): Likewise.
9936 (process_full_comp_unit): Likewise.
9937 (read_file_scope): Likewise.
9938 (read_func_scope): Likewise.
9939 (read_lexical_block_scope): Likewise.
9940 (read_call_site_scope): Likewise.
9941 (dwarf2_rnglists_process): Likewise.
9942 (dwarf2_ranges_process): Likewise.
9943 (dwarf2_ranges_read): Likewise.
9944 (dwarf_decode_lines_1): Likewise.
9945 (new_symbol): Likewise.
9946 (dwarf2_fetch_die_loc_sect_off): Likewise.
9947 (dwarf2_per_cu_text_offset): Likewise.
9948 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9949 * hppa-tdep.c (read_unwind_info): Likewise.
9950 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9951 * psympriv.h (struct partial_symtab): Likewise.
9952 * psymtab.c (find_pc_sect_psymtab): Likewise.
9953 * solib-svr4.c (enable_break): Likewise.
9954 * stap-probe.c (relocate_address): Use
9955 objfile::data_section_offset.
9956 * xcoffread.c (enter_line_range): Use
9957 objfile::text_section_offset.
9958 (read_xcoff_symtab): Likewise.
9959
9960 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9961
9962 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9963 declaration to narrower scopes.
9964
9965 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9966
9967 * darwin-nat.h (struct darwin_exception_msg, enum
9968 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9969 Move up.
9970 (class darwin_nat_target) <wait_1, check_new_threads,
9971 decode_exception_message, decode_message, stop_inferior,
9972 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9973 * darwin-nat.c (darwin_check_new_threads): Rename to...
9974 (darwin_nat_target::check_new_threads): ... this.
9975 (darwin_suspend_inferior_it): Remove.
9976 (darwin_decode_exception_message): Rename to...
9977 (darwin_nat_target::decode_exception_message): ... this.
9978 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9979 (darwin_decode_message): Rename to...
9980 (darwin_nat_target::decode_message): ... this.
9981 (cancel_breakpoint): Rename to...
9982 (darwin_nat_target::cancel_breakpoint): ... this.
9983 (darwin_wait): Rename to...
9984 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9985 instead of iterate_over_inferiors.
9986 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9987 (darwin_stop_inferior): Rename to...
9988 (darwin_nat_target::stop_inferior): ... this.
9989 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9990 (darwin_init_thread_list): Rename to...
9991 (darwin_nat_target::init_thread_list): ... this.
9992 (darwin_ptrace_him): Rename to...
9993 (darwin_nat_target::ptrace_him): ... this.
9994 (darwin_nat_target::create_inferior): Pass lambda function to
9995 fork_inferior.
9996 (darwin_nat_target::detach): Call stop_inferior instead of
9997 darwin_stop_inferior.
9998 * fork-inferior.h (fork_inferior): Change init_trace_fun
9999 parameter to gdb::function_view.
10000 * fork-inferior.c (fork_inferior): Likewise.
10001
10002 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10003
10004 * i386-cygwin-tdep.c (core_process_module_section): Update.
10005 * windows-nat.c (struct lm_info_windows): Add text_offset.
10006 (windows_xfer_shared_libraries): Update.
10007 * windows-tdep.c (windows_xfer_shared_library):
10008 Add text_offset_cached argument.
10009 * windows-tdep.h (windows_xfer_shared_library): Update.
10010
10011 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10012
10013 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10014
10015 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10016
10017 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10018 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10019 replace with range-based for.
10020 (gdbsim_interrupt_inferior): Remove.
10021 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10022 with a range-based for. Inline code from
10023 gdbsim_interrupt_inferior.
10024
10025 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10026
10027 * infrun.c (proceed): Fix indentation.
10028
10029 2020-01-21 Tom Tromey <tromey@adacore.com>
10030
10031 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10032 * python/python.c (python_extension_ops): Update.
10033 (gdbpy_colorize): New function.
10034 * python/lib/gdb/__init__.py (colorize): New function.
10035 * extension.h (ext_lang_colorize): Declare.
10036 * extension.c (ext_lang_colorize): New function.
10037 * extension-priv.h (struct extension_language_ops) <colorize>: New
10038 member.
10039 * cli/cli-style.c (_initialize_cli_style): Update help text.
10040
10041 2020-01-21 Luis Machado <luis.machado@linaro.org>
10042
10043 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10044 <cond>: Change type to bool.
10045 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10046 (aarch64_displaced_step_cb): Likewise.
10047 (aarch64_displaced_step_tb): Likewise.
10048
10049 2020-01-21 Luis Machado <luis.machado@linaro.org>
10050
10051 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10052 output.
10053
10054 2020-01-21 Luis Machado <luis.machado@linaro.org>
10055
10056 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10057 <pc_adjust>: Adjust the documentation.
10058 (aarch64_displaced_step_fixup): Check if PC really moved before
10059 adjusting it.
10060
10061 2020-01-19 Tom Tromey <tom@tromey.com>
10062
10063 * disasm.c (~gdb_disassembler): New destructor.
10064 (gdb_buffered_insn_length): Call disassemble_free_target.
10065 * disasm.h (class gdb_disassembler): Declare destructor. Use
10066 DISABLE_COPY_AND_ASSIGN.
10067
10068 2020-01-19 Tom Tromey <tom@tromey.com>
10069
10070 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10071 (die_reader_func_ftype): Remove.
10072 (cutu_reader): New class.
10073 (dw2_get_file_names_reader): Remove "data" parameter.
10074 (dw2_get_file_names): Use cutu_reader.
10075 (create_debug_type_hash_table): Update.
10076 (read_cutu_die_from_dwo): Update comment.
10077 (lookup_dwo_unit): Add dwo_name parameter.
10078 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10079 die_reader_func_ftype and data parameters.
10080 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10081 Remove die_reader_func_ftype and data parameters.
10082 (~cutu_reader): New; from init_cutu_and_read_dies.
10083 (cutu_reader::cutu_reader): Rename from
10084 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10085 and data parameters.
10086 (init_cutu_and_read_dies_simple): Remove.
10087 (struct process_psymtab_comp_unit_data): Remove.
10088 (process_psymtab_comp_unit_reader): Remove data parameter; add
10089 want_partial_unit and pretend_language parameters.
10090 (process_psymtab_comp_unit): Use cutu_reader.
10091 (build_type_psymtabs_reader): Remove data parameter.
10092 (build_type_psymtabs_1): Use cutu_reader.
10093 (process_skeletonless_type_unit): Likewise.
10094 (load_partial_comp_unit_reader): Remove.
10095 (load_partial_comp_unit): Use cutu_reader.
10096 (load_full_comp_unit_reader): Remove.
10097 (load_full_comp_unit): Use cutu_reader.
10098 (struct create_dwo_cu_data): Remove.
10099 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10100 dwo_unit parameters.
10101 (create_cus_hash_table): Use cutu_reader.
10102 (struct dwarf2_read_addr_index_data): Remove.
10103 (dwarf2_read_addr_index_reader): Remove.
10104 (dwarf2_read_addr_index): Use cutu_reader.
10105 (read_signatured_type_reader): Remove.
10106 (read_signatured_type): Use cutu_reader.
10107
10108 2020-01-19 Tom Tromey <tom@tromey.com>
10109
10110 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10111 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10112 (tui_wrefresh): Declare.
10113 * tui/tui-wingeneral.c (suppress_output): New global.
10114 (tui_suppress_output, ~tui_suppress_output): New constructor and
10115 destructor.
10116 (tui_wrefresh): New function.
10117 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10118 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10119 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10120 method.
10121 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10122 tui_wrefresh.
10123 (tui_data_window::no_refresh): New method.
10124 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10125 (tui_reg_command): Use tui_suppress_output
10126 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10127 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10128 method.
10129 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10130
10131 2020-01-19 Tom Tromey <tom@tromey.com>
10132
10133 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10134 Handle case where symtab is null.
10135
10136 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10137
10138 * linux-fork.c (one_fork_p): Simplify.
10139
10140 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10141
10142 * top.c (struct qt_args): Remove.
10143 (kill_or_detach): Change return type to void, replace `void *`
10144 parameter with a proper one.
10145 (print_inferior_quit_action): Likewise.
10146 (quit_confirm): Use range-based for loop to iterate over inferiors.
10147 (quit_force): Likewise.
10148
10149 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10150
10151 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10152 `void *` parameter with proper parameters.
10153 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10154 (print_one_inferior): Change return type to void, replace `void *`
10155 parameter with proper parameters.
10156 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10157 inferiors.
10158 (get_other_inferior): Remove.
10159 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10160 inferiors.
10161
10162 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10163
10164 * mi/mi-interp.c (report_initial_inferior): Remove.
10165 (mi_interp::init): Use range-based for to iterate over inferiors.
10166
10167 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10168
10169 * python/py-inferior.c (build_inferior_list): Remove.
10170 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10171
10172 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10173
10174 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10175 (btrace_stitch_trace): Likewise.
10176 * charset.c (intermediate_encoding): Likewise (vaild).
10177 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10178 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10179 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10180
10181 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10182
10183 * windows-tdep.c (windows_get_tlb_type):
10184 Add rtl_user_process_parameters type.
10185
10186 2020-01-16 Pedro Alves <palves@redhat.com>
10187 Norbert Lange <nolange79@gmail.com>
10188
10189 PR build/24805
10190 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10191 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10192 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10193 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10194 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10195 (ps_plog): Redeclare exported functions with default visibility.
10196
10197 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10198
10199 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10200 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10201
10202 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10203
10204 * infcmd.c (post_create_inferior): Use get_thread_regcache
10205 instead of get_current_regcache.
10206
10207 2020-01-14 Tom Tromey <tom@tromey.com>
10208
10209 PR symtab/12535:
10210 * python/python.c (gdbpy_decode_line): Treat empty string the same
10211 as no argument.
10212
10213 2020-01-14 Tom Tromey <tom@tromey.com>
10214
10215 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10216
10217 2020-01-14 Tom Tromey <tom@tromey.com>
10218
10219 * nat/linux-btrace.c: Don't include <config.h>.
10220 * nat/linux-ptrace.c: Don't include <config.h>.
10221 * nat/x86-linux-dregs.c: Don't include <config.h>.
10222
10223 2020-01-14 Tom Tromey <tom@tromey.com>
10224
10225 * configure: Rebuild.
10226 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10227
10228 2020-01-14 Tom Tromey <tom@tromey.com>
10229
10230 * nat/x86-linux-dregs.c: Include configh.h.
10231 * nat/linux-ptrace.c: Include configh.h.
10232 * nat/linux-btrace.c: Include configh.h.
10233 * defs.h: Include config.h, bfd.h.
10234 * configure.ac: Don't source common.host.
10235 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10236 * configure: Rebuild.
10237 * acinclude.m4: Update path.
10238 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10239 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10240 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10241 (CLIBS): Add LIBSUPPORT.
10242 (CDEPS): Likewise.
10243 (COMMON_SFILES): Remove gdbsupport files.
10244 (HFILES_NO_SRCDIR): Likewise.
10245 (stamp-version): Update path to create-version.sh.
10246 (ALLDEPFILES): Remove gdbsupport files.
10247
10248 2020-01-14 Tom Tromey <tom@tromey.com>
10249
10250 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10251 USE_WIN32API when needed.
10252 * configure.ac (USE_WIN32API): Don't define.
10253 (WIN32LIBS): Use WIN32APILIBS.
10254 * configure: Rebuild.
10255
10256 2020-01-14 Tom Tromey <tom@tromey.com>
10257
10258 * configure: Rebuild.
10259 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10260
10261 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10262
10263 * skip.c (skip_function_command): Make skip w/o arguments use the
10264 name of the inlined function if pc is inside any inlined function.
10265
10266 2020-01-14 Luis Machado <luis.machado@linaro.org>
10267
10268 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10269 * infrun.c (resume_1): Likewise.
10270 (handle_inferior_event): Remove stale comment.
10271 * linux-nat.c (linux_nat_target::resume): Update comments.
10272 (save_stop_reason): Likewise.
10273 (linux_nat_filter_event): Likewise.
10274 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10275
10276 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10277
10278 * elfread.c (record_minimal_symbol): Set section index to 0 for
10279 non-allocatable sections.
10280
10281
10282 2020-01-13 Ali Tamur <tamur@google.com>
10283
10284 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10285 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10286 to gdb::optional. Update comments.
10287 (dwo_file): Update comments.
10288 (read_attribute): Update API to take an additional out parameter,
10289 need_reprocess. This is used to mark attributes that need other
10290 attributes (e.g. str_offsets_base) for correct computation which may not
10291 have been read yet.
10292 (read_attribute_reprocess): New function declaration.
10293 (read_addr_index): Likewise.
10294 (read_dwo_str_index): Likewise.
10295 (read_stub_str_index): Likewise.
10296 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10297 (lookup_addr_base): New function definition.
10298 (lookup_ranges_base): Likewise.
10299 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10300 lookup_ranges_base.
10301 (init_cutu_and_read_dies): Update comments.
10302 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10303 unit. This is used to inherit parent's str_offsets_base and addr_base.
10304 Update comments.
10305 (init_cutu_and_read_dies_simple): Reflect API changes.
10306 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10307 (create_cus_hash_table): Change API to take parent compile unit.
10308 Reflect API changes.
10309 (open_and_init_dwo_file): Reflect API changes.
10310 (dwarf2_get_pc_bounds): Update comments.
10311 (dwarf2_record_block_ranges): Likewise.
10312 (read_full_die_1): Change implementation to reprocess attributes that
10313 need str_offsets_base and addr_base.
10314 (partial_die_info::read): Likewise.
10315 (read_attribute_reprocess): New function definition.
10316 (read_attribute_value): Change API to take an additional out parameter,
10317 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10318 when a non-dwo compile unit has index based attributes.
10319 (read_attribute): Reflect API changes.
10320 (read_addr_index_1): Reflect API changes. Update comments.
10321 (dwarf2_read_addr_index_data): Reflect API changes.
10322 (dwarf2_read_addr_index): Likewise.
10323 (read_str_index): Change API and implementation. This becomes a helper
10324 to be used by the new string index related methods. Update error
10325 message and comments.
10326 (read_dwo_str_index): New function definition.
10327 (read_stub_str_index): Likewise.
10328 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10329 * symfile.h (dwarf2_debug_sections): Likewise.
10330 * xcoffread.c (dwarf2_debug_sections): Likewise.
10331
10332 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10333
10334 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10335 core_reg_sect type to gdb_byte *.
10336 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10337 * cris-tdep.c (fetch_core_registers): Likewise.
10338 * corelow.c (core_target::get_core_register_section): Change
10339 type of `contents` to gdb::byte_vector.
10340
10341 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10342
10343 * tui/tui-wingeneral.c (box_win): Position the title in the center
10344 of the border.
10345
10346 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10347
10348 * corelow.c (core_target::get_core_register_section): Use
10349 std::vector instead of alloca.
10350
10351 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10352
10353 * warning.m4: Add -Wmissing-declarations to build_warnings.
10354 * configure: Re-generate.
10355
10356 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10357
10358 * python/python.c (init__gdb_module): Add declaration.
10359
10360 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10361
10362 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10363 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10364 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10365 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10366 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10367 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10368 * ada-exp.y (_initialize_ada_exp): Add declaration.
10369 * ada-lang.c (_initialize_ada_language): Add declaration.
10370 * ada-tasks.c (_initialize_tasks): Add declaration.
10371 * agent.c (_initialize_agent): Add declaration.
10372 * aix-thread.c (_initialize_aix_thread): Add declaration.
10373 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10374 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10375 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10376 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10377 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10378 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10379 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10380 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10381 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10382 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10383 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10384 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10385 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10386 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10387 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10388 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10389 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10390 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10391 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10392 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10393 * annotate.c (_initialize_annotate): Add declaration.
10394 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10395 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10396 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10397 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10398 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10399 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10400 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10401 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10402 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10403 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10404 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10405 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10406 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10407 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10408 * auto-load.c (_initialize_auto_load): Add declaration.
10409 * auxv.c (_initialize_auxv): Add declaration.
10410 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10411 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10412 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10413 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10414 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10415 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10416 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10417 * breakpoint.c (_initialize_breakpoint): Add declaration.
10418 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10419 * btrace.c (_initialize_btrace): Add declaration.
10420 * charset.c (_initialize_charset): Add declaration.
10421 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10422 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10423 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10424 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10425 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10426 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10427 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10428 * coffread.c (_initialize_coffread): Add declaration.
10429 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10430 * compile/compile.c (_initialize_compile): Add declaration.
10431 * complaints.c (_initialize_complaints): Add declaration.
10432 * completer.c (_initialize_completer): Add declaration.
10433 * copying.c (_initialize_copying): Add declaration.
10434 * corefile.c (_initialize_core): Add declaration.
10435 * corelow.c (_initialize_corelow): Add declaration.
10436 * cp-abi.c (_initialize_cp_abi): Add declaration.
10437 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10438 * cp-support.c (_initialize_cp_support): Add declaration.
10439 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10440 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10441 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10442 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10443 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10444 * ctfread.c (_initialize_ctfread): Add declaration.
10445 * d-lang.c (_initialize_d_language): Add declaration.
10446 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10447 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10448 * dbxread.c (_initialize_dbxread): Add declaration.
10449 * dcache.c (_initialize_dcache): Add declaration.
10450 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10451 * disasm.c (_initialize_disasm): Add declaration.
10452 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10453 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10454 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10455 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10456 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10457 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10458 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10459 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10460 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10461 * elfread.c (_initialize_elfread): Add declaration.
10462 * exec.c (_initialize_exec): Add declaration.
10463 * extension.c (_initialize_extension): Add declaration.
10464 * f-lang.c (_initialize_f_language): Add declaration.
10465 * f-valprint.c (_initialize_f_valprint): Add declaration.
10466 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10467 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10468 * filesystem.c (_initialize_filesystem): Add declaration.
10469 * findcmd.c (_initialize_mem_search): Add declaration.
10470 * findvar.c (_initialize_findvar): Add declaration.
10471 * fork-child.c (_initialize_fork_child): Add declaration.
10472 * frame-base.c (_initialize_frame_base): Add declaration.
10473 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10474 * frame.c (_initialize_frame): Add declaration.
10475 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10476 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10477 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10478 * gcore.c (_initialize_gcore): Add declaration.
10479 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10480 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10481 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10482 * gdbarch.c (_initialize_gdbarch): Add declaration.
10483 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10484 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10485 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10486 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10487 * go-lang.c (_initialize_go_language): Add declaration.
10488 * go32-nat.c (_initialize_go32_nat): Add declaration.
10489 * guile/guile.c (_initialize_guile): Add declaration.
10490 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10491 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10492 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10493 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10494 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10495 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10496 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10497 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10498 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10499 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10500 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10501 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10502 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10503 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10504 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10505 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10506 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10507 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10508 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10509 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10510 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10511 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10512 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10513 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10514 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10515 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10516 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10517 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10518 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10519 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10520 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10521 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10522 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10523 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10524 * infcall.c (_initialize_infcall): Add declaration.
10525 * infcmd.c (_initialize_infcmd): Add declaration.
10526 * inflow.c (_initialize_inflow): Add declaration.
10527 * infrun.c (_initialize_infrun): Add declaration.
10528 * interps.c (_initialize_interpreter): Add declaration.
10529 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10530 * jit.c (_initialize_jit): Add declaration.
10531 * language.c (_initialize_language): Add declaration.
10532 * linux-fork.c (_initialize_linux_fork): Add declaration.
10533 * linux-nat.c (_initialize_linux_nat): Add declaration.
10534 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10535 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10536 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10537 * m2-lang.c (_initialize_m2_language): Add declaration.
10538 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10539 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10540 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10541 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10542 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10543 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10544 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10545 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10546 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10547 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10548 * machoread.c (_initialize_machoread): Add declaration.
10549 * macrocmd.c (_initialize_macrocmd): Add declaration.
10550 * macroscope.c (_initialize_macroscope): Add declaration.
10551 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10552 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10553 * maint.c (_initialize_maint_cmds): Add declaration.
10554 * mdebugread.c (_initialize_mdebugread): Add declaration.
10555 * memattr.c (_initialize_mem): Add declaration.
10556 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10557 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10558 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10559 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10560 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10561 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10562 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10563 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10564 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10565 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10566 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10567 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10568 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10569 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10570 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10571 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10572 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10573 * mipsread.c (_initialize_mipsread): Add declaration.
10574 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10575 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10576 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10577 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10578 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10579 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10580 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10581 * nto-procfs.c (_initialize_procfs): Add declaration.
10582 * objc-lang.c (_initialize_objc_language): Add declaration.
10583 * observable.c (_initialize_observer): Add declaration.
10584 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10585 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10586 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10587 * osabi.c (_initialize_gdb_osabi): Add declaration.
10588 * osdata.c (_initialize_osdata): Add declaration.
10589 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10590 * parse.c (_initialize_parse): Add declaration.
10591 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10592 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10593 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10594 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10595 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10596 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10597 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10598 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10599 * printcmd.c (_initialize_printcmd): Add declaration.
10600 * probe.c (_initialize_probe): Add declaration.
10601 * proc-api.c (_initialize_proc_api): Add declaration.
10602 * proc-events.c (_initialize_proc_events): Add declaration.
10603 * proc-service.c (_initialize_proc_service): Add declaration.
10604 * procfs.c (_initialize_procfs): Add declaration.
10605 * producer.c (_initialize_producer): Add declaration.
10606 * psymtab.c (_initialize_psymtab): Add declaration.
10607 * python/python.c (_initialize_python): Add declaration.
10608 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10609 * record-btrace.c (_initialize_record_btrace): Add declaration.
10610 * record-full.c (_initialize_record_full): Add declaration.
10611 * record.c (_initialize_record): Add declaration.
10612 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10613 * regcache.c (_initialize_regcache): Add declaration.
10614 * reggroups.c (_initialize_reggroup): Add declaration.
10615 * remote-notif.c (_initialize_notif): Add declaration.
10616 * remote-sim.c (_initialize_remote_sim): Add declaration.
10617 * remote.c (_initialize_remote): Add declaration.
10618 * reverse.c (_initialize_reverse): Add declaration.
10619 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10620 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10621 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10622 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10623 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10624 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10625 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10626 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10627 Add declaration.
10628 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10629 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10630 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10631 * rust-exp.y (_initialize_rust_exp): Add declaration.
10632 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10633 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10634 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10635 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10636 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10637 * score-tdep.c (_initialize_score_tdep): Add declaration.
10638 * ser-go32.c (_initialize_ser_dos): Add declaration.
10639 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10640 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10641 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10642 * ser-uds.c (_initialize_ser_socket): Add declaration.
10643 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10644 * serial.c (_initialize_serial): Add declaration.
10645 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10646 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10647 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10648 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10649 * skip.c (_initialize_step_skip): Add declaration.
10650 * sol-thread.c (_initialize_sol_thread): Add declaration.
10651 * solib-aix.c (_initialize_solib_aix): Add declaration.
10652 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10653 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10654 * solib-frv.c (_initialize_frv_solib): Add declaration.
10655 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10656 * solib-target.c (_initialize_solib_target): Add declaration.
10657 * solib.c (_initialize_solib): Add declaration.
10658 * source-cache.c (_initialize_source_cache): Add declaration.
10659 * source.c (_initialize_source): Add declaration.
10660 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10661 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10662 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10663 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10664 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10665 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10666 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10667 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10668 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10669 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10670 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10671 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10672 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10673 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10674 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10675 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10676 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10677 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10678 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10679 * stabsread.c (_initialize_stabsread): Add declaration.
10680 * stack.c (_initialize_stack): Add declaration.
10681 * stap-probe.c (_initialize_stap_probe): Add declaration.
10682 * std-regs.c (_initialize_frame_reg): Add declaration.
10683 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10684 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10685 * symfile.c (_initialize_symfile): Add declaration.
10686 * symmisc.c (_initialize_symmisc): Add declaration.
10687 * symtab.c (_initialize_symtab): Add declaration.
10688 * target.c (_initialize_target): Add declaration.
10689 * target-connection.c (_initialize_target_connection): Add
10690 declaration.
10691 * target-dcache.c (_initialize_target_dcache): Add declaration.
10692 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10693 * thread.c (_initialize_thread): Add declaration.
10694 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10695 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10696 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10697 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10698 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10699 * tracectf.c (_initialize_ctf): Add declaration.
10700 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10701 * tracefile.c (_initialize_tracefile): Add declaration.
10702 * tracepoint.c (_initialize_tracepoint): Add declaration.
10703 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10704 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10705 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10706 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10707 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10708 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10709 * tui/tui.c (_initialize_tui): Add declaration.
10710 * typeprint.c (_initialize_typeprint): Add declaration.
10711 * ui-style.c (_initialize_ui_style): Add declaration.
10712 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10713 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10714 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10715 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10716 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10717 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10718 * unittests/filtered_iterator-selftests.c
10719 (_initialize_filtered_iterator_selftests): Add declaration.
10720 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10721 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10722 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10723 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10724 * unittests/main-thread-selftests.c
10725 (_initialize_main_thread_selftests): Add declaration.
10726 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10727 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10728 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10729 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10730 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10731 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10732 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10733 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10734 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10735 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10736 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10737 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10738 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10739 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10740 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10741 declaration.
10742 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10743 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10744 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10745 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10746 * user-regs.c (_initialize_user_regs): Add declaration.
10747 * utils.c (_initialize_utils): Add declaration.
10748 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10749 * valops.c (_initialize_valops): Add declaration.
10750 * valprint.c (_initialize_valprint): Add declaration.
10751 * value.c (_initialize_values): Add declaration.
10752 * varobj.c (_initialize_varobj): Add declaration.
10753 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10754 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10755 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10756 * windows-nat.c (_initialize_windows_nat): Add declaration.
10757 (_initialize_check_for_gdb_ini): Add declaration.
10758 (_initialize_loadable): Add declaration.
10759 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10760 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10761 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10762 * xcoffread.c (_initialize_xcoffread): Add declaration.
10763 * xml-support.c (_initialize_xml_support): Add declaration.
10764 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10765 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10766 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10767 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10768
10769 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10770
10771 * regformats/regdat.sh: Generate declaration for init function.
10772
10773 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10774
10775 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10776 up.
10777 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10778 close_one_inferior>: New methods.
10779 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10780 pass down target to find_inferior_pid.
10781 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10782 Pass down target to find_inferior_ptid.
10783 (gdbsim_target::create_inferior): Pass down target to
10784 add_thread_silent.
10785 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10786 target down to find_inferior_ptid and switch_to_thread.
10787 (gdbsim_target::close): Update to call close_one_inferior.
10788 (struct resume_data): Remove.
10789 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10790 directly, rather than through a void pointer.
10791 (gdbsim_target::resume): Update to call resume_one_inferior.
10792
10793 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10794
10795 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10796
10797 2020-01-12 Pedro Alves <palves@redhat.com>
10798
10799 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10800 directly for the current inferior instead of
10801 discard_all_inferiors.
10802 (discard_all_inferiors): Delete.
10803
10804 2020-01-11 Tom Tromey <tom@tromey.com>
10805
10806 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10807 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10808 deprecated_safe_get_selected_frame.
10809
10810 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10811
10812 * inferior.c (print_inferior): Switch inferior before printing it.
10813
10814 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10815 Pedro Alves <palves@redhat.com>
10816
10817 * progspace-and-thread.c (switch_to_program_space_and_thread):
10818 Assert there's an inferior for PSPACE. Use
10819 switch_to_inferior_no_thread to switch the inferior too.
10820 * progspace.c (program_space::~program_space): Call
10821 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10822 (program_space::free_all_objfiles): Don't call clear_symtab_users
10823 here.
10824 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10825
10826 2020-01-10 Pedro Alves <palves@redhat.com>
10827
10828 * NEWS: Mention multi-target debugging, "info connections", and
10829 "add-inferior -no-connection".
10830
10831 2020-01-10 Pedro Alves <palves@redhat.com>
10832
10833 * infrun.c: Include "target-connection.h".
10834 (check_multi_target_resumption): New.
10835 (proceed): Call it.
10836 * target-connection.c (make_target_connection_string): Make
10837 extern.
10838 * target-connection.h (make_target_connection_string): Declare.
10839
10840 2020-01-10 Pedro Alves <palves@redhat.com>
10841
10842 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10843 * inferior.c (uiout_field_connection): New function.
10844 (print_inferior): Add new "connection-id" column.
10845 (add_inferior_command): Show connection number/string of added
10846 inferior.
10847 * process-stratum-target.h
10848 (process_stratum_target::connection_string): New virtual method.
10849 (process_stratum_target::connection_number): New field.
10850 * remote.c (remote_target::connection_string): New override.
10851 * target-connection.c: New file.
10852 * target-connection.h: New file.
10853 * target.c (decref_target): Remove process_stratum targets from
10854 the connection list.
10855 (target_stack::push): Add process_stratum targets to the
10856 connection list.
10857
10858 2020-01-10 Pedro Alves <palves@redhat.com>
10859
10860 Revert:
10861 2016-04-12 Pedro Alves <palves@redhat.com>
10862 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10863 Remove references to name.
10864 * serial.h (struct serial) <name>: Delete.
10865
10866 2020-01-10 Pedro Alves <palves@redhat.com>
10867
10868 * gdbarch-selftests.c (register_to_value_test): Remove "target
10869 already pushed" check.
10870
10871 2020-01-10 Pedro Alves <palves@redhat.com>
10872 John Baldwin <jhb@FreeBSD.org>
10873
10874 * aarch64-linux-nat.c
10875 (aarch64_linux_nat_target::thread_architecture): Adjust.
10876 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10877 (task_command_1): Likewise.
10878 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10879 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10880 (aix_thread_target::store_registers)
10881 (aix_thread_target::thread_alive): Adjust.
10882 * amd64-fbsd-tdep.c: Include "inferior.h".
10883 (amd64fbsd_get_thread_local_address): Pass down target.
10884 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10885 thread's gdbarch instead of target_gdbarch.
10886 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10887 get_last_target_status.
10888 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10889 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10890 inferiors.
10891 (update_inserted_breakpoint_locations): Skip if inferiors with no
10892 execution.
10893 (update_global_location_list): When handling moribund locations,
10894 find representative inferior for location's pspace, and use thread
10895 count of its process_stratum target.
10896 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10897 * bsd-uthread.c (bsd_uthread_target::wait): Use
10898 as_process_stratum_target and adjust thread_change_ptid and
10899 add_thread calls.
10900 (bsd_uthread_target::update_thread_list): Use
10901 as_process_stratum_target and adjust find_thread_ptid,
10902 thread_change_ptid and add_thread calls.
10903 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10904 find_thread_ptid call.
10905 * corelow.c (add_to_thread_list): Adjust add_thread call.
10906 (core_target_open): Adjust add_thread_silent and thread_count
10907 calls.
10908 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10909 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10910 * event-top.c (async_disconnect): Pop targets from all inferiors.
10911 * exec.c (add_target_sections): Push exec target on all inferiors
10912 sharing the program space.
10913 (remove_target_sections): Remove the exec target from all
10914 inferiors sharing the program space.
10915 (exec_on_vfork): New.
10916 * exec.h (exec_on_vfork): Declare.
10917 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10918 Pass it down.
10919 (fbsd_nat_target::update_thread_list): Adjust.
10920 (fbsd_nat_target::resume): Adjust.
10921 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10922 down.
10923 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10924 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10925 get_thread_arch_regcache call.
10926 * fork-child.c (gdb_startup_inferior): Pass target down to
10927 startup_inferior and set_executing.
10928 * gdbthread.h (struct process_stratum_target): Forward declare.
10929 (add_thread, add_thread_silent, add_thread_with_info)
10930 (in_thread_list): Add process_stratum_target parameter.
10931 (find_thread_ptid(inferior*, ptid_t)): New overload.
10932 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10933 parameter.
10934 (all_threads()): Delete overload.
10935 (all_threads, all_non_exited_threads): Add process_stratum_target
10936 parameter.
10937 (all_threads_safe): Use brace initialization.
10938 (thread_count): Add process_stratum_target parameter.
10939 (set_resumed, set_running, set_stop_requested, set_executing)
10940 (threads_are_executing, finish_thread_state): Add
10941 process_stratum_target parameter.
10942 (switch_to_thread): Use is_current_thread.
10943 * i386-fbsd-tdep.c: Include "inferior.h".
10944 (i386fbsd_get_thread_local_address): Pass down target.
10945 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10946 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10947 have_inferiors check.
10948 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10949 (inf_ptrace_target::attach): Adjust.
10950 * infcall.c (run_inferior_call): Adjust.
10951 * infcmd.c (run_command_1): Pass target to
10952 scoped_finish_thread_state.
10953 (proceed_thread_callback): Skip inferiors with no execution.
10954 (continue_command): Rename 'all_threads' local to avoid hiding
10955 'all_threads' function. Adjust get_last_target_status call.
10956 (prepare_one_step): Adjust set_running call.
10957 (signal_command): Use user_visible_resume_target. Compare thread
10958 pointers instead of inferior_ptid.
10959 (info_program_command): Adjust to pass down target.
10960 (attach_command): Mark target's 'thread_executing' flag.
10961 (stop_current_target_threads_ns): New, factored out from ...
10962 (interrupt_target_1): ... this. Switch inferior before making
10963 target calls.
10964 * inferior-iter.h
10965 (struct all_inferiors_iterator, struct all_inferiors_range)
10966 (struct all_inferiors_safe_range)
10967 (struct all_non_exited_inferiors_range): Filter on
10968 process_stratum_target too. Remove explicit.
10969 * inferior.c (inferior::inferior): Push dummy target on target
10970 stack.
10971 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10972 Add process_stratum_target parameter, and pass it down.
10973 (have_live_inferiors): Adjust.
10974 (switch_to_inferior_and_push_target): New.
10975 (add_inferior_command, clone_inferior_command): Handle
10976 "-no-connection" parameter. Use
10977 switch_to_inferior_and_push_target.
10978 (_initialize_inferior): Mention "-no-connection" option in
10979 the help of "add-inferior" and "clone-inferior" commands.
10980 * inferior.h: Include "process-stratum-target.h".
10981 (interrupt_target_1): Use bool.
10982 (struct inferior) <push_target, unpush_target, target_is_pushed,
10983 find_target_beneath, top_target, process_target, target_at,
10984 m_stack>: New.
10985 (discard_all_inferiors): Delete.
10986 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10987 (all_inferiors, all_non_exited_inferiors): Add
10988 process_stratum_target parameter.
10989 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10990 (target_last_proc_target): New global.
10991 (follow_fork_inferior): Push target on new inferior. Pass target
10992 to add_thread_silent. Call exec_on_vfork. Handle target's
10993 reference count.
10994 (follow_fork): Adjust get_last_target_status call. Also consider
10995 target.
10996 (follow_exec): Push target on new inferior.
10997 (struct execution_control_state) <target>: New field.
10998 (user_visible_resume_target): New.
10999 (do_target_resume): Call target_async.
11000 (resume_1): Set target's threads_executing flag. Consider resume
11001 target.
11002 (commit_resume_all_targets): New.
11003 (proceed): Also consider resume target. Skip threads of inferiors
11004 with no execution. Commit resumtion in all targets.
11005 (start_remote): Pass current inferior to wait_for_inferior.
11006 (infrun_thread_stop_requested): Consider target as well. Pass
11007 thread_info pointer to clear_inline_frame_state instead of ptid.
11008 (infrun_thread_thread_exit): Consider target as well.
11009 (random_pending_event_thread): New inferior parameter. Use it.
11010 (do_target_wait): Rename to ...
11011 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11012 down.
11013 (threads_are_resumed_pending_p, do_target_wait): New.
11014 (prepare_for_detach): Adjust calls.
11015 (wait_for_inferior): New inferior parameter. Handle it. Use
11016 do_target_wait_1 instead of do_target_wait.
11017 (fetch_inferior_event): Adjust. Switch to representative
11018 inferior. Pass target down.
11019 (set_last_target_status): Add process_stratum_target parameter.
11020 Save target in global.
11021 (get_last_target_status): Add process_stratum_target parameter and
11022 handle it.
11023 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11024 (context_switch): Check inferior_ptid == null_ptid before calling
11025 inferior_thread().
11026 (get_inferior_stop_soon): Pass down target.
11027 (wait_one): Rename to ...
11028 (poll_one_curr_target): ... this.
11029 (struct wait_one_event): New.
11030 (wait_one): New.
11031 (stop_all_threads): Adjust.
11032 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11033 event's target.
11034 (switch_back_to_stepped_thread): Also consider target.
11035 (print_stop_event): Update.
11036 (normal_stop): Update. Also consider the resume target.
11037 * infrun.h (wait_for_inferior): Remove declaration.
11038 (user_visible_resume_target): New declaration.
11039 (get_last_target_status, set_last_target_status): New
11040 process_stratum_target parameter.
11041 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11042 process_stratum_target parameter, and use it.
11043 (clear_inline_frame_state (thread_info*)): New.
11044 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11045 process_stratum_target parameter.
11046 (clear_inline_frame_state (thread_info*)): Declare.
11047 * linux-fork.c (delete_checkpoint_command): Pass target down to
11048 find_thread_ptid.
11049 (checkpoint_command): Adjust.
11050 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11051 instead of just tweaking inferior_ptid.
11052 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11053 (exit_lwp): Pass target down to find_thread_ptid.
11054 (attach_proc_task_lwp_callback): Pass target down to
11055 add_thread/set_running/set_executing.
11056 (linux_nat_target::attach): Pass target down to
11057 thread_change_ptid.
11058 (get_detach_signal): Pass target down to find_thread_ptid.
11059 Consider last target status's target.
11060 (linux_resume_one_lwp_throw, resume_lwp)
11061 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11062 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11063 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11064 (linux_nat_target::async_wait_fd): New.
11065 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11066 target down.
11067 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11068 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11069 * linux-thread-db.c (struct thread_db_info::process_target): New
11070 field.
11071 (add_thread_db_info): Save target.
11072 (get_thread_db_info): New process_stratum_target parameter. Also
11073 match target.
11074 (delete_thread_db_info): New process_stratum_target parameter.
11075 Also match target.
11076 (thread_from_lwp): Adjust to pass down target.
11077 (thread_db_notice_clone): Pass down target.
11078 (check_thread_db_callback): Pass down target.
11079 (try_thread_db_load_1): Always push the thread_db target.
11080 (try_thread_db_load, record_thread): Pass target down.
11081 (thread_db_target::detach): Pass target down. Always unpush the
11082 thread_db target.
11083 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11084 target down. Always unpush the thread_db target.
11085 (find_new_threads_callback, thread_db_find_new_threads_2)
11086 (thread_db_target::update_thread_list): Pass target down.
11087 (thread_db_target::pid_to_str): Pass current inferior down.
11088 (thread_db_target::get_thread_local_address): Pass target down.
11089 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11090 target down.
11091 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11092 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11093 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11094 (procfs_init_inferior): Rename to ...
11095 (procfs_target::procfs_init_inferior): ... this and adjust.
11096 (procfs_target::create_inferior, procfs_notice_thread)
11097 (procfs_do_thread_registers): Adjust.
11098 * ppc-fbsd-tdep.c: Include "inferior.h".
11099 (ppcfbsd_get_thread_local_address): Pass down target.
11100 * proc-service.c (ps_xfer_memory): Switch current inferior and
11101 program space as well.
11102 (get_ps_regcache): Pass target down.
11103 * process-stratum-target.c
11104 (process_stratum_target::thread_address_space)
11105 (process_stratum_target::thread_architecture): Pass target down.
11106 * process-stratum-target.h
11107 (process_stratum_target::threads_executing): New field.
11108 (as_process_stratum_target): New.
11109 * ravenscar-thread.c
11110 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11111 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11112 down.
11113 * record-btrace.c (record_btrace_target::info_record): Adjust.
11114 (record_btrace_target::record_method)
11115 (record_btrace_target::record_is_replaying)
11116 (record_btrace_target::fetch_registers)
11117 (get_thread_current_frame_id, record_btrace_target::resume)
11118 (record_btrace_target::wait, record_btrace_target::stop): Pass
11119 target down.
11120 * record-full.c (record_full_wait_1): Switch to event thread.
11121 Pass target down.
11122 * regcache.c (regcache::regcache)
11123 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11124 process_stratum_target parameter and handle it.
11125 (current_thread_target): New global.
11126 (get_thread_regcache): Add process_stratum_target parameter and
11127 handle it. Switch inferior before calling target method.
11128 (get_thread_regcache): Pass target down.
11129 (get_thread_regcache_for_ptid): Pass target down.
11130 (registers_changed_ptid): Add process_stratum_target parameter and
11131 handle it.
11132 (registers_changed_thread, registers_changed): Pass target down.
11133 (test_get_thread_arch_aspace_regcache): New.
11134 (current_regcache_test): Define a couple local test_target_ops
11135 instances and use them for testing.
11136 (readwrite_regcache): Pass process_stratum_target parameter.
11137 (cooked_read_test, cooked_write_test): Pass mock_target down.
11138 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11139 (get_thread_arch_aspace_regcache): Add process_stratum_target
11140 parameter.
11141 (regcache::target): New method.
11142 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11143 (regcache::registers_changed_ptid): Add process_stratum_target
11144 parameter.
11145 (regcache::m_target): New field.
11146 (registers_changed_ptid): Add process_stratum_target parameter.
11147 * remote.c (remote_state::supports_vCont_probed): New field.
11148 (remote_target::async_wait_fd): New method.
11149 (remote_unpush_and_throw): Add remote_target parameter.
11150 (get_current_remote_target): Adjust.
11151 (remote_target::remote_add_inferior): Push target.
11152 (remote_target::remote_add_thread)
11153 (remote_target::remote_notice_new_inferior)
11154 (get_remote_thread_info): Pass target down.
11155 (remote_target::update_thread_list): Skip threads of inferiors
11156 bound to other targets. (remote_target::close): Don't discard
11157 inferiors. (remote_target::add_current_inferior_and_thread)
11158 (remote_target::process_initial_stop_replies)
11159 (remote_target::start_remote)
11160 (remote_target::remote_serial_quit_handler): Pass down target.
11161 (remote_target::remote_unpush_target): New remote_target
11162 parameter. Unpush the target from all inferiors.
11163 (remote_target::remote_unpush_and_throw): New remote_target
11164 parameter. Pass it down.
11165 (remote_target::open_1): Check whether the current inferior has
11166 execution instead of checking whether any inferior is live. Pass
11167 target down.
11168 (remote_target::remote_detach_1): Pass down target. Use
11169 remote_unpush_target.
11170 (extended_remote_target::attach): Pass down target.
11171 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11172 (remote_target::append_resumption): Pass down target.
11173 (remote_target::append_pending_thread_resumptions)
11174 (remote_target::remote_resume_with_hc, remote_target::resume)
11175 (remote_target::commit_resume): Pass down target.
11176 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11177 (remote_target::interrupt_query)
11178 (remote_target::remove_new_fork_children)
11179 (remote_target::check_pending_events_prevent_wildcard_vcont)
11180 (remote_target::remote_parse_stop_reply)
11181 (remote_target::process_stop_reply): Pass down target.
11182 (first_remote_resumed_thread): New remote_target parameter. Pass
11183 it down.
11184 (remote_target::wait_as): Pass down target.
11185 (unpush_and_perror): New remote_target parameter. Pass it down.
11186 (remote_target::readchar, remote_target::remote_serial_write)
11187 (remote_target::getpkt_or_notif_sane_1)
11188 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11189 down target.
11190 (remote_target::mourn_inferior): Pass down target. Use
11191 remote_unpush_target.
11192 (remote_target::core_of_thread)
11193 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11194 (remote_target::pid_to_exec_file)
11195 (remote_target::thread_handle_to_thread_info): Pass down target.
11196 (remote_target::async_wait_fd): New.
11197 * riscv-fbsd-tdep.c: Include "inferior.h".
11198 (riscv_fbsd_get_thread_local_address): Pass down target.
11199 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11200 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11201 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11202 Adjust.
11203 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11204 * solib-svr4.c (enable_break): Pass down target.
11205 * spu-multiarch.c (parse_spufs_run): Pass down target.
11206 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11207 * target-delegates.c: Regenerate.
11208 * target.c (g_target_stack): Delete.
11209 (current_top_target): Return the current inferior's top target.
11210 (target_has_execution_1): Refer to the passed-in inferior's top
11211 target.
11212 (target_supports_terminal_ours): Check whether the initial
11213 inferior was already created.
11214 (decref_target): New.
11215 (target_stack::push): Incref/decref the target.
11216 (push_target, push_target, unpush_target): Adjust.
11217 (target_stack::unpush): Defref target.
11218 (target_is_pushed): Return bool. Adjust to refer to the current
11219 inferior's target stack.
11220 (dispose_inferior): Delete, and inline parts ...
11221 (target_preopen): ... here. Only dispose of the current inferior.
11222 (target_detach): Hold strong target reference while detaching.
11223 Pass target down.
11224 (target_thread_name): Add assertion.
11225 (target_resume): Pass down target.
11226 (target_ops::beneath, find_target_at): Adjust to refer to the
11227 current inferior's target stack.
11228 (get_dummy_target): New.
11229 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11230 has a thread running.
11231 (initialize_targets): Rename to ...
11232 (_initialize_target): ... this.
11233 * target.h: Include "gdbsupport/refcounted-object.h".
11234 (struct target_ops): Inherit refcounted_object.
11235 (target_ops::shortname, target_ops::longname): Make const.
11236 (target_ops::async_wait_fd): New method.
11237 (decref_target): Declare.
11238 (struct target_ops_ref_policy): New.
11239 (target_ops_ref): New typedef.
11240 (get_dummy_target): Declare function.
11241 (target_is_pushed): Return bool.
11242 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11243 (all_matching_threads_iterator::all_matching_threads_iterator):
11244 Handle filter target.
11245 * thread-iter.h (struct all_matching_threads_iterator, struct
11246 all_matching_threads_range, class all_non_exited_threads_range):
11247 Filter by target too. Remove explicit.
11248 * thread.c (threads_executing): Delete.
11249 (inferior_thread): Pass down current inferior.
11250 (clear_thread_inferior_resources): Pass down thread pointer
11251 instead of ptid_t.
11252 (add_thread_silent, add_thread_with_info, add_thread): Add
11253 process_stratum_target parameter. Use it for thread and inferior
11254 searches.
11255 (is_current_thread): New.
11256 (thread_info::deletable): Use it.
11257 (find_thread_ptid, thread_count, in_thread_list)
11258 (thread_change_ptid, set_resumed, set_running): New
11259 process_stratum_target parameter. Pass it down.
11260 (set_executing): New process_stratum_target parameter. Pass it
11261 down. Adjust reference to 'threads_executing'.
11262 (threads_are_executing): New process_stratum_target parameter.
11263 Adjust reference to 'threads_executing'.
11264 (set_stop_requested, finish_thread_state): New
11265 process_stratum_target parameter. Pass it down.
11266 (switch_to_thread): Also match inferior.
11267 (switch_to_thread): New process_stratum_target parameter. Pass it
11268 down.
11269 (update_threads_executing): Reimplement.
11270 * top.c (quit_force): Pop targets from all inferior.
11271 (gdb_init): Don't call initialize_targets.
11272 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11273 Declare.
11274 (windows_add_thread, windows_delete_thread): Adjust.
11275 (get_windows_debug_event): Rename to ...
11276 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11277 * tracefile-tfile.c (tfile_target_open): Pass down target.
11278 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11279 Forward declare.
11280 (switch_to_thread): Add process_stratum_target parameter.
11281 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11282 parameter. Use it.
11283 (mi_on_resume): Pass target down.
11284 * nat/fork-inferior.c (startup_inferior): Add
11285 process_stratum_target parameter. Pass it down.
11286 * nat/fork-inferior.h (startup_inferior): Add
11287 process_stratum_target parameter.
11288 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11289
11290 2020-01-10 Pedro Alves <palves@redhat.com>
11291
11292 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11293 directly. Instead find the first thread in the thread list and
11294 use switch_to_thread.
11295
11296 2020-01-10 Pedro Alves <palves@redhat.com>
11297
11298 * remote.c (remote_target::remote_add_inferior): Don't bind a
11299 process to the current inferior if the current inferior is already
11300 bound to a process.
11301
11302 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11303 Pedro Alves <palves@redhat.com>
11304
11305 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11306 If no process is specified, return null_ptid instead of
11307 inferior_ptid.
11308 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11309 TARGET_WAITKIND_SIGNALLED with no pid.
11310
11311 2020-01-10 Pedro Alves <palves@redhat.com>
11312
11313 * remote.c (first_remote_resumed_thread): New.
11314 (remote_target::wait_as): Use it as default event_ptid instead of
11315 inferior_ptid.
11316
11317 2020-01-10 Pedro Alves <palves@redhat.com>
11318
11319 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11320
11321 2020-01-10 Pedro Alves <palves@redhat.com>
11322
11323 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11324 not -1.
11325
11326 2020-01-10 Pedro Alves <palves@redhat.com>
11327
11328 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11329 ptid to get_last_target_status.
11330 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11331 ptid to get_last_target_status.
11332 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11333 get_last_target_status.
11334 (info_program_command): Don't pass a target_waitstatus to
11335 get_last_target_status.
11336 * infrun.c (init_wait_for_inferior): Use
11337 nullify_last_target_wait_ptid.
11338 (get_last_target_status): Handle nullptr arguments.
11339 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11340 (print_stop_event): Don't pass a ptid to get_last_target_status.
11341 (normal_stop): Don't pass a ptid to get_last_target_status.
11342 * infrun.h (get_last_target_status, set_last_target_status): Move
11343 comments here and update.
11344 (nullify_last_target_wait_ptid): Declare.
11345 * linux-fork.c (fork_load_infrun_state): Remove local extern
11346 declaration of nullify_last_target_wait_ptid.
11347 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11348 to get_last_target_status.
11349
11350 2020-01-10 Pedro Alves <palves@redhat.com>
11351
11352 * gdbthread.h (scoped_restore_current_thread)
11353 <dont_restore, restore, m_dont_restore>: Declare.
11354 * thread.c (thread_alive): Add assertion. Return bool.
11355 (switch_to_thread_if_alive): New.
11356 (prune_threads): Switch inferior/thread.
11357 (print_thread_info_1): Switch thread before calling target methods.
11358 (scoped_restore_current_thread::restore): New, factored out from
11359 ...
11360 (scoped_restore_current_thread::~scoped_restore_current_thread):
11361 ... this.
11362 (scoped_restore_current_thread::scoped_restore_current_thread):
11363 Add assertion.
11364 (thread_apply_all_command, thread_select): Use
11365 switch_to_thread_if_alive.
11366 * infrun.c (proceed, restart_threads, handle_signal_stop)
11367 (switch_back_to_stepped_thread): Switch current thread before
11368 calling target methods.
11369
11370 2020-01-10 Pedro Alves <palves@redhat.com>
11371
11372 * inferior.c (switch_to_inferior_no_thread): New function,
11373 factored out from ...
11374 (inferior_command): ... here.
11375 * inferior.h (switch_to_inferior_no_thread): Declare.
11376 * mi/mi-main.c (run_one_inferior): Use
11377 switch_to_inferior_no_thread.
11378
11379 2020-01-10 Pedro Alves <palves@redhat.com>
11380
11381 * infcmd.c (kill_command): Remove dead code.
11382
11383 2020-01-10 Pedro Alves <palves@redhat.com>
11384
11385 * remote.c (remote_target::mourn_inferior): No longer check
11386 whether the target is running.
11387
11388 2020-01-10 Pedro Alves <palves@redhat.com>
11389
11390 * corelow.c (core_target::has_execution): Change parameter type to
11391 inferior pointer.
11392 * inferior.c (number_of_live_inferiors): Use
11393 inferior::has_execution instead of target_has_execution_1.
11394 * inferior.h (inferior::has_execution): New.
11395 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11396 inferior::has_execution instead of target_has_execution_1.
11397 * process-stratum-target.c
11398 (process_stratum_target::has_execution): Change parameter type to
11399 inferior pointer. Check the inferior's PID instead of
11400 inferior_ptid.
11401 * process-stratum-target.h
11402 (process_stratum_target::has_execution): Change parameter type to
11403 inferior pointer.
11404 * record-full.c (record_full_core_target::has_execution): Change
11405 parameter type to inferior pointer.
11406 * target.c (target_has_execution_1): Change parameter type to
11407 inferior pointer.
11408 (target_has_execution_current): Adjust.
11409 * target.h (target_ops::has_execution): Change parameter type to
11410 inferior pointer.
11411 (target_has_execution_1): Change parameter type to inferior
11412 pointer. Change return type to bool.
11413 * tracefile.h (tracefile_target::has_execution): Change parameter
11414 type to inferior pointer.
11415
11416 2020-01-10 Pedro Alves <palves@redhat.com>
11417
11418 * exceptions.c (print_flush): Remove current_top_target() check.
11419
11420 2020-01-10 Pedro Alves <palves@redhat.com>
11421
11422 * remote.c (show_remote_exec_file): Show the current inferior's
11423 exec-file instead of the command variable's value.
11424
11425 2020-01-10 Pedro Alves <palves@redhat.com>
11426
11427 * record-full.c (record_full_resume_ptid): New global.
11428 (record_full_target::resume): Set it.
11429 (record_full_wait_1): Use record_full_resume_ptid instead of
11430 inferior_ptid.
11431
11432 2020-01-10 Pedro Alves <palves@redhat.com>
11433
11434 * gdbthread.h (scoped_restore_current_thread)
11435 <dont_restore, restore, m_dont_restore>: Declare.
11436 * thread.c (thread_alive): Add assertion. Return bool.
11437 (switch_to_thread_if_alive): New.
11438 (prune_threads): Switch inferior/thread.
11439 (print_thread_info_1): Switch thread before calling target methods.
11440 (scoped_restore_current_thread::restore): New, factored out from
11441 ...
11442 (scoped_restore_current_thread::~scoped_restore_current_thread):
11443 ... this.
11444 (scoped_restore_current_thread::scoped_restore_current_thread):
11445 Add assertion.
11446 (thread_apply_all_command, thread_select): Use
11447 switch_to_thread_if_alive.
11448
11449 2020-01-10 George Barrett <bob@bob131.so>
11450
11451 * stap-probe.c (stap_modify_semaphore): Don't check for null
11452 semaphores.
11453 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11454 for null semaphores.
11455
11456 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11457
11458 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11459 all source windows, and maintain horizontal scroll status while
11460 doing so.
11461
11462 2020-01-09 Tom Tromey <tom@tromey.com>
11463
11464 PR tui/18932:
11465 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11466 update_source_window, not print_source_lines.
11467
11468 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11469
11470 * tui/tui.c (tui_enable): Register tui hooks after calling
11471 tui_display_main.
11472
11473 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11474
11475 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11476
11477 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11478
11479 * thread.c (print_thread_info_1): Fix indentation.
11480
11481 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11482
11483 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11484 unique_xmalloc_ptr outside the if to always free the demangled name.
11485
11486 2020-01-08 Tom Tromey <tromey@adacore.com>
11487
11488 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11489 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11490 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11491 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11492 Remove.
11493 (section_offsets): New typedef.
11494 * symtab.c (fixup_section, get_msymbol_address): Update.
11495 * symmisc.c (dump_msymbols): Update.
11496 * symfile.h (relative_addr_info_to_section_offsets)
11497 (symfile_map_offsets_to_segments): Update.
11498 * symfile.c (build_section_addr_info_from_objfile)
11499 (init_objfile_sect_indices): Update.
11500 (struct place_section_arg): Change type of "offsets".
11501 (place_section): Update.
11502 (relative_addr_info_to_section_offsets): Change type of
11503 "section_offsets". Remove "num_sections" parameter.
11504 (default_symfile_offsets, syms_from_objfile_1)
11505 (set_objfile_default_section_offset): Update.
11506 (reread_symbols): No need to preserve section offsets by hand.
11507 (symfile_map_offsets_to_segments): Change type of "offsets".
11508 * stap-probe.c (relocate_address): Update.
11509 * stabsread.h (process_one_symbol): Update.
11510 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11511 (solib_target_relocate_section_addresses): Update.
11512 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11513 Update.
11514 * solib-frv.c (frv_relocate_main_executable): Update.
11515 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11516 * solib-aix.c (solib_aix_get_section_offsets): Change return
11517 type.
11518 (solib_aix_solib_create_inferior_hook): Update.
11519 * remote.c (remote_target::get_offsets): Update.
11520 * psymtab.c (find_pc_sect_psymtab): Update.
11521 * psympriv.h (struct partial_symbol) <address, text_low,
11522 text_high>: Update.
11523 * objfiles.h (obj_section_offset): Update.
11524 (struct objfile) <section_offsets>: Change type.
11525 <num_sections>: Remove.
11526 (objfile_relocate): Update.
11527 * objfiles.c (entry_point_address_query): Update
11528 (relocate_one_symbol): Change type of "section_offsets".
11529 (objfile_relocate1, objfile_relocate1): Change type of
11530 "new_offsets".
11531 (objfile_rebase1): Update.
11532 * mipsread.c (mipscoff_symfile_read): Update.
11533 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11534 parameter.
11535 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11536 (parse_external, psymtab_to_symtab_1): Update.
11537 * machoread.c (macho_symfile_offsets): Update.
11538 * ia64-tdep.c (ia64_find_unwind_table): Update.
11539 * hppa-tdep.c (read_unwind_info): Update.
11540 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11541 * dwarf2read.c (create_addrmap_from_index)
11542 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11543 (process_psymtab_comp_unit_reader, add_partial_symbol)
11544 (add_partial_subprogram, process_full_comp_unit)
11545 (read_file_scope, read_func_scope, read_lexical_block_scope)
11546 (read_call_site_scope, dwarf2_rnglists_process)
11547 (dwarf2_ranges_process, dwarf2_ranges_read)
11548 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11549 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11550 Update.
11551 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11552 Update.
11553 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11554 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11555 (process_one_symbol): Change type of "section_offsets".
11556 * ctfread.c (get_objfile_text_range): Update.
11557 * coffread.c (coff_symtab_read, enter_linenos)
11558 (process_coff_symbol): Update.
11559 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11560 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11561
11562 2020-01-08 Tom Tromey <tromey@adacore.com>
11563
11564 * dwarf2read.c (parse_macro_definition): Use std::string.
11565 (parse_macro_definition): Likewise.
11566
11567 2020-01-08 Tom Tromey <tromey@adacore.com>
11568
11569 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11570 (ATTR_ALLOC_CHUNK): Remove.
11571
11572 2020-01-08 Tom Tromey <tromey@adacore.com>
11573
11574 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11575
11576 2020-01-08 Tom Tromey <tromey@adacore.com>
11577
11578 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11579 (dwarf2_compute_name, open_dwo_file): Likewise.
11580 (process_enumeration_scope): Use std::vector.
11581 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11582 (partial_die_info::fixup, dwarf2_start_subfile)
11583 (guess_full_die_structure_name, dwarf2_name): Likewise.
11584 (determine_prefix): Update.
11585 (guess_full_die_structure_name): Make return type const.
11586 (partial_die_full_name): Return unique_xmalloc_ptr.
11587 (DW_FIELD_ALLOC_CHUNK): Remove.
11588
11589 2020-01-07 Tom Tromey <tromey@adacore.com>
11590
11591 PR build/24937:
11592 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11593
11594 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11595
11596 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11597
11598 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11599
11600 * stack.c (print_frame_info): Move disassemble_next_line code
11601 inside source_print block.
11602
11603 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11604
11605 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11606 gdb/signals.h, as we are now using native signal symbols.
11607
11608 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11609
11610 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11611 overflow by an early check of content vs threshold.
11612 * tui/tui-source.c (tui_source_window::line_is_displayed):
11613 Likewise.
11614
11615 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11616
11617 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11618
11619 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11620
11621 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11622 export table if no section contains it's RVA.
11623
11624 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11625
11626 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11627
11628 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11629
11630 * source.c (print_source_lines_base): Set last_line_listed.
11631
11632 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11633
11634 * tui/tui-disasm.c: Remove trailing spaces.
11635
11636 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11637 Pedro Alves <palves@redhat.com>
11638
11639 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11640 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11641 (windows_gdb_signal_to_target): New function, uses the above
11642 enumeration to convert GDB internal signal codes to equivalent
11643 Windows codes.
11644 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11645 * windows-nat.c: Include "gdb_wait.h".
11646 (get_windows_debug_event): Extract the fatal exception from the
11647 exit status and convert to the equivalent Posix signal number.
11648 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11649 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11650 * gdbsupport/gdb_wait.c: New file, implements
11651 windows_status_to_termsig.
11652 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11653 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11654
11655 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11656
11657 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11658 show_layout.
11659
11660 2020-01-05 Luis Machado <luis.machado@linaro.org>
11661
11662 * aarch64-linux-nat.c
11663 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11664 and bfd_mach_aarch64.
11665
11666 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11667
11668 * ui-file.c (stdio_file::can_emit_style_escape)
11669 (tee_file::can_emit_style_escape): Ensure style is used also on
11670 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11671 to gdb_stdout.
11672 * main.c (set_gdb_data_directory): Use file style to output the
11673 warning that the given pathname is not a directory.
11674 * top.c (show_history_filename, gdb_safe_append_history)
11675 (show_gdb_datadir): Use file style.
11676
11677 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11678
11679 * solib-target.c (struct lm_info_target):
11680 Change offsets to be a unique_xmalloc_ptr.
11681 (solib_target_relocate_section_addresses): Update.
11682
11683 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11684
11685 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11686
11687 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11688
11689 * MAINTAINERS (Write After Approval): Add myself.
11690
11691 2020-01-02 Luis Machado <luis.machado@linaro.org>
11692
11693 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11694 Cell BE architecture.
11695 * target.h (struct target_ops) <thread_architecture>: Likewise.
11696
11697 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11698
11699 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11700
11701 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11702
11703 * MAINTAINERS (Write After Approval): Add myself.
11704
11705 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11706
11707 * gdbarch.sh: Update copyright year range of generated files.
11708
11709 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11710
11711 Update copyright year range in all GDB files.
11712
11713 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11714
11715 * copyright.py: Convert to Python 3.
11716
11717 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11718
11719 * copyright.py: Adapt after move of gnulib directory from gdb
11720 directory to toplevel directory.
11721
11722 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11723
11724 * copyright.py (main): Exit if run from the wrong directory.
11725
11726 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11727
11728 * top.c (print_gdb_version): Change copyright year to 2020.
11729
11730 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11731
11732 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11733
11734 For older changes see ChangeLog-2019.
11735 \f
11736 Local Variables:
11737 mode: change-log
11738 left-margin: 8
11739 fill-column: 74
11740 version-control: never
11741 coding: utf-8
11742 End: