]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Unify Solaris procfs and largefile handling
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2
3 * proc-api.c (_STRUCTURED_PROC): Don't define.
4 * proc-events.c: Likewise.
5 * proc-flags.c: Likewise.
6 * proc-why.c: Likewise.
7 * procfs.c: Likewise.
8
9 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
10 * configure, config.in: Regenerate.
11
12 2020-07-30 Tom de Vries <tdevries@suse.de>
13
14 PR build/26320
15 * ui-style.h (struct ui_file_style::color): Wrap m_value and
16 m_red/m_green/m_blue in a union.
17
18 2020-07-29 Tom de Vries <tdevries@suse.de>
19
20 PR tdep/26280
21 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
22
23 2020-07-28 Tom Tromey <tromey@adacore.com>
24
25 PR symtab/26270:
26 * symtab.h (find_pc_partial_function_sym): Declare.
27 * cli/cli-cmds.c (disassemble_command): Use
28 find_pc_partial_function_sym. Check asm_demangle.
29 * blockframe.c (cache_pc_function_sym): New global.
30 (cache_pc_function_name): Remove.
31 (clear_pc_function_cache): Update.
32 (find_pc_partial_function_sym): New function, from
33 find_pc_partial_function.
34 (find_pc_partial_function): Rewrite using
35 find_pc_partial_function_sym.
36
37 2020-07-28 Tom Tromey <tromey@adacore.com>
38
39 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
40 help. Add usage.
41
42 2020-07-28 Tom Tromey <tromey@adacore.com>
43
44 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
45 <DW_OP_GNU_variable_value>: Cast to address type.
46
47 2020-07-28 Kamil Rytarowski <n54@gmx.com>
48
49 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
50 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
51 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
52 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
53 (nbsd_get_siginfo_type): New.
54 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
55 (_initialize_nbsd_tdep): New.
56
57 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
58
59 PR binutils/26301
60 * configure: Regenerated.
61
62 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
63
64 PR binutils/26301
65 * configure: Regenerated.
66
67 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
68
69 * python/py-frame.c: Remove 'user-regs.h' include.
70 (frapy_read_register): Rewrite to make use of
71 gdbpy_parse_register_id.
72 * python/py-registers.c (gdbpy_parse_register_id): New function,
73 moved here from python/py-unwind.c. Updated the return type, and
74 also accepts register descriptor objects.
75 * python/py-unwind.c: Remove 'user-regs.h' include.
76 (pyuw_parse_register_id): Moved to python/py-registers.c.
77 (unwind_infopy_add_saved_register): Update to use
78 gdbpy_parse_register_id.
79 (pending_framepy_read_register): Likewise.
80 * python/python-internal.h (gdbpy_parse_register_id): Declare.
81
82 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
83
84 * python/py-registers.c: Add 'user-regs.h' include.
85 (register_descriptor_iter_find): New function.
86 (register_descriptor_iterator_object_methods): New static global
87 methods array.
88 (register_descriptor_iterator_object_type): Add pointer to methods
89 array.
90
91 2020-07-27 John Baldwin <jhb@FreeBSD.org>
92
93 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
94 for all architectures on FreeBSD 11.3 and later.
95
96 2020-07-27 Tom Tromey <tromey@adacore.com>
97
98 * gcore.h (load_corefile): Don't declare.
99
100 2020-07-27 Tom de Vries <tdevries@suse.de>
101
102 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
103 * config.in: Regenerate.
104 * configure: Regenerate.
105
106 2020-07-26 Eli Zaretskii <eliz@gnu.org>
107
108 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
109 ws2tcpip.h. When checking whether socklen_t type is defined, use
110 ws2tcpip.h if it is available and sys/socket.h isn't.
111 * configure: Regenerate.
112 * config.in: Regenerate.
113
114 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
115
116 PR fortran/23051
117 PR fortran/26139
118 * valops.c (value_ind): Pass address to
119 readjust_indirect_value_type.
120 * value.c (readjust_indirect_value_type): Make parameter
121 non-const, and add extra address parameter. Resolve original type
122 before using it.
123 * value.h (readjust_indirect_value_type): Update function
124 signature and comment.
125
126 2020-07-25 Tom de Vries <tdevries@suse.de>
127
128 PR symtab/26243
129 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
130 entries.
131
132 2020-07-24 Aaron Merey <amerey@redhat.com>
133
134 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
135 * configure: Rebuild.
136
137 2020-07-23 Kevin Buettner <kevinb@redhat.com>
138
139 PR corefiles/26294
140 * corelow.c (_initialize_corelow): Add period to help text
141 for "maintenance print core-file-backed-mappings".
142
143 2020-07-23 Pedro Alves <pedro@palves.net>
144
145 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
146 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
147 meanwhile.
148 * frame.c (frame_cache_generation, get_frame_cache_generation):
149 New.
150 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
151 (get_prev_frame_if_no_cycle): On exception, don't touch
152 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
153 * frame.h (get_frame_cache_generation): Declare.
154
155 2020-07-23 Tom de Vries <tdevries@suse.de>
156
157 PR tui/26282
158 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
159 New default constructor.
160
161 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
162
163 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
164 exclude non-statement entries.
165
166 2020-07-22 Kevin Buettner <kevinb@redhat.com>
167
168 * NEWS (New commands): Mention new command
169 "maintenance print core-file-backed-mappings".
170
171 2020-07-22 Kevin Buettner <kevinb@redhat.com>
172
173 * corelow.c (gdbcmd.h): Include.
174 (core_target::info_proc_mappings): New method.
175 (get_current_core_target): New function.
176 (maintenance_print_core_file_backed_mappings): New function.
177 (_initialize_corelow): Add core-file-backed-mappings to
178 "maint print" commands.
179
180 2020-07-22 Kevin Buettner <kevinb@redhat.com>
181
182 * linux-tdep.c (dump_note_entry_p): New function.
183 (linux_dump_mapping_p_ftype): New typedef.
184 (linux_find_memory_regions_full): Add new parameter,
185 should_dump_mapping_p.
186 (linux_find_memory_regions): Adjust call to
187 linux_find_memory_regions_full.
188 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
189 call to linux_find_memory_regions_full.
190
191 2020-07-22 Kevin Buettner <kevinb@redhat.com>
192
193 * corelow.c (solist.h, unordered_map): Include.
194 (class core_target): Add field m_core_file_mappings and
195 method build_file_mappings.
196 (core_target::core_target): Call build_file_mappings.
197 (core_target::~core_target): Free memory associated with
198 m_core_file_mappings.
199 (core_target::build_file_mappings): New method.
200 (core_target::xfer_partial): Use m_core_file_mappings
201 for memory transfers.
202 * linux-tdep.c (linux_read_core_file_mappings): New
203 function.
204 (linux_core_info_proc_mappings): Rewrite to use
205 linux_read_core_file_mappings.
206 (linux_init_abi): Register linux_read_core_file_mappings.
207
208 2020-07-22 Kevin Buettner <kevinb@redhat.com>
209
210 * arch-utils.c (default_read_core_file_mappings): New function.
211 * arch-utils.c (default_read_core_file_mappings): Declare.
212 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
213 * gdbarch.h, gdbarch.c: Regenerate.
214
215 2020-07-22 Kevin Buettner <kevinb@redhat.com>
216
217 PR corefiles/25631
218 * corelow.c (core_target:xfer_partial): Revise
219 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
220 case after first checking the stratum beneath the core
221 target.
222 (has_all_memory): Return true.
223 * target.c (raw_memory_xfer_partial): Revise comment
224 regarding use of has_all_memory.
225
226 2020-07-22 Kevin Buettner <kevinb@redhat.com>
227
228 * exec.h (section_table_xfer_memory): Revise declaration,
229 replacing section name parameter with an optional callback
230 predicate.
231 * exec.c (section_table_xfer_memory): Likewise.
232 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
233 of section_table_xfer_memory.
234
235 2020-07-22 Tom Tromey <tromey@adacore.com>
236
237 * mi/mi-cmd-stack.c (list_args_or_locals): Use
238 lookup_symbol_search_name.
239
240 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
241
242 * python/py-registers.c (gdbpy_register_object_data_init): Remove
243 redundant local variable.
244 (gdbpy_get_register_descriptor): Extract descriptor vector as a
245 reference, not pointer, update code accordingly.
246
247 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
248 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
249
250 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
251 * jit.c (jit_breakpoint_re_set_internal): Use the
252 `skip_jit_symbol_lookup` field.
253
254 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
255 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
256
257 * jit.c (jit_read_descriptor): Define the descriptor address once,
258 use twice.
259 (jit_breakpoint_deleted): Move the declaration of the loop variable
260 `iter` into the loop header.
261 (jit_breakpoint_re_set_internal): Move the declaration of the local
262 variable `objf_data` to the first point of definition.
263 (jit_event_handler): Move the declaration of local variables
264 `code_entry`, `entry_addr`, and `objf` to their first point of use.
265 Rename `objf` to `jited`.
266
267 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
268
269 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
270 Remove.
271 * jit.c (get_jiter_objfile_data): Update.
272
273 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
274 Simon Marchi <simon.marchi@polymtl.ca>
275
276 * jit.c (struct jit_program_space_data): Remove.
277 (jit_program_space_key): Remove.
278 (jiter_objfile_data::~jiter_objfile_data): Remove program space
279 stuff.
280 (get_jit_program_space_data): Remove.
281 (jit_breakpoint_deleted): Iterate on all of the program space's
282 objfiles.
283 (jit_inferior_init): Likewise.
284 (jit_breakpoint_re_set_internal): Likewise. Also change return
285 type to void.
286 (jit_breakpoint_re_set): Pass current_program_space to
287 jit_breakpoint_re_set_internal.
288
289 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
290
291 * jit.h (struct jiter_objfile_data) <cached_code_address,
292 jit_breakpoint>: Move to here from ...
293 * jit.c (jit_program_space_data): ... here.
294 (jiter_objfile_data::~jiter_objfile_data): Update.
295 (jit_breakpoint_deleted): Update.
296 (jit_breakpoint_re_set_internal): Update.
297
298 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
299
300 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
301 checks.
302 (jit_read_descriptor): Remove NULL check.
303 (jit_event_handler): Add an assertion.
304
305 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
306
307 * jit.h (struct jit_objfile_data): Split into...
308 (struct jiter_objfile_data): ... this ...
309 (struct jited_objfile_data): ... and this.
310 * objfiles.h (struct objfile) <jit_data>: Remove.
311 <jiter_data, jited_data>: New fields.
312 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
313 (jiter_objfile_data::~jiter_objfile_data): ... this.
314 (get_jit_objfile_data): Rename to ...
315 (get_jiter_objfile_data): ... this.
316 (add_objfile_entry): Update.
317 (jit_read_descriptor): Use get_jiter_objfile_data.
318 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
319 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
320 (jit_inferior_exit_hook): Use objfile's jited_data field.
321
322 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
323
324 * jit.h: Forward-declare `struct minimal_symbol`.
325 (struct jit_objfile_data): Migrate to here from jit.c; also add a
326 constructor, destructor, and an objfile* field.
327 * jit.c (jit_objfile_data): Remove.
328 (struct jit_objfile_data): Migrate from here to jit.h.
329 (jit_objfile_data::~jit_objfile_data): New destructor
330 implementation with code moved from free_objfile_data.
331 (free_objfile_data): Delete.
332 (get_jit_objfile_data): Update to use the jit_data field of objfile.
333 (jit_find_objf_with_entry_addr): Ditto.
334 (jit_inferior_exit_hook): Ditto.
335 (_initialize_jit): Remove the call to
336 register_objfile_data_with_cleanup.
337 * objfiles.h (struct objfile) <jit_data>: New field.
338
339 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
340
341 * jit.h: Forward-declare `struct objfile`.
342 (jit_event_handler): Add a second parameter, the JITer objfile.
343 * jit.c (jit_read_descriptor): Change the signature to take the
344 JITer objfile as an argument instead of the jit_program_space_data.
345 (jit_inferior_init): Update the call to jit_read_descriptor.
346 (jit_event_handler): Use the new JITer objfile argument when calling
347 jit_read_descriptor.
348 * breakpoint.c (handle_jit_event): Update the call to
349 jit_event_handler to pass the JITer objfile.
350
351 2020-07-21 John Baldwin <jhb@FreeBSD.org>
352
353 * gdbarch.c: Regenerate.
354 * gdbarch.h: Regenerate.
355 * gdbarch.sh (handle_segmentation_fault): Remove method.
356 * infrun.c (handle_segmentation_fault): Remove.
357 (print_signal_received_reason): Remove call to
358 handle_segmentation_fault.
359
360 2020-07-21 John Baldwin <jhb@FreeBSD.org>
361
362 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
363 Rename to sparc64_linux_report_signal_info and add siggnal
364 argument.
365 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
366 instead of sparc64_linux_handle_segmentation_fault.
367
368 2020-07-21 John Baldwin <jhb@FreeBSD.org>
369
370 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
371 i386_linux_report_signal_info instead of
372 i386_linux_handle_segmentation_fault.
373 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
374 to i386_linux_report_signal_info and add siggnal argument.
375 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
376 of i386_linux_handle_segmentation_fault.
377 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
378 to i386_linux_report_signal_info and add siggnal argument.
379
380 2020-07-21 John Baldwin <jhb@FreeBSD.org>
381
382 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
383 hook if present.
384
385 2020-07-21 John Baldwin <jhb@FreeBSD.org>
386
387 * gdbarch.c: Regenerate.
388 * gdbarch.h: Regenerate.
389 * gdbarch.sh (report_signal_info): New method.
390 * infrun.c (print_signal_received_reason): Invoke gdbarch
391 report_signal_info hook if present.
392
393 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
394
395 * python/py-registers.c : Add 'unordered_map' include.
396 (gdbpy_new_reggroup): Renamed to...
397 (gdbpy_get_reggroup): ...this. Update to only create register
398 group descriptors when needed.
399 (gdbpy_reggroup_iter_next): Update.
400
401 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
402
403 * python/py-registers.c (gdbpy_register_object_data): New static
404 global.
405 (gdbpy_register_object_data_init): New function.
406 (gdbpy_new_register_descriptor): Renamed to...
407 (gdbpy_get_register_descriptor): ...this, and update to reuse
408 existing register descriptors where possible.
409 (gdbpy_register_descriptor_iter_next): Update.
410 (gdbpy_initialize_registers): Register new gdbarch data.
411
412 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
413
414 * linux-nat.c (stopped_pids): Make static.
415
416 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
417
418 PR ada/26235
419 * gdbtypes.c (ada_discrete_type_low_bound,
420 ada_discrete_type_high_bound): Handle undefined bounds.
421
422 2020-07-21 Kamil Rytarowski <n54@gmx.com>
423
424 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
425 declaration.
426 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
427 function.
428
429 2020-07-20 John Baldwin <jhb@FreeBSD.org>
430
431 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
432 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
433 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
434 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
435 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
436 method.
437
438 2020-07-20 Ludovic Courtès <ludo@gnu.org>
439
440 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
441 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
442 which are deprecated in Guile 3.0.
443 * configure.ac (try_guile_versions): Add "guile-3.0".
444 * configure (try_guile_versions): Regenerate.
445 * NEWS: Update entry.
446
447 2020-07-20 Ludovic Courtès <ludo@gnu.org>
448 Doug Evans <dje@google.com>
449
450 PR gdb/21104
451 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
452 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
453 USING_GUILE_BEFORE_2_2.
454 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
455 Change type to 'scm_t_port_type *'.
456 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
457 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
458 parameter and honor it. Update callers.
459 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
460 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
461 functions.
462 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
463 USING_GUILE_BEFORE_2_2.
464 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
465 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
466 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
467 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
468 and 'SCM_PORT_TYPE'.
469 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
470 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
471 (gdbscm_memory_port_read, gdbscm_memory_port_write)
472 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
473 [!USING_GUILE_BEFORE_2_2]: New functions.
474 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
475 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
476 'gdbscm_memory_port_read'.
477 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
478 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
479 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
480 function.
481 (ioscm_init_memory_port): Remove.
482 (ioscm_init_memory_port_stream): New function
483 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
484 function.
485 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
486 Return scm_from_uint (0).
487 (gdbscm_set_memory_port_read_buffer_size_x)
488 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
489 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
490 Return scm_from_uint (0).
491 (gdbscm_set_memory_port_write_buffer_size_x)
492 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
493 * configure.ac (try_guile_versions): Add "guile-2.2".
494 * configure: Regenerate.
495 * NEWS: Add entry.
496
497 2020-07-18 Tom Tromey <tom@tromey.com>
498
499 * linux-nat.c (linux_multi_process): Remove.
500 (linux_nat_target::supports_multi_process): Return true.
501
502 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
503
504 * arch/riscv.c (riscv_tdesc_cache): Change map type.
505 (riscv_lookup_target_description): Return pointer out of
506 unique_ptr.
507 * target-descriptions.c (allocate_target_description): Add
508 comment.
509 (target_desc_deleter::operator()): Likewise.
510 * target-descriptions.h (struct target_desc_deleter): Moved to
511 gdbsupport/tdesc.h.
512 (target_desc_up): Likewise.
513
514 2020-07-17 Tom Tromey <tromey@adacore.com>
515
516 * linux-nat.c (linux_nat_target::supports_non_stop)
517 (linux_nat_target::always_non_stop_p): Use "true".
518 (linux_nat_target::supports_disable_randomization): Use "true" and
519 "false".
520
521 2020-07-16 Caroline Tice <cmtice@google.com>
522
523 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
524 (RNGLIST_HEADER_SIZE64): New constant definition.
525 (struct dwop_section_names): Add rnglists_dwo.
526 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
527 (struct loclist_header): Rename to 'loclists_rnglists_header'.
528 (struct dwo_sections): Add rnglists field.
529 (read_attribut_reprocess): Add tag parameter.
530 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
531 (cu_debug_rnglists_section): New function (decl & definition).
532 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
533 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
534 die whose range is being checked; get rnglist section from
535 cu_debug_rnglists_section, to get from either objfile or dwo file as
536 appropriate. Add cases for DW_RLE_base_addressx,
537 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
538 the base address to DW_RLE_offset_pairs (not to all ranges), moving
539 test inside if-condition and updating complaint message.
540 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
541 dwarf2_rnglists_process.
542 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
543 dwarf2_ranges_process.
544 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
545 need_ranges_base and update comment appropriately. Also pass die tag
546 to dwarf2_ranges_read.
547 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
548 need_ranges_base and update comment appropriately. Also pass die tag
549 to dwarf2_ranges_process.
550 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
551 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
552 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
553 need_ranges_base and update comment appropriately. Also pass die tag
554 to read_attribute_reprocess and dwarf2_ranges_read.
555 (read_loclist_header): Rename function to read_loclists_rnglists_header,
556 and update function comment appropriately.
557 (read_loclist_index): Call read_loclists_rnglists_header instead of
558 read_loclist_header.
559 (read_rnglist_index): New function.
560 (read_attribute_reprocess): Add tag parameter. Add code for
561 DW_FORM_rnglistx, passing tag to read_rnglist_index.
562 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
563
564 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
565
566 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
567 being resolved.
568
569 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
570
571 * arch-utils.c (show_architecture): Update formatting of messages.
572
573 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
574
575 * gdbtypes.h (struct type) <bounds>: Handle array and string
576 types.
577 * ada-lang.c (assign_aggregate): Use type::bounds on
578 array/string type.
579 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
580 * c-varobj.c (c_number_of_children): Likewise.
581 (c_describe_child): Likewise.
582 * eval.c (evaluate_subexp_for_sizeof): Likewise.
583 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
584 (f_type_print_base): Likewise.
585 * f-valprint.c (f77_array_offset_tbl): Likewise.
586 (f77_get_upperbound): Likewise.
587 (f77_print_array_1): Likewise.
588 * guile/scm-type.c (gdbscm_type_range): Likewise.
589 * m2-typeprint.c (m2_array): Likewise.
590 (m2_is_long_set_of_type): Likewise.
591 * m2-valprint.c (get_long_set_bounds): Likewise.
592 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
593 * python/py-type.c (typy_range): Likewise.
594 * rust-lang.c (rust_internal_print_type): Likewise.
595 * type-stack.c (type_stack::follow_types): Likewise.
596 * valarith.c (value_subscripted_rvalue): Likewise.
597 * valops.c (value_cast): Likewise.
598
599 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
600
601 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
602 callers to use the equivalent accessor methods.
603
604 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
605
606 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
607 (struct type) <bit_stride>: New method.
608 (TYPE_BIT_STRIDE): Remove.
609 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
610
611 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
612
613 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
614 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
615 callers to use the equivalent accessor methods instead.
616
617 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
618
619 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
620 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
621 callers to use the equivalent accessor methods instead.
622
623 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
624
625 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
626 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
627 to use dynamic_prop::kind.
628
629 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
630
631 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
632 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
633 to get the bound property's kind and check against
634 PROP_UNDEFINED.
635
636 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
637
638 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
639 all callers to use type::range_bounds followed by
640 dynamic_prop::{low,high}.
641
642 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
643
644 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
645 const_val, set_const_val, baton, set_locexpr, set_loclist,
646 set_addr_offset, variant_parts, set_variant_parts,
647 original_type, set_original_type>: New methods.
648 <kind>: Rename to...
649 <m_kind>: ... this. Update all users to use the new methods
650 instead.
651 <data>: Rename to...
652 <m_data>: ... this. Update all users to use the new methods
653 instead.
654
655 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
656
657 * gdbtypes.c (get_discrete_bounds): Return failure if
658 the range type's bounds are not both defined and constant
659 values.
660 (get_array_bounds): Update comment. Remove undefined bound check.
661
662 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
663
664 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
665 the type::bounds method directly.
666
667 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
668
669 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
670 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
671 are used to set the range type's bounds to use set_bounds.
672
673 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
674
675 * exec.c (_initialize_exec): Update exec-file-mismatch help.
676
677 2020-07-10 Pedro Alves <pedro@palves.net>
678
679 * gdbthread.h (inferior_ref): Define.
680 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
681 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
682 * thread.c
683 (scoped_restore_current_thread::restore):
684 Adjust to gdb::ref_ptr.
685 (scoped_restore_current_thread::~scoped_restore_current_thread):
686 Remove manual decref handling.
687 (scoped_restore_current_thread::scoped_restore_current_thread):
688 Adjust to use
689 inferior_ref::new_reference/thread_info_ref::new_reference.
690 Incref the thread before calling get_frame_id instead of after.
691 Let TARGET_CLOSE_ERROR propagate.
692
693 2020-07-10 Pedro Alves <pedro@palves.net>
694
695 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
696 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
697 NOT_AVAILABLE_ERROR.
698 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
699 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
700
701 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
702 Pedro Alves <pedro@palves.net>
703
704 PR gdb/26199
705 * infrun.c (threads_are_resumed_pending_p): Delete.
706 (do_target_wait): Remove threads_are_executing and
707 threads_are_resumed_pending_p checks from the inferior_matches
708 lambda. Update comments.
709
710 2020-07-10 Pedro Alves <pedro@palves.net>
711
712 PR gdb/26199
713 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
714 executing threads.
715
716 2020-07-10 Pedro Alves <pedro@palves.net>
717
718 PR gdb/26199
719 * infrun.c (handle_no_resumed): Handle multiple targets.
720
721 2020-07-10 Pedro Alves <pedro@palves.net>
722
723 PR gdb/26199
724 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
725 target_is_async_p.
726
727 2020-07-10 Pedro Alves <pedro@palves.net>
728
729 PR gdb/26199
730 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
731 threads, not all threads.
732
733 2020-07-10 Pedro Alves <pedro@palves.net>
734
735 PR gdb/26199
736 * remote.c (remote_target::open_1): Pass remote target pointer as
737 data to create_async_event_handler.
738 (remote_async_inferior_event_handler): Mark async event handler
739 before returning if the remote target still has either pending
740 events or unacknowledged notifications.
741
742 2020-07-10 John Baldwin <jhb@FreeBSD.org>
743
744 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
745 declaration.
746 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
747 function.
748
749 2020-07-09 John Baldwin <jhb@FreeBSD.org>
750
751 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
752 inferior_ptid.
753
754 2020-07-09 John Baldwin <jhb@FreeBSD.org>
755
756 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
757 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
758 AT_FREEBSD_PS_STRINGS.
759
760 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
761
762 * auto-load.c (auto_load_objfile_script_1): Convert drive part
763 of debugfile path on Windows.
764
765 2020-07-08 John Baldwin <jhb@FreeBSD.org>
766
767 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
768 argument to 'data'.
769
770 2020-07-08 Tom Tromey <tromey@adacore.com>
771
772 * ada-lang.c (ada_exception_message_1): Use read_memory.
773
774 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
775
776 PR python/22748
777 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
778 special handling for inline frames.
779 * findvar.c (value_of_register_lazy): Skip inline frames when
780 creating lazy register values.
781 * frame.c (frame_id_computed_p): Delete definition.
782 * frame.h (frame_id_computed_p): Delete declaration.
783
784 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
785
786 * NEWS: Mention additions to Python API.
787 * python/py-arch.c (archpy_register_groups): New function.
788 (arch_object_methods): Add 'register_groups' method.
789 * python/py-registers.c (reggroup_iterator_object): New struct.
790 (reggroup_object): New struct.
791 (gdbpy_new_reggroup): New function.
792 (gdbpy_reggroup_to_string): New function.
793 (gdbpy_reggroup_name): New function.
794 (gdbpy_reggroup_iter): New function.
795 (gdbpy_reggroup_iter_next): New function.
796 (gdbpy_new_reggroup_iterator): New function
797 (gdbpy_initialize_registers): Register new types.
798 (reggroup_iterator_object_type): Define new Python type.
799 (gdbpy_reggroup_getset): New static global.
800 (reggroup_object_type): Define new Python type.
801 * python/python-internal.h
802
803 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
804
805 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
806 * python/py-arch.c (archpy_registers): New function.
807 (arch_object_methods): Add 'registers' method.
808 * python/py-registers.c: New file.
809 * python/python-internal.h
810 (gdbpy_new_register_descriptor_iterator): Declare.
811 (gdbpy_initialize_registers): Declare.
812 * python/python.c (do_start_initialization): Call
813 gdbpy_initialize_registers.
814 * NEWS: Mention additions to the Python API.
815
816 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
817
818 * NEWS: Mention new Python API method.
819 * python/py-unwind.c (pending_framepy_architecture): New function.
820 (pending_frame_object_methods): Add architecture method.
821
822 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
823
824 * gdbarch.c: Regenerate.
825 * gdbarch.h: Regenerate.
826 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
827 (gdbarch_data): Use internal_error for the case where
828 deprecated_set_gdbarch_data was originally needed.
829 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
830 and use passed in obstack.
831 (libunwind_frame_set_descr): Should no longer get back NULL from
832 gdbarch_data.
833 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
834 type.
835 * user-regs.c (user_regs_init): Update parameters, and use passed
836 in obstack.
837 (user_reg_add): Should no longer get back NULL from gdbarch_data.
838 (_initialize_user_regs): Register as a pre-init gdbarch data type.
839
840 2020-07-06 Tom de Vries <tdevries@suse.de>
841
842 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
843 End-Of-Sequence in lte_is_less_than.
844 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
845 "gdb: Don't reorder line table entries too much when sorting".
846
847 2020-07-06 Tom de Vries <tdevries@suse.de>
848
849 PR tui/26205
850 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
851
852 2020-07-05 Tom de Vries <tdevries@suse.de>
853
854 PR build/26187
855 * inferior.h (struct infcall_suspend_state_deleter): If available, use
856 std::uncaught_exceptions instead of deprecated
857 std::uncaught_exception.
858
859 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
860
861 * macroexp.h (macro_stringify): Return
862 gdb::unique_xmalloc_ptr<char>.
863 * macroexp.c (macro_stringify): Likewise.
864 * macrotab.c (fixup_definition): Update.
865
866 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
867
868 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
869 (lex_one_token): Update.
870 * macroexp.c (struct macro_buffer) <release>: Return
871 gdb::unique_xmalloc_ptr<char>.
872 (macro_stringify): Update.
873 (macro_expand): Update.
874 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
875 * macroexp.h (macro_expand_next): Likewise.
876
877 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
878
879 * macroexp.h (macro_lookup_ftype): Remove.
880 (macro_expand, macro_expand_once, macro_expand_next): Remove
881 lookup function parameters, add scope parameter.
882 * macroexp.c (scan, substitute_args, expand, maybe_expand,
883 macro_expand, macro_expand_once, macro_expand_next): Likewise.
884 * macroscope.h (standard_macro_lookup): Change parameter type
885 to macro_scope.
886 * macroscope.c (standard_macro_lookup): Likewise.
887 * c-exp.y (lex_one_token): Update.
888 * macrocmd.c (macro_expand_command): Likewise.
889 (macro_expand_once_command): Likewise.
890
891 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
892
893 * inf-loop.c (inferior_event_handler): Remove client_data param.
894 * inf-loop.h (inferior_event_handler): Likewise.
895 * infcmd.c (step_1): Adjust.
896 * infrun.c (proceed): Adjust.
897 (fetch_inferior_event): Remove client_data param.
898 (infrun_async_inferior_event_handler): Adjust.
899 * infrun.h (fetch_inferior_event): Remove `void *` param.
900 * linux-nat.c (handle_target_event): Adjust.
901 * record-btrace.c (record_btrace_handle_async_inferior_event):
902 Adjust.
903 * record-full.c (record_full_async_inferior_event_handler):
904 Adjust.
905 * remote.c (remote_async_inferior_event_handler): Adjust.
906
907 2020-07-01 Tom Tromey <tom@tromey.com>
908
909 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
910 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
911
912 2020-07-01 Tom Tromey <tom@tromey.com>
913
914 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
915 tui_gen_win_info.
916 (tui_win_info::make_window): Merge with
917 tui_gen_win_info::make_window.
918 (tui_win_info::make_visible): Move from tui_gen_win_info.
919 * tui/tui-win.c (tui_win_info::max_width): Move from
920 tui_gen_win_info.
921 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
922 type.
923 <window_factory>: Likewise.
924 * tui/tui-layout.c (tui_win_info::resize): Move from
925 tui_gen_win_info.
926 (make_standard_window): Change return type.
927 (get_locator_window, tui_get_window_by_name): Likewise.
928 (tui_layout_window::apply): Remove a cast.
929 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
930 (struct tui_win_info): Merge with tui_gen_win_info.
931 (struct tui_gen_win_info): Remove.
932
933 2020-07-01 Tom Tromey <tom@tromey.com>
934
935 * tui/tui-stack.h (struct tui_locator_window): Derive from
936 tui_win_info.
937 <do_scroll_horizontal, do_scroll_vertical>: New methods.
938 <can_box>: New method.
939
940 2020-07-01 Tom Tromey <tom@tromey.com>
941
942 * tui/tui-stack.h (struct tui_locator_window): Remove body.
943
944 2020-07-01 Tom Tromey <tom@tromey.com>
945
946 * tui/tui-regs.c (tui_data_window::display_registers_from)
947 (tui_data_window::display_registers_from)
948 (tui_data_window::first_data_item_displayed)
949 (tui_data_window::delete_data_content_windows): Update.
950 (tui_data_window::refresh_window, tui_data_window::no_refresh):
951 Remove.
952 (tui_data_window::check_register_values): Update.
953 (tui_data_item_window::rerender): Add parameters. Update.
954 (tui_data_item_window::refresh_window): Remove.
955 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
956 virtual.
957 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
958 tui_gen_win_info.
959 <refresh_window, max_height, min_height>: Remove.
960 <rerender>: Add parameters.
961 <x, y, visible>: New members.
962 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
963 <m_item_width>: New member.
964
965 2020-07-01 Tom Tromey <tom@tromey.com>
966
967 * tui/tui-regs.c (tui_data_window::show_register_group)
968 (tui_data_window::check_register_values): Update.
969 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
970 from item_no.
971
972 2020-07-01 Tom Tromey <tom@tromey.com>
973
974 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
975 useless "if".
976
977 2020-07-01 Tom Tromey <tom@tromey.com>
978
979 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
980 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
981
982 2020-07-01 Tom Tromey <tom@tromey.com>
983
984 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
985 * tui/tui-winsource.h (enum tui_line_or_address_kind)
986 (struct tui_line_or_address): Move from tui-data.h.
987 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
988 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
989 (tui_cmd_window, tui_source_window_base, tui_source_window)
990 (tui_disasm_window): Don't declare.
991 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
992 to tui-winsource.h.
993 (SINGLE_KEY): Move to tui-stack.c.
994
995 2020-07-01 Tom Tromey <tom@tromey.com>
996
997 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
998 std::string.
999 * tui/tui-regs.c (class tab_expansion_file): New.
1000 (tab_expansion_file::write): New method.
1001 (tui_register_format): Change return type. Use
1002 tab_expansion_file.
1003 (tui_get_register, tui_data_window::display_registers_from)
1004 (tui_data_item_window::rerender): Update.
1005 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1006 * tui/tui-io.c (tui_expand_tabs): Remove.
1007
1008 2020-07-01 Tom Tromey <tom@tromey.com>
1009
1010 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1011
1012 2020-07-01 Fangrui Song <maskray@google.com>
1013
1014 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1015
1016 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1017
1018 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1019 forms for DW_AT_associated and DW_AT_allocated attributes,
1020 which is already checked in function attr_to_dynamic_prop.
1021
1022 2020-06-30 Tom Tromey <tromey@adacore.com>
1023
1024 * dwarf2/read.c (quirk_rust_enum): Correctly call
1025 alloc_rust_variant for default-less enum.
1026
1027 2020-06-30 Tom Tromey <tromey@adacore.com>
1028
1029 PR build/26183:
1030 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1031 gdb::to_string.
1032
1033 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1034
1035 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1036 * gdbarch.h: Re-generate.
1037
1038 2020-06-28 Tom Tromey <tom@tromey.com>
1039
1040 * command.h (cmd_types): Remove.
1041 (cmd_type): Don't declare.
1042 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1043 typedef.
1044 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1045 * cli/cli-decode.c (cmd_type): Remove.
1046
1047 2020-06-27 Pedro Alves <palves@redhat.com>
1048
1049 * fork-child.c (prefork_hook): Adjust.
1050 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1051 Delete.
1052 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1053 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1054 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1055 Remove declarations.
1056 (struct inferior) <set_tty, tty>: New methods.
1057 (struct inferior) <terminal>: Rename to ...
1058 (struct inferior) <m_terminal>: ... this and make private.
1059 * main.c (captured_main_1): Adjust.
1060 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1061 (mi_cmd_inferior_tty_show): Adjust.
1062 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1063 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1064
1065 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1066
1067 * configure.ac: Add --enable-libctf: handle --disable-static
1068 properly.
1069 * acinclude.m4: sinclude ../config/enable.m4.
1070 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1071 (LIBCTF): Substitute in.
1072 (CTF_DEPS): New, likewise.
1073 (CLIBS): libctf needs symbols from libbfd: move earlier.
1074 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1075 flags.
1076 * ctfread.c: Surround in ENABLE_LIBCTF.
1077 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1078 * configure: Regenerate.
1079 * config.in: Likewise.
1080
1081 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1082
1083 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1084
1085 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1086
1087 * inferior.h (struct inferior) <terminal>: Change type to
1088 gdb::unique_xmalloc_ptr<char>.
1089 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1090 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1091 field, adjust to unique pointer.
1092 (get_inferior_io_terminal): Adjust to unique pointer.
1093
1094 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1095
1096 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1097 registers, not just the known core set of registers.
1098
1099 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1100
1101 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1102 fflags, frm, and fcsr registers.
1103 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1104 restore groups.
1105 (riscv_tdesc_unknown_reg): New function.
1106 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1107 tdesc_use_registers.
1108 * riscv-tdep.h (struct gdbarch_tdep): Add
1109 unknown_csrs_first_regnum, unknown_csrs_count,
1110 duplicate_fflags_regnum, duplicate_frm_regnum, and
1111 duplicate_fcsr_regnum fields.
1112
1113 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1114
1115 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1116 callback, use the callback (when not null) to help number unknown
1117 registers.
1118 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1119 (tdesc_use_registers): Add extra parameter to declaration.
1120
1121 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1122
1123 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1124 in the file.
1125 (class riscv_pending_register_alias): Likewise.
1126 (riscv_register_feature::register_info): Change 'required_p' field
1127 to 'required', and change its type. Add 'check' member function.
1128 (riscv_register_feature::register_info::check): Define new member
1129 function.
1130 (riscv_xreg_feature): Change initialisation of 'required' field.
1131 (riscv_freg_feature): Likewise.
1132 (riscv_virtual_feature): Likewise.
1133 (riscv_csr_feature): Likewise.
1134 (riscv_check_tdesc_feature): Take extra parameter, the csr
1135 tdesc_feature, rewrite the function to use the new
1136 riscv_register_feature::register_info::check function.
1137 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1138
1139 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1140
1141 * features/Makefile: Remove all references to the deleted files
1142 below.
1143 * features/riscv/32bit-csr.c: Deleted.
1144 * features/riscv/32bit-csr.xml: Deleted.
1145 * features/riscv/64bit-csr.c: Deleted.
1146 * features/riscv/64bit-csr.xml: Deleted.
1147 * features/riscv/rebuild-csr-xml.sh: Deleted.
1148
1149 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1150
1151 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1152 whitespace error for declaration of names member variable.
1153 (struct riscv_register_feature): Add new prefer_first_name member
1154 variable, and fix whitespace error in declaration of registers.
1155 (riscv_xreg_feature): Initialize prefer_first_name field.
1156 (riscv_freg_feature): Likewise.
1157 (riscv_virtual_feature): Likewise.
1158 (riscv_csr_feature): Likewise.
1159 (riscv_register_name): Expand on comments. Remove register name
1160 modifications for CSR and virtual registers.
1161
1162 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1163
1164 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1165 errors.
1166
1167 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1168
1169 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1170 riscv-opc.h.
1171 (class riscv_pending_register_alias): New class.
1172 (riscv_check_tdesc_feature): Take vector of pending aliases and
1173 populate it as appropriate.
1174 (riscv_setup_register_aliases): Delete.
1175 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1176 to riscv_check_tdesc_feature in all cases. Use the vector to
1177 create the register aliases.
1178
1179 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1180
1181 * sol2-tdep.c (sol2_static_transform_name): Remove.
1182 (sol2_init_abi): Don't register it.
1183 * gdbarch.sh (static_transform_name): Remove.
1184 * gdbarch.c, gdbarch.h: Regenerate.
1185
1186 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1187 gdbarch_static_transform_name.
1188 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1189 * stabsread.c (define_symbol) <'X'>: Remove.
1190 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1191 handling.
1192 <'V'>: Likewise.
1193 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1194 <'S'>: Remove call to gdbarch_static_transform_name.
1195
1196 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1197
1198 * procfs.c (procfs_pre_trace): New function.
1199 (procfs_target::create_inferior): Pass it to fork_inferior.
1200
1201 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1202
1203 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1204 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1205 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1206 sol2-tdep.o, sparc-sol2-tdep.o.
1207 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1208 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1209 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1210 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1211
1212 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1213
1214 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1215 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1216 Call sol2_init_abi.
1217 Remove calls to set_gdbarch_skip_solib_resolver,
1218 set_gdbarch_core_pid_to_str.
1219 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1220 (i386_sol2_static_transform_name): Remove.
1221 (i386_sol2_init_abi): Call sol2_init_abi.
1222 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1223 set_gdbarch_static_transform_name,
1224 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1225 Use sol2_sigtramp_p.
1226 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1227 (sol2_sigtramp_p): New function.
1228 (sol2_static_transform_name): New function.
1229 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1230 (sol2_init_abi): New function.
1231 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1232 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1233 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1234 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1235 (sparc_sol2_static_transform_name): Remove.
1236 (sparc32_sol2_init_abi): Call sol2_init_abi.
1237 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1238 set_gdbarch_static_transform_name,
1239 set_gdbarch_skip_solib_resolver,
1240 set_gdbarch_core_pid_to_str.
1241 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1242 (sparc_sol2_static_transform_name): Remove
1243 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1244 call sol2_sigtramp_p.
1245 (sparc64_sol2_init_abi): Call sol2_init_abi.
1246 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1247 set_gdbarch_static_transform_name,
1248 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1249
1250 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1251
1252 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1253 * exec.c (validate_exec_file): If from_tty, set both
1254 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1255 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1256 and from_tty, unconditionally ask a confirmation.
1257
1258 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1259
1260 * target-descriptions.c (tdesc_architecture_name): Protect against
1261 NULL pointer dereference.
1262 (maint_print_xml_tdesc_cmd): New function.
1263 (_initialize_target_descriptions): Register new 'maint print
1264 xml-tdesc' command and give it the filename completer.
1265 * NEWS: Mention new 'maint print xml-tdesc' command.
1266
1267 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1268
1269 * target-descriptions.c (class tdesc_compatible_info): New class.
1270 (struct target_desc): Change type of compatible vector.
1271 (tdesc_compatible_p): Update for change in type of
1272 target_desc::compatible.
1273 (tdesc_compatible_info_list): New function.
1274 (tdesc_compatible_info_arch_name): New function.
1275 (tdesc_add_compatible): Update for change in type of
1276 target_desc::compatible.
1277 (print_c_tdesc::visit_pre): Likewise.
1278
1279 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1280
1281 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1282 whitespace to underscore.
1283 (maint_print_c_tdesc_cmd): Use fake filename for target
1284 descriptions that came from the target.
1285 (_initialize_target_descriptions): Add filename command completion
1286 for 'maint print c-tdesc'.
1287
1288 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1289
1290 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1291 lines.
1292
1293 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1294
1295 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1296 lines.
1297 (dwarf2_find_location_expression): Likewise.
1298 (call_site_parameter_matches): Likewise.
1299 (dwarf2_compile_expr_to_ax): Likewise.
1300 (disassemble_dwarf_expression): Likewise.
1301 (loclist_describe_location): Likewise.
1302
1303 2020-06-23 Pedro Alves <palves@redhat.com>
1304
1305 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1306 progspace-and-thread.h. Include scoped-mock-context.h instead.
1307 (register_to_value_test): Use scoped_mock_context.
1308 * regcache.c: Include "scoped-mock-context.h".
1309 (cooked_read_test): Don't error out if a target is already pushed.
1310 Use scoped_mock_context. Adjust.
1311 * scoped-mock-context.h: New file.
1312
1313 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1314
1315 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1316 initializer.
1317 (ada_language::is_string_type_p): New member function.
1318 * c-lang.c (c_language_data): Delete la_is_string_type_p
1319 initializer.
1320 (cplus_language_data): Likewise.
1321 (asm_language_data): Likewise.
1322 (minimal_language_data): Likewise.
1323 * d-lang.c (d_language_data): Likewise.
1324 * f-lang.c (f_is_string_type_p): Delete function, implementation
1325 moved to f_language::is_string_type_p.
1326 (f_language_data): Delete la_is_string_type_p initializer.
1327 (f_language::is_string_type_p): New member function,
1328 implementation from f_is_string_type_p.
1329 * go-lang.c (go_is_string_type_p): Delete function, implementation
1330 moved to go_language::is_string_type_p.
1331 (go_language_data): Delete la_is_string_type_p initializer.
1332 (go_language::is_string_type_p): New member function,
1333 implementation from go_is_string_type_p.
1334 * language.c (language_defn::is_string_type_p): Define new member
1335 function.
1336 (default_is_string_type_p): Make static, add comment copied from
1337 header file.
1338 (unknown_language_data): Delete la_is_string_type_p initializer.
1339 (unknown_language::is_string_type_p): New member function.
1340 (auto_language_data): Delete la_is_string_type_p initializer.
1341 (auto_language::is_string_type_p): New member function.
1342 * language.h (language_data): Delete la_is_string_type_p field.
1343 (language_defn::is_string_type_p): Declare new function.
1344 (default_is_string_type_p): Delete desclaration, move comment to
1345 definition.
1346 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1347 moved to m2_language::is_string_type_p.
1348 (m2_language_data): Delete la_is_string_type_p initializer.
1349 (m2_language::is_string_type_p): New member function,
1350 implementation from m2_is_string_type_p.
1351 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1352 initializer.
1353 * opencl-lang.c (opencl_language_data): Likewise.
1354 * p-lang.c (pascal_is_string_type_p): Delete function,
1355 implementation moved to pascal_language::is_string_type_p.
1356 (pascal_language_data): Delete la_is_string_type_p initializer.
1357 (pascal_language::is_string_type_p): New member function,
1358 implementation from pascal_is_string_type_p.
1359 * rust-lang.c (rust_is_string_type_p): Delete function,
1360 implementation moved to rust_language::is_string_type_p.
1361 (rust_language_data): Delete la_is_string_type_p initializer.
1362 (rust_language::is_string_type_p): New member function,
1363 implementation from rust_is_string_type_p.
1364 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1365 is_string_type_p.
1366
1367 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1368
1369 * ada-lang.c (ada_language_data): Delete la_print_typedef
1370 initializer.
1371 (ada_language::print_typedef): New member function.
1372 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1373 (cplus_language_data): Likewise.
1374 (asm_language_data): Likewise.
1375 (minimal_language_data): Likewise.
1376 * d-lang.c (d_language_data): Likewise.
1377 * f-lang.c (f_language_data): Likewise.
1378 (f_language::print_typedef): New member function.
1379 * go-lang.c (go_language_data): Delete la_print_typedef
1380 initializer.
1381 * language.c (language_defn::print_typedef): Define member
1382 function.
1383 (unknown_language_data): Delete la_print_typedef initializer.
1384 (unknown_language::print_typedef): New member function.
1385 (auto_language_data): Delete la_print_typedef initializer.
1386 (auto_language::print_typedef): New member function.
1387 * language.h (language_data): Delete la_print_typedef field.
1388 (language_defn::print_typedef): Declare new member function.
1389 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1390 (default_print_typedef): Delete declaration.
1391 * m2-lang.c (m2_language_data): Delete la_print_typedef
1392 initializer.
1393 (m2_language::print_typedef): New member function.
1394 * objc-lang.c (objc_language_data): Delete la_print_typedef
1395 initializer.
1396 * opencl-lang.c (opencl_language_data): Likewise.
1397 * p-lang.c (pascal_language_data): Likewise.
1398 (pascal_language::print_typedef): New member function.
1399 * rust-lang.c (rust_print_typedef): Delete function,
1400 implementation moved to rust_language::print_typedef.
1401 (rust_language): Delete la_print_typedef initializer.
1402 (rust_language::print_typedef): New member function,
1403 implementation from rust_print_typedef.
1404 * typeprint.c (default_print_typedef): Delete.
1405
1406 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1407
1408 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1409 (ada_language::printstr): New member function.
1410 * c-lang.c (c_language_data): Delete la_printstr initializer.
1411 (cplus_language_data): Likewise.
1412 (asm_language_data): Likewise.
1413 (minimal_language_data): Likewise.
1414 * d-lang.c (d_language_data): Likewise.
1415 * f-lang.c (f_printstr): Rename to f_language::printstr.
1416 (f_language_data): Delete la_printstr initializer.
1417 (f_language::printstr): New member function, implementation from
1418 f_printstr.
1419 * go-lang.c (go_language_data): Delete la_printstr initializer.
1420 * language.c (language_defn::printstr): Define new member
1421 function.
1422 (unk_lang_printstr): Delete.
1423 (unknown_language_data): Delete la_printstr initializer.
1424 (unknown_language::printstr): New member function.
1425 (auto_language_data): Delete la_printstr initializer.
1426 (auto_language::printstr): New member function.
1427 * language.h (language_data): Delete la_printstr field.
1428 (language_defn::printstr): Declare new member function.
1429 (LA_PRINT_STRING): Update call to printstr.
1430 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1431 (m2_language_data): Delete la_printstr initializer.
1432 (m2_language::printstr): New member function, implementation from
1433 m2_printstr.
1434 * objc-lang.c (objc_language_data): Delete la_printstr
1435 initializer.
1436 * opencl-lang.c (opencl_language_data): Likewise.
1437 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1438 (pascal_language_data): Delete la_printstr initializer.
1439 (pascal_language::printstr): New member function, implementation
1440 from pascal_printstr.
1441 * p-lang.h (pascal_printstr): Delete declaration.
1442 * rust-lang.c (rust_printstr): Update header comment.
1443 (rust_language_data): Delete la_printstr initializer.
1444 (rust_language::printstr): New member function.
1445
1446 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1447
1448 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1449 (ada_language::printchar): New member function.
1450 * c-lang.c (c_language_data): Delete la_printchar initializer.
1451 (cplus_language_data): Likewise.
1452 (asm_language_data): Likewise.
1453 (minimal_language_data): Likewise.
1454 * d-lang.c (d_language_data): Likewise.
1455 * f-lang.c (f_printchar): Rename to f_language::printchar.
1456 (f_language_data): Delete la_printchar initializer.
1457 (f_language::printchar): New member function, implementation from
1458 f_printchar.
1459 * go-lang.c (go_language_data): Delete la_printchar initializer.
1460 * language.c (unk_lang_printchar): Delete.
1461 (language_defn::printchar): Define new member function.
1462 (unknown_language_data): Delete la_printchar initializer.
1463 (unknown_language::printchar): New member function.
1464 (auto_language_data): Delete la_printchar initializer.
1465 (auto_language::printchar): New member function.
1466 * language.h (language_data): Delete la_printchar field.
1467 (language_defn::printchar): Declare new member function.
1468 (LA_PRINT_CHAR): Update call to printchar.
1469 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1470 (m2_language::printchar): New member function.
1471 * objc-lang.c (objc_language_data): Delete la_printchar
1472 initializer.
1473 * opencl-lang.c (opencl_language_data): Likewise.
1474 * p-lang.c (pascal_language_data): Delete la_printchar
1475 initializer.
1476 (pascal_language::printchar): New member function.
1477 * rust-lang.c (rust_printchar): Rename to
1478 rust_language::printchar.
1479 (rust_language_data): Delete la_printchar initializer.
1480 (rust_language::printchar): New member function, implementation
1481 from rust_printchar.
1482
1483 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1484
1485 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1486 (ada_language_data): Delete la_emitchar initializer.
1487 (ada_language::emitchar): New member function, implementation from
1488 emit_char.
1489 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1490 (cplus_language_data): Likewise.
1491 (asm_language_data): Likewise.
1492 (minimal_language_data): Likewise.
1493 * d-lang.c (d_language_data): Likewise.
1494 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1495 (f_language_data): Delete la_emitchar initializer.
1496 (f_language::emitchar): New member function, implementation from
1497 f_emit_char.
1498 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1499 * language.c (unk_lang_emit_char): Delete.
1500 (language_defn::emitchar): New member function definition.
1501 (unknown_language_data): Delete la_emitchar initializer.
1502 (unknown_language::emitchar): New member function.
1503 (auto_language_data): Delete la_emitchar initializer.
1504 (auto_language::emitchar): New member function.
1505 * language.h (language_data): Delete la_emitchar field.
1506 (language_defn::emitchar): New member field declaration.
1507 (LA_EMIT_CHAR): Update call to emitchar.
1508 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1509 (m2_language_data): Delete la_emitchar initializer.
1510 (m2_language::emitchar): New member function, implementation from
1511 m2_emit_char.
1512 * objc-lang.c (objc_language_data): Delete la_emitchar
1513 initializer.
1514 * opencl-lang.c (opencl_language_data): Likewise.
1515 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1516 (pascal_language_data): Delete la_emitchar initializer.
1517 (pascal_language::emitchar): New member function, implementation
1518 from pascal_emit_char.
1519 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1520 (rust_language_data): Delete la_emitchar initializer.
1521 (rust_language::emitchar): New member function, implementation
1522 from rust_emitchar.
1523
1524 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1525
1526 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1527 (ada_language_data): Delete la_post_parser initializer.
1528 (ada_language::post_parser): New member function.
1529 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1530 (cplus_language_data): Likewise.
1531 (asm_language_data): Likewise.
1532 (minimal_language_data): Likewise.
1533 * d-lang.c (d_language_data): Likewise.
1534 * f-lang.c (f_language_data): Likewise.
1535 * go-lang.c (go_language_data): Likewise.
1536 * language.c (unknown_language_data): Likewise.
1537 (auto_language_data): Likewise.
1538 * language.h (language_data): Delete la_post_parser field.
1539 (language_defn::post_parser): New member function.
1540 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1541 * objc-lang.c (objc_language_data): Likewise.
1542 * opencl-lang.c (opencl_language_data): Likewise.
1543 * p-lang.c (pascal_language_data): Likewise.
1544 * parse.c (parse_exp_in_context): Update call to post_parser.
1545 (null_post_parser): Delete definition.
1546 * parser-defs.h (null_post_parser): Delete declaration.
1547 * rust-lang.c (rust_language_data): Delete la_post_parser
1548 initializer.
1549
1550 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1551
1552 * ada-lang.c (parse): Rename to ada_language::parser.
1553 (ada_language_data): Delete la_parser initializer.
1554 (ada_language::parser): New member function, implementation from
1555 parse.
1556 * c-lang.c (c_language_data): Delete la_parser initializer.
1557 (cplus_language_data): Likewise.
1558 (asm_language_data): Likewise.
1559 (minimal_language_data): Likewise.
1560 * d-lang.c (d_language_data): Likewise.
1561 (d_language::parser): New member function.
1562 * f-lang.c (f_language_data): Delete la_parser initializer.
1563 (f_language::parser): New member function.
1564 * go-lang.c (go_language_data): Delete la_parser initializer.
1565 (go_language::parser): New member function.
1566 * language.c (unk_lang_parser): Delete.
1567 (language_defn::parser): Define new member function.
1568 (unknown_language_data): Delete la_parser initializer.
1569 (unknown_language::parser): New member function.
1570 (auto_language_data): Delete la_parser initializer.
1571 (auto_language::parser): New member function.
1572 * language.h (language_data): Delete la_parser field.
1573 (language_defn::parser): Declare new member function.
1574 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1575 (m2_language::parser): New member function.
1576 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1577 * opencl-lang.c (opencl_language_data): Likewise.
1578 * p-lang.c (pascal_language_data): Likewise.
1579 (pascal_language::parser): New member function.
1580 * parse.c (parse_exp_in_context): Update call to parser.
1581 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1582 (rust_language::parser): New member function.
1583
1584 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1585
1586 * top.c (print_gdb_configuration): Print --with-python-libdir
1587 configuration value.
1588
1589 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1590
1591 * NEWS: Mention change to the alias command.
1592
1593 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1594
1595 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1596 (alias_command_completer)
1597 (make_alias_options_def_group): New functions.
1598 (alias_opts, alias_option_defs): New struct and array.
1599 (alias_usage_error): Update usage.
1600 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1601 Use option framework.
1602 (_initialize_cli_cmds): Update alias command help.
1603 Update aliases command help.
1604 (show_user):
1605 Add NULL for new default_args lookup_cmd argument.
1606 (valid_command_p): Rename to validate_aliased_command.
1607 Add NULL for new default_args lookup_cmd argument. Verify that the
1608 aliased_command has no default args.
1609 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1610 (lookup_cmd_1, lookup_cmd): New argument default_args.
1611 (add_alias_cmd):
1612 Add NULL for new default_args lookup_cmd argument.
1613 (print_help_for_command): Show default args under the layout
1614 alias some_alias = some_aliased_cmd some_alias_default_arg.
1615 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1616 xfree default_args in destructor.
1617 * cli/cli-script.c (process_next_line, do_define_command):
1618 Add NULL for new default_args lookup_cmd argument.
1619 * command.h: Declare new default_args argument in lookup_cmd
1620 and lookup_cmd_1.
1621 * completer.c (complete_line_internal_1):
1622 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1623 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1624 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1625 Likewise.
1626 * infcmd.c (_initialize_infcmd): Likewise.
1627 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1628 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1629 * python/py-param.c (add_setshow_generic): Likewise.
1630 * remote.c (_initialize_remote): Likewise.
1631 * top.c (execute_command): Prepend default_args if command has some.
1632 (set_verbose):
1633 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1634 * tracepoint.c (validate_actionline, encode_actions_1):
1635 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1636
1637 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1638
1639 * jit.c (jit_read_descriptor): Use bool as the return type.
1640 (jit_breakpoint_re_set_internal): Use bool as the return type.
1641 Invert the return value logic; return true if the jit breakpoint
1642 has been successfully initialized.
1643 (jit_inferior_init): Update the call to
1644 jit_breakpoint_re_set_internal.
1645
1646 2020-06-22 Pedro Alves <palves@redhat.com>
1647
1648 PR gdb/25939
1649 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1650 Use the current inferior instead. Don't return
1651 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1652 wait again.
1653 * sol-thread.c (sol_thread_target::wait): Don't reference
1654 inferior_ptid.
1655 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1656 (sol_update_thread_list_callback): Use the current inferior's pid
1657 instead of inferior_ptid.
1658
1659 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1660
1661 * procfs.c: Cleanup many comments.
1662
1663 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1664 (AFTER_WATCHFLAG): Replace by value.
1665
1666 (MAIN_PROC_NAME_FORMAT): Inline ...
1667 (create_procinfo): ... here.
1668
1669 (procfs_debug_inferior): Remove SYS_exec handling.
1670 (syscall_is_exec): Likewise.
1671 (procfs_set_exec_trap): Likewise.
1672
1673 (syscall_is_lwp_exit): Inline in callers.
1674 (syscall_is_exit): Likewise.
1675 (syscall_is_exec): Likewise.
1676 (syscall_is_lwp_create): Likewise.
1677
1678 (invalidate_cache): Remove #if 0 code.
1679
1680 (make_signal_thread_runnable): Remove.
1681 (procfs_target::resume): Remove #if 0 code.
1682
1683 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1684
1685 PR gdb/25939
1686 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1687 call ...
1688 (procfs_target::create_inferior): ... here.
1689
1690 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1691
1692 * exec.c (validate_exec_file): Ensure the build-id is up to
1693 date by calling reopen_exec_file (that checks file timestamp
1694 to decide to re-read the file).
1695
1696 2020-06-18 Pedro Alves <palves@redhat.com>
1697
1698 PR gdb/25412
1699 * gdbthread.h (delete_thread, delete_thread_silent)
1700 (find_thread_ptid): Update comments.
1701 * thread.c (current_thread_): New global.
1702 (is_current_thread): Move higher, and reimplement.
1703 (inferior_thread): Reimplement.
1704 (set_thread_exited): Use bool. Add assertions.
1705 (add_thread_silent): Simplify thread-reuse handling by always
1706 calling delete_thread.
1707 (delete_thread): Remove intro comment.
1708 (find_thread_ptid): Skip exited threads.
1709 (switch_to_thread_no_regs): Write to current_thread_.
1710 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1711 INFERIOR_PTID. Clear current_thread_.
1712
1713 2020-06-18 Pedro Alves <palves@redhat.com>
1714
1715 * aix-thread.c (pd_update): Use switch_to_thread.
1716
1717 2020-06-18 Pedro Alves <palves@redhat.com>
1718
1719 * ravenscar-thread.c (ravenscar_thread_target): Update.
1720 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1721 (ravenscar_thread_target::add_active_thread): ... this. Don't
1722 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1723 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1724
1725 2020-06-18 Pedro Alves <palves@redhat.com>
1726
1727 * nat/windows-nat.c (current_windows_thread): Remove.
1728 * nat/windows-nat.h (current_windows_thread): Remove.
1729 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1730 Adjust.
1731 (display_selectors): Adjust to fetch the current
1732 windows_thread_info based on inferior_ptid.
1733 (fake_create_process): No longer write to current_windows_thread.
1734 (windows_nat_target::get_windows_debug_event):
1735 Don't set inferior_ptid or current_windows_thread.
1736 (windows_nat_target::wait): Adjust to not rely on
1737 current_windows_thread.
1738 (do_initial_windows_stuff): Now a method of windows_nat_target.
1739 Switch to the last_ptid thread.
1740 (windows_nat_target::attach): Adjust.
1741 (windows_nat_target::detach): Use switch_to_no_thread instead of
1742 writing to inferior_ptid directly.
1743 (windows_nat_target::create_inferior): Adjust.
1744
1745 2020-06-18 Pedro Alves <palves@redhat.com>
1746
1747 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1748
1749 2020-06-18 Pedro Alves <palves@redhat.com>
1750
1751 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1752 after creating it, instead of writing to inferior_ptid. Don't
1753 write to inferior_ptid.
1754
1755 2020-06-18 Pedro Alves <palves@redhat.com>
1756
1757 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1758
1759 2020-06-18 Pedro Alves <palves@redhat.com>
1760
1761 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1762 it, instead of writing to inferior_ptid.
1763
1764 2020-06-18 Pedro Alves <palves@redhat.com>
1765
1766 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1767 to inferior_ptid.
1768
1769 2020-06-18 Pedro Alves <palves@redhat.com>
1770
1771 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1772 instead of writing to inferior_ptid directly.
1773
1774 2020-06-18 Pedro Alves <palves@redhat.com>
1775
1776 * corelow.c (core_target::close): Use switch_to_no_thread instead
1777 of writing to inferior_ptid directly.
1778 (add_to_thread_list, core_target_open): Use switch_to_thread
1779 instead of writing to inferior_ptid directly.
1780
1781 2020-06-18 Pedro Alves <palves@redhat.com>
1782
1783 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1784 inferior_ptid.
1785 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1786 inferior_ptid.
1787 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1788 inferior_ptid directly.
1789 (darwin_nat_target::init_thread_list): Switch to thread, instead
1790 of writing to inferior_ptid.
1791 (darwin_nat_target::attach): Don't write to inferior_ptid.
1792 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1793
1794 2020-06-18 Pedro Alves <palves@redhat.com>
1795
1796 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1797 thread.
1798 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1799 Instead use switch_to_thread.
1800 (gnu_nat_target::detach): Use switch_to_no_thread
1801 instead of writing to inferior_ptid directly. Used passed-in
1802 inferior instead of looking up the inferior by pid.
1803
1804 2020-06-18 Pedro Alves <palves@redhat.com>
1805
1806 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1807 inferior_ptid.
1808
1809 2020-06-18 Pedro Alves <palves@redhat.com>
1810
1811 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1812 inferior_ptid.
1813 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1814 thread.
1815 (nto_procfs_target::detach): Avoid referencing
1816 inferior_ptid. Use switch_to_no_thread instead of writing to
1817 inferior_ptid directly.
1818 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1819 instead of writing to inferior_ptid directly.
1820 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1821 to thread.
1822
1823 2020-06-18 Pedro Alves <palves@redhat.com>
1824
1825 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1826 after creating it, instead of writing to inferior_ptid.
1827 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1828 to inferior_ptid directly.
1829 (gdbsim_target::wait): Don't write to inferior_ptid.
1830
1831 2020-06-18 Pedro Alves <palves@redhat.com>
1832
1833 * remote.c (remote_target::remote_notice_new_inferior): Use
1834 switch_to_thread instead of writing to inferior_ptid directly.
1835 (remote_target::add_current_inferior_and_thread): Use
1836 switch_to_no_thread instead of writing to inferior_ptid directly.
1837 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1838 and switch_to_thread instead of using set_current_inferior or
1839 writing to inferior_ptid directly.
1840
1841 2020-06-18 Pedro Alves <palves@redhat.com>
1842
1843 * tracectf.c (ctf_target_open): Switch to added thread instead of
1844 writing to inferior_ptid directly.
1845 (ctf_target::close): Use switch_to_no_thread instead of writing to
1846 inferior_ptid directly.
1847
1848 2020-06-18 Pedro Alves <palves@redhat.com>
1849
1850 * tracefile-tfile.c (tfile_target_open): Don't write to
1851 inferior_ptid directly, instead switch to added thread.
1852 (tfile_target::close): Use switch_to_no_thread instead of writing
1853 to inferior_ptid directly.
1854
1855 2020-06-18 Pedro Alves <palves@redhat.com>
1856
1857 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1858 (procfs_target::detach): Use switch_to_no_thread
1859 instead of writing to inferior_ptid directly.
1860 (do_attach): Change return type to void. Switch to the added
1861 thread.
1862 (procfs_target::create_inferior): Switch to the added thread.
1863 (procfs_do_thread_registers): Don't write to inferior_ptid.
1864
1865 2020-06-18 Pedro Alves <palves@redhat.com>
1866
1867 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1868 of writing to inferior_ptid.
1869 (scoped_restore_exited_inferior): Delete.
1870 (handle_vfork_child_exec_or_exit): Simplify using
1871 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1872 instead of writing to inferior_ptid.
1873 (THREAD_STOPPED_BY): Delete.
1874 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1875 (thread_stopped_by_hw_breakpoint): Delete.
1876 (save_waitstatus): Use
1877 scoped_restore_current_thread+switch_to_thread, and call
1878 target_stopped_by_watchpoint instead of
1879 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1880 instead of thread_stopped_by_sw_breakpoint, and
1881 target_stopped_by_hw_breakpoint instead of
1882 thread_stopped_by_hw_breakpoint.
1883 (handle_inferior_event)
1884 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1885 inferior_ptid directly, nor
1886 set_current_inferior/set_current_program_space. Use
1887 switch_to_thread / switch_to_inferior_no_thread instead.
1888
1889 2020-06-18 Pedro Alves <palves@redhat.com>
1890
1891 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1892 instead of writing to inferior_ptid.
1893
1894 2020-06-18 Pedro Alves <palves@redhat.com>
1895
1896 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1897 added thread.
1898 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1899 to the added thread.
1900 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1901 instead of writing to inferior_ptid.
1902
1903 2020-06-18 Pedro Alves <palves@redhat.com>
1904
1905 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1906 (register_to_value_test): Mock a program_space too. Heap-allocate
1907 the address space. Don't write to inferior_ptid. Use
1908 switch_to_thread instead.
1909
1910 2020-06-18 Pedro Alves <palves@redhat.com>
1911
1912 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1913 Delete.
1914 (find_signalled_thread()): New, factored out from
1915 linux_make_corefile_notes and adjusted to handle exited threads.
1916 (linux_make_corefile_notes): Adjust to use the new
1917 find_signalled_thread.
1918
1919 2020-06-18 Pedro Alves <palves@redhat.com>
1920
1921 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1922 of saving/restoring inferior_ptid.
1923
1924 2020-06-17 Tom Tromey <tom@tromey.com>
1925
1926 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1927 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1928 declare.
1929 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1930
1931 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1932
1933 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1934 of partial symtabs.
1935
1936 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1937
1938 * regformats/reg-arm.dat: Remove.
1939 * regformats/reg-bfin.dat: Remove.
1940 * regformats/reg-cris.dat: Remove.
1941 * regformats/reg-crisv32.dat: Remove.
1942 * regformats/reg-m32r.dat: Remove.
1943 * regformats/reg-tilegx.dat: Remove.
1944 * regformats/reg-tilegx32.dat: Remove.
1945
1946 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1947
1948 * features/Makefile (WHICH): Remove arm files.
1949 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1950 * regformats/arm/arm-with-neon.dat: Remove.
1951 * regformats/arm/arm-with-vfpv2.dat: Remove.
1952 * regformats/arm/arm-with-vfpv3.dat: Remove.
1953
1954 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1955
1956 * features/Makefile (XMLTOC): Remove rx.xml.
1957
1958 2020-06-17 Pedro Alves <palves@redhat.com>
1959
1960 * gdbthread.h (thread_control_state) <trap_expected> Update
1961 comments.
1962
1963 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1964
1965 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1966 ada_language::lookup_symbol_nonlocal.
1967 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1968 (ada_language::lookup_symbol_nonlocal): New member function,
1969 implementation from ada_lookup_symbol_nonlocal.
1970 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1971 initializer.
1972 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1973 initializer.
1974 (cplus_language::lookup_symbol_nonlocal): New member function.
1975 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1976 (minimal_language_data) Likewise.
1977 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1978 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1979 initializer.
1980 (d_language::lookup_symbol_nonlocal): New member function.
1981 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1982 initializer.
1983 (f_language::lookup_symbol_nonlocal): New member function.
1984 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1985 initializer.
1986 * language.c (unknown_language_data): Likewise.
1987 (auto_language_data): Likewise.
1988 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1989 field.
1990 (language_defn::lookup_symbol_nonlocal): New member function.
1991 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1992 initializer.
1993 * objc-lang.c (objc_language_data): Likewise.
1994 * opencl-lang.c (opencl_language_data): Likewise.
1995 * p-lang.c (pascal_language_data): Likewise.
1996 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1997 rust_language::lookup_symbol_nonlocal.
1998 (rust_language_data): Delete la_lookup_symbol_nonlocal
1999 initializer.
2000 (rust_language::lookup_symbol_nonlocal): New member function,
2001 implementation from rust_lookup_symbol_nonlocal.
2002 * symtab.c (lookup_symbol_aux): Update call to
2003 lookup_symbol_nonlocal.
2004 (basic_lookup_symbol_nonlocal): Rename to...
2005 (language_defn::lookup_symbol_nonlocal): ...this, and update
2006 header comment. Remove language_defn parameter, and replace with
2007 uses of `this'.
2008 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2009
2010 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2011
2012 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2013 initializer.
2014 (ada_language::value_print_inner): New member function.
2015 * c-lang.c (c_language_data): Delete la_value_print_inner
2016 initializer.
2017 (cplus_language_data): Likewise.
2018 (asm_language_data): Likewise.
2019 (minimal_language_data): Likewise.
2020 * d-lang.c (d_language_data): Likewise.
2021 (d_language::value_print_inner): New member function.
2022 * f-lang.c (f_language_data): Delete la_value_print_inner
2023 initializer.
2024 (f_language::value_print_inner): New member function.
2025 * f-lang.h (f_value_print_innner): Rename to...
2026 (f_value_print_inner): ...this (note spelling of 'inner').
2027 * f-valprint.c (f_value_print_innner): Rename to...
2028 (f_value_print_inner): ...this (note spelling of 'inner').
2029 * go-lang.c (go_language_data): Delete la_value_print_inner
2030 initializer.
2031 (go_language::value_print_inner): New member function.
2032 * language.c (language_defn::value_print_inner): Define new member
2033 function.
2034 (unk_lang_value_print_inner): Delete.
2035 (unknown_language_data): Delete la_value_print_inner initializer.
2036 (unknown_language::value_print_inner): New member function.
2037 (auto_language_data): Delete la_value_print_inner initializer.
2038 (auto_language::value_print_inner): New member function.
2039 * language.h (language_data): Delete la_value_print_inner field.
2040 (language_defn::value_print_inner): Delcare new member function.
2041 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2042 initializer.
2043 (m2_language::value_print_inner): New member function.
2044 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2045 initializer.
2046 * opencl-lang.c (opencl_language_data): Likewise.
2047 * p-lang.c (pascal_language_data): Likewise.
2048 (pascal_language::value_print_inner): New member function.
2049 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2050 initializer.
2051 (rust_language::value_print_inner): New member function.
2052 * valprint.c (do_val_print): Update call to value_print_inner.
2053
2054 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2055
2056 * ada-lang.c (ada_language_data): Delete la_value_print
2057 initializer.
2058 (ada_language::value_print): New member function.
2059 * c-lang.c (c_language_data): Delete la_value_print initializer.
2060 (cplus_language_data): Likewise.
2061 (asm_language_data): Likewise.
2062 (minimal_language_data): Likewise.
2063 * d-lang.c (d_language_data): Likewise.
2064 * f-lang.c (f_language_data): Likewise.
2065 * go-lang.c (go_language_data): Likewise.
2066 * language.c (unk_lang_value_print): Delete.
2067 (language_defn::value_print): Define new member function.
2068 (unknown_language_data): Delete la_value_print initializer.
2069 (unknown_language::value_print): New member function.
2070 (auto_language_data): Delete la_value_print initializer.
2071 (auto_language::value_print): New member function.
2072 * language.h (language_data): Delete la_value_print field.
2073 (language_defn::value_print): Declare new member function.
2074 (LA_VALUE_PRINT): Update call to value_print.
2075 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2076 * objc-lang.c (objc_language_data): Likewise.
2077 * opencl-lang.c (opencl_language_data): Likewise.
2078 * p-lang.c (pascal_language_data): Likewise.
2079 (pascal_language::value_print): New member function.
2080 * rust-lang.c (rust_language_data): Delete la_value_print
2081 initializer.
2082
2083 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2084
2085 * ada-lang.c (ada_watch_location_expression): Rename to
2086 ada_language::watch_location_expression.
2087 (ada_language_data): Delete la_watch_location_expression
2088 initializer.
2089 (ada_language::watch_location_expression): New member function,
2090 implementation from ada_watch_location_expression.
2091 * breakpoint.c (watch_command_1): Update call to
2092 watch_location_expression.
2093 * c-lang.c (c_watch_location_expression): Rename to
2094 language_defn::watch_location_expression.
2095 (c_language_data): Delete la_watch_location_expression
2096 initializer.
2097 (cplus_language_data): Likewise.
2098 (asm_language_data): Likewise.
2099 (minimal_language_data): Likewise.
2100 * c-lang.h (c_watch_location_expression): Delete declaration.
2101 * d-lang.c (d_language_data): Delete la_watch_location_expression
2102 initializer.
2103 * f-lang.c (f_language_data): Likewise.
2104 * go-lang.c (go_language_data): Likewise.
2105 * language.c (language_defn::watch_location_expression): Member
2106 function implementation from c_watch_location_expression.
2107 (unknown_language_data): Delete la_watch_location_expression
2108 initializer.
2109 (auto_language_data): Likewise.
2110 * language.h (language_data): Delete la_watch_location_expression
2111 field.
2112 (language_defn::watch_location_expression): Declare new member
2113 function.
2114 * m2-lang.c (m2_language_data): Delete
2115 la_watch_location_expression initializer.
2116 * objc-lang.c (objc_language_data): Likewise.
2117 * opencl-lang.c (opencl_language_data): Likewise.
2118 * p-lang.c (pascal_language_data): Likewise.
2119 * rust-lang.c (rust_watch_location_expression): Rename to
2120 rust_language::watch_location_expression.
2121 (rust_language_data): Delete la_watch_location_expression
2122 initializer.
2123 (rust_language::watch_location_expression): New member function,
2124 implementation from rust_watch_location_expression.
2125
2126 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2127
2128 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2129 ada_language::collect_symbol_completion_matches.
2130 (ada_language_data): Delete la_collect_symbol_completion_matches
2131 initializer.
2132 (ada_language::collect_symbol_completion_matches): New member
2133 function, implementation from
2134 ada_collect_symbol_completion_matches.
2135 * c-lang.c (c_language_data): Delete
2136 la_collect_symbol_completion_matches initializer.
2137 (cplus_language_data): Likewise.
2138 (asm_language_data): Likewise.
2139 (minimal_language_data): Likewise.
2140 * d-lang.c (d_language_data): Likewise.
2141 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2142 f_language::collect_symbol_completion_matches.
2143 (f_language_data): Delete la_collect_symbol_completion_matches
2144 initializer.
2145 (f_language::collect_symbol_completion_matches) New member
2146 function, implementation from f_collect_symbol_completion_matches.
2147 * go-lang.c (go_language_data): Delete
2148 la_collect_symbol_completion_matches initializer.
2149 * language.c (unknown_language_data): Likewise.
2150 (auto_language_data): Likewise.
2151 * language.h (language_data): Delete
2152 la_collect_symbol_completion_matches field.
2153 (language_defn::collect_symbol_completion_matches): New member
2154 function.
2155 * m2-lang.c (m2_language_data): Delete
2156 la_collect_symbol_completion_matches 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_language_data): Likewise.
2161 * symtab.c (default_collect_symbol_completion_matches): Delete.
2162 (collect_symbol_completion_matches): Update call to
2163 collect_symbol_completion_matches.
2164 (collect_symbol_completion_matches_type): Likewise.
2165 * symtab.h (default_collect_symbol_completion_matches): Delete
2166 declaration.
2167
2168 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2169
2170 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2171 (ada_language_data): Delete la_word_break_characters initializer.
2172 (ada_language::word_break_characters): New member function.
2173 * c-lang.c (c_language_data): Delete la_word_break_characters
2174 initializer.
2175 (cplus_language_data): Likewise.
2176 (asm_language_data): Likewise.
2177 (minimal_language_data): Likewise.
2178 * completer.c: Update global comment.
2179 (advance_to_expression_complete_word_point): Update call to
2180 word_break_characters.
2181 (complete_files_symbols): Likewise.
2182 (complete_line_internal_1): Likewise.
2183 (default_completer_handle_brkchars): Likewise.
2184 (skip_quoted_chars): Likewise.
2185 * d-lang.c (d_language_data): Delete la_word_break_characters
2186 initializer.
2187 * f-lang.c (f_word_break_characters): Delete.
2188 (f_language_data): Delete la_word_break_characters initializer.
2189 (f_language::word_break_characters): New member function.
2190 * go-lang.c (go_language_data): Delete la_word_break_characters
2191 initializer.
2192 * language.c (unknown_language_data): Likewise.
2193 (auto_language_data): Likewise.
2194 * language.h (default_word_break_characters): Move declaration to
2195 earlier in the file.
2196 (language_data): Delete la_word_break_characters field.
2197 (language_defn::word_break_characters): New member function.
2198 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2199 initializer.
2200 * objc-lang.c (objc_language_data): Likewise.
2201 * opencl-lang.c (opencl_language_data): Likewise.
2202 * p-lang.c (pascal_language_data): Likewise.
2203 * rust-lang.c (rust_language_data): Likewise.
2204
2205 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2206
2207 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2208 (ada_language_data): Delete la_get_symbol_name_matcher
2209 initializer.
2210 (language_defn::get_symbol_name_matcher_inner): New member
2211 function.
2212 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2213 initializer.
2214 (cplus_language_data): Likewise.
2215 (cplus_language::get_symbol_name_matcher_inner): New member
2216 function.
2217 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2218 (minimal_language_data): Likewise.
2219 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2220 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2221 initializer.
2222 * dictionary.c (iter_match_first_hashed): Update call to
2223 get_symbol_name_matcher.
2224 (iter_match_next_hashed): Likewise.
2225 (iter_match_next_linear): Likewise.
2226 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2227 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2228 initializer.
2229 (f_language::get_symbol_name_matcher_inner): New member function.
2230 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2231 initializer.
2232 * language.c (default_symbol_name_matcher): Update header comment,
2233 make static.
2234 (language_defn::get_symbol_name_matcher): New definition.
2235 (language_defn::get_symbol_name_matcher_inner): Likewise.
2236 (get_symbol_name_matcher): Delete.
2237 (unknown_language_data): Delete la_get_symbol_name_matcher
2238 initializer.
2239 (auto_language_data): Likewise.
2240 * language.h (language_data): Delete la_get_symbol_name_matcher
2241 field.
2242 (language_defn::get_symbol_name_matcher): New member function.
2243 (language_defn::get_symbol_name_matcher_inner): Likewise.
2244 (default_symbol_name_matcher): Delete declaration.
2245 * linespec.c (find_methods): Update call to
2246 get_symbol_name_matcher.
2247 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2248 initializer.
2249 * minsyms.c (lookup_minimal_symbol): Update call to
2250 get_symbol_name_matcher.
2251 (iterate_over_minimal_symbols): Likewise.
2252 * objc-lang.c (objc_language_data): Delete
2253 la_get_symbol_name_matcher initializer.
2254 * opencl-lang.c (opencl_language_data): Likewise.
2255 * p-lang.c (pascal_language_data): Likewise.
2256 * psymtab.c (psymbol_name_matches): Update call to
2257 get_symbol_name_matcher.
2258 * rust-lang.c (rust_language_data): Delete
2259 la_get_symbol_name_matcher initializer.
2260 * symtab.c (symbol_matches_search_name): Update call to
2261 get_symbol_name_matcher.
2262 (compare_symbol_name): Likewise.
2263
2264 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2265
2266 * ada-lang.c (ada_language_data): Delete la_compute_program
2267 initializer.
2268 * c-lang.c (c_language_data): Likewise.
2269 (c_language::compute_program): New member function.
2270 (cplus_language_data): Delete la_compute_program initializer.
2271 (cplus_language::compute_program): New member function.
2272 (asm_language_data): Delete la_compute_program initializer.
2273 (minimal_language_data): Likewise.
2274 * c-lang.h (c_compute_program): Update comment.
2275 (cplus_compute_program): Likewise.
2276 * compile/compile-c-support.c (c_compute_program): Likewise.
2277 (cplus_compute_program): Likewise.
2278 * compile/compile.c (compile_to_object): Update call to
2279 la_compute_program.
2280 * d-lang.c (d_language_data): Delete la_compute_program
2281 initializer.
2282 * f-lang.c (f_language_data): Likewise.
2283 * go-lang.c (go_language_data): Likewise.
2284 * language.c (unknown_language_data): Likewise.
2285 (auto_language_data): Likewise.
2286 * language.h (language_data): Delete la_compute_program field.
2287 (language_defn::compute_program): New member function.
2288 * m2-lang.c (m2_language_data): Delete la_compute_program
2289 initializer.
2290 * objc-lang.c (objc_language_data): Likewise.
2291 * opencl-lang.c (opencl_language_data): Likewise.
2292 * p-lang.c (pascal_language_data): Likewise.
2293 * rust-lang.c (rust_language_data): Likewise.
2294
2295 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2296
2297 * ada-lang.c (ada_language_data) Delete
2298 la_class_name_from_physname initializer.
2299 * c-lang.c (c_language_data): Likewise.
2300 (cplus_language_data): Likewise.
2301 (cplus_language::class_name_from_physname): New member function.
2302 (asm_language_data): Delete la_class_name_from_physname
2303 initializer.
2304 (minimal_language_data): Likewise.
2305 * d-lang.c (d_language_data): Likewise.
2306 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2307 method on language_defn class.
2308 (guess_full_die_structure_name): Likewise.
2309 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2310 initializer.
2311 * go-lang.c (go_language_data): Likewise.
2312 * language.c (language_class_name_from_physname): Delete.
2313 (unk_lang_class_name): Delete.
2314 (unknown_language_data): Delete la_class_name_from_physname
2315 initializer.
2316 (auto_language_data): Likewise.
2317 * language.h (language_data): Delete la_class_name_from_physname
2318 field.
2319 (language_defn::class_name_from_physname): New function.
2320 (language_class_name_from_physname): Delete declaration.
2321 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2322 initializer.
2323 * objc-lang.c (objc_language_data): Likewise.
2324 * opencl-lang.c (opencl_language_data): Likewise.
2325 * p-lang.c (pascal_language_data): Likewise.
2326 * rust-lang.c (rust_language_data): Likewise.
2327
2328 2020-06-16 Tom Tromey <tom@tromey.com>
2329
2330 * tui/tui-data.h (STATUS_NAME): New macro.
2331 * tui/tui-layout.c (tui_remove_some_windows)
2332 (initialize_known_windows, tui_register_window)
2333 (tui_layout_split::remove_windows, initialize_layouts)
2334 (tui_new_layout_command): Don't use hard-coded window names.
2335
2336 2020-06-16 Tom Tromey <tom@tromey.com>
2337
2338 PR tui/25348:
2339 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2340 tui_initialize_readline. Only run once. Call rl_initialize.
2341 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2342 tui_initialize_readline.
2343 * tui/tui-io.c (tui_setup_io): Call
2344 tui_ensure_readline_initialized.
2345 * tui/tui-interp.c (tui_interp::init): Update.
2346
2347 2020-06-16 Tom Tromey <tom@tromey.com>
2348
2349 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2350 Also preserve the status window.
2351
2352 2020-06-16 Tom Tromey <tom@tromey.com>
2353
2354 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2355 where m_window==nullptr.
2356
2357 2020-06-15 Tom Tromey <tromey@adacore.com>
2358
2359 * windows-nat.c (windows_nat::handle_output_debug_string):
2360 Update.
2361 (windows_nat::handle_ms_vc_exception): Update.
2362 * target.h (target_read_string): Change API.
2363 * target.c (target_read_string): Change API.
2364 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2365 Update.
2366 * solib-frv.c (frv_current_sos): Update.
2367 * solib-dsbt.c (dsbt_current_sos): Update.
2368 * solib-darwin.c (darwin_current_sos): Update.
2369 * linux-thread-db.c (inferior_has_bug): Update.
2370 * expprint.c (print_subexp_standard): Update.
2371 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2372 (ada_exception_message_1): Update.
2373
2374 2020-06-15 Tom Tromey <tromey@adacore.com>
2375
2376 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2377
2378 2020-06-15 Tom Tromey <tromey@adacore.com>
2379
2380 * valprint.c (read_string): Update comment.
2381 * target.c (MIN): Remove.
2382 (target_read_string): Rewrite.
2383
2384 2020-06-15 Tom Tromey <tromey@adacore.com>
2385
2386 * corefile.c (read_memory_string): Remove.
2387 * ada-valprint.c (ada_value_print_ptr): Update.
2388 * ada-lang.h (ada_tag_name): Change return type.
2389 * ada-lang.c (type_from_tag): Update.
2390 (ada_tag_name_from_tsd): Change return type. Use
2391 target_read_string.
2392 (ada_tag_name): Likewise.
2393 * gdbcore.h (read_memory_string): Don't declare.
2394
2395 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2396
2397 * symtab.c (rbreak_command): Ignore Windows drive colon.
2398
2399 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2400
2401 * NEWS: Mention removed GDBserver host support.
2402
2403 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2404
2405 * features/riscv/rebuild-csr-xml.sh: Updated.
2406
2407 2020-06-11 Tom Tromey <tom@tromey.com>
2408
2409 PR gdb/18318:
2410 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2411
2412 2020-06-09 Jonny Grant <jg@jguk.org>
2413 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2414
2415 * main.c (captured_main_1): Don't print new line after help.
2416 (print_gdb_help): add mailing list and IRC channel information
2417 to --help. Add new lines between items in the footer. Remove
2418 quotes around bug url.
2419
2420 2020-06-11 Keith Seitz <keiths@redhat.com>
2421
2422 PR gdb/21356
2423 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2424 Resolve typedefs for type length calculations.
2425
2426 2020-06-10 Tom de Vries <tdevries@suse.de>
2427
2428 PR ada/24713
2429 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2430 (write_psymbols): Enable .gdb_index for ada.
2431 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2432 ada.
2433
2434 2020-06-10 Tom de Vries <tdevries@suse.de>
2435
2436 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2437 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2438 namei" instead of "const char *name" argument.
2439 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2440 dw2_symtab_iter_init.
2441
2442 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2443
2444 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2445 to use type::field and field::type instead.
2446
2447 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2448
2449 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2450 to use field::type instead.
2451
2452 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2453
2454 * gdbtypes.h (struct field) <type, set_type>: New methods.
2455 Rename `type` field to...
2456 <m_type>: ... this. Change references throughout to use type or
2457 set_type methods.
2458 (FIELD_TYPE): Use field::type. Change call sites that modify
2459 the field's type to use field::set_type instead.
2460
2461 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2462
2463 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2464 to use type::index_type instead.
2465
2466 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2467
2468 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2469 methods.
2470 (TYPE_INDEX_TYPE): Use type::index_type.
2471 * gdbtypes.c (create_array_type_with_stride): Likewise.
2472
2473 2020-06-07 Tom Tromey <tom@tromey.com>
2474
2475 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2476 parameter.
2477 (generic_value_print): Update.
2478
2479 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2480
2481 Revert commit 982a38f60b0.
2482 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2483
2484 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2485
2486 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2487 avoid use after free.
2488
2489 2020-06-05 Tom de Vries <tdevries@suse.de>
2490
2491 * NEWS: Fix typos.
2492
2493 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2494
2495 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2496 the per_bfd object.
2497 (dwarf2_read_debug_names): Likewise.
2498 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2499 object when re-using a per_bfd object with an index.
2500
2501 2020-06-03 Tom de Vries <tdevries@suse.de>
2502
2503 PR symtab/26046
2504 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2505 children for C++.
2506 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2507 DW_TAG_subprogram.
2508
2509 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2510
2511 * ada-lang.c (ada_language_data): Delete skip_trampoline
2512 initializer.
2513 * c-lang.c (c_language_data): Likewise.
2514 (cplus_language_data): Likewise.
2515 (cplus_language::skip_trampoline): New member function.
2516 (asm_language_data): Delete skip_trampoline initializer.
2517 (minimal_language_data): Likewise.
2518 * d-lang.c (d_language_data): Likewise.
2519 * f-lang.c (f_language_data): Likewise.
2520 * go-lang.c (go_language_data): Likewise.
2521 * language.c (unk_lang_trampoline): Delete function.
2522 (skip_language_trampoline): Update.
2523 (unknown_language_data): Delete skip_trampoline initializer.
2524 (auto_language_data): Likewise.
2525 * language.h (language_data): Delete skip_trampoline field.
2526 (language_defn::skip_trampoline): New function.
2527 * m2-lang.c (m2_language_data): Delete skip_trampoline
2528 initializer.
2529 * objc-lang.c (objc_skip_trampoline): Delete function, move
2530 implementation to objc_language::skip_trampoline.
2531 (objc_language_data): Delete skip_trampoline initializer.
2532 (objc_language::skip_trampoline): New member function with
2533 implementation from objc_skip_trampoline.
2534 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2535 initializer.
2536 * p-lang.c (pascal_language_data): Likewise.
2537 * rust-lang.c (rust_language_data): Likewise.
2538
2539 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2540
2541 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2542 (ada_language::demangle): New member function.
2543 * c-lang.c (c_language_data): Delete la_demangle initializer.
2544 (cplus_language_data): Delete la_demangle initializer.
2545 (cplus_language::demangle): New member function.
2546 (asm_language_data): Delete la_demangle initializer.
2547 (minimal_language_data): Delete la_demangle initializer.
2548 * d-lang.c (d_language_data): Delete la_demangle initializer.
2549 (d_language::demangle): New member function.
2550 * f-lang.c (f_language_data): Delete la_demangle initializer.
2551 (f_language::demangle): New member function.
2552 * go-lang.c (go_language_data): Delete la_demangle initializer.
2553 (go_language::demangle): New member function.
2554 * language.c (language_demangle): Update.
2555 (unk_lang_demangle): Delete.
2556 (unknown_language_data): Delete la_demangle initializer.
2557 (unknown_language::demangle): New member function.
2558 (auto_language_data): Delete la_demangle initializer.
2559 (auto_language::demangle): New member function.
2560 * language.h (language_data): Delete la_demangle field.
2561 (language_defn::demangle): New function.
2562 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2563 * objc-lang.c (objc_language_data): Delete la_demangle
2564 initializer.
2565 (objc_language::demangle): New member function.
2566 * opencl-lang.c (opencl_language_data): Delete la_demangle
2567 initializer.
2568 * p-lang.c (pascal_language_data): Likewise.
2569 * rust-lang.c (rust_language_data): Likewise.
2570 (rust_language::demangle): New member function.
2571
2572 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2573
2574 * ada-lang.c (ada_language_data): Delete la_print_type
2575 initializer.
2576 (ada_language::print_type): New member function.
2577 * c-lang.c (c_language_data): Delete la_print_type initializer.
2578 (c_language::print_type): New member function.
2579 (cplus_language_data): Delete la_print_type initializer.
2580 (cplus_language::print_type): New member function.
2581 (asm_language_data): Delete la_print_type initializer.
2582 (asm_language::print_type): New member function.
2583 (minimal_language_data): Delete la_print_type initializer.
2584 (minimal_language::print_type): New member function.
2585 * d-lang.c (d_language_data): Delete la_print_type initializer.
2586 (d_language::print_type): New member function.
2587 * f-lang.c (f_language_data): Delete la_print_type initializer.
2588 (f_language::print_type): New member function.
2589 * go-lang.c (go_language_data): Delete la_print_type initializer.
2590 (go_language::print_type): New member function.
2591 * language.c (unk_lang_print_type): Delete.
2592 (unknown_language_data): Delete la_print_type initializer.
2593 (unknown_language::print_type): New member function.
2594 (auto_language_data): Delete la_print_type initializer.
2595 (auto_language::print_type): New member function.
2596 * language.h (language_data): Delete la_print_type field.
2597 (language_defn::print_type): New function.
2598 (LA_PRINT_TYPE): Update.
2599 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2600 (m2_language::print_type): New member function.
2601 * objc-lang.c (objc_language_data): Delete la_print_type
2602 initializer.
2603 (objc_language::print_type): New member function.
2604 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2605 to opencl_language::print_type.
2606 (opencl_language_data): Delete la_print_type initializer.
2607 (opencl_language::print_type): New member function, implementation
2608 from opencl_print_type.
2609 * p-lang.c (pascal_language_data): Delete la_print_type
2610 initializer.
2611 (pascal_language::print_type): New member function.
2612 * rust-lang.c (rust_print_type): Delete, implementation moved to
2613 rust_language::print_type.
2614 (rust_language_data): Delete la_print_type initializer.
2615 (rust_language::print_type): New member function, implementation
2616 from rust_print_type.
2617
2618 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2619
2620 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2621 implementation moves to...
2622 (ada_language::sniff_from_mangled_name): ...here. Update return
2623 type.
2624 (ada_language_data): Delete la_sniff_from_mangled_name
2625 initializer.
2626 * c-lang.c (c_language_data): Likewise.
2627 (cplus_language_data): Likewise.
2628 (cplus_language::sniff_from_mangled_name): New member function,
2629 implementation taken from gdb_sniff_from_mangled_name.
2630 (asm_language_data): Delete la_sniff_from_mangled_name
2631 initializer.
2632 (minimal_language_data): Likewise.
2633 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2634 implementation moves to cplus_language::sniff_from_mangled_name.
2635 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2636 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2637 moves to...
2638 (d_language::sniff_from_mangled_name): ...here.
2639 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2640 * f-lang.c (f_language_data): Likewise.
2641 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2642 moves to...
2643 (go_language::sniff_from_mangled_name): ...here.
2644 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2645 * language.c (language_sniff_from_mangled_name): Delete.
2646 (unknown_language_data): Delete la_sniff_from_mangled_name
2647 initializer.
2648 (auto_language_data): Likewise.
2649 * language.h (language_data): Delete la_sniff_from_mangled_name
2650 field.
2651 (language_defn::sniff_from_mangled_name): New function.
2652 (language_sniff_from_mangled_name): Delete declaration.
2653 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2654 field.
2655 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2656 implementation moves to...
2657 (objc_language::sniff_from_mangled_name): ...here.
2658 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2659 * opencl-lang.c (opencl_language_data): Likewise.
2660 * p-lang.c (pascal_language_data): Likewise.
2661 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2662 implementation moves to...
2663 (rust_language::sniff_from_mangled_name): ...here.
2664 (rust_language_data): Delete la_sniff_from_mangled_name
2665 initializer.
2666 * symtab.c (symbol_find_demangled_name): Call
2667 sniff_from_mangled_name member function.
2668
2669 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2670
2671 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2672 initializer.
2673 * c-lang.c (c_language_data): Likewise.
2674 (cplus_language_data): Likewise.
2675 (cplus_language::search_name_hash): New member function.
2676 (asm_language_data): Delete la_search_name_hash initializer.
2677 (minimal_language_data): Likewise.
2678 * d-lang.c (d_language_data): Likewise.
2679 * dictionary.c (default_search_name_hash): Rename to...
2680 (language_defn::search_name_hash): ...this.
2681 * f-lang.c (f_language_data): Likewise.
2682 (f_language::search_name_hash): New member function.
2683 * go-lang.c (go_language_data): Delete la_search_name_hash
2684 initializer.
2685 * language.c (unknown_language_data): Likewise.
2686 (auto_language_data): Likewise.
2687 * language.h (struct language_data): Delete la_search_name_hash
2688 field.
2689 (language_defn::search_name_hash): Declare new member function.
2690 (default_search_name_hash): Delete declaration.
2691 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2692 initializer.
2693 * objc-lang.c (objc_language_data): Likewise.
2694 * opencl-lang.c (opencl_language_data): Likewise.
2695 * p-lang.c (pascal_language_data): Likewise.
2696 * rust-lang.c (rust_language_data): Likewise.
2697 * symtab.c (search_name_hash): Update call.
2698
2699 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2700
2701 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2702 initializer.
2703 * c-lang.c (class compile_instance): Declare.
2704 (c_language_data): Delete la_get_compile_instance initializer.
2705 (c_language::get_compile_instance): New member function.
2706 (cplus_language_data): Delete la_get_compile_instance initializer.
2707 (cplus_language::get_compile_instance): New member function.
2708 (asm_language_data): Delete la_get_compile_instance initializer.
2709 (minimal_language_data): Likewise.
2710 * c-lang.h (c_get_compile_context): Update comment.
2711 (cplus_get_compile_context): Update comment.
2712 * compile/compile.c (compile_to_object): Update calls, don't rely
2713 on function pointer being NULL.
2714 * d-lang.c (d_language_data): Delete la_get_compile_instance
2715 initializer.
2716 * f-lang.c (f_language_data): Likewise.
2717 * go-lang.c (go_language_data): Likewise.
2718 * language.c (unknown_language_data): Likewise.
2719 (auto_language_data): Likewise.
2720 * language.h (language_data): Delete la_get_compile_instance field.
2721 (language_defn::get_compile_instance): New member function.
2722 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2723 initializer.
2724 * objc-lang.c (objc_language_data): Likewise.
2725 * opencl-lang.c (opencl_language_data): Likewise.
2726 * p-lang.c (pascal_language_data): Likewise.
2727 * rust-lang.c (rust_language_data): Likewise.
2728
2729 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2730
2731 * ada-lang.c (ada_add_all_symbols): Update comment.
2732 (ada_iterate_over_symbols): Delete, move implementation to...
2733 (ada_language::iterate_over_symbols): ...here, a new member
2734 function, rewrite to use range based for loop.
2735 (ada_language_data): Delete la_iterate_over_symbols initializer.
2736 * c-lang.c (c_language_data): Likewise.
2737 (cplus_language_data): Likewise.
2738 (asm_language_data): Likewise.
2739 (minimal_language_data): Likewise.
2740 * d-lang.c (d_language_data): Likewise.
2741 * f-lang.c (f_language_data): Likewise.
2742 * go-lang.c (go_language_data): Likewise.
2743 * language.c (unknown_language_data): Likewise.
2744 (auto_language_data): Likewise.
2745 * language.h (language_data): Delete la_iterate_over_symbols field.
2746 (language_defn::iterate_over_symbols): New member function.
2747 (LA_ITERATE_OVER_SYMBOLS): Update.
2748 * linespec.c (iterate_over_all_matching_symtabs): Update.
2749 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2750 initializer.
2751 * objc-lang.c (objc_language_data): Likewise.
2752 * opencl-lang.c (opencl_language_data): Likewise.
2753 * p-lang.c (pascal_language_data): Likewise.
2754 * rust-lang.c (rust_language_data): Likewise.
2755
2756 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2757
2758 * ada-lang.c (ada_language_data): Delete
2759 la_lookup_transparent_type initializer.
2760 * c-lang.c (c_language_data): Likewise.
2761 (cplus_language_data): Likewise.
2762 (cplus_language::lookup_transparent_type): New member function.
2763 (asm_language_data): Delete la_lookup_transparent_type
2764 initializer.
2765 (minimal_language_data): Likewise.
2766 * d-lang.c (d_language_data): Likewise.
2767 * f-lang.c (f_language_data): Likewise.
2768 * go-lang.c (go_language_data): Likewise.
2769 * language.c (unknown_language_data): Likewise.
2770 (auto_language_data): Likewise.
2771 * language.h (struct language_data): Delete
2772 la_lookup_transparent_type field.
2773 (language_defn::lookup_transparent_type): New member function.
2774 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2775 initializer.
2776 * objc-lang.c (objc_language_data): Likewise.
2777 * opencl-lang.c (opencl_language_data): Likewise.
2778 * p-lang.c (pascal_language_data): Likewise.
2779 * rust-lang.c (rust_language_data): Likewise.
2780 * symtab.c (symbol_matches_domain): Update call.
2781
2782 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2783
2784 * ada-lang.c (ada_language_arch_info): Delete function, move
2785 implementation to...
2786 (ada_language::language_arch_info): ...here, a new member
2787 function.
2788 (ada_language_data): Delete la_language_arch_info.
2789 * c-lang.c (c_language_data): Likewise.
2790 (c_language::language_arch_info): New member function.
2791 (cplus_language_arch_info): Delete function, move
2792 implementation to...
2793 (cplus_language::language_arch_info): ...here, a new member
2794 function.
2795 (cplus_language_data): Delete la_language_arch_info.
2796 (asm_language_data): Likewise.
2797 (asm_language::language_arch_info): New member function.
2798 (minimal_language_data): Delete la_language_arch_info.
2799 (minimal_language::language_arch_info): New member function.
2800 * d-lang.c (d_language_arch_info): Delete function, move
2801 implementation to...
2802 (d_language::language_arch_info): ...here, a new member
2803 function.
2804 (d_language_data): Delete la_language_arch_info.
2805 * f-lang.c (f_language_arch_info): Delete function, move
2806 implementation to...
2807 (f_language::language_arch_info): ...here, a new member
2808 function.
2809 (f_language_data): Delete la_language_arch_info.
2810 * go-lang.c (go_language_arch_info): Delete function, move
2811 implementation to...
2812 (go_language::language_arch_info): ...here, a new member
2813 function.
2814 (go_language_data): Delete la_language_arch_info.
2815 * language.c (unknown_language_data): Likewise.
2816 (unknown_language::language_arch_info): New member function.
2817 (auto_language_data): Delete la_language_arch_info.
2818 (auto_language::language_arch_info): New member function.
2819 (language_gdbarch_post_init): Update call to
2820 la_language_arch_info.
2821 * language.h (language_data): Delete la_language_arch_info
2822 function pointer.
2823 (language_defn::language_arch_info): New function.
2824 * m2-lang.c (m2_language_arch_info): Delete function, move
2825 implementation to...
2826 (m2_language::language_arch_info): ...here, a new member
2827 function.
2828 (m2_language_data): Delete la_language_arch_info.
2829 * objc-lang.c (objc_language_arch_info): Delete function, move
2830 implementation to...
2831 (objc_language::language_arch_info): ...here, a new member
2832 function.
2833 (objc_language_data): Delete la_language_arch_info.
2834 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2835 implementation to...
2836 (opencl_language::language_arch_info): ...here, a new member
2837 function.
2838 (opencl_language_data): Delete la_language_arch_info.
2839 * p-lang.c (pascal_language_arch_info): Delete function, move
2840 implementation to...
2841 (pascal_language::language_arch_info): ...here, a new member
2842 function.
2843 (pascal_language_data): Delete la_language_arch_info.
2844 * rust-lang.c (rust_language_arch_info): Delete function, move
2845 implementation to...
2846 (rust_language::language_arch_info): ...here, a new member
2847 function.
2848 (rust_language_data): Delete la_language_arch_info.
2849
2850 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2851
2852 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2853 initializer.
2854 * c-lang.c (c_language_data): Likewise.
2855 (cplus_language_data): Likewise.
2856 (cplus_language::pass_by_reference_info): New method.
2857 (asm_language_data): Delete la_pass_by_reference initializer.
2858 (minimal_language_data): Likewise.
2859 * cp-abi.c (cp_pass_by_reference): Remove use of
2860 default_pass_by_reference.
2861 * d-lang.c (d_language_data): Likewise.
2862 * f-lang.c (f_language_data): Likewise.
2863 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2864 default_pass_by_reference.
2865 * go-lang.c (go_language_data): Likewise.
2866 * language.c (language_pass_by_reference): Update.
2867 (default_pass_by_reference): Delete.
2868 (unknown_language_data): Delete la_pass_by_reference
2869 initializer.
2870 (auto_language_data): Likewise.
2871 * language.h (struct language_data): Delete la_pass_by_reference
2872 field.
2873 (language_defn::pass_by_reference_info): New member function.
2874 (default_pass_by_reference): Delete declaration.
2875 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2876 initializer.
2877 * objc-lang.c (objc_language_data): Likewise.
2878 * opencl-lang.c (opencl_language_data): Likewise.
2879 * p-lang.c (pascal_language_data): Likewise.
2880 * rust-lang.c (rust_language_data): Likewise.
2881
2882 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2883
2884 * ada-lang.c (ada_read_var_value): Delete function, move
2885 implementation to...
2886 (ada_language::read_var_value): ...here.
2887 (ada_language_data): Delete la_read_var_value initializer.
2888 * c-lang.c (c_language_data): Likewise.
2889 (cplus_language_data): Likewise.
2890 (minimal_language_data): Likewise.
2891 * d-lang.c (d_language_data): Likewise.
2892 * f-lang.c (f_language_data): Likewise.
2893 * findvar.c (default_read_var_value): Rename to...
2894 (language_defn::read_var_value): ...this.
2895 * findvar.c (read_var_value): Update header comment, and change to
2896 call member function instead of function pointer.
2897 * go-lang.c (go_language_data): Likewise.
2898 * language.c (unknown_language_data): Delete la_read_var_value
2899 initializer.
2900 (auto_language_data): Likewise.
2901 * language.h (struct language_data): Delete la_read_var_value
2902 field.
2903 (language_defn::read_var_value): New member function.
2904 (default_read_var_value): Delete declaration.
2905 * m2-lang.c (m2_language_data): Delete la_read_var_value
2906 initializer.
2907 * objc-lang.c (objc_language_data): Likewise.
2908 * opencl-lang.c (opencl_language_data): Likewise.
2909 * p-lang.c (pascal_language_data): Likewise.
2910 * rust-lang.c (rust_language_data): Likewise.
2911 * value.h (default_read_var_value): Delete declaration.
2912
2913 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2914
2915 * ada-lang.c (ada_print_array_index): Delete function, move
2916 implementation to...
2917 (ada_language::print_array_index): ...here.
2918 (ada_language_data): Delete la_print_array_index initializer.
2919 * c-lang.c (c_language_data): Likewise.
2920 (cplus_language_data): Likewise.
2921 (minimal_language_data): Likewise.
2922 * d-lang.c (d_language_data): Likewise.
2923 * f-lang.c (f_language_data): Likewise.
2924 * go-lang.c (go_language_data): Likewise.
2925 * language.c (default_print_array_index): Delete function, move
2926 implementation to...
2927 (language_defn::print_array_index): ...here.
2928 (unknown_language_data): Delete la_print_array_index initializer.
2929 (auto_language_data): Likewise.
2930 * language.h (struct language_data): Delete la_print_array_index
2931 field.
2932 (language_defn::print_array_index): New member function.
2933 (LA_PRINT_ARRAY_INDEX): Update.
2934 (default_print_array_index): Delete declaration.
2935 * m2-lang.c (m2_language_data): Delete la_print_array_index
2936 initializer.
2937 * objc-lang.c (objc_language_data): Likewise.
2938 * opencl-lang.c (opencl_language_data): Likewise.
2939 * p-lang.c (pascal_language_data): Likewise.
2940 * rust-lang.c (rust_language_data): Likewise.
2941
2942 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2943
2944 * gdb/ada-lang.c (ada_language_defn): Convert to...
2945 (ada_language_data): ...this.
2946 (class ada_language): New class.
2947 (ada_language_defn): New static global.
2948 * gdb/c-lang.c (c_language_defn): Convert to...
2949 (c_language_data): ...this.
2950 (class c_language): New class.
2951 (c_language_defn): New static global.
2952 (cplus_language_defn): Convert to...
2953 (cplus_language_data): ...this.
2954 (class cplus_language): New class.
2955 (cplus_language_defn): New static global.
2956 (asm_language_defn): Convert to...
2957 (asm_language_data): ...this.
2958 (class asm_language): New class.
2959 (asm_language_defn): New static global.
2960 (minimal_language_defn): Convert to...
2961 (minimal_language_data): ...this.
2962 (class minimal_language): New class.
2963 (minimal_language_defn): New static global.
2964 * gdb/d-lang.c (d_language_defn): Convert to...
2965 (d_language_data): ...this.
2966 (class d_language): New class.
2967 (d_language_defn): New static global.
2968 * gdb/f-lang.c (f_language_defn): Convert to...
2969 (f_language_data): ...this.
2970 (class f_language): New class.
2971 (f_language_defn): New static global.
2972 * gdb/go-lang.c (go_language_defn): Convert to...
2973 (go_language_data): ...this.
2974 (class go_language): New class.
2975 (go_language_defn): New static global.
2976 * gdb/language.c (unknown_language_defn): Remove declaration.
2977 (current_language): Initialize to nullptr, real initialization is
2978 moved to _initialize_language.
2979 (languages): Delete global.
2980 (language_defn::languages): Define.
2981 (set_language_command): Use language_defn::languages.
2982 (set_language): Likewise.
2983 (range_error): Likewise.
2984 (language_enum): Likewise.
2985 (language_def): Likewise.
2986 (add_set_language_command): Use language_def::languages for the
2987 language list, and language_def to lookup language pointers.
2988 (skip_language_trampoline): Use language_defn::languages.
2989 (unknown_language_defn): Convert to...
2990 (unknown_language_data): ...this.
2991 (class unknown_language): New class.
2992 (unknown_language_defn): New static global.
2993 (auto_language_defn): Convert to...
2994 (auto_language_data): ...this.
2995 (class auto_language): New class.
2996 (auto_language_defn): New static global.
2997 (language_gdbarch_post_init): Use language_defn::languages.
2998 (_initialize_language): Initialize current_language.
2999 * gdb/language.h (struct language_defn): Rename to...
3000 (struct language_data): ...this.
3001 (struct language_defn): New.
3002 (auto_language_defn): Delete.
3003 (unknown_language_defn): Delete.
3004 (minimal_language_defn): Delete.
3005 (ada_language_defn): Delete.
3006 (asm_language_defn): Delete.
3007 (c_language_defn): Delete.
3008 (cplus_language_defn): Delete.
3009 (d_language_defn): Delete.
3010 (f_language_defn): Delete.
3011 (go_language_defn): Delete.
3012 (m2_language_defn): Delete.
3013 (objc_language_defn): Delete.
3014 (opencl_language_defn): Delete.
3015 (pascal_language_defn): Delete.
3016 (rust_language_defn): Delete.
3017 * gdb/m2-lang.c (m2_language_defn): Convert to...
3018 (m2_language_data): ...this.
3019 (class m2_language): New class.
3020 (m2_language_defn): New static global.
3021 * gdb/objc-lang.c (objc_language_defn): Convert to...
3022 (objc_language_data): ...this.
3023 (class objc_language): New class.
3024 (objc_language_defn): New static global.
3025 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3026 (opencl_language_data): ...this.
3027 (class opencl_language): New class.
3028 (opencl_language_defn): New static global.
3029 * gdb/p-lang.c (pascal_language_defn): Convert to...
3030 (pascal_language_data): ...this.
3031 (class pascal_language): New class.
3032 (pascal_language_defn): New static global.
3033 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3034 language pointer, update comment format.
3035 * gdb/rust-lang.c (rust_language_defn): Convert to...
3036 (rust_language_data): ...this.
3037 (class rust_language): New class.
3038 (rust_language_defn): New static global.
3039
3040 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3041
3042 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3043 member variable.
3044 <m_stmt_at_address>: New member variable.
3045 (lnp_state_machine::record_line): Don't record some lines, update
3046 tracking of is_stmt at the same address.
3047 (lnp_state_machine::lnp_state_machine): Initialise new member
3048 variables.
3049
3050 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3051
3052 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3053 "-include gnu-nat-mig.h".
3054 * gnu-nat-mig.h: New file.
3055 * gnu-nat.c: Include "gnu-nat-mig.h".
3056 (exc_server, msg_reply_server, notify_server,
3057 process_reply_server): Remove declarations.
3058
3059 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3060
3061 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3062 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3063 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3064 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3065 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3066 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3067 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3068 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3069 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3070 to gnu_nat_target class.
3071 * gnu-nat.c: Likewise.
3072 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3073 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3074 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3075 object.
3076 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3077 instead of `gnu_target'.
3078
3079 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3080
3081 * i386-gnu-tdep.c: Include "gdbcore.h"
3082 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3083 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3084 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3085 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3086 i386_gnu_sigcontext_addr): New functions
3087 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3088 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3089 tdep.
3090
3091 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3092
3093 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3094 before fork_inferior call. Avoid calling it if target_is_pushed returns
3095 true.
3096
3097 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3098
3099 * gnu-nat.h (gnu_target): New variable declaration.
3100 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3101 gnu_target.
3102 * gnu-nat.c (gnu_target): New variable.
3103 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3104 add_thread_silent, and add_thread calls.
3105 (gnu_nat_target::create_inferior): Pass gnu_target to
3106 add_thread_silent, thread_change_ptid call.
3107 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3108 call.
3109
3110 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3111
3112 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3113 (gnu_nat_target::find_memory_regions): Remove unused
3114 `old_address' variable.
3115
3116 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3117
3118 * gnu-nat.c: Include "gdbarch.h".
3119
3120 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3121
3122 * reply_mig_hack.awk (Error return): Cast function through
3123 void *, to bypass compiler function call check.
3124
3125 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3126
3127 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3128 $(srcdir)/reply_mig_hack.awk.
3129
3130 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3131
3132 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3133
3134 2020-05-30 Jonny Grant <jg@jguk.org>
3135
3136 * configure.ac (ACX_BUGURL): change bug URL to https.
3137
3138 2020-05-30 Pedro Alves <palves@redhat.com>
3139
3140 * cp-support.c (replace_typedefs_template): New.
3141 (replace_typedefs_qualified_name): Handle
3142 DEMANGLE_COMPONENT_TEMPLATE.
3143
3144 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3145
3146 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3147 dwarf2/index-cache.h, dwarf2/index-write.c,
3148 dwarf2/index-write.h, dwarf2/line-header.c,
3149 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3150 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3151 variables and fields from `dwarf2_per_objfile` to just
3152 `per_objfile` throughout.
3153
3154 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3155
3156 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3157 <push_dwarf_reg_entry_value>: Add comment.
3158
3159 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3160 Keith Seitz <keiths@redhat.com>
3161
3162 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3163 instead of PyEval_ReleaseLock.
3164 (class gdbpy_gil): Move to earlier in file.
3165 (finalize_python): Set gdb_python_initialized.
3166 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3167 when not initialized.
3168
3169 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3170
3171 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3172 <push_dwarf_reg_entry_value>: Remove assert. Override
3173 per_objfile with caller_per_objfile.
3174
3175 2020-05-28 Tom de Vries <tdevries@suse.de>
3176
3177 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3178 PR gold/15646 workaround to symbol kind "type".
3179
3180 2020-05-27 Tom Tromey <tromey@adacore.com>
3181
3182 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3183
3184 2020-05-27 Tom Tromey <tromey@adacore.com>
3185
3186 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3187 Use htab_find_with_hash.
3188 <add_abbrev>: Remove "abbrev_number" parameter.
3189 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3190 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3191 (hash_abbrev): Add comment.
3192 (abbrev_table::lookup_abbrev): Move to header file.
3193 (abbrev_table::read): Update.
3194
3195 2020-05-27 Tom Tromey <tromey@adacore.com>
3196
3197 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3198 method.
3199 <canonical_name>: New member.
3200 <raw_name>: Rename from "name".
3201 (partial_die_info): Initialize canonical_name.
3202 (scan_partial_symbols): Check raw_name.
3203 (partial_die_parent_scope, partial_die_full_name)
3204 (add_partial_symbol, add_partial_subprogram)
3205 (add_partial_enumeration, load_partial_dies): Use "name" method.
3206 (partial_die_info::name): New method.
3207 (partial_die_info::read, guess_partial_die_structure_name)
3208 (partial_die_info::fixup): Update.
3209
3210 2020-05-27 Tom Tromey <tromey@adacore.com>
3211
3212 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3213 <get_ref_die_offset>: Inline.
3214 <get_ref_die_offset_complaint>: New method.
3215 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3216 (attribute::get_ref_die_offset_complaint): Rename from
3217 get_ref_die_offset. Just issue complaint.
3218
3219 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3220
3221 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3222
3223 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3224
3225 * exec.c (exec_file_attach): Use errno value of first openp failure.
3226
3227 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3228
3229 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3230 Don't close thread handle.
3231
3232 2020-05-27 Tom Tromey <tom@tromey.com>
3233 Simon Marchi <simon.marchi@efficios.com>
3234
3235 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3236 shared_ptr.
3237 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3238 member.
3239 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3240 dwarf2_per_bfd_objfile_data_key>: New globals.
3241 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3242 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3243 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3244 shared.
3245 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3246 short-circuit when sharing.
3247 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3248 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3249
3250 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3251
3252 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3253 to...
3254 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3255 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3256
3257 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3258
3259 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3260 build_name_components, find_name_components_bounds>:
3261 Add per_objfile parameter.
3262 (struct mapped_index) <symbol_name_at>: Likewise.
3263 (struct mapped_debug_names): Remove constructor.
3264 <dwarf2_per_objfile>: Remove field.
3265 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3266 (mapped_index_base::find_name_components_bounds,
3267 mapped_index_base::build_name_components,
3268 dw2_expand_symtabs_matching_symbol): Likewise.
3269 (class mock_mapped_index) <symbol_name_at>: Likewise.
3270 (check_match): Likewise.
3271 (check_find_bounds_finds): Likewise.
3272 (test_mapped_index_find_name_component_bounds): Update.
3273 (CHECK_MATCH): Update.
3274 (dw2_expand_symtabs_matching): Update.
3275 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3276 per_objfile parameter.
3277 <find_vec_in_debug_names>: Likewise.
3278 <m_per_objfile>: New field.
3279 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3280 parameter.
3281 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3282 (dw2_debug_names_iterator::next): Update.
3283 (dw2_debug_names_lookup_symbol): Update.
3284 (dw2_debug_names_expand_symtabs_for_function): Update.
3285 (dw2_debug_names_map_matching_symbols): Update.
3286 (dw2_debug_names_expand_symtabs_matching): Update.
3287 (dwarf2_read_debug_names): Update.
3288
3289 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3290
3291 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3292 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3293 move to dwarf2_per_objfile.
3294 <read_in_chain>: Remove.
3295 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3296 remove_all_cus, age_comp_units>: New methods.
3297 <m_dwarf2_cus>: New member.
3298 (struct dwarf2_per_cu_data) <cu>: Remove.
3299 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3300 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3301 moved to methods of dwarf2_per_objfile.
3302 (dwarf2_clear_marks): Remove.
3303 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3304 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3305 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3306 (dwarf2_per_objfile::remove_all_cus): New.
3307 (class free_cached_comp_units) <~free_cached_comp_units>:
3308 Update.
3309 (load_cu): Update.
3310 (dw2_do_instantiate_symtab): Adjust.
3311 (fill_in_sig_entry_from_dwo_entry): Adjust.
3312 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3313 (cutu_reader::cutu_reader): Likewise.
3314 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3315 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3316 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3317 and dwarf2_per_objfile::age_comp_units.
3318 (load_partial_comp_unit): Update.
3319 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3320 (process_queue): Likewise.
3321 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3322 backlink.
3323 (dwarf2_read_addr_index): Likewise.
3324 (follow_die_offset): Likewise.
3325 (dwarf2_fetch_die_loc_sect_off): Likewise.
3326 (dwarf2_fetch_constant_bytes): Likewise.
3327 (dwarf2_fetch_die_type_sect_off): Likewise.
3328 (follow_die_sig_1): Likewise.
3329 (load_full_type_unit): Likewise.
3330 (read_signatured_type): Likewise.
3331 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3332 (dwarf2_cu::~dwarf2_cu): Remove.
3333 (dwarf2_per_objfile::get_cu): New.
3334 (dwarf2_per_objfile::set_cu): New.
3335 (age_cached_comp_units): Rename to...
3336 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3337 to std::unordered_map.
3338 (free_one_cached_comp_unit): Rename to...
3339 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3340 to std::unordered_map.
3341 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3342 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3343 a dwarf2_per_objfile in data.
3344 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3345 (dwarf2_clear_marks): Remove.
3346
3347 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3348
3349 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3350 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3351 (init_tu_and_read_dwo_dies): Likewise.
3352 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3353 (cutu_reader::cutu_reader): Likewise.
3354 (load_partial_comp_unit): Likewise.
3355 (process_psymtab_comp_unit): Update.
3356 (build_type_psymtabs_1): Update.
3357 (process_skeletonless_type_unit): Update.
3358 (load_full_comp_unit): Update.
3359 (find_partial_die): Update.
3360 (dwarf2_read_addr_index): Update.
3361 (read_signatured_type): Update.
3362
3363 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3364
3365 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3366 m_header_read_in>: New fields.
3367 <get_header>: New method.
3368 * dwarf2/read.c (per_cu_header_read_in): Remove.
3369 (dwarf2_per_cu_data::get_header): New.
3370 (dwarf2_per_cu_data::addr_size): Update.
3371 (dwarf2_per_cu_data::offset_size): Update.
3372 (dwarf2_per_cu_data::ref_addr_size): Update.
3373
3374 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3375
3376 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3377 (dw2_do_instantiate_symtab): Update.
3378 (queue_and_load_all_dwo_tus): Change parameter from
3379 dwarf2_per_cu_data to dwarf2_cu.
3380 (dwarf2_fetch_die_loc_sect_off): Update.
3381 (dwarf2_fetch_constant_bytes): Update.
3382 (dwarf2_fetch_die_type_sect_off): Update.
3383
3384 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3385
3386 * dwarf2/read.c (process_full_comp_unit,
3387 process_full_type_unit): Remove per_cu, per_objfile paramters.
3388 Add dwarf2_cu parameter.
3389 (process_queue): Update.
3390
3391 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3392
3393 * dwarf2/read.c (create_cu_from_index_list): Replace
3394 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3395 (create_cus_from_index_list): Likewise.
3396 (create_cus_from_index): Likewise.
3397 (create_signatured_type_table_from_index): Likewise.
3398 (create_cus_from_debug_names_list): Likewise.
3399 (create_cus_from_debug_names): Likewise.
3400 (dwarf2_read_gdb_index): Update.
3401 (dwarf2_read_debug_names): Update.
3402
3403 2020-05-27 Tom Tromey <tom@tromey.com>
3404 Simon Marchi <simon.marchi@efficios.com>
3405
3406 * dwarf2/read.h (struct dwarf2_per_objfile)
3407 <get_type_for_signatured_type, set_type_for_signatured_type>:
3408 New methods.
3409 <m_type_map>: New member.
3410 (struct signatured_type) <type>: Remove.
3411 * dwarf2/read.c
3412 (dwarf2_per_objfile::get_type_for_signatured_type,
3413 dwarf2_per_objfile::set_type_for_signatured_type): New.
3414 (get_signatured_type): Use new methods.
3415
3416 2020-05-27 Tom Tromey <tom@tromey.com>
3417 Simon Marchi <simon.marchi@efficios.com>
3418
3419 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3420 (struct dwarf2_per_objfile) <type_units>: New member.
3421 <get_type_unit_group_unshareable>: New method.
3422 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3423 num_symtabs, symtabs>: Remove; move to
3424 type_unit_group_unshareable.
3425 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3426 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3427 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3428
3429 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3430
3431 * dwarf2/read.h (struct dwarf2_per_cu_data):
3432 <dwarf2_per_objfile>: Remove.
3433 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3434 dwarf2_per_objfile.
3435 (create_signatured_type_table_from_index): Likewise.
3436 (create_signatured_type_table_from_debug_names): Likewise.
3437 (create_debug_type_hash_table): Likewise.
3438 (fill_in_sig_entry_from_dwo_entry): Likewise.
3439 (create_type_unit_group): Likewise.
3440 (read_comp_units_from_section): Likewise.
3441 (create_cus_hash_table): Likewise.
3442
3443 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3444
3445 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3446 dwarf2_per_cu_data::dwarf2_per_objfile.
3447 (compute_compunit_symtab_includes): Likewise.
3448 (dwarf2_cu::start_symtab): Likewise.
3449
3450 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3451
3452 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3453 parameter.
3454 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3455 (read_namespace_alias): Update.
3456 (lookup_die_type): Update.
3457 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3458 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3459 Update.
3460 (disassemble_dwarf_expression): Update.
3461
3462 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3463
3464 * dwarf2/read.h (struct dwarf2_queue_item): Add
3465 dwarf2_per_objfile parameter, assign new parameter.
3466 <per_objfile>: New field.
3467 * dwarf2/read.c (free_one_cached_comp_unit): Add
3468 dwarf2_per_objfile parameter.
3469 (queue_comp_unit): Likewise.
3470 (dw2_do_instantiate_symtab): Update.
3471 (process_psymtab_comp_unit): Update.
3472 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3473 (process_imported_unit_die): Update.
3474 (queue_and_load_dwo_tu): Update.
3475 (follow_die_offset): Update.
3476 (follow_die_sig_1): Update.
3477
3478 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3479
3480 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3481 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3482 (read_call_site_scope): Assign per_objfile.
3483 (dwarf2_per_cu_data::objfile): Remove.
3484 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3485 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3486 dwarf2_per_objfile parameter.
3487 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3488 dwarf2_per_objfile parameter.
3489 (dwarf_expr_reg_to_entry_parameter): Add output
3490 dwarf2_per_objfile parameter.
3491 (locexpr_get_frame_base): Update.
3492 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3493 <push_dwarf_reg_entry_value>: Update.
3494 <call_site_to_target_addr>: Update.
3495 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3496 parameter.
3497 (value_of_dwarf_reg_entry): Update.
3498 (rw_pieced_value): Update.
3499 (indirect_synthetic_pointer): Update.
3500 (dwarf2_evaluate_property): Update.
3501 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3502 parameter.
3503 (locexpr_read_variable): Update.
3504 (locexpr_get_symbol_read_needs): Update.
3505 (loclist_read_variable): Update.
3506
3507 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3508
3509 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3510 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3511 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3512 parameter.
3513 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3514 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3515 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3516 parameter.
3517 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3518 sect_variable_value): Add dwarf2_per_objfile parameter.
3519 (class dwarf_evaluate_loc_desc) <dwarf_call,
3520 dwarf_variable_value>: Update.
3521 (fetch_const_value_from_synthetic_pointer): Add
3522 dwarf2_per_objfile parameter.
3523 (fetch_const_value_from_synthetic_pointer): Update.
3524 (coerced_pieced_ref): Update.
3525 (class symbol_needs_eval_context) <dwarf_call,
3526 dwarf_variable_value>: Update.
3527 (dwarf2_compile_expr_to_ax): Update.
3528
3529 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3530
3531 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3532 parameter.
3533 (dwarf2_evaluate_loc_desc_full): Update.
3534
3535 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3536
3537 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3538 parameter.
3539 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3540 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3541 dwarf2_per_objfile parameter.
3542 (decode_debug_loc_dwo_addresses): Likewise.
3543 (dwarf2_find_location_expression): Update.
3544 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3545 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3546 parameter.
3547 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3548 parameter.
3549 (locexpr_describe_location_1): Likewise.
3550 (locexpr_describe_location): Update.
3551
3552 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3553
3554 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3555 Remove.
3556 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3557 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3558 (dwarf2_compile_property_to_c): Update.
3559 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3560 use text offset from objfile.
3561 (locexpr_tracepoint_var_ref): Update.
3562 (locexpr_generate_c_location): Update.
3563 (loclist_describe_location): Update.
3564 (loclist_tracepoint_var_ref): Update.
3565 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3566 dwarf2_per_objfile parameter.
3567 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3568 use text offset from objfile.
3569 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3570
3571 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3572
3573 * dwarf2/expr.h (struct dwarf_expr_context)
3574 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3575 <offset>: Remove.
3576 <per_objfile>: New member.
3577 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3578 dwarf2_per_objfile parameter. Don't set offset, set
3579 per_objfile.
3580 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3581 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3582 a dwarf2_per_objfile object instead of an offset.
3583 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3584 constructor.
3585 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3586 to dwarf2_expr_executor constructor. Don't set offset.
3587 (dwarf2_fetch_cfa_info): Update.
3588 (struct dwarf2_frame_cache) <text_offset>: Remove.
3589 <per_objfile>: New field.
3590 (dwarf2_frame_cache): Update.
3591 (dwarf2_frame_prev_register): Update.
3592 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3593 <dwarf_evaluate_loc_desc>: Add constructor.
3594 (dwarf2_evaluate_loc_desc_full): Update.
3595 (dwarf2_locexpr_baton_eval): Update.
3596 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3597 Add constructor.
3598 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3599
3600 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3601
3602 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3603 addr_sized_int_type>: Move to dwarf2_cu.
3604 <int_type>: Move to dwarf2_per_objfile.
3605 (struct dwarf2_per_objfile) <int_type>: Move here.
3606 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3607 addr_sized_int_type>: Move here.
3608 (read_func_scope): Update.
3609 (read_array_type): Update.
3610 (read_tag_string_type): Update.
3611 (attr_to_dynamic_prop): Update.
3612 (dwarf2_per_cu_data::int_type): Rename to...
3613 (dwarf2_per_objfile::int_type): ... this.
3614 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3615 (dwarf2_cu::addr_sized_int_type): ... this.
3616 (read_subrange_type): Update.
3617 (dwarf2_per_cu_data::addr_type): Rename to...
3618 (dwarf2_cu::addr_type): ... this.
3619 (set_die_type): Update.
3620
3621 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3622
3623 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3624 data through per_cu->cu.
3625
3626 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3627
3628 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3629 dwarf2_per_cu_data parameter fo dwarf2_cu.
3630 (lookup_dwo_type_unit): Likewise.
3631 (read_cutu_die_from_dwo): Likewise.
3632 (lookup_dwo_unit): Likewise.
3633 (open_and_init_dwo_file): Likewise.
3634 (lookup_dwo_cutu): Likewise.
3635 (lookup_dwo_comp_unit): Likewise.
3636 (lookup_dwo_type_unit): Likewise.
3637 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3638 (cutu_reader::cutu_reader): Update.
3639
3640 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3641
3642 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3643 parameter.
3644 (process_full_type_unit): Likewise.
3645 (process_queue): Update.
3646
3647 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3648
3649 * dwarf2/read.c (recursively_compute_inclusions): Add
3650 dwarf2_per_objfile parameter.
3651 (compute_compunit_symtab_includes): Likewise.
3652 (process_cu_includes): Update.
3653
3654 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3655
3656 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3657 parameter.
3658 (create_type_unit_group): Update.
3659 (process_psymtab_comp_unit_reader): Update.
3660 (build_type_psymtabs_reader): Update.
3661
3662 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3663
3664 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3665 object through m_this_cu->cu.
3666
3667 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3668
3669 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3670 the info parameter.
3671 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3672
3673 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3674
3675 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3676 per_objfile parameter.
3677 (load_full_type_unit): Add per_objfile parameter.
3678 (read_signatured_type): Likewise.
3679 (load_full_comp_unit): Likewise.
3680 (load_cu): Likewise.
3681 (dw2_do_instantiate_symtab): Likewise.
3682 (dw2_get_file_names): Likewise.
3683 (dw2_map_symtabs_matching_filename): Update.
3684 (dw_expand_symtabs_matching_file_matcher): Update.
3685 (dw2_map_symbol_filenames): Update.
3686 (process_psymtab_comp_unit): Add per_objfile parameter.
3687 (build_type_psymtabs_1): Update.
3688 (process_skeletonless_type_unit): Update.
3689 (dwarf2_build_psymtabs_hard): Update.
3690 (load_partial_comp_unit): Add per_objfile parameter.
3691 (scan_partial_symbols): Update.
3692 (load_full_comp_unit): Add per_objfile parameter.
3693 (process_imported_unit_die): Update.
3694 (create_cus_hash_table): Update.
3695 (find_partial_die): Update.
3696 (dwarf2_read_addr_index): Update.
3697 (follow_die_offset): Update.
3698 (dwarf2_fetch_die_loc_sect_off): Update.
3699 (dwarf2_fetch_constant_bytes): Update.
3700 (dwarf2_fetch_die_type_sect_off): Update.
3701 (follow_die_sig_1): Update.
3702 (load_full_type_unit): Add per_objfile parameter.
3703 (read_signatured_type): Likewise.
3704
3705 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3706
3707 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3708 of objfile_name.
3709
3710 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3711
3712 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3713 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3714 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3715 field.
3716 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3717 (create_cus_from_index): Update.
3718 (dwarf2_read_gdb_index): Update.
3719 (create_cus_from_debug_names): Update.
3720 (dwarf2_read_debug_names): Update.
3721 (get_abbrev_section_for_cu): Update.
3722 (create_all_comp_units): Update.
3723 (read_attribute_value): Update.
3724 (get_debug_line_section): Update.
3725 * dwarf2/index-cache.c (index_cache::store): Update.
3726 * dwarf2/index-write.c (save_gdb_index_command): Update.
3727 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3728
3729 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3730
3731 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3732 member.
3733 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3734 dwarf2_per_cu_data::per_bfd.
3735 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3736 (create_type_unit_group): Likewise.
3737 (queue_comp_unit): Remove reference to
3738 per_cu->dwarf2_per_objfile.
3739 (maybe_queue_comp_unit): Likewise.
3740 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3741 (create_cus_hash_table): Assign new field.
3742
3743 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3744
3745 * dwarf2/read.c: Replace
3746 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3747 dwarf2_cu->per_objfile throughout.
3748
3749 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3750
3751 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3752 parameter, don't use per_cu->dwarf2_per_objfile.
3753 (dw2_instantiate_symtab): Likewise.
3754 (dw2_find_last_source_symtab): Update.
3755 (dw2_map_expand_apply): Update.
3756 (dw2_lookup_symbol): Update.
3757 (dw2_expand_symtabs_for_function): Update.
3758 (dw2_expand_all_symtabs): Update.
3759 (dw2_expand_symtabs_with_fullname): Update.
3760 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3761 don't use per_cu->dwarf2_per_objfile.
3762 (dw2_expand_marked_cus): Update.
3763 (dw2_find_pc_sect_compunit_symtab): Update.
3764 (dw2_debug_names_lookup_symbol): Update.
3765 (dw2_debug_names_expand_symtabs_for_function): Update.
3766 (dw2_debug_names_map_matching_symbols): Update.
3767 (dwarf2_psymtab::expand_psymtab): Update.
3768
3769 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3770
3771 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3772 <per_objfile>: New member.
3773 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3774 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3775 call to dwarf2_cu.
3776 (cutu_reader::cutu_reader): Update.
3777 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3778
3779 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3780
3781 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3782 struct dwarf2_per_objfile.
3783 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3784 dwarf2_per_bfd.
3785 * dwarf2/read.c (set_die_type): Update.
3786 (get_die_type_at_offset): Update.
3787
3788 2020-05-27 Tom Tromey <tom@tromey.com>
3789 Simon Marchi <simon.marchi@efficios.com>
3790
3791 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3792 method.
3793 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3794 get_symtab, set_symtab>: New methods.
3795 <m_symtabs>: New field.
3796 (struct dwarf2_psymtab): Derive from partial_symtab.
3797 <readin_p, get_compunit_symtab>: Declare methods.
3798 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3799 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3800 New methods.
3801 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3802 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3803 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3804 (dw2_symtab_iter_next, dw2_print_stats)
3805 (dw2_expand_symtabs_with_fullname)
3806 (dw2_expand_symtabs_matching_one)
3807 (dw_expand_symtabs_matching_file_matcher)
3808 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3809 (dw2_debug_names_iterator::next)
3810 (dw2_debug_names_map_matching_symbols)
3811 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3812 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3813 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3814 New methods.
3815 (get_compunit_symtab, process_full_comp_unit)
3816 (process_full_type_unit): Update.
3817 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3818
3819 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3820
3821 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3822 then introduce a new dwarf2_per_objfile type.
3823 <read_line_string>: Move to the new dwarf2_per_objfile type.
3824 <objfile>: Likewise.
3825 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3826 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3827 dwarf2_per_objfile->per_bfd.
3828 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3829 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3830 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3831 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3832 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3833 (dwarf2_per_objfile::locate_sections): Rename to...
3834 (dwarf2_per_bfd::locate_sections): ... this.
3835 (dwarf2_per_objfile::get_cutu): Rename to...
3836 (dwarf2_per_bfd::get_cutu): ... this.
3837 (dwarf2_per_objfile::get_cu): Rename to...
3838 (dwarf2_per_bfd::get_cu): ... this.
3839 (dwarf2_per_objfile::get_tu): Rename to...
3840 (dwarf2_per_bfd::get_tu): ... this.
3841 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3842 (dwarf2_per_bfd::allocate_per_cu): ... this.
3843 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3844 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3845 (get_gdb_index_contents_ftype): Change parameter from
3846 dwarf2_per_objfile to dwarf2_per_bfd.
3847 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3848 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3849
3850 2020-05-27 Tom Tromey <tom@tromey.com>
3851 Simon Marchi <simon.marchi@efficios.com>
3852
3853 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3854 (allocate_piece_closure): Set "per_objfile" member.
3855 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3856 (locexpr_describe_location, loclist_describe_location): Use new
3857 member.
3858 * dwarf2/read.c (read_call_site_scope)
3859 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3860 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3861 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3862 handle_data_member_location): Set per_objfile member.
3863 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3864 member.
3865 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3866
3867 2020-05-27 Tom Tromey <tom@tromey.com>
3868
3869 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3870 allocate_signatured_type>: Declare new methods.
3871 <m_num_psymtabs>: New member.
3872 (struct dwarf2_per_cu_data) <index>: New member.
3873 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3874 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3875 (create_cu_from_index_list): Use allocate_per_cu.
3876 (create_signatured_type_table_from_index)
3877 (create_signatured_type_table_from_debug_names)
3878 (create_debug_type_hash_table, add_type_unit)
3879 (read_comp_units_from_section): Use allocate_signatured_type.
3880
3881 2020-05-27 Tom Tromey <tom@tromey.com>
3882
3883 * psymtab.c (partial_map_expand_apply)
3884 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3885 (psym_lookup_global_symbol_language)
3886 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3887 (psym_print_stats, psym_expand_symtabs_for_function)
3888 (psym_map_symbol_filenames, psym_map_matching_symbols)
3889 (psym_expand_symtabs_matching)
3890 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3891 (maintenance_check_psymtabs): Update.
3892 * psympriv.h (struct partial_symtab) <readin_p,
3893 get_compunit_symtab>: Add objfile parameter.
3894 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3895 Likewise.
3896 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3897 get_compunit_symtab>: Likewise.
3898 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3899
3900 2020-05-27 Tom Tromey <tom@tromey.com>
3901
3902 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3903 member.
3904 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3905 (create_cu_from_index_list)
3906 (create_signatured_type_table_from_index)
3907 (create_signatured_type_table_from_debug_names)
3908 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3909 (dwarf2_create_include_psymtab)
3910 (create_debug_type_hash_table, add_type_unit)
3911 (create_type_unit_group, read_comp_units_from_section)
3912 (dwarf2_compute_name, create_cus_hash_table)
3913 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3914 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3915 obstack.
3916 (dw2_get_real_path): Likewise. Change argument to
3917 dwarf2_per_objfile.
3918
3919 2020-05-27 Luis Machado <luis.machado@linaro.org>
3920
3921 PR tdep/26000
3922 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3923 for ldrd (immediate).
3924
3925 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3926
3927 * command.h: Add comment giving the name of class_tui.
3928 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3929 create the fake command for the help for class_tui.
3930
3931 2020-05-26 Tom Tromey <tromey@adacore.com>
3932
3933 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3934 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3935 (val_atr): New function.
3936 (value_val_atr): Use it.
3937 * ada-valprint.c (print_optional_low_bound): Change low bound
3938 handling for enums.
3939 (val_print_packed_array_elements): Don't call discrete_position.
3940 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3941 discrete_position for enum types.
3942 * language.c (default_print_array_index): Change type.
3943 * language.h (struct language_defn) <la_print_array_index>: Add
3944 index_type parameter, change type of index_value.
3945 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3946 (default_print_array_index): Update.
3947 * valprint.c (maybe_print_array_index): Don't call
3948 value_from_longest. Update.
3949 (value_print_array_elements): Don't call discrete_position.
3950
3951 2020-05-26 Tom Tromey <tromey@adacore.com>
3952
3953 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3954 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3955
3956 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3957
3958 PR gdb/13519
3959 * avr-tdep.c (avr_integer_to_address): Return data or code
3960 address accordingly to the second 'type' argument of the
3961 function.
3962
3963 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3964
3965 * infcmd.c, inferior.h: (construct_inferior_arguments):
3966 Moved function from here to gdbsupport/common-inferior.{h,cc}
3967
3968 2020-05-23 Tom Tromey <tom@tromey.com>
3969
3970 Revert commit eca1f90c:
3971 * NEWS: Remove entry for completion styling.
3972 * completer.c (_rl_completion_prefix_display_length): Move
3973 declaration later.
3974 (gdb_fnprint): Revert.
3975 (gdb_display_match_list_1): Likewise.
3976 * cli/cli-style.c (completion_prefix_style)
3977 (completion_difference_style, completion_suffix_style): Remove.
3978 (_initialize_cli_style): Revert.
3979 * cli/cli-style.h (completion_prefix_style)
3980 (completion_difference_style, completion_suffix_style): Don't
3981 declare.
3982
3983 2020-05-24 Pedro Alves <palves@redhat.com>
3984
3985 * symtab.c (completion_list_add_name): Return boolean indication
3986 of whether the symbol matched.
3987 (completion_list_add_symbol): Don't try to remove C++ aliases if
3988 the symbol didn't match in the first place.
3989 * symtab.h (completion_list_add_name): Return bool.
3990
3991 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3992
3993 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3994 type::field.
3995
3996 2020-05-23 Joel Brobecker <brobecker@adacore.com>
3997
3998 GDB 9.2 released.
3999
4000 2020-05-23 Tom Tromey <tom@tromey.com>
4001
4002 * NEWS: Add entry for completion styling.
4003 * completer.c (_rl_completion_prefix_display_length): Move
4004 declaration earlier.
4005 (gdb_fnprint): Use completion_style.
4006 (gdb_display_match_list_1): Likewise.
4007 * cli/cli-style.c (completion_prefix_style)
4008 (completion_difference_style, completion_suffix_style): New
4009 globals.
4010 (_initialize_cli_style): Register new globals.
4011 * cli/cli-style.h (completion_prefix_style)
4012 (completion_difference_style, completion_suffix_style): Declare.
4013
4014 2020-05-23 Pedro Alves <palves@redhat.com>
4015
4016 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4017 (parse_escape): Use ISDIGIT instead of isdigit.
4018 (puts_debug): Use gdb_isprint instead of isprint.
4019 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4020 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4021 ISSPACE instead of isspace.
4022 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4023 instead of isspace.
4024 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4025 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4026 instead of isxdigit and ISDIGIT instead of isdigit.
4027
4028 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4029
4030 * gdbtypes.h (struct type) <field>: New method.
4031 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4032 or type::field.
4033
4034 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4035
4036 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4037 (TYPE_FIELDS): Use type::fields. Change all call sites that
4038 modify the propery to use type::set_fields instead.
4039
4040 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4041
4042 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4043 type::num_fields instead.
4044
4045 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4046
4047 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4048 methods.
4049 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4050 that modify the number of fields to use type::set_num_fields
4051 instead.
4052
4053 2020-05-22 Tom Tromey <tromey@adacore.com>
4054
4055 * compile/compile-object-load.h (munmap_list_free): Don't
4056 declare.
4057
4058 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4059
4060 * annotate.c (annotate_source_line): Update return type, add call
4061 to update current symtab and line.
4062 * annotate.h (annotate_source_line): Update return type, and
4063 extend header comment.
4064 * source.c (info_line_command): Check annotation_level before
4065 calling annotate_source_line.
4066 * stack.c (print_frame_info): If calling annotate_source_line
4067 returns true, then don't print any other source line information.
4068
4069 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4070
4071 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4072
4073 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4074
4075 * coffread.c (patch_type): Remove NULL check before xfree.
4076 * corefile.c (set_gnutarget): Likewise.
4077 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4078 * exec.c (build_section_table): Likewise.
4079 * remote.c (remote_target::pass_signals): Likewise.
4080 * utils.c (n_spaces): Likewise.
4081 * cli/cli-script.c (document_command): Likewise.
4082 * i386-windows-tdep.c (core_process_module_section): Likewise.
4083 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4084
4085 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4086
4087 * symfile.c (reread_symbols): Clear objfile's section_offsets
4088 vector and section indices, re-compute them by calling
4089 sym_offsets.
4090
4091 2020-05-20 Tom Tromey <tromey@adacore.com>
4092
4093 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4094 (desc_one_bound, desc_index_type): Compute field name.
4095
4096 2020-05-20 Tom de Vries <tdevries@suse.de>
4097
4098 PR symtab/25833
4099 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4100
4101 2020-05-20 Alan Modra <amodra@gmail.com>
4102
4103 PR 25993
4104 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4105 bfd_set_filename.
4106 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4107 passed to bfd_set_filename.
4108 * symfile-mem.c (add_vsyscall_page): Likewise for string
4109 passed to symbol_file_add_from_memory.
4110 (symbol_file_add_from_memory): Make name param a const char* and
4111 don't strdup.
4112
4113 2020-05-20 Alan Modra <amodra@gmail.com>
4114
4115 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4116 rather than accessing bfd->filename directly.
4117 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4118 and use bfd_section_name.
4119 * dwarf2/frame.c (decode_frame_entry): Likewise.
4120 * exec.c (exec_set_section_address): Likewise.
4121 * solib-aix.c (solib_aix_bfd_open): Likewise.
4122 * stap-probe.c (get_stap_base_address): Likewise.
4123 * symfile.c (reread_symbols): Likewise.
4124
4125 2020-05-19 Tom Tromey <tromey@adacore.com>
4126
4127 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4128
4129 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4130
4131 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4132
4133 2020-05-19 Pedro Alves <palves@redhat.com>
4134
4135 * NEWS (set exec-file-mismatch): Adjust entry.
4136 * exec.c: Include "build-id.h".
4137 (validate_exec_file): Try to match build IDs instead of filenames.
4138 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4139 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4140 and pass down 'warn_if_slow'.
4141 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4142 gdb_bfd_open_closure to pass it down.
4143 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4144
4145 2020-05-19 Pedro Alves <palves@redhat.com>
4146
4147 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4148 * target.c (target_fileio_open_1): Rename to target_fileio_open
4149 and make extern. Use bool.
4150 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4151 (target_fileio_read_alloc_1): Adjust.
4152 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4153 (target_fileio_open_warn_if_slow): Delete declaration.
4154
4155 2020-05-19 Pedro Alves <palves@redhat.com>
4156
4157 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4158 Adjust all callers.
4159
4160 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4161
4162 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4163 whether disp is negative.
4164
4165 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4166
4167 * symfile.h (struct symfile_segment_data)
4168 <~symfile_segment_data>: Remove.
4169 <segment_info>: Change to std::vector.
4170 * symfile.c (default_symfile_segments): Update.
4171 * elfread.c (elf_symfile_segments): Update.
4172
4173 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4174
4175 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4176 <segments>: New.
4177 <segment_bases, segment_sizes>: Remove.
4178 * symfile.c (default_symfile_segments): Update.
4179 * elfread.c (elf_symfile_segments): Update.
4180 * remote.c (remote_target::get_offsets): Update.
4181 * solib-target.c (solib_target_relocate_section_addresses):
4182 Update.
4183
4184 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4185
4186 * symfile.h (struct symfile_segment_data): Initialize fields.
4187 <~symfile_segment_data>: Add.
4188 (symfile_segment_data_up): New.
4189 (struct sym_fns) <sym_segments>: Return a
4190 symfile_segment_data_up.
4191 (default_symfile_segments): Return a symfile_segment_data_up.
4192 (free_symfile_segment_data): Remove.
4193 (get_symfile_segment_data): Return a symfile_segment_data_up.
4194 * symfile.c (default_symfile_segments): Likewise.
4195 (get_symfile_segment_data): Likewise.
4196 (free_symfile_segment_data): Remove.
4197 (symfile_find_segment_sections): Update.
4198 * elfread.c (elf_symfile_segments): Return a
4199 symfile_segment_data_up.
4200 * remote.c (remote_target::get_offsets): Update.
4201 * solib-target.c (solib_target_relocate_section_addresses):
4202 Update.
4203 * symfile-debug.c (debug_sym_segments): Return a
4204 symfile_segment_data_up.
4205
4206 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4207
4208 PR build/25981
4209 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4210 Hardcode register numbers.
4211
4212 PR build/25981
4213 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4214 procfs_find_LDT_entry): Remove.
4215 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4216 procfs_find_LDT_entry): Remove.
4217 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4218 Remove.
4219
4220 2020-05-17 Pedro Alves <palves@redhat.com>
4221 Andrew Burgess <andrew.burgess@embecosm.com>
4222 Keno Fischer <keno@juliacomputing.com>
4223
4224 PR gdb/25741
4225 * breakpoint.c (build_target_condition_list): Update comments.
4226 (build_target_command_list): Update comments and skip matching
4227 locations.
4228 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4229 a separate function. Simplify "set breakpoint auto-hw off"
4230 handling.
4231 (insert_breakpoints): Update comment.
4232 (tracepoint_locations_match): New parameter. For breakpoints,
4233 compare location types too, if the caller wants to.
4234 (handle_automatic_hardware_breakpoints): New functions.
4235 (bp_location_is_less_than): Also sort by location type and
4236 hardware breakpoint length.
4237 (update_global_location_list): Handle "set breakpoint auto-hw on"
4238 here.
4239 (update_breakpoint_locations): Ask breakpoint_locations_match to
4240 ignore location types.
4241
4242 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4243
4244 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4245 type::name instead.
4246
4247 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4248
4249 * gdbtypes.h (struct type) <name, set_name>: New methods.
4250 (TYPE_CODE): Use type::name. Change all call sites used to set
4251 the name to use type::set_name instead.
4252
4253 2020-05-16 Tom Tromey <tom@tromey.com>
4254
4255 * top.c (quit_force): Update.
4256 * infrun.c (handle_no_resumed): Update.
4257 * top.h (all_uis): New function.
4258 (ALL_UIS): Remove.
4259
4260 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4261
4262 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4263
4264 2020-05-16 Pedro Alves <palves@redhat.com>
4265
4266 * ia64-linux-nat.c
4267 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4268 Declare method.
4269 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4270
4271 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4272
4273 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4274 (sparc64_adi_info): Likewise.
4275
4276 2020-05-15 Tom Tromey <tom@tromey.com>
4277
4278 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4279 block_objfile.
4280 (lookup_objfile_from_block): Remove.
4281 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4282 (lookup_global_symbol): Use block_objfile.
4283 * symtab.h (lookup_objfile_from_block): Don't declare.
4284 * printcmd.c (clear_dangling_display_expressions): Use
4285 block_objfile.
4286 * parse.c (operator_check_standard): Use block_objfile.
4287
4288 2020-05-15 Tom Tromey <tom@tromey.com>
4289
4290 * language.c (language_alloc_type_symbol): Set
4291 SYMBOL_SECTION.
4292 * symtab.c (initialize_objfile_symbol): Remove.
4293 (allocate_symbol): Remove.
4294 (allocate_template_symbol): Remove.
4295 * dwarf2/read.c (fixup_go_packaging): Use "new".
4296 (new_symbol): Use "new".
4297 (read_variable): Don't call initialize_objfile_symbol. Use
4298 "new".
4299 (read_func_scope): Use "new".
4300 * xcoffread.c (process_xcoff_symbol): Don't call
4301 initialize_objfile_symbol.
4302 (SYMBOL_DUP): Remove.
4303 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4304 "new".
4305 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4306 (allocate_template_symbol): Don't declare.
4307 (struct symbol): Add copy constructor. Change defaults.
4308 * jit.c (finalize_symtab): Use "new".
4309 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4310 Use "new".
4311 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4312 (common_block_end): Use "new".
4313 * mdebugread.c (parse_symbol): Use "new".
4314 (new_symbol): Likewise.
4315
4316 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4317
4318 * NEWS: Mention changes to help and apropos.
4319
4320 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4321
4322 * command.h (enum command_class): Improve comments, document
4323 that class_alias is for user-defined aliases, give the class
4324 name for each class, remove unused class_xdb.
4325 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4326 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4327 by a precise class.
4328 * infcmd.c (_initialize_infcmd): Likewise.
4329 * reverse.c (_initialize_reverse): Likewise.
4330 * stack.c (_initialize_stack): Likewise.
4331 * symfile.c (_initialize_symfile): Likewise.
4332 * tracepoint.c (_initialize_tracepoint): Likewise.
4333
4334 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4335
4336 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4337 when their aliased command is traversed.
4338 (help_cmd): Add fput_command_names_styled call to
4339 output command name and aliases when command has an alias.
4340
4341 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4342
4343 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4344 * cli/cli-decode.c (help_cmd_list): Declare as static,
4345 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4346 a command together with the command.
4347 (fput_command_name_styled, fput_command_names_styled): New functions.
4348 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4349 fput_command_name_styled.
4350 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4351 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4352
4353 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4354
4355 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4356 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4357 * command.h (cmd_show_list): Likewise.
4358 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4359 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4360
4361 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4362
4363 * unittests/command-def-selftests.c (traverse_command_structure):
4364 Verify all commands of a list have the same prefix command and
4365 that only the top cmdlist commands have a null prefix.
4366
4367 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4368
4369 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4370 as prefix, not one of its aliases.
4371 (set_cmd_prefix): Remove.
4372 (do_add_cmd): Centralize the setting of the prefix of a command, when
4373 command is defined after its full chain of prefix commands.
4374 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4375 (add_setshow_cmd_full): Likewise.
4376 (update_prefix_field_of_prefixed_commands): New function.
4377 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4378 update_prefix_field_of_prefixed_commands.
4379 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4380 addresses of remote_set_cmdlist and remote_show_cmdlist given
4381 as argument, not the address of an argument.
4382 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4383 * gdb/remote.c (_initialize_remote): Likewise.
4384
4385 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4386
4387 * cli/cli-cmds.c (alias_command): Check for an existing alias
4388 using lookup_cmd_composition, as valid_command_p is too strict
4389 and forbids aliases that are the prefix of an existing alias
4390 or command.
4391 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4392 command is properly recognised as a valid command.
4393
4394 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4395
4396 * unittests/help-doc-selftests.c: Rename to
4397 unittests/command-def-selftests.c
4398 * unittests/command-def-selftests.c (help_doc_tests): Update some
4399 comments.
4400 (command_structure_tests, traverse_command_structure): New namespace
4401 and function.
4402 (command_structure_invariants_tests): New function.
4403 (_initialize_command_def_selftests) Renamed from
4404 _initialize_help_doc_selftests, register command_structure_invariants
4405 selftest.
4406
4407 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4408
4409 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4410 an alias of 'show'.
4411
4412 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4413
4414 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4415 ada_is_fixed_point_type. Update all callers.
4416 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4417 all callers.
4418 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4419 Update all callers.
4420 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4421 print_fixed_point_type. Update all callers.
4422 * ada-valprint.c (ada_value_print_num): Replace call to
4423 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4424
4425 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4426
4427 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4428 processors.
4429 (cpu_supports_bts): Add CV_AMD case.
4430
4431 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4432 Simon Marchi <simon.marchi@efficios.com>
4433
4434 * infrun.c (stop_all_threads): Collect multiple wait events at
4435 each pass.
4436
4437 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4438
4439 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4440 type::code instead.
4441
4442 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4443
4444 * gdbtypes.h (struct type) <code, set_code>: New methods.
4445 (TYPE_CODE): Use type::code. Change all call sites used to set
4446 the code to use type::set_code instead.
4447
4448 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4449 Tom de Vries <tdevries@suse.de>
4450 Pedro Alves <palves@redhat.com>
4451
4452 PR threads/25478
4453 * infrun.c (stop_all_threads): Do NOT ignore
4454 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4455 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4456 received.
4457 (handle_no_resumed): Remove code handling a live inferior with no
4458 threads.
4459 * remote.c (has_single_non_exited_thread): New.
4460 (remote_target::update_thread_list): Do not delete a thread if is
4461 the last thread of the process.
4462 * thread.c (thread_select): Call delete_exited_threads instead of
4463 prune_threads.
4464
4465 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4466
4467 * infrun.c (stop_all_threads): Enable/disable thread events of all
4468 targets. Move a debug message denoting the end of the function
4469 into the SCOPED_EXIT block.
4470
4471 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4472
4473 * process-stratum-target.h: Include <set>.
4474 (all_non_exited_process_targets, switch_to_target_no_thread): New
4475 function declarations.
4476 * process-stratum-target.c (all_non_exited_process_targets)
4477 (switch_to_target_no_thread): New function implementations.
4478
4479 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4480
4481 * infrun.c (handle_inferior_event): Extract out a piece of code
4482 into...
4483 (mark_non_executing_threads): ...this new function.
4484
4485 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4486
4487 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4488 use.
4489
4490 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4491
4492 * regcache.c (regcache_read_pc_protected): New function
4493 implementation that returns 0 if the PC cannot read via
4494 'regcache_read_pc'.
4495 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4496 instead of 'regcache_read_pc'.
4497 (keep_going_pass_signal): Ditto.
4498
4499 2020-05-13 Tom Tromey <tromey@adacore.com>
4500
4501 * ada-lang.c (align_value): Remove.
4502 (ada_template_to_fixed_record_type_1): Use align_up.
4503
4504 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4505
4506 * async-event.c: Update the copyright year.
4507 * async-event.h: Update the copyright year.
4508
4509 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4510
4511 * objfiles.h (is_addr_in_objfile,
4512 shared_objfile_contains_address_p): Return bool.
4513 * objfile.c (is_addr_in_objfile,
4514 shared_objfile_contains_address_p): Return bool.
4515
4516 2020-05-11 Tom Tromey <tromey@adacore.com>
4517
4518 * cli/cli-cmds.c (info_command): Restore.
4519 (_initialize_cli_cmds): Use add_prefix_command for "info".
4520 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4521
4522 2020-05-11 Tom Tromey <tromey@adacore.com>
4523
4524 * ada-lang.c (ada_value_primitive_field): Now public.
4525 * ada-lang.h (ada_value_primitive_field): Declare.
4526 * ada-valprint.c (print_field_values): Use
4527 ada_value_primitive_field for wrapper fields.
4528
4529 2020-05-11 Tom de Vries <tdevries@suse.de>
4530
4531 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4532 MODULE_DOMAIN.
4533
4534 2020-05-11 Tom de Vries <tdevries@suse.de>
4535
4536 PR symtab/25941
4537 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4538 with length 0, if not gdb-produced.
4539 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4540
4541 2020-05-09 Tom de Vries <tdevries@suse.de>
4542
4543 PR gdb/25955
4544 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4545 calculation.
4546
4547 2020-05-09 Tom Tromey <tom@tromey.com>
4548
4549 * top.c (server_command): Now bool.
4550 * top.h (server_command): Now bool.
4551
4552 2020-05-08 Tom Tromey <tromey@adacore.com>
4553
4554 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4555 already being processed.
4556
4557 2020-05-08 Tom Tromey <tom@tromey.com>
4558
4559 * printcmd.c (struct display) <next>: Remove.
4560 <display>: New constructor.
4561 <exp_string>: Now a std::string.
4562 <enabled_p>: Now a bool.
4563 (display_number): Move definition earlier.
4564 (displays): Rename from display_chain. Now a std::vector.
4565 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4566 (display_command): Update.
4567 (do_one_display, disable_display)
4568 (enable_disable_display_command, do_enable_disable_display):
4569 Update.
4570 (free_display): Remove.
4571 (clear_displays): Rewrite.
4572 (delete_display): Update.
4573 (map_display_numbers): Use function_view. Remove "data"
4574 parameter. Update.
4575 (do_delete_display): Remove.
4576 (undisplay_command): Update.
4577 (do_one_display, do_displays, disable_display)
4578 (info_display_command): Update.
4579 (do_enable_disable_display): Remove.
4580 (enable_disable_display_command)
4581 (clear_dangling_display_expressions): Update.
4582
4583 2020-05-08 Tom Tromey <tom@tromey.com>
4584
4585 * symtab.c (set_symbol_cache_size)
4586 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4587 (maintenance_print_symbol_cache_statistics): Update.
4588 * symmisc.c (print_symbol_bcache_statistics)
4589 (print_objfile_statistics, maintenance_print_objfiles)
4590 (maintenance_info_symtabs, maintenance_check_symtabs)
4591 (maintenance_expand_symtabs, maintenance_info_line_tables):
4592 Update.
4593 * symfile-debug.c (set_debug_symfile): Update.
4594 * source.c (forget_cached_source_info): Update.
4595 * python/python.c (gdbpy_progspaces): Update.
4596 * psymtab.c (maintenance_info_psymtabs): Update.
4597 * probe.c (parse_probes): Update.
4598 * linespec.c (iterate_over_all_matching_symtabs)
4599 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4600 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4601 * exec.c (exec_target::close): Update.
4602 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4603 * breakpoint.c (print_one_breakpoint_location)
4604 (create_longjmp_master_breakpoint)
4605 (create_std_terminate_master_breakpoint): Update.
4606 * progspace.c (program_spaces): Now a std::vector.
4607 (maybe_new_address_space): Update.
4608 (add_program_space): Remove.
4609 (program_space::program_space): Update.
4610 (remove_program_space): Update.
4611 (number_of_program_spaces): Remove.
4612 (print_program_space, update_address_spaces): Update.
4613 * progspace.h (program_spaces): Change type.
4614 (ALL_PSPACES): Remove.
4615 (number_of_program_spaces): Don't declare.
4616 (struct program_space) <next>: Remove.
4617
4618 2020-05-08 Tom Tromey <tom@tromey.com>
4619
4620 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4621 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4622 (enable_break): Update.
4623 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4624 (frv_fdpic_find_canonical_descriptor): Update.
4625 (frv_fetch_objfile_link_map): Update.
4626 * progspace.c (program_space::free_all_objfiles): Update.
4627 (program_space::solibs): New method.
4628 * progspace.h (struct program_space) <solibs>: New method.
4629 * solist.h (master_so_list): Don't declare.
4630 (ALL_SO_LIBS): Remove.
4631 * solib.h (so_list_head): Remove.
4632 (update_solib_list): Update comment.
4633 * solib.c (master_so_list): Remove.
4634 (solib_used, update_solib_list, solib_add)
4635 (info_sharedlibrary_command, clear_solib)
4636 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4637
4638 2020-05-08 Tom Tromey <tom@tromey.com>
4639
4640 * extension.c (extension_languages): Now a std::array.
4641 (ALL_EXTENSION_LANGUAGES): Remove.
4642 (get_ext_lang_defn, get_ext_lang_of_file)
4643 (eval_ext_lang_from_control_command): Update.
4644 (finish_ext_lang_initialization)
4645 (auto_load_ext_lang_scripts_for_objfile)
4646 (ext_lang_type_printers::ext_lang_type_printers)
4647 (apply_ext_lang_type_printers)
4648 (ext_lang_type_printers::~ext_lang_type_printers)
4649 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4650 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4651 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4652 (get_matching_xmethod_workers, ext_lang_colorize)
4653 (ext_lang_before_prompt): Update.
4654 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4655
4656 2020-05-08 Tom Tromey <tom@tromey.com>
4657
4658 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4659 overload.
4660 <swap_string, m_string>: Remove.
4661 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4662 Update.
4663 * stabsread.c (define_symbol, read_type): Update.
4664 * linespec.c (find_linespec_symbols): Update.
4665 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4666 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4667 * dbxread.c (read_dbx_symtab): Update.
4668 * cp-support.h (cp_canonicalize_string_full)
4669 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4670 Return unique_xmalloc_ptr.
4671 * cp-support.c (inspect_type): Update.
4672 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4673 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4674 Likewise.
4675 * c-typeprint.c (print_name_maybe_canonical): Update.
4676 * break-catch-throw.c (check_status_exception_catchpoint):
4677 Update.
4678
4679 2020-05-08 Tom de Vries <tdevries@suse.de>
4680
4681 * infrun.c (follow_fork): Copy current_line and current_symtab to
4682 child thread.
4683
4684 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4685
4686 * async-event.c (struct async_signal_handler, struct
4687 async_event_handler): Reformat, remove typedef.
4688
4689 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4690
4691 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4692 access thistype->main_type->dyn_prop_list directly.
4693
4694 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4695
4696 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4697 (remove_dyn_prop): Remove. Update all users to use
4698 type::remove_dyn_prop.
4699 * gdbtypes.c (remove_dyn_prop): Rename to...
4700 (type::remove_dyn_prop): ... this.
4701
4702 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4703
4704 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4705 (add_dyn_prop): Remove. Update all users to use
4706 type::add_dyn_prop.
4707 * gdbtypes.c (add_dyn_prop): Rename to...
4708 (type::add_dyn_prop): ... this.
4709
4710 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4711
4712 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4713 (get_dyn_prop): Remove. Update all users to use
4714 type::dyn_prop.
4715 * gdbtypes.c (get_dyn_prop): Rename to...
4716 (type::dyn_prop): ... this.
4717
4718 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4719
4720 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4721
4722 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4723
4724 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4725 instruction, skip it if it's there.
4726
4727 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4728
4729 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4730
4731 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4732
4733 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4734 * gdbtypes.c (recursive_dump_type): Remove use of
4735 TYPE_INCOMPLETE.
4736
4737 2020-05-03 Tom Tromey <tom@tromey.com>
4738
4739 * breakpoint.c (catch_command, tcatch_command): Remove.
4740 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4741 add_show_prefix_cmd.
4742 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4743 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4744 Remove.
4745 (add_internal_problem_command): Use add_basic_prefix_cmd,
4746 add_show_prefix_cmd.
4747 * mips-tdep.c (set_mipsfpu_command): Remove.
4748 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4749 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4750 (_initialize_index_cache): Use add_basic_prefix_cmd.
4751 * memattr.c (dummy_cmd): Remove.
4752 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4753 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4754 (_initialize_tui_win): Use add_basic_prefix_cmd,
4755 add_show_prefix_cmd.
4756 * cli/cli-logging.c (set_logging_command): Remove.
4757 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4758 add_show_prefix_cmd.
4759 (show_logging_command): Remove.
4760 * target.c (target_command): Remove.
4761 (add_target): Use add_basic_prefix_cmd.
4762
4763 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4764
4765 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4766
4767 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4768
4769 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4770 info_command.
4771
4772 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4773
4774 * nbsd-nat.c (nbsd_enable_proc_events)
4775 (nbsd_nat_target::post_startup_inferior): Add.
4776 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4777 (nbsd_nat_target::update_thread_list): Rewrite.
4778 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4779 "PTRACE_LWP_CREATE".
4780 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4781
4782 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4783
4784 * stack.c (_initialize_stack): Remove duplicated creation
4785 of "frame" command and "f" alias.
4786
4787 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4788
4789 PR gdb/18706
4790 * gdbtypes.c (check_typedef): Calculate size of array of
4791 stubbed type.
4792
4793 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4794
4795 PR gdb/15559
4796 * i386-tdep.c (i386_push_dummy_call): Call
4797 i386_thiscall_push_dummy_call.
4798 (i386_thiscall_push_dummy_call): New function.
4799 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4800 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4801 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4802
4803 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4804
4805 * gdbarch.sh (do_read): Add shellcheck disable directive for
4806 warning SC2162.
4807
4808 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4809
4810 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4811 "referenced but not assigned" warning.
4812
4813 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4814
4815 * gdbarch.sh: Remove code that sets fallbackdefault.
4816
4817 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4818
4819 * gdbarch.sh: Use shell operators && and || instead of
4820 -a and -o.
4821
4822 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4823
4824 * gdbarch.sh: Use $(...) instead of `...`.
4825
4826 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4827
4828 * gdbarch.sh: Use double quotes around variables.
4829
4830 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4831
4832 * gdbarch.sh: Use %s with printf, instead of variables in the
4833 format string.
4834
4835 2020-04-29 Tom Tromey <tromey@adacore.com>
4836
4837 PR ada/25875:
4838 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4839 type fields here.
4840 (read_enumeration_type): Call
4841 update_enumeration_type_from_children later. Update comments.
4842 (process_enumeration_scope): Don't create type fields.
4843
4844 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4845
4846 * nbsd-tdep.c: Include "xml-syscall.h".
4847 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4848
4849 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4850
4851 * nbsd-nat.c: Include "sys/wait.h".
4852 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4853 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4854 (nbsd_nat_target::remove_exec_catchpoint)
4855 (nbsd_nat_target::set_syscall_catchpoint): Add.
4856 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4857 (nbsd_nat_target::insert_exec_catchpoint)
4858 (nbsd_nat_target::remove_exec_catchpoint)
4859 (nbsd_nat_target::set_syscall_catchpoint): Add.
4860 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4861 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4862 `nbsd_get_syscall_number'.
4863
4864 2020-04-29 Tom Tromey <tom@tromey.com>
4865
4866 * stack.c (print_block_frame_labels): Remove.
4867
4868 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4869
4870 PR gdb/17320
4871 * ada-valprint.c (val_print_packed_array_elements): Move array
4872 end bracket to new line.
4873 (ada_val_print_string): Remove extra spaces before first array
4874 element.
4875 * c-valprint.c (c_value_print_array): Likewise.
4876 * m2-valprint.c (m2_print_array_contents): Likewise.
4877 (m2_value_print_inner): Likewise.
4878 * p-valprint.c (pascal_value_print_inner): Likewise.
4879 * valprint.c (generic_val_print_array): Likewise.
4880 (value_print_array_elements): Move first array element and array
4881 end bracket to new line.
4882
4883 2020-04-29 Tom de Vries <tdevries@suse.de>
4884
4885 PR symtab/25889
4886 * linespec.c (find_method): Fix ix calculation.
4887
4888 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4889
4890 * syscalls/update-netbsd.sh: New file.
4891 * syscalls/netbsd.xml: Regenerate.
4892 * data-directory/Makefile.in: Register `netbsd.xml' in
4893 `SYSCALLS_FILES'.
4894
4895 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4896
4897 * syscalls/update-freebsd.sh: Add double quotes.
4898
4899 2020-04-28 Tom Tromey <tom@tromey.com>
4900
4901 * NEWS: Update.
4902 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4903 (cmdpy_init): Allow class_tui.
4904
4905 2020-04-28 Mark Williams <mark@myosotissp.com>
4906
4907 PR gdb/24480
4908 * dwarf2read.c: Add missing assingments to list_in_scope when
4909 start_symtab was already called.
4910
4911 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4912
4913 PR gdb/25881
4914 * dwarf2/read.c (offset_map_type): Use
4915 gdb:hash_enum<sect_offset> as hash function.
4916
4917 2020-04-28 Tom de Vries <tdevries@suse.de>
4918
4919 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4920 with DW_AT_signature.
4921
4922 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4923
4924 * configure.ac: Remove check for fs_base/gs_base in
4925 user_regs_struct.
4926 * configure: Re-generate.
4927 * config.in: Re-generate.
4928 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4929 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4930 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4931
4932 2020-04-27 Luis Machado <luis.machado@linaro.org>
4933
4934 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4935 problematic inline frame unwinding situation.
4936 * frame.c (frame_id_computed_p): New function.
4937 * frame.h (frame_id_computed_p): New prototype.
4938
4939 2020-04-26 Tom Tromey <tom@tromey.com>
4940
4941 * command.h (enum command_class) <class_pseudo>: Remove.
4942
4943 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4944
4945 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4946 and whitespace.
4947
4948 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4949
4950 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4951 `PT_GET_PROCESS_STATE' block.
4952
4953 2020-04-24 Tom Tromey <tom@tromey.com>
4954
4955 * symtab.h (symbol_get_demangled_name): Don't declare.
4956 * symtab.c (symbol_get_demangled_name): Remove.
4957 (general_symbol_info::natural_name)
4958 (general_symbol_info::demangled_name): Update.
4959
4960 2020-04-24 Tom Tromey <tom@tromey.com>
4961
4962 PR rust/25025:
4963 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4964
4965 2020-04-24 Tom Tromey <tom@tromey.com>
4966
4967 PR symtab/12707:
4968 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4969 exists.
4970 (new_symbol): Likewise.
4971 * compile/compile-object-load.c (get_out_value_type): Use
4972 symbol_matches_search_name.
4973
4974 2020-04-24 Tom Tromey <tom@tromey.com>
4975
4976 * dwarf2/read.c (add_partial_symbol): Do not call
4977 compute_and_set_names.
4978
4979 2020-04-24 Tom Tromey <tom@tromey.com>
4980
4981 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4982 overload.
4983
4984 2020-04-24 Tom Tromey <tom@tromey.com>
4985
4986 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4987 (add_psymbol_to_list): New overload. Make old overload call new
4988 one.
4989 * psympriv.h (add_psymbol_to_list): New overload.
4990
4991 2020-04-24 Tom Tromey <tom@tromey.com>
4992
4993 * dwarf2/read.c (partial_die_info::read) <case
4994 DW_AT_linkage_name>: Use value_as_string.
4995 (dwarf2_string_attr): Use value_as_string.
4996 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4997 method.
4998 * dwarf2/attribute.c (attribute::value_as_string): New method.
4999
5000 2020-04-24 Tom Tromey <tom@tromey.com>
5001
5002 * symtab.c (general_symbol_info::natural_name)
5003 (general_symbol_info::demangled_name): Check for language_rust.
5004
5005 2020-04-24 Tom Tromey <tom@tromey.com>
5006
5007 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5008 (dwarf2_physname): ... from here.
5009 (partial_die_info::read): Add Rust "{" hack.
5010
5011 2020-04-24 Tom Tromey <tom@tromey.com>
5012
5013 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5014 method.
5015 (symbol_set_demangled_name): Don't declare.
5016 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5017 symbol_set_demangled_name.
5018 (general_symbol_info::set_language)
5019 (general_symbol_info::compute_and_set_names): Update.
5020 * minsyms.c (minimal_symbol_reader::install): Update.
5021 * dwarf2/read.c (new_symbol): Update.
5022
5023 2020-04-24 Tom Tromey <tromey@adacore.com>
5024
5025 PR python/23662:
5026 * python/py-type.c (convert_field): Handle
5027 FIELD_LOC_KIND_DWARF_BLOCK.
5028 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5029 (typy_get_dynamic): Nw function.
5030 (type_object_getset): Add "dynamic".
5031 * NEWS: Add entry.
5032
5033 2020-04-24 Tom Tromey <tromey@adacore.com>
5034
5035 * ada-typeprint.c (print_choices, print_variant_part)
5036 (print_record_field_types_dynamic): New functions.
5037 (print_record_field_types): Use print_record_field_types_dynamic.
5038
5039 2020-04-24 Tom Tromey <tromey@adacore.com>
5040
5041 * dwarf2/read.c (handle_data_member_location): New overload.
5042 (dwarf2_add_field): Use it.
5043 (decode_locdesc): Add "computed" parameter. Update comment.
5044 * gdbtypes.c (is_dynamic_type_internal): Also look for
5045 FIELD_LOC_KIND_DWARF_BLOCK.
5046 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5047 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5048 virtual base classes.
5049 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5050 FIELD_LOC_KIND_DWARF_BLOCK.
5051
5052 2020-04-24 Tom Tromey <tromey@adacore.com>
5053
5054 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5055 * gdbtypes.c (is_dynamic_type_internal): Check
5056 TYPE_HAS_DYNAMIC_LENGTH.
5057 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5058 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5059 New macros.
5060 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5061 constant.
5062
5063 2020-04-24 Tom Tromey <tromey@adacore.com>
5064
5065 * dwarf2/read.c (struct variant_field): Rewrite.
5066 (struct variant_part_builder): New.
5067 (struct nextfield): Remove "variant" field. Add "offset".
5068 (struct field_info): Add "current_variant_part" and
5069 "variant_parts".
5070 (alloc_discriminant_info): Remove.
5071 (alloc_rust_variant): New function.
5072 (quirk_rust_enum): Update.
5073 (dwarf2_add_field): Set "offset" member. Don't handle
5074 DW_TAG_variant_part.
5075 (offset_map_type): New typedef.
5076 (convert_variant_range, create_one_variant)
5077 (create_one_variant_part, create_variant_parts)
5078 (add_variant_property): New functions.
5079 (dwarf2_attach_fields_to_type): Call add_variant_property.
5080 (read_structure_type): Don't handle DW_TAG_variant_part.
5081 (handle_variant_part, handle_variant): New functions.
5082 (handle_struct_member_die): Use them.
5083 (process_structure_scope): Don't handle variant parts.
5084 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5085 (struct discriminant_info): Remove.
5086 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5087 (struct main_type) <flag_discriminated_union>: Remove.
5088 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5089 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5090 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5091 Update.
5092 * valops.c (value_union_variant): Remove.
5093 * value.h (value_union_variant): Don't declare.
5094
5095 2020-04-24 Tom Tromey <tromey@adacore.com>
5096
5097 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5098 (ada_value_primitive_packed_val): Update.
5099 * ada-valprint.c (ada_value_print_1): Update.
5100 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5101 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5102 just an address. Use evaluate_for_locexpr_baton.
5103 (dwarf2_evaluate_property): Update.
5104 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5105 array_view.
5106 * findvar.c (default_read_var_value): Update.
5107 * gdbtypes.c (compute_variant_fields_inner)
5108 (resolve_dynamic_type_internal): Update.
5109 (resolve_dynamic_type): Change type of valaddr parameter.
5110 * gdbtypes.h (resolve_dynamic_type): Update.
5111 * valarith.c (value_subscripted_rvalue): Update.
5112 * value.c (value_from_contents_and_address): Update.
5113
5114 2020-04-24 Tom Tromey <tromey@adacore.com>
5115
5116 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5117 "push_initial_value" parameter.
5118 (dwarf2_evaluate_property): Likewise.
5119 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5120
5121 2020-04-24 Tom Tromey <tromey@adacore.com>
5122
5123 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5124 (variant::matches, compute_variant_fields_recurse)
5125 (compute_variant_fields_inner, compute_variant_fields): New
5126 functions.
5127 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5128 Use resolved_type after type is made.
5129 (operator==): Add new cases.
5130 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5131 (struct discriminant_range, struct variant, struct variant_part):
5132 New.
5133 (union dynamic_prop_data) <variant_parts, original_type>: New
5134 members.
5135 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5136 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5137 constants.
5138 * value.c (unpack_bits_as_long): Now public.
5139 * value.h (unpack_bits_as_long): Declare.
5140
5141 2020-04-24 Tom Tromey <tromey@adacore.com>
5142
5143 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5144 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5145
5146 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5147
5148 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5149
5150 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5151
5152 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5153 (remove_fork_catchpoint, post_startup_inferior)
5154 (post_attach): Move...
5155 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5156 (remove_fork_catchpoint, post_startup_inferior)
5157 (post_attach): ...here.
5158 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5159 (remove_fork_catchpoint, post_startup_inferior)
5160 (post_attach): Move...
5161 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5162 (remove_fork_catchpoint, post_startup_inferior)
5163 (post_attach): ...here.
5164
5165 2020-04-24 Tom Tromey <tromey@adacore.com>
5166
5167 * nat/windows-nat.h (struct windows_thread_info)
5168 <pc_adjusted>: New member.
5169 * windows-nat.c (windows_fetch_one_register): Check
5170 pc_adjusted.
5171 (windows_nat_target::get_windows_debug_event)
5172 (windows_nat_target::wait): Set pc_adjusted.
5173
5174 2020-04-24 Tom de Vries <tdevries@suse.de>
5175
5176 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5177 Run gdb-add-index inside temp dir.
5178
5179 2020-04-23 Tom Tromey <tromey@adacore.com>
5180
5181 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5182 in loop.
5183
5184 2020-04-23 Luis Machado <luis.machado@linaro.org>
5185
5186 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5187 get_frame_register instead of gdbarch_unwind_pc.
5188
5189 2020-04-23 Tom de Vries <tdevries@suse.de>
5190
5191 * symtab.c (lookup_global_symbol): Prefer def over decl.
5192
5193 2020-04-23 Tom de Vries <tdevries@suse.de>
5194
5195 PR symtab/25807
5196 * block.c (best_symbol, better_symbol): Promote to external.
5197 * block.h (best_symbol, better_symbol): Declare.
5198 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5199 decl.
5200
5201 2020-04-23 Tom Tromey <tromey@adacore.com>
5202
5203 PR ada/25837:
5204 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5205 "const char *", not a "const std::string &".
5206 <name_and_matcher::operator==>: Update.
5207 * unittests/lookup_name_info-selftests.c: Change type of
5208 "result".
5209
5210 2020-04-23 Tom Tromey <tom@tromey.com>
5211
5212 * inferior.h (iterate_over_inferiors): Don't declare.
5213 * inferior.c (iterate_over_inferiors): Remove.
5214 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5215 Remove.
5216 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5217 use iterate_over_inferiors.
5218 (darwin_resume_inferior_it)
5219 (struct resume_inferior_threads_param)
5220 (darwin_resume_inferior_threads_it): Remove.
5221 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5222
5223 2020-04-23 Tom de Vries <tdevries@suse.de>
5224
5225 * blockframe.c (find_pc_partial_function): Use
5226 find_pc_sect_compunit_symtab rather than
5227 objfile->sf->qf->find_pc_sect_compunit_symtab.
5228
5229 2020-04-22 Tom de Vries <tdevries@suse.de>
5230
5231 PR symtab/25764
5232 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5233 in psymtabs.
5234
5235 2020-04-22 Tom de Vries <tdevries@suse.de>
5236
5237 PR symtab/25801
5238 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5239 symtabs.
5240
5241 2020-04-22 Tom de Vries <tdevries@suse.de>
5242
5243 PR symtab/25700
5244 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5245 CU if already created.
5246
5247 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5248
5249 * infrun.c (displaced_step_fixup): Switch to the event_thread
5250 before calling displaced_step_restore, not after.
5251
5252 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5253
5254 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5255 its inferior is not recorded by us.
5256 (record_btrace_target_open): Replace call to
5257 all_non_exited_threads () with call to current_inferior
5258 ()->non_exited_threads ().
5259 (record_btrace_target::stop_recording): Likewise.
5260 (record_btrace_target::close): Likewise.
5261 (record_btrace_target::wait): Likewise.
5262 (record_btrace_target::record_stop_replaying): Likewise.
5263
5264 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5265
5266 * btrace.c (btrace_enable): Throw an error on double enables and
5267 when enabling recording fails.
5268 (btrace_disable): Throw an error if the thread is not recorded.
5269
5270 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5271
5272 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5273 request if we do not have a thread_info.
5274
5275 2020-04-21 Tom de Vries <tdevries@suse.de>
5276
5277 PR gdb/25471
5278 * thread.c
5279 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5280 exception in get_frame_id.
5281
5282 2020-04-20 Tom Tromey <tromey@adacore.com>
5283
5284 * python/python.c (struct gdbpy_event): Mark move constructor as
5285 noexcept.
5286 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5287 constructor as noexcept.
5288 * completer.h (struct completion_result): Mark move constructor as
5289 noexcept.
5290 * completer.c (completion_result::completion_result): Use
5291 initialization style. Don't call reset_match_list.
5292
5293 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5294
5295 * MAINTAINERS (Write After Approval): Add myself.
5296
5297 2020-04-18 Tom Tromey <tom@tromey.com>
5298
5299 * windows-tdep.c (init_w32_command_list)
5300 (w32_prefix_command_valid): Restore.
5301 (_initialize_windows_tdep): Call init_w32_command_list.
5302
5303 2020-04-18 Tom Tromey <tom@tromey.com>
5304
5305 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5306 * value.c (value_fn_field): Update.
5307 * valops.c (find_function_in_inferior)
5308 (value_allocate_space_in_inferior): Update.
5309 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5310 Update.
5311 * tui/tui-source.c (tui_source_window::set_contents): Update.
5312 * symtab.c (lookup_global_or_static_symbol)
5313 (find_function_start_sal_1, skip_prologue_sal)
5314 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5315 * symmisc.c (dump_msymbols, dump_symtab_1)
5316 (maintenance_print_one_line_table): Update.
5317 * symfile.c (init_entry_point_info, section_is_mapped)
5318 (list_overlays_command, simple_read_overlay_table)
5319 (simple_overlay_update_1): Update.
5320 * stap-probe.c (handle_stap_probe): Update.
5321 * stabsread.c (dbx_init_float_type, define_symbol)
5322 (read_one_struct_field, read_enum_type, read_range_type): Update.
5323 * source.c (info_line_command): Update.
5324 * python/python.c (gdbpy_source_objfile_script)
5325 (gdbpy_execute_objfile_script): Update.
5326 * python/py-type.c (save_objfile_types): Update.
5327 * python/py-objfile.c (py_free_objfile): Update.
5328 * python/py-inferior.c (python_new_objfile): Update.
5329 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5330 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5331 (maintenance_check_psymtabs): Update.
5332 * printcmd.c (info_address_command): Update.
5333 * objfiles.h (struct objfile) <arch>: New method, from
5334 get_objfile_arch.
5335 (get_objfile_arch): Don't declare.
5336 * objfiles.c (get_objfile_arch): Remove.
5337 (filter_overlapping_sections): Update.
5338 * minsyms.c (msymbol_is_function): Update.
5339 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5340 (output_nondebug_symbol): Update.
5341 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5342 (mdebug_expand_psymtab): Update.
5343 * machoread.c (macho_add_oso_symfile): Update.
5344 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5345 Update.
5346 * linux-fork.c (checkpoint_command): Update.
5347 * linespec.c (convert_linespec_to_sals): Update.
5348 * jit.c (finalize_symtab): Update.
5349 * infrun.c (insert_exception_resume_from_probe): Update.
5350 * ia64-tdep.c (ia64_find_unwind_table): Update.
5351 * hppa-tdep.c (internalize_unwinds): Update.
5352 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5353 Update.
5354 * gcore.c (call_target_sbrk): Update.
5355 * elfread.c (record_minimal_symbol, elf_symtab_read)
5356 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5357 (elf_gnu_ifunc_resolve_by_got): Update.
5358 * dwarf2/read.c (create_addrmap_from_index)
5359 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5360 (read_debug_names_from_section)
5361 (process_psymtab_comp_unit_reader, add_partial_symbol)
5362 (add_partial_subprogram, process_full_comp_unit)
5363 (read_file_scope, read_func_scope, read_lexical_block_scope)
5364 (read_call_site_scope, dwarf2_ranges_read)
5365 (dwarf2_record_block_ranges, dwarf2_add_field)
5366 (mark_common_block_symbol_computed, read_tag_pointer_type)
5367 (read_tag_string_type, dwarf2_init_float_type)
5368 (dwarf2_init_complex_target_type, read_base_type)
5369 (partial_die_info::read, partial_die_info::read)
5370 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5371 (dwarf2_fetch_die_loc_sect_off): Update.
5372 * dwarf2/loc.c (dwarf2_find_location_expression)
5373 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5374 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5375 (dwarf2_loc_desc_get_symbol_read_needs)
5376 (locexpr_describe_location_piece, locexpr_describe_location_1)
5377 (loclist_describe_location): Update.
5378 * dwarf2/index-write.c (write_debug_names): Update.
5379 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5380 * dtrace-probe.c (dtrace_process_dof): Update.
5381 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5382 (process_one_symbol): Update.
5383 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5384 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5385 (coff_read_enum_type): Update.
5386 * cli/cli-cmds.c (edit_command, list_command): Update.
5387 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5388 * breakpoint.c (create_overlay_event_breakpoint)
5389 (create_longjmp_master_breakpoint)
5390 (create_std_terminate_master_breakpoint)
5391 (create_exception_master_breakpoint, get_sal_arch): Update.
5392 * block.c (block_gdbarch): Update.
5393 * annotate.c (annotate_source_line): Update.
5394
5395 2020-04-17 Tom Tromey <tromey@adacore.com>
5396
5397 * auto-load.c (show_auto_load_cmd): Remove.
5398 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5399 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5400 (maintenance_print_arc_command): Remove.
5401 * tui/tui-win.c (tui_command): Remove.
5402 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5403 * tui/tui-layout.c (tui_layout_command): Remove.
5404 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5405 * python/python.c (user_set_python, user_show_python): Remove.
5406 (_initialize_python): Use add_basic_prefix_cmd,
5407 add_show_prefix_cmd.
5408 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5409 (install_gdb_commands): Use add_basic_prefix_cmd,
5410 add_show_prefix_cmd.
5411 (info_guile_command): Remove.
5412 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5413 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5414 add_show_prefix_cmd.
5415 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5416 Remove do_set and do_show parameters.
5417 * cli/cli-style.c (set_style, show_style): Remove.
5418 (_initialize_cli_style): Use add_basic_prefix_cmd,
5419 add_show_prefix_cmd.
5420 (cli_style_option::add_setshow_commands): Remove do_set and
5421 do_show parameters.
5422 (cli_style_option::add_setshow_commands): Use
5423 add_basic_prefix_cmd, add_show_prefix_cmd.
5424 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5425 (set_style_name): Remove.
5426 * cli/cli-dump.c (dump_command, append_command): Remove.
5427 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5428 (tekhex_dump_command, binary_dump_command)
5429 (binary_append_command): Remove.
5430 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5431 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5432 (init_w32_command_list): Remove; move into ...
5433 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5434 * valprint.c (set_print, show_print, set_print_raw)
5435 (show_print_raw): Remove.
5436 (_initialize_valprint): Use add_basic_prefix_cmd,
5437 add_show_prefix_cmd.
5438 * typeprint.c (set_print_type, show_print_type): Remove.
5439 (_initialize_typeprint): Use add_basic_prefix_cmd,
5440 add_show_prefix_cmd.
5441 * record.c (set_record_command, show_record_command): Remove.
5442 (_initialize_record): Use add_basic_prefix_cmd,
5443 add_show_prefix_cmd.
5444 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5445 add_show_prefix_cmd.
5446 (info_command, show_command, set_debug, show_debug): Remove.
5447 * top.h (set_history, show_history): Don't declare.
5448 * top.c (set_history, show_history): Remove.
5449 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5450 (unset_tdesc_cmd): Remove.
5451 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5452 add_show_prefix_cmd.
5453 * symtab.c (info_module_command): Remove.
5454 (_initialize_symtab): Use add_basic_prefix_cmd.
5455 * symfile.c (overlay_command): Remove.
5456 (_initialize_symfile): Use add_basic_prefix_cmd.
5457 * sparc64-tdep.c (info_adi_command): Remove.
5458 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5459 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5460 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5461 add_show_prefix_cmd.
5462 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5463 (_initialize_serial): Use add_basic_prefix_cmd,
5464 add_show_prefix_cmd.
5465 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5466 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5467 add_show_prefix_cmd.
5468 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5469 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5470 add_show_prefix_cmd.
5471 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5472 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5473 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5474 add_show_prefix_cmd.
5475 * remote.c (remote_command, set_remote_cmd): Remove.
5476 (_initialize_remote): Use add_basic_prefix_cmd.
5477 * record-full.c (set_record_full_command)
5478 (show_record_full_command): Remove.
5479 (_initialize_record_full): Use add_basic_prefix_cmd,
5480 add_show_prefix_cmd.
5481 * record-btrace.c (cmd_set_record_btrace)
5482 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5483 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5484 (cmd_show_record_btrace_pt): Remove.
5485 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5486 add_show_prefix_cmd.
5487 * ravenscar-thread.c (set_ravenscar_command)
5488 (show_ravenscar_command): Remove.
5489 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5490 add_show_prefix_cmd.
5491 * mips-tdep.c (show_mips_command, set_mips_command)
5492 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5493 add_show_prefix_cmd.
5494 * maint.c (maintenance_command, maintenance_info_command)
5495 (maintenance_check_command, maintenance_print_command)
5496 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5497 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5498 add_show_prefix_cmd.
5499 (show_per_command_cmd): Remove.
5500 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5501 Remove.
5502 (maintenance_show_test_settings_cmd): Remove.
5503 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5504 add_show_prefix_cmd.
5505 * maint-test-options.c (maintenance_test_options_command):
5506 Remove.
5507 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5508 * macrocmd.c (macro_command): Remove
5509 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5510 * language.c (set_check, show_check): Remove.
5511 (_initialize_language): Use add_basic_prefix_cmd,
5512 add_show_prefix_cmd.
5513 * infcmd.c (unset_command): Remove.
5514 (_initialize_infcmd): Use add_basic_prefix_cmd.
5515 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5516 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5517 add_show_prefix_cmd.
5518 * go32-nat.c (go32_info_dos_command): Remove.
5519 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5520 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5521 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5522 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5523 (_initialize_frame): Use add_basic_prefix_cmd,
5524 add_show_prefix_cmd.
5525 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5526 (_initialize_dcache): Use add_basic_prefix_cmd,
5527 add_show_prefix_cmd.
5528 * cp-support.c (maint_cplus_command): Remove.
5529 (_initialize_cp_support): Use add_basic_prefix_cmd.
5530 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5531 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5532 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5533 add_basic_prefix_cmd, add_show_prefix_cmd.
5534 * breakpoint.c (save_command): Remove.
5535 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5536 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5537 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5538 add_show_prefix_cmd.
5539 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5540 (set_ada_command, show_ada_command): Remove.
5541 (_initialize_ada_language): Use add_basic_prefix_cmd,
5542 add_show_prefix_cmd.
5543 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5544
5545 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5546
5547 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5548 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5549
5550 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5551
5552 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5553 warning messages.
5554
5555 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5556
5557 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5558 import table is not at beginning of .idata section.
5559
5560 2020-04-16 Pedro Alves <palves@redhat.com>
5561
5562 * inferior.c (delete_inferior): Use delete operator directly
5563 instead of delete_program_space.
5564 * progspace.c (add_program_space): New, factored out from
5565 program_space::program_space.
5566 (remove_program_space): New, factored out from
5567 delete_program_space.
5568 (program_space::program_space): Remove intro comment. Rewrite.
5569 (program_space::~program_space): Remove intro comment. Call
5570 remove_program_space.
5571 (delete_program_space): Delete.
5572 * progspace.h (program_space::program_space): Make explicit. Move
5573 intro comment here, adjusted.
5574 (program_space::~program_space): Move intro comment here,
5575 adjusted.
5576 (delete_program_space): Remove.
5577
5578 2020-04-16 Tom Tromey <tromey@adacore.com>
5579
5580 * windows-nat.c (windows_nat::handle_access_violation): New
5581 function.
5582 * nat/windows-nat.h (handle_access_violation): Declare.
5583 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5584 windows-nat.c. Call handle_access_violation.
5585
5586 2020-04-16 Tom de Vries <tdevries@suse.de>
5587
5588 PR symtab/25791
5589 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5590 CUs without psymtab.
5591
5592 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5593
5594 * python/python.c (do_start_initialization): Don't call
5595 PyEval_InitThreads for Python 3.9 and beyond.
5596
5597 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5598
5599 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5600 thread functions.
5601 (obsd_nat_target::wait): Likewise.
5602
5603 2020-04-15 Tom Tromey <tromey@adacore.com>
5604
5605 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5606 (DEBUG_EXCEPT): Use debug_printf.
5607
5608 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5609
5610 * completer.c (class completion_tracker::completion_hash_entry)
5611 <hash_name>: New member function.
5612 (completion_tracker::discard_completions): New callback to hash a
5613 completion_hash_entry, pass this to htab_create_alloc.
5614
5615 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5616
5617 * windows-nat.c (windows_make_so): Warn rather than stopping with
5618 an error if realpath() fails.
5619
5620 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5621
5622 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5623 (nbsd_nat_target::info_proc): Add do_status.
5624
5625 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5626 Tom de Vries <tdevries@suse.de>
5627
5628 PR symtab/25718
5629 * psympriv.h (struct partial_symtab::read_symtab)
5630 (struct partial_symtab::expand_psymtab)
5631 (struct partial_symtab::read_dependencies): Update comments.
5632 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5633 read_symtab for includer.
5634 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5635 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5636 (struct dwarf2_include_psymtab::m_readin): Remove.
5637 (struct dwarf2_include_psymtab::includer): New member function.
5638 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5639
5640 2020-04-14 Tom de Vries <tdevries@suse.de>
5641
5642 PR symtab/25720
5643 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5644 with NULL symbol_matcher and lookup_name.
5645 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5646 and lookup_name.
5647 * dwarf2/read.c (dw2_expand_symtabs_matching)
5648 (dw2_debug_names_expand_symtabs_matching): Same.
5649 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5650 Make lookup_name a pointer. Update comment.
5651 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5652 lookup_name being a pointer.
5653 * symfile.c (expand_symtabs_matching): Same.
5654 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5655 * linespec.c (iterate_over_all_matching_symtabs): Same.
5656
5657 2020-04-13 Tom Tromey <tom@tromey.com>
5658
5659 * run-on-main-thread.c: Update include.
5660 * unittests/main-thread-selftests.c: Update include.
5661 * tui/tui-win.c: Update include.
5662 * tui/tui-io.c: Update include.
5663 * tui/tui-interp.c: Update include.
5664 * tui/tui-hooks.c: Update include.
5665 * top.h: Update include.
5666 * top.c: Update include.
5667 * ser-base.c: Update include.
5668 * remote.c: Update include.
5669 * remote-notif.c: Update include.
5670 * remote-fileio.c: Update include.
5671 * record-full.c: Update include.
5672 * record-btrace.c: Update include.
5673 * python/python.c: Update include.
5674 * posix-hdep.c: Update include.
5675 * mingw-hdep.c: Update include.
5676 * mi/mi-main.c: Update include.
5677 * mi/mi-interp.c: Update include.
5678 * main.c: Update include.
5679 * linux-nat.c: Update include.
5680 * interps.c: Update include.
5681 * infrun.c: Update include.
5682 * inf-loop.c: Update include.
5683 * event-top.c: Update include.
5684 * event-loop.c: Move to ../gdbsupport/.
5685 * event-loop.h: Move to ../gdbsupport/.
5686 * async-event.h: Update include.
5687 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5688
5689 2020-04-13 Tom Tromey <tom@tromey.com>
5690
5691 * tui/tui-win.c: Include async-event.h.
5692 * remote.c: Include async-event.h.
5693 * remote-notif.c: Include async-event.h.
5694 * record-full.c: Include async-event.h.
5695 * record-btrace.c: Include async-event.h.
5696 * infrun.c: Include async-event.h.
5697 * event-top.c: Include async-event.h.
5698 * event-loop.h: Move some declarations to async-event.h.
5699 * event-loop.c: Don't include ser-event.h or top.h. Move some
5700 code to async-event.c.
5701 * async-event.h: New file.
5702 * async-event.c: New file.
5703 * Makefile.in (COMMON_SFILES): Add async-event.c.
5704 (HFILES_NO_SRCDIR): Add async-event.h.
5705
5706 2020-04-13 Tom Tromey <tom@tromey.com>
5707
5708 * utils.c (flush_streams): New function.
5709 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5710
5711 2020-04-13 Tom Tromey <tom@tromey.com>
5712
5713 * event-loop.c (handle_file_event): Use warning, not
5714 printf_unfiltered.
5715
5716 2020-04-13 Tom Tromey <tom@tromey.com>
5717
5718 * event-loop.c: Include <chrono>.
5719
5720 2020-04-13 Tom Tromey <tom@tromey.com>
5721
5722 * gdb_select.h: Move to ../gdbsupport/.
5723 * event-loop.c: Update include path.
5724 * top.c: Update include path.
5725 * ser-base.c: Update include path.
5726 * ui-file.c: Update include path.
5727 * ser-tcp.c: Update include path.
5728 * guile/scm-ports.c: Update include path.
5729 * posix-hdep.c: Update include path.
5730 * ser-unix.c: Update include path.
5731 * gdb_usleep.c: Update include path.
5732 * mingw-hdep.c: Update include path.
5733 * inflow.c: Update include path.
5734 * infrun.c: Update include path.
5735 * event-top.c: Update include path.
5736
5737 2020-04-13 Tom Tromey <tom@tromey.com>
5738
5739 * configure: Rebuild.
5740 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5741
5742 2020-04-13 Tom Tromey <tom@tromey.com>
5743
5744 * event-loop.h (start_event_loop): Don't declare.
5745 * event-loop.c (start_event_loop): Move...
5746 * main.c (start_event_loop): ...here. Now static.
5747
5748 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5749
5750 * MAINTAINERS: Update my email address.
5751
5752 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5753
5754 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5755 IP_ALL.
5756
5757 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5758
5759 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5760 (nbsd_nat_target::info_proc): Add do_cmdline.
5761
5762 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5763
5764 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5765 (nbsd_nat_target::info_proc): Add do_cwd.
5766
5767 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5768
5769 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5770
5771 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5772
5773 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5774 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5775 (nbsd_nat_target::info_proc): New functions.
5776 * nbsd-nat.c (kinfo_get_vmmap): New function.
5777 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5778 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5779 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5780 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5781 functions.
5782 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5783 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5784 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5785 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5786 (KINFO_VME_FLAG_GROWS_DOWN): New.
5787
5788 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5789
5790 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5791 bit shift.
5792
5793 2020-04-10 Tom Tromey <tromey@adacore.com>
5794
5795 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5796
5797 2020-04-10 Tom Tromey <tromey@adacore.com>
5798
5799 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5800 separate debug files.
5801
5802 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5803
5804 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5805 Move to...
5806 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5807 ... here.
5808 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5809 Check for STATUS_WX86_BREAKPOINT.
5810 (windows_nat_target::wait): Same.
5811
5812 2020-04-10 Tom de Vries <tdevries@suse.de>
5813
5814 PR cli/25808
5815 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5816
5817 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5818
5819 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5820 (Write After Approval): Remove Tom de Vries.
5821
5822 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5823
5824 revert partially:
5825 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5826
5827 * buildsym.c (record_line): Fix undefined behavior and preserve
5828 lines at eof.
5829
5830 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5831
5832 * auxv.h (svr4_auxv_parse): New.
5833 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5834 and generic_auxv_parse.
5835 (svr4_auxv_parse): Add.
5836 * obsd-tdep.c: Include "auxv.h".
5837 (obsd_auxv_parse): Remove.
5838 (obsd_init_abi): Remove comment.
5839 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5840 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5841 * nbsd-tdep.c: Include "auxv.h".
5842 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5843
5844 2020-04-08 Tom Tromey <tromey@adacore.com>
5845
5846 * nat/windows-nat.h (last_wait_event): Don't declare.
5847 (wait_for_debug_event): Update comment.
5848 * nat/windows-nat.c (last_wait_event): Now static.
5849
5850 2020-04-08 Tom Tromey <tromey@adacore.com>
5851
5852 * windows-nat.c (wait_for_debug_event): Move to
5853 nat/windows-nat.c.
5854 * nat/windows-nat.h (wait_for_debug_event): Declare.
5855 * nat/windows-nat.c (wait_for_debug_event): Move from
5856 windows-nat.c. No longer static.
5857
5858 2020-04-08 Tom Tromey <tromey@adacore.com>
5859
5860 * windows-nat.c (get_windows_debug_event): Use
5861 fetch_pending_stop.
5862 * nat/windows-nat.h (fetch_pending_stop): Declare.
5863 * nat/windows-nat.c (fetch_pending_stop): New function.
5864
5865 2020-04-08 Tom Tromey <tromey@adacore.com>
5866
5867 * windows-nat.c (windows_continue): Use matching_pending_stop and
5868 continue_last_debug_event.
5869 * nat/windows-nat.h (matching_pending_stop)
5870 (continue_last_debug_event): Declare.
5871 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5872 (matching_pending_stop, continue_last_debug_event): New
5873 functions.
5874
5875 2020-04-08 Tom Tromey <tromey@adacore.com>
5876
5877 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5878 (handle_exception_result): Move to nat/windows-nat.h.
5879 (DEBUG_EXCEPTION_SIMPLE): Remove.
5880 (windows_nat::handle_ms_vc_exception): New function.
5881 (handle_exception): Move to nat/windows-nat.c.
5882 (get_windows_debug_event): Update.
5883 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5884 nat/windows-nat.c.
5885 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5886 (handle_exception_result): Move from windows-nat.c.
5887 (handle_exception): Declare.
5888 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5889 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5890 windows-nat.c.
5891
5892 2020-04-08 Tom Tromey <tromey@adacore.com>
5893
5894 * windows-nat.c (exception_count, event_count): Remove.
5895 (handle_exception, get_windows_debug_event)
5896 (do_initial_windows_stuff): Update.
5897
5898 2020-04-08 Tom Tromey <tromey@adacore.com>
5899
5900 * windows-nat.c (windows_nat::handle_load_dll)
5901 (windows_nat::handle_unload_dll): Rename. No longer static.
5902 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5903 Declare.
5904
5905 2020-04-08 Tom Tromey <tromey@adacore.com>
5906
5907 * complaints.h (stop_whining): Declare at top-level.
5908 (complaint): Don't declare stop_whining.
5909
5910 2020-04-08 Tom Tromey <tromey@adacore.com>
5911
5912 * windows-nat.c (windows_nat::handle_output_debug_string):
5913 Rename. No longer static.
5914 * nat/windows-nat.h (handle_output_debug_string): Declare.
5915
5916 2020-04-08 Tom Tromey <tromey@adacore.com>
5917
5918 * windows-nat.c (current_process_handle, current_process_id)
5919 (main_thread_id, last_sig, current_event, last_wait_event)
5920 (current_windows_thread, desired_stop_thread_id, pending_stops)
5921 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5922 (display_selectors, fake_create_process)
5923 (get_windows_debug_event): Update.
5924 * nat/windows-nat.h (current_process_handle, current_process_id)
5925 (main_thread_id, last_sig, current_event, last_wait_event)
5926 (current_windows_thread, desired_stop_thread_id, pending_stops)
5927 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5928 * nat/windows-nat.c (current_process_handle, current_process_id)
5929 (main_thread_id, last_sig, current_event, last_wait_event)
5930 (current_windows_thread, desired_stop_thread_id, pending_stops)
5931 (siginfo_er): New globals. Move from windows-nat.c.
5932
5933 2020-04-08 Tom Tromey <tromey@adacore.com>
5934
5935 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5936 (handle_load_dll): Update.
5937 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5938
5939 2020-04-08 Tom Tromey <tromey@adacore.com>
5940
5941 * windows-nat.c (enum thread_disposition_type): Move to
5942 nat/windows-nat.h.
5943 (windows_nat::thread_rec): Rename from thread_rec. No longer
5944 static.
5945 (windows_add_thread, windows_nat_target::fetch_registers)
5946 (windows_nat_target::store_registers, handle_exception)
5947 (windows_nat_target::resume, get_windows_debug_event)
5948 (windows_nat_target::get_tib_address)
5949 (windows_nat_target::thread_name)
5950 (windows_nat_target::thread_alive): Update.
5951 * nat/windows-nat.h (enum thread_disposition_type): Move from
5952 windows-nat.c.
5953 (thread_rec): Declare.
5954
5955 2020-04-08 Tom Tromey <tromey@adacore.com>
5956
5957 * windows-nat.c: Add "using namespace".
5958 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5959 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5960
5961 2020-04-08 Tom Tromey <tromey@adacore.com>
5962
5963 * nat/windows-nat.h (struct windows_thread_info): Declare
5964 destructor.
5965 * nat/windows-nat.c (~windows_thread_info): New.
5966
5967 2020-04-08 Tom Tromey <tromey@adacore.com>
5968
5969 PR gdb/22992
5970 * windows-nat.c (current_event): Update comment.
5971 (last_wait_event, desired_stop_thread_id): New globals.
5972 (struct pending_stop): New.
5973 (pending_stops): New global.
5974 (windows_nat_target) <stopped_by_sw_breakpoint>
5975 <supports_stopped_by_sw_breakpoint>: New methods.
5976 (windows_fetch_one_register): Add assertions. Adjust PC.
5977 (windows_continue): Handle pending stops. Suspend other threads
5978 when stepping. Use last_wait_event
5979 (wait_for_debug_event): New function.
5980 (get_windows_debug_event): Use wait_for_debug_event. Handle
5981 pending stops. Queue spurious stops.
5982 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5983 (windows_nat_target::kill): Use wait_for_debug_event.
5984 * nat/windows-nat.h (struct windows_thread_info)
5985 <stopped_at_software_breakpoint>: New field.
5986 * nat/windows-nat.c (windows_thread_info::resume): Clear
5987 stopped_at_software_breakpoint.
5988
5989 2020-04-08 Tom Tromey <tromey@adacore.com>
5990
5991 * windows-nat.c (enum thread_disposition_type): New.
5992 (thread_rec): Replace "get_context" parameter with "disposition";
5993 change type.
5994 (windows_add_thread, windows_nat_target::fetch_registers)
5995 (windows_nat_target::store_registers, handle_exception)
5996 (windows_nat_target::resume, get_windows_debug_event)
5997 (windows_nat_target::get_tib_address)
5998 (windows_nat_target::thread_name)
5999 (windows_nat_target::thread_alive): Update.
6000
6001 2020-04-08 Tom Tromey <tromey@adacore.com>
6002
6003 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6004 (windows_continue): Use windows_continue::resume.
6005 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6006 resume>: Declare new methods.
6007 * nat/windows-nat.c: New file.
6008 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6009
6010 2020-04-08 Tom Tromey <tromey@adacore.com>
6011
6012 * windows-nat.c (windows_add_thread, windows_delete_thread)
6013 (windows_nat_target::fetch_registers)
6014 (windows_nat_target::store_registers, fake_create_process)
6015 (windows_nat_target::resume, windows_nat_target::resume)
6016 (get_windows_debug_event, windows_nat_target::wait)
6017 (windows_nat_target::pid_to_str)
6018 (windows_nat_target::get_tib_address)
6019 (windows_nat_target::get_ada_task_ptid)
6020 (windows_nat_target::thread_name)
6021 (windows_nat_target::thread_alive): Use lwp, not tid.
6022
6023 2020-04-08 Tom Tromey <tromey@adacore.com>
6024
6025 * windows-nat.c (handle_exception)
6026 (windows_nat_target::thread_name): Update.
6027 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6028 <name>: Now unique_xmalloc_ptr.
6029
6030 2020-04-08 Tom Tromey <tromey@adacore.com>
6031
6032 * windows-nat.c (thread_rec)
6033 (windows_nat_target::fetch_registers): Update.
6034 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6035 Update comment.
6036 <debug_registers_changed, reload_context>: Now bool.
6037
6038 2020-04-08 Tom Tromey <tromey@adacore.com>
6039
6040 * windows-nat.c (windows_add_thread): Use new.
6041 (windows_init_thread_list, windows_delete_thread): Use delete.
6042 (get_windows_debug_event): Update.
6043 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6044 destructor, and initializers.
6045
6046 2020-04-08 Tom Tromey <tromey@adacore.com>
6047
6048 * windows-nat.c (struct windows_thread_info): Remove.
6049 * nat/windows-nat.h: New file.
6050
6051 2020-04-08 Tom Tromey <tromey@adacore.com>
6052
6053 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6054 (thread_rec, windows_add_thread, windows_delete_thread)
6055 (windows_continue): Update.
6056
6057 2020-04-08 Tom Tromey <tromey@adacore.com>
6058
6059 * windows-nat.c (struct windows_thread_info): Remove typedef.
6060 (thread_head): Remove.
6061 (thread_list): New global.
6062 (thread_rec, windows_add_thread, windows_init_thread_list)
6063 (windows_delete_thread, windows_continue): Update.
6064
6065 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6066
6067 * windows-tdep.h (windows_init_abi): Add comment.
6068 (cygwin_init_abi): New declaration.
6069 * windows-tdep.c: Split signal enumeration in two, one for
6070 Windows and one for Cygwin.
6071 (windows_gdb_signal_to_target): Only deal with signal of the
6072 Windows OS ABI.
6073 (cygwin_gdb_signal_to_target): New function.
6074 (windows_init_abi): Rename to windows_init_abi_common, don't set
6075 gdb_signal_to_target gdbarch method. Add new new function with
6076 this name.
6077 (cygwin_init_abi): New function.
6078 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6079 comment. Don't call windows_init_abi.
6080 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6081 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6082 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6083 i386_windows_init_abi_common, don't call windows_init_abi. Add
6084 a new function of this name.
6085 (i386_cygwin_init_abi): New function.
6086 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6087 OS ABI Cygwin.
6088
6089 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6090
6091 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6092 parameter.c.
6093 (dwarf2_read_gdb_index): Update.
6094
6095 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6096
6097 * nbsd-tdep.c: Include "objfiles.h".
6098 (nbsd_skip_solib_resolver): New.
6099 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6100
6101 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6102
6103 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6104 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6105 with DW_LLE_base_addressx are being emitted in DWARFv5.
6106 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6107 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6108 unsigned integer.
6109
6110 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6111
6112 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6113 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6114 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6115 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6116 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6117 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6118 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6119
6120
6121 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6122
6123 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6124 (read_loclist_index): New function definition.
6125 (lookup_loclist_base): New function definition.
6126 (read_loclist_header): New function definition.
6127 (dwarf2_cu): Add loclist_base and loclist_header field.
6128 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6129 (read_full_die_1): Read the value of DW_AT_loclists_base.
6130 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6131 (read_attribute_value): Handle DW_FORM_loclistx.
6132 (skip_one_die): Handle DW_FORM_loclistx.
6133 (loclist_header): New structure declaration.
6134 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6135
6136 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6137
6138 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6139 constructor. Remove `addr` parameter from other constructor and
6140 add `per_cu` parameter.
6141 * dwarf2/read.c (create_partial_symtab): Update.
6142
6143 2020-04-07 Tom de Vries <tdevries@suse.de>
6144
6145 PR symtab/25796
6146 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6147 (partial_die_info::fixup): Inherit has_const_value.
6148
6149 2020-04-07 Tom de Vries <tdevries@suse.de>
6150
6151 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6152 symbols without address.
6153
6154 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6155
6156 * nbsd-nat.h (struct thread_info): Add forward declaration.
6157 (nbsd_nat_target::thread_alive): Add.
6158 (nbsd_nat_target::thread_name): Likewise.
6159 (nbsd_nat_target::update_thread_list): Likewise.
6160 (update_thread_list::post_attach): Likewise.
6161 (post_attach::pid_to_str): Likewise.
6162 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6163 (nbsd_thread_lister): Add.
6164 (nbsd_nat_target::thread_alive): Likewise.
6165 (nbsd_nat_target::thread_name): Likewise.
6166 (nbsd_add_threads): Likewise.
6167 (update_thread_list::post_attach): Likewise.
6168 (nbsd_nat_target::update_thread_list): Likewise.
6169 (post_attach::pid_to_str): Likewise.
6170
6171 2020-04-06 Tom Tromey <tromey@adacore.com>
6172
6173 * ada-valprint.c (print_variant_part): Extract the variant field.
6174 (print_field_values): Use the field as the outer value when
6175 recursing.
6176
6177 2020-04-06 Tom Tromey <tromey@adacore.com>
6178
6179 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6180 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6181 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6182 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6183 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6184
6185 2020-04-06 Tom Tromey <tromey@adacore.com>
6186
6187 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6188 TYPE_CODE_ERROR.
6189
6190 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6191
6192 * nbsd-tdep.c: Include "gdbarch.h".
6193 Define enum with NetBSD signal numbers.
6194 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6195 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6196 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6197 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6198 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6199 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6200 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6201 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6202 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6203 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6204 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6205 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6206
6207 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6208
6209 PR gdb/25325
6210 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6211
6212 2020-04-03 Tom Tromey <tromey@adacore.com>
6213
6214 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6215 Read constant block.
6216
6217 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6218
6219 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6220 (gdb_bfd_get_full_section_contents): New declaration.
6221 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6222 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6223 gdb_bfd_get_full_section_contents.
6224
6225 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6226
6227 * exec.c (build_section_table): Replace internal_error with
6228 gdb_assert.
6229 (section_table_xfer_memory_partial): Likewise.
6230 * mdebugread.c (parse_partial_symbols): Likewise.
6231 * psymtab.c (lookup_partial_symbol): Likewise.
6232 * utils.c (wrap_here): Likewise.
6233
6234 2020-04-02 Tom Tromey <tromey@adacore.com>
6235
6236 * f-lang.c (build_fortran_types): Use arch_type to initialize
6237 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6238
6239 2020-04-02 Tom Tromey <tromey@adacore.com>
6240
6241 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6242 of attributes.
6243
6244 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6245 Bernd Edlinger <bernd.edlinger@hotmail.de>
6246 Tom Tromey <tromey@adacore.com>
6247
6248 * buildsym.c (buildsym_compunit::record_line): Remove
6249 deduplication code.
6250
6251 2020-04-02 Tom de Vries <tdevries@suse.de>
6252
6253 PR ada/24671
6254 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6255
6256 2020-04-02 Tom de Vries <tdevries@suse.de>
6257
6258 * dwarf2/read.c (dwarf2_gdb_index_functions,
6259 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6260 NULL.
6261 * psymtab.c (psym_lookup_global_symbol_language): New function.
6262 (psym_functions): Init psym_lookup_global_symbol_language with
6263 psym_lookup_global_symbol_language.
6264 * symfile-debug.c (debug_sym_quick_functions): Init
6265 lookup_global_symbol_language with NULL.
6266 * symfile.c (set_initial_language): Remove fixme comment.
6267 * symfile.h (struct quick_symbol_functions): Add
6268 lookup_global_symbol_language.
6269 * symtab.c (find_quick_global_symbol_language): New function.
6270 (find_main_name): Use find_quick_global_symbol_language.
6271
6272 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6273
6274 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6275
6276 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6277
6278 * buildsym.c (record_line): Fix undefined behavior and preserve
6279 lines at eof.
6280
6281 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6282
6283 * buildsym.c (record_line): Fix the resizing condition.
6284
6285 2020-04-01 Tom Tromey <tom@tromey.com>
6286
6287 * value.h (value_literal_complex): Add comment.
6288 * valops.c (value_literal_complex): Refer to value.h.
6289
6290 2020-04-01 Tom Tromey <tom@tromey.com>
6291
6292 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6293 (scalar_type): New rule, from typebase.
6294 (typebase): Use scalar_type. Recognize complex types.
6295 (field_name): Handle FLOAT_KEYWORD.
6296 (ident_tokens): Add _Complex and __complex__.
6297
6298 2020-04-01 Tom Tromey <tom@tromey.com>
6299
6300 PR exp/25299:
6301 * valarith.c (promotion_type, complex_binop): New functions.
6302 (scalar_binop): Handle complex numbers. Use promotion_type.
6303 (value_pos, value_neg, value_complement): Handle complex numbers.
6304
6305 2020-04-01 Tom Tromey <tom@tromey.com>
6306
6307 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6308 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6309 (parse_number): Handle complex numbers.
6310
6311 2020-04-01 Tom Tromey <tom@tromey.com>
6312
6313 * c-valprint.c (c_decorations): Change complex suffix to "i".
6314
6315 2020-04-01 Tom Tromey <tom@tromey.com>
6316
6317 * valprint.c (generic_value_print_complex): Use accessors.
6318 * value.h (value_real_part, value_imaginary_part): Declare.
6319 * valops.c (value_real_part, value_imaginary_part): New
6320 functions.
6321 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6322
6323 2020-04-01 Tom Tromey <tom@tromey.com>
6324
6325 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6326 (read_range_type): Update.
6327 * mdebugread.c (basic_type): Update.
6328 * go-lang.c (build_go_types): Use init_complex_type.
6329 * gdbtypes.h (struct main_type) <complex_type>: New member.
6330 (init_complex_type): Update.
6331 (arch_complex_type): Don't declare.
6332 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6333 Make name if none given. Use alloc_type_copy. Look for cached
6334 complex type.
6335 (arch_complex_type): Remove.
6336 (gdbtypes_post_init): Use init_complex_type.
6337 * f-lang.c (build_fortran_types): Use init_complex_type.
6338 * dwarf2/read.c (read_base_type): Update.
6339 * d-lang.c (build_d_types): Use init_complex_type.
6340 * ctfread.c (read_base_type): Update.
6341
6342 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6343
6344 * infrun.c (stop_all_threads): Update assertion, plus when
6345 stopping threads, take into account that we might be trying
6346 to stop an all-stop target.
6347 (stop_waiting): Call 'stop_all_threads' if there exists a
6348 non-stop target.
6349
6350 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6351
6352 * target.h (exists_non_stop_target): New function declaration.
6353 * target.c (exists_non_stop_target): New function.
6354
6355 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6356
6357 PR gdb/24789
6358 * eval.c (is_integral_or_integral_reference): New function.
6359 (evaluate_subexp_standard): Allow integer references in
6360 pointer arithmetic.
6361
6362 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6363
6364 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6365 check for no ptid in the stop reply when the target is non-stop.
6366
6367 2020-04-01 Tom Tromey <tromey@adacore.com>
6368
6369 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6370 "name" parameter to rvalue reference. Initialize m_name_holder.
6371 <lookup_name_info>: New overloads.
6372 <name>: Return gdb::string_view.
6373 <c_str>: New method.
6374 <make_ignore_params>: Update.
6375 <search_name_hash>: Update.
6376 <language_lookup_name>: Return const char *.
6377 <m_name>: Change type.
6378 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6379 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6380 (lookup_name_info::match_any): Update.
6381 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6382 Update.
6383 * minsyms.c (linkage_name_str): Update.
6384 * language.c (default_symbol_name_matcher): Update.
6385 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6386 Update.
6387 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6388 (ada_lookup_name_info::ada_lookup_name_info): Update.
6389 (literal_symbol_name_matcher): Update.
6390
6391 2020-04-01 Tom Tromey <tromey@adacore.com>
6392
6393 * psymtab.c (psymtab_search_name): Remove function.
6394 (psym_lookup_symbol): Create search name and lookup name here.
6395 (lookup_partial_symbol): Remove "name" parameter; add
6396 lookup_name.
6397 (psym_expand_symtabs_for_function): Update.
6398
6399 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6400
6401 PR tui/25597:
6402 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6403
6404 2020-03-31 Tom Tromey <tromey@adacore.com>
6405
6406 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6407 memcpy.
6408
6409 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6410
6411 * features/riscv/32bit-csr.xml: Regenerated.
6412 * features/riscv/64bit-csr.xml: Regenerated.
6413
6414 2020-03-30 Tom Tromey <tromey@adacore.com>
6415
6416 * ada-valprint.c (print_variant_part): Update.
6417 * ada-lang.h (ada_which_variant_applies): Update.
6418 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6419 outer_valaddr parameters; replace with "outer" value parameter.
6420 (to_fixed_variant_branch_type): Update.
6421
6422 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6423
6424 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6425 <list>. Remove inclusion of observable.h.
6426 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6427 (struct arch_lwp_info): New struct.
6428 (class ppc_linux_dreg_interface): New class.
6429 (struct ppc_linux_process_info): New struct.
6430 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6431 <low_new_clone, low_forget_process, low_prepare_to_resume>
6432 <copy_thread_dreg_state, mark_thread_stale>
6433 <mark_debug_registers_changed, register_hw_breakpoint>
6434 <clear_hw_breakpoint, register_wp, clear_wp>
6435 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6436 <num_memory_accesses, get_trigger_type>
6437 <create_watchpoint_request, hwdebug_point_cmp>
6438 <init_arch_lwp_info, get_arch_lwp_info>
6439 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6440 methods.
6441 <struct ptid_hash>: New inner struct.
6442 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6443 members.
6444 (saved_dabr_value, hwdebug_info, max_slots_number)
6445 (struct hw_break_tuple, struct thread_points, ppc_threads)
6446 (have_ptrace_hwdebug_interface)
6447 (hwdebug_find_thread_points_by_tid)
6448 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6449 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6450 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6451 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6452 use m_dreg_interface.
6453 (hwdebug_point_cmp): Change to...
6454 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6455 reference arguments instead of pointers.
6456 (ppc_linux_nat_target::ranged_break_num_registers): Use
6457 m_dreg_interface.
6458 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6459 m_dreg_interface. Call register_hw_breakpoint.
6460 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6461 m_dreg_interface. Call clear_hw_breakpoint.
6462 (get_trigger_type): Change to...
6463 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6464 comment.
6465 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6466 use m_dreg_interface. Call register_hw_breakpoint.
6467 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6468 use m_dreg_interface. Call clear_hw_breakpoint.
6469 (can_use_watchpoint_cond_accel): Change to...
6470 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6471 method. Update comment, use m_dreg_interface and
6472 m_process_info.
6473 (calculate_dvc): Change to...
6474 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6475 m_dreg_interface.
6476 (num_memory_accesses): Change to...
6477 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6478 (check_condition): Change to...
6479 (ppc_linux_nat_target::check_condition): ...this method.
6480 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6481 comment, use m_dreg_interface.
6482 (create_watchpoint_request): Change to...
6483 (ppc_linux_nat_target::create_watchpoint_request): ...this
6484 method. Use m_dreg_interface.
6485 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6486 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6487 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6488 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6489 (ppc_linux_nat_target::low_forget_process)
6490 (ppc_linux_nat_target::low_new_fork)
6491 (ppc_linux_nat_target::low_new_clone)
6492 (ppc_linux_nat_target::low_delete_thread)
6493 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6494 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6495 only call mark_thread_stale.
6496 (ppc_linux_thread_exit): Remove.
6497 (ppc_linux_nat_target::stopped_data_address): Change to...
6498 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6499 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6500 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6501 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6502 comment. Call low_stopped_data_address.
6503 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6504 m_dreg_interface.
6505 (ppc_linux_nat_target::masked_watch_num_registers): Use
6506 m_dreg_interface.
6507 (ppc_linux_nat_target::copy_thread_dreg_state)
6508 (ppc_linux_nat_target::mark_thread_stale)
6509 (ppc_linux_nat_target::mark_debug_registers_changed)
6510 (ppc_linux_nat_target::register_hw_breakpoint)
6511 (ppc_linux_nat_target::clear_hw_breakpoint)
6512 (ppc_linux_nat_target::register_wp)
6513 (ppc_linux_nat_target::clear_wp)
6514 (ppc_linux_nat_target::init_arch_lwp_info)
6515 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6516 (_initialize_ppc_linux_nat): Remove observer callback.
6517
6518 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6519
6520 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6521 (ppc_linux_nat_target::auxv_parse)
6522 (ppc_linux_nat_target::read_description)
6523 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6524 Move up.
6525
6526 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6527
6528 * linux-nat.h (low_new_clone): New method.
6529 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6530
6531 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6532
6533 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6534 (dbx_expand_psymtab): ... this.
6535 (start_psymtab): Update.
6536 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6537 (mdebug_expand_psymtab): ... this.
6538 (parse_partial_symbols): Update.
6539 (new_psymtab): Update.
6540 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6541 (xcoff_expand_psymtab): ... this.
6542 (xcoff_start_psymtab): Update.
6543
6544 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6545
6546 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6547 <expand_dependencies>: ... this.
6548 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6549 (partial_symtab::expand_dependencies): ... this.
6550 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6551 Update.
6552 (dwarf2_psymtab::expand_psymtab): Update.
6553 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6554 * mdebugread.c (psymtab_to_symtab_1): Update.
6555 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6556
6557 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6558
6559 * psympriv.h (discard_psymtab): Remove.
6560 * dbxread.c (dbx_end_psymtab): Update.
6561 * xcoffread.c (xcoff_end_psymtab): Update.
6562
6563 2020-03-28 Tom Tromey <tom@tromey.com>
6564
6565 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6566 comment.
6567
6568 2020-03-28 Tom Tromey <tom@tromey.com>
6569
6570 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6571
6572 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6573
6574 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6575
6576 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6577
6578 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6579
6580 2020-03-26 Tom Tromey <tom@tromey.com>
6581
6582 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6583 (mark_common_block_symbol_computed, read_tag_string_type)
6584 (attr_to_dynamic_prop, read_subrange_type): Update.
6585 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6586 to be methods on struct attribute.
6587 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6588 (read_call_site_scope, partial_die_info::read)
6589 (partial_die_info::read, lookup_die_type, follow_die_ref):
6590 Update.
6591 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6592 from dwarf2_get_ref_die_offset.
6593 (attribute::constant_value): New method, from
6594 dwarf2_get_attr_constant_value.
6595 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6596 Declare method.
6597 <constant_value>: New method.
6598
6599 2020-03-26 Tom Tromey <tom@tromey.com>
6600
6601 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6602 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6603 (dwarf_type_encoding_name): Move to stringify.c.
6604 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6605 * dwarf2/stringify.c: New file.
6606 * dwarf2/stringify.h: New file.
6607
6608 2020-03-26 Tom Tromey <tom@tromey.com>
6609
6610 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6611 Rewrite.
6612
6613 2020-03-26 Tom Tromey <tom@tromey.com>
6614
6615 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6616 methods.
6617 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6618 (lookup_ranges_base): Likewise.
6619 (read_cutu_die_from_dwo, read_full_die_1): Update.
6620
6621 2020-03-26 Tom Tromey <tom@tromey.com>
6622
6623 * dwarf2/read.c (read_import_statement, read_file_scope)
6624 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6625 (read_lexical_block_scope, read_call_site_scope)
6626 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6627 (handle_struct_member_die, process_structure_scope)
6628 (update_enumeration_type_from_children)
6629 (process_enumeration_scope, read_array_type, read_common_block)
6630 (read_namespace, read_module, read_subroutine_type): Update.
6631 (sibling_die): Remove.
6632
6633 2020-03-26 Tom Tromey <tom@tromey.com>
6634
6635 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6636 (build_type_psymtabs_reader, read_structure_type)
6637 (read_enumeration_type, read_full_die_1): Update.
6638 (dwarf2_attr_no_follow): Move to die.h.
6639 * dwarf2/die.h (struct die_info) <attr>: New method.
6640
6641 2020-03-26 Tom Tromey <tom@tromey.com>
6642
6643 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6644 <base_address>: Now an optional.
6645 (dwarf2_find_base_address, dwarf2_rnglists_process)
6646 (dwarf2_ranges_process, fill_in_loclist_baton)
6647 (dwarf2_symbol_mark_computed): Update.
6648
6649 2020-03-26 Tom Tromey <tom@tromey.com>
6650
6651 * dwarf2/read.c (struct die_info): Move to die.h.
6652 * dwarf2/die.h: New file.
6653
6654 2020-03-26 Tom Tromey <tom@tromey.com>
6655
6656 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6657 * dwarf2/read.c
6658 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6659 Move to line-header.c.
6660 (read_checked_initial_length_and_offset, read_formatted_entries):
6661 Likewise.
6662 (dwarf_decode_line_header): Split into two.
6663 * dwarf2/line-header.c
6664 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6665 Move from read.c.
6666 (read_checked_initial_length_and_offset, read_formatted_entries):
6667 Likewise.
6668 (dwarf_decode_line_header): New function, split from read.c.
6669
6670 2020-03-26 Tom Tromey <tom@tromey.com>
6671
6672 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6673 Declare method.
6674 * dwarf2/read.c (read_attribute_value): Update.
6675 (dwarf2_per_objfile::read_line_string): Rename from
6676 read_indirect_line_string.
6677 (read_formatted_entries): Update.
6678
6679 2020-03-26 Tom Tromey <tom@tromey.com>
6680
6681 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6682 variable.
6683
6684 2020-03-26 Tom Tromey <tom@tromey.com>
6685
6686 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6687 const.
6688 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6689 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6690 parameter const.
6691
6692 2020-03-26 Tom Tromey <tom@tromey.com>
6693
6694 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6695 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6696 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6697 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6698
6699 2020-03-26 Tom Tromey <tom@tromey.com>
6700
6701 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6702 file_names_size, file_full_name, file_file_name>: Use const.
6703 <file_name_at, file_names>: Add const overload.
6704 * dwarf2/line-header.c (line_header::file_file_name)
6705 (line_header::file_full_name): Update.
6706
6707 2020-03-26 Tom Tromey <tom@tromey.com>
6708
6709 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6710 (macro_start_file, consume_improper_spaces)
6711 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6712 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6713 (dwarf_decode_macros): Move to macro.c.
6714 * dwarf2/macro.c: New file.
6715 * dwarf2/macro.h: New file.
6716 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6717
6718 2020-03-26 Tom Tromey <tom@tromey.com>
6719
6720 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6721 method.
6722 * dwarf2/section.c: New method. From
6723 read_indirect_string_at_offset_from.
6724 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6725 (read_indirect_string_at_offset_from): Move to section.c.
6726 (read_indirect_string_at_offset): Rewrite.
6727 (read_indirect_line_string_at_offset): Remove.
6728 (read_indirect_string, read_indirect_line_string)
6729 (dwarf_decode_macro_bytes): Update.
6730
6731 2020-03-26 Tom Tromey <tom@tromey.com>
6732
6733 * dwarf2/section.h (struct dwarf2_section_info)
6734 <overload_complaint>: Declare.
6735 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6736 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6737 Rename from dwarf2_section_buffer_overflow_complaint.
6738 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6739 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6740
6741 2020-03-26 Tom Tromey <tom@tromey.com>
6742
6743 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6744 Declare.
6745 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6746 Move from read.c.
6747 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6748 to section.c.
6749
6750 2020-03-26 Tom Tromey <tom@tromey.com>
6751
6752 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6753
6754 2020-03-26 Tom Tromey <tom@tromey.com>
6755
6756 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6757 "builder".
6758 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6759 parameter.
6760 (dwarf_decode_macros): Update.
6761
6762 2020-03-26 Tom Tromey <tom@tromey.com>
6763
6764 * dwarf2/read.c (read_attribute_value): Update.
6765 (read_indirect_string_from_dwz): Move to dwz.c; change into
6766 method.
6767 (dwarf_decode_macro_bytes): Update.
6768 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6769 * dwarf2/dwz.c: New file.
6770 * Makefile.in (COMMON_SFILES): Add dwz.c.
6771
6772 2020-03-26 Tom Tromey <tom@tromey.com>
6773
6774 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6775 * dwarf2/read.c: Add include.
6776 * dwarf2/index-write.c: Add include.
6777 * dwarf2/index-cache.c: Add include.
6778 * dwarf2/dwz.h: New file.
6779
6780 2020-03-25 Tom Tromey <tom@tromey.com>
6781
6782 * compile/compile-object-load.c (get_out_value_type): Mention
6783 correct symbol name in error message.
6784
6785 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6786
6787 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6788
6789 2020-03-25 Tom de Vries <tdevries@suse.de>
6790
6791 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6792 * symmisc.c (dump_symtab_1): Print user and includes fields.
6793 (maintenance_info_symtabs): Same.
6794
6795 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6796
6797 PR gdb/25534
6798 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6799 (riscv_regcache_cooked_write): New function.
6800 (riscv_push_dummy_call): Use new function.
6801 (riscv_return_value): Likewise.
6802
6803 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6804
6805 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6806 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6807 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6808 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6809 * infrun.c (follow_fork): Likewise.
6810 (follow_fork_inferior): Likewise.
6811 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6812 * linux-nat.h (class linux_nat_target): Likewise.
6813 * remote.c (class remote_target) <follow_fork>: Likewise.
6814 (remote_target::follow_fork): Likewise.
6815 * target-delegates.c: Re-generate.
6816 * target.c (default_follow_fork): Likewise.
6817 (target_follow_fork): Likewise.
6818 * target.h (struct target_ops) <follow_fork>: Likewise.
6819 (target_follow_fork): Likewise.
6820
6821 2020-03-24 Tom de Vries <tdevries@suse.de>
6822
6823 * psymtab.c (maintenance_info_psymtabs): Print user field.
6824
6825 2020-03-20 Tom Tromey <tromey@adacore.com>
6826
6827 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6828 const.
6829 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6830 const.
6831
6832 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6833
6834 * ptrace.m4: Don't check for ptrace declaration.
6835 * config.in: Re-generate.
6836 * configure: Re-generate.
6837 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6838 not defined.
6839
6840 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6841
6842 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6843 `PTRACE_TYPE_RET'.
6844 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6845 * sparc-nat.c (gdb_ptrace): Likewise.
6846 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6847
6848 2020-03-20 Tom Tromey <tromey@adacore.com>
6849
6850 * c-exp.y (lex_one_token): Fix assert.
6851
6852 2020-03-20 Tom Tromey <tromey@adacore.com>
6853
6854 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6855 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6856 strncpy call.
6857
6858 2020-03-20 Tom Tromey <tromey@adacore.com>
6859
6860 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6861
6862 2020-03-20 Tom Tromey <tromey@adacore.com>
6863
6864 * ada-valprint.c (print_variant_part): Remove parameters; switch
6865 to value-based API.
6866 (print_field_values): Likewise.
6867 (ada_val_print_struct_union): Likewise.
6868 (ada_value_print_1): Update.
6869
6870 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6871
6872 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6873 nbsd_nat_target instead of inf_ptrace_target.
6874 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6875 nbsd_nat_target.
6876
6877 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6878
6879 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6880 it to the ptrace call.
6881 * (store_registers): Likewise.
6882
6883 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6884
6885 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6886 it to the ptrace call.
6887 * (store_registers): Likewise.
6888
6889 2020-03-19 Luis Machado <luis.machado@linaro.org>
6890
6891 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6892 valid, fetch vg value from ptrace.
6893
6894 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6895 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6896 * inf-ptrace.c: Likewise.
6897 * (gdb_ptrace): Add.
6898 * (inf_ptrace_target::resume): Update.
6899 * (inf_ptrace_target::xfer_partial): Likewise.
6900 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6901 * (inf_ptrace_peek_poke): Update.
6902
6903 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6904
6905 * x86-bsd-nat.c (gdb_ptrace): New.
6906 * (x86bsd_dr_set): Add new argument `ptid'.
6907 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6908 x86bsd_dr_set_addr): Update.
6909
6910 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6911
6912 * remote.c (remote_target::process_stop_reply): Handle events for
6913 all threads differently.
6914
6915 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6916
6917 * completer.c (completion_tracker::remove_completion): Define new
6918 function.
6919 * completer.h (completion_tracker::remove_completion): Declare new
6920 function.
6921 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6922 when adding a C++ function symbol.
6923
6924 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6925
6926 * completer.c (completion_tracker::completion_hash_entry): Define
6927 new class.
6928 (advance_to_filename_complete_word_point): Call
6929 recompute_lowest_common_denominator.
6930 (completion_tracker::completion_tracker): Call discard_completions
6931 to setup the hash table.
6932 (completion_tracker::discard_completions): Allow for being called
6933 from the constructor, pass new equal function, and element deleter
6934 when constructing the hash table. Initialise new class member
6935 variables.
6936 (completion_tracker::maybe_add_completion): Remove use of
6937 m_entries_vec, and store more information into m_entries_hash.
6938 (completion_tracker::recompute_lcd_visitor): New function, most
6939 content taken from...
6940 (completion_tracker::recompute_lowest_common_denominator):
6941 ...here, this now just visits each item in the hash calling the
6942 above visitor.
6943 (completion_tracker::build_completion_result): Remove use of
6944 m_entries_vec, call recompute_lowest_common_denominator.
6945 * completer.h (completion_tracker::have_completions): Remove use
6946 of m_entries_vec.
6947 (completion_tracker::completion_hash_entry): Declare new class.
6948 (completion_tracker::recompute_lowest_common_denominator): Change
6949 function signature.
6950 (completion_tracker::recompute_lcd_visitor): Declare new function.
6951 (completion_tracker::m_entries_vec): Delete.
6952 (completion_tracker::m_entries_hash): Initialize to NULL.
6953 (completion_tracker::m_lowest_common_denominator_valid): New
6954 member variable.
6955 (completion_tracker::m_lowest_common_denominator_max_length): New
6956 member variable.
6957
6958 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6959
6960 * regformats/regdef.h: Put reg in gdb namespace.
6961
6962 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6963
6964 * i386-bsd-nat.c (gdb_ptrace): New.
6965 * (i386bsd_fetch_inferior_registers,
6966 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6967 * (i386bsd_fetch_inferior_registers,
6968 i386bsd_store_inferior_registers) Use gdb_ptrace.
6969
6970 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6971
6972 * amd64-bsd-nat.c (gdb_ptrace): New.
6973 * (amd64bsd_fetch_inferior_registers,
6974 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6975 * (amd64bsd_fetch_inferior_registers,
6976 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6977
6978 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6979
6980 * user-regs.c (user_reg::read): Rename to...
6981 (user_reg::xread): ...this.
6982 * (append_user_reg): Rename argument `read' to `xread'.
6983 * (user_reg_add_builtin): Likewise.
6984 * (user_reg_add): Likewise.
6985 * (value_of_user_reg): Likewise.
6986
6987 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6988
6989 * sparc-nat.c (gdb_ptrace): New.
6990 * sparc-nat.c (sparc_fetch_inferior_registers)
6991 (sparc_store_inferior_registers) Remove obsolete comment.
6992 * sparc-nat.c (sparc_fetch_inferior_registers)
6993 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6994 * sparc-nat.c (sparc_fetch_inferior_registers)
6995 (sparc_store_inferior_registers) Use gdb_ptrace.
6996
6997 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6998
6999 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7000 it to the ptrace call.
7001 * sh-nbsd-nat.c (store_registers): Likewise.
7002
7003 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7004
7005 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7006 nbsd_nat_target instead of inf_ptrace_target.
7007 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7008 nbsd_nat_target.
7009
7010 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7011
7012 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7013
7014 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7015
7016 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7017 <sys/sysctl.h>.
7018 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7019
7020 2020-03-17 Tom de Vries <tdevries@suse.de>
7021
7022 PR gdb/23710
7023 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7024 fields.
7025 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7026 fields.
7027 (process_imported_unit_die): Skip import of c++ CUs.
7028
7029 2020-03-16 Tom Tromey <tom@tromey.com>
7030
7031 * p-valprint.c (pascal_object_print_value): Initialize
7032 base_value.
7033
7034 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7035 Shahab Vahedi <shahab@synopsys.com>
7036
7037 * Makefile.in: Add arch/arc.o
7038 * configure.tgt: Likewise.
7039 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7040 (_initialize_arc_tdep): Don't initialize old target descriptions.
7041 (arc_read_description): New function to cache target descriptions.
7042 * arc-tdep.h (arc_read_description): Add proto type.
7043 * arch/arc.c: New file.
7044 * arch/arc.h: Likewise.
7045 * features/Makefile: Replace old target descriptions with new.
7046 * features/arc-arcompact.c: Remove.
7047 * features/arc-arcompact.xml: Likewise.
7048 * features/arc-v2.c: Likewise
7049 * features/arc-v2.xml: Likewise
7050 * features/arc/aux-arcompact.xml: New file.
7051 * features/arc/aux-v2.xml: Likewise.
7052 * features/arc/core-arcompact.xml: Likewise.
7053 * features/arc/core-v2.xml: Likewise.
7054 * features/arc/aux-arcompact.c: Generate.
7055 * features/arc/aux-v2.c: Likewise.
7056 * features/arc/core-arcompact.c: Likewise.
7057 * features/arc/core-v2.c: Likewise.
7058 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7059
7060 2020-03-16 Tom Tromey <tromey@adacore.com>
7061
7062 PR gdb/25663:
7063 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7064 putting value into bcache.
7065
7066 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7067
7068 PR gdb/21500
7069 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7070 to...
7071 (amd64_windows_init_abi_common): ... this. Don't set size of
7072 long type.
7073 (amd64_windows_init_abi): New function.
7074 (amd64_cygwin_init_abi): New function.
7075 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7076 the Cygwin OS ABI.
7077 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7078 comment.
7079
7080 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7081
7082 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7083 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7084 (pe_import_directory_entry): New struct type.
7085 (is_linked_with_cygwin_dll): New function.
7086 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7087 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7088 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7089
7090 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7091
7092 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7093 i386_cygwin_core_osabi_sniffer.
7094
7095 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7096
7097 * i386-cygwin-tdep.c: Rename to...
7098 * i386-windows-tdep.c: ... this.
7099 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7100 i386-windows-tdep.c.
7101 * configure.tgt: Likewise.
7102
7103 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7104
7105 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7106 * osabi.c (gdb_osabi_names): Add "Windows".
7107 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7108 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7109 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7110 i386_cygwin_osabi_sniffer.
7111 (_initialize_i386_cygwin_tdep): Register OS ABI
7112 GDB_OSABI_WINDOWS for i386.
7113 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7114 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7115 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7116 for x86-64.
7117 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7118 when the target matches '*-*-mingw*'.
7119
7120 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7121
7122 * defs.h (enum gdb_osabi): Move to...
7123 * osabi.h (enum gdb_osabi): ... here.
7124 * gdbarch.sh: Include osabi.h in gdbarch.h.
7125 * gdbarch.h: Re-generate.
7126
7127 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7128
7129 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7130 function.
7131 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7132
7133 2020-03-14 Tom Tromey <tom@tromey.com>
7134
7135 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7136 for C++.
7137 (c_type_print_modifier): Likewise. Add "language" parameter.
7138 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7139 (c_type_print_base_1): Update.
7140 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7141 constants.
7142 * type-stack.c (type_stack::insert): Handle tp_atomic and
7143 tp_restrict.
7144 (type_stack::follow_type_instance_flags): Likewise.
7145 (type_stack::follow_types): Likewise. Merge type-following code.
7146 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7147 (space_identifier, cv_with_space_id)
7148 (const_or_volatile_or_space_identifier_noopt)
7149 (const_or_volatile_or_space_identifier): Remove.
7150 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7151 rules.
7152 (ptr_operator, typebase): Update.
7153 (enum token_flag) <FLAG_C>: New constant.
7154 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7155 "_Atomic".
7156 (lex_one_token): Handle FLAG_C.
7157
7158 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7159
7160 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7161 it to the ptrace call.
7162 * m68k-bsd-nat.c (store_registers): Likewise.
7163
7164 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7165
7166 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7167 gdb_byte *.
7168 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7169 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7170 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7171
7172 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7173
7174 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7175 nbsd_nat_target instead of inf_ptrace_target.
7176 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7177 nbsd_nat_target.
7178
7179 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7180
7181 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7182 register_t.
7183
7184 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7185
7186 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7187 it to the ptrace call.
7188 * alpha-bsd-nat.c (store_registers): Likewise.
7189
7190 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7191
7192 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7193 includes.
7194 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7195 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7196 fill_fpregset): Likewise.
7197
7198 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7199
7200 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7201 nbsd_nat_target instead of inf_ptrace_target.
7202 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7203 nbsd_nat_target.
7204
7205 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7206
7207 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7208 register_t.
7209
7210 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7211
7212 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7213 it to the ptrace call.
7214 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7215 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7216 * arm-nbsd-nat.c (store_register): Likewise.
7217 * arm-nbsd-nat.c (store_regs): Likewise.
7218 * arm-nbsd-nat.c (store_fp_register): Likewise.
7219 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7220
7221 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7222
7223 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7224 nbsd_nat_target instead of inf_ptrace_target.
7225 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7226 nbsd_nat_target.
7227
7228 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7229
7230 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7231 it to the ptrace call.
7232 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7233
7234 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7235
7236 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7237 it to the ptrace call.
7238 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7239
7240 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7241
7242 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7243 gdb_byte *.
7244 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7245
7246 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7247
7248 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7249 instead of inf_ptrace_target.
7250 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7251 nbsd_nat_target.
7252
7253 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7254
7255 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7256 register_t.
7257
7258 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7259
7260 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7261 register_t.
7262
7263 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7264
7265 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7266 register_t.
7267
7268 2020-03-13 Tom Tromey <tom@tromey.com>
7269
7270 * value.h (val_print): Don't declare.
7271 * valprint.h (val_print_array_elements)
7272 (val_print_scalar_formatted, generic_val_print): Don't declare.
7273 * valprint.c (generic_val_print_array): Take a struct value.
7274 (generic_val_print_ptr, generic_val_print_memberptr)
7275 (generic_val_print_bool, generic_val_print_int)
7276 (generic_val_print_char, generic_val_print_complex)
7277 (generic_val_print): Remove.
7278 (generic_value_print): Update.
7279 (do_val_print): Remove unused parameters. Don't call
7280 la_val_print.
7281 (val_print): Remove.
7282 (common_val_print): Update. Don't call value_check_printable.
7283 (val_print_scalar_formatted, val_print_array_elements): Remove.
7284 * rust-lang.c (rust_val_print): Remove.
7285 (rust_language_defn): Update.
7286 * p-valprint.c (pascal_val_print): Remove.
7287 (pascal_value_print_inner): Update.
7288 (pascal_object_print_val_fields, pascal_object_print_val):
7289 Remove.
7290 (pascal_object_print_static_field): Update.
7291 * p-lang.h (pascal_val_print): Don't declare.
7292 * p-lang.c (pascal_language_defn): Update.
7293 * opencl-lang.c (opencl_language_defn): Update.
7294 * objc-lang.c (objc_language_defn): Update.
7295 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7296 * m2-lang.h (m2_val_print): Don't declare.
7297 * m2-lang.c (m2_language_defn): Update.
7298 * language.h (struct language_defn) <la_val_print>: Remove.
7299 * language.c (unk_lang_value_print_inner): Rename. Change
7300 argument types.
7301 (unknown_language_defn, auto_language_defn): Update.
7302 * go-valprint.c (go_val_print): Remove.
7303 * go-lang.h (go_val_print): Don't declare.
7304 * go-lang.c (go_language_defn): Update.
7305 * f-valprint.c (f_val_print): Remove.
7306 * f-lang.h (f_value_print): Don't declare.
7307 * f-lang.c (f_language_defn): Update.
7308 * d-valprint.c (d_val_print): Remove.
7309 * d-lang.h (d_value_print): Don't declare.
7310 * d-lang.c (d_language_defn): Update.
7311 * cp-valprint.c (cp_print_value_fields)
7312 (cp_print_value_fields_rtti, cp_print_value): Remove.
7313 (cp_print_static_field): Update.
7314 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7315 (c_val_print_struct, c_val_print_union, c_val_print_int)
7316 (c_val_print_memberptr, c_val_print): Remove.
7317 * c-lang.h (c_val_print_array, cp_print_value_fields)
7318 (cp_print_value_fields_rtti): Don't declare.
7319 * c-lang.c (c_language_defn, cplus_language_defn)
7320 (asm_language_defn, minimal_language_defn): Update.
7321 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7322 (ada_val_print_enum): Take a struct value.
7323 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7324 (ada_val_print): Remove.
7325 (ada_value_print_1): Update.
7326 (printable_val_type): Remove.
7327 * ada-lang.h (ada_val_print): Don't declare.
7328 * ada-lang.c (ada_language_defn): Update.
7329
7330 2020-03-13 Tom Tromey <tom@tromey.com>
7331
7332 * valprint.c (do_val_print): Update.
7333 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7334 a struct value.
7335 (value_to_value_object_no_release): Declare.
7336 * python/py-value.c (value_to_value_object_no_release): New
7337 function.
7338 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7339 struct value.
7340 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7341 function.
7342 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7343 a struct value.
7344 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7345 Declare.
7346 (gdbscm_apply_val_pretty_printer): Take a struct value.
7347 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7348 value.
7349 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7350 value.
7351 * extension-priv.h (struct extension_language_ops)
7352 <apply_val_pretty_printer>: Take a struct value.
7353 * cp-valprint.c (cp_print_value): Create a struct value.
7354 (cp_print_value): Update.
7355
7356 2020-03-13 Tom Tromey <tom@tromey.com>
7357
7358 * ada-valprint.c (print_field_values): Call common_val_print.
7359
7360 2020-03-13 Tom Tromey <tom@tromey.com>
7361
7362 * ada-valprint.c (val_print_packed_array_elements): Remove
7363 bitoffset and val parameters. Call common_val_print.
7364 (ada_val_print_string): Remove offset, address, and original_value
7365 parameters.
7366 (ada_val_print_array): Update.
7367 (ada_value_print_array): New function.
7368 (ada_value_print_1): Call it.
7369
7370 2020-03-13 Tom Tromey <tom@tromey.com>
7371
7372 * ada-valprint.c (ada_value_print): Use common_val_print.
7373
7374 2020-03-13 Tom Tromey <tom@tromey.com>
7375
7376 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7377
7378 2020-03-13 Tom Tromey <tom@tromey.com>
7379
7380 * ada-valprint.c (ada_value_print_num): New function.
7381 (ada_value_print_1): Use it.
7382
7383 2020-03-13 Tom Tromey <tom@tromey.com>
7384
7385 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7386
7387 2020-03-13 Tom Tromey <tom@tromey.com>
7388
7389 * ada-valprint.c (ada_value_print_ptr): New function.
7390 (ada_value_print_1): Use it.
7391
7392 2020-03-13 Tom Tromey <tom@tromey.com>
7393
7394 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7395 call common_val_print.
7396 (ada_val_print_1): Update.
7397 (ada_value_print_1): New function.
7398 (ada_value_print_inner): Rewrite.
7399
7400 2020-03-13 Tom Tromey <tom@tromey.com>
7401
7402 * cp-valprint.c (cp_print_value_fields): Update.
7403 (cp_print_value): New function.
7404
7405 2020-03-13 Tom Tromey <tom@tromey.com>
7406
7407 * m2-valprint.c (m2_value_print_inner): Use
7408 cp_print_value_fields.
7409 * cp-valprint.c (cp_print_value_fields): New function.
7410 * c-valprint.c (c_value_print_struct): New function.
7411 (c_value_print_inner): Use c_value_print_struct.
7412 * c-lang.h (cp_print_value_fields): Declare.
7413
7414 2020-03-13 Tom Tromey <tom@tromey.com>
7415
7416 * c-valprint.c (c_value_print_array): New function.
7417 (c_value_print_inner): Use it.
7418
7419 2020-03-13 Tom Tromey <tom@tromey.com>
7420
7421 * c-valprint.c (c_value_print_memberptr): New function.
7422 (c_value_print_inner): Use it.
7423
7424 2020-03-13 Tom Tromey <tom@tromey.com>
7425
7426 * c-valprint.c (c_value_print_int): New function.
7427 (c_value_print_inner): Use it.
7428
7429 2020-03-13 Tom Tromey <tom@tromey.com>
7430
7431 * c-valprint.c (c_value_print_ptr): New function.
7432 (c_value_print_inner): Use it.
7433
7434 2020-03-13 Tom Tromey <tom@tromey.com>
7435
7436 * c-valprint.c (c_value_print_inner): Rewrite.
7437
7438 2020-03-13 Tom Tromey <tom@tromey.com>
7439
7440 * valprint.c (generic_value_print_complex): New function.
7441 (generic_value_print): Use it.
7442
7443 2020-03-13 Tom Tromey <tom@tromey.com>
7444
7445 * valprint.c (generic_val_print_float): Don't call
7446 val_print_scalar_formatted.
7447 (generic_val_print, generic_value_print): Update.
7448
7449 2020-03-13 Tom Tromey <tom@tromey.com>
7450
7451 * valprint.c (generic_value_print_char): New function
7452 (generic_value_print): Use it.
7453
7454 2020-03-13 Tom Tromey <tom@tromey.com>
7455
7456 * valprint.c (generic_value_print_int): New function.
7457 (generic_value_print): Use it.
7458
7459 2020-03-13 Tom Tromey <tom@tromey.com>
7460
7461 * valprint.c (generic_value_print_bool): New function.
7462 (generic_value_print): Use it.
7463
7464 2020-03-13 Tom Tromey <tom@tromey.com>
7465
7466 * valprint.c (generic_val_print_func): Simplify.
7467 (generic_val_print, generic_value_print): Update.
7468
7469 2020-03-13 Tom Tromey <tom@tromey.com>
7470
7471 * valprint.c (generic_val_print_flags): Remove.
7472 (generic_val_print, generic_value_print): Update.
7473 (val_print_type_code_flags): Add original_value parameter.
7474
7475 2020-03-13 Tom Tromey <tom@tromey.com>
7476
7477 * valprint.c (generic_val_print): Update.
7478 (generic_value_print): Update.
7479 * valprint.c (generic_val_print_enum): Don't call
7480 val_print_scalar_formatted.
7481
7482 2020-03-13 Tom Tromey <tom@tromey.com>
7483
7484 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7485 * valprint.c (generic_value_print_ptr): New function.
7486
7487 2020-03-13 Tom Tromey <tom@tromey.com>
7488
7489 * valprint.c (generic_value_print): Rewrite.
7490
7491 2020-03-13 Tom Tromey <tom@tromey.com>
7492
7493 * p-valprint.c (pascal_object_print_value_fields)
7494 (pascal_object_print_value): New functions.
7495
7496 2020-03-13 Tom Tromey <tom@tromey.com>
7497
7498 * p-valprint.c (pascal_value_print_inner): Rewrite.
7499
7500 2020-03-13 Tom Tromey <tom@tromey.com>
7501
7502 * f-valprint.c (f_value_print_innner): Rewrite.
7503
7504 2020-03-13 Tom Tromey <tom@tromey.com>
7505
7506 * m2-valprint.c (m2_print_unbounded_array): New overload.
7507 (m2_print_unbounded_array): Update.
7508 (m2_print_array_contents): Take a struct value.
7509 (m2_value_print_inner): Rewrite.
7510
7511 2020-03-13 Tom Tromey <tom@tromey.com>
7512
7513 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7514 (d_value_print_inner): New function.
7515 * d-lang.h (d_value_print_inner): Declare.
7516 * d-lang.c (d_language_defn): Use d_value_print_inner.
7517
7518 2020-03-13 Tom Tromey <tom@tromey.com>
7519
7520 * go-valprint.c (go_value_print_inner): New function.
7521 * go-lang.h (go_value_print_inner): Declare.
7522 * go-lang.c (go_language_defn): Use go_value_print_inner.
7523
7524 2020-03-13 Tom Tromey <tom@tromey.com>
7525
7526 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7527 API.
7528 (rust_val_print): Rewrite.
7529 (rust_value_print_inner): New function, from rust_val_print.
7530 (rust_language_defn): Use rust_value_print_inner.
7531
7532 2020-03-13 Tom Tromey <tom@tromey.com>
7533
7534 * ada-valprint.c (ada_value_print_inner): New function.
7535 * ada-lang.h (ada_value_print_inner): Declare.
7536 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7537
7538 2020-03-13 Tom Tromey <tom@tromey.com>
7539
7540 * f-valprint.c (f_value_print_innner): New function.
7541 * f-lang.h (f_value_print_innner): Declare.
7542 * f-lang.c (f_language_defn): Use f_value_print_innner.
7543
7544 2020-03-13 Tom Tromey <tom@tromey.com>
7545
7546 * p-valprint.c (pascal_value_print_inner): New function.
7547 * p-lang.h (pascal_value_print_inner): Declare.
7548 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7549
7550 2020-03-13 Tom Tromey <tom@tromey.com>
7551
7552 * m2-valprint.c (m2_value_print_inner): New function.
7553 * m2-lang.h (m2_value_print_inner): Declare.
7554 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7555
7556 2020-03-13 Tom Tromey <tom@tromey.com>
7557
7558 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7559 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7560 * c-valprint.c (c_value_print_inner): New function.
7561 * c-lang.h (c_value_print_inner): Declare.
7562 * c-lang.c (c_language_defn, cplus_language_defn)
7563 (asm_language_defn, minimal_language_defn): Use
7564 c_value_print_inner.
7565
7566 2020-03-13 Tom Tromey <tom@tromey.com>
7567
7568 * p-valprint.c (pascal_object_print_value_fields): Now static.
7569 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7570
7571 2020-03-13 Tom Tromey <tom@tromey.com>
7572
7573 * c-valprint.c (c_val_print_array): Simplify.
7574
7575 2020-03-13 Tom Tromey <tom@tromey.com>
7576
7577 * valprint.c (value_print_array_elements): New function.
7578 * valprint.h (value_print_array_elements): Declare.
7579
7580 2020-03-13 Tom Tromey <tom@tromey.com>
7581
7582 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7583 * mips-tdep.c (mips_print_register): Use
7584 value_print_scalar_formatted.
7585
7586 2020-03-13 Tom Tromey <tom@tromey.com>
7587
7588 * valprint.h (value_print_scalar_formatted): Declare.
7589 * valprint.c (value_print_scalar_formatted): New function.
7590
7591 2020-03-13 Tom Tromey <tom@tromey.com>
7592
7593 * valprint.h (generic_value_print): Declare.
7594 * valprint.c (generic_value_print): New function.
7595
7596 2020-03-13 Tom Tromey <tom@tromey.com>
7597
7598 * valprint.c (do_val_print): Call la_value_print_inner, if
7599 available.
7600 * rust-lang.c (rust_language_defn): Update.
7601 * p-lang.c (pascal_language_defn): Update.
7602 * opencl-lang.c (opencl_language_defn): Update.
7603 * objc-lang.c (objc_language_defn): Update.
7604 * m2-lang.c (m2_language_defn): Update.
7605 * language.h (struct language_defn) <la_value_print_inner>: New
7606 member.
7607 * language.c (unknown_language_defn, auto_language_defn): Update.
7608 * go-lang.c (go_language_defn): Update.
7609 * f-lang.c (f_language_defn): Update.
7610 * d-lang.c (d_language_defn): Update.
7611 * c-lang.c (c_language_defn, cplus_language_defn)
7612 (asm_language_defn, minimal_language_defn): Update.
7613 * ada-lang.c (ada_language_defn): Update.
7614
7615 2020-03-13 Tom Tromey <tom@tromey.com>
7616
7617 * c-valprint.c (c_value_print): Use common_val_print.
7618
7619 2020-03-13 Tom Tromey <tom@tromey.com>
7620
7621 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7622
7623 2020-03-13 Tom Tromey <tom@tromey.com>
7624
7625 * f-valprint.c (f77_print_array_1, f_val_print): Use
7626 common_val_print.
7627
7628 2020-03-13 Tom Tromey <tom@tromey.com>
7629
7630 * riscv-tdep.c (riscv_print_one_register_info): Use
7631 common_val_print.
7632
7633 2020-03-13 Tom Tromey <tom@tromey.com>
7634
7635 * mi/mi-main.c (output_register): Use common_val_print.
7636
7637 2020-03-13 Tom Tromey <tom@tromey.com>
7638
7639 * infcmd.c (default_print_one_register_info): Use
7640 common_val_print.
7641
7642 2020-03-13 Tom Tromey <tom@tromey.com>
7643
7644 * valprint.h (common_val_print_checked): Declare.
7645 * valprint.c (common_val_print_checked): New function.
7646 * stack.c (print_frame_arg): Use common_val_print_checked.
7647
7648 2020-03-13 Tom Tromey <tom@tromey.com>
7649
7650 * valprint.c (do_val_print): New function, from val_print.
7651 (val_print): Use do_val_print.
7652 (common_val_print): Use do_val_print.
7653
7654 2020-03-13 Tom Tromey <tom@tromey.com>
7655
7656 * valprint.c (value_print): Use scoped_value_mark.
7657
7658 2020-03-13 Tom de Vries <tdevries@suse.de>
7659
7660 PR symtab/25646
7661 * psymtab.c (partial_symtab::partial_symtab): Don't set
7662 globals_offset and statics_offset. Push element onto
7663 current_global_psymbols and current_static_psymbols stacks.
7664 (concat): New function.
7665 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7666 element from current_global_psymbols and current_static_psymbols
7667 stacks. Concat popped elements to global_psymbols and
7668 static_symbols.
7669 (add_psymbol_to_list): Use current_global_psymbols and
7670 current_static_psymbols stacks.
7671 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7672 current_static_psymbols fields.
7673
7674 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7675
7676 * corelow.c (sniff_core_bfd): Remove.
7677 (class core_target) <m_core_vec>: Remove.
7678 (core_target::core_target): Update.
7679 (core_file_fns): Remove.
7680 (deprecated_add_core_fns): Remove.
7681 (default_core_sniffer): Remove.
7682 (sniff_core_bfd): Remove.
7683 (default_check_format): Remove.
7684 (gdb_check_format): Remove.
7685 (core_target_open): Update.
7686 (core_target::get_core_register_section): Update.
7687 (get_core_registers_cb): Update.
7688 (core_target::fetch_registers): Update.
7689 * gdbcore.h (struct core_fns): Remove.
7690 (deprecated_add_core_fns): Remove.
7691 (default_core_sniffer): Remove.
7692 (default_check_format): Remove.
7693
7694 2020-03-12 Tom Tromey <tom@tromey.com>
7695
7696 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7697 CORE_ADDR.
7698 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7699
7700 2020-03-12 Tom Tromey <tom@tromey.com>
7701
7702 * remote.c (remote_target::download_tracepoint)
7703 (remote_target::enable_tracepoint)
7704 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7705 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7706 sprintf_vma.
7707
7708 2020-03-12 Tom Tromey <tom@tromey.com>
7709
7710 * symfile-mem.c: Update CORE_ADDR size assert.
7711
7712 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7713
7714 * selftest.m4: Move to gdbsupport/.
7715 * acinclude.m4: Update path to selftest.m4.
7716
7717 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7718
7719 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7720 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7721 gdbarch-selfselftests.c and selftest-arch.c.
7722 (SUBDIR_UNITTESTS_OBS): Rename to...
7723 (SELFTESTS_OBS): ... this.
7724 (COMMON_SFILES): Remove disasm-selftests.c and
7725 gdbarch-selftests.c.
7726 * configure.ac: Don't add selftest-arch.{c,o} to
7727 CONFIG_{SRCS,OBS}.
7728 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7729 preprocessor conditions.
7730
7731 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7732
7733 * configure.ac: Don't source bfd/development.sh.
7734 * selftest.m4: Modify comment.
7735 * configure: Re-generate.
7736
7737 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7738
7739 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7740 not "true" or "false".
7741 * configure: Re-generate.
7742
7743 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7744
7745 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7746 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7747 renamed to arm_nbsd_supply_gregset.
7748 (fetch_register): Update to call arm_nbsd_supply_gregset.
7749 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7750 (arm_netbsd_nat_target::fetch_registers): Update.
7751 (fetch_elfcore_registers): Removed.
7752 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7753 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7754 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7755 not require NetBSD system headers.
7756 (arm_nbsd_regset): New struct.
7757 (arm_nbsd_iterate_over_regset_sections): New function.
7758 (arm_netbsd_init_abi_common): Updated to call
7759 set_gdbarch_iterate_over_regset_sections.
7760 * arm-nbsd-tdep.h: New file.
7761
7762 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7763
7764 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7765 recursion.
7766
7767 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7768
7769 * configure: Re-generate.
7770
7771 2020-03-11 Tom Tromey <tromey@adacore.com>
7772
7773 * ada-typeprint.c (print_choices): Fix comment.
7774
7775 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7776
7777 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7778 previous item in the list, when the list has no items.
7779
7780 2020-03-11 Tom de Vries <tdevries@suse.de>
7781
7782 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7783 PROP_LOCLIST handling code.
7784
7785 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7786
7787 * buildsym-legacy.c (record_line): Pass extra parameter to
7788 record_line.
7789 * buildsym.c (buildsym_compunit::record_line): Take an extra
7790 parameter, reduce duplication in the line table, and record the
7791 is_stmt flag in the line table.
7792 * buildsym.h (buildsym_compunit::record_line): Add extra
7793 parameter.
7794 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7795 non-statement lines.
7796 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7797 this to the symtab builder.
7798 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7799 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7800 through to dwarf_record_line_1.
7801 * infrun.c (process_event_stop_test): When stepping, don't stop at
7802 a non-statement instruction, and only refresh the step info when
7803 we land in the middle of a line's range. Also add an extra
7804 comment.
7805 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7806 field.
7807 * record-btrace.c (btrace_find_line_range): Only record lines
7808 marked as is-statement.
7809 * stack.c (frame_show_address): Show the frame address if we are
7810 in a non-statement sal.
7811 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7812 (maintenance_print_one_line_table): Print a header for the is_stmt
7813 column, and include is_stmt information in the output.
7814 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7815 preference to non-statements.
7816 (find_pcs_for_symtab_line): Prefer is-statement entries.
7817 (find_line_common): Likewise.
7818 * symtab.h (struct linetable_entry): Add is_stmt field.
7819 (struct symtab_and_line): Likewise.
7820 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7821 arranging the line table.
7822
7823 2020-03-07 Tom de Vries <tdevries@suse.de>
7824
7825 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7826 DIE.
7827
7828 2020-03-07 Tom Tromey <tom@tromey.com>
7829
7830 * valops.c (value_literal_complex): Remove obsolete comment.
7831 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7832 comment.
7833
7834 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7835
7836 * infrun.h: Forward-declare thread_info.
7837 (set_step_info): Add thread_info parameter, add doc.
7838 * infrun.c (set_step_info): Add thread_info parameter, move doc
7839 to header.
7840 * infrun.c (process_event_stop_test): Pass thread to
7841 set_step_info call.
7842 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7843 set_step_info.
7844 (prepare_one_step): Add thread_info parameter, pass it to
7845 set_step_frame and prepare_one_step (recursive) call.
7846 (step_1): Pass thread to prepare_one_step call.
7847 (step_command_fsm::should_stop): Pass thread to
7848 prepare_one_step.
7849 (until_next_fsm): Pass thread to set_step_frame call.
7850 (finish_command): Pass thread to set_step_info call.
7851
7852 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7853
7854 * windows-tdep.c (windows_solib_create_inferior_hook):
7855 Check if inferior is running.
7856
7857 2020-03-06 Tom de Vries <tdevries@suse.de>
7858
7859 * NEWS: Fix "the the".
7860 * ctfread.c: Same.
7861
7862 2020-03-06 Tom de Vries <tdevries@suse.de>
7863
7864 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7865
7866 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7867
7868 * .dir-locals.el: Add a comment referencing the other copies of
7869 this file.
7870
7871 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7872
7873 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7874 psargs.
7875
7876 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7877
7878 * .gitattributes: New file.
7879
7880 2020-03-04 Tom Tromey <tom@tromey.com>
7881
7882 * symmisc.c (print_symbol_bcache_statistics)
7883 (print_objfile_statistics): Update.
7884 * symfile.c (allocate_symtab): Use intern.
7885 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7886 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7887 macro_cache>: Remove.
7888 <string_cache>: New member.
7889 (struct objfile) <intern>: New methods.
7890 * elfread.c (elf_symtab_read): Use intern.
7891 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7892 (dwarf2_compute_name, dwarf2_physname)
7893 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7894 names.
7895 (guess_partial_die_structure_name): Update.
7896 (partial_die_info::fixup): Intern name.
7897 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7898 name.
7899 (dwarf2_name): Intern name. Update.
7900 * buildsym.c (buildsym_compunit::get_macro_table): Use
7901 string_cache.
7902
7903 2020-03-04 Tom Tromey <tom@tromey.com>
7904
7905 * jit.c (bfd_open_from_target_memory): Make "target" const.
7906 * corefile.c (gnutarget): Now const.
7907 * gdbcore.h (gnutarget): Now const.
7908
7909 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7910
7911 * NEWS: Mention support for WOW64 processes.
7912 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7913 (amd64_windows_segment_register_p): Remove static.
7914 (_initialize_amd64_windows_nat): Update.
7915 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7916 * i386-windows-nat.c (context_offset): Update.
7917 (i386_mappings): Rename and remove static.
7918 (i386_windows_segment_register_p): Remove static.
7919 (_initialize_i386_windows_nat): Update.
7920 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7921 (STATUS_WX86_SINGLE_STEP): New macro.
7922 (EnumProcessModulesEx): New macro.
7923 (Wow64SuspendThread): New macro.
7924 (Wow64GetThreadContext): New macro.
7925 (Wow64SetThreadContext): New macro.
7926 (Wow64GetThreadSelectorEntry): New macro.
7927 (windows_set_context_register_offsets): Add static.
7928 (windows_set_segment_register_p): Likewise.
7929 (windows_add_thread): Adapt for WOW64 processes.
7930 (windows_fetch_one_register): Likewise.
7931 (windows_nat_target::fetch_registers): Likewise.
7932 (windows_store_one_register): Likewise.
7933 (display_selector): Likewise.
7934 (display_selectors): Likewise.
7935 (handle_exception): Likewise.
7936 (windows_continue): Likewise.
7937 (windows_nat_target::resume): Likewise.
7938 (windows_add_all_dlls): Likewise.
7939 (do_initial_windows_stuff): Likewise.
7940 (windows_nat_target::attach): Likewise.
7941 (windows_get_exec_module_filename): Likewise.
7942 (windows_nat_target::create_inferior): Likewise.
7943 (windows_xfer_siginfo): Likewise.
7944 (_initialize_loadable): Initialize Wow64SuspendThread,
7945 Wow64GetThreadContext, Wow64SetThreadContext,
7946 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7947 * windows-nat.h (windows_set_context_register_offsets):
7948 Remove declaration.
7949 (windows_set_segment_register_p): Likewise.
7950 (i386_windows_segment_register_p): Add declaration.
7951 (amd64_windows_segment_register_p): Likewise.
7952
7953 2020-03-04 Luis Machado <luis.machado@linaro.org>
7954
7955 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7956 in "info registers" for AArch64/ARM.
7957
7958 The change caused "info registers" to not print GPR's.
7959
7960 gdb/ChangeLog:
7961
7962 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7963
7964 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7965 when reg->group is empty and reggroup is not.
7966
7967 2020-03-03 Tom Tromey <tromey@adacore.com>
7968
7969 * dwarf2/frame.c (struct dwarf2_frame_cache)
7970 <checked_tailcall_bottom, entry_cfa_sp_offset,
7971 entry_cfa_sp_offset_p>: Remove members.
7972 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7973 (dwarf2_frame_prev_register): Don't call
7974 dwarf2_tailcall_sniffer_first.
7975 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7976 * frame-unwind.c (add_unwinder): New fuction.
7977 (frame_unwind_init): Use it. Add tailcall unwinder.
7978
7979 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7980 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7981
7982 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7983 value should be printed as true.
7984
7985 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
7986
7987 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7988 (windows_init_abi): Set and use windows_so_ops.
7989
7990 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7991
7992 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7993 when verifying if dealing with a convenience variable.
7994
7995 2020-03-03 Luis Machado <luis.machado@linaro.org>
7996
7997 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7998
7999 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8000
8001 * infrun.c (gdbarch_supports_displaced_stepping): New.
8002 (use_displaced_stepping): Break up conditions in smaller pieces.
8003 Use gdbarch_supports_displaced_stepping.
8004 (displaced_step_prepare_throw): Use
8005 gdbarch_supports_displaced_stepping.
8006
8007 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8008
8009 * NEWS: Mention new behaviour of the history filename.
8010 * top.c (write_history_p): Add comment.
8011 (show_write_history_p): Add header comment, give a different
8012 message when history writing is on, but the history filename is
8013 empty.
8014 (history_filename): Add comment.
8015 (history_filename_empty): New function.
8016 (show_history_filename): Add header comment, give a different
8017 message when the filename is empty.
8018 (init_history): Compare history_filename against nullptr, and only
8019 read history if the filename is not empty.
8020 (set_history_filename): Add header comment, and only make
8021 non-empty filenames absolute.
8022 (init_main): Make the filename argument to 'set history filename'
8023 optional.
8024
8025 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8026
8027 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8028 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8029 (fetch_fp_register): Update.
8030 (fetch_fp_regs): Update.
8031 (store_fp_register): Update.
8032 (store_fp_regs): Update.
8033 (arm_netbsd_nat_target::read_description): New function.
8034 (fetch_elfcore_registers): Update.
8035
8036 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8037
8038 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8039 general_thread if the stop reply is missing a thread-id.
8040 (remote_target::process_stop_reply): Use the first non-exited
8041 thread if the target didn't pass a thread-id.
8042 * infrun.c (do_target_wait): Move call to
8043 switch_to_inferior_no_thread to ....
8044 (do_target_wait_1): ... here.
8045
8046 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8047
8048 * debuginfod-support.c: Include defs.h first.
8049
8050 2020-02-28 Tom de Vries <tdevries@suse.de>
8051
8052 * symfile.c (set_initial_language): Use default language for lookup.
8053
8054 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8055
8056 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8057 reader variable, pass `this` to read_cutu_die_from_dwo.
8058
8059 2020-02-27 Aaron Merey <amerey@redhat.com>
8060
8061 * source.c (open_source_file): Check for nullptr when computing
8062 srcpath.
8063
8064 2020-02-27 Tom Tromey <tromey@adacore.com>
8065
8066 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8067 member.
8068 (dwarf2_add_field): Don't update nfields.
8069 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8070
8071 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8072
8073 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8074 abs.
8075
8076 2020-02-26 Tom Tromey <tom@tromey.com>
8077
8078 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8079 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8080 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8081 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8082 per_cu_data.
8083
8084 2020-02-26 Tom Tromey <tom@tromey.com>
8085
8086 * dwarf2/index-write.c (psym_index_map): Change type.
8087 (add_address_entry_worker, write_one_signatured_type)
8088 (recursively_count_psymbols, recursively_write_psymbols)
8089 (class debug_names, psyms_seen_size, write_gdbindex)
8090 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8091
8092 2020-02-26 Aaron Merey <amerey@redhat.com>
8093
8094 * Makefile.in: Handle optional debuginfod support.
8095 * NEWS: Update.
8096 * README: Add --with-debuginfod summary.
8097 * config.in: Regenerate.
8098 * configure: Regenerate.
8099 * configure.ac: Handle optional debuginfod support.
8100 * debuginfod-support.c: debuginfod helper functions.
8101 * debuginfod-support.h: Ditto.
8102 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8103 summary.
8104 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8105 when a dwz file cannot be found.
8106 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8107 debuginfo file cannot be found.
8108 * source.c (open_source_file): Query debuginfod servers when a
8109 source file cannot be found.
8110 * top.c (print_gdb_configuration): Include
8111 --{with,without}-debuginfod in the output.
8112
8113 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8114
8115 * thread.c (thr_try_catch_cmd): Print thread name.
8116
8117 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8118
8119 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8120 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8121 dwarf2_fetch_die_type_sect_off): Move to...
8122 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8123 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8124 dwarf2_fetch_die_type_sect_off): ... here.
8125 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8126 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8127 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8128
8129 2020-02-26 Tom de Vries <tdevries@suse.de>
8130
8131 PR gdb/25603
8132 * symfile.c (set_initial_language): Exit-early if
8133 language_mode == language_mode_manual.
8134
8135 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8136
8137 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8138 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8139 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8140
8141 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8142
8143 * gdbtypes.c (create_array_type_with_stride): Handle negative
8144 array strides.
8145 * valarith.c (value_subscripted_rvalue): Likewise.
8146
8147 2020-02-25 Luis Machado <luis.machado@linaro.org>
8148
8149 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8150
8151 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8152
8153 * loc.h (dwarf2_get_die_type): Move to...
8154 * read.h (dwarf2_get_die_type): ... here.
8155 * read.c (dwarf2_get_die_type): Move doc to header.
8156
8157 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8158
8159 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8160 'gnulib/Makefile.in' to the list.
8161
8162 2020-02-24 Tom Tromey <tom@tromey.com>
8163
8164 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8165 Remove.
8166 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8167 XOBNEWVEC.
8168
8169 2020-02-24 Tom Tromey <tom@tromey.com>
8170
8171 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8172 New method.
8173 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8174 (dw2_do_instantiate_symtab, dw2_get_file_names)
8175 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8176
8177 2020-02-24 Tom Tromey <tom@tromey.com>
8178
8179 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8180 make_scoped_restore.
8181 (dwarf2_psymtab::read_symtab): Don't clear
8182 reading_partial_symbols.
8183
8184 2020-02-24 Tom de Vries <tdevries@suse.de>
8185
8186 PR gdb/25592
8187 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8188
8189 2020-02-24 Tom de Vries <tdevries@suse.de>
8190
8191 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8192 commands layout next/prev/regs.
8193
8194 2020-02-22 Tom Tromey <tom@tromey.com>
8195
8196 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8197 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8198
8199 2020-02-22 Tom Tromey <tom@tromey.com>
8200
8201 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8202
8203 2020-02-22 Tom Tromey <tom@tromey.com>
8204
8205 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8206 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8207 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8208 * tui/tui.c (_initialize_tui): Add usage text.
8209
8210 2020-02-22 Tom Tromey <tom@tromey.com>
8211
8212 * tui/tui-win.c (tui_set_focus_command)
8213 (tui_set_win_height_command): Use error_no_arg.
8214 (_initialize_tui_win): Update help text.
8215 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8216
8217 2020-02-22 Tom Tromey <tom@tromey.com>
8218
8219 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8220 * tui/tui-disasm.h (struct tui_disasm_window)
8221 <display_start_addr>: Declare.
8222 * tui/tui-source.h (struct tui_source_window)
8223 <display_start_addr>: Declare.
8224 * tui/tui-winsource.h (struct tui_source_window_base)
8225 <show_source_line, display_start_addr>: New methods.
8226 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8227 Rename and move to protected section.
8228 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8229 (tui_source_window_base::do_erase_source_content): Update.
8230 (tui_source_window_base::show_source_line): Now a method.
8231 (tui_source_window_base::show_source_content)
8232 (tui_source_window_base::tui_source_window_base)
8233 (tui_source_window_base::rerender)
8234 (tui_source_window_base::refill)
8235 (tui_source_window_base::do_scroll_horizontal)
8236 (tui_source_window_base::set_is_exec_point_at)
8237 (tui_source_window_base::update_breakpoint_info)
8238 (tui_source_window_base::update_exec_info): Update.
8239 * tui/tui-source.c (tui_source_window::set_contents)
8240 (tui_source_window::showing_source_p)
8241 (tui_source_window::do_scroll_vertical)
8242 (tui_source_window::location_matches_p)
8243 (tui_source_window::line_is_displayed): Update.
8244 (tui_source_window::display_start_addr): New method.
8245 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8246 (tui_disasm_window::do_scroll_vertical)
8247 (tui_disasm_window::location_matches_p): Update.
8248 (tui_disasm_window::display_start_addr): New method.
8249
8250 2020-02-22 Tom Tromey <tom@tromey.com>
8251
8252 * NEWS: Add entry for gdb.register_window_type.
8253 * tui/tui-layout.h (window_factory): New typedef.
8254 (tui_register_window): Declare.
8255 * tui/tui-layout.c (saved_tui_windows): New global.
8256 (tui_apply_current_layout): Use it.
8257 (tui_register_window): New function.
8258 * python/python.c (do_start_initialization): Call
8259 gdbpy_initialize_tui.
8260 (python_GdbMethods): Add "register_window_type" function.
8261 * python/python-internal.h (gdbpy_register_tui_window)
8262 (gdbpy_initialize_tui): Declare.
8263 * python/py-tui.c: New file.
8264 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8265
8266 2020-02-22 Tom Tromey <tom@tromey.com>
8267
8268 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8269
8270 2020-02-22 Tom Tromey <tom@tromey.com>
8271
8272 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8273 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8274 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8275 (tui_set_win_focus_to): Move from tui-win.c.
8276
8277 2020-02-22 Tom Tromey <tom@tromey.com>
8278
8279 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8280 functions.
8281 (known_window_types): New global.
8282 (tui_get_window_by_name): Reimplement.
8283 (initialize_known_windows): New function.
8284 (validate_window_name): Rewrite.
8285 (_initialize_tui_layout): Call initialize_known_windows.
8286
8287 2020-02-22 Tom Tromey <tom@tromey.com>
8288
8289 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8290 Remove constants.
8291 * tui/tui-winsource.h (struct tui_source_window_base)
8292 <tui_source_window_base>: Remove parameter.
8293 * tui/tui-winsource.c
8294 (tui_source_window_base::tui_source_window_base): Remove
8295 parameter.
8296 (tui_source_window_base::refill): Update.
8297 * tui/tui-stack.h (struct tui_locator_window)
8298 <tui_locator_window>: Update.
8299 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8300 Default the constructor.
8301 * tui/tui-regs.h (struct tui_data_item_window)
8302 <tui_data_item_window>: Default the constructor.
8303 (struct tui_data_window) <tui_data_window>: Likewise.
8304 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8305 Default the constructor.
8306 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8307 Default the constructor.
8308 <type>: Remove.
8309 (struct tui_win_info) <tui_win_info>: Default the constructor.
8310 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8311 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8312 Default the constructor.
8313
8314 2020-02-22 Tom Tromey <tom@tromey.com>
8315
8316 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8317 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8318 * tui/tui-win.c (tui_resize_all): Don't call
8319 tui_delete_invisible_windows.
8320 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8321 done.
8322 (tui_set_layout): Update.
8323 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8324 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8325 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8326
8327 2020-02-22 Tom Tromey <tom@tromey.com>
8328
8329 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8330 correctly.
8331
8332 2020-02-22 Tom Tromey <tom@tromey.com>
8333
8334 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8335
8336 2020-02-22 Tom Tromey <tom@tromey.com>
8337
8338 * tui/tui-winsource.h (struct tui_source_window_iterator)
8339 <inner_iterator>: New etytypedef.
8340 <tui_source_window_iterator>: Take "end" parameter.
8341 <tui_source_window_iterator>: Take iterator.
8342 <operator*, advance>: Update.
8343 <m_iter>: Change type.
8344 <m_end>: New field.
8345 (struct tui_source_windows) <begin, end>: Update.
8346 * tui/tui-layout.c (tui_windows): New global.
8347 (tui_apply_current_layout): Clear tui_windows.
8348 (tui_layout_window::apply): Update tui_windows.
8349 * tui/tui-data.h (tui_windows): Declare.
8350 (all_tui_windows): Now inline function.
8351 (class tui_window_iterator, struct all_tui_windows): Remove.
8352
8353 2020-02-22 Tom Tromey <tom@tromey.com>
8354
8355 PR tui/17850:
8356 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8357 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8358 "height" argument.
8359 (class tui_layout_window) <get_sizes>: Likewise.
8360 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8361 argument.
8362 <get_sizes>: Add "height" argument.
8363 <m_vertical>: New field.
8364 * tui/tui-layout.c (tui_layout_split::clone): Update.
8365 (tui_layout_split::get_sizes): Add "height" argument.
8366 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8367 (tui_new_layout_command): Parse "-horizontal".
8368 (_initialize_tui_layout): Update help string.
8369 (tui_layout_split::specification): Add "-horizontal" when needed.
8370 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8371 argument.
8372 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8373 New methods.
8374
8375 2020-02-22 Tom Tromey <tom@tromey.com>
8376
8377 * tui/tui-layout.h (enum tui_adjust_result): New.
8378 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8379 (class tui_layout_window) <adjust_size>: Return
8380 tui_adjust_result. Rewrite.
8381 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8382 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8383
8384 2020-02-22 Tom Tromey <tom@tromey.com>
8385
8386 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8387 parameter and return types.
8388 (class tui_layout_base) <specification>: Add "depth".
8389 (class tui_layout_window) <specification>: Add "depth".
8390 (class tui_layout_split) <specification>: Add "depth".
8391 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8392 and return types.
8393 (tui_new_layout_command): Parse sub-layouts.
8394 (_initialize_tui_layout): Update help string.
8395 (tui_layout_window::specification): Add "depth".
8396 (add_layout_command): Update.
8397
8398 2020-02-22 Tom Tromey <tom@tromey.com>
8399
8400 * NEWS: Add "tui new-layout" item.
8401 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8402 Add new-layout command to help text.
8403 (validate_window_name): New function.
8404 (tui_new_layout_command): New function.
8405 (_initialize_tui_layout): Register "new-layout".
8406 (tui_layout_window::specification): New method.
8407 (tui_layout_window::specification): New method.
8408 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8409 method.
8410 (class tui_layout_window) <specification>: New method.
8411 (class tui_layout_split) <specification>: New method.
8412
8413 2020-02-22 Tom Tromey <tom@tromey.com>
8414
8415 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8416 * tui/tui-win.c (window_name_completer): Update comment.
8417 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8418 Declare method.
8419 (class tui_layout_window) <replace_window>: Likewise.
8420 (class tui_layout_split) <replace_window>: Likewise.
8421 (tui_set_layout): Don't declare.
8422 (tui_set_initial_layout): Declare function.
8423 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8424 (asm_regs_layout): New globals.
8425 (tui_current_layout, show_layout): Remove.
8426 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8427 (find_layout, tui_apply_layout): New function.
8428 (layout_completer): Remove.
8429 (tui_next_layout): Reimplement.
8430 (tui_next_layout_command): New function.
8431 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8432 (tui_regs_layout): Reimplement.
8433 (tui_regs_layout_command): New function.
8434 (extract_display_start_addr): Rewrite.
8435 (next_layout, prev_layout): Remove.
8436 (tui_layout_window::replace_window): New method.
8437 (tui_layout_split::replace_window): New method.
8438 (destroy_layout): New function.
8439 (layout_list): New global.
8440 (add_layout_command): New function.
8441 (initialize_layouts): Update.
8442 (tui_layout_command): New function.
8443 (_initialize_tui_layout): Install "layout" commands.
8444 * tui/tui-data.h (enum tui_layout_type): Remove.
8445 (tui_current_layout): Don't declare.
8446
8447 2020-02-22 Tom Tromey <tom@tromey.com>
8448
8449 * tui/tui-regs.c (tui_reg_layout): Remove.
8450 (tui_reg_command): Use tui_regs_layout.
8451 * tui/tui-layout.h (tui_reg_command): Declare.
8452 * tui/tui-layout.c (tui_reg_command): New function.
8453
8454 2020-02-22 Tom Tromey <tom@tromey.com>
8455
8456 * tui/tui.c (tui_rl_delete_other_windows): Call
8457 tui_remove_some_windows.
8458 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8459 Declare method.
8460 (class tui_layout_window) <remove_windows>: New method.
8461 (class tui_layout_split) <remove_windows>: Declare.
8462 (tui_remove_some_windows): Declare.
8463 * tui/tui-layout.c (tui_remove_some_windows): New function.
8464 (tui_layout_split::remove_windows): New method.
8465
8466 2020-02-22 Tom Tromey <tom@tromey.com>
8467
8468 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8469 * tui/tui-layout.h (tui_next_layout): Declare.
8470 * tui/tui-layout.c (tui_next_layout): New function.
8471
8472 2020-02-22 Tom Tromey <tom@tromey.com>
8473
8474 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8475 correct coordinates.
8476
8477 2020-02-22 Tom Tromey <tom@tromey.com>
8478
8479 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8480 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8481 DATA_WIN case.
8482
8483 2020-02-22 Tom Tromey <tom@tromey.com>
8484
8485 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8486 TUI_DISASM_WIN, not tui_win_list.
8487
8488 2020-02-22 Tom Tromey <tom@tromey.com>
8489
8490 * valprint.c (generic_val_print_enum_1)
8491 (val_print_type_code_flags): Style member names.
8492 * rust-lang.c (val_print_struct, rust_print_enum)
8493 (rust_print_struct_def, rust_internal_print_type): Style member
8494 names.
8495 * p-valprint.c (pascal_object_print_value_fields): Style member
8496 names. Only call fprintf_symbol_filtered for static members.
8497 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8498 * f-valprint.c (f_val_print): Style member names.
8499 * f-typeprint.c (f_type_print_base): Style member names.
8500 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8501 call fprintf_symbol_filtered for static members.
8502 (cp_print_class_member): Style member names.
8503 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8504 member names.
8505 * ada-valprint.c (ada_print_scalar): Style enum names.
8506 (ada_val_print_enum): Likewise.
8507 * ada-typeprint.c (print_enum_type): Style enum names.
8508
8509 2020-02-21 Tom Tromey <tom@tromey.com>
8510
8511 * psympriv.h (struct partial_symtab): Update comment.
8512
8513 2020-02-21 Tom Tromey <tromey@adacore.com>
8514
8515 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8516 type is CORE_ADDR.
8517
8518 2020-02-21 Tom de Vries <tdevries@suse.de>
8519
8520 PR gdb/25534
8521 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8522 if dependencies[i]->user != NULL.
8523
8524 2020-02-21 Ali Tamur <tamur@google.com>
8525
8526 * dwarf2/read.c (dwarf2_name): Add null check.
8527
8528 2020-02-20 Tom Tromey <tom@tromey.com>
8529
8530 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8531 ">=", in binary search.
8532 (dwarf2_find_containing_comp_unit): New overload.
8533 (run_test): New self-test.
8534 (_initialize_dwarf2_read): Register new test.
8535
8536 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8537
8538 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8539 * riscv-tdep.h: Likewise.
8540 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8541 rv32-only CSR.
8542 * features/riscv/64bit-csr.xml: Regenerated.
8543
8544 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8545 Tom Tromey <tom@tromey.com>
8546
8547 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8548 of 'fputc_unfiltered'.
8549 (putchar_unfiltered): Call 'fputc_unfiltered'.
8550 (fputc_unfiltered): Call 'fputs_unfiltered'.
8551
8552 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8553
8554 * config.in: Regenerate.
8555 * configure: Regenerate.
8556 * configure.ac: Add --with-python-libdir option.
8557 * main.c: Use WITH_PYTHON_LIBDIR.
8558
8559 2020-02-19 Tom Tromey <tom@tromey.com>
8560
8561 * symtab.c (general_symbol_info::compute_and_set_names): Use
8562 obstack_strndup. Simplify call to symbol_set_demangled_name.
8563
8564 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8565
8566 * dwarf2/read.c (allocate_signatured_type_table,
8567 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8568 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8569 Remove objfile parameter, update all callers.
8570
8571 2020-02-19 Doug Evans <dje@google.com>
8572
8573 PR rust/25535
8574 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8575 rust_enum_variant calculation.
8576
8577 2020-02-19 Tom Tromey <tromey@adacore.com>
8578
8579 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8580
8581 2020-02-19 Tom Tromey <tromey@adacore.com>
8582
8583 * ada-lang.c (cache_symbol): Use obstack_strdup.
8584
8585 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8586
8587 * configure: Regenerate.
8588
8589 2020-02-19 Tom Tromey <tromey@adacore.com>
8590
8591 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8592 NULL check.
8593
8594 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8595
8596 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8597
8598 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8599
8600 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8601 if GDBSERVER is not defined.
8602 (riscv_tdesc_cache): Likewise, also store const target_desc.
8603 (STATIC_IN_GDB): Define.
8604 (riscv_create_target_description): Update declaration with
8605 STATIC_IN_GDB.
8606 (riscv_lookup_target_description): New function, only define if
8607 GDBSERVER is not defined.
8608 * arch/riscv.h (riscv_create_target_description): Declare only
8609 when GDBSERVER is defined.
8610 (riscv_lookup_target_description): New declaration when GDBSERVER
8611 is not defined.
8612 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8613 (riscv_linux_read_features): ...this, and return
8614 riscv_gdbarch_features instead of target_desc.
8615 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8616 (riscv_linux_read_description): Rename to...
8617 (riscv_linux_read_features): ...this.
8618 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8619 Update to use riscv_gdbarch_features and
8620 riscv_lookup_target_description.
8621 * riscv-tdep.c (riscv_find_default_target_description): Use
8622 riscv_lookup_target_description instead of
8623 riscv_create_target_description.
8624
8625 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8626
8627 * valprint.c (generic_val_print_enum_1): When printing a flag
8628 enum with value 0 and there is no enumerator with value 0, print
8629 just "0" instead of "(unknown: 0x0)".
8630
8631 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8632
8633 * valprint.c (generic_val_print_enum_1): Print unknown part of
8634 flag enum in hex.
8635
8636 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8637
8638 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8639 flag enums to contain duplicate enumerators.
8640 * valprint.c (generic_val_print_enum_1): Update comment.
8641
8642 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8643
8644 * dwarf2/read.c: Include "count-one-bits.h".
8645 (update_enumeration_type_from_children): If an enumerator has
8646 multiple bits set, don't treat the enumeration as a "flag enum".
8647 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8648 of flag enums have 0 or 1 bit set.
8649
8650 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8651
8652 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8653 conversion.
8654 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8655 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8656 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8657 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8658 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8659
8660 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8661
8662 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8663
8664 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8665
8666 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8667 displaced_step_closure_up.
8668 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8669 (struct displaced_step_closure_up):
8670 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8671 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8672 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8673 Likewise.
8674 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8675 * gdbarch.c, gdbarch.h: Re-generate.
8676 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8677 displaced_step_closure_up.
8678 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8679 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8680 * infrun.h (displaced_step_closure_up): New type alias.
8681 (struct displaced_step_inferior_state) <step_closure>: Change
8682 type to displaced_step_closure_up.
8683 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8684 displaced_step_closure_up.
8685 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8686
8687 2020-02-14 Tom Tromey <tom@tromey.com>
8688
8689 * minidebug.c (gnu_debug_key): New global.
8690 (find_separate_debug_file_in_section): Use it.
8691
8692 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8693
8694 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8695 std::unique_ptr.
8696 * gdbarch.c: Re-generate.
8697 * gdbarch.h: Re-generate.
8698 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8699 change.
8700 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8701 type to std::unique_ptr.
8702 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8703 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8704 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8705 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8706 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8707 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8708 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8709 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8710 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8711
8712 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8713
8714 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8715 std::unique_ptr.
8716 (displaced_step_clear): Rename to...
8717 (displaced_step_reset): ... this. Just call displaced->reset ().
8718 (displaced_step_clear_cleanup): Rename to...
8719 (displaced_step_reset_cleanup): ... this.
8720 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8721 (displaced_step_fixup): Likewise.
8722 (resume_1): Likewise.
8723 (handle_inferior_event): Restore child's memory before calling
8724 displaced_step_fixup on the parent.
8725 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8726 to std::unique_ptr.
8727 <step_closure>: Change type to std::unique_ptr.
8728
8729 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8730
8731 * arm-tdep.c: Include count-one-bits.h.
8732 (cleanup_block_store_pc): Use count_one_bits.
8733 (cleanup_block_load_pc): Use count_one_bits.
8734 (arm_copy_block_xfer): Use count_one_bits.
8735 (thumb2_copy_block_xfer): Use count_one_bits.
8736 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8737 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8738 (thumb_get_next_pcs_raw): Use count_one_bits.
8739 (arm_get_next_pcs_raw): Use count_one_bits_l.
8740 * arch/arm.c (bitcount): Remove.
8741 * arch/arm.h (bitcount): Remove.
8742
8743 2020-02-14 Tom Tromey <tromey@adacore.com>
8744
8745 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8746 Update.
8747 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8748 * dwarf2/loc.c (call_site_find_chain_1): Return
8749 unique_xmalloc_ptr.
8750 (call_site_find_chain): Likewise.
8751
8752 2020-02-14 Richard Biener <rguenther@suse.de>
8753
8754 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8755 on expression with division operators.
8756
8757 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8758
8759 * MAINTAINERS (Write After Approval): Adding myself.
8760
8761 2020-02-12 Tom Tromey <tom@tromey.com>
8762
8763 * event-loop.c (event_data, gdb_event, event_handler_func):
8764 Remove.
8765
8766 2020-02-12 Tom Tromey <tom@tromey.com>
8767
8768 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8769 (dwarf2_frame_objfile_data): Add comment.
8770 (find_comp_unit, set_comp_unit): New functions.
8771 (dwarf2_frame_find_fde): Use find_comp_unit.
8772 (dwarf2_build_frame_info): Use set_comp_unit.
8773
8774 2020-02-12 Tom Tromey <tom@tromey.com>
8775
8776 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8777 (comp_unit): Don't initialize objfile.
8778 (execute_cfa_program): Add text_offset parameter.
8779 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8780 (dwarf2_frame_cache): Update.
8781 (dwarf2_build_frame_info): Don't set "objfile" member.
8782
8783 2020-02-12 Tom Tromey <tom@tromey.com>
8784
8785 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8786 (decode_frame_entry): Likewise.
8787 (dwarf2_build_frame_info): Update.
8788
8789 2020-02-12 Tom Tromey <tom@tromey.com>
8790
8791 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8792 (decode_frame_entry_1): Use the comp_unit obstack.
8793
8794 2020-02-12 Tom Tromey <tom@tromey.com>
8795
8796 * dwarf2/frame.c (struct comp_unit): Add initializers and
8797 constructor.
8798 (dwarf2_frame_objfile_data): Store a comp_unit.
8799 (dwarf2_frame_find_fde): Update.
8800 (dwarf2_build_frame_info): Use "new".
8801
8802 2020-02-12 Tom Tromey <tom@tromey.com>
8803
8804 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8805 (dwarf2_fde_table): Typedef for std::vector.
8806 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8807 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8808 (decode_frame_entry): Update.
8809 (dwarf2_build_frame_info): Use "new".
8810
8811 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8812
8813 * arm-tdep.c (arm_gdbarch_init): Update.
8814 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8815 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8816 have_neon, is_m>: Change to bool.
8817
8818 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8819
8820 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8821
8822 2020-02-12 Tom Tromey <tom@tromey.com>
8823
8824 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8825
8826 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8827
8828 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8829 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8830
8831 2020-02-11 Tom Tromey <tom@tromey.com>
8832
8833 * psymtab.h: Update comment.
8834
8835 2020-02-11 Tom Tromey <tom@tromey.com>
8836
8837 * gdb_obstack.h (struct auto_obstack): Use
8838 DISABLE_COPY_AND_ASSIGN.
8839
8840 2020-02-11 Tom Tromey <tom@tromey.com>
8841
8842 * dwarf2/frame.h (struct objfile): Don't forward declare.
8843
8844 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8845
8846 * cris-tdep.c (cris_supply_gregset): Change signature to match
8847 what struct regset expects.
8848 (cris_regset): New struct.
8849 (fetch_core_registers): Remove.
8850 (cris_iterate_over_regset_sections): New function.
8851 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8852 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8853
8854 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8855
8856 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8857 registers.
8858
8859 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8860
8861 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8862
8863 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8864
8865 * configure: Re-generate.
8866
8867 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8868
8869 * configure: Re-generate.
8870
8871 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8872
8873 * acinclude: Update warning.m4 path.
8874 * warning.m4: Move to gdbsupport.
8875
8876 2020-02-11 Tom Tromey <tromey@adacore.com>
8877
8878 * remote.c (remote_console_output): Update.
8879 * printcmd.c (printf_command): Update.
8880 * event-loop.c (gdb_wait_for_event): Update.
8881 * linux-nat.c (sigchld_handler): Update.
8882 * remote-sim.c (gdb_os_write_stdout): Update.
8883 (gdb_os_flush_stdout): Update.
8884 (gdb_os_flush_stderr): Update.
8885 (gdb_os_write_stderr): Update.
8886 * exceptions.c (print_exception): Update.
8887 * remote-fileio.c (remote_fileio_func_read): Update.
8888 (remote_fileio_func_write): Update.
8889 * tui/tui.c (tui_enable): Update.
8890 * tui/tui-interp.c (tui_interp::init): Update.
8891 * utils.c (init_page_info): Update.
8892 (putchar_unfiltered, fputc_unfiltered): Update.
8893 (gdb_flush): Update.
8894 (emit_style_escape): Update.
8895 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8896 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8897 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8898 (stderr_file::write): Update.
8899 (stderr_file::puts): Update.
8900 * ui-file.h (ui_file_isatty, ui_file_write)
8901 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8902 (ui_file_puts): Don't declare.
8903
8904 2020-02-10 Tom de Vries <tdevries@suse.de>
8905
8906 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8907 sentinel to char *.
8908
8909 2020-02-09 Tom de Vries <tdevries@suse.de>
8910
8911 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8912 filename if it matches "<artificial>".
8913
8914 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8915
8916 * windows-tdep.c (struct enum_value_name): New struct.
8917 (create_enum): New function.
8918 (windows_get_siginfo_type): Create and use enum types.
8919
8920 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8921
8922 * NEWS: Mention $_siginfo support for Windows.
8923 * windows-nat.c (handle_exception): Set siginfo_er.
8924 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8925 (windows_xfer_siginfo): New function.
8926 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8927 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8928 (init_windows_gdbarch_data): New function.
8929 (get_windows_gdbarch_data): New function.
8930 (windows_get_siginfo_type): New function.
8931 (windows_init_abi): Register windows_get_siginfo_type.
8932 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8933
8934 2020-02-08 Tom Tromey <tom@tromey.com>
8935
8936 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8937 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8938 <keep>: Declare method.
8939 <m_keep>: Remove member.
8940 <~cutu_reader>: Remove.
8941 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8942 (cutu_reader::cutu_reader): Update.
8943 (cutu_reader::keep): Rename from ~cutu_reader.
8944 (process_psymtab_comp_unit, build_type_psymtabs_1)
8945 (process_skeletonless_type_unit, load_partial_comp_unit)
8946 (load_full_comp_unit, dwarf2_read_addr_index)
8947 (read_signatured_type): Update.
8948
8949 2020-02-08 Tom Tromey <tom@tromey.com>
8950
8951 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8952 "want_partial_unit" parameter.
8953 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8954 Inline check for DW_TAG_partial_unit.
8955 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8956
8957 2020-02-08 Tom Tromey <tom@tromey.com>
8958
8959 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8960 read.c.
8961 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8962 read.c.
8963
8964 2020-02-08 Tom Tromey <tom@tromey.com>
8965
8966 * dwarf2/read.c (read_address): Move to comp-unit.c.
8967 (dwarf2_rnglists_process, dwarf2_ranges_process)
8968 (read_attribute_value, dwarf_decode_lines_1)
8969 (var_decode_location, decode_locdesc): Update.
8970 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8971 read.c. Remove "cu" parameter.
8972 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8973 method.
8974
8975 2020-02-08 Tom Tromey <tom@tromey.com>
8976
8977 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8978 (read_indirect_line_string): Update.
8979 * dwarf2/comp-unit.c (read_offset): Remove.
8980 (read_comp_unit_head): Update.
8981 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8982 method.
8983 (read_offset): Don't declare.
8984
8985 2020-02-08 Tom Tromey <tom@tromey.com>
8986
8987 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8988 * dwarf2/read.c (struct comp_unit_head): Move to
8989 dwarf2/comp-unit.h.
8990 (enum class rcuh_kind): Move to comp-unit.h.
8991 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8992 (read_comp_unit_head, error_check_comp_unit_head)
8993 (read_and_check_comp_unit_head): Move to comp-unit.c.
8994 (read_offset, dwarf_unit_type_name): Likewise.
8995 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8996 (cutu_reader::cutu_reader, read_call_site_scope)
8997 (find_partial_die, follow_die_offset): Update.
8998 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8999
9000 2020-02-08 Tom Tromey <tom@tromey.com>
9001
9002 * dwarf2/read.c (read_offset_1): Move to leb.c.
9003 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9004 (dwarf_decode_macro_bytes): Update.
9005 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9006 * dwarf2/leb.h (read_offset): Declare.
9007
9008 2020-02-08 Tom Tromey <tom@tromey.com>
9009
9010 * dwarf2/read.c (dwarf2_section_size): Remove.
9011 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9012 Update.
9013 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9014
9015 2020-02-08 Tom Tromey <tom@tromey.com>
9016
9017 * dwarf2/read.c (read_initial_length): Move to leb.c.
9018 * dwarf2/leb.h (read_initial_length): Declare.
9019 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9020 handle_nonstd parameter.
9021 * dwarf2/frame.c (read_initial_length): Remove.
9022 (decode_frame_entry_1): Update.
9023
9024 2020-02-08 Tom Tromey <tom@tromey.com>
9025
9026 * dwarf2/loc.c (dwarf2_find_location_expression)
9027 (dwarf_evaluate_loc_desc::get_tls_address)
9028 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9029 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9030 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9031 (dwarf2_compile_property_to_c)
9032 (dwarf2_loc_desc_get_symbol_read_needs)
9033 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9034 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9035 (loclist_describe_location, loclist_tracepoint_var_ref)
9036 (loclist_generate_c_location): Update.
9037 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9038 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9039 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9040 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9041 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9042 (dwarf2_per_cu_data::addr_size)
9043 (dwarf2_per_cu_data::ref_addr_size)
9044 (dwarf2_per_cu_data::text_offset)
9045 (dwarf2_per_cu_data::addr_type): Now methods.
9046 (per_cu_header_read_in): Make per_cu "const".
9047 (dwarf2_version): Remove.
9048 (dwarf2_per_cu_data::int_type): Now a method.
9049 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9050 (set_die_type, read_array_type, read_subrange_index_type)
9051 (read_tag_string_type, read_subrange_type): Update.
9052 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9053 offset_size, ref_addr_size, text_offset, addr_type, version,
9054 objfile, int_type, addr_sized_int_type>: Declare methods.
9055
9056 2020-02-08 Tom Tromey <tom@tromey.com>
9057
9058 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9059 Move earlier.
9060
9061 2020-02-08 Tom Tromey <tom@tromey.com>
9062
9063 * dwarf2/read.h (dwarf_line_debug): Declare.
9064 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9065 * dwarf2/read.c: Move line_header code to new files.
9066 (dwarf_line_debug): No longer static.
9067 * dwarf2/line-header.c: New file.
9068 * dwarf2/line-header.h: New file.
9069
9070 2020-02-08 Tom Tromey <tom@tromey.com>
9071
9072 * dwarf2/read.c (struct line_header) <file_full_name,
9073 file_file_name>: Return unique_xmalloc_ptr.
9074 (line_header::file_file_name): Update.
9075 (line_header::file_full_name): Update.
9076 (dw2_get_file_names_reader): Update.
9077 (macro_start_file): Update.
9078
9079 2020-02-08 Tom Tromey <tom@tromey.com>
9080
9081 * dwarf2/read.c (struct line_header) <file_full_name,
9082 file_file_name>: Declare methods.
9083 (dw2_get_file_names_reader): Update.
9084 (file_file_name): Now a method.
9085 (file_full_name): Likewise.
9086 (macro_start_file): Update.
9087
9088 2020-02-08 Tom Tromey <tom@tromey.com>
9089
9090 * dwarf2/read.c (dwarf_always_disassemble)
9091 (show_dwarf_always_disassemble): Move to loc.c.
9092 (_initialize_dwarf2_read): Move "always-disassemble" registration
9093 to loc.c.
9094 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9095 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9096 static.
9097 (show_dwarf_always_disassemble): Move from read.c.
9098 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9099
9100 2020-02-08 Tom Tromey <tom@tromey.com>
9101
9102 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9103 (create_quick_file_names_table): Return htab_up.
9104 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9105 Update.
9106 * dwarf2/read.h (struct dwarf2_per_objfile)
9107 <quick_file_names_table>: Now htab_up.
9108
9109 2020-02-08 Tom Tromey <tom@tromey.com>
9110
9111 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9112
9113 2020-02-08 Tom Tromey <tom@tromey.com>
9114
9115 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9116 Rewrite.
9117 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9118 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9119 (abbrev_table::abbrev_table): No longer inline.
9120 (ABBREV_HASH_SIZE): Remove.
9121 (abbrev_table::m_abbrevs): Now an htab_up.
9122
9123 2020-02-08 Tom Tromey <tom@tromey.com>
9124
9125 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9126 (cutu_reader): Update.
9127 (build_type_psymtabs_1): Update.
9128 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9129 (abbrev_table::alloc_abbrev): Update.
9130 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9131 (abbrev_table::read): New static method, renamed from
9132 abbrev_table_read_table.
9133 (abbrev_table::alloc_abbrev)
9134 (abbrev_table::add_abbrev): Now private.
9135 (abbrev_table::abbrev_table): Now private.
9136 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9137
9138 2020-02-08 Tom Tromey <tom@tromey.com>
9139
9140 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9141 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9142 htab_up.
9143
9144 2020-02-08 Tom Tromey <tom@tromey.com>
9145
9146 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9147 htab_up.
9148 (lookup_dwo_unit_in_dwp): Update.
9149 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9150 on obstack.
9151
9152 2020-02-08 Tom Tromey <tom@tromey.com>
9153
9154 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9155 obstack.
9156
9157 2020-02-08 Tom Tromey <tom@tromey.com>
9158
9159 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9160 line_header_hash.
9161 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9162 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9163 Change type to htab_up.
9164
9165 2020-02-08 Tom Tromey <tom@tromey.com>
9166
9167 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9168 htab_up. Don't allocate on obstack.
9169 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9170 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9171 Change type to htab_up.
9172
9173 2020-02-08 Tom Tromey <tom@tromey.com>
9174
9175 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9176 Change type to htab_up.
9177 * dwarf2/read.c (create_signatured_type_table_from_index)
9178 (create_signatured_type_table_from_debug_names)
9179 (create_all_type_units, add_type_unit)
9180 (lookup_dwo_signatured_type, lookup_signatured_type)
9181 (process_skeletonless_type_unit): Update.
9182 (create_debug_type_hash_table, create_debug_types_hash_table):
9183 Change type of types_htab.
9184 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9185 htab_up. Don't allocate on obstack.
9186 (create_cus_hash_table): Change type of cus_htab parameter.
9187 (struct dwo_file) <cus, tus>: Now htab_up.
9188 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9189 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9190 (queue_and_load_all_dwo_tus): Update.
9191 * dwarf2/index-write.c (write_gdbindex): Update.
9192 (write_debug_names): Update.
9193
9194 2020-02-08 Tom Tromey <tom@tromey.com>
9195
9196 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9197 dwarf2/read.c. Remove "next" member. Add constructor ntad
9198 destructor.
9199 (struct dwarf2_per_objfile) <queue>: New member.
9200 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9201 dwarf2/read.h.
9202 (dwarf2_queue, dwarf2_queue_tail): Remove.
9203 (class dwarf2_queue_guard): Add parameter to constructor. Use
9204 DISABLE_COPY_AND_ASSIGN.
9205 <m_per_objfile>: New member.
9206 <~dwarf2_queue_guard>: Rewrite.
9207 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9208 Update.
9209 (~dwarf2_queue_item): New.
9210
9211 2020-02-08 Tom Tromey <tom@tromey.com>
9212
9213 * dwarf2/read.c (struct die_info) <has_children>: New member.
9214 (dw2_get_file_names_reader): Remove has_children.
9215 (dw2_get_file_names): Update.
9216 (read_cutu_die_from_dwo): Remove has_children.
9217 (cutu_reader::init_tu_and_read_dwo_dies)
9218 (cutu_reader::cutu_reader): Update.
9219 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9220 Remove has_children.
9221 (build_type_psymtabs_1, process_skeletonless_type_unit)
9222 (load_partial_comp_unit, load_full_comp_unit): Update.
9223 (create_dwo_cu_reader): Remove has_children.
9224 (create_cus_hash_table, read_die_and_children): Update.
9225 (read_full_die_1,read_full_die): Remove has_children.
9226 (read_signatured_type): Update.
9227 (class cutu_reader) <has_children>: Remove.
9228
9229 2020-02-08 Tom Tromey <tom@tromey.com>
9230
9231 * dwarf2/expr.c: Rename from dwarf2expr.c.
9232 * dwarf2/expr.h: Rename from dwarf2expr.h.
9233 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9234 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9235 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9236 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9237 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9238 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9239 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9240 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9241 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9242 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9243 * dwarf2/loc.c: Rename from dwarf2loc.c.
9244 * dwarf2/loc.h: Rename from dwarf2loc.h.
9245 * dwarf2/read.c: Rename from dwarf2read.c.
9246 * dwarf2/read.h: Rename from dwarf2read.h.
9247 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9248 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9249 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9250 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9251 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9252 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9253 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9254 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9255 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9256 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9257 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9258 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9259 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9260 Update.
9261 * Makefile.in (COMMON_SFILES): Update.
9262 (HFILES_NO_SRCDIR): Update.
9263
9264 2020-02-08 Tom Tromey <tom@tromey.com>
9265
9266 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9267 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9268
9269 2020-02-08 Tom Tromey <tom@tromey.com>
9270
9271 * dwarf2read.h (struct die_info): Don't declare.
9272
9273 2020-02-08 Tom Tromey <tom@tromey.com>
9274
9275 * dwarf2read.h (die_info_ptr): Remove typedef.
9276
9277 2020-02-08 Tom Tromey <tom@tromey.com>
9278
9279 * dwarf2read.c (read_call_site_scope)
9280 (handle_data_member_location, dwarf2_add_member_fn)
9281 (mark_common_block_symbol_computed, read_common_block)
9282 (attr_to_dynamic_prop, partial_die_info::read)
9283 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9284 (dwarf2_symbol_mark_computed, set_die_type): Update.
9285 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9286 method.
9287 (attr_form_is_block): Don't declare.
9288 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9289
9290 2020-02-08 Tom Tromey <tom@tromey.com>
9291
9292 * dwarf2read.c (dwarf2_find_base_address, )
9293 (read_call_site_scope, rust_containing_type)
9294 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9295 (handle_data_member_location, dwarf2_add_member_fn)
9296 (get_alignment, read_structure_type, process_structure_scope)
9297 (mark_common_block_symbol_computed, read_common_block)
9298 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9299 (partial_die_info::read, read_attribute_value, new_symbol)
9300 (lookup_die_type, dwarf2_get_ref_die_offset)
9301 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9302 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9303 (dwarf2_symbol_mark_computed): Update.
9304 * dwarf2/attribute.h (struct attribute) <value_as_address,
9305 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9306 methods.
9307 (value_as_address, attr_form_is_section_offset)
9308 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9309 * dwarf2/attribute.c (attribute::value_as_address)
9310 (attribute::form_is_section_offset, attribute::form_is_constant)
9311 (attribute::form_is_ref): Now methods.
9312
9313 2020-02-08 Tom Tromey <tom@tromey.com>
9314
9315 * dwarf2read.c (struct attribute, DW_STRING)
9316 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9317 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9318 (attr_form_is_block, attr_form_is_section_offset)
9319 (attr_form_is_constant, attr_form_is_ref): Move.
9320 * dwarf2/attribute.h: New file.
9321 * dwarf2/attribute.c: New file, from dwarf2read.c.
9322 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9323
9324 2020-02-08 Tom Tromey <tom@tromey.com>
9325
9326 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9327 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9328 Move.
9329 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9330 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9331 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9332 abbrev.c.
9333 * dwarf2/abbrev.h: New file.
9334 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9335 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9336
9337 2020-02-08 Tom Tromey <tom@tromey.com>
9338
9339 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9340 (dwarf2_section_size, dwarf2_get_section_info)
9341 (create_signatured_type_table_from_debug_names)
9342 (create_addrmap_from_aranges, read_debug_names_from_section)
9343 (get_gdb_index_contents_from_section, read_comp_unit_head)
9344 (error_check_comp_unit_head, read_abbrev_offset)
9345 (create_debug_type_hash_table, init_cu_die_reader)
9346 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9347 (read_comp_units_from_section, create_cus_hash_table)
9348 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9349 (create_dwp_v2_section, dwarf2_rnglists_process)
9350 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9351 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9352 (read_indirect_string_from_dwz, read_addr_index_1)
9353 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9354 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9355 (fill_in_loclist_baton): Update.
9356 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9357 get_containing_section, get_bfd_owner, get_bfd_section,
9358 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9359 (dwarf2_read_section, get_section_name, get_section_file_name)
9360 (get_containing_section, get_section_bfd_owner)
9361 (get_section_bfd_section, get_section_name, get_section_file_name)
9362 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9363 declare.
9364 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9365 (dwarf2_section_info::get_bfd_owner)
9366 (dwarf2_section_info::get_bfd_section)
9367 (dwarf2_section_info::get_name)
9368 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9369 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9370 (dwarf2_section_info::read): Now methods.
9371 * dwarf-index-write.c (class debug_names): Update.
9372
9373 2020-02-08 Tom Tromey <tom@tromey.com>
9374
9375 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9376 Move to dwarf2/section.h.
9377 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9378 (get_section_bfd_section, get_section_name)
9379 (get_section_file_name, get_section_id, get_section_flags)
9380 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9381 dwarf2/section.c.
9382 * dwarf2/section.h: New file.
9383 * dwarf2/section.c: New file, from dwarf2read.c.
9384 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9385
9386 2020-02-08 Tom Tromey <tom@tromey.com>
9387
9388 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9389 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9390 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9391 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9392 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9393 * dwarf2/leb.h: New file, from dwarf2read.c.
9394 * dwarf2/leb.c: New file, from dwarf2read.c.
9395 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9396 Remove.
9397 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9398 (COMMON_SFILES): Add dwarf2/leb.c.
9399
9400 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9401
9402 GDB 9.1 released.
9403
9404 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9405
9406 PR gdb/25190:
9407 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9408 * gdb/remote.c (remote_console_output): Update.
9409 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9410 (ui_file_puts): ...this.
9411 * gdb/ui-file.h (ui_file_puts): Add declaration.
9412 * gdb/utils.c (emit_style_escape): Update.
9413 (flush_wrap_buffer): Update.
9414 (fputs_maybe_filtered): Update.
9415 (fputs_unfiltered): Add function.
9416
9417 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9418
9419 * gdb/event-loop.c (gdb_wait_for_event): Update.
9420 * gdb/printcmd.c (printf_command): Update.
9421 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9422 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9423 (gdb_os_flush_stderr): Update.
9424 * gdb/remote.c (remote_console_output): Update.
9425 * gdb/ui-file.c (gdb_flush): Rename to...
9426 (ui_file_flush): ...this.
9427 (stderr_file::write): Update.
9428 (stderr_file::puts): Update.
9429 * gdb/ui-file.h (gdb_flush): Rename to...
9430 (ui_file_flush): ...this.
9431 * gdb/utils.c (gdb_flush): Add function.
9432 * gdb/utils.h (gdb_flush): Add declaration.
9433
9434 2020-02-07 Tom Tromey <tromey@adacore.com>
9435
9436 PR breakpoints/24915:
9437 * source.c (find_and_open_source): Do not check basenames_may_differ.
9438
9439 2020-02-07 Tom Tromey <tom@tromey.com>
9440
9441 * README: Update gdbserver documentation.
9442 * gdbserver: Move to top level.
9443 * configure.tgt (build_gdbserver): Remove.
9444 * configure.ac: Remove --enable-gdbserver.
9445 * configure: Rebuild.
9446 * Makefile.in (distclean): Don't mention gdbserver.
9447
9448 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9449
9450 * source-cache.c (source_cache::ensure): Surround
9451 get_plain_source_lines with a try/catch.
9452 (source_cache::get_line_charpos): Get rid of try/catch
9453 and only check for the return value of "ensure".
9454 * tui/tui-source.c (tui_source_window::set_contents):
9455 Simplify "nlines" calculation.
9456
9457 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9458
9459 * MAINTAINERS (Write After Approval): Add myself.
9460
9461 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9462
9463 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9464 function call.
9465
9466 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9467
9468 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9469
9470 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9471
9472 * nat/riscv-linux-tdesc.h: New file.
9473 * nat/riscv-linux-tdesc.c: New file, taking code from...
9474 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9475 ... here.
9476 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9477 NATDEPFILES.
9478
9479 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9480
9481 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9482 we don't set the fake simulator ptid to the null_ptid.
9483
9484 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9485
9486 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9487 * gdbthread.h (class thread_info) <resumed>: Likewise.
9488 * infrun.c (resume_1): Likewise.
9489 (proceed): Likewise.
9490 (infrun_thread_stop_requested): Likewise.
9491 (stop_all_threads): Likewise.
9492 (handle_inferior_event): Likewise.
9493 (restart_threads): Likewise.
9494 (finish_step_over): Likewise.
9495 (keep_going_stepped_thread): Likewise.
9496 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9497 (linux_handle_extended_wait): Likewise.
9498 * record-btrace.c (get_thread_current_frame_id): Likewise.
9499 * record-full.c (record_full_wait_1): Likewise.
9500 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9501 * target.c (target_resume): Likewise.
9502 * thread.c (set_running_thread): Likewise.
9503
9504 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9505
9506 * f-valprint.c (f77_print_array_1): Changed datatype of index
9507 variable to LONGEST from int to enable it to contain bound
9508 values correctly.
9509
9510 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9511
9512 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9513 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9514 offsets according to FLEN determined.
9515 (riscv_linux_nat_target::read_description): Determine FLEN
9516 dynamically.
9517 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9518 according to FLEN determined.
9519 (riscv_linux_nat_target::store_registers): Likewise.
9520
9521 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9522
9523 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9524 when reg->group is empty and reggroup is not.
9525
9526 2020-01-31 Tom Tromey <tromey@adacore.com>
9527
9528 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9529 Call beneath target's mourn_inferior after unpushing.
9530
9531 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9532
9533 PR tui/9765
9534 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9535 have enough lines to fill the screen, still return the lowest
9536 address we found.
9537
9538 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9539
9540 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9541 '-', '<', and '>' commands.
9542
9543 2020-01-29 Pedro Alves <palves@redhat.com>
9544 Sergio Durigan Junior <sergiodj@redhat.com>
9545
9546 * infcmd.c (construct_inferior_arguments): Assert that
9547 'argc' is greater than 0.
9548
9549 2020-01-29 Luis Machado <luis.machado@linaro.org>
9550
9551 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9552 (BRK_INSN_MASK): Define to 0xd4200000.
9553 (aarch64_program_breakpoint_here_p): New function.
9554 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9555 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9556 breakpoint.c.
9557 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9558 breakpoint.h
9559 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9560 call gdbarch_program_breakpoint_here_p.
9561 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9562 default_program_breakpoint_here_p, changed return type to bool and
9563 simplified.
9564 * breakpoint.h (program_breakpoint_here): Moved prototype to
9565 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9566 return type to bool.
9567 * gdbarch.c: Regenerate.
9568 * gdbarch.h: Regenerate.
9569 * gdbarch.sh (program_breakpoint_here_p): New method.
9570 * infrun.c (handle_signal_stop): Call
9571 gdbarch_program_breakpoint_here_p.
9572
9573 2020-01-26 Tom Tromey <tom@tromey.com>
9574
9575 * ctfread.c (struct ctf_fp_info): Reindent.
9576 (_initialize_ctfread): Remove.
9577
9578 2020-01-26 Tom Tromey <tom@tromey.com>
9579
9580 * psymtab.c (partial_map_expand_apply)
9581 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9582 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9583 (psym_print_stats, psym_expand_symtabs_for_function)
9584 (psym_map_symbol_filenames, psym_map_matching_symbols)
9585 (psym_expand_symtabs_matching)
9586 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9587 (maintenance_check_psymtabs): Use new methods.
9588 * psympriv.h (struct partial_symtab) <readin_p,
9589 get_compunit_symtab>: New methods.
9590 <readin, compunit_symtab>: Remove members.
9591 (struct standard_psymtab): New.
9592 (struct legacy_psymtab): Derive from standard_psymtab.
9593 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9594 standard_psymtab.
9595 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9596
9597 2020-01-26 Tom Tromey <tom@tromey.com>
9598
9599 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9600 read_dependencies. Add assert.
9601 * psymtab.c (partial_symtab::read_dependencies): New method.
9602 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9603 method.
9604 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9605 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9606 read_dependencies.
9607 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9608 Add assert.
9609
9610 2020-01-26 Tom Tromey <tom@tromey.com>
9611
9612 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9613 Call expand_psymtab.
9614 (xcoff_read_symtab): Call expand_psymtab.
9615 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9616 legacy_expand_psymtab.
9617 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9618 method.
9619 (struct legacy_psymtab) <expand_psymtab>: Implement.
9620 <legacy_expand_psymtab>: New member.
9621 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9622 (parse_partial_symbols): Set legacy_expand_psymtab.
9623 (psymtab_to_symtab_1): Change argument order. Call
9624 expand_psymtab.
9625 (new_psymtab): Set legacy_expand_psymtab.
9626 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9627 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9628 expand_psymtab.
9629 (dwarf2_psymtab::expand_psymtab): Rename from
9630 psymtab_to_symtab_1. Call expand_psymtab.
9631 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9632 (dbx_end_psymtab): Likewise.
9633 (dbx_psymtab_to_symtab_1): Change argument order. Call
9634 expand_psymtab.
9635 (dbx_read_symtab): Call expand_psymtab.
9636 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9637 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9638 (ctf_psymtab::read_symtab): Call expand_psymtab.
9639
9640 2020-01-26 Tom Tromey <tom@tromey.com>
9641
9642 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9643 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9644 messages.
9645 * mdebugread.c (mdebug_read_symtab): Remove prints.
9646 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9647 assert.
9648 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9649
9650 2020-01-26 Tom Tromey <tom@tromey.com>
9651
9652 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9653 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9654 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9655 legacy_symtab.
9656 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9657 * psymtab.c (psymtab_to_symtab): Call method.
9658 (dump_psymtab): Update.
9659 * psympriv.h (struct partial_symtab): Add virtual destructor.
9660 <read_symtab>: New method.
9661 (struct legacy_symtab): New.
9662 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9663 (struct pst_map) <pst>: Now a legacy_psymtab.
9664 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9665 (new_psymtab): Use legacy_psymtab.
9666 * dwarf2read.h (struct dwarf2_psymtab): New.
9667 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9668 * dwarf2read.c (dwarf2_create_include_psymtab)
9669 (dwarf2_build_include_psymtabs, create_type_unit_group)
9670 (create_partial_symtab, process_psymtab_comp_unit_reader)
9671 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9672 (set_partial_user): Use dwarf2_psymtab.
9673 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9674 (psymtab_to_symtab_1, process_full_comp_unit)
9675 (process_full_type_unit, dwarf2_ranges_read)
9676 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9677 (dwarf_decode_lines): Use dwarf2_psymtab.
9678 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9679 (add_address_entry_worker, write_one_signatured_type)
9680 (recursively_count_psymbols, recursively_write_psymbols)
9681 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9682 (write_debug_names): Likewise.
9683 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9684 <pst>: Now a legacy_psymtab.
9685 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9686 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9687 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9688 * ctfread.c (struct ctf_psymtab): New.
9689 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9690 ctf_psymtab.
9691 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9692 (create_partial_symtab): Return a ctf_psymtab.
9693 (scan_partial_symbols): Update.
9694
9695 2020-01-26 Tom Tromey <tom@tromey.com>
9696
9697 * xcoffread.c (xcoff_start_psymtab): Use new.
9698 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9699 renamed from start_psymtab_common.
9700 * psympriv.h (struct partial_symtab): Add new constructor.
9701 (start_psymtab_common): Don't declare.
9702 * mdebugread.c (parse_partial_symbols): Use new.
9703 * dwarf2read.c (create_partial_symtab): Use new.
9704 * dbxread.c (start_psymtab): Use new.
9705 * ctfread.c (create_partial_symtab): Use new.
9706
9707 2020-01-26 Tom Tromey <tom@tromey.com>
9708
9709 * xcoffread.c (xcoff_end_psymtab): Use new.
9710 * psymtab.c (start_psymtab_common): Use new.
9711 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9712 Update.
9713 * psympriv.h (struct partial_symtab): Add parameters to
9714 constructor. Don't inline.
9715 (allocate_psymtab): Don't declare.
9716 * mdebugread.c (new_psymtab): Use new.
9717 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9718 * dbxread.c (dbx_end_psymtab): Use new.
9719
9720 2020-01-26 Tom Tromey <tom@tromey.com>
9721
9722 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9723 allocate_psymtab. Update documentation.
9724 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9725 allocate_psymtab. Do not use new.
9726 (allocate_psymtab): Use new. Update.
9727
9728 2020-01-26 Tom Tromey <tom@tromey.com>
9729
9730 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9731 * psymtab.c (psym_print_stats): Update.
9732 * psympriv.h (struct partial_symtab) <readin,
9733 psymtabs_addrmap_supported, anonymous>: Now bool.
9734 * mdebugread.c (psymtab_to_symtab_1): Update.
9735 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9736 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9737 (process_full_comp_unit, process_full_type_unit): Update.
9738 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9739 * ctfread.c (psymtab_to_symtab): Update.
9740
9741 2020-01-26 Tom Tromey <tom@tromey.com>
9742
9743 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9744 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9745 * psymtab.c (psymtab_storage): Delete psymtabs.
9746 (psymtab_storage::allocate_psymtab): Use new.
9747 (psymtab_storage::discard_psymtab): Use delete.
9748 * psympriv.h (struct partial_symtab): Add constructor and
9749 initializers.
9750
9751 2020-01-26 Tom Tromey <tom@tromey.com>
9752
9753 * machoread.c: Do not include psympriv.h.
9754
9755 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9756
9757 * NEWS: Mention the new option and the set/show commands.
9758
9759 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9760
9761 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9762 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9763 (validate_exec_file): New variables, enums, functions.
9764 (exec_file_locate_attach, print_section_info): Style the filenames.
9765 (_initialize_exec): Install show_exec_file_mismatch_command and
9766 set_exec_file_mismatch_command.
9767 * gdbcore.h (validate_exec_file): Declare.
9768 * infcmd.c (attach_command): Call validate_exec_file.
9769 * remote.c ( remote_target::remote_add_inferior): Likewise.
9770
9771 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9772
9773 * frame.c (find_frame_sal): Move call to get_next_frame into more
9774 inner scope.
9775 * inline-frame.c (inilne_state) <inline_state>: Update argument
9776 types.
9777 (inilne_state) <skipped_symbol>: Rename to...
9778 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9779 (skip_inline_frames): Build vector of skipped symbols and use this
9780 to reate the inline_state.
9781 (inline_skipped_symbol): Add a comment and some assertions, fetch
9782 skipped symbol from the list.
9783
9784 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9785
9786 * buildsym.c (lte_is_less_than): Delete.
9787 (buildsym_compunit::end_symtab_with_blockvector): Create local
9788 lambda function to sort line table entries, and use
9789 std::stable_sort instead of std::sort.
9790 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9791 markers when looking for a previous line.
9792
9793 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9794
9795 * dwarf2read.c (lnp_state_machine::record_line): Include
9796 end_sequence parameter in debug print out. Record the line if we
9797 are at an end_sequence marker even if it's not the start of a
9798 statement.
9799 * symmisc.c (maintenance_print_one_line_table): Print end of
9800 sequence markers with 'END' not '0'.
9801
9802 2020-01-24 Pedro Alves <palves@redhat.com>
9803
9804 PR gdb/25410
9805 * thread.c (scoped_restore_current_thread::restore): Use
9806 switch_to_inferior_no_thread.
9807 * exec.c: Include "progspace-and-thread.h".
9808 (add_target_sections, remove_target_sections):
9809 scoped_restore_current_pspace_and_thread instead of
9810 scoped_restore_current_thread.
9811 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9812 and aspace to the inferior before calling clone_program_space.
9813 Remove stale comment.
9814
9815 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9816
9817 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9818 (arm_netbsd_nat_target::fetch_registers): ...this.
9819 (arm_nbsd_nat_target::store_registers): Rename to...
9820 (arm_netbsd_nat_target::store_registers): ...this.
9821
9822 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9823
9824 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9825 register_t.
9826
9827 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9828
9829 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9830 Update comment.
9831 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9832 Likewise.
9833 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9834 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9835 the correct replacement (iterate_over_regset_sections).
9836 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9837 Update comment.
9838
9839 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9840
9841 PR gdb/23718
9842 * gdb/python/python.c (execute_gdb_command): Call
9843 async_enable_stdin in catch block.
9844
9845 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9846
9847 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9848 SWITCH_THRU_ALL_UIS.
9849
9850 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9851
9852 PR tui/9765
9853 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9854 comment, add extra parameter, and update to store previous symbol
9855 when appropriate.
9856 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9857 add extra parameter.
9858 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9859 remove unneeded parameter, add try/catch around gdb_print_insn,
9860 rewrite to add items to asm_lines vector.
9861 (tui_find_backward_disassembly_start_address): New function.
9862 (tui_find_disassembly_address): Updated throughout.
9863 (tui_disasm_window::set_contents): Update for changes to
9864 tui_disassemble.
9865 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9866 number of lines to scroll.
9867
9868 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9869
9870 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9871 (SECT_OFF_DATA): Likewise.
9872 (SECT_OFF_RODATA): Likewise.
9873 (SECT_OFF_TEXT): Likewise.
9874 (SECT_OFF_BSS): Likewise.
9875 (struct objfile) <text_section_offset, data_section_offset>: New
9876 methods.
9877 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9878 objfile::text_section_offset.
9879 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9880 * coffread.c (coff_symtab_read): Likewise.
9881 (enter_linenos): Likewise.
9882 (process_coff_symbol): Likewise.
9883 * ctfread.c (get_objfile_text_range): Likewise.
9884 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9885 Use objfile::data_section_offset.
9886 * dwarf2-frame.c (execute_cfa_program): Use
9887 objfile::text_section_offset.
9888 (dwarf2_frame_find_fde): Likewise.
9889 * dwarf2read.c (create_addrmap_from_index): Likewise.
9890 (create_addrmap_from_aranges): Likewise.
9891 (dw2_find_pc_sect_compunit_symtab): Likewise.
9892 (process_psymtab_comp_unit_reader): Likewise.
9893 (add_partial_symbol): Likewise.
9894 (add_partial_subprogram): Likewise.
9895 (process_full_comp_unit): Likewise.
9896 (read_file_scope): Likewise.
9897 (read_func_scope): Likewise.
9898 (read_lexical_block_scope): Likewise.
9899 (read_call_site_scope): Likewise.
9900 (dwarf2_rnglists_process): Likewise.
9901 (dwarf2_ranges_process): Likewise.
9902 (dwarf2_ranges_read): Likewise.
9903 (dwarf_decode_lines_1): Likewise.
9904 (new_symbol): Likewise.
9905 (dwarf2_fetch_die_loc_sect_off): Likewise.
9906 (dwarf2_per_cu_text_offset): Likewise.
9907 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9908 * hppa-tdep.c (read_unwind_info): Likewise.
9909 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9910 * psympriv.h (struct partial_symtab): Likewise.
9911 * psymtab.c (find_pc_sect_psymtab): Likewise.
9912 * solib-svr4.c (enable_break): Likewise.
9913 * stap-probe.c (relocate_address): Use
9914 objfile::data_section_offset.
9915 * xcoffread.c (enter_line_range): Use
9916 objfile::text_section_offset.
9917 (read_xcoff_symtab): Likewise.
9918
9919 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9920
9921 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9922 declaration to narrower scopes.
9923
9924 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9925
9926 * darwin-nat.h (struct darwin_exception_msg, enum
9927 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9928 Move up.
9929 (class darwin_nat_target) <wait_1, check_new_threads,
9930 decode_exception_message, decode_message, stop_inferior,
9931 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9932 * darwin-nat.c (darwin_check_new_threads): Rename to...
9933 (darwin_nat_target::check_new_threads): ... this.
9934 (darwin_suspend_inferior_it): Remove.
9935 (darwin_decode_exception_message): Rename to...
9936 (darwin_nat_target::decode_exception_message): ... this.
9937 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9938 (darwin_decode_message): Rename to...
9939 (darwin_nat_target::decode_message): ... this.
9940 (cancel_breakpoint): Rename to...
9941 (darwin_nat_target::cancel_breakpoint): ... this.
9942 (darwin_wait): Rename to...
9943 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9944 instead of iterate_over_inferiors.
9945 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9946 (darwin_stop_inferior): Rename to...
9947 (darwin_nat_target::stop_inferior): ... this.
9948 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9949 (darwin_init_thread_list): Rename to...
9950 (darwin_nat_target::init_thread_list): ... this.
9951 (darwin_ptrace_him): Rename to...
9952 (darwin_nat_target::ptrace_him): ... this.
9953 (darwin_nat_target::create_inferior): Pass lambda function to
9954 fork_inferior.
9955 (darwin_nat_target::detach): Call stop_inferior instead of
9956 darwin_stop_inferior.
9957 * fork-inferior.h (fork_inferior): Change init_trace_fun
9958 parameter to gdb::function_view.
9959 * fork-inferior.c (fork_inferior): Likewise.
9960
9961 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9962
9963 * i386-cygwin-tdep.c (core_process_module_section): Update.
9964 * windows-nat.c (struct lm_info_windows): Add text_offset.
9965 (windows_xfer_shared_libraries): Update.
9966 * windows-tdep.c (windows_xfer_shared_library):
9967 Add text_offset_cached argument.
9968 * windows-tdep.h (windows_xfer_shared_library): Update.
9969
9970 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9971
9972 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9973
9974 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9975
9976 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9977 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9978 replace with range-based for.
9979 (gdbsim_interrupt_inferior): Remove.
9980 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9981 with a range-based for. Inline code from
9982 gdbsim_interrupt_inferior.
9983
9984 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9985
9986 * infrun.c (proceed): Fix indentation.
9987
9988 2020-01-21 Tom Tromey <tromey@adacore.com>
9989
9990 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9991 * python/python.c (python_extension_ops): Update.
9992 (gdbpy_colorize): New function.
9993 * python/lib/gdb/__init__.py (colorize): New function.
9994 * extension.h (ext_lang_colorize): Declare.
9995 * extension.c (ext_lang_colorize): New function.
9996 * extension-priv.h (struct extension_language_ops) <colorize>: New
9997 member.
9998 * cli/cli-style.c (_initialize_cli_style): Update help text.
9999
10000 2020-01-21 Luis Machado <luis.machado@linaro.org>
10001
10002 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10003 <cond>: Change type to bool.
10004 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10005 (aarch64_displaced_step_cb): Likewise.
10006 (aarch64_displaced_step_tb): Likewise.
10007
10008 2020-01-21 Luis Machado <luis.machado@linaro.org>
10009
10010 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10011 output.
10012
10013 2020-01-21 Luis Machado <luis.machado@linaro.org>
10014
10015 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10016 <pc_adjust>: Adjust the documentation.
10017 (aarch64_displaced_step_fixup): Check if PC really moved before
10018 adjusting it.
10019
10020 2020-01-19 Tom Tromey <tom@tromey.com>
10021
10022 * disasm.c (~gdb_disassembler): New destructor.
10023 (gdb_buffered_insn_length): Call disassemble_free_target.
10024 * disasm.h (class gdb_disassembler): Declare destructor. Use
10025 DISABLE_COPY_AND_ASSIGN.
10026
10027 2020-01-19 Tom Tromey <tom@tromey.com>
10028
10029 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10030 (die_reader_func_ftype): Remove.
10031 (cutu_reader): New class.
10032 (dw2_get_file_names_reader): Remove "data" parameter.
10033 (dw2_get_file_names): Use cutu_reader.
10034 (create_debug_type_hash_table): Update.
10035 (read_cutu_die_from_dwo): Update comment.
10036 (lookup_dwo_unit): Add dwo_name parameter.
10037 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10038 die_reader_func_ftype and data parameters.
10039 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10040 Remove die_reader_func_ftype and data parameters.
10041 (~cutu_reader): New; from init_cutu_and_read_dies.
10042 (cutu_reader::cutu_reader): Rename from
10043 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10044 and data parameters.
10045 (init_cutu_and_read_dies_simple): Remove.
10046 (struct process_psymtab_comp_unit_data): Remove.
10047 (process_psymtab_comp_unit_reader): Remove data parameter; add
10048 want_partial_unit and pretend_language parameters.
10049 (process_psymtab_comp_unit): Use cutu_reader.
10050 (build_type_psymtabs_reader): Remove data parameter.
10051 (build_type_psymtabs_1): Use cutu_reader.
10052 (process_skeletonless_type_unit): Likewise.
10053 (load_partial_comp_unit_reader): Remove.
10054 (load_partial_comp_unit): Use cutu_reader.
10055 (load_full_comp_unit_reader): Remove.
10056 (load_full_comp_unit): Use cutu_reader.
10057 (struct create_dwo_cu_data): Remove.
10058 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10059 dwo_unit parameters.
10060 (create_cus_hash_table): Use cutu_reader.
10061 (struct dwarf2_read_addr_index_data): Remove.
10062 (dwarf2_read_addr_index_reader): Remove.
10063 (dwarf2_read_addr_index): Use cutu_reader.
10064 (read_signatured_type_reader): Remove.
10065 (read_signatured_type): Use cutu_reader.
10066
10067 2020-01-19 Tom Tromey <tom@tromey.com>
10068
10069 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10070 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10071 (tui_wrefresh): Declare.
10072 * tui/tui-wingeneral.c (suppress_output): New global.
10073 (tui_suppress_output, ~tui_suppress_output): New constructor and
10074 destructor.
10075 (tui_wrefresh): New function.
10076 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10077 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10078 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10079 method.
10080 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10081 tui_wrefresh.
10082 (tui_data_window::no_refresh): New method.
10083 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10084 (tui_reg_command): Use tui_suppress_output
10085 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10086 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10087 method.
10088 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10089
10090 2020-01-19 Tom Tromey <tom@tromey.com>
10091
10092 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10093 Handle case where symtab is null.
10094
10095 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10096
10097 * linux-fork.c (one_fork_p): Simplify.
10098
10099 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10100
10101 * top.c (struct qt_args): Remove.
10102 (kill_or_detach): Change return type to void, replace `void *`
10103 parameter with a proper one.
10104 (print_inferior_quit_action): Likewise.
10105 (quit_confirm): Use range-based for loop to iterate over inferiors.
10106 (quit_force): Likewise.
10107
10108 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10109
10110 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10111 `void *` parameter with proper parameters.
10112 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10113 (print_one_inferior): Change return type to void, replace `void *`
10114 parameter with proper parameters.
10115 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10116 inferiors.
10117 (get_other_inferior): Remove.
10118 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10119 inferiors.
10120
10121 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10122
10123 * mi/mi-interp.c (report_initial_inferior): Remove.
10124 (mi_interp::init): Use range-based for to iterate over inferiors.
10125
10126 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10127
10128 * python/py-inferior.c (build_inferior_list): Remove.
10129 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10130
10131 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10132
10133 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10134 (btrace_stitch_trace): Likewise.
10135 * charset.c (intermediate_encoding): Likewise (vaild).
10136 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10137 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10138 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10139
10140 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10141
10142 * windows-tdep.c (windows_get_tlb_type):
10143 Add rtl_user_process_parameters type.
10144
10145 2020-01-16 Pedro Alves <palves@redhat.com>
10146 Norbert Lange <nolange79@gmail.com>
10147
10148 PR build/24805
10149 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10150 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10151 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10152 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10153 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10154 (ps_plog): Redeclare exported functions with default visibility.
10155
10156 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10157
10158 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10159 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10160
10161 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10162
10163 * infcmd.c (post_create_inferior): Use get_thread_regcache
10164 instead of get_current_regcache.
10165
10166 2020-01-14 Tom Tromey <tom@tromey.com>
10167
10168 PR symtab/12535:
10169 * python/python.c (gdbpy_decode_line): Treat empty string the same
10170 as no argument.
10171
10172 2020-01-14 Tom Tromey <tom@tromey.com>
10173
10174 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10175
10176 2020-01-14 Tom Tromey <tom@tromey.com>
10177
10178 * nat/linux-btrace.c: Don't include <config.h>.
10179 * nat/linux-ptrace.c: Don't include <config.h>.
10180 * nat/x86-linux-dregs.c: Don't include <config.h>.
10181
10182 2020-01-14 Tom Tromey <tom@tromey.com>
10183
10184 * configure: Rebuild.
10185 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10186
10187 2020-01-14 Tom Tromey <tom@tromey.com>
10188
10189 * nat/x86-linux-dregs.c: Include configh.h.
10190 * nat/linux-ptrace.c: Include configh.h.
10191 * nat/linux-btrace.c: Include configh.h.
10192 * defs.h: Include config.h, bfd.h.
10193 * configure.ac: Don't source common.host.
10194 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10195 * configure: Rebuild.
10196 * acinclude.m4: Update path.
10197 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10198 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10199 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10200 (CLIBS): Add LIBSUPPORT.
10201 (CDEPS): Likewise.
10202 (COMMON_SFILES): Remove gdbsupport files.
10203 (HFILES_NO_SRCDIR): Likewise.
10204 (stamp-version): Update path to create-version.sh.
10205 (ALLDEPFILES): Remove gdbsupport files.
10206
10207 2020-01-14 Tom Tromey <tom@tromey.com>
10208
10209 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10210 USE_WIN32API when needed.
10211 * configure.ac (USE_WIN32API): Don't define.
10212 (WIN32LIBS): Use WIN32APILIBS.
10213 * configure: Rebuild.
10214
10215 2020-01-14 Tom Tromey <tom@tromey.com>
10216
10217 * configure: Rebuild.
10218 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10219
10220 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10221
10222 * skip.c (skip_function_command): Make skip w/o arguments use the
10223 name of the inlined function if pc is inside any inlined function.
10224
10225 2020-01-14 Luis Machado <luis.machado@linaro.org>
10226
10227 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10228 * infrun.c (resume_1): Likewise.
10229 (handle_inferior_event): Remove stale comment.
10230 * linux-nat.c (linux_nat_target::resume): Update comments.
10231 (save_stop_reason): Likewise.
10232 (linux_nat_filter_event): Likewise.
10233 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10234
10235 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10236
10237 * elfread.c (record_minimal_symbol): Set section index to 0 for
10238 non-allocatable sections.
10239
10240
10241 2020-01-13 Ali Tamur <tamur@google.com>
10242
10243 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10244 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10245 to gdb::optional. Update comments.
10246 (dwo_file): Update comments.
10247 (read_attribute): Update API to take an additional out parameter,
10248 need_reprocess. This is used to mark attributes that need other
10249 attributes (e.g. str_offsets_base) for correct computation which may not
10250 have been read yet.
10251 (read_attribute_reprocess): New function declaration.
10252 (read_addr_index): Likewise.
10253 (read_dwo_str_index): Likewise.
10254 (read_stub_str_index): Likewise.
10255 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10256 (lookup_addr_base): New function definition.
10257 (lookup_ranges_base): Likewise.
10258 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10259 lookup_ranges_base.
10260 (init_cutu_and_read_dies): Update comments.
10261 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10262 unit. This is used to inherit parent's str_offsets_base and addr_base.
10263 Update comments.
10264 (init_cutu_and_read_dies_simple): Reflect API changes.
10265 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10266 (create_cus_hash_table): Change API to take parent compile unit.
10267 Reflect API changes.
10268 (open_and_init_dwo_file): Reflect API changes.
10269 (dwarf2_get_pc_bounds): Update comments.
10270 (dwarf2_record_block_ranges): Likewise.
10271 (read_full_die_1): Change implementation to reprocess attributes that
10272 need str_offsets_base and addr_base.
10273 (partial_die_info::read): Likewise.
10274 (read_attribute_reprocess): New function definition.
10275 (read_attribute_value): Change API to take an additional out parameter,
10276 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10277 when a non-dwo compile unit has index based attributes.
10278 (read_attribute): Reflect API changes.
10279 (read_addr_index_1): Reflect API changes. Update comments.
10280 (dwarf2_read_addr_index_data): Reflect API changes.
10281 (dwarf2_read_addr_index): Likewise.
10282 (read_str_index): Change API and implementation. This becomes a helper
10283 to be used by the new string index related methods. Update error
10284 message and comments.
10285 (read_dwo_str_index): New function definition.
10286 (read_stub_str_index): Likewise.
10287 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10288 * symfile.h (dwarf2_debug_sections): Likewise.
10289 * xcoffread.c (dwarf2_debug_sections): Likewise.
10290
10291 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10292
10293 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10294 core_reg_sect type to gdb_byte *.
10295 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10296 * cris-tdep.c (fetch_core_registers): Likewise.
10297 * corelow.c (core_target::get_core_register_section): Change
10298 type of `contents` to gdb::byte_vector.
10299
10300 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10301
10302 * tui/tui-wingeneral.c (box_win): Position the title in the center
10303 of the border.
10304
10305 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10306
10307 * corelow.c (core_target::get_core_register_section): Use
10308 std::vector instead of alloca.
10309
10310 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10311
10312 * warning.m4: Add -Wmissing-declarations to build_warnings.
10313 * configure: Re-generate.
10314
10315 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10316
10317 * python/python.c (init__gdb_module): Add declaration.
10318
10319 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10320
10321 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10322 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10323 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10324 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10325 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10326 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10327 * ada-exp.y (_initialize_ada_exp): Add declaration.
10328 * ada-lang.c (_initialize_ada_language): Add declaration.
10329 * ada-tasks.c (_initialize_tasks): Add declaration.
10330 * agent.c (_initialize_agent): Add declaration.
10331 * aix-thread.c (_initialize_aix_thread): Add declaration.
10332 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10333 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10334 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10335 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10336 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10337 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10338 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10339 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10340 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10341 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10342 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10343 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10344 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10345 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10346 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10347 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10348 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10349 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10350 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10351 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10352 * annotate.c (_initialize_annotate): Add declaration.
10353 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10354 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10355 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10356 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10357 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10358 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10359 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10360 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10361 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10362 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10363 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10364 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10365 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10366 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10367 * auto-load.c (_initialize_auto_load): Add declaration.
10368 * auxv.c (_initialize_auxv): Add declaration.
10369 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10370 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10371 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10372 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10373 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10374 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10375 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10376 * breakpoint.c (_initialize_breakpoint): Add declaration.
10377 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10378 * btrace.c (_initialize_btrace): Add declaration.
10379 * charset.c (_initialize_charset): Add declaration.
10380 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10381 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10382 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10383 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10384 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10385 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10386 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10387 * coffread.c (_initialize_coffread): Add declaration.
10388 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10389 * compile/compile.c (_initialize_compile): Add declaration.
10390 * complaints.c (_initialize_complaints): Add declaration.
10391 * completer.c (_initialize_completer): Add declaration.
10392 * copying.c (_initialize_copying): Add declaration.
10393 * corefile.c (_initialize_core): Add declaration.
10394 * corelow.c (_initialize_corelow): Add declaration.
10395 * cp-abi.c (_initialize_cp_abi): Add declaration.
10396 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10397 * cp-support.c (_initialize_cp_support): Add declaration.
10398 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10399 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10400 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10401 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10402 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10403 * ctfread.c (_initialize_ctfread): Add declaration.
10404 * d-lang.c (_initialize_d_language): Add declaration.
10405 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10406 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10407 * dbxread.c (_initialize_dbxread): Add declaration.
10408 * dcache.c (_initialize_dcache): Add declaration.
10409 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10410 * disasm.c (_initialize_disasm): Add declaration.
10411 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10412 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10413 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10414 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10415 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10416 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10417 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10418 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10419 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10420 * elfread.c (_initialize_elfread): Add declaration.
10421 * exec.c (_initialize_exec): Add declaration.
10422 * extension.c (_initialize_extension): Add declaration.
10423 * f-lang.c (_initialize_f_language): Add declaration.
10424 * f-valprint.c (_initialize_f_valprint): Add declaration.
10425 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10426 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10427 * filesystem.c (_initialize_filesystem): Add declaration.
10428 * findcmd.c (_initialize_mem_search): Add declaration.
10429 * findvar.c (_initialize_findvar): Add declaration.
10430 * fork-child.c (_initialize_fork_child): Add declaration.
10431 * frame-base.c (_initialize_frame_base): Add declaration.
10432 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10433 * frame.c (_initialize_frame): Add declaration.
10434 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10435 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10436 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10437 * gcore.c (_initialize_gcore): Add declaration.
10438 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10439 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10440 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10441 * gdbarch.c (_initialize_gdbarch): Add declaration.
10442 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10443 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10444 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10445 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10446 * go-lang.c (_initialize_go_language): Add declaration.
10447 * go32-nat.c (_initialize_go32_nat): Add declaration.
10448 * guile/guile.c (_initialize_guile): Add declaration.
10449 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10450 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10451 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10452 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10453 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10454 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10455 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10456 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10457 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10458 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10459 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10460 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10461 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10462 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10463 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10464 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10465 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10466 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10467 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10468 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10469 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10470 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10471 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10472 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10473 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10474 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10475 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10476 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10477 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10478 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10479 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10480 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10481 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10482 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10483 * infcall.c (_initialize_infcall): Add declaration.
10484 * infcmd.c (_initialize_infcmd): Add declaration.
10485 * inflow.c (_initialize_inflow): Add declaration.
10486 * infrun.c (_initialize_infrun): Add declaration.
10487 * interps.c (_initialize_interpreter): Add declaration.
10488 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10489 * jit.c (_initialize_jit): Add declaration.
10490 * language.c (_initialize_language): Add declaration.
10491 * linux-fork.c (_initialize_linux_fork): Add declaration.
10492 * linux-nat.c (_initialize_linux_nat): Add declaration.
10493 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10494 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10495 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10496 * m2-lang.c (_initialize_m2_language): Add declaration.
10497 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10498 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10499 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10500 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10501 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10502 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10503 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10504 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10505 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10506 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10507 * machoread.c (_initialize_machoread): Add declaration.
10508 * macrocmd.c (_initialize_macrocmd): Add declaration.
10509 * macroscope.c (_initialize_macroscope): Add declaration.
10510 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10511 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10512 * maint.c (_initialize_maint_cmds): Add declaration.
10513 * mdebugread.c (_initialize_mdebugread): Add declaration.
10514 * memattr.c (_initialize_mem): Add declaration.
10515 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10516 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10517 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10518 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10519 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10520 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10521 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10522 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10523 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10524 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10525 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10526 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10527 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10528 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10529 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10530 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10531 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10532 * mipsread.c (_initialize_mipsread): Add declaration.
10533 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10534 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10535 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10536 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10537 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10538 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10539 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10540 * nto-procfs.c (_initialize_procfs): Add declaration.
10541 * objc-lang.c (_initialize_objc_language): Add declaration.
10542 * observable.c (_initialize_observer): Add declaration.
10543 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10544 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10545 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10546 * osabi.c (_initialize_gdb_osabi): Add declaration.
10547 * osdata.c (_initialize_osdata): Add declaration.
10548 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10549 * parse.c (_initialize_parse): Add declaration.
10550 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10551 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10552 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10553 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10554 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10555 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10556 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10557 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10558 * printcmd.c (_initialize_printcmd): Add declaration.
10559 * probe.c (_initialize_probe): Add declaration.
10560 * proc-api.c (_initialize_proc_api): Add declaration.
10561 * proc-events.c (_initialize_proc_events): Add declaration.
10562 * proc-service.c (_initialize_proc_service): Add declaration.
10563 * procfs.c (_initialize_procfs): Add declaration.
10564 * producer.c (_initialize_producer): Add declaration.
10565 * psymtab.c (_initialize_psymtab): Add declaration.
10566 * python/python.c (_initialize_python): Add declaration.
10567 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10568 * record-btrace.c (_initialize_record_btrace): Add declaration.
10569 * record-full.c (_initialize_record_full): Add declaration.
10570 * record.c (_initialize_record): Add declaration.
10571 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10572 * regcache.c (_initialize_regcache): Add declaration.
10573 * reggroups.c (_initialize_reggroup): Add declaration.
10574 * remote-notif.c (_initialize_notif): Add declaration.
10575 * remote-sim.c (_initialize_remote_sim): Add declaration.
10576 * remote.c (_initialize_remote): Add declaration.
10577 * reverse.c (_initialize_reverse): Add declaration.
10578 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10579 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10580 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10581 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10582 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10583 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10584 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10585 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10586 Add declaration.
10587 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10588 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10589 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10590 * rust-exp.y (_initialize_rust_exp): Add declaration.
10591 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10592 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10593 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10594 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10595 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10596 * score-tdep.c (_initialize_score_tdep): Add declaration.
10597 * ser-go32.c (_initialize_ser_dos): Add declaration.
10598 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10599 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10600 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10601 * ser-uds.c (_initialize_ser_socket): Add declaration.
10602 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10603 * serial.c (_initialize_serial): Add declaration.
10604 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10605 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10606 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10607 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10608 * skip.c (_initialize_step_skip): Add declaration.
10609 * sol-thread.c (_initialize_sol_thread): Add declaration.
10610 * solib-aix.c (_initialize_solib_aix): Add declaration.
10611 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10612 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10613 * solib-frv.c (_initialize_frv_solib): Add declaration.
10614 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10615 * solib-target.c (_initialize_solib_target): Add declaration.
10616 * solib.c (_initialize_solib): Add declaration.
10617 * source-cache.c (_initialize_source_cache): Add declaration.
10618 * source.c (_initialize_source): Add declaration.
10619 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10620 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10621 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10622 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10623 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10624 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10625 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10626 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10627 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10628 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10629 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10630 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10631 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10632 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10633 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10634 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10635 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10636 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10637 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10638 * stabsread.c (_initialize_stabsread): Add declaration.
10639 * stack.c (_initialize_stack): Add declaration.
10640 * stap-probe.c (_initialize_stap_probe): Add declaration.
10641 * std-regs.c (_initialize_frame_reg): Add declaration.
10642 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10643 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10644 * symfile.c (_initialize_symfile): Add declaration.
10645 * symmisc.c (_initialize_symmisc): Add declaration.
10646 * symtab.c (_initialize_symtab): Add declaration.
10647 * target.c (_initialize_target): Add declaration.
10648 * target-connection.c (_initialize_target_connection): Add
10649 declaration.
10650 * target-dcache.c (_initialize_target_dcache): Add declaration.
10651 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10652 * thread.c (_initialize_thread): Add declaration.
10653 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10654 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10655 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10656 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10657 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10658 * tracectf.c (_initialize_ctf): Add declaration.
10659 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10660 * tracefile.c (_initialize_tracefile): Add declaration.
10661 * tracepoint.c (_initialize_tracepoint): Add declaration.
10662 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10663 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10664 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10665 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10666 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10667 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10668 * tui/tui.c (_initialize_tui): Add declaration.
10669 * typeprint.c (_initialize_typeprint): Add declaration.
10670 * ui-style.c (_initialize_ui_style): Add declaration.
10671 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10672 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10673 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10674 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10675 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10676 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10677 * unittests/filtered_iterator-selftests.c
10678 (_initialize_filtered_iterator_selftests): Add declaration.
10679 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10680 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10681 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10682 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10683 * unittests/main-thread-selftests.c
10684 (_initialize_main_thread_selftests): Add declaration.
10685 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10686 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10687 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10688 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10689 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10690 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10691 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10692 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10693 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10694 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10695 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10696 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10697 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10698 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10699 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10700 declaration.
10701 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10702 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10703 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10704 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10705 * user-regs.c (_initialize_user_regs): Add declaration.
10706 * utils.c (_initialize_utils): Add declaration.
10707 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10708 * valops.c (_initialize_valops): Add declaration.
10709 * valprint.c (_initialize_valprint): Add declaration.
10710 * value.c (_initialize_values): Add declaration.
10711 * varobj.c (_initialize_varobj): Add declaration.
10712 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10713 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10714 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10715 * windows-nat.c (_initialize_windows_nat): Add declaration.
10716 (_initialize_check_for_gdb_ini): Add declaration.
10717 (_initialize_loadable): Add declaration.
10718 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10719 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10720 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10721 * xcoffread.c (_initialize_xcoffread): Add declaration.
10722 * xml-support.c (_initialize_xml_support): Add declaration.
10723 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10724 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10725 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10726 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10727
10728 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10729
10730 * regformats/regdat.sh: Generate declaration for init function.
10731
10732 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10733
10734 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10735 up.
10736 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10737 close_one_inferior>: New methods.
10738 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10739 pass down target to find_inferior_pid.
10740 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10741 Pass down target to find_inferior_ptid.
10742 (gdbsim_target::create_inferior): Pass down target to
10743 add_thread_silent.
10744 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10745 target down to find_inferior_ptid and switch_to_thread.
10746 (gdbsim_target::close): Update to call close_one_inferior.
10747 (struct resume_data): Remove.
10748 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10749 directly, rather than through a void pointer.
10750 (gdbsim_target::resume): Update to call resume_one_inferior.
10751
10752 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10753
10754 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10755
10756 2020-01-12 Pedro Alves <palves@redhat.com>
10757
10758 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10759 directly for the current inferior instead of
10760 discard_all_inferiors.
10761 (discard_all_inferiors): Delete.
10762
10763 2020-01-11 Tom Tromey <tom@tromey.com>
10764
10765 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10766 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10767 deprecated_safe_get_selected_frame.
10768
10769 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10770
10771 * inferior.c (print_inferior): Switch inferior before printing it.
10772
10773 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10774 Pedro Alves <palves@redhat.com>
10775
10776 * progspace-and-thread.c (switch_to_program_space_and_thread):
10777 Assert there's an inferior for PSPACE. Use
10778 switch_to_inferior_no_thread to switch the inferior too.
10779 * progspace.c (program_space::~program_space): Call
10780 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10781 (program_space::free_all_objfiles): Don't call clear_symtab_users
10782 here.
10783 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10784
10785 2020-01-10 Pedro Alves <palves@redhat.com>
10786
10787 * NEWS: Mention multi-target debugging, "info connections", and
10788 "add-inferior -no-connection".
10789
10790 2020-01-10 Pedro Alves <palves@redhat.com>
10791
10792 * infrun.c: Include "target-connection.h".
10793 (check_multi_target_resumption): New.
10794 (proceed): Call it.
10795 * target-connection.c (make_target_connection_string): Make
10796 extern.
10797 * target-connection.h (make_target_connection_string): Declare.
10798
10799 2020-01-10 Pedro Alves <palves@redhat.com>
10800
10801 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10802 * inferior.c (uiout_field_connection): New function.
10803 (print_inferior): Add new "connection-id" column.
10804 (add_inferior_command): Show connection number/string of added
10805 inferior.
10806 * process-stratum-target.h
10807 (process_stratum_target::connection_string): New virtual method.
10808 (process_stratum_target::connection_number): New field.
10809 * remote.c (remote_target::connection_string): New override.
10810 * target-connection.c: New file.
10811 * target-connection.h: New file.
10812 * target.c (decref_target): Remove process_stratum targets from
10813 the connection list.
10814 (target_stack::push): Add process_stratum targets to the
10815 connection list.
10816
10817 2020-01-10 Pedro Alves <palves@redhat.com>
10818
10819 Revert:
10820 2016-04-12 Pedro Alves <palves@redhat.com>
10821 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10822 Remove references to name.
10823 * serial.h (struct serial) <name>: Delete.
10824
10825 2020-01-10 Pedro Alves <palves@redhat.com>
10826
10827 * gdbarch-selftests.c (register_to_value_test): Remove "target
10828 already pushed" check.
10829
10830 2020-01-10 Pedro Alves <palves@redhat.com>
10831 John Baldwin <jhb@FreeBSD.org>
10832
10833 * aarch64-linux-nat.c
10834 (aarch64_linux_nat_target::thread_architecture): Adjust.
10835 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10836 (task_command_1): Likewise.
10837 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10838 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10839 (aix_thread_target::store_registers)
10840 (aix_thread_target::thread_alive): Adjust.
10841 * amd64-fbsd-tdep.c: Include "inferior.h".
10842 (amd64fbsd_get_thread_local_address): Pass down target.
10843 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10844 thread's gdbarch instead of target_gdbarch.
10845 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10846 get_last_target_status.
10847 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10848 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10849 inferiors.
10850 (update_inserted_breakpoint_locations): Skip if inferiors with no
10851 execution.
10852 (update_global_location_list): When handling moribund locations,
10853 find representative inferior for location's pspace, and use thread
10854 count of its process_stratum target.
10855 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10856 * bsd-uthread.c (bsd_uthread_target::wait): Use
10857 as_process_stratum_target and adjust thread_change_ptid and
10858 add_thread calls.
10859 (bsd_uthread_target::update_thread_list): Use
10860 as_process_stratum_target and adjust find_thread_ptid,
10861 thread_change_ptid and add_thread calls.
10862 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10863 find_thread_ptid call.
10864 * corelow.c (add_to_thread_list): Adjust add_thread call.
10865 (core_target_open): Adjust add_thread_silent and thread_count
10866 calls.
10867 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10868 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10869 * event-top.c (async_disconnect): Pop targets from all inferiors.
10870 * exec.c (add_target_sections): Push exec target on all inferiors
10871 sharing the program space.
10872 (remove_target_sections): Remove the exec target from all
10873 inferiors sharing the program space.
10874 (exec_on_vfork): New.
10875 * exec.h (exec_on_vfork): Declare.
10876 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10877 Pass it down.
10878 (fbsd_nat_target::update_thread_list): Adjust.
10879 (fbsd_nat_target::resume): Adjust.
10880 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10881 down.
10882 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10883 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10884 get_thread_arch_regcache call.
10885 * fork-child.c (gdb_startup_inferior): Pass target down to
10886 startup_inferior and set_executing.
10887 * gdbthread.h (struct process_stratum_target): Forward declare.
10888 (add_thread, add_thread_silent, add_thread_with_info)
10889 (in_thread_list): Add process_stratum_target parameter.
10890 (find_thread_ptid(inferior*, ptid_t)): New overload.
10891 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10892 parameter.
10893 (all_threads()): Delete overload.
10894 (all_threads, all_non_exited_threads): Add process_stratum_target
10895 parameter.
10896 (all_threads_safe): Use brace initialization.
10897 (thread_count): Add process_stratum_target parameter.
10898 (set_resumed, set_running, set_stop_requested, set_executing)
10899 (threads_are_executing, finish_thread_state): Add
10900 process_stratum_target parameter.
10901 (switch_to_thread): Use is_current_thread.
10902 * i386-fbsd-tdep.c: Include "inferior.h".
10903 (i386fbsd_get_thread_local_address): Pass down target.
10904 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10905 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10906 have_inferiors check.
10907 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10908 (inf_ptrace_target::attach): Adjust.
10909 * infcall.c (run_inferior_call): Adjust.
10910 * infcmd.c (run_command_1): Pass target to
10911 scoped_finish_thread_state.
10912 (proceed_thread_callback): Skip inferiors with no execution.
10913 (continue_command): Rename 'all_threads' local to avoid hiding
10914 'all_threads' function. Adjust get_last_target_status call.
10915 (prepare_one_step): Adjust set_running call.
10916 (signal_command): Use user_visible_resume_target. Compare thread
10917 pointers instead of inferior_ptid.
10918 (info_program_command): Adjust to pass down target.
10919 (attach_command): Mark target's 'thread_executing' flag.
10920 (stop_current_target_threads_ns): New, factored out from ...
10921 (interrupt_target_1): ... this. Switch inferior before making
10922 target calls.
10923 * inferior-iter.h
10924 (struct all_inferiors_iterator, struct all_inferiors_range)
10925 (struct all_inferiors_safe_range)
10926 (struct all_non_exited_inferiors_range): Filter on
10927 process_stratum_target too. Remove explicit.
10928 * inferior.c (inferior::inferior): Push dummy target on target
10929 stack.
10930 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10931 Add process_stratum_target parameter, and pass it down.
10932 (have_live_inferiors): Adjust.
10933 (switch_to_inferior_and_push_target): New.
10934 (add_inferior_command, clone_inferior_command): Handle
10935 "-no-connection" parameter. Use
10936 switch_to_inferior_and_push_target.
10937 (_initialize_inferior): Mention "-no-connection" option in
10938 the help of "add-inferior" and "clone-inferior" commands.
10939 * inferior.h: Include "process-stratum-target.h".
10940 (interrupt_target_1): Use bool.
10941 (struct inferior) <push_target, unpush_target, target_is_pushed,
10942 find_target_beneath, top_target, process_target, target_at,
10943 m_stack>: New.
10944 (discard_all_inferiors): Delete.
10945 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10946 (all_inferiors, all_non_exited_inferiors): Add
10947 process_stratum_target parameter.
10948 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10949 (target_last_proc_target): New global.
10950 (follow_fork_inferior): Push target on new inferior. Pass target
10951 to add_thread_silent. Call exec_on_vfork. Handle target's
10952 reference count.
10953 (follow_fork): Adjust get_last_target_status call. Also consider
10954 target.
10955 (follow_exec): Push target on new inferior.
10956 (struct execution_control_state) <target>: New field.
10957 (user_visible_resume_target): New.
10958 (do_target_resume): Call target_async.
10959 (resume_1): Set target's threads_executing flag. Consider resume
10960 target.
10961 (commit_resume_all_targets): New.
10962 (proceed): Also consider resume target. Skip threads of inferiors
10963 with no execution. Commit resumtion in all targets.
10964 (start_remote): Pass current inferior to wait_for_inferior.
10965 (infrun_thread_stop_requested): Consider target as well. Pass
10966 thread_info pointer to clear_inline_frame_state instead of ptid.
10967 (infrun_thread_thread_exit): Consider target as well.
10968 (random_pending_event_thread): New inferior parameter. Use it.
10969 (do_target_wait): Rename to ...
10970 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10971 down.
10972 (threads_are_resumed_pending_p, do_target_wait): New.
10973 (prepare_for_detach): Adjust calls.
10974 (wait_for_inferior): New inferior parameter. Handle it. Use
10975 do_target_wait_1 instead of do_target_wait.
10976 (fetch_inferior_event): Adjust. Switch to representative
10977 inferior. Pass target down.
10978 (set_last_target_status): Add process_stratum_target parameter.
10979 Save target in global.
10980 (get_last_target_status): Add process_stratum_target parameter and
10981 handle it.
10982 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10983 (context_switch): Check inferior_ptid == null_ptid before calling
10984 inferior_thread().
10985 (get_inferior_stop_soon): Pass down target.
10986 (wait_one): Rename to ...
10987 (poll_one_curr_target): ... this.
10988 (struct wait_one_event): New.
10989 (wait_one): New.
10990 (stop_all_threads): Adjust.
10991 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10992 event's target.
10993 (switch_back_to_stepped_thread): Also consider target.
10994 (print_stop_event): Update.
10995 (normal_stop): Update. Also consider the resume target.
10996 * infrun.h (wait_for_inferior): Remove declaration.
10997 (user_visible_resume_target): New declaration.
10998 (get_last_target_status, set_last_target_status): New
10999 process_stratum_target parameter.
11000 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11001 process_stratum_target parameter, and use it.
11002 (clear_inline_frame_state (thread_info*)): New.
11003 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11004 process_stratum_target parameter.
11005 (clear_inline_frame_state (thread_info*)): Declare.
11006 * linux-fork.c (delete_checkpoint_command): Pass target down to
11007 find_thread_ptid.
11008 (checkpoint_command): Adjust.
11009 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11010 instead of just tweaking inferior_ptid.
11011 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11012 (exit_lwp): Pass target down to find_thread_ptid.
11013 (attach_proc_task_lwp_callback): Pass target down to
11014 add_thread/set_running/set_executing.
11015 (linux_nat_target::attach): Pass target down to
11016 thread_change_ptid.
11017 (get_detach_signal): Pass target down to find_thread_ptid.
11018 Consider last target status's target.
11019 (linux_resume_one_lwp_throw, resume_lwp)
11020 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11021 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11022 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11023 (linux_nat_target::async_wait_fd): New.
11024 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11025 target down.
11026 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11027 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11028 * linux-thread-db.c (struct thread_db_info::process_target): New
11029 field.
11030 (add_thread_db_info): Save target.
11031 (get_thread_db_info): New process_stratum_target parameter. Also
11032 match target.
11033 (delete_thread_db_info): New process_stratum_target parameter.
11034 Also match target.
11035 (thread_from_lwp): Adjust to pass down target.
11036 (thread_db_notice_clone): Pass down target.
11037 (check_thread_db_callback): Pass down target.
11038 (try_thread_db_load_1): Always push the thread_db target.
11039 (try_thread_db_load, record_thread): Pass target down.
11040 (thread_db_target::detach): Pass target down. Always unpush the
11041 thread_db target.
11042 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11043 target down. Always unpush the thread_db target.
11044 (find_new_threads_callback, thread_db_find_new_threads_2)
11045 (thread_db_target::update_thread_list): Pass target down.
11046 (thread_db_target::pid_to_str): Pass current inferior down.
11047 (thread_db_target::get_thread_local_address): Pass target down.
11048 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11049 target down.
11050 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11051 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11052 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11053 (procfs_init_inferior): Rename to ...
11054 (procfs_target::procfs_init_inferior): ... this and adjust.
11055 (procfs_target::create_inferior, procfs_notice_thread)
11056 (procfs_do_thread_registers): Adjust.
11057 * ppc-fbsd-tdep.c: Include "inferior.h".
11058 (ppcfbsd_get_thread_local_address): Pass down target.
11059 * proc-service.c (ps_xfer_memory): Switch current inferior and
11060 program space as well.
11061 (get_ps_regcache): Pass target down.
11062 * process-stratum-target.c
11063 (process_stratum_target::thread_address_space)
11064 (process_stratum_target::thread_architecture): Pass target down.
11065 * process-stratum-target.h
11066 (process_stratum_target::threads_executing): New field.
11067 (as_process_stratum_target): New.
11068 * ravenscar-thread.c
11069 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11070 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11071 down.
11072 * record-btrace.c (record_btrace_target::info_record): Adjust.
11073 (record_btrace_target::record_method)
11074 (record_btrace_target::record_is_replaying)
11075 (record_btrace_target::fetch_registers)
11076 (get_thread_current_frame_id, record_btrace_target::resume)
11077 (record_btrace_target::wait, record_btrace_target::stop): Pass
11078 target down.
11079 * record-full.c (record_full_wait_1): Switch to event thread.
11080 Pass target down.
11081 * regcache.c (regcache::regcache)
11082 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11083 process_stratum_target parameter and handle it.
11084 (current_thread_target): New global.
11085 (get_thread_regcache): Add process_stratum_target parameter and
11086 handle it. Switch inferior before calling target method.
11087 (get_thread_regcache): Pass target down.
11088 (get_thread_regcache_for_ptid): Pass target down.
11089 (registers_changed_ptid): Add process_stratum_target parameter and
11090 handle it.
11091 (registers_changed_thread, registers_changed): Pass target down.
11092 (test_get_thread_arch_aspace_regcache): New.
11093 (current_regcache_test): Define a couple local test_target_ops
11094 instances and use them for testing.
11095 (readwrite_regcache): Pass process_stratum_target parameter.
11096 (cooked_read_test, cooked_write_test): Pass mock_target down.
11097 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11098 (get_thread_arch_aspace_regcache): Add process_stratum_target
11099 parameter.
11100 (regcache::target): New method.
11101 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11102 (regcache::registers_changed_ptid): Add process_stratum_target
11103 parameter.
11104 (regcache::m_target): New field.
11105 (registers_changed_ptid): Add process_stratum_target parameter.
11106 * remote.c (remote_state::supports_vCont_probed): New field.
11107 (remote_target::async_wait_fd): New method.
11108 (remote_unpush_and_throw): Add remote_target parameter.
11109 (get_current_remote_target): Adjust.
11110 (remote_target::remote_add_inferior): Push target.
11111 (remote_target::remote_add_thread)
11112 (remote_target::remote_notice_new_inferior)
11113 (get_remote_thread_info): Pass target down.
11114 (remote_target::update_thread_list): Skip threads of inferiors
11115 bound to other targets. (remote_target::close): Don't discard
11116 inferiors. (remote_target::add_current_inferior_and_thread)
11117 (remote_target::process_initial_stop_replies)
11118 (remote_target::start_remote)
11119 (remote_target::remote_serial_quit_handler): Pass down target.
11120 (remote_target::remote_unpush_target): New remote_target
11121 parameter. Unpush the target from all inferiors.
11122 (remote_target::remote_unpush_and_throw): New remote_target
11123 parameter. Pass it down.
11124 (remote_target::open_1): Check whether the current inferior has
11125 execution instead of checking whether any inferior is live. Pass
11126 target down.
11127 (remote_target::remote_detach_1): Pass down target. Use
11128 remote_unpush_target.
11129 (extended_remote_target::attach): Pass down target.
11130 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11131 (remote_target::append_resumption): Pass down target.
11132 (remote_target::append_pending_thread_resumptions)
11133 (remote_target::remote_resume_with_hc, remote_target::resume)
11134 (remote_target::commit_resume): Pass down target.
11135 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11136 (remote_target::interrupt_query)
11137 (remote_target::remove_new_fork_children)
11138 (remote_target::check_pending_events_prevent_wildcard_vcont)
11139 (remote_target::remote_parse_stop_reply)
11140 (remote_target::process_stop_reply): Pass down target.
11141 (first_remote_resumed_thread): New remote_target parameter. Pass
11142 it down.
11143 (remote_target::wait_as): Pass down target.
11144 (unpush_and_perror): New remote_target parameter. Pass it down.
11145 (remote_target::readchar, remote_target::remote_serial_write)
11146 (remote_target::getpkt_or_notif_sane_1)
11147 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11148 down target.
11149 (remote_target::mourn_inferior): Pass down target. Use
11150 remote_unpush_target.
11151 (remote_target::core_of_thread)
11152 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11153 (remote_target::pid_to_exec_file)
11154 (remote_target::thread_handle_to_thread_info): Pass down target.
11155 (remote_target::async_wait_fd): New.
11156 * riscv-fbsd-tdep.c: Include "inferior.h".
11157 (riscv_fbsd_get_thread_local_address): Pass down target.
11158 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11159 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11160 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11161 Adjust.
11162 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11163 * solib-svr4.c (enable_break): Pass down target.
11164 * spu-multiarch.c (parse_spufs_run): Pass down target.
11165 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11166 * target-delegates.c: Regenerate.
11167 * target.c (g_target_stack): Delete.
11168 (current_top_target): Return the current inferior's top target.
11169 (target_has_execution_1): Refer to the passed-in inferior's top
11170 target.
11171 (target_supports_terminal_ours): Check whether the initial
11172 inferior was already created.
11173 (decref_target): New.
11174 (target_stack::push): Incref/decref the target.
11175 (push_target, push_target, unpush_target): Adjust.
11176 (target_stack::unpush): Defref target.
11177 (target_is_pushed): Return bool. Adjust to refer to the current
11178 inferior's target stack.
11179 (dispose_inferior): Delete, and inline parts ...
11180 (target_preopen): ... here. Only dispose of the current inferior.
11181 (target_detach): Hold strong target reference while detaching.
11182 Pass target down.
11183 (target_thread_name): Add assertion.
11184 (target_resume): Pass down target.
11185 (target_ops::beneath, find_target_at): Adjust to refer to the
11186 current inferior's target stack.
11187 (get_dummy_target): New.
11188 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11189 has a thread running.
11190 (initialize_targets): Rename to ...
11191 (_initialize_target): ... this.
11192 * target.h: Include "gdbsupport/refcounted-object.h".
11193 (struct target_ops): Inherit refcounted_object.
11194 (target_ops::shortname, target_ops::longname): Make const.
11195 (target_ops::async_wait_fd): New method.
11196 (decref_target): Declare.
11197 (struct target_ops_ref_policy): New.
11198 (target_ops_ref): New typedef.
11199 (get_dummy_target): Declare function.
11200 (target_is_pushed): Return bool.
11201 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11202 (all_matching_threads_iterator::all_matching_threads_iterator):
11203 Handle filter target.
11204 * thread-iter.h (struct all_matching_threads_iterator, struct
11205 all_matching_threads_range, class all_non_exited_threads_range):
11206 Filter by target too. Remove explicit.
11207 * thread.c (threads_executing): Delete.
11208 (inferior_thread): Pass down current inferior.
11209 (clear_thread_inferior_resources): Pass down thread pointer
11210 instead of ptid_t.
11211 (add_thread_silent, add_thread_with_info, add_thread): Add
11212 process_stratum_target parameter. Use it for thread and inferior
11213 searches.
11214 (is_current_thread): New.
11215 (thread_info::deletable): Use it.
11216 (find_thread_ptid, thread_count, in_thread_list)
11217 (thread_change_ptid, set_resumed, set_running): New
11218 process_stratum_target parameter. Pass it down.
11219 (set_executing): New process_stratum_target parameter. Pass it
11220 down. Adjust reference to 'threads_executing'.
11221 (threads_are_executing): New process_stratum_target parameter.
11222 Adjust reference to 'threads_executing'.
11223 (set_stop_requested, finish_thread_state): New
11224 process_stratum_target parameter. Pass it down.
11225 (switch_to_thread): Also match inferior.
11226 (switch_to_thread): New process_stratum_target parameter. Pass it
11227 down.
11228 (update_threads_executing): Reimplement.
11229 * top.c (quit_force): Pop targets from all inferior.
11230 (gdb_init): Don't call initialize_targets.
11231 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11232 Declare.
11233 (windows_add_thread, windows_delete_thread): Adjust.
11234 (get_windows_debug_event): Rename to ...
11235 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11236 * tracefile-tfile.c (tfile_target_open): Pass down target.
11237 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11238 Forward declare.
11239 (switch_to_thread): Add process_stratum_target parameter.
11240 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11241 parameter. Use it.
11242 (mi_on_resume): Pass target down.
11243 * nat/fork-inferior.c (startup_inferior): Add
11244 process_stratum_target parameter. Pass it down.
11245 * nat/fork-inferior.h (startup_inferior): Add
11246 process_stratum_target parameter.
11247 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11248
11249 2020-01-10 Pedro Alves <palves@redhat.com>
11250
11251 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11252 directly. Instead find the first thread in the thread list and
11253 use switch_to_thread.
11254
11255 2020-01-10 Pedro Alves <palves@redhat.com>
11256
11257 * remote.c (remote_target::remote_add_inferior): Don't bind a
11258 process to the current inferior if the current inferior is already
11259 bound to a process.
11260
11261 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11262 Pedro Alves <palves@redhat.com>
11263
11264 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11265 If no process is specified, return null_ptid instead of
11266 inferior_ptid.
11267 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11268 TARGET_WAITKIND_SIGNALLED with no pid.
11269
11270 2020-01-10 Pedro Alves <palves@redhat.com>
11271
11272 * remote.c (first_remote_resumed_thread): New.
11273 (remote_target::wait_as): Use it as default event_ptid instead of
11274 inferior_ptid.
11275
11276 2020-01-10 Pedro Alves <palves@redhat.com>
11277
11278 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11279
11280 2020-01-10 Pedro Alves <palves@redhat.com>
11281
11282 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11283 not -1.
11284
11285 2020-01-10 Pedro Alves <palves@redhat.com>
11286
11287 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11288 ptid to get_last_target_status.
11289 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11290 ptid to get_last_target_status.
11291 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11292 get_last_target_status.
11293 (info_program_command): Don't pass a target_waitstatus to
11294 get_last_target_status.
11295 * infrun.c (init_wait_for_inferior): Use
11296 nullify_last_target_wait_ptid.
11297 (get_last_target_status): Handle nullptr arguments.
11298 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11299 (print_stop_event): Don't pass a ptid to get_last_target_status.
11300 (normal_stop): Don't pass a ptid to get_last_target_status.
11301 * infrun.h (get_last_target_status, set_last_target_status): Move
11302 comments here and update.
11303 (nullify_last_target_wait_ptid): Declare.
11304 * linux-fork.c (fork_load_infrun_state): Remove local extern
11305 declaration of nullify_last_target_wait_ptid.
11306 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11307 to get_last_target_status.
11308
11309 2020-01-10 Pedro Alves <palves@redhat.com>
11310
11311 * gdbthread.h (scoped_restore_current_thread)
11312 <dont_restore, restore, m_dont_restore>: Declare.
11313 * thread.c (thread_alive): Add assertion. Return bool.
11314 (switch_to_thread_if_alive): New.
11315 (prune_threads): Switch inferior/thread.
11316 (print_thread_info_1): Switch thread before calling target methods.
11317 (scoped_restore_current_thread::restore): New, factored out from
11318 ...
11319 (scoped_restore_current_thread::~scoped_restore_current_thread):
11320 ... this.
11321 (scoped_restore_current_thread::scoped_restore_current_thread):
11322 Add assertion.
11323 (thread_apply_all_command, thread_select): Use
11324 switch_to_thread_if_alive.
11325 * infrun.c (proceed, restart_threads, handle_signal_stop)
11326 (switch_back_to_stepped_thread): Switch current thread before
11327 calling target methods.
11328
11329 2020-01-10 Pedro Alves <palves@redhat.com>
11330
11331 * inferior.c (switch_to_inferior_no_thread): New function,
11332 factored out from ...
11333 (inferior_command): ... here.
11334 * inferior.h (switch_to_inferior_no_thread): Declare.
11335 * mi/mi-main.c (run_one_inferior): Use
11336 switch_to_inferior_no_thread.
11337
11338 2020-01-10 Pedro Alves <palves@redhat.com>
11339
11340 * infcmd.c (kill_command): Remove dead code.
11341
11342 2020-01-10 Pedro Alves <palves@redhat.com>
11343
11344 * remote.c (remote_target::mourn_inferior): No longer check
11345 whether the target is running.
11346
11347 2020-01-10 Pedro Alves <palves@redhat.com>
11348
11349 * corelow.c (core_target::has_execution): Change parameter type to
11350 inferior pointer.
11351 * inferior.c (number_of_live_inferiors): Use
11352 inferior::has_execution instead of target_has_execution_1.
11353 * inferior.h (inferior::has_execution): New.
11354 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11355 inferior::has_execution instead of target_has_execution_1.
11356 * process-stratum-target.c
11357 (process_stratum_target::has_execution): Change parameter type to
11358 inferior pointer. Check the inferior's PID instead of
11359 inferior_ptid.
11360 * process-stratum-target.h
11361 (process_stratum_target::has_execution): Change parameter type to
11362 inferior pointer.
11363 * record-full.c (record_full_core_target::has_execution): Change
11364 parameter type to inferior pointer.
11365 * target.c (target_has_execution_1): Change parameter type to
11366 inferior pointer.
11367 (target_has_execution_current): Adjust.
11368 * target.h (target_ops::has_execution): Change parameter type to
11369 inferior pointer.
11370 (target_has_execution_1): Change parameter type to inferior
11371 pointer. Change return type to bool.
11372 * tracefile.h (tracefile_target::has_execution): Change parameter
11373 type to inferior pointer.
11374
11375 2020-01-10 Pedro Alves <palves@redhat.com>
11376
11377 * exceptions.c (print_flush): Remove current_top_target() check.
11378
11379 2020-01-10 Pedro Alves <palves@redhat.com>
11380
11381 * remote.c (show_remote_exec_file): Show the current inferior's
11382 exec-file instead of the command variable's value.
11383
11384 2020-01-10 Pedro Alves <palves@redhat.com>
11385
11386 * record-full.c (record_full_resume_ptid): New global.
11387 (record_full_target::resume): Set it.
11388 (record_full_wait_1): Use record_full_resume_ptid instead of
11389 inferior_ptid.
11390
11391 2020-01-10 Pedro Alves <palves@redhat.com>
11392
11393 * gdbthread.h (scoped_restore_current_thread)
11394 <dont_restore, restore, m_dont_restore>: Declare.
11395 * thread.c (thread_alive): Add assertion. Return bool.
11396 (switch_to_thread_if_alive): New.
11397 (prune_threads): Switch inferior/thread.
11398 (print_thread_info_1): Switch thread before calling target methods.
11399 (scoped_restore_current_thread::restore): New, factored out from
11400 ...
11401 (scoped_restore_current_thread::~scoped_restore_current_thread):
11402 ... this.
11403 (scoped_restore_current_thread::scoped_restore_current_thread):
11404 Add assertion.
11405 (thread_apply_all_command, thread_select): Use
11406 switch_to_thread_if_alive.
11407
11408 2020-01-10 George Barrett <bob@bob131.so>
11409
11410 * stap-probe.c (stap_modify_semaphore): Don't check for null
11411 semaphores.
11412 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11413 for null semaphores.
11414
11415 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11416
11417 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11418 all source windows, and maintain horizontal scroll status while
11419 doing so.
11420
11421 2020-01-09 Tom Tromey <tom@tromey.com>
11422
11423 PR tui/18932:
11424 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11425 update_source_window, not print_source_lines.
11426
11427 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11428
11429 * tui/tui.c (tui_enable): Register tui hooks after calling
11430 tui_display_main.
11431
11432 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11433
11434 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11435
11436 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11437
11438 * thread.c (print_thread_info_1): Fix indentation.
11439
11440 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11441
11442 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11443 unique_xmalloc_ptr outside the if to always free the demangled name.
11444
11445 2020-01-08 Tom Tromey <tromey@adacore.com>
11446
11447 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11448 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11449 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11450 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11451 Remove.
11452 (section_offsets): New typedef.
11453 * symtab.c (fixup_section, get_msymbol_address): Update.
11454 * symmisc.c (dump_msymbols): Update.
11455 * symfile.h (relative_addr_info_to_section_offsets)
11456 (symfile_map_offsets_to_segments): Update.
11457 * symfile.c (build_section_addr_info_from_objfile)
11458 (init_objfile_sect_indices): Update.
11459 (struct place_section_arg): Change type of "offsets".
11460 (place_section): Update.
11461 (relative_addr_info_to_section_offsets): Change type of
11462 "section_offsets". Remove "num_sections" parameter.
11463 (default_symfile_offsets, syms_from_objfile_1)
11464 (set_objfile_default_section_offset): Update.
11465 (reread_symbols): No need to preserve section offsets by hand.
11466 (symfile_map_offsets_to_segments): Change type of "offsets".
11467 * stap-probe.c (relocate_address): Update.
11468 * stabsread.h (process_one_symbol): Update.
11469 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11470 (solib_target_relocate_section_addresses): Update.
11471 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11472 Update.
11473 * solib-frv.c (frv_relocate_main_executable): Update.
11474 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11475 * solib-aix.c (solib_aix_get_section_offsets): Change return
11476 type.
11477 (solib_aix_solib_create_inferior_hook): Update.
11478 * remote.c (remote_target::get_offsets): Update.
11479 * psymtab.c (find_pc_sect_psymtab): Update.
11480 * psympriv.h (struct partial_symbol) <address, text_low,
11481 text_high>: Update.
11482 * objfiles.h (obj_section_offset): Update.
11483 (struct objfile) <section_offsets>: Change type.
11484 <num_sections>: Remove.
11485 (objfile_relocate): Update.
11486 * objfiles.c (entry_point_address_query): Update
11487 (relocate_one_symbol): Change type of "section_offsets".
11488 (objfile_relocate1, objfile_relocate1): Change type of
11489 "new_offsets".
11490 (objfile_rebase1): Update.
11491 * mipsread.c (mipscoff_symfile_read): Update.
11492 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11493 parameter.
11494 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11495 (parse_external, psymtab_to_symtab_1): Update.
11496 * machoread.c (macho_symfile_offsets): Update.
11497 * ia64-tdep.c (ia64_find_unwind_table): Update.
11498 * hppa-tdep.c (read_unwind_info): Update.
11499 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11500 * dwarf2read.c (create_addrmap_from_index)
11501 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11502 (process_psymtab_comp_unit_reader, add_partial_symbol)
11503 (add_partial_subprogram, process_full_comp_unit)
11504 (read_file_scope, read_func_scope, read_lexical_block_scope)
11505 (read_call_site_scope, dwarf2_rnglists_process)
11506 (dwarf2_ranges_process, dwarf2_ranges_read)
11507 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11508 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11509 Update.
11510 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11511 Update.
11512 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11513 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11514 (process_one_symbol): Change type of "section_offsets".
11515 * ctfread.c (get_objfile_text_range): Update.
11516 * coffread.c (coff_symtab_read, enter_linenos)
11517 (process_coff_symbol): Update.
11518 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11519 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11520
11521 2020-01-08 Tom Tromey <tromey@adacore.com>
11522
11523 * dwarf2read.c (parse_macro_definition): Use std::string.
11524 (parse_macro_definition): Likewise.
11525
11526 2020-01-08 Tom Tromey <tromey@adacore.com>
11527
11528 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11529 (ATTR_ALLOC_CHUNK): Remove.
11530
11531 2020-01-08 Tom Tromey <tromey@adacore.com>
11532
11533 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11534
11535 2020-01-08 Tom Tromey <tromey@adacore.com>
11536
11537 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11538 (dwarf2_compute_name, open_dwo_file): Likewise.
11539 (process_enumeration_scope): Use std::vector.
11540 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11541 (partial_die_info::fixup, dwarf2_start_subfile)
11542 (guess_full_die_structure_name, dwarf2_name): Likewise.
11543 (determine_prefix): Update.
11544 (guess_full_die_structure_name): Make return type const.
11545 (partial_die_full_name): Return unique_xmalloc_ptr.
11546 (DW_FIELD_ALLOC_CHUNK): Remove.
11547
11548 2020-01-07 Tom Tromey <tromey@adacore.com>
11549
11550 PR build/24937:
11551 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11552
11553 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11554
11555 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11556
11557 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11558
11559 * stack.c (print_frame_info): Move disassemble_next_line code
11560 inside source_print block.
11561
11562 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11563
11564 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11565 gdb/signals.h, as we are now using native signal symbols.
11566
11567 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11568
11569 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11570 overflow by an early check of content vs threshold.
11571 * tui/tui-source.c (tui_source_window::line_is_displayed):
11572 Likewise.
11573
11574 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11575
11576 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11577
11578 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11579
11580 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11581 export table if no section contains it's RVA.
11582
11583 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11584
11585 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11586
11587 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11588
11589 * source.c (print_source_lines_base): Set last_line_listed.
11590
11591 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11592
11593 * tui/tui-disasm.c: Remove trailing spaces.
11594
11595 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11596 Pedro Alves <palves@redhat.com>
11597
11598 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11599 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11600 (windows_gdb_signal_to_target): New function, uses the above
11601 enumeration to convert GDB internal signal codes to equivalent
11602 Windows codes.
11603 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11604 * windows-nat.c: Include "gdb_wait.h".
11605 (get_windows_debug_event): Extract the fatal exception from the
11606 exit status and convert to the equivalent Posix signal number.
11607 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11608 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11609 * gdbsupport/gdb_wait.c: New file, implements
11610 windows_status_to_termsig.
11611 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11612 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11613
11614 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11615
11616 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11617 show_layout.
11618
11619 2020-01-05 Luis Machado <luis.machado@linaro.org>
11620
11621 * aarch64-linux-nat.c
11622 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11623 and bfd_mach_aarch64.
11624
11625 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11626
11627 * ui-file.c (stdio_file::can_emit_style_escape)
11628 (tee_file::can_emit_style_escape): Ensure style is used also on
11629 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11630 to gdb_stdout.
11631 * main.c (set_gdb_data_directory): Use file style to output the
11632 warning that the given pathname is not a directory.
11633 * top.c (show_history_filename, gdb_safe_append_history)
11634 (show_gdb_datadir): Use file style.
11635
11636 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11637
11638 * solib-target.c (struct lm_info_target):
11639 Change offsets to be a unique_xmalloc_ptr.
11640 (solib_target_relocate_section_addresses): Update.
11641
11642 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11643
11644 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11645
11646 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11647
11648 * MAINTAINERS (Write After Approval): Add myself.
11649
11650 2020-01-02 Luis Machado <luis.machado@linaro.org>
11651
11652 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11653 Cell BE architecture.
11654 * target.h (struct target_ops) <thread_architecture>: Likewise.
11655
11656 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11657
11658 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11659
11660 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11661
11662 * MAINTAINERS (Write After Approval): Add myself.
11663
11664 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11665
11666 * gdbarch.sh: Update copyright year range of generated files.
11667
11668 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11669
11670 Update copyright year range in all GDB files.
11671
11672 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11673
11674 * copyright.py: Convert to Python 3.
11675
11676 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11677
11678 * copyright.py: Adapt after move of gnulib directory from gdb
11679 directory to toplevel directory.
11680
11681 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11682
11683 * copyright.py (main): Exit if run from the wrong directory.
11684
11685 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11686
11687 * top.c (print_gdb_version): Change copyright year to 2020.
11688
11689 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11690
11691 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11692
11693 For older changes see ChangeLog-2019.
11694 \f
11695 Local Variables:
11696 mode: change-log
11697 left-margin: 8
11698 fill-column: 74
11699 version-control: never
11700 coding: utf-8
11701 End: