]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
[gdb/testsuite] Make gdb.dwarf2/dw2-line-number-zero.exp more robust
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f75a0693
AB
12020-07-28 Tom Tromey <tromey@adacore.com>
2
3 PR symtab/26270:
4 * symtab.h (find_pc_partial_function_sym): Declare.
5 * cli/cli-cmds.c (disassemble_command): Use
6 find_pc_partial_function_sym. Check asm_demangle.
7 * blockframe.c (cache_pc_function_sym): New global.
8 (cache_pc_function_name): Remove.
9 (clear_pc_function_cache): Update.
10 (find_pc_partial_function_sym): New function, from
11 find_pc_partial_function.
12 (find_pc_partial_function): Rewrite using
13 find_pc_partial_function_sym.
14
16f3242c
TT
152020-07-28 Tom Tromey <tromey@adacore.com>
16
17 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
18 help. Add usage.
19
4888741a
TT
202020-07-28 Tom Tromey <tromey@adacore.com>
21
22 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
23 <DW_OP_GNU_variable_value>: Cast to address type.
24
4d46f402
KR
252020-07-28 Kamil Rytarowski <n54@gmx.com>
26
27 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
28 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
29 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
30 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
31 (nbsd_get_siginfo_type): New.
32 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
33 (_initialize_nbsd_tdep): New.
34
d70f978b
L
352020-07-28 H.J. Lu <hongjiu.lu@intel.com>
36
37 PR binutils/26301
38 * configure: Regenerated.
39
377170fa
L
402020-07-28 H.J. Lu <hongjiu.lu@intel.com>
41
42 PR binutils/26301
43 * configure: Regenerated.
44
43d5901d
AB
452020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
46
47 * python/py-frame.c: Remove 'user-regs.h' include.
48 (frapy_read_register): Rewrite to make use of
49 gdbpy_parse_register_id.
50 * python/py-registers.c (gdbpy_parse_register_id): New function,
51 moved here from python/py-unwind.c. Updated the return type, and
52 also accepts register descriptor objects.
53 * python/py-unwind.c: Remove 'user-regs.h' include.
54 (pyuw_parse_register_id): Moved to python/py-registers.c.
55 (unwind_infopy_add_saved_register): Update to use
56 gdbpy_parse_register_id.
57 (pending_framepy_read_register): Likewise.
58 * python/python-internal.h (gdbpy_parse_register_id): Declare.
59
14fa8fb3
AB
602020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
61
62 * python/py-registers.c: Add 'user-regs.h' include.
63 (register_descriptor_iter_find): New function.
64 (register_descriptor_iterator_object_methods): New static global
65 methods array.
66 (register_descriptor_iterator_object_type): Add pointer to methods
67 array.
68
ddce1758
JB
692020-07-27 John Baldwin <jhb@FreeBSD.org>
70
71 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
72 for all architectures on FreeBSD 11.3 and later.
73
a4089f52
TT
742020-07-27 Tom Tromey <tromey@adacore.com>
75
76 * gcore.h (load_corefile): Don't declare.
77
95420d30
TV
782020-07-27 Tom de Vries <tdevries@suse.de>
79
80 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
81 * config.in: Regenerate.
82 * configure: Regenerate.
83
05a6b8c2
EZ
842020-07-26 Eli Zaretskii <eliz@gnu.org>
85
86 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
87 ws2tcpip.h. When checking whether socklen_t type is defined, use
88 ws2tcpip.h if it is available and sys/socket.h isn't.
89 * configure: Regenerate.
90 * config.in: Regenerate.
91
e79eb02f
AB
922020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
93
94 PR fortran/23051
95 PR fortran/26139
96 * valops.c (value_ind): Pass address to
97 readjust_indirect_value_type.
98 * value.c (readjust_indirect_value_type): Make parameter
99 non-const, and add extra address parameter. Resolve original type
100 before using it.
101 * value.h (readjust_indirect_value_type): Update function
102 signature and comment.
103
876518dd
TV
1042020-07-25 Tom de Vries <tdevries@suse.de>
105
106 PR symtab/26243
107 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
108 entries.
109
f6720b1c
AM
1102020-07-24 Aaron Merey <amerey@redhat.com>
111
112 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
113 * configure: Rebuild.
114
513487e1
KB
1152020-07-23 Kevin Buettner <kevinb@redhat.com>
116
117 PR corefiles/26294
118 * corelow.c (_initialize_corelow): Add period to help text
119 for "maintenance print core-file-backed-mappings".
120
e7bc9db8
PA
1212020-07-23 Pedro Alves <pedro@palves.net>
122
123 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
124 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
125 meanwhile.
126 * frame.c (frame_cache_generation, get_frame_cache_generation):
127 New.
128 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
129 (get_prev_frame_if_no_cycle): On exception, don't touch
130 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
131 * frame.h (get_frame_cache_generation): Declare.
132
90fcc466
TV
1332020-07-23 Tom de Vries <tdevries@suse.de>
134
135 PR tui/26282
136 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
137 New default constructor.
138
78344df7
AB
1392020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
140
141 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
142 exclude non-statement entries.
143
b089853a
KB
1442020-07-22 Kevin Buettner <kevinb@redhat.com>
145
146 * NEWS (New commands): Mention new command
147 "maintenance print core-file-backed-mappings".
148
09c2f5d4
KB
1492020-07-22 Kevin Buettner <kevinb@redhat.com>
150
151 * corelow.c (gdbcmd.h): Include.
152 (core_target::info_proc_mappings): New method.
153 (get_current_core_target): New function.
154 (maintenance_print_core_file_backed_mappings): New function.
155 (_initialize_corelow): Add core-file-backed-mappings to
156 "maint print" commands.
157
9c5ec5c2
KB
1582020-07-22 Kevin Buettner <kevinb@redhat.com>
159
160 * linux-tdep.c (dump_note_entry_p): New function.
161 (linux_dump_mapping_p_ftype): New typedef.
162 (linux_find_memory_regions_full): Add new parameter,
163 should_dump_mapping_p.
164 (linux_find_memory_regions): Adjust call to
165 linux_find_memory_regions_full.
166 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
167 call to linux_find_memory_regions_full.
168
db082f59
KB
1692020-07-22 Kevin Buettner <kevinb@redhat.com>
170
171 * corelow.c (solist.h, unordered_map): Include.
172 (class core_target): Add field m_core_file_mappings and
173 method build_file_mappings.
174 (core_target::core_target): Call build_file_mappings.
175 (core_target::~core_target): Free memory associated with
176 m_core_file_mappings.
177 (core_target::build_file_mappings): New method.
178 (core_target::xfer_partial): Use m_core_file_mappings
179 for memory transfers.
180 * linux-tdep.c (linux_read_core_file_mappings): New
181 function.
182 (linux_core_info_proc_mappings): Rewrite to use
183 linux_read_core_file_mappings.
184 (linux_init_abi): Register linux_read_core_file_mappings.
185
7e183d27
KB
1862020-07-22 Kevin Buettner <kevinb@redhat.com>
187
188 * arch-utils.c (default_read_core_file_mappings): New function.
189 * arch-utils.c (default_read_core_file_mappings): Declare.
190 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
191 * gdbarch.h, gdbarch.c: Regenerate.
192
2735d421
KB
1932020-07-22 Kevin Buettner <kevinb@redhat.com>
194
195 PR corefiles/25631
196 * corelow.c (core_target:xfer_partial): Revise
197 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
198 case after first checking the stratum beneath the core
199 target.
200 (has_all_memory): Return true.
201 * target.c (raw_memory_xfer_partial): Revise comment
202 regarding use of has_all_memory.
203
e56cb451
KB
2042020-07-22 Kevin Buettner <kevinb@redhat.com>
205
206 * exec.h (section_table_xfer_memory): Revise declaration,
207 replacing section name parameter with an optional callback
208 predicate.
209 * exec.c (section_table_xfer_memory): Likewise.
210 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
211 of section_table_xfer_memory.
212
32fa152e
TT
2132020-07-22 Tom Tromey <tromey@adacore.com>
214
215 * mi/mi-cmd-stack.c (list_args_or_locals): Use
216 lookup_symbol_search_name.
217
a67a1c41
AB
2182020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
219
220 * python/py-registers.c (gdbpy_register_object_data_init): Remove
221 redundant local variable.
222 (gdbpy_get_register_descriptor): Extract descriptor vector as a
223 reference, not pointer, update code accordingly.
224
a7b4ff4f
SM
2252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
226 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
227
228 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
229 * jit.c (jit_breakpoint_re_set_internal): Use the
230 `skip_jit_symbol_lookup` field.
231
2340e834
SM
2322020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
233 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
234
235 * jit.c (jit_read_descriptor): Define the descriptor address once,
236 use twice.
237 (jit_breakpoint_deleted): Move the declaration of the loop variable
238 `iter` into the loop header.
239 (jit_breakpoint_re_set_internal): Move the declaration of the local
240 variable `objf_data` to the first point of definition.
241 (jit_event_handler): Move the declaration of local variables
242 `code_entry`, `entry_addr`, and `objf` to their first point of use.
243 Rename `objf` to `jited`.
244
c1072906
SM
2452020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
246
247 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
248 Remove.
249 * jit.c (get_jiter_objfile_data): Update.
250
c8474dc3
TBA
2512020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
252 Simon Marchi <simon.marchi@polymtl.ca>
253
254 * jit.c (struct jit_program_space_data): Remove.
255 (jit_program_space_key): Remove.
256 (jiter_objfile_data::~jiter_objfile_data): Remove program space
257 stuff.
258 (get_jit_program_space_data): Remove.
259 (jit_breakpoint_deleted): Iterate on all of the program space's
260 objfiles.
261 (jit_inferior_init): Likewise.
262 (jit_breakpoint_re_set_internal): Likewise. Also change return
263 type to void.
264 (jit_breakpoint_re_set): Pass current_program_space to
265 jit_breakpoint_re_set_internal.
266
77208eb7
SM
2672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
268
269 * jit.h (struct jiter_objfile_data) <cached_code_address,
270 jit_breakpoint>: Move to here from ...
271 * jit.c (jit_program_space_data): ... here.
272 (jiter_objfile_data::~jiter_objfile_data): Update.
273 (jit_breakpoint_deleted): Update.
274 (jit_breakpoint_re_set_internal): Update.
275
8c1c720f
SM
2762020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
277
278 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
279 checks.
280 (jit_read_descriptor): Remove NULL check.
281 (jit_event_handler): Add an assertion.
282
0e74a041
SM
2832020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
284
285 * jit.h (struct jit_objfile_data): Split into...
286 (struct jiter_objfile_data): ... this ...
287 (struct jited_objfile_data): ... and this.
288 * objfiles.h (struct objfile) <jit_data>: Remove.
289 <jiter_data, jited_data>: New fields.
290 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
291 (jiter_objfile_data::~jiter_objfile_data): ... this.
292 (get_jit_objfile_data): Rename to ...
293 (get_jiter_objfile_data): ... this.
294 (add_objfile_entry): Update.
295 (jit_read_descriptor): Use get_jiter_objfile_data.
296 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
297 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
298 (jit_inferior_exit_hook): Use objfile's jited_data field.
299
238b5c9f
SM
3002020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
301
302 * jit.h: Forward-declare `struct minimal_symbol`.
303 (struct jit_objfile_data): Migrate to here from jit.c; also add a
304 constructor, destructor, and an objfile* field.
305 * jit.c (jit_objfile_data): Remove.
306 (struct jit_objfile_data): Migrate from here to jit.h.
307 (jit_objfile_data::~jit_objfile_data): New destructor
308 implementation with code moved from free_objfile_data.
309 (free_objfile_data): Delete.
310 (get_jit_objfile_data): Update to use the jit_data field of objfile.
311 (jit_find_objf_with_entry_addr): Ditto.
312 (jit_inferior_exit_hook): Ditto.
313 (_initialize_jit): Remove the call to
314 register_objfile_data_with_cleanup.
315 * objfiles.h (struct objfile) <jit_data>: New field.
316
fe053b9e
TBA
3172020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
318
319 * jit.h: Forward-declare `struct objfile`.
320 (jit_event_handler): Add a second parameter, the JITer objfile.
321 * jit.c (jit_read_descriptor): Change the signature to take the
322 JITer objfile as an argument instead of the jit_program_space_data.
323 (jit_inferior_init): Update the call to jit_read_descriptor.
324 (jit_event_handler): Use the new JITer objfile argument when calling
325 jit_read_descriptor.
326 * breakpoint.c (handle_jit_event): Update the call to
327 jit_event_handler to pass the JITer objfile.
328
4cec0c66
JB
3292020-07-21 John Baldwin <jhb@FreeBSD.org>
330
331 * gdbarch.c: Regenerate.
332 * gdbarch.h: Regenerate.
333 * gdbarch.sh (handle_segmentation_fault): Remove method.
334 * infrun.c (handle_segmentation_fault): Remove.
335 (print_signal_received_reason): Remove call to
336 handle_segmentation_fault.
337
0e42f66a
JB
3382020-07-21 John Baldwin <jhb@FreeBSD.org>
339
340 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
341 Rename to sparc64_linux_report_signal_info and add siggnal
342 argument.
343 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
344 instead of sparc64_linux_handle_segmentation_fault.
345
77bdfeb2
JB
3462020-07-21 John Baldwin <jhb@FreeBSD.org>
347
348 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
349 i386_linux_report_signal_info instead of
350 i386_linux_handle_segmentation_fault.
351 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
352 to i386_linux_report_signal_info and add siggnal argument.
353 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
354 of i386_linux_handle_segmentation_fault.
355 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
356 to i386_linux_report_signal_info and add siggnal argument.
357
ad97bfc5
JB
3582020-07-21 John Baldwin <jhb@FreeBSD.org>
359
360 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
361 hook if present.
362
272bb05c
JB
3632020-07-21 John Baldwin <jhb@FreeBSD.org>
364
365 * gdbarch.c: Regenerate.
366 * gdbarch.h: Regenerate.
367 * gdbarch.sh (report_signal_info): New method.
368 * infrun.c (print_signal_received_reason): Invoke gdbarch
369 report_signal_info hook if present.
370
baf8791e
AB
3712020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
372
373 * python/py-registers.c : Add 'unordered_map' include.
374 (gdbpy_new_reggroup): Renamed to...
375 (gdbpy_get_reggroup): ...this. Update to only create register
376 group descriptors when needed.
377 (gdbpy_reggroup_iter_next): Update.
378
f7306dac
AB
3792020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
380
381 * python/py-registers.c (gdbpy_register_object_data): New static
382 global.
383 (gdbpy_register_object_data_init): New function.
384 (gdbpy_new_register_descriptor): Renamed to...
385 (gdbpy_get_register_descriptor): ...this, and update to reuse
386 existing register descriptors where possible.
387 (gdbpy_register_descriptor_iter_next): Update.
388 (gdbpy_initialize_registers): Register new gdbarch data.
389
05c309a8
SM
3902020-07-21 Simon Marchi <simon.marchi@efficios.com>
391
392 * linux-nat.c (stopped_pids): Make static.
393
d1fd641e
SM
3942020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
395
396 PR ada/26235
397 * gdbtypes.c (ada_discrete_type_low_bound,
398 ada_discrete_type_high_bound): Handle undefined bounds.
399
1de14d77
KR
4002020-07-21 Kamil Rytarowski <n54@gmx.com>
401
402 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
403 declaration.
404 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
405 function.
406
ed810cc7
JB
4072020-07-20 John Baldwin <jhb@FreeBSD.org>
408
409 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
410 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
411 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
412 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
413 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
414 method.
415
ae5369e7
LC
4162020-07-20 Ludovic Courtès <ludo@gnu.org>
417
418 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
419 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
420 which are deprecated in Guile 3.0.
421 * configure.ac (try_guile_versions): Add "guile-3.0".
422 * configure (try_guile_versions): Regenerate.
423 * NEWS: Update entry.
424
68cf161c
LC
4252020-07-20 Ludovic Courtès <ludo@gnu.org>
426 Doug Evans <dje@google.com>
427
428 PR gdb/21104
429 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
430 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
431 USING_GUILE_BEFORE_2_2.
432 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
433 Change type to 'scm_t_port_type *'.
434 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
435 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
436 parameter and honor it. Update callers.
437 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
438 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
439 functions.
440 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
441 USING_GUILE_BEFORE_2_2.
442 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
443 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
444 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
445 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
446 and 'SCM_PORT_TYPE'.
447 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
448 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
449 (gdbscm_memory_port_read, gdbscm_memory_port_write)
450 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
451 [!USING_GUILE_BEFORE_2_2]: New functions.
452 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
453 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
454 'gdbscm_memory_port_read'.
455 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
456 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
457 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
458 function.
459 (ioscm_init_memory_port): Remove.
460 (ioscm_init_memory_port_stream): New function
461 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
462 function.
463 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
464 Return scm_from_uint (0).
465 (gdbscm_set_memory_port_read_buffer_size_x)
466 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
467 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
468 Return scm_from_uint (0).
469 (gdbscm_set_memory_port_write_buffer_size_x)
470 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
471 * configure.ac (try_guile_versions): Add "guile-2.2".
472 * configure: Regenerate.
473 * NEWS: Add entry.
474
aee91db3
TT
4752020-07-18 Tom Tromey <tom@tromey.com>
476
477 * linux-nat.c (linux_multi_process): Remove.
478 (linux_nat_target::supports_multi_process): Return true.
479
0e267416
AB
4802020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
481
482 * arch/riscv.c (riscv_tdesc_cache): Change map type.
483 (riscv_lookup_target_description): Return pointer out of
484 unique_ptr.
485 * target-descriptions.c (allocate_target_description): Add
486 comment.
487 (target_desc_deleter::operator()): Likewise.
488 * target-descriptions.h (struct target_desc_deleter): Moved to
489 gdbsupport/tdesc.h.
490 (target_desc_up): Likewise.
491
f80c8ec4
TT
4922020-07-17 Tom Tromey <tromey@adacore.com>
493
494 * linux-nat.c (linux_nat_target::supports_non_stop)
495 (linux_nat_target::always_non_stop_p): Use "true".
496 (linux_nat_target::supports_disable_randomization): Use "true" and
497 "false".
498
d0ce17d8
CT
4992020-07-16 Caroline Tice <cmtice@google.com>
500
501 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
502 (RNGLIST_HEADER_SIZE64): New constant definition.
503 (struct dwop_section_names): Add rnglists_dwo.
504 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
505 (struct loclist_header): Rename to 'loclists_rnglists_header'.
506 (struct dwo_sections): Add rnglists field.
507 (read_attribut_reprocess): Add tag parameter.
508 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
509 (cu_debug_rnglists_section): New function (decl & definition).
510 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
511 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
512 die whose range is being checked; get rnglist section from
513 cu_debug_rnglists_section, to get from either objfile or dwo file as
514 appropriate. Add cases for DW_RLE_base_addressx,
515 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
516 the base address to DW_RLE_offset_pairs (not to all ranges), moving
517 test inside if-condition and updating complaint message.
518 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
519 dwarf2_rnglists_process.
520 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
521 dwarf2_ranges_process.
522 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
523 need_ranges_base and update comment appropriately. Also pass die tag
524 to dwarf2_ranges_read.
525 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
526 need_ranges_base and update comment appropriately. Also pass die tag
527 to dwarf2_ranges_process.
528 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
529 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
530 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
531 need_ranges_base and update comment appropriately. Also pass die tag
532 to read_attribute_reprocess and dwarf2_ranges_read.
533 (read_loclist_header): Rename function to read_loclists_rnglists_header,
534 and update function comment appropriately.
535 (read_loclist_index): Call read_loclists_rnglists_header instead of
536 read_loclist_header.
537 (read_rnglist_index): New function.
538 (read_attribute_reprocess): Add tag parameter. Add code for
539 DW_FORM_rnglistx, passing tag to read_rnglist_index.
540 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
541
3dcc261c
AB
5422020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
543
544 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
545 being resolved.
546
ccb9eba6
AB
5472020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
548
549 * arch-utils.c (show_architecture): Update formatting of messages.
550
cf88be68
SM
5512020-07-12 Simon Marchi <simon.marchi@efficios.com>
552
553 * gdbtypes.h (struct type) <bounds>: Handle array and string
554 types.
555 * ada-lang.c (assign_aggregate): Use type::bounds on
556 array/string type.
557 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
558 * c-varobj.c (c_number_of_children): Likewise.
559 (c_describe_child): Likewise.
560 * eval.c (evaluate_subexp_for_sizeof): Likewise.
561 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
562 (f_type_print_base): Likewise.
563 * f-valprint.c (f77_array_offset_tbl): Likewise.
564 (f77_get_upperbound): Likewise.
565 (f77_print_array_1): Likewise.
566 * guile/scm-type.c (gdbscm_type_range): Likewise.
567 * m2-typeprint.c (m2_array): Likewise.
568 (m2_is_long_set_of_type): Likewise.
569 * m2-valprint.c (get_long_set_bounds): Likewise.
570 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
571 * python/py-type.c (typy_range): Likewise.
572 * rust-lang.c (rust_internal_print_type): Likewise.
573 * type-stack.c (type_stack::follow_types): Likewise.
574 * valarith.c (value_subscripted_rvalue): Likewise.
575 * valops.c (value_cast): Likewise.
576
509971ae
SM
5772020-07-12 Simon Marchi <simon.marchi@efficios.com>
578
579 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
580 callers to use the equivalent accessor methods.
581
107406b7
SM
5822020-07-12 Simon Marchi <simon.marchi@efficios.com>
583
584 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
585 (struct type) <bit_stride>: New method.
586 (TYPE_BIT_STRIDE): Remove.
587 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
588
bb789949
SM
5892020-07-12 Simon Marchi <simon.marchi@efficios.com>
590
591 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
592 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
593 callers to use the equivalent accessor methods instead.
594
39498edb
SM
5952020-07-12 Simon Marchi <simon.marchi@efficios.com>
596
597 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
598 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
599 callers to use the equivalent accessor methods instead.
600
3b606f38
SM
6012020-07-12 Simon Marchi <simon.marchi@efficios.com>
602
603 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
604 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
605 to use dynamic_prop::kind.
606
064d9cb9
SM
6072020-07-12 Simon Marchi <simon.marchi@efficios.com>
608
609 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
610 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
611 to get the bound property's kind and check against
612 PROP_UNDEFINED.
613
5537ddd0
SM
6142020-07-12 Simon Marchi <simon.marchi@efficios.com>
615
616 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
617 all callers to use type::range_bounds followed by
618 dynamic_prop::{low,high}.
619
8c2e4e06
SM
6202020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
621
622 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
623 const_val, set_const_val, baton, set_locexpr, set_loclist,
624 set_addr_offset, variant_parts, set_variant_parts,
625 original_type, set_original_type>: New methods.
626 <kind>: Rename to...
627 <m_kind>: ... this. Update all users to use the new methods
628 instead.
629 <data>: Rename to...
630 <m_data>: ... this. Update all users to use the new methods
631 instead.
632
7c6f2712
SM
6332020-07-12 Simon Marchi <simon.marchi@efficios.com>
634
635 * gdbtypes.c (get_discrete_bounds): Return failure if
636 the range type's bounds are not both defined and constant
637 values.
638 (get_array_bounds): Update comment. Remove undefined bound check.
639
599088e3
SM
6402020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
641
642 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
643 the type::bounds method directly.
644
c4dfcb36
SM
6452020-07-12 Simon Marchi <simon.marchi@efficios.com>
646
647 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
648 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
649 are used to set the range type's bounds to use set_bounds.
650
0a278aa7
PW
6512020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
652
653 * exec.c (_initialize_exec): Update exec-file-mismatch help.
654
cce20f10
PA
6552020-07-10 Pedro Alves <pedro@palves.net>
656
657 * gdbthread.h (inferior_ref): Define.
658 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
659 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
660 * thread.c
661 (scoped_restore_current_thread::restore):
662 Adjust to gdb::ref_ptr.
663 (scoped_restore_current_thread::~scoped_restore_current_thread):
664 Remove manual decref handling.
665 (scoped_restore_current_thread::scoped_restore_current_thread):
666 Adjust to use
667 inferior_ref::new_reference/thread_info_ref::new_reference.
668 Incref the thread before calling get_frame_id instead of after.
669 Let TARGET_CLOSE_ERROR propagate.
670
6d7aa592
PA
6712020-07-10 Pedro Alves <pedro@palves.net>
672
673 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
674 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
675 NOT_AVAILABLE_ERROR.
676 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
677 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
678
b3e3a4c1
SM
6792020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
680 Pedro Alves <pedro@palves.net>
681
682 PR gdb/26199
683 * infrun.c (threads_are_resumed_pending_p): Delete.
684 (do_target_wait): Remove threads_are_executing and
685 threads_are_resumed_pending_p checks from the inferior_matches
686 lambda. Update comments.
687
d6cc5d98
PA
6882020-07-10 Pedro Alves <pedro@palves.net>
689
690 PR gdb/26199
691 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
692 executing threads.
693
7d3badc6
PA
6942020-07-10 Pedro Alves <pedro@palves.net>
695
696 PR gdb/26199
697 * infrun.c (handle_no_resumed): Handle multiple targets.
698
42bd97a6
PA
6992020-07-10 Pedro Alves <pedro@palves.net>
700
701 PR gdb/26199
702 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
703 target_is_async_p.
704
43667cc6
PA
7052020-07-10 Pedro Alves <pedro@palves.net>
706
707 PR gdb/26199
708 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
709 threads, not all threads.
710
96118d11
PA
7112020-07-10 Pedro Alves <pedro@palves.net>
712
713 PR gdb/26199
714 * remote.c (remote_target::open_1): Pass remote target pointer as
715 data to create_async_event_handler.
716 (remote_async_inferior_event_handler): Mark async event handler
717 before returning if the remote target still has either pending
718 events or unacknowledged notifications.
719
54904d81
JB
7202020-07-10 John Baldwin <jhb@FreeBSD.org>
721
722 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
723 declaration.
724 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
725 function.
726
f37e5866
JB
7272020-07-09 John Baldwin <jhb@FreeBSD.org>
728
729 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
730 inferior_ptid.
731
fc238d4a
JB
7322020-07-09 John Baldwin <jhb@FreeBSD.org>
733
734 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
735 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
736 AT_FREEBSD_PS_STRINGS.
737
6e2469ff
HD
7382020-07-08 Hannes Domani <ssbssa@yahoo.de>
739
740 * auto-load.c (auto_load_objfile_script_1): Convert drive part
741 of debugfile path on Windows.
742
d1076c41
JB
7432020-07-08 John Baldwin <jhb@FreeBSD.org>
744
745 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
746 argument to 'data'.
747
15f3b077
TT
7482020-07-08 Tom Tromey <tromey@adacore.com>
749
750 * ada-lang.c (ada_exception_message_1): Use read_memory.
751
9fc501fd
AB
7522020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
753
754 PR python/22748
755 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
756 special handling for inline frames.
757 * findvar.c (value_of_register_lazy): Skip inline frames when
758 creating lazy register values.
759 * frame.c (frame_id_computed_p): Delete definition.
760 * frame.h (frame_id_computed_p): Delete declaration.
761
64cb3757
AB
7622020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
763
764 * NEWS: Mention additions to Python API.
765 * python/py-arch.c (archpy_register_groups): New function.
766 (arch_object_methods): Add 'register_groups' method.
767 * python/py-registers.c (reggroup_iterator_object): New struct.
768 (reggroup_object): New struct.
769 (gdbpy_new_reggroup): New function.
770 (gdbpy_reggroup_to_string): New function.
771 (gdbpy_reggroup_name): New function.
772 (gdbpy_reggroup_iter): New function.
773 (gdbpy_reggroup_iter_next): New function.
774 (gdbpy_new_reggroup_iterator): New function
775 (gdbpy_initialize_registers): Register new types.
776 (reggroup_iterator_object_type): Define new Python type.
777 (gdbpy_reggroup_getset): New static global.
778 (reggroup_object_type): Define new Python type.
779 * python/python-internal.h
780
0f767f94
AB
7812020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
782
783 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
784 * python/py-arch.c (archpy_registers): New function.
785 (arch_object_methods): Add 'registers' method.
786 * python/py-registers.c: New file.
787 * python/python-internal.h
788 (gdbpy_new_register_descriptor_iterator): Declare.
789 (gdbpy_initialize_registers): Declare.
790 * python/python.c (do_start_initialization): Call
791 gdbpy_initialize_registers.
792 * NEWS: Mention additions to the Python API.
793
87dbc774
AB
7942020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
795
796 * NEWS: Mention new Python API method.
797 * python/py-unwind.c (pending_framepy_architecture): New function.
798 (pending_frame_object_methods): Add architecture method.
799
3bc98c0c
AB
8002020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
801
802 * gdbarch.c: Regenerate.
803 * gdbarch.h: Regenerate.
804 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
805 (gdbarch_data): Use internal_error for the case where
806 deprecated_set_gdbarch_data was originally needed.
807 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
808 and use passed in obstack.
809 (libunwind_frame_set_descr): Should no longer get back NULL from
810 gdbarch_data.
811 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
812 type.
813 * user-regs.c (user_regs_init): Update parameters, and use passed
814 in obstack.
815 (user_reg_add): Should no longer get back NULL from gdbarch_data.
816 (_initialize_user_regs): Register as a pre-init gdbarch data type.
817
d8cc8af6
TV
8182020-07-06 Tom de Vries <tdevries@suse.de>
819
820 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
821 End-Of-Sequence in lte_is_less_than.
822 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
823 "gdb: Don't reorder line table entries too much when sorting".
824
947f7597
TV
8252020-07-06 Tom de Vries <tdevries@suse.de>
826
827 PR tui/26205
828 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
829
1e7c1b22
TV
8302020-07-05 Tom de Vries <tdevries@suse.de>
831
832 PR build/26187
833 * inferior.h (struct infcall_suspend_state_deleter): If available, use
834 std::uncaught_exceptions instead of deprecated
835 std::uncaught_exception.
836
a36158ec
SM
8372020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
838
839 * macroexp.h (macro_stringify): Return
840 gdb::unique_xmalloc_ptr<char>.
841 * macroexp.c (macro_stringify): Likewise.
842 * macrotab.c (fixup_definition): Update.
843
14d960c8
SM
8442020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
845
846 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
847 (lex_one_token): Update.
848 * macroexp.c (struct macro_buffer) <release>: Return
849 gdb::unique_xmalloc_ptr<char>.
850 (macro_stringify): Update.
851 (macro_expand): Update.
852 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
853 * macroexp.h (macro_expand_next): Likewise.
854
211d5b1c
SM
8552020-07-02 Simon Marchi <simon.marchi@efficios.com>
856
857 * macroexp.h (macro_lookup_ftype): Remove.
858 (macro_expand, macro_expand_once, macro_expand_next): Remove
859 lookup function parameters, add scope parameter.
860 * macroexp.c (scan, substitute_args, expand, maybe_expand,
861 macro_expand, macro_expand_once, macro_expand_next): Likewise.
862 * macroscope.h (standard_macro_lookup): Change parameter type
863 to macro_scope.
864 * macroscope.c (standard_macro_lookup): Likewise.
865 * c-exp.y (lex_one_token): Update.
866 * macrocmd.c (macro_expand_command): Likewise.
867 (macro_expand_once_command): Likewise.
868
b1a35af2
SM
8692020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
870
871 * inf-loop.c (inferior_event_handler): Remove client_data param.
872 * inf-loop.h (inferior_event_handler): Likewise.
873 * infcmd.c (step_1): Adjust.
874 * infrun.c (proceed): Adjust.
875 (fetch_inferior_event): Remove client_data param.
876 (infrun_async_inferior_event_handler): Adjust.
877 * infrun.h (fetch_inferior_event): Remove `void *` param.
878 * linux-nat.c (handle_target_event): Adjust.
879 * record-btrace.c (record_btrace_handle_async_inferior_event):
880 Adjust.
881 * record-full.c (record_full_async_inferior_event_handler):
882 Adjust.
883 * remote.c (remote_async_inferior_event_handler): Adjust.
884
1cdf9e33
TT
8852020-07-01 Tom Tromey <tom@tromey.com>
886
887 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
888 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
889
32c1e210
TT
8902020-07-01 Tom Tromey <tom@tromey.com>
891
892 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
893 tui_gen_win_info.
894 (tui_win_info::make_window): Merge with
895 tui_gen_win_info::make_window.
896 (tui_win_info::make_visible): Move from tui_gen_win_info.
897 * tui/tui-win.c (tui_win_info::max_width): Move from
898 tui_gen_win_info.
899 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
900 type.
901 <window_factory>: Likewise.
902 * tui/tui-layout.c (tui_win_info::resize): Move from
903 tui_gen_win_info.
904 (make_standard_window): Change return type.
905 (get_locator_window, tui_get_window_by_name): Likewise.
906 (tui_layout_window::apply): Remove a cast.
907 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
908 (struct tui_win_info): Merge with tui_gen_win_info.
909 (struct tui_gen_win_info): Remove.
910
a30cb6da
TT
9112020-07-01 Tom Tromey <tom@tromey.com>
912
913 * tui/tui-stack.h (struct tui_locator_window): Derive from
914 tui_win_info.
915 <do_scroll_horizontal, do_scroll_vertical>: New methods.
916 <can_box>: New method.
917
1eb2161f
TT
9182020-07-01 Tom Tromey <tom@tromey.com>
919
920 * tui/tui-stack.h (struct tui_locator_window): Remove body.
921
7134f2eb
TT
9222020-07-01 Tom Tromey <tom@tromey.com>
923
924 * tui/tui-regs.c (tui_data_window::display_registers_from)
925 (tui_data_window::display_registers_from)
926 (tui_data_window::first_data_item_displayed)
927 (tui_data_window::delete_data_content_windows): Update.
928 (tui_data_window::refresh_window, tui_data_window::no_refresh):
929 Remove.
930 (tui_data_window::check_register_values): Update.
931 (tui_data_item_window::rerender): Add parameters. Update.
932 (tui_data_item_window::refresh_window): Remove.
933 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
934 virtual.
935 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
936 tui_gen_win_info.
937 <refresh_window, max_height, min_height>: Remove.
938 <rerender>: Add parameters.
939 <x, y, visible>: New members.
940 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
941 <m_item_width>: New member.
942
22b7b041
TT
9432020-07-01 Tom Tromey <tom@tromey.com>
944
945 * tui/tui-regs.c (tui_data_window::show_register_group)
946 (tui_data_window::check_register_values): Update.
947 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
948 from item_no.
949
c9753adb
TT
9502020-07-01 Tom Tromey <tom@tromey.com>
951
952 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
953 useless "if".
954
9ab26b4a
TT
9552020-07-01 Tom Tromey <tom@tromey.com>
956
957 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
958 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
959
e555083f
TT
9602020-07-01 Tom Tromey <tom@tromey.com>
961
962 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
963 * tui/tui-winsource.h (enum tui_line_or_address_kind)
964 (struct tui_line_or_address): Move from tui-data.h.
965 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
966 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
967 (tui_cmd_window, tui_source_window_base, tui_source_window)
968 (tui_disasm_window): Don't declare.
969 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
970 to tui-winsource.h.
971 (SINGLE_KEY): Move to tui-stack.c.
972
7a02bab7
TT
9732020-07-01 Tom Tromey <tom@tromey.com>
974
975 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
976 std::string.
977 * tui/tui-regs.c (class tab_expansion_file): New.
978 (tab_expansion_file::write): New method.
979 (tui_register_format): Change return type. Use
980 tab_expansion_file.
981 (tui_get_register, tui_data_window::display_registers_from)
982 (tui_data_item_window::rerender): Update.
983 * tui/tui-io.h (tui_expand_tabs): Don't declare.
984 * tui/tui-io.c (tui_expand_tabs): Remove.
985
ea68593b
TT
9862020-07-01 Tom Tromey <tom@tromey.com>
987
988 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
989
a8caed5d
FS
9902020-07-01 Fangrui Song <maskray@google.com>
991
992 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
993
9cdf9820
AKS
9942020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
995
996 * dwarf2/read.c (set_die_type): Removed conditions to restrict
997 forms for DW_AT_associated and DW_AT_allocated attributes,
998 which is already checked in function attr_to_dynamic_prop.
999
a1520ad8
TT
10002020-06-30 Tom Tromey <tromey@adacore.com>
1001
1002 * dwarf2/read.c (quirk_rust_enum): Correctly call
1003 alloc_rust_variant for default-less enum.
1004
5ac58899
TT
10052020-06-30 Tom Tromey <tromey@adacore.com>
1006
1007 PR build/26183:
1008 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1009 gdb::to_string.
1010
19b187a9
SM
10112020-06-29 Simon Marchi <simon.marchi@efficios.com>
1012
1013 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1014 * gdbarch.h: Re-generate.
1015
cd4c4c07
TT
10162020-06-28 Tom Tromey <tom@tromey.com>
1017
1018 * command.h (cmd_types): Remove.
1019 (cmd_type): Don't declare.
1020 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1021 typedef.
1022 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1023 * cli/cli-decode.c (cmd_type): Remove.
1024
05779d57
PA
10252020-06-27 Pedro Alves <palves@redhat.com>
1026
1027 * fork-child.c (prefork_hook): Adjust.
1028 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1029 Delete.
1030 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1031 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1032 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1033 Remove declarations.
1034 (struct inferior) <set_tty, tty>: New methods.
1035 (struct inferior) <terminal>: Rename to ...
1036 (struct inferior) <m_terminal>: ... this and make private.
1037 * main.c (captured_main_1): Adjust.
1038 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1039 (mi_cmd_inferior_tty_show): Adjust.
1040 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1041 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1042
1776e3e5
NA
10432020-06-26 Nick Alcock <nick.alcock@oracle.com>
1044
1045 * configure.ac: Add --enable-libctf: handle --disable-static
1046 properly.
1047 * acinclude.m4: sinclude ../config/enable.m4.
1048 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1049 (LIBCTF): Substitute in.
1050 (CTF_DEPS): New, likewise.
1051 (CLIBS): libctf needs symbols from libbfd: move earlier.
1052 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1053 flags.
1054 * ctfread.c: Surround in ENABLE_LIBCTF.
1055 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1056 * configure: Regenerate.
1057 * config.in: Likewise.
1058
58373b80
SM
10592020-06-25 Simon Marchi <simon.marchi@efficios.com>
1060
1061 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1062
277474ee
SM
10632020-06-25 Simon Marchi <simon.marchi@efficios.com>
1064
1065 * inferior.h (struct inferior) <terminal>: Change type to
1066 gdb::unique_xmalloc_ptr<char>.
1067 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1068 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1069 field, adjust to unique pointer.
1070 (get_inferior_io_terminal): Adjust to unique pointer.
1071
6d74da72
AB
10722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1073
1074 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1075 registers, not just the known core set of registers.
1076
2e52d038
AB
10772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1078
1079 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1080 fflags, frm, and fcsr registers.
1081 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1082 restore groups.
1083 (riscv_tdesc_unknown_reg): New function.
1084 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1085 tdesc_use_registers.
1086 * riscv-tdep.h (struct gdbarch_tdep): Add
1087 unknown_csrs_first_regnum, unknown_csrs_count,
1088 duplicate_fflags_regnum, duplicate_frm_regnum, and
1089 duplicate_fcsr_regnum fields.
1090
be64fd07
AB
10912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1092
1093 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1094 callback, use the callback (when not null) to help number unknown
1095 registers.
1096 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1097 (tdesc_use_registers): Add extra parameter to declaration.
1098
3b9fce96
AB
10992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1100
1101 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1102 in the file.
1103 (class riscv_pending_register_alias): Likewise.
1104 (riscv_register_feature::register_info): Change 'required_p' field
1105 to 'required', and change its type. Add 'check' member function.
1106 (riscv_register_feature::register_info::check): Define new member
1107 function.
1108 (riscv_xreg_feature): Change initialisation of 'required' field.
1109 (riscv_freg_feature): Likewise.
1110 (riscv_virtual_feature): Likewise.
1111 (riscv_csr_feature): Likewise.
1112 (riscv_check_tdesc_feature): Take extra parameter, the csr
1113 tdesc_feature, rewrite the function to use the new
1114 riscv_register_feature::register_info::check function.
1115 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1116
865bad26
AB
11172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1118
1119 * features/Makefile: Remove all references to the deleted files
1120 below.
1121 * features/riscv/32bit-csr.c: Deleted.
1122 * features/riscv/32bit-csr.xml: Deleted.
1123 * features/riscv/64bit-csr.c: Deleted.
1124 * features/riscv/64bit-csr.xml: Deleted.
1125 * features/riscv/rebuild-csr-xml.sh: Deleted.
1126
ed69cbc8
AB
11272020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1128
1129 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1130 whitespace error for declaration of names member variable.
1131 (struct riscv_register_feature): Add new prefer_first_name member
1132 variable, and fix whitespace error in declaration of registers.
1133 (riscv_xreg_feature): Initialize prefer_first_name field.
1134 (riscv_freg_feature): Likewise.
1135 (riscv_virtual_feature): Likewise.
1136 (riscv_csr_feature): Likewise.
1137 (riscv_register_name): Expand on comments. Remove register name
1138 modifications for CSR and virtual registers.
1139
4445e8f5
AB
11402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1141
1142 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1143 errors.
1144
767a879e
AB
11452020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1146
1147 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1148 riscv-opc.h.
1149 (class riscv_pending_register_alias): New class.
1150 (riscv_check_tdesc_feature): Take vector of pending aliases and
1151 populate it as appropriate.
1152 (riscv_setup_register_aliases): Delete.
1153 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1154 to riscv_check_tdesc_feature in all cases. Use the vector to
1155 create the register aliases.
1156
bb6e55f3
RO
11572020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1158
1159 * sol2-tdep.c (sol2_static_transform_name): Remove.
1160 (sol2_init_abi): Don't register it.
1161 * gdbarch.sh (static_transform_name): Remove.
1162 * gdbarch.c, gdbarch.h: Regenerate.
1163
1164 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1165 gdbarch_static_transform_name.
1166 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1167 * stabsread.c (define_symbol) <'X'>: Remove.
1168 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1169 handling.
1170 <'V'>: Likewise.
1171 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1172 <'S'>: Remove call to gdbarch_static_transform_name.
1173
c6d36836
RO
11742020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1175
1176 * procfs.c (procfs_pre_trace): New function.
1177 (procfs_target::create_inferior): Pass it to fork_inferior.
1178
a7e6196b
RO
11792020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1180
1181 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1182 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1183 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1184 sol2-tdep.o, sparc-sol2-tdep.o.
1185 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1186 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1187 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1188 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1189
d412e696
RO
11902020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1191
1192 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1193 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1194 Call sol2_init_abi.
1195 Remove calls to set_gdbarch_skip_solib_resolver,
1196 set_gdbarch_core_pid_to_str.
1197 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1198 (i386_sol2_static_transform_name): Remove.
1199 (i386_sol2_init_abi): Call sol2_init_abi.
1200 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1201 set_gdbarch_static_transform_name,
1202 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1203 Use sol2_sigtramp_p.
1204 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1205 (sol2_sigtramp_p): New function.
1206 (sol2_static_transform_name): New function.
1207 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1208 (sol2_init_abi): New function.
1209 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1210 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1211 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1212 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1213 (sparc_sol2_static_transform_name): Remove.
1214 (sparc32_sol2_init_abi): Call sol2_init_abi.
1215 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1216 set_gdbarch_static_transform_name,
1217 set_gdbarch_skip_solib_resolver,
1218 set_gdbarch_core_pid_to_str.
1219 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1220 (sparc_sol2_static_transform_name): Remove
1221 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1222 call sol2_sigtramp_p.
1223 (sparc64_sol2_init_abi): Call sol2_init_abi.
1224 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1225 set_gdbarch_static_transform_name,
1226 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1227
a8654e7d
PW
12282020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1229
1230 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1231 * exec.c (validate_exec_file): If from_tty, set both
1232 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1233 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1234 and from_tty, unconditionally ask a confirmation.
1235
caa7fd04
AB
12362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1237
1238 * target-descriptions.c (tdesc_architecture_name): Protect against
1239 NULL pointer dereference.
1240 (maint_print_xml_tdesc_cmd): New function.
1241 (_initialize_target_descriptions): Register new 'maint print
1242 xml-tdesc' command and give it the filename completer.
1243 * NEWS: Mention new 'maint print xml-tdesc' command.
1244
fbf42f4e
AB
12452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1246
1247 * target-descriptions.c (class tdesc_compatible_info): New class.
1248 (struct target_desc): Change type of compatible vector.
1249 (tdesc_compatible_p): Update for change in type of
1250 target_desc::compatible.
1251 (tdesc_compatible_info_list): New function.
1252 (tdesc_compatible_info_arch_name): New function.
1253 (tdesc_add_compatible): Update for change in type of
1254 target_desc::compatible.
1255 (print_c_tdesc::visit_pre): Likewise.
1256
20821f4e
AB
12572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1258
1259 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1260 whitespace to underscore.
1261 (maint_print_c_tdesc_cmd): Use fake filename for target
1262 descriptions that came from the target.
1263 (_initialize_target_descriptions): Add filename command completion
1264 for 'maint print c-tdesc'.
1265
1fb5ee62
SM
12662020-06-23 Simon Marchi <simon.marchi@efficios.com>
1267
1268 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1269 lines.
1270
fc3ecb3e
SM
12712020-06-23 Simon Marchi <simon.marchi@efficios.com>
1272
1273 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1274 lines.
1275 (dwarf2_find_location_expression): Likewise.
1276 (call_site_parameter_matches): Likewise.
1277 (dwarf2_compile_expr_to_ax): Likewise.
1278 (disassemble_dwarf_expression): Likewise.
1279 (loclist_describe_location): Likewise.
1280
236ef034
PA
12812020-06-23 Pedro Alves <palves@redhat.com>
1282
1283 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1284 progspace-and-thread.h. Include scoped-mock-context.h instead.
1285 (register_to_value_test): Use scoped_mock_context.
1286 * regcache.c: Include "scoped-mock-context.h".
1287 (cooked_read_test): Don't error out if a target is already pushed.
1288 Use scoped_mock_context. Adjust.
1289 * scoped-mock-context.h: New file.
1290
39e7ecca
AB
12912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1292
1293 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1294 initializer.
1295 (ada_language::is_string_type_p): New member function.
1296 * c-lang.c (c_language_data): Delete la_is_string_type_p
1297 initializer.
1298 (cplus_language_data): Likewise.
1299 (asm_language_data): Likewise.
1300 (minimal_language_data): Likewise.
1301 * d-lang.c (d_language_data): Likewise.
1302 * f-lang.c (f_is_string_type_p): Delete function, implementation
1303 moved to f_language::is_string_type_p.
1304 (f_language_data): Delete la_is_string_type_p initializer.
1305 (f_language::is_string_type_p): New member function,
1306 implementation from f_is_string_type_p.
1307 * go-lang.c (go_is_string_type_p): Delete function, implementation
1308 moved to go_language::is_string_type_p.
1309 (go_language_data): Delete la_is_string_type_p initializer.
1310 (go_language::is_string_type_p): New member function,
1311 implementation from go_is_string_type_p.
1312 * language.c (language_defn::is_string_type_p): Define new member
1313 function.
1314 (default_is_string_type_p): Make static, add comment copied from
1315 header file.
1316 (unknown_language_data): Delete la_is_string_type_p initializer.
1317 (unknown_language::is_string_type_p): New member function.
1318 (auto_language_data): Delete la_is_string_type_p initializer.
1319 (auto_language::is_string_type_p): New member function.
1320 * language.h (language_data): Delete la_is_string_type_p field.
1321 (language_defn::is_string_type_p): Declare new function.
1322 (default_is_string_type_p): Delete desclaration, move comment to
1323 definition.
1324 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1325 moved to m2_language::is_string_type_p.
1326 (m2_language_data): Delete la_is_string_type_p initializer.
1327 (m2_language::is_string_type_p): New member function,
1328 implementation from m2_is_string_type_p.
1329 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1330 initializer.
1331 * opencl-lang.c (opencl_language_data): Likewise.
1332 * p-lang.c (pascal_is_string_type_p): Delete function,
1333 implementation moved to pascal_language::is_string_type_p.
1334 (pascal_language_data): Delete la_is_string_type_p initializer.
1335 (pascal_language::is_string_type_p): New member function,
1336 implementation from pascal_is_string_type_p.
1337 * rust-lang.c (rust_is_string_type_p): Delete function,
1338 implementation moved to rust_language::is_string_type_p.
1339 (rust_language_data): Delete la_is_string_type_p initializer.
1340 (rust_language::is_string_type_p): New member function,
1341 implementation from rust_is_string_type_p.
1342 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1343 is_string_type_p.
1344
4ffc13fb
AB
13452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1346
1347 * ada-lang.c (ada_language_data): Delete la_print_typedef
1348 initializer.
1349 (ada_language::print_typedef): New member function.
1350 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1351 (cplus_language_data): Likewise.
1352 (asm_language_data): Likewise.
1353 (minimal_language_data): Likewise.
1354 * d-lang.c (d_language_data): Likewise.
1355 * f-lang.c (f_language_data): Likewise.
1356 (f_language::print_typedef): New member function.
1357 * go-lang.c (go_language_data): Delete la_print_typedef
1358 initializer.
1359 * language.c (language_defn::print_typedef): Define member
1360 function.
1361 (unknown_language_data): Delete la_print_typedef initializer.
1362 (unknown_language::print_typedef): New member function.
1363 (auto_language_data): Delete la_print_typedef initializer.
1364 (auto_language::print_typedef): New member function.
1365 * language.h (language_data): Delete la_print_typedef field.
1366 (language_defn::print_typedef): Declare new member function.
1367 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1368 (default_print_typedef): Delete declaration.
1369 * m2-lang.c (m2_language_data): Delete la_print_typedef
1370 initializer.
1371 (m2_language::print_typedef): New member function.
1372 * objc-lang.c (objc_language_data): Delete la_print_typedef
1373 initializer.
1374 * opencl-lang.c (opencl_language_data): Likewise.
1375 * p-lang.c (pascal_language_data): Likewise.
1376 (pascal_language::print_typedef): New member function.
1377 * rust-lang.c (rust_print_typedef): Delete function,
1378 implementation moved to rust_language::print_typedef.
1379 (rust_language): Delete la_print_typedef initializer.
1380 (rust_language::print_typedef): New member function,
1381 implementation from rust_print_typedef.
1382 * typeprint.c (default_print_typedef): Delete.
1383
d711ee67
AB
13842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1385
1386 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1387 (ada_language::printstr): New member function.
1388 * c-lang.c (c_language_data): Delete la_printstr initializer.
1389 (cplus_language_data): Likewise.
1390 (asm_language_data): Likewise.
1391 (minimal_language_data): Likewise.
1392 * d-lang.c (d_language_data): Likewise.
1393 * f-lang.c (f_printstr): Rename to f_language::printstr.
1394 (f_language_data): Delete la_printstr initializer.
1395 (f_language::printstr): New member function, implementation from
1396 f_printstr.
1397 * go-lang.c (go_language_data): Delete la_printstr initializer.
1398 * language.c (language_defn::printstr): Define new member
1399 function.
1400 (unk_lang_printstr): Delete.
1401 (unknown_language_data): Delete la_printstr initializer.
1402 (unknown_language::printstr): New member function.
1403 (auto_language_data): Delete la_printstr initializer.
1404 (auto_language::printstr): New member function.
1405 * language.h (language_data): Delete la_printstr field.
1406 (language_defn::printstr): Declare new member function.
1407 (LA_PRINT_STRING): Update call to printstr.
1408 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1409 (m2_language_data): Delete la_printstr initializer.
1410 (m2_language::printstr): New member function, implementation from
1411 m2_printstr.
1412 * objc-lang.c (objc_language_data): Delete la_printstr
1413 initializer.
1414 * opencl-lang.c (opencl_language_data): Likewise.
1415 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1416 (pascal_language_data): Delete la_printstr initializer.
1417 (pascal_language::printstr): New member function, implementation
1418 from pascal_printstr.
1419 * p-lang.h (pascal_printstr): Delete declaration.
1420 * rust-lang.c (rust_printstr): Update header comment.
1421 (rust_language_data): Delete la_printstr initializer.
1422 (rust_language::printstr): New member function.
1423
52b50f2c
AB
14242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1425
1426 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1427 (ada_language::printchar): New member function.
1428 * c-lang.c (c_language_data): Delete la_printchar initializer.
1429 (cplus_language_data): Likewise.
1430 (asm_language_data): Likewise.
1431 (minimal_language_data): Likewise.
1432 * d-lang.c (d_language_data): Likewise.
1433 * f-lang.c (f_printchar): Rename to f_language::printchar.
1434 (f_language_data): Delete la_printchar initializer.
1435 (f_language::printchar): New member function, implementation from
1436 f_printchar.
1437 * go-lang.c (go_language_data): Delete la_printchar initializer.
1438 * language.c (unk_lang_printchar): Delete.
1439 (language_defn::printchar): Define new member function.
1440 (unknown_language_data): Delete la_printchar initializer.
1441 (unknown_language::printchar): New member function.
1442 (auto_language_data): Delete la_printchar initializer.
1443 (auto_language::printchar): New member function.
1444 * language.h (language_data): Delete la_printchar field.
1445 (language_defn::printchar): Declare new member function.
1446 (LA_PRINT_CHAR): Update call to printchar.
1447 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1448 (m2_language::printchar): New member function.
1449 * objc-lang.c (objc_language_data): Delete la_printchar
1450 initializer.
1451 * opencl-lang.c (opencl_language_data): Likewise.
1452 * p-lang.c (pascal_language_data): Delete la_printchar
1453 initializer.
1454 (pascal_language::printchar): New member function.
1455 * rust-lang.c (rust_printchar): Rename to
1456 rust_language::printchar.
1457 (rust_language_data): Delete la_printchar initializer.
1458 (rust_language::printchar): New member function, implementation
1459 from rust_printchar.
1460
ec8cec5b
AB
14612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1462
1463 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1464 (ada_language_data): Delete la_emitchar initializer.
1465 (ada_language::emitchar): New member function, implementation from
1466 emit_char.
1467 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1468 (cplus_language_data): Likewise.
1469 (asm_language_data): Likewise.
1470 (minimal_language_data): Likewise.
1471 * d-lang.c (d_language_data): Likewise.
1472 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1473 (f_language_data): Delete la_emitchar initializer.
1474 (f_language::emitchar): New member function, implementation from
1475 f_emit_char.
1476 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1477 * language.c (unk_lang_emit_char): Delete.
1478 (language_defn::emitchar): New member function definition.
1479 (unknown_language_data): Delete la_emitchar initializer.
1480 (unknown_language::emitchar): New member function.
1481 (auto_language_data): Delete la_emitchar initializer.
1482 (auto_language::emitchar): New member function.
1483 * language.h (language_data): Delete la_emitchar field.
1484 (language_defn::emitchar): New member field declaration.
1485 (LA_EMIT_CHAR): Update call to emitchar.
1486 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1487 (m2_language_data): Delete la_emitchar initializer.
1488 (m2_language::emitchar): New member function, implementation from
1489 m2_emit_char.
1490 * objc-lang.c (objc_language_data): Delete la_emitchar
1491 initializer.
1492 * opencl-lang.c (opencl_language_data): Likewise.
1493 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1494 (pascal_language_data): Delete la_emitchar initializer.
1495 (pascal_language::emitchar): New member function, implementation
1496 from pascal_emit_char.
1497 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1498 (rust_language_data): Delete la_emitchar initializer.
1499 (rust_language::emitchar): New member function, implementation
1500 from rust_emitchar.
1501
1bf9c363
AB
15022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1503
1504 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1505 (ada_language_data): Delete la_post_parser initializer.
1506 (ada_language::post_parser): New member function.
1507 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1508 (cplus_language_data): Likewise.
1509 (asm_language_data): Likewise.
1510 (minimal_language_data): Likewise.
1511 * d-lang.c (d_language_data): Likewise.
1512 * f-lang.c (f_language_data): Likewise.
1513 * go-lang.c (go_language_data): Likewise.
1514 * language.c (unknown_language_data): Likewise.
1515 (auto_language_data): Likewise.
1516 * language.h (language_data): Delete la_post_parser field.
1517 (language_defn::post_parser): New member function.
1518 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1519 * objc-lang.c (objc_language_data): Likewise.
1520 * opencl-lang.c (opencl_language_data): Likewise.
1521 * p-lang.c (pascal_language_data): Likewise.
1522 * parse.c (parse_exp_in_context): Update call to post_parser.
1523 (null_post_parser): Delete definition.
1524 * parser-defs.h (null_post_parser): Delete declaration.
1525 * rust-lang.c (rust_language_data): Delete la_post_parser
1526 initializer.
1527
87afa652
AB
15282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1529
1530 * ada-lang.c (parse): Rename to ada_language::parser.
1531 (ada_language_data): Delete la_parser initializer.
1532 (ada_language::parser): New member function, implementation from
1533 parse.
1534 * c-lang.c (c_language_data): Delete la_parser initializer.
1535 (cplus_language_data): Likewise.
1536 (asm_language_data): Likewise.
1537 (minimal_language_data): Likewise.
1538 * d-lang.c (d_language_data): Likewise.
1539 (d_language::parser): New member function.
1540 * f-lang.c (f_language_data): Delete la_parser initializer.
1541 (f_language::parser): New member function.
1542 * go-lang.c (go_language_data): Delete la_parser initializer.
1543 (go_language::parser): New member function.
1544 * language.c (unk_lang_parser): Delete.
1545 (language_defn::parser): Define new member function.
1546 (unknown_language_data): Delete la_parser initializer.
1547 (unknown_language::parser): New member function.
1548 (auto_language_data): Delete la_parser initializer.
1549 (auto_language::parser): New member function.
1550 * language.h (language_data): Delete la_parser field.
1551 (language_defn::parser): Declare new member function.
1552 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1553 (m2_language::parser): New member function.
1554 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1555 * opencl-lang.c (opencl_language_data): Likewise.
1556 * p-lang.c (pascal_language_data): Likewise.
1557 (pascal_language::parser): New member function.
1558 * parse.c (parse_exp_in_context): Update call to parser.
1559 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1560 (rust_language::parser): New member function.
1561
37825800
AB
15622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1563
1564 * top.c (print_gdb_configuration): Print --with-python-libdir
1565 configuration value.
1566
5b860c93
PW
15672020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1568
1569 * NEWS: Mention change to the alias command.
1570
cf00cd6f
PW
15712020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1572
1573 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1574 (alias_command_completer)
1575 (make_alias_options_def_group): New functions.
1576 (alias_opts, alias_option_defs): New struct and array.
1577 (alias_usage_error): Update usage.
1578 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1579 Use option framework.
1580 (_initialize_cli_cmds): Update alias command help.
1581 Update aliases command help.
1582 (show_user):
1583 Add NULL for new default_args lookup_cmd argument.
1584 (valid_command_p): Rename to validate_aliased_command.
1585 Add NULL for new default_args lookup_cmd argument. Verify that the
1586 aliased_command has no default args.
1587 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1588 (lookup_cmd_1, lookup_cmd): New argument default_args.
1589 (add_alias_cmd):
1590 Add NULL for new default_args lookup_cmd argument.
1591 (print_help_for_command): Show default args under the layout
1592 alias some_alias = some_aliased_cmd some_alias_default_arg.
1593 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1594 xfree default_args in destructor.
1595 * cli/cli-script.c (process_next_line, do_define_command):
1596 Add NULL for new default_args lookup_cmd argument.
1597 * command.h: Declare new default_args argument in lookup_cmd
1598 and lookup_cmd_1.
1599 * completer.c (complete_line_internal_1):
1600 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1601 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1602 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1603 Likewise.
1604 * infcmd.c (_initialize_infcmd): Likewise.
1605 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1606 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1607 * python/py-param.c (add_setshow_generic): Likewise.
1608 * remote.c (_initialize_remote): Likewise.
1609 * top.c (execute_command): Prepend default_args if command has some.
1610 (set_verbose):
1611 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1612 * tracepoint.c (validate_actionline, encode_actions_1):
1613 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1614
bd920864
TBA
16152020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1616
1617 * jit.c (jit_read_descriptor): Use bool as the return type.
1618 (jit_breakpoint_re_set_internal): Use bool as the return type.
1619 Invert the return value logic; return true if the jit breakpoint
1620 has been successfully initialized.
1621 (jit_inferior_init): Update the call to
1622 jit_breakpoint_re_set_internal.
1623
f8098322
PA
16242020-06-22 Pedro Alves <palves@redhat.com>
1625
1626 PR gdb/25939
1627 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1628 Use the current inferior instead. Don't return
1629 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1630 wait again.
1631 * sol-thread.c (sol_thread_target::wait): Don't reference
1632 inferior_ptid.
1633 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1634 (sol_update_thread_list_callback): Use the current inferior's pid
1635 instead of inferior_ptid.
1636
196535a6
RO
16372020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1638
1639 * procfs.c: Cleanup many comments.
1640
1641 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1642 (AFTER_WATCHFLAG): Replace by value.
1643
1644 (MAIN_PROC_NAME_FORMAT): Inline ...
1645 (create_procinfo): ... here.
1646
1647 (procfs_debug_inferior): Remove SYS_exec handling.
1648 (syscall_is_exec): Likewise.
1649 (procfs_set_exec_trap): Likewise.
1650
1651 (syscall_is_lwp_exit): Inline in callers.
1652 (syscall_is_exit): Likewise.
1653 (syscall_is_exec): Likewise.
1654 (syscall_is_lwp_create): Likewise.
1655
1656 (invalidate_cache): Remove #if 0 code.
1657
1658 (make_signal_thread_runnable): Remove.
1659 (procfs_target::resume): Remove #if 0 code.
1660
cf6f3e86
RO
16612020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1662
1663 PR gdb/25939
1664 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1665 call ...
1666 (procfs_target::create_inferior): ... here.
1667
48e9cc84
PW
16682020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1669
1670 * exec.c (validate_exec_file): Ensure the build-id is up to
1671 date by calling reopen_exec_file (that checks file timestamp
1672 to decide to re-read the file).
1673
3922b302
PA
16742020-06-18 Pedro Alves <palves@redhat.com>
1675
1676 PR gdb/25412
1677 * gdbthread.h (delete_thread, delete_thread_silent)
1678 (find_thread_ptid): Update comments.
1679 * thread.c (current_thread_): New global.
1680 (is_current_thread): Move higher, and reimplement.
1681 (inferior_thread): Reimplement.
1682 (set_thread_exited): Use bool. Add assertions.
1683 (add_thread_silent): Simplify thread-reuse handling by always
1684 calling delete_thread.
1685 (delete_thread): Remove intro comment.
1686 (find_thread_ptid): Skip exited threads.
1687 (switch_to_thread_no_regs): Write to current_thread_.
1688 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1689 INFERIOR_PTID. Clear current_thread_.
1690
6dbdab44
PA
16912020-06-18 Pedro Alves <palves@redhat.com>
1692
1693 * aix-thread.c (pd_update): Use switch_to_thread.
1694
2da4b788
PA
16952020-06-18 Pedro Alves <palves@redhat.com>
1696
1697 * ravenscar-thread.c (ravenscar_thread_target): Update.
1698 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1699 (ravenscar_thread_target::add_active_thread): ... this. Don't
1700 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1701 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1702
50838d1b
PA
17032020-06-18 Pedro Alves <palves@redhat.com>
1704
1705 * nat/windows-nat.c (current_windows_thread): Remove.
1706 * nat/windows-nat.h (current_windows_thread): Remove.
1707 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1708 Adjust.
1709 (display_selectors): Adjust to fetch the current
1710 windows_thread_info based on inferior_ptid.
1711 (fake_create_process): No longer write to current_windows_thread.
1712 (windows_nat_target::get_windows_debug_event):
1713 Don't set inferior_ptid or current_windows_thread.
1714 (windows_nat_target::wait): Adjust to not rely on
1715 current_windows_thread.
1716 (do_initial_windows_stuff): Now a method of windows_nat_target.
1717 Switch to the last_ptid thread.
1718 (windows_nat_target::attach): Adjust.
1719 (windows_nat_target::detach): Use switch_to_no_thread instead of
1720 writing to inferior_ptid directly.
1721 (windows_nat_target::create_inferior): Adjust.
1722
31ce04e9
PA
17232020-06-18 Pedro Alves <palves@redhat.com>
1724
1725 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1726
1ee1a363
PA
17272020-06-18 Pedro Alves <palves@redhat.com>
1728
1729 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1730 after creating it, instead of writing to inferior_ptid. Don't
1731 write to inferior_ptid.
1732
6d350754
PA
17332020-06-18 Pedro Alves <palves@redhat.com>
1734
1735 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1736
5d971d48
PA
17372020-06-18 Pedro Alves <palves@redhat.com>
1738
1739 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1740 it, instead of writing to inferior_ptid.
1741
86e57d1b
PA
17422020-06-18 Pedro Alves <palves@redhat.com>
1743
1744 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1745 to inferior_ptid.
1746
f2e1c129
PA
17472020-06-18 Pedro Alves <palves@redhat.com>
1748
1749 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1750 instead of writing to inferior_ptid directly.
1751
60db1b85
PA
17522020-06-18 Pedro Alves <palves@redhat.com>
1753
1754 * corelow.c (core_target::close): Use switch_to_no_thread instead
1755 of writing to inferior_ptid directly.
1756 (add_to_thread_list, core_target_open): Use switch_to_thread
1757 instead of writing to inferior_ptid directly.
1758
fe7d6a8d
PA
17592020-06-18 Pedro Alves <palves@redhat.com>
1760
1761 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1762 inferior_ptid.
1763 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1764 inferior_ptid.
1765 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1766 inferior_ptid directly.
1767 (darwin_nat_target::init_thread_list): Switch to thread, instead
1768 of writing to inferior_ptid.
1769 (darwin_nat_target::attach): Don't write to inferior_ptid.
1770 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1771
975f8708
PA
17722020-06-18 Pedro Alves <palves@redhat.com>
1773
1774 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1775 thread.
1776 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1777 Instead use switch_to_thread.
1778 (gnu_nat_target::detach): Use switch_to_no_thread
1779 instead of writing to inferior_ptid directly. Used passed-in
1780 inferior instead of looking up the inferior by pid.
1781
1a204730
PA
17822020-06-18 Pedro Alves <palves@redhat.com>
1783
1784 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1785 inferior_ptid.
1786
ebe84f23
PA
17872020-06-18 Pedro Alves <palves@redhat.com>
1788
1789 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1790 inferior_ptid.
1791 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1792 thread.
1793 (nto_procfs_target::detach): Avoid referencing
1794 inferior_ptid. Use switch_to_no_thread instead of writing to
1795 inferior_ptid directly.
1796 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1797 instead of writing to inferior_ptid directly.
1798 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1799 to thread.
1800
191f02e5
PA
18012020-06-18 Pedro Alves <palves@redhat.com>
1802
1803 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1804 after creating it, instead of writing to inferior_ptid.
1805 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1806 to inferior_ptid directly.
1807 (gdbsim_target::wait): Don't write to inferior_ptid.
1808
0ac55310
PA
18092020-06-18 Pedro Alves <palves@redhat.com>
1810
1811 * remote.c (remote_target::remote_notice_new_inferior): Use
1812 switch_to_thread instead of writing to inferior_ptid directly.
1813 (remote_target::add_current_inferior_and_thread): Use
1814 switch_to_no_thread instead of writing to inferior_ptid directly.
1815 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1816 and switch_to_thread instead of using set_current_inferior or
1817 writing to inferior_ptid directly.
1818
5233f39b
PA
18192020-06-18 Pedro Alves <palves@redhat.com>
1820
1821 * tracectf.c (ctf_target_open): Switch to added thread instead of
1822 writing to inferior_ptid directly.
1823 (ctf_target::close): Use switch_to_no_thread instead of writing to
1824 inferior_ptid directly.
1825
087e161b
PA
18262020-06-18 Pedro Alves <palves@redhat.com>
1827
1828 * tracefile-tfile.c (tfile_target_open): Don't write to
1829 inferior_ptid directly, instead switch to added thread.
1830 (tfile_target::close): Use switch_to_no_thread instead of writing
1831 to inferior_ptid directly.
1832
7fb43e53
PA
18332020-06-18 Pedro Alves <palves@redhat.com>
1834
1835 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1836 (procfs_target::detach): Use switch_to_no_thread
1837 instead of writing to inferior_ptid directly.
1838 (do_attach): Change return type to void. Switch to the added
1839 thread.
1840 (procfs_target::create_inferior): Switch to the added thread.
1841 (procfs_do_thread_registers): Don't write to inferior_ptid.
1842
18493a00
PA
18432020-06-18 Pedro Alves <palves@redhat.com>
1844
1845 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1846 of writing to inferior_ptid.
1847 (scoped_restore_exited_inferior): Delete.
1848 (handle_vfork_child_exec_or_exit): Simplify using
1849 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1850 instead of writing to inferior_ptid.
1851 (THREAD_STOPPED_BY): Delete.
1852 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1853 (thread_stopped_by_hw_breakpoint): Delete.
1854 (save_waitstatus): Use
1855 scoped_restore_current_thread+switch_to_thread, and call
1856 target_stopped_by_watchpoint instead of
1857 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1858 instead of thread_stopped_by_sw_breakpoint, and
1859 target_stopped_by_hw_breakpoint instead of
1860 thread_stopped_by_hw_breakpoint.
1861 (handle_inferior_event)
1862 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1863 inferior_ptid directly, nor
1864 set_current_inferior/set_current_program_space. Use
1865 switch_to_thread / switch_to_inferior_no_thread instead.
1866
a0776b13
PA
18672020-06-18 Pedro Alves <palves@redhat.com>
1868
1869 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1870 instead of writing to inferior_ptid.
1871
6155c136
PA
18722020-06-18 Pedro Alves <palves@redhat.com>
1873
1874 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1875 added thread.
1876 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1877 to the added thread.
1878 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1879 instead of writing to inferior_ptid.
1880
c5316fc6
PA
18812020-06-18 Pedro Alves <palves@redhat.com>
1882
1883 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1884 (register_to_value_test): Mock a program_space too. Heap-allocate
1885 the address space. Don't write to inferior_ptid. Use
1886 switch_to_thread instead.
1887
8df01799
PA
18882020-06-18 Pedro Alves <palves@redhat.com>
1889
1890 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1891 Delete.
1892 (find_signalled_thread()): New, factored out from
1893 linux_make_corefile_notes and adjusted to handle exited threads.
1894 (linux_make_corefile_notes): Adjust to use the new
1895 find_signalled_thread.
1896
41792d68
PA
18972020-06-18 Pedro Alves <palves@redhat.com>
1898
1899 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1900 of saving/restoring inferior_ptid.
1901
612f258a
TT
19022020-06-17 Tom Tromey <tom@tromey.com>
1903
1904 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1905 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1906 declare.
1907 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1908
efb763a5
SM
19092020-06-15 Simon Marchi <simon.marchi@efficios.com>
1910
1911 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1912 of partial symtabs.
1913
2951f6c0
SM
19142020-06-17 Simon Marchi <simon.marchi@efficios.com>
1915
1916 * regformats/reg-arm.dat: Remove.
1917 * regformats/reg-bfin.dat: Remove.
1918 * regformats/reg-cris.dat: Remove.
1919 * regformats/reg-crisv32.dat: Remove.
1920 * regformats/reg-m32r.dat: Remove.
1921 * regformats/reg-tilegx.dat: Remove.
1922 * regformats/reg-tilegx32.dat: Remove.
1923
7d458ea5
SM
19242020-06-17 Simon Marchi <simon.marchi@efficios.com>
1925
1926 * features/Makefile (WHICH): Remove arm files.
1927 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1928 * regformats/arm/arm-with-neon.dat: Remove.
1929 * regformats/arm/arm-with-vfpv2.dat: Remove.
1930 * regformats/arm/arm-with-vfpv3.dat: Remove.
1931
3af96c0d
SM
19322020-06-17 Simon Marchi <simon.marchi@efficios.com>
1933
1934 * features/Makefile (XMLTOC): Remove rx.xml.
1935
b25e22fd
PA
19362020-06-17 Pedro Alves <palves@redhat.com>
1937
1938 * gdbthread.h (thread_control_state) <trap_expected> Update
1939 comments.
1940
a78a19b1
AB
19412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1942
1943 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1944 ada_language::lookup_symbol_nonlocal.
1945 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1946 (ada_language::lookup_symbol_nonlocal): New member function,
1947 implementation from ada_lookup_symbol_nonlocal.
1948 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1949 initializer.
1950 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1951 initializer.
1952 (cplus_language::lookup_symbol_nonlocal): New member function.
1953 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1954 (minimal_language_data) Likewise.
1955 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1956 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1957 initializer.
1958 (d_language::lookup_symbol_nonlocal): New member function.
1959 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1960 initializer.
1961 (f_language::lookup_symbol_nonlocal): New member function.
1962 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1963 initializer.
1964 * language.c (unknown_language_data): Likewise.
1965 (auto_language_data): Likewise.
1966 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1967 field.
1968 (language_defn::lookup_symbol_nonlocal): New member function.
1969 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1970 initializer.
1971 * objc-lang.c (objc_language_data): Likewise.
1972 * opencl-lang.c (opencl_language_data): Likewise.
1973 * p-lang.c (pascal_language_data): Likewise.
1974 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1975 rust_language::lookup_symbol_nonlocal.
1976 (rust_language_data): Delete la_lookup_symbol_nonlocal
1977 initializer.
1978 (rust_language::lookup_symbol_nonlocal): New member function,
1979 implementation from rust_lookup_symbol_nonlocal.
1980 * symtab.c (lookup_symbol_aux): Update call to
1981 lookup_symbol_nonlocal.
1982 (basic_lookup_symbol_nonlocal): Rename to...
1983 (language_defn::lookup_symbol_nonlocal): ...this, and update
1984 header comment. Remove language_defn parameter, and replace with
1985 uses of `this'.
1986 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1987
ebe2334e
AB
19882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1989
1990 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1991 initializer.
1992 (ada_language::value_print_inner): New member function.
1993 * c-lang.c (c_language_data): Delete la_value_print_inner
1994 initializer.
1995 (cplus_language_data): Likewise.
1996 (asm_language_data): Likewise.
1997 (minimal_language_data): Likewise.
1998 * d-lang.c (d_language_data): Likewise.
1999 (d_language::value_print_inner): New member function.
2000 * f-lang.c (f_language_data): Delete la_value_print_inner
2001 initializer.
2002 (f_language::value_print_inner): New member function.
2003 * f-lang.h (f_value_print_innner): Rename to...
2004 (f_value_print_inner): ...this (note spelling of 'inner').
2005 * f-valprint.c (f_value_print_innner): Rename to...
2006 (f_value_print_inner): ...this (note spelling of 'inner').
2007 * go-lang.c (go_language_data): Delete la_value_print_inner
2008 initializer.
2009 (go_language::value_print_inner): New member function.
2010 * language.c (language_defn::value_print_inner): Define new member
2011 function.
2012 (unk_lang_value_print_inner): Delete.
2013 (unknown_language_data): Delete la_value_print_inner initializer.
2014 (unknown_language::value_print_inner): New member function.
2015 (auto_language_data): Delete la_value_print_inner initializer.
2016 (auto_language::value_print_inner): New member function.
2017 * language.h (language_data): Delete la_value_print_inner field.
2018 (language_defn::value_print_inner): Delcare new member function.
2019 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2020 initializer.
2021 (m2_language::value_print_inner): New member function.
2022 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2023 initializer.
2024 * opencl-lang.c (opencl_language_data): Likewise.
2025 * p-lang.c (pascal_language_data): Likewise.
2026 (pascal_language::value_print_inner): New member function.
2027 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2028 initializer.
2029 (rust_language::value_print_inner): New member function.
2030 * valprint.c (do_val_print): Update call to value_print_inner.
2031
a1d1fa3e
AB
20322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2033
2034 * ada-lang.c (ada_language_data): Delete la_value_print
2035 initializer.
2036 (ada_language::value_print): New member function.
2037 * c-lang.c (c_language_data): Delete la_value_print initializer.
2038 (cplus_language_data): Likewise.
2039 (asm_language_data): Likewise.
2040 (minimal_language_data): Likewise.
2041 * d-lang.c (d_language_data): Likewise.
2042 * f-lang.c (f_language_data): Likewise.
2043 * go-lang.c (go_language_data): Likewise.
2044 * language.c (unk_lang_value_print): Delete.
2045 (language_defn::value_print): Define new member function.
2046 (unknown_language_data): Delete la_value_print initializer.
2047 (unknown_language::value_print): New member function.
2048 (auto_language_data): Delete la_value_print initializer.
2049 (auto_language::value_print): New member function.
2050 * language.h (language_data): Delete la_value_print field.
2051 (language_defn::value_print): Declare new member function.
2052 (LA_VALUE_PRINT): Update call to value_print.
2053 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2054 * objc-lang.c (objc_language_data): Likewise.
2055 * opencl-lang.c (opencl_language_data): Likewise.
2056 * p-lang.c (pascal_language_data): Likewise.
2057 (pascal_language::value_print): New member function.
2058 * rust-lang.c (rust_language_data): Delete la_value_print
2059 initializer.
2060
f16a9f57
AB
20612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2062
2063 * ada-lang.c (ada_watch_location_expression): Rename to
2064 ada_language::watch_location_expression.
2065 (ada_language_data): Delete la_watch_location_expression
2066 initializer.
2067 (ada_language::watch_location_expression): New member function,
2068 implementation from ada_watch_location_expression.
2069 * breakpoint.c (watch_command_1): Update call to
2070 watch_location_expression.
2071 * c-lang.c (c_watch_location_expression): Rename to
2072 language_defn::watch_location_expression.
2073 (c_language_data): Delete la_watch_location_expression
2074 initializer.
2075 (cplus_language_data): Likewise.
2076 (asm_language_data): Likewise.
2077 (minimal_language_data): Likewise.
2078 * c-lang.h (c_watch_location_expression): Delete declaration.
2079 * d-lang.c (d_language_data): Delete la_watch_location_expression
2080 initializer.
2081 * f-lang.c (f_language_data): Likewise.
2082 * go-lang.c (go_language_data): Likewise.
2083 * language.c (language_defn::watch_location_expression): Member
2084 function implementation from c_watch_location_expression.
2085 (unknown_language_data): Delete la_watch_location_expression
2086 initializer.
2087 (auto_language_data): Likewise.
2088 * language.h (language_data): Delete la_watch_location_expression
2089 field.
2090 (language_defn::watch_location_expression): Declare new member
2091 function.
2092 * m2-lang.c (m2_language_data): Delete
2093 la_watch_location_expression initializer.
2094 * objc-lang.c (objc_language_data): Likewise.
2095 * opencl-lang.c (opencl_language_data): Likewise.
2096 * p-lang.c (pascal_language_data): Likewise.
2097 * rust-lang.c (rust_watch_location_expression): Rename to
2098 rust_language::watch_location_expression.
2099 (rust_language_data): Delete la_watch_location_expression
2100 initializer.
2101 (rust_language::watch_location_expression): New member function,
2102 implementation from rust_watch_location_expression.
2103
7e56227d
AB
21042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2105
2106 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2107 ada_language::collect_symbol_completion_matches.
2108 (ada_language_data): Delete la_collect_symbol_completion_matches
2109 initializer.
2110 (ada_language::collect_symbol_completion_matches): New member
2111 function, implementation from
2112 ada_collect_symbol_completion_matches.
2113 * c-lang.c (c_language_data): Delete
2114 la_collect_symbol_completion_matches initializer.
2115 (cplus_language_data): Likewise.
2116 (asm_language_data): Likewise.
2117 (minimal_language_data): Likewise.
2118 * d-lang.c (d_language_data): Likewise.
2119 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2120 f_language::collect_symbol_completion_matches.
2121 (f_language_data): Delete la_collect_symbol_completion_matches
2122 initializer.
2123 (f_language::collect_symbol_completion_matches) New member
2124 function, implementation from f_collect_symbol_completion_matches.
2125 * go-lang.c (go_language_data): Delete
2126 la_collect_symbol_completion_matches initializer.
2127 * language.c (unknown_language_data): Likewise.
2128 (auto_language_data): Likewise.
2129 * language.h (language_data): Delete
2130 la_collect_symbol_completion_matches field.
2131 (language_defn::collect_symbol_completion_matches): New member
2132 function.
2133 * m2-lang.c (m2_language_data): Delete
2134 la_collect_symbol_completion_matches initializer.
2135 * objc-lang.c (objc_language_data): Likewise.
2136 * opencl-lang.c (opencl_language_data): Likewise.
2137 * p-lang.c (pascal_language_data): Likewise.
2138 * rust-lang.c (rust_language_data): Likewise.
2139 * symtab.c (default_collect_symbol_completion_matches): Delete.
2140 (collect_symbol_completion_matches): Update call to
2141 collect_symbol_completion_matches.
2142 (collect_symbol_completion_matches_type): Likewise.
2143 * symtab.h (default_collect_symbol_completion_matches): Delete
2144 declaration.
2145
53fc67f8
AB
21462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2147
2148 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2149 (ada_language_data): Delete la_word_break_characters initializer.
2150 (ada_language::word_break_characters): New member function.
2151 * c-lang.c (c_language_data): Delete la_word_break_characters
2152 initializer.
2153 (cplus_language_data): Likewise.
2154 (asm_language_data): Likewise.
2155 (minimal_language_data): Likewise.
2156 * completer.c: Update global comment.
2157 (advance_to_expression_complete_word_point): Update call to
2158 word_break_characters.
2159 (complete_files_symbols): Likewise.
2160 (complete_line_internal_1): Likewise.
2161 (default_completer_handle_brkchars): Likewise.
2162 (skip_quoted_chars): Likewise.
2163 * d-lang.c (d_language_data): Delete la_word_break_characters
2164 initializer.
2165 * f-lang.c (f_word_break_characters): Delete.
2166 (f_language_data): Delete la_word_break_characters initializer.
2167 (f_language::word_break_characters): New member function.
2168 * go-lang.c (go_language_data): Delete la_word_break_characters
2169 initializer.
2170 * language.c (unknown_language_data): Likewise.
2171 (auto_language_data): Likewise.
2172 * language.h (default_word_break_characters): Move declaration to
2173 earlier in the file.
2174 (language_data): Delete la_word_break_characters field.
2175 (language_defn::word_break_characters): New member function.
2176 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2177 initializer.
2178 * objc-lang.c (objc_language_data): Likewise.
2179 * opencl-lang.c (opencl_language_data): Likewise.
2180 * p-lang.c (pascal_language_data): Likewise.
2181 * rust-lang.c (rust_language_data): Likewise.
2182
c9debfb9
AB
21832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2184
2185 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2186 (ada_language_data): Delete la_get_symbol_name_matcher
2187 initializer.
2188 (language_defn::get_symbol_name_matcher_inner): New member
2189 function.
2190 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2191 initializer.
2192 (cplus_language_data): Likewise.
2193 (cplus_language::get_symbol_name_matcher_inner): New member
2194 function.
2195 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2196 (minimal_language_data): Likewise.
2197 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2198 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2199 initializer.
2200 * dictionary.c (iter_match_first_hashed): Update call to
2201 get_symbol_name_matcher.
2202 (iter_match_next_hashed): Likewise.
2203 (iter_match_next_linear): Likewise.
2204 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2205 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2206 initializer.
2207 (f_language::get_symbol_name_matcher_inner): New member function.
2208 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2209 initializer.
2210 * language.c (default_symbol_name_matcher): Update header comment,
2211 make static.
2212 (language_defn::get_symbol_name_matcher): New definition.
2213 (language_defn::get_symbol_name_matcher_inner): Likewise.
2214 (get_symbol_name_matcher): Delete.
2215 (unknown_language_data): Delete la_get_symbol_name_matcher
2216 initializer.
2217 (auto_language_data): Likewise.
2218 * language.h (language_data): Delete la_get_symbol_name_matcher
2219 field.
2220 (language_defn::get_symbol_name_matcher): New member function.
2221 (language_defn::get_symbol_name_matcher_inner): Likewise.
2222 (default_symbol_name_matcher): Delete declaration.
2223 * linespec.c (find_methods): Update call to
2224 get_symbol_name_matcher.
2225 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2226 initializer.
2227 * minsyms.c (lookup_minimal_symbol): Update call to
2228 get_symbol_name_matcher.
2229 (iterate_over_minimal_symbols): Likewise.
2230 * objc-lang.c (objc_language_data): Delete
2231 la_get_symbol_name_matcher initializer.
2232 * opencl-lang.c (opencl_language_data): Likewise.
2233 * p-lang.c (pascal_language_data): Likewise.
2234 * psymtab.c (psymbol_name_matches): Update call to
2235 get_symbol_name_matcher.
2236 * rust-lang.c (rust_language_data): Delete
2237 la_get_symbol_name_matcher initializer.
2238 * symtab.c (symbol_matches_search_name): Update call to
2239 get_symbol_name_matcher.
2240 (compare_symbol_name): Likewise.
2241
9a49ad8c
AB
22422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2243
2244 * ada-lang.c (ada_language_data): Delete la_compute_program
2245 initializer.
2246 * c-lang.c (c_language_data): Likewise.
2247 (c_language::compute_program): New member function.
2248 (cplus_language_data): Delete la_compute_program initializer.
2249 (cplus_language::compute_program): New member function.
2250 (asm_language_data): Delete la_compute_program initializer.
2251 (minimal_language_data): Likewise.
2252 * c-lang.h (c_compute_program): Update comment.
2253 (cplus_compute_program): Likewise.
2254 * compile/compile-c-support.c (c_compute_program): Likewise.
2255 (cplus_compute_program): Likewise.
2256 * compile/compile.c (compile_to_object): Update call to
2257 la_compute_program.
2258 * d-lang.c (d_language_data): Delete la_compute_program
2259 initializer.
2260 * f-lang.c (f_language_data): Likewise.
2261 * go-lang.c (go_language_data): Likewise.
2262 * language.c (unknown_language_data): Likewise.
2263 (auto_language_data): Likewise.
2264 * language.h (language_data): Delete la_compute_program field.
2265 (language_defn::compute_program): New member function.
2266 * m2-lang.c (m2_language_data): Delete la_compute_program
2267 initializer.
2268 * objc-lang.c (objc_language_data): Likewise.
2269 * opencl-lang.c (opencl_language_data): Likewise.
2270 * p-lang.c (pascal_language_data): Likewise.
2271 * rust-lang.c (rust_language_data): Likewise.
2272
eff93b4d
AB
22732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2274
2275 * ada-lang.c (ada_language_data) Delete
2276 la_class_name_from_physname initializer.
2277 * c-lang.c (c_language_data): Likewise.
2278 (cplus_language_data): Likewise.
2279 (cplus_language::class_name_from_physname): New member function.
2280 (asm_language_data): Delete la_class_name_from_physname
2281 initializer.
2282 (minimal_language_data): Likewise.
2283 * d-lang.c (d_language_data): Likewise.
2284 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2285 method on language_defn class.
2286 (guess_full_die_structure_name): Likewise.
2287 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2288 initializer.
2289 * go-lang.c (go_language_data): Likewise.
2290 * language.c (language_class_name_from_physname): Delete.
2291 (unk_lang_class_name): Delete.
2292 (unknown_language_data): Delete la_class_name_from_physname
2293 initializer.
2294 (auto_language_data): Likewise.
2295 * language.h (language_data): Delete la_class_name_from_physname
2296 field.
2297 (language_defn::class_name_from_physname): New function.
2298 (language_class_name_from_physname): Delete declaration.
2299 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2300 initializer.
2301 * objc-lang.c (objc_language_data): Likewise.
2302 * opencl-lang.c (opencl_language_data): Likewise.
2303 * p-lang.c (pascal_language_data): Likewise.
2304 * rust-lang.c (rust_language_data): Likewise.
2305
de543742
TT
23062020-06-16 Tom Tromey <tom@tromey.com>
2307
2308 * tui/tui-data.h (STATUS_NAME): New macro.
2309 * tui/tui-layout.c (tui_remove_some_windows)
2310 (initialize_known_windows, tui_register_window)
2311 (tui_layout_split::remove_windows, initialize_layouts)
2312 (tui_new_layout_command): Don't use hard-coded window names.
2313
a350efd4
TT
23142020-06-16 Tom Tromey <tom@tromey.com>
2315
2316 PR tui/25348:
2317 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2318 tui_initialize_readline. Only run once. Call rl_initialize.
2319 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2320 tui_initialize_readline.
2321 * tui/tui-io.c (tui_setup_io): Call
2322 tui_ensure_readline_initialized.
2323 * tui/tui-interp.c (tui_interp::init): Update.
2324
39ec0490
TT
23252020-06-16 Tom Tromey <tom@tromey.com>
2326
2327 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2328 Also preserve the status window.
2329
d2d1ea20
TT
23302020-06-16 Tom Tromey <tom@tromey.com>
2331
2332 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2333 where m_window==nullptr.
2334
66920317
TT
23352020-06-15 Tom Tromey <tromey@adacore.com>
2336
2337 * windows-nat.c (windows_nat::handle_output_debug_string):
2338 Update.
2339 (windows_nat::handle_ms_vc_exception): Update.
2340 * target.h (target_read_string): Change API.
2341 * target.c (target_read_string): Change API.
2342 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2343 Update.
2344 * solib-frv.c (frv_current_sos): Update.
2345 * solib-dsbt.c (dsbt_current_sos): Update.
2346 * solib-darwin.c (darwin_current_sos): Update.
2347 * linux-thread-db.c (inferior_has_bug): Update.
2348 * expprint.c (print_subexp_standard): Update.
2349 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2350 (ada_exception_message_1): Update.
2351
a5d871dd
TT
23522020-06-15 Tom Tromey <tromey@adacore.com>
2353
2354 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2355
670e35fa
TT
23562020-06-15 Tom Tromey <tromey@adacore.com>
2357
2358 * valprint.c (read_string): Update comment.
2359 * target.c (MIN): Remove.
2360 (target_read_string): Rewrite.
2361
f5272a3b
TT
23622020-06-15 Tom Tromey <tromey@adacore.com>
2363
2364 * corefile.c (read_memory_string): Remove.
2365 * ada-valprint.c (ada_value_print_ptr): Update.
2366 * ada-lang.h (ada_tag_name): Change return type.
2367 * ada-lang.c (type_from_tag): Update.
2368 (ada_tag_name_from_tsd): Change return type. Use
2369 target_read_string.
2370 (ada_tag_name): Likewise.
2371 * gdbcore.h (read_memory_string): Don't declare.
2372
2c074f49
HD
23732020-06-14 Hannes Domani <ssbssa@yahoo.de>
2374
2375 * symtab.c (rbreak_command): Ignore Windows drive colon.
2376
6a17d503
SM
23772020-06-12 Simon Marchi <simon.marchi@efficios.com>
2378
2379 * NEWS: Mention removed GDBserver host support.
2380
453c733f
NC
23812020-06-12 Nelson Chu <nelson.chu@sifive.com>
2382
2383 * features/riscv/rebuild-csr-xml.sh: Updated.
2384
2b4e6a3f
TT
23852020-06-11 Tom Tromey <tom@tromey.com>
2386
2387 PR gdb/18318:
2388 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2389
4412332f
JG
23902020-06-09 Jonny Grant <jg@jguk.org>
23912020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2392
2393 * main.c (captured_main_1): Don't print new line after help.
2394 (print_gdb_help): add mailing list and IRC channel information
2395 to --help. Add new lines between items in the footer. Remove
2396 quotes around bug url.
2397
2f33032a
KS
23982020-06-11 Keith Seitz <keiths@redhat.com>
2399
2400 PR gdb/21356
2401 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2402 Resolve typedefs for type length calculations.
2403
7ab96794
TV
24042020-06-10 Tom de Vries <tdevries@suse.de>
2405
2406 PR ada/24713
2407 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2408 (write_psymbols): Enable .gdb_index for ada.
2409 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2410 ada.
2411
e5f3ece2
TV
24122020-06-10 Tom de Vries <tdevries@suse.de>
2413
2414 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2415 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2416 namei" instead of "const char *name" argument.
2417 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2418 dw2_symtab_iter_init.
2419
940da03e
SM
24202020-06-08 Simon Marchi <simon.marchi@efficios.com>
2421
2422 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2423 to use type::field and field::type instead.
2424
b6cdac4b
SM
24252020-06-08 Simon Marchi <simon.marchi@efficios.com>
2426
2427 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2428 to use field::type instead.
2429
5d14b6e5
SM
24302020-06-08 Simon Marchi <simon.marchi@efficios.com>
2431
2432 * gdbtypes.h (struct field) <type, set_type>: New methods.
2433 Rename `type` field to...
2434 <m_type>: ... this. Change references throughout to use type or
2435 set_type methods.
2436 (FIELD_TYPE): Use field::type. Change call sites that modify
2437 the field's type to use field::set_type instead.
2438
3d967001
SM
24392020-06-08 Simon Marchi <simon.marchi@efficios.com>
2440
2441 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2442 to use type::index_type instead.
2443
262abc0d
SM
24442020-06-08 Simon Marchi <simon.marchi@efficios.com>
2445
2446 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2447 methods.
2448 (TYPE_INDEX_TYPE): Use type::index_type.
2449 * gdbtypes.c (create_array_type_with_stride): Likewise.
2450
82836c92
TT
24512020-06-07 Tom Tromey <tom@tromey.com>
2452
2453 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2454 parameter.
2455 (generic_value_print): Update.
2456
940dace9
AB
24572020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2458
2459 Revert commit 982a38f60b0.
2460 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2461
982a38f6
AB
24622020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2463
2464 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2465 avoid use after free.
2466
82f06518
TV
24672020-06-05 Tom de Vries <tdevries@suse.de>
2468
2469 * NEWS: Fix typos.
2470
f8c41851
SM
24712020-06-04 Simon Marchi <simon.marchi@efficios.com>
2472
2473 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2474 the per_bfd object.
2475 (dwarf2_read_debug_names): Likewise.
2476 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2477 object when re-using a per_bfd object with an index.
2478
f9b5d5ea
TV
24792020-06-03 Tom de Vries <tdevries@suse.de>
2480
2481 PR symtab/26046
2482 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2483 children for C++.
2484 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2485 DW_TAG_subprogram.
2486
f6eee2d0
AB
24872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2488
2489 * ada-lang.c (ada_language_data): Delete skip_trampoline
2490 initializer.
2491 * c-lang.c (c_language_data): Likewise.
2492 (cplus_language_data): Likewise.
2493 (cplus_language::skip_trampoline): New member function.
2494 (asm_language_data): Delete skip_trampoline initializer.
2495 (minimal_language_data): Likewise.
2496 * d-lang.c (d_language_data): Likewise.
2497 * f-lang.c (f_language_data): Likewise.
2498 * go-lang.c (go_language_data): Likewise.
2499 * language.c (unk_lang_trampoline): Delete function.
2500 (skip_language_trampoline): Update.
2501 (unknown_language_data): Delete skip_trampoline initializer.
2502 (auto_language_data): Likewise.
2503 * language.h (language_data): Delete skip_trampoline field.
2504 (language_defn::skip_trampoline): New function.
2505 * m2-lang.c (m2_language_data): Delete skip_trampoline
2506 initializer.
2507 * objc-lang.c (objc_skip_trampoline): Delete function, move
2508 implementation to objc_language::skip_trampoline.
2509 (objc_language_data): Delete skip_trampoline initializer.
2510 (objc_language::skip_trampoline): New member function with
2511 implementation from objc_skip_trampoline.
2512 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2513 initializer.
2514 * p-lang.c (pascal_language_data): Likewise.
2515 * rust-lang.c (rust_language_data): Likewise.
2516
0a50df5d
AB
25172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2518
2519 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2520 (ada_language::demangle): New member function.
2521 * c-lang.c (c_language_data): Delete la_demangle initializer.
2522 (cplus_language_data): Delete la_demangle initializer.
2523 (cplus_language::demangle): New member function.
2524 (asm_language_data): Delete la_demangle initializer.
2525 (minimal_language_data): Delete la_demangle initializer.
2526 * d-lang.c (d_language_data): Delete la_demangle initializer.
2527 (d_language::demangle): New member function.
2528 * f-lang.c (f_language_data): Delete la_demangle initializer.
2529 (f_language::demangle): New member function.
2530 * go-lang.c (go_language_data): Delete la_demangle initializer.
2531 (go_language::demangle): New member function.
2532 * language.c (language_demangle): Update.
2533 (unk_lang_demangle): Delete.
2534 (unknown_language_data): Delete la_demangle initializer.
2535 (unknown_language::demangle): New member function.
2536 (auto_language_data): Delete la_demangle initializer.
2537 (auto_language::demangle): New member function.
2538 * language.h (language_data): Delete la_demangle field.
2539 (language_defn::demangle): New function.
2540 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2541 * objc-lang.c (objc_language_data): Delete la_demangle
2542 initializer.
2543 (objc_language::demangle): New member function.
2544 * opencl-lang.c (opencl_language_data): Delete la_demangle
2545 initializer.
2546 * p-lang.c (pascal_language_data): Likewise.
2547 * rust-lang.c (rust_language_data): Likewise.
2548 (rust_language::demangle): New member function.
2549
fbfb0a46
AB
25502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2551
2552 * ada-lang.c (ada_language_data): Delete la_print_type
2553 initializer.
2554 (ada_language::print_type): New member function.
2555 * c-lang.c (c_language_data): Delete la_print_type initializer.
2556 (c_language::print_type): New member function.
2557 (cplus_language_data): Delete la_print_type initializer.
2558 (cplus_language::print_type): New member function.
2559 (asm_language_data): Delete la_print_type initializer.
2560 (asm_language::print_type): New member function.
2561 (minimal_language_data): Delete la_print_type initializer.
2562 (minimal_language::print_type): New member function.
2563 * d-lang.c (d_language_data): Delete la_print_type initializer.
2564 (d_language::print_type): New member function.
2565 * f-lang.c (f_language_data): Delete la_print_type initializer.
2566 (f_language::print_type): New member function.
2567 * go-lang.c (go_language_data): Delete la_print_type initializer.
2568 (go_language::print_type): New member function.
2569 * language.c (unk_lang_print_type): Delete.
2570 (unknown_language_data): Delete la_print_type initializer.
2571 (unknown_language::print_type): New member function.
2572 (auto_language_data): Delete la_print_type initializer.
2573 (auto_language::print_type): New member function.
2574 * language.h (language_data): Delete la_print_type field.
2575 (language_defn::print_type): New function.
2576 (LA_PRINT_TYPE): Update.
2577 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2578 (m2_language::print_type): New member function.
2579 * objc-lang.c (objc_language_data): Delete la_print_type
2580 initializer.
2581 (objc_language::print_type): New member function.
2582 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2583 to opencl_language::print_type.
2584 (opencl_language_data): Delete la_print_type initializer.
2585 (opencl_language::print_type): New member function, implementation
2586 from opencl_print_type.
2587 * p-lang.c (pascal_language_data): Delete la_print_type
2588 initializer.
2589 (pascal_language::print_type): New member function.
2590 * rust-lang.c (rust_print_type): Delete, implementation moved to
2591 rust_language::print_type.
2592 (rust_language_data): Delete la_print_type initializer.
2593 (rust_language::print_type): New member function, implementation
2594 from rust_print_type.
2595
6f827019
AB
25962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2597
2598 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2599 implementation moves to...
2600 (ada_language::sniff_from_mangled_name): ...here. Update return
2601 type.
2602 (ada_language_data): Delete la_sniff_from_mangled_name
2603 initializer.
2604 * c-lang.c (c_language_data): Likewise.
2605 (cplus_language_data): Likewise.
2606 (cplus_language::sniff_from_mangled_name): New member function,
2607 implementation taken from gdb_sniff_from_mangled_name.
2608 (asm_language_data): Delete la_sniff_from_mangled_name
2609 initializer.
2610 (minimal_language_data): Likewise.
2611 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2612 implementation moves to cplus_language::sniff_from_mangled_name.
2613 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2614 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2615 moves to...
2616 (d_language::sniff_from_mangled_name): ...here.
2617 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2618 * f-lang.c (f_language_data): Likewise.
2619 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2620 moves to...
2621 (go_language::sniff_from_mangled_name): ...here.
2622 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2623 * language.c (language_sniff_from_mangled_name): Delete.
2624 (unknown_language_data): Delete la_sniff_from_mangled_name
2625 initializer.
2626 (auto_language_data): Likewise.
2627 * language.h (language_data): Delete la_sniff_from_mangled_name
2628 field.
2629 (language_defn::sniff_from_mangled_name): New function.
2630 (language_sniff_from_mangled_name): Delete declaration.
2631 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2632 field.
2633 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2634 implementation moves to...
2635 (objc_language::sniff_from_mangled_name): ...here.
2636 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2637 * opencl-lang.c (opencl_language_data): Likewise.
2638 * p-lang.c (pascal_language_data): Likewise.
2639 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2640 implementation moves to...
2641 (rust_language::sniff_from_mangled_name): ...here.
2642 (rust_language_data): Delete la_sniff_from_mangled_name
2643 initializer.
2644 * symtab.c (symbol_find_demangled_name): Call
2645 sniff_from_mangled_name member function.
2646
fb8006fd
AB
26472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2648
2649 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2650 initializer.
2651 * c-lang.c (c_language_data): Likewise.
2652 (cplus_language_data): Likewise.
2653 (cplus_language::search_name_hash): New member function.
2654 (asm_language_data): Delete la_search_name_hash initializer.
2655 (minimal_language_data): Likewise.
2656 * d-lang.c (d_language_data): Likewise.
2657 * dictionary.c (default_search_name_hash): Rename to...
2658 (language_defn::search_name_hash): ...this.
2659 * f-lang.c (f_language_data): Likewise.
2660 (f_language::search_name_hash): New member function.
2661 * go-lang.c (go_language_data): Delete la_search_name_hash
2662 initializer.
2663 * language.c (unknown_language_data): Likewise.
2664 (auto_language_data): Likewise.
2665 * language.h (struct language_data): Delete la_search_name_hash
2666 field.
2667 (language_defn::search_name_hash): Declare new member function.
2668 (default_search_name_hash): Delete declaration.
2669 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2670 initializer.
2671 * objc-lang.c (objc_language_data): Likewise.
2672 * opencl-lang.c (opencl_language_data): Likewise.
2673 * p-lang.c (pascal_language_data): Likewise.
2674 * rust-lang.c (rust_language_data): Likewise.
2675 * symtab.c (search_name_hash): Update call.
2676
8e25bafe
AB
26772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2678
2679 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2680 initializer.
2681 * c-lang.c (class compile_instance): Declare.
2682 (c_language_data): Delete la_get_compile_instance initializer.
2683 (c_language::get_compile_instance): New member function.
2684 (cplus_language_data): Delete la_get_compile_instance initializer.
2685 (cplus_language::get_compile_instance): New member function.
2686 (asm_language_data): Delete la_get_compile_instance initializer.
2687 (minimal_language_data): Likewise.
2688 * c-lang.h (c_get_compile_context): Update comment.
2689 (cplus_get_compile_context): Update comment.
2690 * compile/compile.c (compile_to_object): Update calls, don't rely
2691 on function pointer being NULL.
2692 * d-lang.c (d_language_data): Delete la_get_compile_instance
2693 initializer.
2694 * f-lang.c (f_language_data): Likewise.
2695 * go-lang.c (go_language_data): Likewise.
2696 * language.c (unknown_language_data): Likewise.
2697 (auto_language_data): Likewise.
2698 * language.h (language_data): Delete la_get_compile_instance field.
2699 (language_defn::get_compile_instance): New member function.
2700 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2701 initializer.
2702 * objc-lang.c (objc_language_data): Likewise.
2703 * opencl-lang.c (opencl_language_data): Likewise.
2704 * p-lang.c (pascal_language_data): Likewise.
2705 * rust-lang.c (rust_language_data): Likewise.
2706
4009ee92
AB
27072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2708
2709 * ada-lang.c (ada_add_all_symbols): Update comment.
2710 (ada_iterate_over_symbols): Delete, move implementation to...
2711 (ada_language::iterate_over_symbols): ...here, a new member
2712 function, rewrite to use range based for loop.
2713 (ada_language_data): Delete la_iterate_over_symbols initializer.
2714 * c-lang.c (c_language_data): Likewise.
2715 (cplus_language_data): Likewise.
2716 (asm_language_data): Likewise.
2717 (minimal_language_data): Likewise.
2718 * d-lang.c (d_language_data): Likewise.
2719 * f-lang.c (f_language_data): Likewise.
2720 * go-lang.c (go_language_data): Likewise.
2721 * language.c (unknown_language_data): Likewise.
2722 (auto_language_data): Likewise.
2723 * language.h (language_data): Delete la_iterate_over_symbols field.
2724 (language_defn::iterate_over_symbols): New member function.
2725 (LA_ITERATE_OVER_SYMBOLS): Update.
2726 * linespec.c (iterate_over_all_matching_symtabs): Update.
2727 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2728 initializer.
2729 * objc-lang.c (objc_language_data): Likewise.
2730 * opencl-lang.c (opencl_language_data): Likewise.
2731 * p-lang.c (pascal_language_data): Likewise.
2732 * rust-lang.c (rust_language_data): Likewise.
2733
54f4ca46
AB
27342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2735
2736 * ada-lang.c (ada_language_data): Delete
2737 la_lookup_transparent_type initializer.
2738 * c-lang.c (c_language_data): Likewise.
2739 (cplus_language_data): Likewise.
2740 (cplus_language::lookup_transparent_type): New member function.
2741 (asm_language_data): Delete la_lookup_transparent_type
2742 initializer.
2743 (minimal_language_data): Likewise.
2744 * d-lang.c (d_language_data): Likewise.
2745 * f-lang.c (f_language_data): Likewise.
2746 * go-lang.c (go_language_data): Likewise.
2747 * language.c (unknown_language_data): Likewise.
2748 (auto_language_data): Likewise.
2749 * language.h (struct language_data): Delete
2750 la_lookup_transparent_type field.
2751 (language_defn::lookup_transparent_type): New member function.
2752 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2753 initializer.
2754 * objc-lang.c (objc_language_data): Likewise.
2755 * opencl-lang.c (opencl_language_data): Likewise.
2756 * p-lang.c (pascal_language_data): Likewise.
2757 * rust-lang.c (rust_language_data): Likewise.
2758 * symtab.c (symbol_matches_domain): Update call.
2759
1fb314aa
AB
27602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2761
2762 * ada-lang.c (ada_language_arch_info): Delete function, move
2763 implementation to...
2764 (ada_language::language_arch_info): ...here, a new member
2765 function.
2766 (ada_language_data): Delete la_language_arch_info.
2767 * c-lang.c (c_language_data): Likewise.
2768 (c_language::language_arch_info): New member function.
2769 (cplus_language_arch_info): Delete function, move
2770 implementation to...
2771 (cplus_language::language_arch_info): ...here, a new member
2772 function.
2773 (cplus_language_data): Delete la_language_arch_info.
2774 (asm_language_data): Likewise.
2775 (asm_language::language_arch_info): New member function.
2776 (minimal_language_data): Delete la_language_arch_info.
2777 (minimal_language::language_arch_info): New member function.
2778 * d-lang.c (d_language_arch_info): Delete function, move
2779 implementation to...
2780 (d_language::language_arch_info): ...here, a new member
2781 function.
2782 (d_language_data): Delete la_language_arch_info.
2783 * f-lang.c (f_language_arch_info): Delete function, move
2784 implementation to...
2785 (f_language::language_arch_info): ...here, a new member
2786 function.
2787 (f_language_data): Delete la_language_arch_info.
2788 * go-lang.c (go_language_arch_info): Delete function, move
2789 implementation to...
2790 (go_language::language_arch_info): ...here, a new member
2791 function.
2792 (go_language_data): Delete la_language_arch_info.
2793 * language.c (unknown_language_data): Likewise.
2794 (unknown_language::language_arch_info): New member function.
2795 (auto_language_data): Delete la_language_arch_info.
2796 (auto_language::language_arch_info): New member function.
2797 (language_gdbarch_post_init): Update call to
2798 la_language_arch_info.
2799 * language.h (language_data): Delete la_language_arch_info
2800 function pointer.
2801 (language_defn::language_arch_info): New function.
2802 * m2-lang.c (m2_language_arch_info): Delete function, move
2803 implementation to...
2804 (m2_language::language_arch_info): ...here, a new member
2805 function.
2806 (m2_language_data): Delete la_language_arch_info.
2807 * objc-lang.c (objc_language_arch_info): Delete function, move
2808 implementation to...
2809 (objc_language::language_arch_info): ...here, a new member
2810 function.
2811 (objc_language_data): Delete la_language_arch_info.
2812 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2813 implementation to...
2814 (opencl_language::language_arch_info): ...here, a new member
2815 function.
2816 (opencl_language_data): Delete la_language_arch_info.
2817 * p-lang.c (pascal_language_arch_info): Delete function, move
2818 implementation to...
2819 (pascal_language::language_arch_info): ...here, a new member
2820 function.
2821 (pascal_language_data): Delete la_language_arch_info.
2822 * rust-lang.c (rust_language_arch_info): Delete function, move
2823 implementation to...
2824 (rust_language::language_arch_info): ...here, a new member
2825 function.
2826 (rust_language_data): Delete la_language_arch_info.
2827
48448202
AB
28282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2829
2830 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2831 initializer.
2832 * c-lang.c (c_language_data): Likewise.
2833 (cplus_language_data): Likewise.
2834 (cplus_language::pass_by_reference_info): New method.
2835 (asm_language_data): Delete la_pass_by_reference initializer.
2836 (minimal_language_data): Likewise.
2837 * cp-abi.c (cp_pass_by_reference): Remove use of
2838 default_pass_by_reference.
2839 * d-lang.c (d_language_data): Likewise.
2840 * f-lang.c (f_language_data): Likewise.
2841 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2842 default_pass_by_reference.
2843 * go-lang.c (go_language_data): Likewise.
2844 * language.c (language_pass_by_reference): Update.
2845 (default_pass_by_reference): Delete.
2846 (unknown_language_data): Delete la_pass_by_reference
2847 initializer.
2848 (auto_language_data): Likewise.
2849 * language.h (struct language_data): Delete la_pass_by_reference
2850 field.
2851 (language_defn::pass_by_reference_info): New member function.
2852 (default_pass_by_reference): Delete declaration.
2853 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2854 initializer.
2855 * objc-lang.c (objc_language_data): Likewise.
2856 * opencl-lang.c (opencl_language_data): Likewise.
2857 * p-lang.c (pascal_language_data): Likewise.
2858 * rust-lang.c (rust_language_data): Likewise.
2859
15e5fd35
AB
28602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2861
2862 * ada-lang.c (ada_read_var_value): Delete function, move
2863 implementation to...
2864 (ada_language::read_var_value): ...here.
2865 (ada_language_data): Delete la_read_var_value initializer.
2866 * c-lang.c (c_language_data): Likewise.
2867 (cplus_language_data): Likewise.
2868 (minimal_language_data): Likewise.
2869 * d-lang.c (d_language_data): Likewise.
2870 * f-lang.c (f_language_data): Likewise.
2871 * findvar.c (default_read_var_value): Rename to...
2872 (language_defn::read_var_value): ...this.
2873 * findvar.c (read_var_value): Update header comment, and change to
2874 call member function instead of function pointer.
2875 * go-lang.c (go_language_data): Likewise.
2876 * language.c (unknown_language_data): Delete la_read_var_value
2877 initializer.
2878 (auto_language_data): Likewise.
2879 * language.h (struct language_data): Delete la_read_var_value
2880 field.
2881 (language_defn::read_var_value): New member function.
2882 (default_read_var_value): Delete declaration.
2883 * m2-lang.c (m2_language_data): Delete la_read_var_value
2884 initializer.
2885 * objc-lang.c (objc_language_data): Likewise.
2886 * opencl-lang.c (opencl_language_data): Likewise.
2887 * p-lang.c (pascal_language_data): Likewise.
2888 * rust-lang.c (rust_language_data): Likewise.
2889 * value.h (default_read_var_value): Delete declaration.
2890
5bd40f2a
AB
28912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2892
2893 * ada-lang.c (ada_print_array_index): Delete function, move
2894 implementation to...
2895 (ada_language::print_array_index): ...here.
2896 (ada_language_data): Delete la_print_array_index initializer.
2897 * c-lang.c (c_language_data): Likewise.
2898 (cplus_language_data): Likewise.
2899 (minimal_language_data): Likewise.
2900 * d-lang.c (d_language_data): Likewise.
2901 * f-lang.c (f_language_data): Likewise.
2902 * go-lang.c (go_language_data): Likewise.
2903 * language.c (default_print_array_index): Delete function, move
2904 implementation to...
2905 (language_defn::print_array_index): ...here.
2906 (unknown_language_data): Delete la_print_array_index initializer.
2907 (auto_language_data): Likewise.
2908 * language.h (struct language_data): Delete la_print_array_index
2909 field.
2910 (language_defn::print_array_index): New member function.
2911 (LA_PRINT_ARRAY_INDEX): Update.
2912 (default_print_array_index): Delete declaration.
2913 * m2-lang.c (m2_language_data): Delete la_print_array_index
2914 initializer.
2915 * objc-lang.c (objc_language_data): Likewise.
2916 * opencl-lang.c (opencl_language_data): Likewise.
2917 * p-lang.c (pascal_language_data): Likewise.
2918 * rust-lang.c (rust_language_data): Likewise.
2919
0874fd07
AB
29202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2921
2922 * gdb/ada-lang.c (ada_language_defn): Convert to...
2923 (ada_language_data): ...this.
2924 (class ada_language): New class.
2925 (ada_language_defn): New static global.
2926 * gdb/c-lang.c (c_language_defn): Convert to...
2927 (c_language_data): ...this.
2928 (class c_language): New class.
2929 (c_language_defn): New static global.
2930 (cplus_language_defn): Convert to...
2931 (cplus_language_data): ...this.
2932 (class cplus_language): New class.
2933 (cplus_language_defn): New static global.
2934 (asm_language_defn): Convert to...
2935 (asm_language_data): ...this.
2936 (class asm_language): New class.
2937 (asm_language_defn): New static global.
2938 (minimal_language_defn): Convert to...
2939 (minimal_language_data): ...this.
2940 (class minimal_language): New class.
2941 (minimal_language_defn): New static global.
2942 * gdb/d-lang.c (d_language_defn): Convert to...
2943 (d_language_data): ...this.
2944 (class d_language): New class.
2945 (d_language_defn): New static global.
2946 * gdb/f-lang.c (f_language_defn): Convert to...
2947 (f_language_data): ...this.
2948 (class f_language): New class.
2949 (f_language_defn): New static global.
2950 * gdb/go-lang.c (go_language_defn): Convert to...
2951 (go_language_data): ...this.
2952 (class go_language): New class.
2953 (go_language_defn): New static global.
2954 * gdb/language.c (unknown_language_defn): Remove declaration.
2955 (current_language): Initialize to nullptr, real initialization is
2956 moved to _initialize_language.
2957 (languages): Delete global.
2958 (language_defn::languages): Define.
2959 (set_language_command): Use language_defn::languages.
2960 (set_language): Likewise.
2961 (range_error): Likewise.
2962 (language_enum): Likewise.
2963 (language_def): Likewise.
2964 (add_set_language_command): Use language_def::languages for the
2965 language list, and language_def to lookup language pointers.
2966 (skip_language_trampoline): Use language_defn::languages.
2967 (unknown_language_defn): Convert to...
2968 (unknown_language_data): ...this.
2969 (class unknown_language): New class.
2970 (unknown_language_defn): New static global.
2971 (auto_language_defn): Convert to...
2972 (auto_language_data): ...this.
2973 (class auto_language): New class.
2974 (auto_language_defn): New static global.
2975 (language_gdbarch_post_init): Use language_defn::languages.
2976 (_initialize_language): Initialize current_language.
2977 * gdb/language.h (struct language_defn): Rename to...
2978 (struct language_data): ...this.
2979 (struct language_defn): New.
2980 (auto_language_defn): Delete.
2981 (unknown_language_defn): Delete.
2982 (minimal_language_defn): Delete.
2983 (ada_language_defn): Delete.
2984 (asm_language_defn): Delete.
2985 (c_language_defn): Delete.
2986 (cplus_language_defn): Delete.
2987 (d_language_defn): Delete.
2988 (f_language_defn): Delete.
2989 (go_language_defn): Delete.
2990 (m2_language_defn): Delete.
2991 (objc_language_defn): Delete.
2992 (opencl_language_defn): Delete.
2993 (pascal_language_defn): Delete.
2994 (rust_language_defn): Delete.
2995 * gdb/m2-lang.c (m2_language_defn): Convert to...
2996 (m2_language_data): ...this.
2997 (class m2_language): New class.
2998 (m2_language_defn): New static global.
2999 * gdb/objc-lang.c (objc_language_defn): Convert to...
3000 (objc_language_data): ...this.
3001 (class objc_language): New class.
3002 (objc_language_defn): New static global.
3003 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3004 (opencl_language_data): ...this.
3005 (class opencl_language): New class.
3006 (opencl_language_defn): New static global.
3007 * gdb/p-lang.c (pascal_language_defn): Convert to...
3008 (pascal_language_data): ...this.
3009 (class pascal_language): New class.
3010 (pascal_language_defn): New static global.
3011 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3012 language pointer, update comment format.
3013 * gdb/rust-lang.c (rust_language_defn): Convert to...
3014 (rust_language_data): ...this.
3015 (class rust_language): New class.
3016 (rust_language_defn): New static global.
3017
1313c56e
AB
30182020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3019
3020 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3021 member variable.
3022 <m_stmt_at_address>: New member variable.
3023 (lnp_state_machine::record_line): Don't record some lines, update
3024 tracking of is_stmt at the same address.
3025 (lnp_state_machine::lnp_state_machine): Initialise new member
3026 variables.
3027
b7ed9f3d
ST
30282020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3029
3030 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3031 "-include gnu-nat-mig.h".
3032 * gnu-nat-mig.h: New file.
3033 * gnu-nat.c: Include "gnu-nat-mig.h".
3034 (exc_server, msg_reply_server, notify_server,
3035 process_reply_server): Remove declarations.
3036
14a8ad62
ST
30372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3038
3039 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3040 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3041 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3042 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3043 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3044 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3045 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3046 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3047 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3048 to gnu_nat_target class.
3049 * gnu-nat.c: Likewise.
3050 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3051 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3052 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3053 object.
3054 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3055 instead of `gnu_target'.
3056
0af5e106
ST
30572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3058
3059 * i386-gnu-tdep.c: Include "gdbcore.h"
3060 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3061 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3062 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3063 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3064 i386_gnu_sigcontext_addr): New functions
3065 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3066 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3067 tdep.
3068
078f2fc9
ST
30692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3070
3071 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3072 before fork_inferior call. Avoid calling it if target_is_pushed returns
3073 true.
3074
53dff92c
ST
30752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3076
3077 * gnu-nat.h (gnu_target): New variable declaration.
3078 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3079 gnu_target.
3080 * gnu-nat.c (gnu_target): New variable.
3081 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3082 add_thread_silent, and add_thread calls.
3083 (gnu_nat_target::create_inferior): Pass gnu_target to
3084 add_thread_silent, thread_change_ptid call.
3085 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3086 call.
3087
5a8b8627
ST
30882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3089
3090 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3091 (gnu_nat_target::find_memory_regions): Remove unused
3092 `old_address' variable.
3093
366f550a
ST
30942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3095
3096 * gnu-nat.c: Include "gdbarch.h".
3097
f14871bf
ST
30982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3099
3100 * reply_mig_hack.awk (Error return): Cast function through
3101 void *, to bypass compiler function call check.
3102
c6887cfb
ST
31032020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3104
3105 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3106 $(srcdir)/reply_mig_hack.awk.
3107
6930bffe
ST
31082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3109
3110 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3111
112c22ed
JG
31122020-05-30 Jonny Grant <jg@jguk.org>
3113
3114 * configure.ac (ACX_BUGURL): change bug URL to https.
3115
f68f85b5
PA
31162020-05-30 Pedro Alves <palves@redhat.com>
3117
3118 * cp-support.c (replace_typedefs_template): New.
3119 (replace_typedefs_qualified_name): Handle
3120 DEMANGLE_COMPONENT_TEMPLATE.
3121
976ca316
SM
31222020-05-29 Simon Marchi <simon.marchi@efficios.com>
3123
3124 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3125 dwarf2/index-cache.h, dwarf2/index-write.c,
3126 dwarf2/index-write.h, dwarf2/line-header.c,
3127 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3128 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3129 variables and fields from `dwarf2_per_objfile` to just
3130 `per_objfile` throughout.
3131
989ade05
SM
31322020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3133
3134 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3135 <push_dwarf_reg_entry_value>: Add comment.
3136
c47bae85
KB
31372020-05-28 Kevin Buettner <kevinb@redhat.com>
3138 Keith Seitz <keiths@redhat.com>
3139
3140 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3141 instead of PyEval_ReleaseLock.
3142 (class gdbpy_gil): Move to earlier in file.
3143 (finalize_python): Set gdb_python_initialized.
3144 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3145 when not initialized.
3146
44486dcf
SM
31472020-05-28 Simon Marchi <simon.marchi@efficios.com>
3148
3149 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3150 <push_dwarf_reg_entry_value>: Remove assert. Override
3151 per_objfile with caller_per_objfile.
3152
f030440d
TV
31532020-05-28 Tom de Vries <tdevries@suse.de>
3154
3155 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3156 PR gold/15646 workaround to symbol kind "type".
3157
f0fbb768
TT
31582020-05-27 Tom Tromey <tromey@adacore.com>
3159
3160 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3161
af0b2a3e
TT
31622020-05-27 Tom Tromey <tromey@adacore.com>
3163
3164 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3165 Use htab_find_with_hash.
3166 <add_abbrev>: Remove "abbrev_number" parameter.
3167 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3168 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3169 (hash_abbrev): Add comment.
3170 (abbrev_table::lookup_abbrev): Move to header file.
3171 (abbrev_table::read): Update.
3172
7d00ffec
TT
31732020-05-27 Tom Tromey <tromey@adacore.com>
3174
3175 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3176 method.
3177 <canonical_name>: New member.
3178 <raw_name>: Rename from "name".
3179 (partial_die_info): Initialize canonical_name.
3180 (scan_partial_symbols): Check raw_name.
3181 (partial_die_parent_scope, partial_die_full_name)
3182 (add_partial_symbol, add_partial_subprogram)
3183 (add_partial_enumeration, load_partial_dies): Use "name" method.
3184 (partial_die_info::name): New method.
3185 (partial_die_info::read, guess_partial_die_structure_name)
3186 (partial_die_info::fixup): Update.
3187
697bba18
TT
31882020-05-27 Tom Tromey <tromey@adacore.com>
3189
3190 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3191 <get_ref_die_offset>: Inline.
3192 <get_ref_die_offset_complaint>: New method.
3193 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3194 (attribute::get_ref_die_offset_complaint): Rename from
3195 get_ref_die_offset. Just issue complaint.
3196
c17ace43
HD
31972020-05-27 Hannes Domani <ssbssa@yahoo.de>
3198
3199 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3200
96445f0b
HD
32012020-05-27 Hannes Domani <ssbssa@yahoo.de>
3202
3203 * exec.c (exec_file_attach): Use errno value of first openp failure.
3204
ac637ec3
HD
32052020-05-27 Hannes Domani <ssbssa@yahoo.de>
3206
3207 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3208 Don't close thread handle.
3209
17ee85fc
TT
32102020-05-27 Tom Tromey <tom@tromey.com>
3211 Simon Marchi <simon.marchi@efficios.com>
3212
3213 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3214 shared_ptr.
3215 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3216 member.
3217 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3218 dwarf2_per_bfd_objfile_data_key>: New globals.
3219 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3220 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3221 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3222 shared.
3223 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3224 short-circuit when sharing.
3225 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3226 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3227
39b16f87
SM
32282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3229
3230 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3231 to...
3232 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3233 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3234
fcf23d5b
SM
32352020-05-27 Simon Marchi <simon.marchi@efficios.com>
3236
3237 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3238 build_name_components, find_name_components_bounds>:
3239 Add per_objfile parameter.
3240 (struct mapped_index) <symbol_name_at>: Likewise.
3241 (struct mapped_debug_names): Remove constructor.
3242 <dwarf2_per_objfile>: Remove field.
3243 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3244 (mapped_index_base::find_name_components_bounds,
3245 mapped_index_base::build_name_components,
3246 dw2_expand_symtabs_matching_symbol): Likewise.
3247 (class mock_mapped_index) <symbol_name_at>: Likewise.
3248 (check_match): Likewise.
3249 (check_find_bounds_finds): Likewise.
3250 (test_mapped_index_find_name_component_bounds): Update.
3251 (CHECK_MATCH): Update.
3252 (dw2_expand_symtabs_matching): Update.
3253 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3254 per_objfile parameter.
3255 <find_vec_in_debug_names>: Likewise.
3256 <m_per_objfile>: New field.
3257 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3258 parameter.
3259 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3260 (dw2_debug_names_iterator::next): Update.
3261 (dw2_debug_names_lookup_symbol): Update.
3262 (dw2_debug_names_expand_symtabs_for_function): Update.
3263 (dw2_debug_names_map_matching_symbols): Update.
3264 (dw2_debug_names_expand_symtabs_matching): Update.
3265 (dwarf2_read_debug_names): Update.
3266
7188ed02
SM
32672020-05-27 Simon Marchi <simon.marchi@efficios.com>
3268
3269 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3270 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3271 move to dwarf2_per_objfile.
3272 <read_in_chain>: Remove.
3273 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3274 remove_all_cus, age_comp_units>: New methods.
3275 <m_dwarf2_cus>: New member.
3276 (struct dwarf2_per_cu_data) <cu>: Remove.
3277 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3278 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3279 moved to methods of dwarf2_per_objfile.
3280 (dwarf2_clear_marks): Remove.
3281 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3282 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3283 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3284 (dwarf2_per_objfile::remove_all_cus): New.
3285 (class free_cached_comp_units) <~free_cached_comp_units>:
3286 Update.
3287 (load_cu): Update.
3288 (dw2_do_instantiate_symtab): Adjust.
3289 (fill_in_sig_entry_from_dwo_entry): Adjust.
3290 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3291 (cutu_reader::cutu_reader): Likewise.
3292 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3293 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3294 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3295 and dwarf2_per_objfile::age_comp_units.
3296 (load_partial_comp_unit): Update.
3297 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3298 (process_queue): Likewise.
3299 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3300 backlink.
3301 (dwarf2_read_addr_index): Likewise.
3302 (follow_die_offset): Likewise.
3303 (dwarf2_fetch_die_loc_sect_off): Likewise.
3304 (dwarf2_fetch_constant_bytes): Likewise.
3305 (dwarf2_fetch_die_type_sect_off): Likewise.
3306 (follow_die_sig_1): Likewise.
3307 (load_full_type_unit): Likewise.
3308 (read_signatured_type): Likewise.
3309 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3310 (dwarf2_cu::~dwarf2_cu): Remove.
3311 (dwarf2_per_objfile::get_cu): New.
3312 (dwarf2_per_objfile::set_cu): New.
3313 (age_cached_comp_units): Rename to...
3314 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3315 to std::unordered_map.
3316 (free_one_cached_comp_unit): Rename to...
3317 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3318 to std::unordered_map.
3319 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3320 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3321 a dwarf2_per_objfile in data.
3322 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3323 (dwarf2_clear_marks): Remove.
3324
2e671100
SM
33252020-05-27 Simon Marchi <simon.marchi@efficios.com>
3326
3327 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3328 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3329 (init_tu_and_read_dwo_dies): Likewise.
3330 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3331 (cutu_reader::cutu_reader): Likewise.
3332 (load_partial_comp_unit): Likewise.
3333 (process_psymtab_comp_unit): Update.
3334 (build_type_psymtabs_1): Update.
3335 (process_skeletonless_type_unit): Update.
3336 (load_full_comp_unit): Update.
3337 (find_partial_die): Update.
3338 (dwarf2_read_addr_index): Update.
3339 (read_signatured_type): Update.
3340
2e6a9f79
SM
33412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3342
3343 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3344 m_header_read_in>: New fields.
3345 <get_header>: New method.
3346 * dwarf2/read.c (per_cu_header_read_in): Remove.
3347 (dwarf2_per_cu_data::get_header): New.
3348 (dwarf2_per_cu_data::addr_size): Update.
3349 (dwarf2_per_cu_data::offset_size): Update.
3350 (dwarf2_per_cu_data::ref_addr_size): Update.
3351
1b555f17
SM
33522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3353
3354 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3355 (dw2_do_instantiate_symtab): Update.
3356 (queue_and_load_all_dwo_tus): Change parameter from
3357 dwarf2_per_cu_data to dwarf2_cu.
3358 (dwarf2_fetch_die_loc_sect_off): Update.
3359 (dwarf2_fetch_constant_bytes): Update.
3360 (dwarf2_fetch_die_type_sect_off): Update.
3361
8fc0b21d
SM
33622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3363
3364 * dwarf2/read.c (process_full_comp_unit,
3365 process_full_type_unit): Remove per_cu, per_objfile paramters.
3366 Add dwarf2_cu parameter.
3367 (process_queue): Update.
3368
168c9250
SM
33692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3370
3371 * dwarf2/read.c (create_cu_from_index_list): Replace
3372 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3373 (create_cus_from_index_list): Likewise.
3374 (create_cus_from_index): Likewise.
3375 (create_signatured_type_table_from_index): Likewise.
3376 (create_cus_from_debug_names_list): Likewise.
3377 (create_cus_from_debug_names): Likewise.
3378 (dwarf2_read_gdb_index): Update.
3379 (dwarf2_read_debug_names): Update.
3380
e286671b
TT
33812020-05-27 Tom Tromey <tom@tromey.com>
3382 Simon Marchi <simon.marchi@efficios.com>
3383
3384 * dwarf2/read.h (struct dwarf2_per_objfile)
3385 <get_type_for_signatured_type, set_type_for_signatured_type>:
3386 New methods.
3387 <m_type_map>: New member.
3388 (struct signatured_type) <type>: Remove.
3389 * dwarf2/read.c
3390 (dwarf2_per_objfile::get_type_for_signatured_type,
3391 dwarf2_per_objfile::set_type_for_signatured_type): New.
3392 (get_signatured_type): Use new methods.
3393
8adb8487
TT
33942020-05-27 Tom Tromey <tom@tromey.com>
3395 Simon Marchi <simon.marchi@efficios.com>
3396
3397 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3398 (struct dwarf2_per_objfile) <type_units>: New member.
3399 <get_type_unit_group_unshareable>: New method.
3400 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3401 num_symtabs, symtabs>: Remove; move to
3402 type_unit_group_unshareable.
3403 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3404 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3405 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3406
127bbf4b
SM
34072020-05-27 Simon Marchi <simon.marchi@efficios.com>
3408
3409 * dwarf2/read.h (struct dwarf2_per_cu_data):
3410 <dwarf2_per_objfile>: Remove.
3411 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3412 dwarf2_per_objfile.
3413 (create_signatured_type_table_from_index): Likewise.
3414 (create_signatured_type_table_from_debug_names): Likewise.
3415 (create_debug_type_hash_table): Likewise.
3416 (fill_in_sig_entry_from_dwo_entry): Likewise.
3417 (create_type_unit_group): Likewise.
3418 (read_comp_units_from_section): Likewise.
3419 (create_cus_hash_table): Likewise.
3420
f6e649dd
SM
34212020-05-27 Simon Marchi <simon.marchi@efficios.com>
3422
3423 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3424 dwarf2_per_cu_data::dwarf2_per_objfile.
3425 (compute_compunit_symtab_includes): Likewise.
3426 (dwarf2_cu::start_symtab): Likewise.
3427
aa66c379
SM
34282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3429
3430 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3431 parameter.
3432 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3433 (read_namespace_alias): Update.
3434 (lookup_die_type): Update.
3435 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3436 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3437 Update.
3438 (disassemble_dwarf_expression): Update.
3439
120ce1b5
SM
34402020-05-27 Simon Marchi <simon.marchi@efficios.com>
3441
3442 * dwarf2/read.h (struct dwarf2_queue_item): Add
3443 dwarf2_per_objfile parameter, assign new parameter.
3444 <per_objfile>: New field.
3445 * dwarf2/read.c (free_one_cached_comp_unit): Add
3446 dwarf2_per_objfile parameter.
3447 (queue_comp_unit): Likewise.
3448 (dw2_do_instantiate_symtab): Update.
3449 (process_psymtab_comp_unit): Update.
3450 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3451 (process_imported_unit_die): Update.
3452 (queue_and_load_dwo_tu): Update.
3453 (follow_die_offset): Update.
3454 (follow_die_sig_1): Update.
3455
9f47c707
SM
34562020-05-27 Simon Marchi <simon.marchi@efficios.com>
3457
3458 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3459 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3460 (read_call_site_scope): Assign per_objfile.
3461 (dwarf2_per_cu_data::objfile): Remove.
3462 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3463 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3464 dwarf2_per_objfile parameter.
3465 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3466 dwarf2_per_objfile parameter.
3467 (dwarf_expr_reg_to_entry_parameter): Add output
3468 dwarf2_per_objfile parameter.
3469 (locexpr_get_frame_base): Update.
3470 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3471 <push_dwarf_reg_entry_value>: Update.
3472 <call_site_to_target_addr>: Update.
3473 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3474 parameter.
3475 (value_of_dwarf_reg_entry): Update.
3476 (rw_pieced_value): Update.
3477 (indirect_synthetic_pointer): Update.
3478 (dwarf2_evaluate_property): Update.
3479 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3480 parameter.
3481 (locexpr_read_variable): Update.
3482 (locexpr_get_symbol_read_needs): Update.
3483 (loclist_read_variable): Update.
3484
14095eb3
SM
34852020-05-27 Simon Marchi <simon.marchi@efficios.com>
3486
3487 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3488 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3489 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3490 parameter.
3491 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3492 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3493 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3494 parameter.
3495 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3496 sect_variable_value): Add dwarf2_per_objfile parameter.
3497 (class dwarf_evaluate_loc_desc) <dwarf_call,
3498 dwarf_variable_value>: Update.
3499 (fetch_const_value_from_synthetic_pointer): Add
3500 dwarf2_per_objfile parameter.
3501 (fetch_const_value_from_synthetic_pointer): Update.
3502 (coerced_pieced_ref): Update.
3503 (class symbol_needs_eval_context) <dwarf_call,
3504 dwarf_variable_value>: Update.
3505 (dwarf2_compile_expr_to_ax): Update.
3506
3c3cd3d4
SM
35072020-05-27 Simon Marchi <simon.marchi@efficios.com>
3508
3509 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3510 parameter.
3511 (dwarf2_evaluate_loc_desc_full): Update.
3512
82ca3f51
SM
35132020-05-27 Simon Marchi <simon.marchi@efficios.com>
3514
3515 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3516 parameter.
3517 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3518 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3519 dwarf2_per_objfile parameter.
3520 (decode_debug_loc_dwo_addresses): Likewise.
3521 (dwarf2_find_location_expression): Update.
3522 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3523 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3524 parameter.
3525 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3526 parameter.
3527 (locexpr_describe_location_1): Likewise.
3528 (locexpr_describe_location): Update.
3529
4b167ea1
SM
35302020-05-27 Simon Marchi <simon.marchi@efficios.com>
3531
3532 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3533 Remove.
3534 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3535 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3536 (dwarf2_compile_property_to_c): Update.
3537 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3538 use text offset from objfile.
3539 (locexpr_tracepoint_var_ref): Update.
3540 (locexpr_generate_c_location): Update.
3541 (loclist_describe_location): Update.
3542 (loclist_tracepoint_var_ref): Update.
3543 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3544 dwarf2_per_objfile parameter.
3545 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3546 use text offset from objfile.
3547 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3548
89b07335
SM
35492020-05-27 Simon Marchi <simon.marchi@efficios.com>
3550
3551 * dwarf2/expr.h (struct dwarf_expr_context)
3552 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3553 <offset>: Remove.
3554 <per_objfile>: New member.
3555 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3556 dwarf2_per_objfile parameter. Don't set offset, set
3557 per_objfile.
3558 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3559 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3560 a dwarf2_per_objfile object instead of an offset.
3561 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3562 constructor.
3563 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3564 to dwarf2_expr_executor constructor. Don't set offset.
3565 (dwarf2_fetch_cfa_info): Update.
3566 (struct dwarf2_frame_cache) <text_offset>: Remove.
3567 <per_objfile>: New field.
3568 (dwarf2_frame_cache): Update.
3569 (dwarf2_frame_prev_register): Update.
3570 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3571 <dwarf_evaluate_loc_desc>: Add constructor.
3572 (dwarf2_evaluate_loc_desc_full): Update.
3573 (dwarf2_locexpr_baton_eval): Update.
3574 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3575 Add constructor.
3576 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3577
293e7e51
SM
35782020-05-27 Simon Marchi <simon.marchi@efficios.com>
3579
3580 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3581 addr_sized_int_type>: Move to dwarf2_cu.
3582 <int_type>: Move to dwarf2_per_objfile.
3583 (struct dwarf2_per_objfile) <int_type>: Move here.
3584 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3585 addr_sized_int_type>: Move here.
3586 (read_func_scope): Update.
3587 (read_array_type): Update.
3588 (read_tag_string_type): Update.
3589 (attr_to_dynamic_prop): Update.
3590 (dwarf2_per_cu_data::int_type): Rename to...
3591 (dwarf2_per_objfile::int_type): ... this.
3592 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3593 (dwarf2_cu::addr_sized_int_type): ... this.
3594 (read_subrange_type): Update.
3595 (dwarf2_per_cu_data::addr_type): Rename to...
3596 (dwarf2_cu::addr_type): ... this.
3597 (set_die_type): Update.
3598
64874a40
SM
35992020-05-27 Simon Marchi <simon.marchi@efficios.com>
3600
3601 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3602 data through per_cu->cu.
3603
4ab09049
SM
36042020-05-27 Simon Marchi <simon.marchi@efficios.com>
3605
3606 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3607 dwarf2_per_cu_data parameter fo dwarf2_cu.
3608 (lookup_dwo_type_unit): Likewise.
3609 (read_cutu_die_from_dwo): Likewise.
3610 (lookup_dwo_unit): Likewise.
3611 (open_and_init_dwo_file): Likewise.
3612 (lookup_dwo_cutu): Likewise.
3613 (lookup_dwo_comp_unit): Likewise.
3614 (lookup_dwo_type_unit): Likewise.
3615 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3616 (cutu_reader::cutu_reader): Update.
3617
47b14e86
SM
36182020-05-27 Simon Marchi <simon.marchi@efficios.com>
3619
3620 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3621 parameter.
3622 (process_full_type_unit): Likewise.
3623 (process_queue): Update.
3624
43182c09
SM
36252020-05-27 Simon Marchi <simon.marchi@efficios.com>
3626
3627 * dwarf2/read.c (recursively_compute_inclusions): Add
3628 dwarf2_per_objfile parameter.
3629 (compute_compunit_symtab_includes): Likewise.
3630 (process_cu_includes): Update.
3631
7aa104c4
SM
36322020-05-27 Simon Marchi <simon.marchi@efficios.com>
3633
3634 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3635 parameter.
3636 (create_type_unit_group): Update.
3637 (process_psymtab_comp_unit_reader): Update.
3638 (build_type_psymtabs_reader): Update.
3639
e3beb21d
SM
36402020-05-27 Simon Marchi <simon.marchi@efficios.com>
3641
3642 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3643 object through m_this_cu->cu.
3644
d460f660
SM
36452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3646
3647 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3648 the info parameter.
3649 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3650
ab432490
SM
36512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3652
3653 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3654 per_objfile parameter.
3655 (load_full_type_unit): Add per_objfile parameter.
3656 (read_signatured_type): Likewise.
3657 (load_full_comp_unit): Likewise.
3658 (load_cu): Likewise.
3659 (dw2_do_instantiate_symtab): Likewise.
3660 (dw2_get_file_names): Likewise.
3661 (dw2_map_symtabs_matching_filename): Update.
3662 (dw_expand_symtabs_matching_file_matcher): Update.
3663 (dw2_map_symbol_filenames): Update.
3664 (process_psymtab_comp_unit): Add per_objfile parameter.
3665 (build_type_psymtabs_1): Update.
3666 (process_skeletonless_type_unit): Update.
3667 (dwarf2_build_psymtabs_hard): Update.
3668 (load_partial_comp_unit): Add per_objfile parameter.
3669 (scan_partial_symbols): Update.
3670 (load_full_comp_unit): Add per_objfile parameter.
3671 (process_imported_unit_die): Update.
3672 (create_cus_hash_table): Update.
3673 (find_partial_die): Update.
3674 (dwarf2_read_addr_index): Update.
3675 (follow_die_offset): Update.
3676 (dwarf2_fetch_die_loc_sect_off): Update.
3677 (dwarf2_fetch_constant_bytes): Update.
3678 (dwarf2_fetch_die_type_sect_off): Update.
3679 (follow_die_sig_1): Update.
3680 (load_full_type_unit): Add per_objfile parameter.
3681 (read_signatured_type): Likewise.
3682
313bad1b
SM
36832020-05-27 Simon Marchi <simon.marchi@efficios.com>
3684
3685 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3686 of objfile_name.
3687
c3699833
SM
36882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3689
3690 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3691 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3692 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3693 field.
3694 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3695 (create_cus_from_index): Update.
3696 (dwarf2_read_gdb_index): Update.
3697 (create_cus_from_debug_names): Update.
3698 (dwarf2_read_debug_names): Update.
3699 (get_abbrev_section_for_cu): Update.
3700 (create_all_comp_units): Update.
3701 (read_attribute_value): Update.
3702 (get_debug_line_section): Update.
3703 * dwarf2/index-cache.c (index_cache::store): Update.
3704 * dwarf2/index-write.c (save_gdb_index_command): Update.
3705 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3706
1859c670
SM
37072020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3708
3709 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3710 member.
3711 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3712 dwarf2_per_cu_data::per_bfd.
3713 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3714 (create_type_unit_group): Likewise.
3715 (queue_comp_unit): Remove reference to
3716 per_cu->dwarf2_per_objfile.
3717 (maybe_queue_comp_unit): Likewise.
3718 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3719 (create_cus_hash_table): Assign new field.
3720
5e22e966
SM
37212020-05-27 Simon Marchi <simon.marchi@efficios.com>
3722
3723 * dwarf2/read.c: Replace
3724 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3725 dwarf2_cu->per_objfile throughout.
3726
97a1449a
SM
37272020-05-27 Simon Marchi <simon.marchi@efficios.com>
3728
3729 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3730 parameter, don't use per_cu->dwarf2_per_objfile.
3731 (dw2_instantiate_symtab): Likewise.
3732 (dw2_find_last_source_symtab): Update.
3733 (dw2_map_expand_apply): Update.
3734 (dw2_lookup_symbol): Update.
3735 (dw2_expand_symtabs_for_function): Update.
3736 (dw2_expand_all_symtabs): Update.
3737 (dw2_expand_symtabs_with_fullname): Update.
3738 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3739 don't use per_cu->dwarf2_per_objfile.
3740 (dw2_expand_marked_cus): Update.
3741 (dw2_find_pc_sect_compunit_symtab): Update.
3742 (dw2_debug_names_lookup_symbol): Update.
3743 (dw2_debug_names_expand_symtabs_for_function): Update.
3744 (dw2_debug_names_map_matching_symbols): Update.
3745 (dwarf2_psymtab::expand_psymtab): Update.
3746
9e021579
SM
37472020-05-27 Simon Marchi <simon.marchi@efficios.com>
3748
3749 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3750 <per_objfile>: New member.
3751 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3752 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3753 call to dwarf2_cu.
3754 (cutu_reader::cutu_reader): Update.
3755 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3756
ae090bdb
SM
37572020-05-27 Simon Marchi <simon.marchi@efficios.com>
3758
3759 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3760 struct dwarf2_per_objfile.
3761 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3762 dwarf2_per_bfd.
3763 * dwarf2/read.c (set_die_type): Update.
3764 (get_die_type_at_offset): Update.
3765
af758d11
SM
37662020-05-27 Tom Tromey <tom@tromey.com>
3767 Simon Marchi <simon.marchi@efficios.com>
3768
3769 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3770 method.
3771 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3772 get_symtab, set_symtab>: New methods.
3773 <m_symtabs>: New field.
3774 (struct dwarf2_psymtab): Derive from partial_symtab.
3775 <readin_p, get_compunit_symtab>: Declare methods.
3776 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3777 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3778 New methods.
3779 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3780 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3781 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3782 (dw2_symtab_iter_next, dw2_print_stats)
3783 (dw2_expand_symtabs_with_fullname)
3784 (dw2_expand_symtabs_matching_one)
3785 (dw_expand_symtabs_matching_file_matcher)
3786 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3787 (dw2_debug_names_iterator::next)
3788 (dw2_debug_names_map_matching_symbols)
3789 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3790 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3791 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3792 New methods.
3793 (get_compunit_symtab, process_full_comp_unit)
3794 (process_full_type_unit): Update.
3795 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3796
5989a64e
SM
37972020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3798
3799 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3800 then introduce a new dwarf2_per_objfile type.
3801 <read_line_string>: Move to the new dwarf2_per_objfile type.
3802 <objfile>: Likewise.
3803 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3804 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3805 dwarf2_per_objfile->per_bfd.
3806 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3807 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3808 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3809 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3810 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3811 (dwarf2_per_objfile::locate_sections): Rename to...
3812 (dwarf2_per_bfd::locate_sections): ... this.
3813 (dwarf2_per_objfile::get_cutu): Rename to...
3814 (dwarf2_per_bfd::get_cutu): ... this.
3815 (dwarf2_per_objfile::get_cu): Rename to...
3816 (dwarf2_per_bfd::get_cu): ... this.
3817 (dwarf2_per_objfile::get_tu): Rename to...
3818 (dwarf2_per_bfd::get_tu): ... this.
3819 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3820 (dwarf2_per_bfd::allocate_per_cu): ... this.
3821 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3822 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3823 (get_gdb_index_contents_ftype): Change parameter from
3824 dwarf2_per_objfile to dwarf2_per_bfd.
3825 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3826 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3827
a50264ba
TT
38282020-05-27 Tom Tromey <tom@tromey.com>
3829 Simon Marchi <simon.marchi@efficios.com>
3830
3831 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3832 (allocate_piece_closure): Set "per_objfile" member.
3833 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3834 (locexpr_describe_location, loclist_describe_location): Use new
3835 member.
3836 * dwarf2/read.c (read_call_site_scope)
3837 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3838 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3839 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3840 handle_data_member_location): Set per_objfile member.
3841 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3842 member.
3843 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3844
d3473f0c
TT
38452020-05-27 Tom Tromey <tom@tromey.com>
3846
3847 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3848 allocate_signatured_type>: Declare new methods.
3849 <m_num_psymtabs>: New member.
3850 (struct dwarf2_per_cu_data) <index>: New member.
3851 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3852 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3853 (create_cu_from_index_list): Use allocate_per_cu.
3854 (create_signatured_type_table_from_index)
3855 (create_signatured_type_table_from_debug_names)
3856 (create_debug_type_hash_table, add_type_unit)
3857 (read_comp_units_from_section): Use allocate_signatured_type.
3858
5717c425
TT
38592020-05-27 Tom Tromey <tom@tromey.com>
3860
3861 * psymtab.c (partial_map_expand_apply)
3862 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3863 (psym_lookup_global_symbol_language)
3864 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3865 (psym_print_stats, psym_expand_symtabs_for_function)
3866 (psym_map_symbol_filenames, psym_map_matching_symbols)
3867 (psym_expand_symtabs_matching)
3868 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3869 (maintenance_check_psymtabs): Update.
3870 * psympriv.h (struct partial_symtab) <readin_p,
3871 get_compunit_symtab>: Add objfile parameter.
3872 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3873 Likewise.
3874 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3875 get_compunit_symtab>: Likewise.
3876 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3877
45940949
TT
38782020-05-27 Tom Tromey <tom@tromey.com>
3879
3880 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3881 member.
3882 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3883 (create_cu_from_index_list)
3884 (create_signatured_type_table_from_index)
3885 (create_signatured_type_table_from_debug_names)
3886 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3887 (dwarf2_create_include_psymtab)
3888 (create_debug_type_hash_table, add_type_unit)
3889 (create_type_unit_group, read_comp_units_from_section)
3890 (dwarf2_compute_name, create_cus_hash_table)
3891 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3892 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3893 obstack.
3894 (dw2_get_real_path): Likewise. Change argument to
3895 dwarf2_per_objfile.
3896
f8c6d152
LM
38972020-05-27 Luis Machado <luis.machado@linaro.org>
3898
3899 PR tdep/26000
3900 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3901 for ldrd (immediate).
3902
e98d2e6d
PW
39032020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3904
3905 * command.h: Add comment giving the name of class_tui.
3906 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3907 create the fake command for the help for class_tui.
3908
53a47a3e
TT
39092020-05-26 Tom Tromey <tromey@adacore.com>
3910
3911 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3912 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3913 (val_atr): New function.
3914 (value_val_atr): Use it.
3915 * ada-valprint.c (print_optional_low_bound): Change low bound
3916 handling for enums.
3917 (val_print_packed_array_elements): Don't call discrete_position.
3918 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3919 discrete_position for enum types.
3920 * language.c (default_print_array_index): Change type.
3921 * language.h (struct language_defn) <la_print_array_index>: Add
3922 index_type parameter, change type of index_value.
3923 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3924 (default_print_array_index): Update.
3925 * valprint.c (maybe_print_array_index): Don't call
3926 value_from_longest. Update.
3927 (value_print_array_elements): Don't call discrete_position.
3928
0bc2354b
TT
39292020-05-26 Tom Tromey <tromey@adacore.com>
3930
3931 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3932 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3933
1218a4bf
CDA
39342020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3935
3936 PR gdb/13519
3937 * avr-tdep.c (avr_integer_to_address): Return data or code
3938 address accordingly to the second 'type' argument of the
3939 function.
3940
92651b1d
MW
39412020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3942
3943 * infcmd.c, inferior.h: (construct_inferior_arguments):
3944 Moved function from here to gdbsupport/common-inferior.{h,cc}
3945
0a4f5f8c
TT
39462020-05-23 Tom Tromey <tom@tromey.com>
3947
3948 Revert commit eca1f90c:
3949 * NEWS: Remove entry for completion styling.
3950 * completer.c (_rl_completion_prefix_display_length): Move
3951 declaration later.
3952 (gdb_fnprint): Revert.
3953 (gdb_display_match_list_1): Likewise.
3954 * cli/cli-style.c (completion_prefix_style)
3955 (completion_difference_style, completion_suffix_style): Remove.
3956 (_initialize_cli_style): Revert.
3957 * cli/cli-style.h (completion_prefix_style)
3958 (completion_difference_style, completion_suffix_style): Don't
3959 declare.
3960
e08bd6c5
PA
39612020-05-24 Pedro Alves <palves@redhat.com>
3962
3963 * symtab.c (completion_list_add_name): Return boolean indication
3964 of whether the symbol matched.
3965 (completion_list_add_symbol): Don't try to remove C++ aliases if
3966 the symbol didn't match in the first place.
3967 * symtab.h (completion_list_add_name): Return bool.
3968
ceacbf6e
SM
39692020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3970
3971 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3972 type::field.
3973
26f16254
JB
39742020-05-23 Joel Brobecker <brobecker@adacore.com>
3975
3976 GDB 9.2 released.
3977
eca1f90c
TT
39782020-05-23 Tom Tromey <tom@tromey.com>
3979
3980 * NEWS: Add entry for completion styling.
3981 * completer.c (_rl_completion_prefix_display_length): Move
3982 declaration earlier.
3983 (gdb_fnprint): Use completion_style.
3984 (gdb_display_match_list_1): Likewise.
3985 * cli/cli-style.c (completion_prefix_style)
3986 (completion_difference_style, completion_suffix_style): New
3987 globals.
3988 (_initialize_cli_style): Register new globals.
3989 * cli/cli-style.h (completion_prefix_style)
3990 (completion_difference_style, completion_suffix_style): Declare.
3991
51e2cfa2
PA
39922020-05-23 Pedro Alves <palves@redhat.com>
3993
3994 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3995 (parse_escape): Use ISDIGIT instead of isdigit.
3996 (puts_debug): Use gdb_isprint instead of isprint.
3997 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3998 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3999 ISSPACE instead of isspace.
4000 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4001 instead of isspace.
4002 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4003 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4004 instead of isxdigit and ISDIGIT instead of isdigit.
4005
80fc5e77
SM
40062020-05-22 Simon Marchi <simon.marchi@efficios.com>
4007
4008 * gdbtypes.h (struct type) <field>: New method.
4009 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4010 or type::field.
4011
3cabb6b0
SM
40122020-05-22 Simon Marchi <simon.marchi@efficios.com>
4013
4014 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4015 (TYPE_FIELDS): Use type::fields. Change all call sites that
4016 modify the propery to use type::set_fields instead.
4017
1f704f76
SM
40182020-05-22 Simon Marchi <simon.marchi@efficios.com>
4019
4020 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4021 type::num_fields instead.
4022
5e33d5f4
SM
40232020-05-22 Simon Marchi <simon.marchi@efficios.com>
4024
4025 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4026 methods.
4027 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4028 that modify the number of fields to use type::set_num_fields
4029 instead.
4030
9392ebb3
TT
40312020-05-22 Tom Tromey <tromey@adacore.com>
4032
4033 * compile/compile-object-load.h (munmap_list_free): Don't
4034 declare.
4035
7c13f4e8
AB
40362020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4037
4038 * annotate.c (annotate_source_line): Update return type, add call
4039 to update current symtab and line.
4040 * annotate.h (annotate_source_line): Update return type, and
4041 extend header comment.
4042 * source.c (info_line_command): Check annotation_level before
4043 calling annotate_source_line.
4044 * stack.c (print_frame_info): If calling annotate_source_line
4045 returns true, then don't print any other source line information.
4046
aa370940
SM
40472020-05-21 Simon Marchi <simon.marchi@efficios.com>
4048
4049 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4050
84d53fa9
SM
40512020-05-21 Simon Marchi <simon.marchi@efficios.com>
4052
4053 * coffread.c (patch_type): Remove NULL check before xfree.
4054 * corefile.c (set_gnutarget): Likewise.
4055 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4056 * exec.c (build_section_table): Likewise.
4057 * remote.c (remote_target::pass_signals): Likewise.
4058 * utils.c (n_spaces): Likewise.
4059 * cli/cli-script.c (document_command): Likewise.
4060 * i386-windows-tdep.c (core_process_module_section): Likewise.
4061 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4062
9d428aae
SM
40632020-05-20 Simon Marchi <simon.marchi@efficios.com>
4064
4065 * symfile.c (reread_symbols): Clear objfile's section_offsets
4066 vector and section indices, re-compute them by calling
4067 sym_offsets.
4068
250106a7
TT
40692020-05-20 Tom Tromey <tromey@adacore.com>
4070
4071 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4072 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4073
9a0bacfb
TV
40742020-05-20 Tom de Vries <tdevries@suse.de>
4075
4076 PR symtab/25833
4077 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4078
7b958a48
AM
40792020-05-20 Alan Modra <amodra@gmail.com>
4080
4081 PR 25993
4082 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4083 bfd_set_filename.
4084 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4085 passed to bfd_set_filename.
4086 * symfile-mem.c (add_vsyscall_page): Likewise for string
4087 passed to symbol_file_add_from_memory.
4088 (symbol_file_add_from_memory): Make name param a const char* and
4089 don't strdup.
4090
c7e97679
AM
40912020-05-20 Alan Modra <amodra@gmail.com>
4092
4093 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4094 rather than accessing bfd->filename directly.
4095 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4096 and use bfd_section_name.
4097 * dwarf2/frame.c (decode_frame_entry): Likewise.
4098 * exec.c (exec_set_section_address): Likewise.
4099 * solib-aix.c (solib_aix_bfd_open): Likewise.
4100 * stap-probe.c (get_stap_base_address): Likewise.
4101 * symfile.c (reread_symbols): Likewise.
4102
563c591b
TT
41032020-05-19 Tom Tromey <tromey@adacore.com>
4104
4105 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4106
f408d82c
SM
41072020-05-19 Simon Marchi <simon.marchi@efficios.com>
4108
4109 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4110
98c59b52
PA
41112020-05-19 Pedro Alves <palves@redhat.com>
4112
4113 * NEWS (set exec-file-mismatch): Adjust entry.
4114 * exec.c: Include "build-id.h".
4115 (validate_exec_file): Try to match build IDs instead of filenames.
4116 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4117 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4118 and pass down 'warn_if_slow'.
4119 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4120 gdb_bfd_open_closure to pass it down.
4121 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4122
4111f652
PA
41232020-05-19 Pedro Alves <palves@redhat.com>
4124
4125 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4126 * target.c (target_fileio_open_1): Rename to target_fileio_open
4127 and make extern. Use bool.
4128 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4129 (target_fileio_read_alloc_1): Adjust.
4130 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4131 (target_fileio_open_warn_if_slow): Delete declaration.
4132
ad80db5b
PA
41332020-05-19 Pedro Alves <palves@redhat.com>
4134
4135 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4136 Adjust all callers.
4137
1d6ce4d3
YS
41382020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4139
4140 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4141 whether disp is negative.
4142
9005fbbb
SM
41432020-05-19 Simon Marchi <simon.marchi@efficios.com>
4144
4145 * symfile.h (struct symfile_segment_data)
4146 <~symfile_segment_data>: Remove.
4147 <segment_info>: Change to std::vector.
4148 * symfile.c (default_symfile_segments): Update.
4149 * elfread.c (elf_symfile_segments): Update.
4150
68b888ff
SM
41512020-05-19 Simon Marchi <simon.marchi@efficios.com>
4152
4153 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4154 <segments>: New.
4155 <segment_bases, segment_sizes>: Remove.
4156 * symfile.c (default_symfile_segments): Update.
4157 * elfread.c (elf_symfile_segments): Update.
4158 * remote.c (remote_target::get_offsets): Update.
4159 * solib-target.c (solib_target_relocate_section_addresses):
4160 Update.
4161
62982abd
SM
41622020-05-19 Simon Marchi <simon.marchi@efficios.com>
4163
4164 * symfile.h (struct symfile_segment_data): Initialize fields.
4165 <~symfile_segment_data>: Add.
4166 (symfile_segment_data_up): New.
4167 (struct sym_fns) <sym_segments>: Return a
4168 symfile_segment_data_up.
4169 (default_symfile_segments): Return a symfile_segment_data_up.
4170 (free_symfile_segment_data): Remove.
4171 (get_symfile_segment_data): Return a symfile_segment_data_up.
4172 * symfile.c (default_symfile_segments): Likewise.
4173 (get_symfile_segment_data): Likewise.
4174 (free_symfile_segment_data): Remove.
4175 (symfile_find_segment_sections): Update.
4176 * elfread.c (elf_symfile_segments): Return a
4177 symfile_segment_data_up.
4178 * remote.c (remote_target::get_offsets): Update.
4179 * solib-target.c (solib_target_relocate_section_addresses):
4180 Update.
4181 * symfile-debug.c (debug_sym_segments): Return a
4182 symfile_segment_data_up.
4183
7f204339
RO
41842020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4185
e52a0f1b
RO
4186 PR build/25981
4187 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4188 Hardcode register numbers.
4189
7f204339
RO
4190 PR build/25981
4191 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4192 procfs_find_LDT_entry): Remove.
4193 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4194 procfs_find_LDT_entry): Remove.
4195 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4196 Remove.
4197
7f32a4d5
PA
41982020-05-17 Pedro Alves <palves@redhat.com>
4199 Andrew Burgess <andrew.burgess@embecosm.com>
4200 Keno Fischer <keno@juliacomputing.com>
4201
4202 PR gdb/25741
4203 * breakpoint.c (build_target_condition_list): Update comments.
4204 (build_target_command_list): Update comments and skip matching
4205 locations.
4206 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4207 a separate function. Simplify "set breakpoint auto-hw off"
4208 handling.
4209 (insert_breakpoints): Update comment.
4210 (tracepoint_locations_match): New parameter. For breakpoints,
4211 compare location types too, if the caller wants to.
4212 (handle_automatic_hardware_breakpoints): New functions.
4213 (bp_location_is_less_than): Also sort by location type and
4214 hardware breakpoint length.
4215 (update_global_location_list): Handle "set breakpoint auto-hw on"
4216 here.
4217 (update_breakpoint_locations): Ask breakpoint_locations_match to
4218 ignore location types.
4219
7d93a1e0
SM
42202020-05-16 Simon Marchi <simon.marchi@efficios.com>
4221
4222 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4223 type::name instead.
4224
d0e39ea2
SM
42252020-05-16 Simon Marchi <simon.marchi@efficios.com>
4226
4227 * gdbtypes.h (struct type) <name, set_name>: New methods.
4228 (TYPE_CODE): Use type::name. Change all call sites used to set
4229 the name to use type::set_name instead.
4230
2dab0c7b
TT
42312020-05-16 Tom Tromey <tom@tromey.com>
4232
4233 * top.c (quit_force): Update.
4234 * infrun.c (handle_no_resumed): Update.
4235 * top.h (all_uis): New function.
4236 (ALL_UIS): Remove.
4237
59f7bd8d
SM
42382020-05-16 Simon Marchi <simon.marchi@efficios.com>
4239
4240 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4241
9bf058f0
PA
42422020-05-16 Pedro Alves <palves@redhat.com>
4243
4244 * ia64-linux-nat.c
4245 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4246 Declare method.
4247 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4248
8f86ae1a
SM
42492020-05-15 Simon Marchi <simon.marchi@efficios.com>
4250
4251 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4252 (sparc64_adi_info): Likewise.
4253
d6bc0792
TT
42542020-05-15 Tom Tromey <tom@tromey.com>
4255
4256 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4257 block_objfile.
4258 (lookup_objfile_from_block): Remove.
4259 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4260 (lookup_global_symbol): Use block_objfile.
4261 * symtab.h (lookup_objfile_from_block): Don't declare.
4262 * printcmd.c (clear_dangling_display_expressions): Use
4263 block_objfile.
4264 * parse.c (operator_check_standard): Use block_objfile.
4265
8c14c3a3
TT
42662020-05-15 Tom Tromey <tom@tromey.com>
4267
4268 * language.c (language_alloc_type_symbol): Set
4269 SYMBOL_SECTION.
4270 * symtab.c (initialize_objfile_symbol): Remove.
4271 (allocate_symbol): Remove.
4272 (allocate_template_symbol): Remove.
4273 * dwarf2/read.c (fixup_go_packaging): Use "new".
4274 (new_symbol): Use "new".
4275 (read_variable): Don't call initialize_objfile_symbol. Use
4276 "new".
4277 (read_func_scope): Use "new".
4278 * xcoffread.c (process_xcoff_symbol): Don't call
4279 initialize_objfile_symbol.
4280 (SYMBOL_DUP): Remove.
4281 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4282 "new".
4283 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4284 (allocate_template_symbol): Don't declare.
4285 (struct symbol): Add copy constructor. Change defaults.
4286 * jit.c (finalize_symtab): Use "new".
4287 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4288 Use "new".
4289 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4290 (common_block_end): Use "new".
4291 * mdebugread.c (parse_symbol): Use "new".
4292 (new_symbol): Likewise.
4293
5b4a1a8d
PW
42942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4295
4296 * NEWS: Mention changes to help and apropos.
4297
57b4f16e
PW
42982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4299
4300 * command.h (enum command_class): Improve comments, document
4301 that class_alias is for user-defined aliases, give the class
4302 name for each class, remove unused class_xdb.
4303 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4304 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4305 by a precise class.
4306 * infcmd.c (_initialize_infcmd): Likewise.
4307 * reverse.c (_initialize_reverse): Likewise.
4308 * stack.c (_initialize_stack): Likewise.
4309 * symfile.c (_initialize_symfile): Likewise.
4310 * tracepoint.c (_initialize_tracepoint): Likewise.
4311
7c05caf7
PW
43122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4313
4314 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4315 when their aliased command is traversed.
4316 (help_cmd): Add fput_command_names_styled call to
4317 output command name and aliases when command has an alias.
4318
3b3aaacb
PW
43192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4320
4321 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4322 * cli/cli-decode.c (help_cmd_list): Declare as static,
4323 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4324 a command together with the command.
4325 (fput_command_name_styled, fput_command_names_styled): New functions.
4326 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4327 fput_command_name_styled.
4328 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4329 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4330
7aa1b46f
PW
43312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4332
4333 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4334 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4335 * command.h (cmd_show_list): Likewise.
4336 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4337 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4338
89bcba74
PW
43392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4340
4341 * unittests/command-def-selftests.c (traverse_command_structure):
4342 Verify all commands of a list have the same prefix command and
4343 that only the top cmdlist commands have a null prefix.
4344
3f4d92eb
PW
43452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4346
4347 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4348 as prefix, not one of its aliases.
4349 (set_cmd_prefix): Remove.
4350 (do_add_cmd): Centralize the setting of the prefix of a command, when
4351 command is defined after its full chain of prefix commands.
4352 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4353 (add_setshow_cmd_full): Likewise.
4354 (update_prefix_field_of_prefixed_commands): New function.
4355 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4356 update_prefix_field_of_prefixed_commands.
4357 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4358 addresses of remote_set_cmdlist and remote_show_cmdlist given
4359 as argument, not the address of an argument.
4360 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4361 * gdb/remote.c (_initialize_remote): Likewise.
4362
0605465f
PW
43632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4364
4365 * cli/cli-cmds.c (alias_command): Check for an existing alias
4366 using lookup_cmd_composition, as valid_command_p is too strict
4367 and forbids aliases that are the prefix of an existing alias
4368 or command.
4369 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4370 command is properly recognised as a valid command.
4371
58e6ac70
PW
43722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4373
4374 * unittests/help-doc-selftests.c: Rename to
4375 unittests/command-def-selftests.c
4376 * unittests/command-def-selftests.c (help_doc_tests): Update some
4377 comments.
4378 (command_structure_tests, traverse_command_structure): New namespace
4379 and function.
4380 (command_structure_invariants_tests): New function.
4381 (_initialize_command_def_selftests) Renamed from
4382 _initialize_help_doc_selftests, register command_structure_invariants
4383 selftest.
4384
a7b9ceb8
PW
43852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4386
4387 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4388 an alias of 'show'.
4389
b2188a06
JB
43902020-05-15 Joel Brobecker <brobecker@adacore.com>
4391
4392 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4393 ada_is_fixed_point_type. Update all callers.
4394 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4395 all callers.
4396 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4397 Update all callers.
4398 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4399 print_fixed_point_type. Update all callers.
4400 * ada-valprint.c (ada_value_print_num): Replace call to
4401 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4402
a51951c2
KB
44032020-05-14 Kevin Buettner <kevinb@redhat.com>
4404
4405 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4406 processors.
4407 (cpu_supports_bts): Add CV_AMD case.
4408
29d6859f
LM
44092020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4410 Simon Marchi <simon.marchi@efficios.com>
4411
4412 * infrun.c (stop_all_threads): Collect multiple wait events at
4413 each pass.
4414
78134374
SM
44152020-05-14 Simon Marchi <simon.marchi@efficios.com>
4416
4417 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4418 type::code instead.
4419
67607e24
SM
44202020-05-14 Simon Marchi <simon.marchi@efficios.com>
4421
4422 * gdbtypes.h (struct type) <code, set_code>: New methods.
4423 (TYPE_CODE): Use type::code. Change all call sites used to set
4424 the code to use type::set_code instead.
4425
a05575d3
TBA
44262020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4427 Tom de Vries <tdevries@suse.de>
4428 Pedro Alves <palves@redhat.com>
4429
4430 PR threads/25478
4431 * infrun.c (stop_all_threads): Do NOT ignore
4432 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4433 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4434 received.
4435 (handle_no_resumed): Remove code handling a live inferior with no
4436 threads.
4437 * remote.c (has_single_non_exited_thread): New.
4438 (remote_target::update_thread_list): Do not delete a thread if is
4439 the last thread of the process.
4440 * thread.c (thread_select): Call delete_exited_threads instead of
4441 prune_threads.
4442
6ad82919
TBA
44432020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4444
4445 * infrun.c (stop_all_threads): Enable/disable thread events of all
4446 targets. Move a debug message denoting the end of the function
4447 into the SCOPED_EXIT block.
4448
d890404b
TBA
44492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4450
4451 * process-stratum-target.h: Include <set>.
4452 (all_non_exited_process_targets, switch_to_target_no_thread): New
4453 function declarations.
4454 * process-stratum-target.c (all_non_exited_process_targets)
4455 (switch_to_target_no_thread): New function implementations.
4456
293b3ebc
TBA
44572020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4458
4459 * infrun.c (handle_inferior_event): Extract out a piece of code
4460 into...
4461 (mark_non_executing_threads): ...this new function.
4462
7ca9b62a
TBA
44632020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4464
4465 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4466 use.
4467
fc75c28b
TBA
44682020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4469
4470 * regcache.c (regcache_read_pc_protected): New function
4471 implementation that returns 0 if the PC cannot read via
4472 'regcache_read_pc'.
4473 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4474 instead of 'regcache_read_pc'.
4475 (keep_going_pass_signal): Ditto.
4476
a89febbd
TT
44772020-05-13 Tom Tromey <tromey@adacore.com>
4478
4479 * ada-lang.c (align_value): Remove.
4480 (ada_template_to_fixed_record_type_1): Use align_up.
4481
f7e23710
TBA
44822020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4483
4484 * async-event.c: Update the copyright year.
4485 * async-event.h: Update the copyright year.
4486
02ff80c2
SM
44872020-05-12 Simon Marchi <simon.marchi@efficios.com>
4488
4489 * objfiles.h (is_addr_in_objfile,
4490 shared_objfile_contains_address_p): Return bool.
4491 * objfile.c (is_addr_in_objfile,
4492 shared_objfile_contains_address_p): Return bool.
4493
4fd6c7e8
TT
44942020-05-11 Tom Tromey <tromey@adacore.com>
4495
4496 * cli/cli-cmds.c (info_command): Restore.
4497 (_initialize_cli_cmds): Use add_prefix_command for "info".
4498 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4499
5eb68a39
TT
45002020-05-11 Tom Tromey <tromey@adacore.com>
4501
4502 * ada-lang.c (ada_value_primitive_field): Now public.
4503 * ada-lang.h (ada_value_primitive_field): Declare.
4504 * ada-valprint.c (print_field_values): Use
4505 ada_value_primitive_field for wrapper fields.
4506
7666722f
TV
45072020-05-11 Tom de Vries <tdevries@suse.de>
4508
4509 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4510 MODULE_DOMAIN.
4511
3ee6bb11
TV
45122020-05-11 Tom de Vries <tdevries@suse.de>
4513
4514 PR symtab/25941
4515 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4516 with length 0, if not gdb-produced.
4517 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4518
43434996
TV
45192020-05-09 Tom de Vries <tdevries@suse.de>
4520
4521 PR gdb/25955
4522 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4523 calculation.
4524
2f78cffc
TT
45252020-05-09 Tom Tromey <tom@tromey.com>
4526
4527 * top.c (server_command): Now bool.
4528 * top.h (server_command): Now bool.
4529
4f7bc5ed
TT
45302020-05-08 Tom Tromey <tromey@adacore.com>
4531
4532 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4533 already being processed.
4534
8be4b118
TT
45352020-05-08 Tom Tromey <tom@tromey.com>
4536
4537 * printcmd.c (struct display) <next>: Remove.
4538 <display>: New constructor.
4539 <exp_string>: Now a std::string.
4540 <enabled_p>: Now a bool.
4541 (display_number): Move definition earlier.
4542 (displays): Rename from display_chain. Now a std::vector.
4543 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4544 (display_command): Update.
4545 (do_one_display, disable_display)
4546 (enable_disable_display_command, do_enable_disable_display):
4547 Update.
4548 (free_display): Remove.
4549 (clear_displays): Rewrite.
4550 (delete_display): Update.
4551 (map_display_numbers): Use function_view. Remove "data"
4552 parameter. Update.
4553 (do_delete_display): Remove.
4554 (undisplay_command): Update.
4555 (do_one_display, do_displays, disable_display)
4556 (info_display_command): Update.
4557 (do_enable_disable_display): Remove.
4558 (enable_disable_display_command)
4559 (clear_dangling_display_expressions): Update.
4560
94c93c35
TT
45612020-05-08 Tom Tromey <tom@tromey.com>
4562
4563 * symtab.c (set_symbol_cache_size)
4564 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4565 (maintenance_print_symbol_cache_statistics): Update.
4566 * symmisc.c (print_symbol_bcache_statistics)
4567 (print_objfile_statistics, maintenance_print_objfiles)
4568 (maintenance_info_symtabs, maintenance_check_symtabs)
4569 (maintenance_expand_symtabs, maintenance_info_line_tables):
4570 Update.
4571 * symfile-debug.c (set_debug_symfile): Update.
4572 * source.c (forget_cached_source_info): Update.
4573 * python/python.c (gdbpy_progspaces): Update.
4574 * psymtab.c (maintenance_info_psymtabs): Update.
4575 * probe.c (parse_probes): Update.
4576 * linespec.c (iterate_over_all_matching_symtabs)
4577 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4578 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4579 * exec.c (exec_target::close): Update.
4580 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4581 * breakpoint.c (print_one_breakpoint_location)
4582 (create_longjmp_master_breakpoint)
4583 (create_std_terminate_master_breakpoint): Update.
4584 * progspace.c (program_spaces): Now a std::vector.
4585 (maybe_new_address_space): Update.
4586 (add_program_space): Remove.
4587 (program_space::program_space): Update.
4588 (remove_program_space): Update.
4589 (number_of_program_spaces): Remove.
4590 (print_program_space, update_address_spaces): Update.
4591 * progspace.h (program_spaces): Change type.
4592 (ALL_PSPACES): Remove.
4593 (number_of_program_spaces): Don't declare.
4594 (struct program_space) <next>: Remove.
4595
a1fd1ac9
TT
45962020-05-08 Tom Tromey <tom@tromey.com>
4597
4598 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4599 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4600 (enable_break): Update.
4601 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4602 (frv_fdpic_find_canonical_descriptor): Update.
4603 (frv_fetch_objfile_link_map): Update.
4604 * progspace.c (program_space::free_all_objfiles): Update.
4605 (program_space::solibs): New method.
4606 * progspace.h (struct program_space) <solibs>: New method.
4607 * solist.h (master_so_list): Don't declare.
4608 (ALL_SO_LIBS): Remove.
4609 * solib.h (so_list_head): Remove.
4610 (update_solib_list): Update comment.
4611 * solib.c (master_so_list): Remove.
4612 (solib_used, update_solib_list, solib_add)
4613 (info_sharedlibrary_command, clear_solib)
4614 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4615
38eae084
TT
46162020-05-08 Tom Tromey <tom@tromey.com>
4617
4618 * extension.c (extension_languages): Now a std::array.
4619 (ALL_EXTENSION_LANGUAGES): Remove.
4620 (get_ext_lang_defn, get_ext_lang_of_file)
4621 (eval_ext_lang_from_control_command): Update.
4622 (finish_ext_lang_initialization)
4623 (auto_load_ext_lang_scripts_for_objfile)
4624 (ext_lang_type_printers::ext_lang_type_printers)
4625 (apply_ext_lang_type_printers)
4626 (ext_lang_type_printers::~ext_lang_type_printers)
4627 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4628 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4629 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4630 (get_matching_xmethod_workers, ext_lang_colorize)
4631 (ext_lang_before_prompt): Update.
4632 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4633
596dc4ad
TT
46342020-05-08 Tom Tromey <tom@tromey.com>
4635
4636 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4637 overload.
4638 <swap_string, m_string>: Remove.
4639 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4640 Update.
4641 * stabsread.c (define_symbol, read_type): Update.
4642 * linespec.c (find_linespec_symbols): Update.
4643 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4644 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4645 * dbxread.c (read_dbx_symtab): Update.
4646 * cp-support.h (cp_canonicalize_string_full)
4647 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4648 Return unique_xmalloc_ptr.
4649 * cp-support.c (inspect_type): Update.
4650 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4651 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4652 Likewise.
4653 * c-typeprint.c (print_name_maybe_canonical): Update.
4654 * break-catch-throw.c (check_status_exception_catchpoint):
4655 Update.
4656
bf4cb9be
TV
46572020-05-08 Tom de Vries <tdevries@suse.de>
4658
4659 * infrun.c (follow_fork): Copy current_line and current_symtab to
4660 child thread.
4661
a1b68f28
SM
46622020-05-07 Simon Marchi <simon.marchi@efficios.com>
4663
4664 * async-event.c (struct async_signal_handler, struct
4665 async_event_handler): Reformat, remove typedef.
4666
98d48915
SM
46672020-05-07 Simon Marchi <simon.marchi@efficios.com>
4668
4669 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4670 access thistype->main_type->dyn_prop_list directly.
4671
7aa91313
SM
46722020-05-07 Simon Marchi <simon.marchi@efficios.com>
4673
4674 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4675 (remove_dyn_prop): Remove. Update all users to use
4676 type::remove_dyn_prop.
4677 * gdbtypes.c (remove_dyn_prop): Rename to...
4678 (type::remove_dyn_prop): ... this.
4679
5c54719c
SM
46802020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4681
4682 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4683 (add_dyn_prop): Remove. Update all users to use
4684 type::add_dyn_prop.
4685 * gdbtypes.c (add_dyn_prop): Rename to...
4686 (type::add_dyn_prop): ... this.
4687
24e99c6c
SM
46882020-05-07 Simon Marchi <simon.marchi@efficios.com>
4689
4690 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4691 (get_dyn_prop): Remove. Update all users to use
4692 type::dyn_prop.
4693 * gdbtypes.c (get_dyn_prop): Rename to...
4694 (type::dyn_prop): ... this.
4695
0d4bf016
SM
46962020-05-06 Simon Marchi <simon.marchi@efficios.com>
4697
4698 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4699
ac4a4f1c
SM
47002020-05-06 Simon Marchi <simon.marchi@efficios.com>
4701
4702 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4703 instruction, skip it if it's there.
4704
a3bbacc1
SM
47052020-05-05 Simon Marchi <simon.marchi@efficios.com>
4706
4707 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4708
c3236f84
SM
47092020-05-04 Simon Marchi <simon.marchi@efficios.com>
4710
4711 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4712 * gdbtypes.c (recursive_dump_type): Remove use of
4713 TYPE_INCOMPLETE.
4714
3b6acaee
TT
47152020-05-03 Tom Tromey <tom@tromey.com>
4716
4717 * breakpoint.c (catch_command, tcatch_command): Remove.
4718 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4719 add_show_prefix_cmd.
4720 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4721 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4722 Remove.
4723 (add_internal_problem_command): Use add_basic_prefix_cmd,
4724 add_show_prefix_cmd.
4725 * mips-tdep.c (set_mipsfpu_command): Remove.
4726 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4727 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4728 (_initialize_index_cache): Use add_basic_prefix_cmd.
4729 * memattr.c (dummy_cmd): Remove.
4730 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4731 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4732 (_initialize_tui_win): Use add_basic_prefix_cmd,
4733 add_show_prefix_cmd.
4734 * cli/cli-logging.c (set_logging_command): Remove.
4735 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4736 add_show_prefix_cmd.
4737 (show_logging_command): Remove.
4738 * target.c (target_command): Remove.
4739 (add_target): Use add_basic_prefix_cmd.
4740
a51119cd
HD
47412020-05-02 Hannes Domani <ssbssa@yahoo.de>
4742
4743 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4744
652fc23a 47452020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4746
652fc23a
PW
4747 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4748 info_command.
4749
117539e6
KR
47502020-04-30 Kamil Rytarowski <n54@gmx.com>
4751
4752 * nbsd-nat.c (nbsd_enable_proc_events)
4753 (nbsd_nat_target::post_startup_inferior): Add.
4754 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4755 (nbsd_nat_target::update_thread_list): Rewrite.
4756 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4757 "PTRACE_LWP_CREATE".
4758 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4759
102e38eb 47602020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4761
102e38eb
PW
4762 * stack.c (_initialize_stack): Remove duplicated creation
4763 of "frame" command and "f" alias.
4764
ee9d1e5f
HD
47652020-04-30 Hannes Domani <ssbssa@yahoo.de>
4766
4767 PR gdb/18706
4768 * gdbtypes.c (check_typedef): Calculate size of array of
4769 stubbed type.
4770
627c7fb8
HD
47712020-04-30 Hannes Domani <ssbssa@yahoo.de>
4772
4773 PR gdb/15559
4774 * i386-tdep.c (i386_push_dummy_call): Call
4775 i386_thiscall_push_dummy_call.
4776 (i386_thiscall_push_dummy_call): New function.
4777 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4778 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4779 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4780
ffc2844e
SM
47812020-04-29 Simon Marchi <simon.marchi@efficios.com>
4782
4783 * gdbarch.sh (do_read): Add shellcheck disable directive for
4784 warning SC2162.
4785
1207375d
SM
47862020-04-29 Simon Marchi <simon.marchi@efficios.com>
4787
4788 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4789 "referenced but not assigned" warning.
4790
9fdb2916
SM
47912020-04-29 Simon Marchi <simon.marchi@efficios.com>
4792
4793 * gdbarch.sh: Remove code that sets fallbackdefault.
4794
759cea5e
SM
47952020-04-29 Simon Marchi <simon.marchi@efficios.com>
4796
4797 * gdbarch.sh: Use shell operators && and || instead of
4798 -a and -o.
4799
cb02ab24
SM
48002020-04-29 Simon Marchi <simon.marchi@efficios.com>
4801
4802 * gdbarch.sh: Use $(...) instead of `...`.
4803
a6fc5ffc
SM
48042020-04-29 Simon Marchi <simon.marchi@efficios.com>
4805
4806 * gdbarch.sh: Use double quotes around variables.
4807
8d113d13
SM
48082020-04-29 Simon Marchi <simon.marchi@efficios.com>
4809
4810 * gdbarch.sh: Use %s with printf, instead of variables in the
4811 format string.
4812
ed6acedd
TT
48132020-04-29 Tom Tromey <tromey@adacore.com>
4814
4815 PR ada/25875:
4816 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4817 type fields here.
4818 (read_enumeration_type): Call
4819 update_enumeration_type_from_children later. Update comments.
4820 (process_enumeration_scope): Don't create type fields.
4821
b68b1b58
KR
48222020-04-29 Kamil Rytarowski <n54@gmx.com>
4823
4824 * nbsd-tdep.c: Include "xml-syscall.h".
4825 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4826
f94b2e03
KR
48272020-04-29 Kamil Rytarowski <n54@gmx.com>
4828
4829 * nbsd-nat.c: Include "sys/wait.h".
4830 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4831 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4832 (nbsd_nat_target::remove_exec_catchpoint)
4833 (nbsd_nat_target::set_syscall_catchpoint): Add.
4834 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4835 (nbsd_nat_target::insert_exec_catchpoint)
4836 (nbsd_nat_target::remove_exec_catchpoint)
4837 (nbsd_nat_target::set_syscall_catchpoint): Add.
4838 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4839 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4840 `nbsd_get_syscall_number'.
4841
fc49bc72
TT
48422020-04-29 Tom Tromey <tom@tromey.com>
4843
4844 * stack.c (print_block_frame_labels): Remove.
4845
d642b692
HD
48462020-04-29 Hannes Domani <ssbssa@yahoo.de>
4847
4848 PR gdb/17320
4849 * ada-valprint.c (val_print_packed_array_elements): Move array
4850 end bracket to new line.
4851 (ada_val_print_string): Remove extra spaces before first array
4852 element.
4853 * c-valprint.c (c_value_print_array): Likewise.
4854 * m2-valprint.c (m2_print_array_contents): Likewise.
4855 (m2_value_print_inner): Likewise.
4856 * p-valprint.c (pascal_value_print_inner): Likewise.
4857 * valprint.c (generic_val_print_array): Likewise.
4858 (value_print_array_elements): Move first array element and array
4859 end bracket to new line.
4860
ea90f227
TV
48612020-04-29 Tom de Vries <tdevries@suse.de>
4862
4863 PR symtab/25889
4864 * linespec.c (find_method): Fix ix calculation.
4865
4498ef4f
KR
48662020-04-28 Kamil Rytarowski <n54@gmx.com>
4867
4868 * syscalls/update-netbsd.sh: New file.
4869 * syscalls/netbsd.xml: Regenerate.
4870 * data-directory/Makefile.in: Register `netbsd.xml' in
4871 `SYSCALLS_FILES'.
4872
a55e30b5
SM
48732020-04-28 Simon Marchi <simon.marchi@efficios.com>
4874
4875 * syscalls/update-freebsd.sh: Add double quotes.
4876
2b2fbab8
TT
48772020-04-28 Tom Tromey <tom@tromey.com>
4878
4879 * NEWS: Update.
4880 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4881 (cmdpy_init): Allow class_tui.
4882
a65189c9
TV
48832020-04-28 Mark Williams <mark@myosotissp.com>
4884
4885 PR gdb/24480
4886 * dwarf2read.c: Add missing assingments to list_in_scope when
4887 start_symtab was already called.
4888
1b95cdb7
SM
48892020-04-28 Simon Marchi <simon.marchi@efficios.com>
4890
4891 PR gdb/25881
4892 * dwarf2/read.c (offset_map_type): Use
4893 gdb:hash_enum<sect_offset> as hash function.
4894
15cd93d0
TV
48952020-04-28 Tom de Vries <tdevries@suse.de>
4896
4897 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4898 with DW_AT_signature.
4899
1eb39914
SM
49002020-04-27 Simon Marchi <simon.marchi@efficios.com>
4901
4902 * configure.ac: Remove check for fs_base/gs_base in
4903 user_regs_struct.
4904 * configure: Re-generate.
4905 * config.in: Re-generate.
4906 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4907 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4908 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4909
991a3e2e
LM
49102020-04-27 Luis Machado <luis.machado@linaro.org>
4911
4912 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4913 problematic inline frame unwinding situation.
4914 * frame.c (frame_id_computed_p): New function.
4915 * frame.h (frame_id_computed_p): New prototype.
4916
361ba0e8
TT
49172020-04-26 Tom Tromey <tom@tromey.com>
4918
4919 * command.h (enum command_class) <class_pseudo>: Remove.
4920
bc3609fd
PW
49212020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4922
4923 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4924 and whitespace.
4925
b9771db7
KR
49262020-04-25 Kamil Rytarowski <n54@gmx.com>
4927
ec16513e
SM
4928 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4929 `PT_GET_PROCESS_STATE' block.
b9771db7 4930
7151c1af
TT
49312020-04-24 Tom Tromey <tom@tromey.com>
4932
4933 * symtab.h (symbol_get_demangled_name): Don't declare.
4934 * symtab.c (symbol_get_demangled_name): Remove.
4935 (general_symbol_info::natural_name)
4936 (general_symbol_info::demangled_name): Update.
4937
906bb4c5
TT
49382020-04-24 Tom Tromey <tom@tromey.com>
4939
4940 PR rust/25025:
4941 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4942
bcfe6157
TT
49432020-04-24 Tom Tromey <tom@tromey.com>
4944
4945 PR symtab/12707:
4946 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4947 exists.
4948 (new_symbol): Likewise.
4949 * compile/compile-object-load.c (get_out_value_type): Use
4950 symbol_matches_search_name.
4951
f049a313
TT
49522020-04-24 Tom Tromey <tom@tromey.com>
4953
4954 * dwarf2/read.c (add_partial_symbol): Do not call
4955 compute_and_set_names.
4956
76e288d1
TT
49572020-04-24 Tom Tromey <tom@tromey.com>
4958
4959 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4960 overload.
4961
2467f4f6
TT
49622020-04-24 Tom Tromey <tom@tromey.com>
4963
4964 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4965 (add_psymbol_to_list): New overload. Make old overload call new
4966 one.
4967 * psympriv.h (add_psymbol_to_list): New overload.
4968
e61108c9
TT
49692020-04-24 Tom Tromey <tom@tromey.com>
4970
4971 * dwarf2/read.c (partial_die_info::read) <case
4972 DW_AT_linkage_name>: Use value_as_string.
4973 (dwarf2_string_attr): Use value_as_string.
4974 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4975 method.
4976 * dwarf2/attribute.c (attribute::value_as_string): New method.
4977
8c87a452
TT
49782020-04-24 Tom Tromey <tom@tromey.com>
4979
4980 * symtab.c (general_symbol_info::natural_name)
4981 (general_symbol_info::demangled_name): Check for language_rust.
4982
787de330
TT
49832020-04-24 Tom Tromey <tom@tromey.com>
4984
4985 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4986 (dwarf2_physname): ... from here.
4987 (partial_die_info::read): Add Rust "{" hack.
4988
ff985671
TT
49892020-04-24 Tom Tromey <tom@tromey.com>
4990
4991 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4992 method.
4993 (symbol_set_demangled_name): Don't declare.
4994 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4995 symbol_set_demangled_name.
4996 (general_symbol_info::set_language)
4997 (general_symbol_info::compute_and_set_names): Update.
4998 * minsyms.c (minimal_symbol_reader::install): Update.
4999 * dwarf2/read.c (new_symbol): Update.
5000
1acda803
TT
50012020-04-24 Tom Tromey <tromey@adacore.com>
5002
5003 PR python/23662:
5004 * python/py-type.c (convert_field): Handle
5005 FIELD_LOC_KIND_DWARF_BLOCK.
5006 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5007 (typy_get_dynamic): Nw function.
5008 (type_object_getset): Add "dynamic".
5009 * NEWS: Add entry.
5010
d656f129
TT
50112020-04-24 Tom Tromey <tromey@adacore.com>
5012
5013 * ada-typeprint.c (print_choices, print_variant_part)
5014 (print_record_field_types_dynamic): New functions.
5015 (print_record_field_types): Use print_record_field_types_dynamic.
5016
7d79de9a
TT
50172020-04-24 Tom Tromey <tromey@adacore.com>
5018
5019 * dwarf2/read.c (handle_data_member_location): New overload.
5020 (dwarf2_add_field): Use it.
5021 (decode_locdesc): Add "computed" parameter. Update comment.
5022 * gdbtypes.c (is_dynamic_type_internal): Also look for
5023 FIELD_LOC_KIND_DWARF_BLOCK.
5024 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5025 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5026 virtual base classes.
5027 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5028 FIELD_LOC_KIND_DWARF_BLOCK.
5029
f8e89861
TT
50302020-04-24 Tom Tromey <tromey@adacore.com>
5031
5032 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5033 * gdbtypes.c (is_dynamic_type_internal): Check
5034 TYPE_HAS_DYNAMIC_LENGTH.
5035 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5036 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5037 New macros.
5038 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5039 constant.
5040
9c6a1327
TT
50412020-04-24 Tom Tromey <tromey@adacore.com>
5042
5043 * dwarf2/read.c (struct variant_field): Rewrite.
5044 (struct variant_part_builder): New.
5045 (struct nextfield): Remove "variant" field. Add "offset".
5046 (struct field_info): Add "current_variant_part" and
5047 "variant_parts".
5048 (alloc_discriminant_info): Remove.
5049 (alloc_rust_variant): New function.
5050 (quirk_rust_enum): Update.
5051 (dwarf2_add_field): Set "offset" member. Don't handle
5052 DW_TAG_variant_part.
5053 (offset_map_type): New typedef.
5054 (convert_variant_range, create_one_variant)
5055 (create_one_variant_part, create_variant_parts)
5056 (add_variant_property): New functions.
5057 (dwarf2_attach_fields_to_type): Call add_variant_property.
5058 (read_structure_type): Don't handle DW_TAG_variant_part.
5059 (handle_variant_part, handle_variant): New functions.
5060 (handle_struct_member_die): Use them.
5061 (process_structure_scope): Don't handle variant parts.
5062 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5063 (struct discriminant_info): Remove.
5064 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5065 (struct main_type) <flag_discriminated_union>: Remove.
5066 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5067 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5068 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5069 Update.
5070 * valops.c (value_union_variant): Remove.
5071 * value.h (value_union_variant): Don't declare.
5072
b249d2c2
TT
50732020-04-24 Tom Tromey <tromey@adacore.com>
5074
5075 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5076 (ada_value_primitive_packed_val): Update.
5077 * ada-valprint.c (ada_value_print_1): Update.
5078 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5079 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5080 just an address. Use evaluate_for_locexpr_baton.
5081 (dwarf2_evaluate_property): Update.
5082 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5083 array_view.
5084 * findvar.c (default_read_var_value): Update.
5085 * gdbtypes.c (compute_variant_fields_inner)
5086 (resolve_dynamic_type_internal): Update.
5087 (resolve_dynamic_type): Change type of valaddr parameter.
5088 * gdbtypes.h (resolve_dynamic_type): Update.
5089 * valarith.c (value_subscripted_rvalue): Update.
5090 * value.c (value_from_contents_and_address): Update.
5091
61122aa9
TT
50922020-04-24 Tom Tromey <tromey@adacore.com>
5093
5094 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5095 "push_initial_value" parameter.
5096 (dwarf2_evaluate_property): Likewise.
5097 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5098
ef83a141
TT
50992020-04-24 Tom Tromey <tromey@adacore.com>
5100
5101 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5102 (variant::matches, compute_variant_fields_recurse)
5103 (compute_variant_fields_inner, compute_variant_fields): New
5104 functions.
5105 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5106 Use resolved_type after type is made.
5107 (operator==): Add new cases.
5108 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5109 (struct discriminant_range, struct variant, struct variant_part):
5110 New.
5111 (union dynamic_prop_data) <variant_parts, original_type>: New
5112 members.
5113 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5114 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5115 constants.
5116 * value.c (unpack_bits_as_long): Now public.
5117 * value.h (unpack_bits_as_long): Declare.
5118
675127ec
TT
51192020-04-24 Tom Tromey <tromey@adacore.com>
5120
5121 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5122 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5123
9852ceef
HD
51242020-04-24 Hannes Domani <ssbssa@yahoo.de>
5125
5126 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5127
7632c6ce
KR
51282020-04-24 Kamil Rytarowski <n54@gmx.com>
5129
5130 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5131 (remove_fork_catchpoint, post_startup_inferior)
5132 (post_attach): Move...
5133 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5134 (remove_fork_catchpoint, post_startup_inferior)
5135 (post_attach): ...here.
5136 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5137 (remove_fork_catchpoint, post_startup_inferior)
5138 (post_attach): Move...
5139 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5140 (remove_fork_catchpoint, post_startup_inferior)
5141 (post_attach): ...here.
5142
7be2bb4f
TT
51432020-04-24 Tom Tromey <tromey@adacore.com>
5144
5145 * nat/windows-nat.h (struct windows_thread_info)
5146 <pc_adjusted>: New member.
5147 * windows-nat.c (windows_fetch_one_register): Check
5148 pc_adjusted.
5149 (windows_nat_target::get_windows_debug_event)
5150 (windows_nat_target::wait): Set pc_adjusted.
5151
f80cb3b4
TV
51522020-04-24 Tom de Vries <tdevries@suse.de>
5153
5154 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5155 Run gdb-add-index inside temp dir.
5156
29514b87
TT
51572020-04-23 Tom Tromey <tromey@adacore.com>
5158
5159 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5160 in loop.
5161
5939967b
LM
51622020-04-23 Luis Machado <luis.machado@linaro.org>
5163
5164 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5165 get_frame_register instead of gdbarch_unwind_pc.
5166
70bc38f5
TV
51672020-04-23 Tom de Vries <tdevries@suse.de>
5168
5169 * symtab.c (lookup_global_symbol): Prefer def over decl.
5170
de82891c
TV
51712020-04-23 Tom de Vries <tdevries@suse.de>
5172
5173 PR symtab/25807
5174 * block.c (best_symbol, better_symbol): Promote to external.
5175 * block.h (best_symbol, better_symbol): Declare.
5176 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5177 decl.
5178
ecc6c606
TT
51792020-04-23 Tom Tromey <tromey@adacore.com>
5180
5181 PR ada/25837:
5182 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5183 "const char *", not a "const std::string &".
5184 <name_and_matcher::operator==>: Update.
5185 * unittests/lookup_name_info-selftests.c: Change type of
5186 "result".
5187
740480b8
TT
51882020-04-23 Tom Tromey <tom@tromey.com>
5189
5190 * inferior.h (iterate_over_inferiors): Don't declare.
5191 * inferior.c (iterate_over_inferiors): Remove.
5192 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5193 Remove.
5194 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5195 use iterate_over_inferiors.
5196 (darwin_resume_inferior_it)
5197 (struct resume_inferior_threads_param)
5198 (darwin_resume_inferior_threads_it): Remove.
5199 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5200
ae3ab1f0
TV
52012020-04-23 Tom de Vries <tdevries@suse.de>
5202
5203 * blockframe.c (find_pc_partial_function): Use
5204 find_pc_sect_compunit_symtab rather than
5205 objfile->sf->qf->find_pc_sect_compunit_symtab.
5206
317d2668
TV
52072020-04-22 Tom de Vries <tdevries@suse.de>
5208
5209 PR symtab/25764
5210 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5211 in psymtabs.
5212
eea9e357
TV
52132020-04-22 Tom de Vries <tdevries@suse.de>
5214
5215 PR symtab/25801
5216 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5217 symtabs.
5218
3d5afab3
TV
52192020-04-22 Tom de Vries <tdevries@suse.de>
5220
5221 PR symtab/25700
5222 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5223 CU if already created.
5224
d43b7a2d
TBA
52252020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5226
5227 * infrun.c (displaced_step_fixup): Switch to the event_thread
5228 before calling displaced_step_restore, not after.
5229
d89edf9b
MM
52302020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5231
5232 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5233 its inferior is not recorded by us.
5234 (record_btrace_target_open): Replace call to
5235 all_non_exited_threads () with call to current_inferior
5236 ()->non_exited_threads ().
5237 (record_btrace_target::stop_recording): Likewise.
5238 (record_btrace_target::close): Likewise.
5239 (record_btrace_target::wait): Likewise.
5240 (record_btrace_target::record_stop_replaying): Likewise.
5241
5897fd49
MM
52422020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5243
5244 * btrace.c (btrace_enable): Throw an error on double enables and
5245 when enabling recording fails.
5246 (btrace_disable): Throw an error if the thread is not recorded.
5247
1a476b6d
MM
52482020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5249
5250 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5251 request if we do not have a thread_info.
5252
4778a5f8
TV
52532020-04-21 Tom de Vries <tdevries@suse.de>
5254
5255 PR gdb/25471
5256 * thread.c
5257 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5258 exception in get_frame_id.
5259
0fa7617d
TT
52602020-04-20 Tom Tromey <tromey@adacore.com>
5261
5262 * python/python.c (struct gdbpy_event): Mark move constructor as
5263 noexcept.
5264 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5265 constructor as noexcept.
5266 * completer.h (struct completion_result): Mark move constructor as
5267 noexcept.
5268 * completer.c (completion_result::completion_result): Use
5269 initialization style. Don't call reset_match_list.
5270
ad23bda0
MS
52712020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5272
5273 * MAINTAINERS (Write After Approval): Add myself.
5274
45e1f031
TT
52752020-04-18 Tom Tromey <tom@tromey.com>
5276
5277 * windows-tdep.c (init_w32_command_list)
5278 (w32_prefix_command_valid): Restore.
5279 (_initialize_windows_tdep): Call init_w32_command_list.
5280
08feed99
TT
52812020-04-18 Tom Tromey <tom@tromey.com>
5282
5283 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5284 * value.c (value_fn_field): Update.
5285 * valops.c (find_function_in_inferior)
5286 (value_allocate_space_in_inferior): Update.
5287 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5288 Update.
5289 * tui/tui-source.c (tui_source_window::set_contents): Update.
5290 * symtab.c (lookup_global_or_static_symbol)
5291 (find_function_start_sal_1, skip_prologue_sal)
5292 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5293 * symmisc.c (dump_msymbols, dump_symtab_1)
5294 (maintenance_print_one_line_table): Update.
5295 * symfile.c (init_entry_point_info, section_is_mapped)
5296 (list_overlays_command, simple_read_overlay_table)
5297 (simple_overlay_update_1): Update.
5298 * stap-probe.c (handle_stap_probe): Update.
5299 * stabsread.c (dbx_init_float_type, define_symbol)
5300 (read_one_struct_field, read_enum_type, read_range_type): Update.
5301 * source.c (info_line_command): Update.
5302 * python/python.c (gdbpy_source_objfile_script)
5303 (gdbpy_execute_objfile_script): Update.
5304 * python/py-type.c (save_objfile_types): Update.
5305 * python/py-objfile.c (py_free_objfile): Update.
5306 * python/py-inferior.c (python_new_objfile): Update.
5307 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5308 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5309 (maintenance_check_psymtabs): Update.
5310 * printcmd.c (info_address_command): Update.
5311 * objfiles.h (struct objfile) <arch>: New method, from
5312 get_objfile_arch.
5313 (get_objfile_arch): Don't declare.
5314 * objfiles.c (get_objfile_arch): Remove.
5315 (filter_overlapping_sections): Update.
5316 * minsyms.c (msymbol_is_function): Update.
5317 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5318 (output_nondebug_symbol): Update.
5319 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5320 (mdebug_expand_psymtab): Update.
5321 * machoread.c (macho_add_oso_symfile): Update.
5322 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5323 Update.
5324 * linux-fork.c (checkpoint_command): Update.
5325 * linespec.c (convert_linespec_to_sals): Update.
5326 * jit.c (finalize_symtab): Update.
5327 * infrun.c (insert_exception_resume_from_probe): Update.
5328 * ia64-tdep.c (ia64_find_unwind_table): Update.
5329 * hppa-tdep.c (internalize_unwinds): Update.
5330 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5331 Update.
5332 * gcore.c (call_target_sbrk): Update.
5333 * elfread.c (record_minimal_symbol, elf_symtab_read)
5334 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5335 (elf_gnu_ifunc_resolve_by_got): Update.
5336 * dwarf2/read.c (create_addrmap_from_index)
5337 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5338 (read_debug_names_from_section)
5339 (process_psymtab_comp_unit_reader, add_partial_symbol)
5340 (add_partial_subprogram, process_full_comp_unit)
5341 (read_file_scope, read_func_scope, read_lexical_block_scope)
5342 (read_call_site_scope, dwarf2_ranges_read)
5343 (dwarf2_record_block_ranges, dwarf2_add_field)
5344 (mark_common_block_symbol_computed, read_tag_pointer_type)
5345 (read_tag_string_type, dwarf2_init_float_type)
5346 (dwarf2_init_complex_target_type, read_base_type)
5347 (partial_die_info::read, partial_die_info::read)
5348 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5349 (dwarf2_fetch_die_loc_sect_off): Update.
5350 * dwarf2/loc.c (dwarf2_find_location_expression)
5351 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5352 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5353 (dwarf2_loc_desc_get_symbol_read_needs)
5354 (locexpr_describe_location_piece, locexpr_describe_location_1)
5355 (loclist_describe_location): Update.
5356 * dwarf2/index-write.c (write_debug_names): Update.
5357 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5358 * dtrace-probe.c (dtrace_process_dof): Update.
5359 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5360 (process_one_symbol): Update.
5361 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5362 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5363 (coff_read_enum_type): Update.
5364 * cli/cli-cmds.c (edit_command, list_command): Update.
5365 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5366 * breakpoint.c (create_overlay_event_breakpoint)
5367 (create_longjmp_master_breakpoint)
5368 (create_std_terminate_master_breakpoint)
5369 (create_exception_master_breakpoint, get_sal_arch): Update.
5370 * block.c (block_gdbarch): Update.
5371 * annotate.c (annotate_source_line): Update.
5372
0743fc83
TT
53732020-04-17 Tom Tromey <tromey@adacore.com>
5374
5375 * auto-load.c (show_auto_load_cmd): Remove.
5376 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5377 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5378 (maintenance_print_arc_command): Remove.
5379 * tui/tui-win.c (tui_command): Remove.
5380 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5381 * tui/tui-layout.c (tui_layout_command): Remove.
5382 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5383 * python/python.c (user_set_python, user_show_python): Remove.
5384 (_initialize_python): Use add_basic_prefix_cmd,
5385 add_show_prefix_cmd.
5386 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5387 (install_gdb_commands): Use add_basic_prefix_cmd,
5388 add_show_prefix_cmd.
5389 (info_guile_command): Remove.
5390 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5391 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5392 add_show_prefix_cmd.
5393 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5394 Remove do_set and do_show parameters.
5395 * cli/cli-style.c (set_style, show_style): Remove.
5396 (_initialize_cli_style): Use add_basic_prefix_cmd,
5397 add_show_prefix_cmd.
5398 (cli_style_option::add_setshow_commands): Remove do_set and
5399 do_show parameters.
5400 (cli_style_option::add_setshow_commands): Use
5401 add_basic_prefix_cmd, add_show_prefix_cmd.
5402 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5403 (set_style_name): Remove.
5404 * cli/cli-dump.c (dump_command, append_command): Remove.
5405 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5406 (tekhex_dump_command, binary_dump_command)
5407 (binary_append_command): Remove.
5408 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5409 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5410 (init_w32_command_list): Remove; move into ...
5411 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5412 * valprint.c (set_print, show_print, set_print_raw)
5413 (show_print_raw): Remove.
5414 (_initialize_valprint): Use add_basic_prefix_cmd,
5415 add_show_prefix_cmd.
5416 * typeprint.c (set_print_type, show_print_type): Remove.
5417 (_initialize_typeprint): Use add_basic_prefix_cmd,
5418 add_show_prefix_cmd.
5419 * record.c (set_record_command, show_record_command): Remove.
5420 (_initialize_record): Use add_basic_prefix_cmd,
5421 add_show_prefix_cmd.
5422 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5423 add_show_prefix_cmd.
5424 (info_command, show_command, set_debug, show_debug): Remove.
5425 * top.h (set_history, show_history): Don't declare.
5426 * top.c (set_history, show_history): Remove.
5427 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5428 (unset_tdesc_cmd): Remove.
5429 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5430 add_show_prefix_cmd.
5431 * symtab.c (info_module_command): Remove.
5432 (_initialize_symtab): Use add_basic_prefix_cmd.
5433 * symfile.c (overlay_command): Remove.
5434 (_initialize_symfile): Use add_basic_prefix_cmd.
5435 * sparc64-tdep.c (info_adi_command): Remove.
5436 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5437 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5438 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5439 add_show_prefix_cmd.
5440 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5441 (_initialize_serial): Use add_basic_prefix_cmd,
5442 add_show_prefix_cmd.
5443 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5444 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5445 add_show_prefix_cmd.
5446 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5447 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5448 add_show_prefix_cmd.
5449 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5450 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5451 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5452 add_show_prefix_cmd.
5453 * remote.c (remote_command, set_remote_cmd): Remove.
5454 (_initialize_remote): Use add_basic_prefix_cmd.
5455 * record-full.c (set_record_full_command)
5456 (show_record_full_command): Remove.
5457 (_initialize_record_full): Use add_basic_prefix_cmd,
5458 add_show_prefix_cmd.
5459 * record-btrace.c (cmd_set_record_btrace)
5460 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5461 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5462 (cmd_show_record_btrace_pt): Remove.
5463 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5464 add_show_prefix_cmd.
5465 * ravenscar-thread.c (set_ravenscar_command)
5466 (show_ravenscar_command): Remove.
5467 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5468 add_show_prefix_cmd.
5469 * mips-tdep.c (show_mips_command, set_mips_command)
5470 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5471 add_show_prefix_cmd.
5472 * maint.c (maintenance_command, maintenance_info_command)
5473 (maintenance_check_command, maintenance_print_command)
5474 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5475 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5476 add_show_prefix_cmd.
5477 (show_per_command_cmd): Remove.
5478 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5479 Remove.
5480 (maintenance_show_test_settings_cmd): Remove.
5481 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5482 add_show_prefix_cmd.
5483 * maint-test-options.c (maintenance_test_options_command):
5484 Remove.
5485 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5486 * macrocmd.c (macro_command): Remove
5487 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5488 * language.c (set_check, show_check): Remove.
5489 (_initialize_language): Use add_basic_prefix_cmd,
5490 add_show_prefix_cmd.
5491 * infcmd.c (unset_command): Remove.
5492 (_initialize_infcmd): Use add_basic_prefix_cmd.
5493 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5494 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5495 add_show_prefix_cmd.
5496 * go32-nat.c (go32_info_dos_command): Remove.
5497 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5498 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5499 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5500 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5501 (_initialize_frame): Use add_basic_prefix_cmd,
5502 add_show_prefix_cmd.
5503 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5504 (_initialize_dcache): Use add_basic_prefix_cmd,
5505 add_show_prefix_cmd.
5506 * cp-support.c (maint_cplus_command): Remove.
5507 (_initialize_cp_support): Use add_basic_prefix_cmd.
5508 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5509 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5510 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5511 add_basic_prefix_cmd, add_show_prefix_cmd.
5512 * breakpoint.c (save_command): Remove.
5513 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5514 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5515 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5516 add_show_prefix_cmd.
5517 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5518 (set_ada_command, show_ada_command): Remove.
5519 (_initialize_ada_language): Use add_basic_prefix_cmd,
5520 add_show_prefix_cmd.
5521 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5522
3557f442
KR
55232020-04-16 Kamil Rytarowski <n54@gmx.com>
5524
5525 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5526 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5527
16197208
SM
55282020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5529
5530 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5531 warning messages.
5532
00ac85d3
SM
55332020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5534
5535 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5536 import table is not at beginning of .idata section.
5537
381ce63f
PA
55382020-04-16 Pedro Alves <palves@redhat.com>
5539
5540 * inferior.c (delete_inferior): Use delete operator directly
5541 instead of delete_program_space.
5542 * progspace.c (add_program_space): New, factored out from
5543 program_space::program_space.
5544 (remove_program_space): New, factored out from
5545 delete_program_space.
5546 (program_space::program_space): Remove intro comment. Rewrite.
5547 (program_space::~program_space): Remove intro comment. Call
5548 remove_program_space.
5549 (delete_program_space): Delete.
5550 * progspace.h (program_space::program_space): Make explicit. Move
5551 intro comment here, adjusted.
5552 (program_space::~program_space): Move intro comment here,
5553 adjusted.
5554 (delete_program_space): Remove.
5555
a010605f
TT
55562020-04-16 Tom Tromey <tromey@adacore.com>
5557
5558 * windows-nat.c (windows_nat::handle_access_violation): New
5559 function.
5560 * nat/windows-nat.h (handle_access_violation): Declare.
5561 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5562 windows-nat.c. Call handle_access_violation.
5563
efba5c23
TV
55642020-04-16 Tom de Vries <tdevries@suse.de>
5565
5566 PR symtab/25791
5567 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5568 CUs without psymtab.
5569
97ed802d
KB
55702020-04-16 Kevin Buettner <kevinb@redhat.com>
5571
5572 * python/python.c (do_start_initialization): Don't call
5573 PyEval_InitThreads for Python 3.9 and beyond.
5574
c7d64809
KR
55752020-04-15 Kamil Rytarowski <n54@gmx.com>
5576
5577 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5578 thread functions.
5579 (obsd_nat_target::wait): Likewise.
5580
ce127a96
TT
55812020-04-15 Tom Tromey <tromey@adacore.com>
5582
5583 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5584 (DEBUG_EXCEPT): Use debug_printf.
5585
99f1bc6a
AB
55862020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5587
5588 * completer.c (class completion_tracker::completion_hash_entry)
5589 <hash_name>: New member function.
5590 (completion_tracker::discard_completions): New callback to hash a
5591 completion_hash_entry, pass this to htab_create_alloc.
5592
a0e9b532
JT
55932016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5594
5595 * windows-nat.c (windows_make_so): Warn rather than stopping with
5596 an error if realpath() fails.
5597
06ca5dd4
KR
55982020-04-14 Kamil Rytarowski <n54@gmx.com>
5599
5600 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5601 (nbsd_nat_target::info_proc): Add do_status.
5602
194d088f
TV
56032020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5604 Tom de Vries <tdevries@suse.de>
5605
5606 PR symtab/25718
5607 * psympriv.h (struct partial_symtab::read_symtab)
5608 (struct partial_symtab::expand_psymtab)
5609 (struct partial_symtab::read_dependencies): Update comments.
5610 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5611 read_symtab for includer.
5612 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5613 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5614 (struct dwarf2_include_psymtab::m_readin): Remove.
5615 (struct dwarf2_include_psymtab::includer): New member function.
5616 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5617
c1a66c06
TV
56182020-04-14 Tom de Vries <tdevries@suse.de>
5619
5620 PR symtab/25720
5621 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5622 with NULL symbol_matcher and lookup_name.
5623 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5624 and lookup_name.
5625 * dwarf2/read.c (dw2_expand_symtabs_matching)
5626 (dw2_debug_names_expand_symtabs_matching): Same.
5627 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5628 Make lookup_name a pointer. Update comment.
5629 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5630 lookup_name being a pointer.
5631 * symfile.c (expand_symtabs_matching): Same.
5632 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5633 * linespec.c (iterate_over_all_matching_symtabs): Same.
5634
400b5eca
TT
56352020-04-13 Tom Tromey <tom@tromey.com>
5636
5637 * run-on-main-thread.c: Update include.
5638 * unittests/main-thread-selftests.c: Update include.
5639 * tui/tui-win.c: Update include.
5640 * tui/tui-io.c: Update include.
5641 * tui/tui-interp.c: Update include.
5642 * tui/tui-hooks.c: Update include.
5643 * top.h: Update include.
5644 * top.c: Update include.
5645 * ser-base.c: Update include.
5646 * remote.c: Update include.
5647 * remote-notif.c: Update include.
5648 * remote-fileio.c: Update include.
5649 * record-full.c: Update include.
5650 * record-btrace.c: Update include.
5651 * python/python.c: Update include.
5652 * posix-hdep.c: Update include.
5653 * mingw-hdep.c: Update include.
5654 * mi/mi-main.c: Update include.
5655 * mi/mi-interp.c: Update include.
5656 * main.c: Update include.
5657 * linux-nat.c: Update include.
5658 * interps.c: Update include.
5659 * infrun.c: Update include.
5660 * inf-loop.c: Update include.
5661 * event-top.c: Update include.
5662 * event-loop.c: Move to ../gdbsupport/.
5663 * event-loop.h: Move to ../gdbsupport/.
5664 * async-event.h: Update include.
5665 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5666
93b54c8e
TT
56672020-04-13 Tom Tromey <tom@tromey.com>
5668
5669 * tui/tui-win.c: Include async-event.h.
5670 * remote.c: Include async-event.h.
5671 * remote-notif.c: Include async-event.h.
5672 * record-full.c: Include async-event.h.
5673 * record-btrace.c: Include async-event.h.
5674 * infrun.c: Include async-event.h.
5675 * event-top.c: Include async-event.h.
5676 * event-loop.h: Move some declarations to async-event.h.
5677 * event-loop.c: Don't include ser-event.h or top.h. Move some
5678 code to async-event.c.
5679 * async-event.h: New file.
5680 * async-event.c: New file.
5681 * Makefile.in (COMMON_SFILES): Add async-event.c.
5682 (HFILES_NO_SRCDIR): Add async-event.h.
5683
c1cd3163
TT
56842020-04-13 Tom Tromey <tom@tromey.com>
5685
5686 * utils.c (flush_streams): New function.
5687 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5688
29f2bf4f
TT
56892020-04-13 Tom Tromey <tom@tromey.com>
5690
5691 * event-loop.c (handle_file_event): Use warning, not
5692 printf_unfiltered.
5693
98029d02
TT
56942020-04-13 Tom Tromey <tom@tromey.com>
5695
5696 * event-loop.c: Include <chrono>.
5697
06cc9596
TT
56982020-04-13 Tom Tromey <tom@tromey.com>
5699
5700 * gdb_select.h: Move to ../gdbsupport/.
5701 * event-loop.c: Update include path.
5702 * top.c: Update include path.
5703 * ser-base.c: Update include path.
5704 * ui-file.c: Update include path.
5705 * ser-tcp.c: Update include path.
5706 * guile/scm-ports.c: Update include path.
5707 * posix-hdep.c: Update include path.
5708 * ser-unix.c: Update include path.
5709 * gdb_usleep.c: Update include path.
5710 * mingw-hdep.c: Update include path.
5711 * inflow.c: Update include path.
5712 * infrun.c: Update include path.
5713 * event-top.c: Update include path.
5714
8ae8e197
TT
57152020-04-13 Tom Tromey <tom@tromey.com>
5716
5717 * configure: Rebuild.
5718 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5719
58cf28e8
TT
57202020-04-13 Tom Tromey <tom@tromey.com>
5721
5722 * event-loop.h (start_event_loop): Don't declare.
5723 * event-loop.c (start_event_loop): Move...
5724 * main.c (start_event_loop): ...here. Now static.
5725
b7f999ae
SDJ
57262020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5727
5728 * MAINTAINERS: Update my email address.
5729
1085dfd4
KR
57302020-04-12 Kamil Rytarowski <n54@gmx.com>
5731
5732 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5733 IP_ALL.
5734
49d1d1f5
KR
57352020-04-12 Kamil Rytarowski <n54@gmx.com>
5736
5737 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5738 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5739
b4848d2a
KR
57402020-04-12 Kamil Rytarowski <n54@gmx.com>
5741
5742 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5743 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5744
51c133d5
KR
57452020-04-12 Kamil Rytarowski <n54@gmx.com>
5746
5747 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5748
54b8cbd0
KR
57492020-04-11 Kamil Rytarowski <n54@gmx.com>
5750
5751 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5752 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5753 (nbsd_nat_target::info_proc): New functions.
5754 * nbsd-nat.c (kinfo_get_vmmap): New function.
5755 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5756 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5757 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5758 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5759 functions.
5760 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5761 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5762 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5763 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5764 (KINFO_VME_FLAG_GROWS_DOWN): New.
5765
cf83625d
AS
57662020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5767
5768 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5769 bit shift.
5770
0c4311ab
TT
57712020-04-10 Tom Tromey <tromey@adacore.com>
5772
5773 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5774
3e65b3e9
TT
57752020-04-10 Tom Tromey <tromey@adacore.com>
5776
5777 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5778 separate debug files.
5779
13302e95
HD
57802020-04-10 Hannes Domani <ssbssa@yahoo.de>
5781
5782 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5783 Move to...
5784 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5785 ... here.
5786 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5787 Check for STATUS_WX86_BREAKPOINT.
5788 (windows_nat_target::wait): Same.
5789
bdfc1e8a
TV
57902020-04-10 Tom de Vries <tdevries@suse.de>
5791
5792 PR cli/25808
5793 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5794
f4460aec
SM
57952020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5796
5797 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5798 (Write After Approval): Remove Tom de Vries.
5799
a25198bb
BE
58002020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5801
5802 revert partially:
5803 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5804
aac66a4c
SM
5805 * buildsym.c (record_line): Fix undefined behavior and preserve
5806 lines at eof.
a25198bb 5807
206c98a6
KR
58082020-04-09 Kamil Rytarowski <n54@gmx.com>
5809
5810 * auxv.h (svr4_auxv_parse): New.
5811 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5812 and generic_auxv_parse.
5813 (svr4_auxv_parse): Add.
5814 * obsd-tdep.c: Include "auxv.h".
5815 (obsd_auxv_parse): Remove.
5816 (obsd_init_abi): Remove comment.
5817 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5818 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5819 * nbsd-tdep.c: Include "auxv.h".
5820 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5821
71fbdbaf
TT
58222020-04-08 Tom Tromey <tromey@adacore.com>
5823
5824 * nat/windows-nat.h (last_wait_event): Don't declare.
5825 (wait_for_debug_event): Update comment.
5826 * nat/windows-nat.c (last_wait_event): Now static.
5827
2c1d95e8
TT
58282020-04-08 Tom Tromey <tromey@adacore.com>
5829
5830 * windows-nat.c (wait_for_debug_event): Move to
5831 nat/windows-nat.c.
5832 * nat/windows-nat.h (wait_for_debug_event): Declare.
5833 * nat/windows-nat.c (wait_for_debug_event): Move from
5834 windows-nat.c. No longer static.
5835
d2977bc4
TT
58362020-04-08 Tom Tromey <tromey@adacore.com>
5837
5838 * windows-nat.c (get_windows_debug_event): Use
5839 fetch_pending_stop.
5840 * nat/windows-nat.h (fetch_pending_stop): Declare.
5841 * nat/windows-nat.c (fetch_pending_stop): New function.
5842
e758e19c
TT
58432020-04-08 Tom Tromey <tromey@adacore.com>
5844
5845 * windows-nat.c (windows_continue): Use matching_pending_stop and
5846 continue_last_debug_event.
5847 * nat/windows-nat.h (matching_pending_stop)
5848 (continue_last_debug_event): Declare.
5849 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5850 (matching_pending_stop, continue_last_debug_event): New
5851 functions.
5852
8d30e395
TT
58532020-04-08 Tom Tromey <tromey@adacore.com>
5854
5855 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5856 (handle_exception_result): Move to nat/windows-nat.h.
5857 (DEBUG_EXCEPTION_SIMPLE): Remove.
5858 (windows_nat::handle_ms_vc_exception): New function.
5859 (handle_exception): Move to nat/windows-nat.c.
5860 (get_windows_debug_event): Update.
5861 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5862 nat/windows-nat.c.
5863 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5864 (handle_exception_result): Move from windows-nat.c.
5865 (handle_exception): Declare.
5866 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5867 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5868 windows-nat.c.
5869
29de418d
TT
58702020-04-08 Tom Tromey <tromey@adacore.com>
5871
5872 * windows-nat.c (exception_count, event_count): Remove.
5873 (handle_exception, get_windows_debug_event)
5874 (do_initial_windows_stuff): Update.
5875
a816ba18
TT
58762020-04-08 Tom Tromey <tromey@adacore.com>
5877
5878 * windows-nat.c (windows_nat::handle_load_dll)
5879 (windows_nat::handle_unload_dll): Rename. No longer static.
5880 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5881 Declare.
5882
a00caa12
TT
58832020-04-08 Tom Tromey <tromey@adacore.com>
5884
5885 * complaints.h (stop_whining): Declare at top-level.
5886 (complaint): Don't declare stop_whining.
5887
d41b524f
TT
58882020-04-08 Tom Tromey <tromey@adacore.com>
5889
5890 * windows-nat.c (windows_nat::handle_output_debug_string):
5891 Rename. No longer static.
5892 * nat/windows-nat.h (handle_output_debug_string): Declare.
5893
3c76026d
TT
58942020-04-08 Tom Tromey <tromey@adacore.com>
5895
5896 * windows-nat.c (current_process_handle, current_process_id)
5897 (main_thread_id, last_sig, current_event, last_wait_event)
5898 (current_windows_thread, desired_stop_thread_id, pending_stops)
5899 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5900 (display_selectors, fake_create_process)
5901 (get_windows_debug_event): Update.
5902 * nat/windows-nat.h (current_process_handle, current_process_id)
5903 (main_thread_id, last_sig, current_event, last_wait_event)
5904 (current_windows_thread, desired_stop_thread_id, pending_stops)
5905 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5906 * nat/windows-nat.c (current_process_handle, current_process_id)
5907 (main_thread_id, last_sig, current_event, last_wait_event)
5908 (current_windows_thread, desired_stop_thread_id, pending_stops)
5909 (siginfo_er): New globals. Move from windows-nat.c.
5910
9d8679cc
TT
59112020-04-08 Tom Tromey <tromey@adacore.com>
5912
5913 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5914 (handle_load_dll): Update.
5915 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5916
28688adf
TT
59172020-04-08 Tom Tromey <tromey@adacore.com>
5918
5919 * windows-nat.c (enum thread_disposition_type): Move to
5920 nat/windows-nat.h.
5921 (windows_nat::thread_rec): Rename from thread_rec. No longer
5922 static.
5923 (windows_add_thread, windows_nat_target::fetch_registers)
5924 (windows_nat_target::store_registers, handle_exception)
5925 (windows_nat_target::resume, get_windows_debug_event)
5926 (windows_nat_target::get_tib_address)
5927 (windows_nat_target::thread_name)
5928 (windows_nat_target::thread_alive): Update.
5929 * nat/windows-nat.h (enum thread_disposition_type): Move from
5930 windows-nat.c.
5931 (thread_rec): Declare.
5932
4834dad0
TT
59332020-04-08 Tom Tromey <tromey@adacore.com>
5934
5935 * windows-nat.c: Add "using namespace".
5936 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5937 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5938
65bafd5b
TT
59392020-04-08 Tom Tromey <tromey@adacore.com>
5940
5941 * nat/windows-nat.h (struct windows_thread_info): Declare
5942 destructor.
5943 * nat/windows-nat.c (~windows_thread_info): New.
5944
0a4afda3
TT
59452020-04-08 Tom Tromey <tromey@adacore.com>
5946
5947 PR gdb/22992
5948 * windows-nat.c (current_event): Update comment.
5949 (last_wait_event, desired_stop_thread_id): New globals.
5950 (struct pending_stop): New.
5951 (pending_stops): New global.
5952 (windows_nat_target) <stopped_by_sw_breakpoint>
5953 <supports_stopped_by_sw_breakpoint>: New methods.
5954 (windows_fetch_one_register): Add assertions. Adjust PC.
5955 (windows_continue): Handle pending stops. Suspend other threads
5956 when stepping. Use last_wait_event
5957 (wait_for_debug_event): New function.
5958 (get_windows_debug_event): Use wait_for_debug_event. Handle
5959 pending stops. Queue spurious stops.
5960 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5961 (windows_nat_target::kill): Use wait_for_debug_event.
5962 * nat/windows-nat.h (struct windows_thread_info)
5963 <stopped_at_software_breakpoint>: New field.
5964 * nat/windows-nat.c (windows_thread_info::resume): Clear
5965 stopped_at_software_breakpoint.
5966
8e61ebec
TT
59672020-04-08 Tom Tromey <tromey@adacore.com>
5968
5969 * windows-nat.c (enum thread_disposition_type): New.
5970 (thread_rec): Replace "get_context" parameter with "disposition";
5971 change type.
5972 (windows_add_thread, windows_nat_target::fetch_registers)
5973 (windows_nat_target::store_registers, handle_exception)
5974 (windows_nat_target::resume, get_windows_debug_event)
5975 (windows_nat_target::get_tib_address)
5976 (windows_nat_target::thread_name)
5977 (windows_nat_target::thread_alive): Update.
5978
98a03287
TT
59792020-04-08 Tom Tromey <tromey@adacore.com>
5980
5981 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5982 (windows_continue): Use windows_continue::resume.
5983 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5984 resume>: Declare new methods.
5985 * nat/windows-nat.c: New file.
5986 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5987
7c7411bc
TT
59882020-04-08 Tom Tromey <tromey@adacore.com>
5989
5990 * windows-nat.c (windows_add_thread, windows_delete_thread)
5991 (windows_nat_target::fetch_registers)
5992 (windows_nat_target::store_registers, fake_create_process)
5993 (windows_nat_target::resume, windows_nat_target::resume)
5994 (get_windows_debug_event, windows_nat_target::wait)
5995 (windows_nat_target::pid_to_str)
5996 (windows_nat_target::get_tib_address)
5997 (windows_nat_target::get_ada_task_ptid)
5998 (windows_nat_target::thread_name)
5999 (windows_nat_target::thread_alive): Use lwp, not tid.
6000
2950fdf7
TT
60012020-04-08 Tom Tromey <tromey@adacore.com>
6002
6003 * windows-nat.c (handle_exception)
6004 (windows_nat_target::thread_name): Update.
6005 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6006 <name>: Now unique_xmalloc_ptr.
6007
62fe396b
TT
60082020-04-08 Tom Tromey <tromey@adacore.com>
6009
6010 * windows-nat.c (thread_rec)
6011 (windows_nat_target::fetch_registers): Update.
6012 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6013 Update comment.
6014 <debug_registers_changed, reload_context>: Now bool.
6015
e9534bd2
TT
60162020-04-08 Tom Tromey <tromey@adacore.com>
6017
6018 * windows-nat.c (windows_add_thread): Use new.
6019 (windows_init_thread_list, windows_delete_thread): Use delete.
6020 (get_windows_debug_event): Update.
6021 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6022 destructor, and initializers.
6023
ae1f8880
TT
60242020-04-08 Tom Tromey <tromey@adacore.com>
6025
6026 * windows-nat.c (struct windows_thread_info): Remove.
6027 * nat/windows-nat.h: New file.
6028
55a1e039
TT
60292020-04-08 Tom Tromey <tromey@adacore.com>
6030
6031 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6032 (thread_rec, windows_add_thread, windows_delete_thread)
6033 (windows_continue): Update.
6034
93366324
TT
60352020-04-08 Tom Tromey <tromey@adacore.com>
6036
6037 * windows-nat.c (struct windows_thread_info): Remove typedef.
6038 (thread_head): Remove.
6039 (thread_list): New global.
6040 (thread_rec, windows_add_thread, windows_init_thread_list)
6041 (windows_delete_thread, windows_continue): Update.
6042
0f2265e2
SM
60432020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6044
6045 * windows-tdep.h (windows_init_abi): Add comment.
6046 (cygwin_init_abi): New declaration.
6047 * windows-tdep.c: Split signal enumeration in two, one for
6048 Windows and one for Cygwin.
6049 (windows_gdb_signal_to_target): Only deal with signal of the
6050 Windows OS ABI.
6051 (cygwin_gdb_signal_to_target): New function.
6052 (windows_init_abi): Rename to windows_init_abi_common, don't set
6053 gdb_signal_to_target gdbarch method. Add new new function with
6054 this name.
6055 (cygwin_init_abi): New function.
6056 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6057 comment. Don't call windows_init_abi.
6058 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6059 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6060 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6061 i386_windows_init_abi_common, don't call windows_init_abi. Add
6062 a new function of this name.
6063 (i386_cygwin_init_abi): New function.
6064 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6065 OS ABI Cygwin.
6066
3810f182
SM
60672020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6068
6069 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6070 parameter.c.
6071 (dwarf2_read_gdb_index): Update.
6072
063f8e80
KR
60732020-04-07 Kamil Rytarowski <n54@gmx.com>
6074
6075 * nbsd-tdep.c: Include "objfiles.h".
6076 (nbsd_skip_solib_resolver): New.
6077 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6078
85a9510c 60792020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6080
6081 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6082 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6083 with DW_LLE_base_addressx are being emitted in DWARFv5.
6084 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6085 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6086 unsigned integer.
6087
9fc3eaae 60882020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6089
6090 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6091 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6092 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6093 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6094 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6095 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6096 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6097
6098
41144253 60992020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6100
6101 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6102 (read_loclist_index): New function definition.
6103 (lookup_loclist_base): New function definition.
6104 (read_loclist_header): New function definition.
6105 (dwarf2_cu): Add loclist_base and loclist_header field.
6106 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6107 (read_full_die_1): Read the value of DW_AT_loclists_base.
6108 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6109 (read_attribute_value): Handle DW_FORM_loclistx.
6110 (skip_one_die): Handle DW_FORM_loclistx.
6111 (loclist_header): New structure declaration.
6112 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6113
9f4e76a4
SM
61142020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6115
6116 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6117 constructor. Remove `addr` parameter from other constructor and
6118 add `per_cu` parameter.
6119 * dwarf2/read.c (create_partial_symtab): Update.
6120
25c11aca
TV
61212020-04-07 Tom de Vries <tdevries@suse.de>
6122
6123 PR symtab/25796
6124 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6125 (partial_die_info::fixup): Inherit has_const_value.
6126
5707e24b
TV
61272020-04-07 Tom de Vries <tdevries@suse.de>
6128
6129 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6130 symbols without address.
6131
05f00e22
KR
61322020-04-06 Kamil Rytarowski <n54@gmx.com>
6133
6134 * nbsd-nat.h (struct thread_info): Add forward declaration.
6135 (nbsd_nat_target::thread_alive): Add.
6136 (nbsd_nat_target::thread_name): Likewise.
6137 (nbsd_nat_target::update_thread_list): Likewise.
6138 (update_thread_list::post_attach): Likewise.
6139 (post_attach::pid_to_str): Likewise.
6140 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6141 (nbsd_thread_lister): Add.
6142 (nbsd_nat_target::thread_alive): Likewise.
6143 (nbsd_nat_target::thread_name): Likewise.
6144 (nbsd_add_threads): Likewise.
6145 (update_thread_list::post_attach): Likewise.
6146 (nbsd_nat_target::update_thread_list): Likewise.
6147 (post_attach::pid_to_str): Likewise.
6148
6ee448cc
TT
61492020-04-06 Tom Tromey <tromey@adacore.com>
6150
6151 * ada-valprint.c (print_variant_part): Extract the variant field.
6152 (print_field_values): Use the field as the outer value when
6153 recursing.
6154
dea34e8c
TT
61552020-04-06 Tom Tromey <tromey@adacore.com>
6156
6157 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6158 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6159 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6160 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6161 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6162
93689ce9
TT
61632020-04-06 Tom Tromey <tromey@adacore.com>
6164
6165 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6166 TYPE_CODE_ERROR.
6167
79743962
KR
61682020-04-06 Kamil Rytarowski <n54@gmx.com>
6169
6170 * nbsd-tdep.c: Include "gdbarch.h".
6171 Define enum with NetBSD signal numbers.
6172 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6173 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6174 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6175 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6176 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6177 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6178 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6179 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6180 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6181 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6182 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6183 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6184
9e7c9a03
HD
61852020-04-03 Hannes Domani <ssbssa@yahoo.de>
6186
6187 PR gdb/25325
6188 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6189
d9e49b61
TT
61902020-04-03 Tom Tromey <tromey@adacore.com>
6191
6192 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6193 Read constant block.
6194
e0fc5c3f
SM
61952020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6196
6197 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6198 (gdb_bfd_get_full_section_contents): New declaration.
6199 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6200 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6201 gdb_bfd_get_full_section_contents.
6202
e2ff18a0
SM
62032020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6204
6205 * exec.c (build_section_table): Replace internal_error with
6206 gdb_assert.
6207 (section_table_xfer_memory_partial): Likewise.
6208 * mdebugread.c (parse_partial_symbols): Likewise.
6209 * psymtab.c (lookup_partial_symbol): Likewise.
6210 * utils.c (wrap_here): Likewise.
6211
0830d301
TT
62122020-04-02 Tom Tromey <tromey@adacore.com>
6213
6214 * f-lang.c (build_fortran_types): Use arch_type to initialize
6215 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6216
e7da7f8f
TT
62172020-04-02 Tom Tromey <tromey@adacore.com>
6218
6219 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6220 of attributes.
6221
c90d28ac
AB
62222020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6223 Bernd Edlinger <bernd.edlinger@hotmail.de>
6224 Tom Tromey <tromey@adacore.com>
6225
6226 * buildsym.c (buildsym_compunit::record_line): Remove
6227 deduplication code.
6228
1aa98955
TV
62292020-04-02 Tom de Vries <tdevries@suse.de>
6230
6231 PR ada/24671
6232 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6233
d3214198
TV
62342020-04-02 Tom de Vries <tdevries@suse.de>
6235
6236 * dwarf2/read.c (dwarf2_gdb_index_functions,
6237 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6238 NULL.
6239 * psymtab.c (psym_lookup_global_symbol_language): New function.
6240 (psym_functions): Init psym_lookup_global_symbol_language with
6241 psym_lookup_global_symbol_language.
6242 * symfile-debug.c (debug_sym_quick_functions): Init
6243 lookup_global_symbol_language with NULL.
6244 * symfile.c (set_initial_language): Remove fixme comment.
6245 * symfile.h (struct quick_symbol_functions): Add
6246 lookup_global_symbol_language.
6247 * symtab.c (find_quick_global_symbol_language): New function.
6248 (find_main_name): Use find_quick_global_symbol_language.
6249
2836752f
SM
62502020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6251
6252 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6253
64dc2d4b
BE
62542020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6255
6256 * buildsym.c (record_line): Fix undefined behavior and preserve
6257 lines at eof.
6258
bbe3dc41
BE
62592020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6260
6261 * buildsym.c (record_line): Fix the resizing condition.
6262
6b4a335b
TT
62632020-04-01 Tom Tromey <tom@tromey.com>
6264
6265 * value.h (value_literal_complex): Add comment.
6266 * valops.c (value_literal_complex): Refer to value.h.
6267
3638a098
TT
62682020-04-01 Tom Tromey <tom@tromey.com>
6269
6270 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6271 (scalar_type): New rule, from typebase.
6272 (typebase): Use scalar_type. Recognize complex types.
6273 (field_name): Handle FLOAT_KEYWORD.
6274 (ident_tokens): Add _Complex and __complex__.
6275
c34e8714
TT
62762020-04-01 Tom Tromey <tom@tromey.com>
6277
6278 PR exp/25299:
6279 * valarith.c (promotion_type, complex_binop): New functions.
6280 (scalar_binop): Handle complex numbers. Use promotion_type.
6281 (value_pos, value_neg, value_complement): Handle complex numbers.
6282
fa649bb7
TT
62832020-04-01 Tom Tromey <tom@tromey.com>
6284
6285 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6286 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6287 (parse_number): Handle complex numbers.
6288
981c08ce
TT
62892020-04-01 Tom Tromey <tom@tromey.com>
6290
6291 * c-valprint.c (c_decorations): Change complex suffix to "i".
6292
4c99290d
TT
62932020-04-01 Tom Tromey <tom@tromey.com>
6294
6295 * valprint.c (generic_value_print_complex): Use accessors.
6296 * value.h (value_real_part, value_imaginary_part): Declare.
6297 * valops.c (value_real_part, value_imaginary_part): New
6298 functions.
6299 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6300
5b930b45
TT
63012020-04-01 Tom Tromey <tom@tromey.com>
6302
6303 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6304 (read_range_type): Update.
6305 * mdebugread.c (basic_type): Update.
6306 * go-lang.c (build_go_types): Use init_complex_type.
6307 * gdbtypes.h (struct main_type) <complex_type>: New member.
6308 (init_complex_type): Update.
6309 (arch_complex_type): Don't declare.
6310 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6311 Make name if none given. Use alloc_type_copy. Look for cached
6312 complex type.
6313 (arch_complex_type): Remove.
6314 (gdbtypes_post_init): Use init_complex_type.
6315 * f-lang.c (build_fortran_types): Use init_complex_type.
6316 * dwarf2/read.c (read_base_type): Update.
6317 * d-lang.c (build_d_types): Use init_complex_type.
6318 * ctfread.c (read_base_type): Update.
6319
53cccef1
TBA
63202020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6321
6322 * infrun.c (stop_all_threads): Update assertion, plus when
6323 stopping threads, take into account that we might be trying
6324 to stop an all-stop target.
6325 (stop_waiting): Call 'stop_all_threads' if there exists a
6326 non-stop target.
6327
a0714d30
TBA
63282020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6329
6330 * target.h (exists_non_stop_target): New function declaration.
6331 * target.c (exists_non_stop_target): New function.
6332
60e22c1e
HD
63332020-04-01 Hannes Domani <ssbssa@yahoo.de>
6334
6335 PR gdb/24789
6336 * eval.c (is_integral_or_integral_reference): New function.
6337 (evaluate_subexp_standard): Allow integer references in
6338 pointer arithmetic.
6339
e139a727
TBA
63402020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6341
6342 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6343 check for no ptid in the stop reply when the target is non-stop.
6344
e0802d59
TT
63452020-04-01 Tom Tromey <tromey@adacore.com>
6346
6347 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6348 "name" parameter to rvalue reference. Initialize m_name_holder.
6349 <lookup_name_info>: New overloads.
6350 <name>: Return gdb::string_view.
6351 <c_str>: New method.
6352 <make_ignore_params>: Update.
6353 <search_name_hash>: Update.
6354 <language_lookup_name>: Return const char *.
6355 <m_name>: Change type.
6356 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6357 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6358 (lookup_name_info::match_any): Update.
6359 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6360 Update.
6361 * minsyms.c (linkage_name_str): Update.
6362 * language.c (default_symbol_name_matcher): Update.
6363 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6364 Update.
6365 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6366 (ada_lookup_name_info::ada_lookup_name_info): Update.
6367 (literal_symbol_name_matcher): Update.
6368
8c072cb6
TT
63692020-04-01 Tom Tromey <tromey@adacore.com>
6370
6371 * psymtab.c (psymtab_search_name): Remove function.
6372 (psym_lookup_symbol): Create search name and lookup name here.
6373 (lookup_partial_symbol): Remove "name" parameter; add
6374 lookup_name.
6375 (psym_expand_symtabs_for_function): Update.
6376
6f29a534
TT
63772020-03-31 Joel Jones <joelkevinjones@gmail.com>
6378
6379 PR tui/25597:
6380 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6381
af62665e
TT
63822020-03-31 Tom Tromey <tromey@adacore.com>
6383
6384 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6385 memcpy.
6386
d1a89da5
NC
63872020-03-30 Nelson Chu <nelson.chu@sifive.com>
6388
6389 * features/riscv/32bit-csr.xml: Regenerated.
6390 * features/riscv/64bit-csr.xml: Regenerated.
6391
d8af9068
TT
63922020-03-30 Tom Tromey <tromey@adacore.com>
6393
6394 * ada-valprint.c (print_variant_part): Update.
6395 * ada-lang.h (ada_which_variant_applies): Update.
6396 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6397 outer_valaddr parameters; replace with "outer" value parameter.
6398 (to_fixed_variant_branch_type): Update.
6399
227c0bf4
PFC
64002020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6401
6402 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6403 <list>. Remove inclusion of observable.h.
6404 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6405 (struct arch_lwp_info): New struct.
6406 (class ppc_linux_dreg_interface): New class.
6407 (struct ppc_linux_process_info): New struct.
6408 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6409 <low_new_clone, low_forget_process, low_prepare_to_resume>
6410 <copy_thread_dreg_state, mark_thread_stale>
6411 <mark_debug_registers_changed, register_hw_breakpoint>
6412 <clear_hw_breakpoint, register_wp, clear_wp>
6413 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6414 <num_memory_accesses, get_trigger_type>
6415 <create_watchpoint_request, hwdebug_point_cmp>
6416 <init_arch_lwp_info, get_arch_lwp_info>
6417 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6418 methods.
6419 <struct ptid_hash>: New inner struct.
6420 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6421 members.
6422 (saved_dabr_value, hwdebug_info, max_slots_number)
6423 (struct hw_break_tuple, struct thread_points, ppc_threads)
6424 (have_ptrace_hwdebug_interface)
6425 (hwdebug_find_thread_points_by_tid)
6426 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6427 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6428 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6429 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6430 use m_dreg_interface.
6431 (hwdebug_point_cmp): Change to...
6432 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6433 reference arguments instead of pointers.
6434 (ppc_linux_nat_target::ranged_break_num_registers): Use
6435 m_dreg_interface.
6436 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6437 m_dreg_interface. Call register_hw_breakpoint.
6438 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6439 m_dreg_interface. Call clear_hw_breakpoint.
6440 (get_trigger_type): Change to...
6441 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6442 comment.
6443 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6444 use m_dreg_interface. Call register_hw_breakpoint.
6445 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6446 use m_dreg_interface. Call clear_hw_breakpoint.
6447 (can_use_watchpoint_cond_accel): Change to...
6448 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6449 method. Update comment, use m_dreg_interface and
6450 m_process_info.
6451 (calculate_dvc): Change to...
6452 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6453 m_dreg_interface.
6454 (num_memory_accesses): Change to...
6455 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6456 (check_condition): Change to...
6457 (ppc_linux_nat_target::check_condition): ...this method.
6458 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6459 comment, use m_dreg_interface.
6460 (create_watchpoint_request): Change to...
6461 (ppc_linux_nat_target::create_watchpoint_request): ...this
6462 method. Use m_dreg_interface.
6463 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6464 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6465 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6466 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6467 (ppc_linux_nat_target::low_forget_process)
6468 (ppc_linux_nat_target::low_new_fork)
6469 (ppc_linux_nat_target::low_new_clone)
6470 (ppc_linux_nat_target::low_delete_thread)
6471 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6472 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6473 only call mark_thread_stale.
6474 (ppc_linux_thread_exit): Remove.
6475 (ppc_linux_nat_target::stopped_data_address): Change to...
6476 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6477 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6478 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6479 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6480 comment. Call low_stopped_data_address.
6481 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6482 m_dreg_interface.
6483 (ppc_linux_nat_target::masked_watch_num_registers): Use
6484 m_dreg_interface.
6485 (ppc_linux_nat_target::copy_thread_dreg_state)
6486 (ppc_linux_nat_target::mark_thread_stale)
6487 (ppc_linux_nat_target::mark_debug_registers_changed)
6488 (ppc_linux_nat_target::register_hw_breakpoint)
6489 (ppc_linux_nat_target::clear_hw_breakpoint)
6490 (ppc_linux_nat_target::register_wp)
6491 (ppc_linux_nat_target::clear_wp)
6492 (ppc_linux_nat_target::init_arch_lwp_info)
6493 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6494 (_initialize_ppc_linux_nat): Remove observer callback.
6495
4db10d8f
PFC
64962020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6497
6498 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6499 (ppc_linux_nat_target::auxv_parse)
6500 (ppc_linux_nat_target::read_description)
6501 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6502 Move up.
6503
1310c1b0
PFC
65042020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6505
6506 * linux-nat.h (low_new_clone): New method.
6507 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6508
69b037c3
SM
65092020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6510
6511 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6512 (dbx_expand_psymtab): ... this.
6513 (start_psymtab): Update.
6514 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6515 (mdebug_expand_psymtab): ... this.
6516 (parse_partial_symbols): Update.
6517 (new_psymtab): Update.
6518 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6519 (xcoff_expand_psymtab): ... this.
6520 (xcoff_start_psymtab): Update.
6521
48993951
SM
65222020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6523
6524 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6525 <expand_dependencies>: ... this.
6526 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6527 (partial_symtab::expand_dependencies): ... this.
6528 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6529 Update.
6530 (dwarf2_psymtab::expand_psymtab): Update.
6531 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6532 * mdebugread.c (psymtab_to_symtab_1): Update.
6533 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6534
3ad83046
SM
65352020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6536
6537 * psympriv.h (discard_psymtab): Remove.
6538 * dbxread.c (dbx_end_psymtab): Update.
6539 * xcoffread.c (xcoff_end_psymtab): Update.
6540
4d1b9ab6
TT
65412020-03-28 Tom Tromey <tom@tromey.com>
6542
6543 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6544 comment.
6545
f1749218
TT
65462020-03-28 Tom Tromey <tom@tromey.com>
6547
6548 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6549
ebea7626
HD
65502020-03-27 Hannes Domani <ssbssa@yahoo.de>
6551
6552 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6553
a879b4d5
JB
65542020-03-26 John Baldwin <jhb@FreeBSD.org>
6555
6556 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6557
0826b30a
TT
65582020-03-26 Tom Tromey <tom@tromey.com>
6559
6560 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6561 (mark_common_block_symbol_computed, read_tag_string_type)
6562 (attr_to_dynamic_prop, read_subrange_type): Update.
6563 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6564 to be methods on struct attribute.
6565 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6566 (read_call_site_scope, partial_die_info::read)
6567 (partial_die_info::read, lookup_die_type, follow_die_ref):
6568 Update.
6569 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6570 from dwarf2_get_ref_die_offset.
6571 (attribute::constant_value): New method, from
6572 dwarf2_get_attr_constant_value.
6573 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6574 Declare method.
6575 <constant_value>: New method.
6576
2b2558bf
TT
65772020-03-26 Tom Tromey <tom@tromey.com>
6578
6579 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6580 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6581 (dwarf_type_encoding_name): Move to stringify.c.
6582 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6583 * dwarf2/stringify.c: New file.
6584 * dwarf2/stringify.h: New file.
6585
eeb64781
TT
65862020-03-26 Tom Tromey <tom@tromey.com>
6587
6588 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6589 Rewrite.
6590
a39fdb41
TT
65912020-03-26 Tom Tromey <tom@tromey.com>
6592
6593 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6594 methods.
6595 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6596 (lookup_ranges_base): Likewise.
6597 (read_cutu_die_from_dwo, read_full_die_1): Update.
6598
436c571c
TT
65992020-03-26 Tom Tromey <tom@tromey.com>
6600
6601 * dwarf2/read.c (read_import_statement, read_file_scope)
6602 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6603 (read_lexical_block_scope, read_call_site_scope)
6604 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6605 (handle_struct_member_die, process_structure_scope)
6606 (update_enumeration_type_from_children)
6607 (process_enumeration_scope, read_array_type, read_common_block)
6608 (read_namespace, read_module, read_subroutine_type): Update.
6609 (sibling_die): Remove.
6610
052c8bb8
TT
66112020-03-26 Tom Tromey <tom@tromey.com>
6612
6613 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6614 (build_type_psymtabs_reader, read_structure_type)
6615 (read_enumeration_type, read_full_die_1): Update.
6616 (dwarf2_attr_no_follow): Move to die.h.
6617 * dwarf2/die.h (struct die_info) <attr>: New method.
6618
2b24b6e4
TT
66192020-03-26 Tom Tromey <tom@tromey.com>
6620
6621 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6622 <base_address>: Now an optional.
6623 (dwarf2_find_base_address, dwarf2_rnglists_process)
6624 (dwarf2_ranges_process, fill_in_loclist_baton)
6625 (dwarf2_symbol_mark_computed): Update.
6626
c2d50fd0
TT
66272020-03-26 Tom Tromey <tom@tromey.com>
6628
6629 * dwarf2/read.c (struct die_info): Move to die.h.
6630 * dwarf2/die.h: New file.
6631
0df7ad3a
TT
66322020-03-26 Tom Tromey <tom@tromey.com>
6633
6634 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6635 * dwarf2/read.c
6636 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6637 Move to line-header.c.
6638 (read_checked_initial_length_and_offset, read_formatted_entries):
6639 Likewise.
6640 (dwarf_decode_line_header): Split into two.
6641 * dwarf2/line-header.c
6642 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6643 Move from read.c.
6644 (read_checked_initial_length_and_offset, read_formatted_entries):
6645 Likewise.
6646 (dwarf_decode_line_header): New function, split from read.c.
6647
86c0bb4c
TT
66482020-03-26 Tom Tromey <tom@tromey.com>
6649
6650 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6651 Declare method.
6652 * dwarf2/read.c (read_attribute_value): Update.
6653 (dwarf2_per_objfile::read_line_string): Rename from
6654 read_indirect_line_string.
6655 (read_formatted_entries): Update.
6656
2ef46c2f
TT
66572020-03-26 Tom Tromey <tom@tromey.com>
6658
6659 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6660 variable.
6661
4f9c1eda
TT
66622020-03-26 Tom Tromey <tom@tromey.com>
6663
6664 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6665 const.
6666 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6667 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6668 parameter const.
6669
5a0e026f
TT
66702020-03-26 Tom Tromey <tom@tromey.com>
6671
6672 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6673 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6674 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6675 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6676
8844c11b
TT
66772020-03-26 Tom Tromey <tom@tromey.com>
6678
6679 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6680 file_names_size, file_full_name, file_file_name>: Use const.
6681 <file_name_at, file_names>: Add const overload.
6682 * dwarf2/line-header.c (line_header::file_file_name)
6683 (line_header::file_full_name): Update.
6684
c90ec28a
TT
66852020-03-26 Tom Tromey <tom@tromey.com>
6686
6687 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6688 (macro_start_file, consume_improper_spaces)
6689 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6690 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6691 (dwarf_decode_macros): Move to macro.c.
6692 * dwarf2/macro.c: New file.
6693 * dwarf2/macro.h: New file.
6694 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6695
4f44ae6c
TT
66962020-03-26 Tom Tromey <tom@tromey.com>
6697
6698 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6699 method.
6700 * dwarf2/section.c: New method. From
6701 read_indirect_string_at_offset_from.
6702 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6703 (read_indirect_string_at_offset_from): Move to section.c.
6704 (read_indirect_string_at_offset): Rewrite.
6705 (read_indirect_line_string_at_offset): Remove.
6706 (read_indirect_string, read_indirect_line_string)
6707 (dwarf_decode_macro_bytes): Update.
6708
a0194fa8
TT
67092020-03-26 Tom Tromey <tom@tromey.com>
6710
6711 * dwarf2/section.h (struct dwarf2_section_info)
6712 <overload_complaint>: Declare.
6713 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6714 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6715 Rename from dwarf2_section_buffer_overflow_complaint.
6716 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6717 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6718
3d27bbdb
TT
67192020-03-26 Tom Tromey <tom@tromey.com>
6720
6721 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6722 Declare.
6723 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6724 Move from read.c.
6725 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6726 to section.c.
6727
9eac9650
TT
67282020-03-26 Tom Tromey <tom@tromey.com>
6729
6730 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6731
bf80d710
TT
67322020-03-26 Tom Tromey <tom@tromey.com>
6733
6734 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6735 "builder".
6736 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6737 parameter.
6738 (dwarf_decode_macros): Update.
6739
0314b390
TT
67402020-03-26 Tom Tromey <tom@tromey.com>
6741
6742 * dwarf2/read.c (read_attribute_value): Update.
6743 (read_indirect_string_from_dwz): Move to dwz.c; change into
6744 method.
6745 (dwarf_decode_macro_bytes): Update.
6746 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6747 * dwarf2/dwz.c: New file.
6748 * Makefile.in (COMMON_SFILES): Add dwz.c.
6749
9fda78b6
TT
67502020-03-26 Tom Tromey <tom@tromey.com>
6751
6752 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6753 * dwarf2/read.c: Add include.
6754 * dwarf2/index-write.c: Add include.
6755 * dwarf2/index-cache.c: Add include.
6756 * dwarf2/dwz.h: New file.
6757
33aa3c10
TT
67582020-03-25 Tom Tromey <tom@tromey.com>
6759
6760 * compile/compile-object-load.c (get_out_value_type): Mention
6761 correct symbol name in error message.
6762
d503b685
HD
67632020-03-25 Hannes Domani <ssbssa@yahoo.de>
6764
6765 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6766
7b1eff95
TV
67672020-03-25 Tom de Vries <tdevries@suse.de>
6768
6769 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6770 * symmisc.c (dump_symtab_1): Print user and includes fields.
6771 (maintenance_info_symtabs): Same.
6772
dd895392
AB
67732020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6774
6775 PR gdb/25534
6776 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6777 (riscv_regcache_cooked_write): New function.
6778 (riscv_push_dummy_call): Use new function.
6779 (riscv_return_value): Likewise.
6780
5ab2fbf1
SM
67812020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6782
6783 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6784 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6785 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6786 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6787 * infrun.c (follow_fork): Likewise.
6788 (follow_fork_inferior): Likewise.
6789 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6790 * linux-nat.h (class linux_nat_target): Likewise.
6791 * remote.c (class remote_target) <follow_fork>: Likewise.
6792 (remote_target::follow_fork): Likewise.
6793 * target-delegates.c: Re-generate.
6794 * target.c (default_follow_fork): Likewise.
6795 (target_follow_fork): Likewise.
6796 * target.h (struct target_ops) <follow_fork>: Likewise.
6797 (target_follow_fork): Likewise.
6798
a64fafb5
TV
67992020-03-24 Tom de Vries <tdevries@suse.de>
6800
6801 * psymtab.c (maintenance_info_psymtabs): Print user field.
6802
fe26d3a3
TT
68032020-03-20 Tom Tromey <tromey@adacore.com>
6804
6805 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6806 const.
6807 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6808 const.
6809
c884cc46
SM
68102020-03-20 Simon Marchi <simon.marchi@efficios.com>
6811
6812 * ptrace.m4: Don't check for ptrace declaration.
6813 * config.in: Re-generate.
6814 * configure: Re-generate.
6815 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6816 not defined.
6817
1ff700c2
KR
68182020-03-20 Kamil Rytarowski <n54@gmx.com>
6819
6820 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6821 `PTRACE_TYPE_RET'.
6822 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6823 * sparc-nat.c (gdb_ptrace): Likewise.
6824 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6825
f7d4f0b1
TT
68262020-03-20 Tom Tromey <tromey@adacore.com>
6827
6828 * c-exp.y (lex_one_token): Fix assert.
6829
f67210ff
TT
68302020-03-20 Tom Tromey <tromey@adacore.com>
6831
6832 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6833 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6834 strncpy call.
6835
1773be9e
TT
68362020-03-20 Tom Tromey <tromey@adacore.com>
6837
6838 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6839
70304be9
TT
68402020-03-20 Tom Tromey <tromey@adacore.com>
6841
6842 * ada-valprint.c (print_variant_part): Remove parameters; switch
6843 to value-based API.
6844 (print_field_values): Likewise.
6845 (ada_val_print_struct_union): Likewise.
6846 (ada_value_print_1): Update.
6847
9faa006d
KR
68482020-03-20 Kamil Rytarowski <n54@gmx.com>
6849
6850 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6851 nbsd_nat_target instead of inf_ptrace_target.
6852 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6853 nbsd_nat_target.
6854
4a90f062
KR
68552020-03-20 Kamil Rytarowski <n54@gmx.com>
6856
6857 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6858 it to the ptrace call.
6859 * (store_registers): Likewise.
6860
68612020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6862
6863 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6864 it to the ptrace call.
6865 * (store_registers): Likewise.
6866
2d07da27
LM
68672020-03-19 Luis Machado <luis.machado@linaro.org>
6868
6869 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6870 valid, fetch vg value from ptrace.
6871
f09db380
KR
68722020-03-19 Kamil Rytarowski <n54@gmx.com>
6873 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6874 * inf-ptrace.c: Likewise.
6875 * (gdb_ptrace): Add.
6876 * (inf_ptrace_target::resume): Update.
6877 * (inf_ptrace_target::xfer_partial): Likewise.
6878 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6879 * (inf_ptrace_peek_poke): Update.
6880
fcc7376e
KR
68812020-03-19 Kamil Rytarowski <n54@gmx.com>
6882
6883 * x86-bsd-nat.c (gdb_ptrace): New.
6884 * (x86bsd_dr_set): Add new argument `ptid'.
6885 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6886 x86bsd_dr_set_addr): Update.
6887
cada5fc9
AB
68882020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6889
6890 * remote.c (remote_target::process_stop_reply): Handle events for
6891 all threads differently.
6892
19a2740f
AB
68932020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6894
6895 * completer.c (completion_tracker::remove_completion): Define new
6896 function.
6897 * completer.h (completion_tracker::remove_completion): Declare new
6898 function.
6899 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6900 when adding a C++ function symbol.
6901
724fd9ba
AB
69022020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6903
6904 * completer.c (completion_tracker::completion_hash_entry): Define
6905 new class.
6906 (advance_to_filename_complete_word_point): Call
6907 recompute_lowest_common_denominator.
6908 (completion_tracker::completion_tracker): Call discard_completions
6909 to setup the hash table.
6910 (completion_tracker::discard_completions): Allow for being called
6911 from the constructor, pass new equal function, and element deleter
6912 when constructing the hash table. Initialise new class member
6913 variables.
6914 (completion_tracker::maybe_add_completion): Remove use of
6915 m_entries_vec, and store more information into m_entries_hash.
6916 (completion_tracker::recompute_lcd_visitor): New function, most
6917 content taken from...
6918 (completion_tracker::recompute_lowest_common_denominator):
6919 ...here, this now just visits each item in the hash calling the
6920 above visitor.
6921 (completion_tracker::build_completion_result): Remove use of
6922 m_entries_vec, call recompute_lowest_common_denominator.
6923 * completer.h (completion_tracker::have_completions): Remove use
6924 of m_entries_vec.
6925 (completion_tracker::completion_hash_entry): Declare new class.
6926 (completion_tracker::recompute_lowest_common_denominator): Change
6927 function signature.
6928 (completion_tracker::recompute_lcd_visitor): Declare new function.
6929 (completion_tracker::m_entries_vec): Delete.
6930 (completion_tracker::m_entries_hash): Initialize to NULL.
6931 (completion_tracker::m_lowest_common_denominator_valid): New
6932 member variable.
6933 (completion_tracker::m_lowest_common_denominator_max_length): New
6934 member variable.
6935
5a82b8a1
KR
69362020-03-17 Kamil Rytarowski <n54@gmx.com>
6937
6938 * regformats/regdef.h: Put reg in gdb namespace.
6939
fb516a69
KR
69402020-03-17 Kamil Rytarowski <n54@gmx.com>
6941
6942 * i386-bsd-nat.c (gdb_ptrace): New.
6943 * (i386bsd_fetch_inferior_registers,
6944 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6945 * (i386bsd_fetch_inferior_registers,
6946 i386bsd_store_inferior_registers) Use gdb_ptrace.
6947
1c0aa1fb
KR
69482020-03-17 Kamil Rytarowski <n54@gmx.com>
6949
6950 * amd64-bsd-nat.c (gdb_ptrace): New.
6951 * (amd64bsd_fetch_inferior_registers,
6952 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6953 * (amd64bsd_fetch_inferior_registers,
6954 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6955
5ccd2fb7
KR
69562020-03-17 Kamil Rytarowski <n54@gmx.com>
6957
6958 * user-regs.c (user_reg::read): Rename to...
6959 (user_reg::xread): ...this.
6960 * (append_user_reg): Rename argument `read' to `xread'.
6961 * (user_reg_add_builtin): Likewise.
6962 * (user_reg_add): Likewise.
6963 * (value_of_user_reg): Likewise.
6964
2108a63a
KR
69652020-03-17 Kamil Rytarowski <n54@gmx.com>
6966
6967 * sparc-nat.c (gdb_ptrace): New.
6968 * sparc-nat.c (sparc_fetch_inferior_registers)
6969 (sparc_store_inferior_registers) Remove obsolete comment.
6970 * sparc-nat.c (sparc_fetch_inferior_registers)
6971 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6972 * sparc-nat.c (sparc_fetch_inferior_registers)
6973 (sparc_store_inferior_registers) Use gdb_ptrace.
6974
a225c9a8
KR
69752020-03-17 Kamil Rytarowski <n54@gmx.com>
6976
6977 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6978 it to the ptrace call.
6979 * sh-nbsd-nat.c (store_registers): Likewise.
6980
98097623
KR
69812020-03-17 Kamil Rytarowski <n54@gmx.com>
6982
6983 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6984 nbsd_nat_target instead of inf_ptrace_target.
6985 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6986 nbsd_nat_target.
6987
9e38d619
KR
69882020-03-17 Kamil Rytarowski <n54@gmx.com>
6989
6990 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6991
a2ecbe9f
KR
69922020-03-17 Kamil Rytarowski <n54@gmx.com>
6993
6994 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6995 <sys/sysctl.h>.
6996 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6997
58990295
TV
69982020-03-17 Tom de Vries <tdevries@suse.de>
6999
7000 PR gdb/23710
7001 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7002 fields.
7003 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7004 fields.
7005 (process_imported_unit_die): Skip import of c++ CUs.
7006
771dd3a8
TT
70072020-03-16 Tom Tromey <tom@tromey.com>
7008
7009 * p-valprint.c (pascal_object_print_value): Initialize
7010 base_value.
7011
817a7585
AK
70122020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7013 Shahab Vahedi <shahab@synopsys.com>
7014
7015 * Makefile.in: Add arch/arc.o
7016 * configure.tgt: Likewise.
7017 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7018 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7019 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7020 * arc-tdep.h (arc_read_description): Add proto type.
7021 * arch/arc.c: New file.
7022 * arch/arc.h: Likewise.
7023 * features/Makefile: Replace old target descriptions with new.
7024 * features/arc-arcompact.c: Remove.
7025 * features/arc-arcompact.xml: Likewise.
7026 * features/arc-v2.c: Likewise
7027 * features/arc-v2.xml: Likewise
7028 * features/arc/aux-arcompact.xml: New file.
7029 * features/arc/aux-v2.xml: Likewise.
7030 * features/arc/core-arcompact.xml: Likewise.
7031 * features/arc/core-v2.xml: Likewise.
7032 * features/arc/aux-arcompact.c: Generate.
7033 * features/arc/aux-v2.c: Likewise.
7034 * features/arc/core-arcompact.c: Likewise.
7035 * features/arc/core-v2.c: Likewise.
7036 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7037
67430cd0
TT
70382020-03-16 Tom Tromey <tromey@adacore.com>
7039
7040 PR gdb/25663:
7041 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7042 putting value into bcache.
7043
30efb6c7
SM
70442020-03-16 Simon Marchi <simon.marchi@efficios.com>
7045
7046 PR gdb/21500
7047 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7048 to...
7049 (amd64_windows_init_abi_common): ... this. Don't set size of
7050 long type.
7051 (amd64_windows_init_abi): New function.
7052 (amd64_cygwin_init_abi): New function.
7053 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7054 the Cygwin OS ABI.
7055 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7056 comment.
7057
8db52437
SM
70582020-03-16 Simon Marchi <simon.marchi@efficios.com>
7059
7060 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7061 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7062 (pe_import_directory_entry): New struct type.
7063 (is_linked_with_cygwin_dll): New function.
7064 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7065 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7066 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7067
5982a56a
SM
70682020-03-16 Simon Marchi <simon.marchi@efficios.com>
7069
7070 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7071 i386_cygwin_core_osabi_sniffer.
7072
7a1998df
SM
70732020-03-16 Simon Marchi <simon.marchi@efficios.com>
7074
7075 * i386-cygwin-tdep.c: Rename to...
7076 * i386-windows-tdep.c: ... this.
7077 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7078 i386-windows-tdep.c.
7079 * configure.tgt: Likewise.
7080
053205cc
SM
70812020-03-16 Simon Marchi <simon.marchi@efficios.com>
7082
7083 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7084 * osabi.c (gdb_osabi_names): Add "Windows".
7085 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7086 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7087 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7088 i386_cygwin_osabi_sniffer.
7089 (_initialize_i386_cygwin_tdep): Register OS ABI
7090 GDB_OSABI_WINDOWS for i386.
7091 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7092 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7093 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7094 for x86-64.
7095 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7096 when the target matches '*-*-mingw*'.
7097
fe4b2ee6
SM
70982020-03-16 Simon Marchi <simon.marchi@efficios.com>
7099
7100 * defs.h (enum gdb_osabi): Move to...
7101 * osabi.h (enum gdb_osabi): ... here.
7102 * gdbarch.sh: Include osabi.h in gdbarch.h.
7103 * gdbarch.h: Re-generate.
7104
cb9b645d
SM
71052020-03-16 Simon Marchi <simon.marchi@efficios.com>
7106
7107 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7108 function.
7109 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7110
3293bbaf
TT
71112020-03-14 Tom Tromey <tom@tromey.com>
7112
7113 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7114 for C++.
7115 (c_type_print_modifier): Likewise. Add "language" parameter.
7116 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7117 (c_type_print_base_1): Update.
7118 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7119 constants.
7120 * type-stack.c (type_stack::insert): Handle tp_atomic and
7121 tp_restrict.
7122 (type_stack::follow_type_instance_flags): Likewise.
7123 (type_stack::follow_types): Likewise. Merge type-following code.
7124 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7125 (space_identifier, cv_with_space_id)
7126 (const_or_volatile_or_space_identifier_noopt)
7127 (const_or_volatile_or_space_identifier): Remove.
7128 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7129 rules.
7130 (ptr_operator, typebase): Update.
7131 (enum token_flag) <FLAG_C>: New constant.
7132 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7133 "_Atomic".
7134 (lex_one_token): Handle FLAG_C.
7135
154151a6
KR
71362020-03-14 Kamil Rytarowski <n54@gmx.com>
7137
7138 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7139 it to the ptrace call.
7140 * m68k-bsd-nat.c (store_registers): Likewise.
7141
bc107784
KR
71422020-03-14 Kamil Rytarowski <n54@gmx.com>
7143
7144 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7145 gdb_byte *.
7146 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7147 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7148 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7149
01a80117
KR
71502020-03-14 Kamil Rytarowski <n54@gmx.com>
7151
7152 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7153 nbsd_nat_target instead of inf_ptrace_target.
7154 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7155 nbsd_nat_target.
7156
f90280ca
KR
71572020-03-14 Kamil Rytarowski <n54@gmx.com>
7158
7159 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7160 register_t.
7161
6def66f1
KR
71622020-03-14 Kamil Rytarowski <n54@gmx.com>
7163
7164 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7165 it to the ptrace call.
7166 * alpha-bsd-nat.c (store_registers): Likewise.
7167
66eaca97
KR
71682020-03-14 Kamil Rytarowski <n54@gmx.com>
7169
7170 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7171 includes.
7172 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7173 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7174 fill_fpregset): Likewise.
7175
4fed520b
KR
71762020-03-14 Kamil Rytarowski <n54@gmx.com>
7177
7178 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7179 nbsd_nat_target instead of inf_ptrace_target.
7180 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7181 nbsd_nat_target.
7182
2190cf06
KR
71832020-03-14 Kamil Rytarowski <n54@gmx.com>
7184
7185 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7186 register_t.
7187
75c56d3d
KR
71882020-03-14 Kamil Rytarowski <n54@gmx.com>
7189
7190 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7191 it to the ptrace call.
7192 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7193 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7194 * arm-nbsd-nat.c (store_register): Likewise.
7195 * arm-nbsd-nat.c (store_regs): Likewise.
7196 * arm-nbsd-nat.c (store_fp_register): Likewise.
7197 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7198
6018d381
KR
71992020-03-14 Kamil Rytarowski <n54@gmx.com>
7200
7201 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7202 nbsd_nat_target instead of inf_ptrace_target.
7203 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7204 nbsd_nat_target.
7205
013f99f0
KR
72062020-03-14 Kamil Rytarowski <n54@gmx.com>
7207
7208 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7209 it to the ptrace call.
7210 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7211
12753073
KR
72122020-03-14 Kamil Rytarowski <n54@gmx.com>
7213
6227b330
KR
7214 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7215 it to the ptrace call.
7216 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7217
72182020-03-14 Kamil Rytarowski <n54@gmx.com>
7219
7220 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7221 gdb_byte *.
12753073
KR
7222 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7223
d5be5fa4
KR
72242020-03-14 Kamil Rytarowski <n54@gmx.com>
7225
7226 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7227 instead of inf_ptrace_target.
7228 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7229 nbsd_nat_target.
7230
8110f842
KR
72312020-03-14 Kamil Rytarowski <n54@gmx.com>
7232
7233 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7234 register_t.
7235
52feded7
KR
72362020-03-14 Kamil Rytarowski <n54@gmx.com>
7237
7238 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7239 register_t.
7240
25567eee
KR
72412020-03-14 Kamil Rytarowski <n54@gmx.com>
7242
7243 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7244 register_t.
7245
426a9c18
TT
72462020-03-13 Tom Tromey <tom@tromey.com>
7247
7248 * value.h (val_print): Don't declare.
7249 * valprint.h (val_print_array_elements)
7250 (val_print_scalar_formatted, generic_val_print): Don't declare.
7251 * valprint.c (generic_val_print_array): Take a struct value.
7252 (generic_val_print_ptr, generic_val_print_memberptr)
7253 (generic_val_print_bool, generic_val_print_int)
7254 (generic_val_print_char, generic_val_print_complex)
7255 (generic_val_print): Remove.
7256 (generic_value_print): Update.
7257 (do_val_print): Remove unused parameters. Don't call
7258 la_val_print.
7259 (val_print): Remove.
7260 (common_val_print): Update. Don't call value_check_printable.
7261 (val_print_scalar_formatted, val_print_array_elements): Remove.
7262 * rust-lang.c (rust_val_print): Remove.
7263 (rust_language_defn): Update.
7264 * p-valprint.c (pascal_val_print): Remove.
7265 (pascal_value_print_inner): Update.
7266 (pascal_object_print_val_fields, pascal_object_print_val):
7267 Remove.
7268 (pascal_object_print_static_field): Update.
7269 * p-lang.h (pascal_val_print): Don't declare.
7270 * p-lang.c (pascal_language_defn): Update.
7271 * opencl-lang.c (opencl_language_defn): Update.
7272 * objc-lang.c (objc_language_defn): Update.
7273 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7274 * m2-lang.h (m2_val_print): Don't declare.
7275 * m2-lang.c (m2_language_defn): Update.
7276 * language.h (struct language_defn) <la_val_print>: Remove.
7277 * language.c (unk_lang_value_print_inner): Rename. Change
7278 argument types.
7279 (unknown_language_defn, auto_language_defn): Update.
7280 * go-valprint.c (go_val_print): Remove.
7281 * go-lang.h (go_val_print): Don't declare.
7282 * go-lang.c (go_language_defn): Update.
7283 * f-valprint.c (f_val_print): Remove.
7284 * f-lang.h (f_value_print): Don't declare.
7285 * f-lang.c (f_language_defn): Update.
7286 * d-valprint.c (d_val_print): Remove.
7287 * d-lang.h (d_value_print): Don't declare.
7288 * d-lang.c (d_language_defn): Update.
7289 * cp-valprint.c (cp_print_value_fields)
7290 (cp_print_value_fields_rtti, cp_print_value): Remove.
7291 (cp_print_static_field): Update.
7292 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7293 (c_val_print_struct, c_val_print_union, c_val_print_int)
7294 (c_val_print_memberptr, c_val_print): Remove.
7295 * c-lang.h (c_val_print_array, cp_print_value_fields)
7296 (cp_print_value_fields_rtti): Don't declare.
7297 * c-lang.c (c_language_defn, cplus_language_defn)
7298 (asm_language_defn, minimal_language_defn): Update.
7299 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7300 (ada_val_print_enum): Take a struct value.
7301 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7302 (ada_val_print): Remove.
7303 (ada_value_print_1): Update.
7304 (printable_val_type): Remove.
7305 * ada-lang.h (ada_val_print): Don't declare.
7306 * ada-lang.c (ada_language_defn): Update.
7307
42331a1e
TT
73082020-03-13 Tom Tromey <tom@tromey.com>
7309
7310 * valprint.c (do_val_print): Update.
7311 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7312 a struct value.
7313 (value_to_value_object_no_release): Declare.
7314 * python/py-value.c (value_to_value_object_no_release): New
7315 function.
7316 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7317 struct value.
7318 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7319 function.
7320 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7321 a struct value.
7322 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7323 Declare.
7324 (gdbscm_apply_val_pretty_printer): Take a struct value.
7325 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7326 value.
7327 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7328 value.
7329 * extension-priv.h (struct extension_language_ops)
7330 <apply_val_pretty_printer>: Take a struct value.
7331 * cp-valprint.c (cp_print_value): Create a struct value.
7332 (cp_print_value): Update.
7333
3a916a97
TT
73342020-03-13 Tom Tromey <tom@tromey.com>
7335
7336 * ada-valprint.c (print_field_values): Call common_val_print.
7337
b59eac37
TT
73382020-03-13 Tom Tromey <tom@tromey.com>
7339
7340 * ada-valprint.c (val_print_packed_array_elements): Remove
7341 bitoffset and val parameters. Call common_val_print.
7342 (ada_val_print_string): Remove offset, address, and original_value
7343 parameters.
7344 (ada_val_print_array): Update.
7345 (ada_value_print_array): New function.
7346 (ada_value_print_1): Call it.
7347
03371129
TT
73482020-03-13 Tom Tromey <tom@tromey.com>
7349
7350 * ada-valprint.c (ada_value_print): Use common_val_print.
7351
2e088f8b
TT
73522020-03-13 Tom Tromey <tom@tromey.com>
7353
7354 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7355
39ef85a8
TT
73562020-03-13 Tom Tromey <tom@tromey.com>
7357
7358 * ada-valprint.c (ada_value_print_num): New function.
7359 (ada_value_print_1): Use it.
7360
b9fa6e07
TT
73612020-03-13 Tom Tromey <tom@tromey.com>
7362
7363 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7364
416595d6
TT
73652020-03-13 Tom Tromey <tom@tromey.com>
7366
7367 * ada-valprint.c (ada_value_print_ptr): New function.
7368 (ada_value_print_1): Use it.
7369
5b5e15ec
TT
73702020-03-13 Tom Tromey <tom@tromey.com>
7371
7372 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7373 call common_val_print.
7374 (ada_val_print_1): Update.
7375 (ada_value_print_1): New function.
7376 (ada_value_print_inner): Rewrite.
7377
fbf54e75
TT
73782020-03-13 Tom Tromey <tom@tromey.com>
7379
7380 * cp-valprint.c (cp_print_value_fields): Update.
7381 (cp_print_value): New function.
7382
64b653ca
TT
73832020-03-13 Tom Tromey <tom@tromey.com>
7384
7385 * m2-valprint.c (m2_value_print_inner): Use
7386 cp_print_value_fields.
7387 * cp-valprint.c (cp_print_value_fields): New function.
7388 * c-valprint.c (c_value_print_struct): New function.
7389 (c_value_print_inner): Use c_value_print_struct.
7390 * c-lang.h (cp_print_value_fields): Declare.
7391
6999f067
TT
73922020-03-13 Tom Tromey <tom@tromey.com>
7393
7394 * c-valprint.c (c_value_print_array): New function.
7395 (c_value_print_inner): Use it.
7396
ce80b8bd
TT
73972020-03-13 Tom Tromey <tom@tromey.com>
7398
7399 * c-valprint.c (c_value_print_memberptr): New function.
7400 (c_value_print_inner): Use it.
7401
2faac269
TT
74022020-03-13 Tom Tromey <tom@tromey.com>
7403
7404 * c-valprint.c (c_value_print_int): New function.
7405 (c_value_print_inner): Use it.
7406
da3e2c29
TT
74072020-03-13 Tom Tromey <tom@tromey.com>
7408
7409 * c-valprint.c (c_value_print_ptr): New function.
7410 (c_value_print_inner): Use it.
7411
50836231
TT
74122020-03-13 Tom Tromey <tom@tromey.com>
7413
7414 * c-valprint.c (c_value_print_inner): Rewrite.
7415
4f412b6e
TT
74162020-03-13 Tom Tromey <tom@tromey.com>
7417
7418 * valprint.c (generic_value_print_complex): New function.
7419 (generic_value_print): Use it.
7420
f5354008
TT
74212020-03-13 Tom Tromey <tom@tromey.com>
7422
7423 * valprint.c (generic_val_print_float): Don't call
7424 val_print_scalar_formatted.
7425 (generic_val_print, generic_value_print): Update.
7426
3eec3b05
TT
74272020-03-13 Tom Tromey <tom@tromey.com>
7428
7429 * valprint.c (generic_value_print_char): New function
7430 (generic_value_print): Use it.
7431
fdddfccb
TT
74322020-03-13 Tom Tromey <tom@tromey.com>
7433
7434 * valprint.c (generic_value_print_int): New function.
7435 (generic_value_print): Use it.
7436
6dde7521
TT
74372020-03-13 Tom Tromey <tom@tromey.com>
7438
7439 * valprint.c (generic_value_print_bool): New function.
7440 (generic_value_print): Use it.
7441
4112d2e6
TT
74422020-03-13 Tom Tromey <tom@tromey.com>
7443
7444 * valprint.c (generic_val_print_func): Simplify.
7445 (generic_val_print, generic_value_print): Update.
7446
65786af6
TT
74472020-03-13 Tom Tromey <tom@tromey.com>
7448
7449 * valprint.c (generic_val_print_flags): Remove.
7450 (generic_val_print, generic_value_print): Update.
7451 (val_print_type_code_flags): Add original_value parameter.
7452
40f3ce18
TT
74532020-03-13 Tom Tromey <tom@tromey.com>
7454
7455 * valprint.c (generic_val_print): Update.
7456 (generic_value_print): Update.
7457 * valprint.c (generic_val_print_enum): Don't call
7458 val_print_scalar_formatted.
7459
2a5b130b
TT
74602020-03-13 Tom Tromey <tom@tromey.com>
7461
7462 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7463 * valprint.c (generic_value_print_ptr): New function.
7464
abc66ce9
TT
74652020-03-13 Tom Tromey <tom@tromey.com>
7466
7467 * valprint.c (generic_value_print): Rewrite.
7468
07a32858
TT
74692020-03-13 Tom Tromey <tom@tromey.com>
7470
7471 * p-valprint.c (pascal_object_print_value_fields)
7472 (pascal_object_print_value): New functions.
7473
64d64d3a
TT
74742020-03-13 Tom Tromey <tom@tromey.com>
7475
7476 * p-valprint.c (pascal_value_print_inner): Rewrite.
7477
6a95a1f5
TT
74782020-03-13 Tom Tromey <tom@tromey.com>
7479
7480 * f-valprint.c (f_value_print_innner): Rewrite.
7481
59fcdac6
TT
74822020-03-13 Tom Tromey <tom@tromey.com>
7483
7484 * m2-valprint.c (m2_print_unbounded_array): New overload.
7485 (m2_print_unbounded_array): Update.
7486 (m2_print_array_contents): Take a struct value.
7487 (m2_value_print_inner): Rewrite.
7488
d133c3e1
TT
74892020-03-13 Tom Tromey <tom@tromey.com>
7490
7491 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7492 (d_value_print_inner): New function.
7493 * d-lang.h (d_value_print_inner): Declare.
7494 * d-lang.c (d_language_defn): Use d_value_print_inner.
7495
23b0f06b
TT
74962020-03-13 Tom Tromey <tom@tromey.com>
7497
7498 * go-valprint.c (go_value_print_inner): New function.
7499 * go-lang.h (go_value_print_inner): Declare.
7500 * go-lang.c (go_language_defn): Use go_value_print_inner.
7501
5f56f7cb
TT
75022020-03-13 Tom Tromey <tom@tromey.com>
7503
7504 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7505 API.
7506 (rust_val_print): Rewrite.
7507 (rust_value_print_inner): New function, from rust_val_print.
7508 (rust_language_defn): Use rust_value_print_inner.
7509
26792ee0
TT
75102020-03-13 Tom Tromey <tom@tromey.com>
7511
7512 * ada-valprint.c (ada_value_print_inner): New function.
7513 * ada-lang.h (ada_value_print_inner): Declare.
7514 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7515
24051bbe
TT
75162020-03-13 Tom Tromey <tom@tromey.com>
7517
7518 * f-valprint.c (f_value_print_innner): New function.
7519 * f-lang.h (f_value_print_innner): Declare.
7520 * f-lang.c (f_language_defn): Use f_value_print_innner.
7521
c0941be6
TT
75222020-03-13 Tom Tromey <tom@tromey.com>
7523
7524 * p-valprint.c (pascal_value_print_inner): New function.
7525 * p-lang.h (pascal_value_print_inner): Declare.
7526 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7527
62c4663d
TT
75282020-03-13 Tom Tromey <tom@tromey.com>
7529
7530 * m2-valprint.c (m2_value_print_inner): New function.
7531 * m2-lang.h (m2_value_print_inner): Declare.
7532 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7533
62182190
TT
75342020-03-13 Tom Tromey <tom@tromey.com>
7535
7536 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7537 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7538 * c-valprint.c (c_value_print_inner): New function.
7539 * c-lang.h (c_value_print_inner): Declare.
7540 * c-lang.c (c_language_defn, cplus_language_defn)
7541 (asm_language_defn, minimal_language_defn): Use
7542 c_value_print_inner.
7543
1e592a8a
TT
75442020-03-13 Tom Tromey <tom@tromey.com>
7545
7546 * p-valprint.c (pascal_object_print_value_fields): Now static.
7547 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7548
7fe471e9
TT
75492020-03-13 Tom Tromey <tom@tromey.com>
7550
7551 * c-valprint.c (c_val_print_array): Simplify.
7552
d121c6ce
TT
75532020-03-13 Tom Tromey <tom@tromey.com>
7554
7555 * valprint.c (value_print_array_elements): New function.
7556 * valprint.h (value_print_array_elements): Declare.
7557
4dba70ee
TT
75582020-03-13 Tom Tromey <tom@tromey.com>
7559
7560 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7561 * mips-tdep.c (mips_print_register): Use
7562 value_print_scalar_formatted.
7563
4f9ae810
TT
75642020-03-13 Tom Tromey <tom@tromey.com>
7565
7566 * valprint.h (value_print_scalar_formatted): Declare.
7567 * valprint.c (value_print_scalar_formatted): New function.
7568
156bfec9
TT
75692020-03-13 Tom Tromey <tom@tromey.com>
7570
7571 * valprint.h (generic_value_print): Declare.
7572 * valprint.c (generic_value_print): New function.
7573
2b4e573d
TT
75742020-03-13 Tom Tromey <tom@tromey.com>
7575
7576 * valprint.c (do_val_print): Call la_value_print_inner, if
7577 available.
7578 * rust-lang.c (rust_language_defn): Update.
7579 * p-lang.c (pascal_language_defn): Update.
7580 * opencl-lang.c (opencl_language_defn): Update.
7581 * objc-lang.c (objc_language_defn): Update.
7582 * m2-lang.c (m2_language_defn): Update.
7583 * language.h (struct language_defn) <la_value_print_inner>: New
7584 member.
7585 * language.c (unknown_language_defn, auto_language_defn): Update.
7586 * go-lang.c (go_language_defn): Update.
7587 * f-lang.c (f_language_defn): Update.
7588 * d-lang.c (d_language_defn): Update.
7589 * c-lang.c (c_language_defn, cplus_language_defn)
7590 (asm_language_defn, minimal_language_defn): Update.
7591 * ada-lang.c (ada_language_defn): Update.
7592
a1f6a07c
TT
75932020-03-13 Tom Tromey <tom@tromey.com>
7594
7595 * c-valprint.c (c_value_print): Use common_val_print.
7596
410cf315
TT
75972020-03-13 Tom Tromey <tom@tromey.com>
7598
7599 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7600
72a45c93
TT
76012020-03-13 Tom Tromey <tom@tromey.com>
7602
7603 * f-valprint.c (f77_print_array_1, f_val_print): Use
7604 common_val_print.
7605
040f66bd
TT
76062020-03-13 Tom Tromey <tom@tromey.com>
7607
7608 * riscv-tdep.c (riscv_print_one_register_info): Use
7609 common_val_print.
7610
a6e05a6c
TT
76112020-03-13 Tom Tromey <tom@tromey.com>
7612
7613 * mi/mi-main.c (output_register): Use common_val_print.
7614
3444c526
TT
76152020-03-13 Tom Tromey <tom@tromey.com>
7616
7617 * infcmd.c (default_print_one_register_info): Use
7618 common_val_print.
7619
c2a44efe
TT
76202020-03-13 Tom Tromey <tom@tromey.com>
7621
7622 * valprint.h (common_val_print_checked): Declare.
7623 * valprint.c (common_val_print_checked): New function.
7624 * stack.c (print_frame_arg): Use common_val_print_checked.
7625
b0c26e99
TT
76262020-03-13 Tom Tromey <tom@tromey.com>
7627
7628 * valprint.c (do_val_print): New function, from val_print.
7629 (val_print): Use do_val_print.
7630 (common_val_print): Use do_val_print.
7631
ce3acbe9
TT
76322020-03-13 Tom Tromey <tom@tromey.com>
7633
7634 * valprint.c (value_print): Use scoped_value_mark.
7635
96c7f873
TV
76362020-03-13 Tom de Vries <tdevries@suse.de>
7637
7638 PR symtab/25646
7639 * psymtab.c (partial_symtab::partial_symtab): Don't set
7640 globals_offset and statics_offset. Push element onto
7641 current_global_psymbols and current_static_psymbols stacks.
7642 (concat): New function.
7643 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7644 element from current_global_psymbols and current_static_psymbols
7645 stacks. Concat popped elements to global_psymbols and
7646 static_symbols.
7647 (add_psymbol_to_list): Use current_global_psymbols and
7648 current_static_psymbols stacks.
7649 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7650 current_static_psymbols fields.
7651
6ba0a321
CB
76522020-03-12 Christian Biesinger <cbiesinger@google.com>
7653
7654 * corelow.c (sniff_core_bfd): Remove.
7655 (class core_target) <m_core_vec>: Remove.
7656 (core_target::core_target): Update.
7657 (core_file_fns): Remove.
7658 (deprecated_add_core_fns): Remove.
7659 (default_core_sniffer): Remove.
7660 (sniff_core_bfd): Remove.
7661 (default_check_format): Remove.
7662 (gdb_check_format): Remove.
7663 (core_target_open): Update.
7664 (core_target::get_core_register_section): Update.
7665 (get_core_registers_cb): Update.
7666 (core_target::fetch_registers): Update.
7667 * gdbcore.h (struct core_fns): Remove.
7668 (deprecated_add_core_fns): Remove.
7669 (default_core_sniffer): Remove.
7670 (default_check_format): Remove.
7671
227031b2
TT
76722020-03-12 Tom Tromey <tom@tromey.com>
7673
7674 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7675 CORE_ADDR.
7676 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7677
53807e9f
TT
76782020-03-12 Tom Tromey <tom@tromey.com>
7679
7680 * remote.c (remote_target::download_tracepoint)
7681 (remote_target::enable_tracepoint)
7682 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7683 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7684 sprintf_vma.
7685
64f25102
TT
76862020-03-12 Tom Tromey <tom@tromey.com>
7687
7688 * symfile-mem.c: Update CORE_ADDR size assert.
7689
272cd5a3
SM
76902020-03-12 Simon Marchi <simon.marchi@efficios.com>
7691
7692 * selftest.m4: Move to gdbsupport/.
7693 * acinclude.m4: Update path to selftest.m4.
7694
74cd3f9d
SM
76952020-03-12 Simon Marchi <simon.marchi@efficios.com>
7696
7697 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7698 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7699 gdbarch-selfselftests.c and selftest-arch.c.
7700 (SUBDIR_UNITTESTS_OBS): Rename to...
7701 (SELFTESTS_OBS): ... this.
7702 (COMMON_SFILES): Remove disasm-selftests.c and
7703 gdbarch-selftests.c.
7704 * configure.ac: Don't add selftest-arch.{c,o} to
7705 CONFIG_{SRCS,OBS}.
7706 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7707 preprocessor conditions.
7708
db6878ac
SM
77092020-03-12 Simon Marchi <simon.marchi@efficios.com>
7710
7711 * configure.ac: Don't source bfd/development.sh.
7712 * selftest.m4: Modify comment.
7713 * configure: Re-generate.
7714
4d696a5c
SM
77152020-03-12 Simon Marchi <simon.marchi@efficios.com>
7716
7717 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7718 not "true" or "false".
7719 * configure: Re-generate.
7720
8dd8e1c7
CB
77212020-03-12 Christian Biesinger <cbiesinger@google.com>
7722
7723 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7724 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7725 renamed to arm_nbsd_supply_gregset.
7726 (fetch_register): Update to call arm_nbsd_supply_gregset.
7727 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7728 (arm_netbsd_nat_target::fetch_registers): Update.
7729 (fetch_elfcore_registers): Removed.
7730 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7731 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7732 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7733 not require NetBSD system headers.
7734 (arm_nbsd_regset): New struct.
7735 (arm_nbsd_iterate_over_regset_sections): New function.
7736 (arm_netbsd_init_abi_common): Updated to call
7737 set_gdbarch_iterate_over_regset_sections.
7738 * arm-nbsd-tdep.h: New file.
7739
dd69bf7a
KB
77402020-03-11 Kevin Buettner <kevinb@redhat.com>
7741
7742 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7743 recursion.
7744
a0761e34
SM
77452020-03-11 Simon Marchi <simon.marchi@efficios.com>
7746
7747 * configure: Re-generate.
7748
e7a82140
TT
77492020-03-11 Tom Tromey <tromey@adacore.com>
7750
7751 * ada-typeprint.c (print_choices): Fix comment.
7752
dcc050c8
AB
77532020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7754
7755 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7756 previous item in the list, when the list has no items.
7757
1c33af77
TV
77582020-03-11 Tom de Vries <tdevries@suse.de>
7759
7760 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7761 PROP_LOCLIST handling code.
7762
8c95582d
AB
77632020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7764
7765 * buildsym-legacy.c (record_line): Pass extra parameter to
7766 record_line.
7767 * buildsym.c (buildsym_compunit::record_line): Take an extra
7768 parameter, reduce duplication in the line table, and record the
7769 is_stmt flag in the line table.
7770 * buildsym.h (buildsym_compunit::record_line): Add extra
7771 parameter.
7772 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7773 non-statement lines.
7774 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7775 this to the symtab builder.
7776 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7777 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7778 through to dwarf_record_line_1.
7779 * infrun.c (process_event_stop_test): When stepping, don't stop at
7780 a non-statement instruction, and only refresh the step info when
7781 we land in the middle of a line's range. Also add an extra
7782 comment.
7783 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7784 field.
7785 * record-btrace.c (btrace_find_line_range): Only record lines
7786 marked as is-statement.
7787 * stack.c (frame_show_address): Show the frame address if we are
7788 in a non-statement sal.
7789 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7790 (maintenance_print_one_line_table): Print a header for the is_stmt
7791 column, and include is_stmt information in the output.
7792 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7793 preference to non-statements.
7794 (find_pcs_for_symtab_line): Prefer is-statement entries.
7795 (find_line_common): Likewise.
7796 * symtab.h (struct linetable_entry): Add is_stmt field.
7797 (struct symtab_and_line): Likewise.
7798 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7799 arranging the line table.
7800
e4003a34
TV
78012020-03-07 Tom de Vries <tdevries@suse.de>
7802
7803 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7804 DIE.
7805
e8932576
TT
78062020-03-07 Tom Tromey <tom@tromey.com>
7807
7808 * valops.c (value_literal_complex): Remove obsolete comment.
7809 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7810 comment.
7811
29734269
SM
78122020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7813
7814 * infrun.h: Forward-declare thread_info.
7815 (set_step_info): Add thread_info parameter, add doc.
7816 * infrun.c (set_step_info): Add thread_info parameter, move doc
7817 to header.
7818 * infrun.c (process_event_stop_test): Pass thread to
7819 set_step_info call.
7820 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7821 set_step_info.
7822 (prepare_one_step): Add thread_info parameter, pass it to
7823 set_step_frame and prepare_one_step (recursive) call.
7824 (step_1): Pass thread to prepare_one_step call.
7825 (step_command_fsm::should_stop): Pass thread to
7826 prepare_one_step.
7827 (until_next_fsm): Pass thread to set_step_frame call.
7828 (finish_command): Pass thread to set_step_info call.
7829
b7d64b29
HD
78302020-03-06 Hannes Domani <ssbssa@yahoo.de>
7831
7832 * windows-tdep.c (windows_solib_create_inferior_hook):
7833 Check if inferior is running.
7834
09f2921c
TV
78352020-03-06 Tom de Vries <tdevries@suse.de>
7836
7837 * NEWS: Fix "the the".
7838 * ctfread.c: Same.
7839
fd760e79
TV
78402020-03-06 Tom de Vries <tdevries@suse.de>
7841
7842 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7843
20ea4a60
AB
78442020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7845
7846 * .dir-locals.el: Add a comment referencing the other copies of
7847 this file.
7848
0afbabf0
JB
78492020-03-05 John Baldwin <jhb@FreeBSD.org>
7850
7851 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7852 psargs.
7853
842806cb
TBA
78542020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7855
7856 * .gitattributes: New file.
7857
be1e3d3e
TT
78582020-03-04 Tom Tromey <tom@tromey.com>
7859
7860 * symmisc.c (print_symbol_bcache_statistics)
7861 (print_objfile_statistics): Update.
7862 * symfile.c (allocate_symtab): Use intern.
7863 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7864 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7865 macro_cache>: Remove.
7866 <string_cache>: New member.
7867 (struct objfile) <intern>: New methods.
7868 * elfread.c (elf_symtab_read): Use intern.
7869 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7870 (dwarf2_compute_name, dwarf2_physname)
7871 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7872 names.
7873 (guess_partial_die_structure_name): Update.
7874 (partial_die_info::fixup): Intern name.
7875 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7876 name.
7877 (dwarf2_name): Intern name. Update.
7878 * buildsym.c (buildsym_compunit::get_macro_table): Use
7879 string_cache.
7880
4e7625fd
TT
78812020-03-04 Tom Tromey <tom@tromey.com>
7882
7883 * jit.c (bfd_open_from_target_memory): Make "target" const.
7884 * corefile.c (gnutarget): Now const.
7885 * gdbcore.h (gnutarget): Now const.
7886
46f9f931
HD
78872020-03-04 Hannes Domani <ssbssa@yahoo.de>
7888
7889 * NEWS: Mention support for WOW64 processes.
7890 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7891 (amd64_windows_segment_register_p): Remove static.
7892 (_initialize_amd64_windows_nat): Update.
7893 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7894 * i386-windows-nat.c (context_offset): Update.
7895 (i386_mappings): Rename and remove static.
7896 (i386_windows_segment_register_p): Remove static.
7897 (_initialize_i386_windows_nat): Update.
7898 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7899 (STATUS_WX86_SINGLE_STEP): New macro.
7900 (EnumProcessModulesEx): New macro.
7901 (Wow64SuspendThread): New macro.
7902 (Wow64GetThreadContext): New macro.
7903 (Wow64SetThreadContext): New macro.
7904 (Wow64GetThreadSelectorEntry): New macro.
7905 (windows_set_context_register_offsets): Add static.
7906 (windows_set_segment_register_p): Likewise.
7907 (windows_add_thread): Adapt for WOW64 processes.
7908 (windows_fetch_one_register): Likewise.
7909 (windows_nat_target::fetch_registers): Likewise.
7910 (windows_store_one_register): Likewise.
7911 (display_selector): Likewise.
7912 (display_selectors): Likewise.
7913 (handle_exception): Likewise.
7914 (windows_continue): Likewise.
7915 (windows_nat_target::resume): Likewise.
7916 (windows_add_all_dlls): Likewise.
7917 (do_initial_windows_stuff): Likewise.
7918 (windows_nat_target::attach): Likewise.
7919 (windows_get_exec_module_filename): Likewise.
7920 (windows_nat_target::create_inferior): Likewise.
7921 (windows_xfer_siginfo): Likewise.
7922 (_initialize_loadable): Initialize Wow64SuspendThread,
7923 Wow64GetThreadContext, Wow64SetThreadContext,
7924 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7925 * windows-nat.h (windows_set_context_register_offsets):
7926 Remove declaration.
7927 (windows_set_segment_register_p): Likewise.
7928 (i386_windows_segment_register_p): Add declaration.
7929 (amd64_windows_segment_register_p): Likewise.
7930
440cf44e
LM
79312020-03-04 Luis Machado <luis.machado@linaro.org>
7932
7933 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7934 in "info registers" for AArch64/ARM.
7935
7936 The change caused "info registers" to not print GPR's.
7937
7938 gdb/ChangeLog:
7939
7940 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7941
7942 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7943 when reg->group is empty and reggroup is not.
7944
1009d92f
TT
79452020-03-03 Tom Tromey <tromey@adacore.com>
7946
7947 * dwarf2/frame.c (struct dwarf2_frame_cache)
7948 <checked_tailcall_bottom, entry_cfa_sp_offset,
7949 entry_cfa_sp_offset_p>: Remove members.
7950 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7951 (dwarf2_frame_prev_register): Don't call
7952 dwarf2_tailcall_sniffer_first.
7953 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7954 * frame-unwind.c (add_unwinder): New fuction.
7955 (frame_unwind_init): Use it. Add tailcall unwinder.
7956
5e5d66b6
AB
79572020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7958 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7959
7960 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7961 value should be printed as true.
7962
584cf46d
HD
79632020-03-03 Hannes Domani <ssbssa@yahoo.de>
7964
7965 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7966 (windows_init_abi): Set and use windows_so_ops.
7967
7b973adc
SDJ
79682020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7969
7970 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7971 when verifying if dealing with a convenience variable.
7972
bb7b70ab
LM
79732020-03-03 Luis Machado <luis.machado@linaro.org>
7974
7975 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7976
9822cb57
SM
79772020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7978
7979 * infrun.c (gdbarch_supports_displaced_stepping): New.
7980 (use_displaced_stepping): Break up conditions in smaller pieces.
7981 Use gdbarch_supports_displaced_stepping.
7982 (displaced_step_prepare_throw): Use
7983 gdbarch_supports_displaced_stepping.
7984
63e163f2
AB
79852020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7986
7987 * NEWS: Mention new behaviour of the history filename.
7988 * top.c (write_history_p): Add comment.
7989 (show_write_history_p): Add header comment, give a different
7990 message when history writing is on, but the history filename is
7991 empty.
7992 (history_filename): Add comment.
7993 (history_filename_empty): New function.
7994 (show_history_filename): Add header comment, give a different
7995 message when the filename is empty.
7996 (init_history): Compare history_filename against nullptr, and only
7997 read history if the filename is not empty.
7998 (set_history_filename): Add header comment, and only make
7999 non-empty filenames absolute.
8000 (init_main): Make the filename argument to 'set history filename'
8001 optional.
8002
81b86b97
CB
80032020-03-02 Christian Biesinger <cbiesinger@google.com>
8004
8005 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8006 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8007 (fetch_fp_register): Update.
8008 (fetch_fp_regs): Update.
8009 (store_fp_register): Update.
8010 (store_fp_regs): Update.
8011 (arm_netbsd_nat_target::read_description): New function.
8012 (fetch_elfcore_registers): Update.
8013
24ed6739
AB
80142020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8015
8016 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8017 general_thread if the stop reply is missing a thread-id.
8018 (remote_target::process_stop_reply): Use the first non-exited
8019 thread if the target didn't pass a thread-id.
8020 * infrun.c (do_target_wait): Move call to
8021 switch_to_inferior_no_thread to ....
8022 (do_target_wait_1): ... here.
8023
a84bb2a0
JT
80242020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8025
8026 * debuginfod-support.c: Include defs.h first.
8027
658dadf0
TV
80282020-02-28 Tom de Vries <tdevries@suse.de>
8029
8030 * symfile.c (set_initial_language): Use default language for lookup.
8031
4ebe4877
SM
80322020-02-28 Simon Marchi <simon.marchi@efficios.com>
8033
8034 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8035 reader variable, pass `this` to read_cutu_die_from_dwo.
8036
e5da1139
AM
80372020-02-27 Aaron Merey <amerey@redhat.com>
8038
8039 * source.c (open_source_file): Check for nullptr when computing
8040 srcpath.
8041
317f7127
TT
80422020-02-27 Tom Tromey <tromey@adacore.com>
8043
8044 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8045 member.
8046 (dwarf2_add_field): Don't update nfields.
8047 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8048
3104d9ee
AB
80492020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8050
8051 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8052 abs.
8053
b83470bf
TT
80542020-02-26 Tom Tromey <tom@tromey.com>
8055
8056 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8057 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8058 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8059 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8060 per_cu_data.
8061
edfe0a0c
TT
80622020-02-26 Tom Tromey <tom@tromey.com>
8063
8064 * dwarf2/index-write.c (psym_index_map): Change type.
8065 (add_address_entry_worker, write_one_signatured_type)
8066 (recursively_count_psymbols, recursively_write_psymbols)
8067 (class debug_names, psyms_seen_size, write_gdbindex)
8068 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8069
0d79cdc4
AM
80702020-02-26 Aaron Merey <amerey@redhat.com>
8071
8072 * Makefile.in: Handle optional debuginfod support.
8073 * NEWS: Update.
8074 * README: Add --with-debuginfod summary.
8075 * config.in: Regenerate.
8076 * configure: Regenerate.
8077 * configure.ac: Handle optional debuginfod support.
8078 * debuginfod-support.c: debuginfod helper functions.
8079 * debuginfod-support.h: Ditto.
8080 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8081 summary.
8082 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8083 when a dwz file cannot be found.
8084 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8085 debuginfo file cannot be found.
8086 * source.c (open_source_file): Query debuginfod servers when a
8087 source file cannot be found.
8088 * top.c (print_gdb_configuration): Include
8089 --{with,without}-debuginfod in the output.
8090
b65ce565
JG
80912020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8092
8093 * thread.c (thr_try_catch_cmd): Print thread name.
8094
d4c9a4f8
SM
80952020-02-26 Simon Marchi <simon.marchi@efficios.com>
8096
8097 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8098 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8099 dwarf2_fetch_die_type_sect_off): Move to...
8100 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8101 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8102 dwarf2_fetch_die_type_sect_off): ... here.
8103 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8104 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8105 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8106
0dce4280
TV
81072020-02-26 Tom de Vries <tdevries@suse.de>
8108
8109 PR gdb/25603
8110 * symfile.c (set_initial_language): Exit-early if
8111 language_mode == language_mode_manual.
8112
450a1bfc
SM
81132020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8114
8115 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8116 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8117 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8118
9e80cfa1
AB
81192020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8120
8121 * gdbtypes.c (create_array_type_with_stride): Handle negative
8122 array strides.
8123 * valarith.c (value_subscripted_rvalue): Likewise.
8124
09624f1f
LM
81252020-02-25 Luis Machado <luis.machado@linaro.org>
8126
8127 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8128
8cb5117c
SM
81292020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8130
8131 * loc.h (dwarf2_get_die_type): Move to...
8132 * read.h (dwarf2_get_die_type): ... here.
8133 * read.c (dwarf2_get_die_type): Move doc to header.
8134
c325c44e
JB
81352020-02-25 Joel Brobecker <brobecker@adacore.com>
8136
8137 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8138 'gnulib/Makefile.in' to the list.
8139
4ac93832
TT
81402020-02-24 Tom Tromey <tom@tromey.com>
8141
8142 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8143 Remove.
8144 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8145 XOBNEWVEC.
8146
197400e8
TT
81472020-02-24 Tom Tromey <tom@tromey.com>
8148
8149 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8150 New method.
8151 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8152 (dw2_do_instantiate_symtab, dw2_get_file_names)
8153 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8154
76935768
TT
81552020-02-24 Tom Tromey <tom@tromey.com>
8156
8157 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8158 make_scoped_restore.
8159 (dwarf2_psymtab::read_symtab): Don't clear
8160 reading_partial_symbols.
8161
a88ef40d
TV
81622020-02-24 Tom de Vries <tdevries@suse.de>
8163
8164 PR gdb/25592
8165 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8166
c9af6521
TV
81672020-02-24 Tom de Vries <tdevries@suse.de>
8168
8169 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8170 commands layout next/prev/regs.
8171
5707a07a
TT
81722020-02-22 Tom Tromey <tom@tromey.com>
8173
8174 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8175 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8176
3b0fb49e
TT
81772020-02-22 Tom Tromey <tom@tromey.com>
8178
8179 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8180
283be8bf
TT
81812020-02-22 Tom Tromey <tom@tromey.com>
8182
8183 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8184 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8185 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8186 * tui/tui.c (_initialize_tui): Add usage text.
8187
ca793b96
TT
81882020-02-22 Tom Tromey <tom@tromey.com>
8189
8190 * tui/tui-win.c (tui_set_focus_command)
8191 (tui_set_win_height_command): Use error_no_arg.
8192 (_initialize_tui_win): Update help text.
8193 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8194
432b5c40
TT
81952020-02-22 Tom Tromey <tom@tromey.com>
8196
8197 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8198 * tui/tui-disasm.h (struct tui_disasm_window)
8199 <display_start_addr>: Declare.
8200 * tui/tui-source.h (struct tui_source_window)
8201 <display_start_addr>: Declare.
8202 * tui/tui-winsource.h (struct tui_source_window_base)
8203 <show_source_line, display_start_addr>: New methods.
8204 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8205 Rename and move to protected section.
8206 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8207 (tui_source_window_base::do_erase_source_content): Update.
8208 (tui_source_window_base::show_source_line): Now a method.
8209 (tui_source_window_base::show_source_content)
8210 (tui_source_window_base::tui_source_window_base)
8211 (tui_source_window_base::rerender)
8212 (tui_source_window_base::refill)
8213 (tui_source_window_base::do_scroll_horizontal)
8214 (tui_source_window_base::set_is_exec_point_at)
8215 (tui_source_window_base::update_breakpoint_info)
8216 (tui_source_window_base::update_exec_info): Update.
8217 * tui/tui-source.c (tui_source_window::set_contents)
8218 (tui_source_window::showing_source_p)
8219 (tui_source_window::do_scroll_vertical)
8220 (tui_source_window::location_matches_p)
8221 (tui_source_window::line_is_displayed): Update.
8222 (tui_source_window::display_start_addr): New method.
8223 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8224 (tui_disasm_window::do_scroll_vertical)
8225 (tui_disasm_window::location_matches_p): Update.
8226 (tui_disasm_window::display_start_addr): New method.
8227
01b1af32
TT
82282020-02-22 Tom Tromey <tom@tromey.com>
8229
8230 * NEWS: Add entry for gdb.register_window_type.
8231 * tui/tui-layout.h (window_factory): New typedef.
8232 (tui_register_window): Declare.
8233 * tui/tui-layout.c (saved_tui_windows): New global.
8234 (tui_apply_current_layout): Use it.
8235 (tui_register_window): New function.
8236 * python/python.c (do_start_initialization): Call
8237 gdbpy_initialize_tui.
8238 (python_GdbMethods): Add "register_window_type" function.
8239 * python/python-internal.h (gdbpy_register_tui_window)
8240 (gdbpy_initialize_tui): Declare.
8241 * python/py-tui.c: New file.
8242 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8243
fc96d20b
TT
82442020-02-22 Tom Tromey <tom@tromey.com>
8245
8246 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8247
935c78c0
TT
82482020-02-22 Tom Tromey <tom@tromey.com>
8249
8250 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8251 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8252 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8253 (tui_set_win_focus_to): Move from tui-win.c.
8254
0240c8f1
TT
82552020-02-22 Tom Tromey <tom@tromey.com>
8256
8257 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8258 functions.
8259 (known_window_types): New global.
8260 (tui_get_window_by_name): Reimplement.
8261 (initialize_known_windows): New function.
8262 (validate_window_name): Rewrite.
8263 (_initialize_tui_layout): Call initialize_known_windows.
8264
fdb01f0c
TT
82652020-02-22 Tom Tromey <tom@tromey.com>
8266
8267 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8268 Remove constants.
8269 * tui/tui-winsource.h (struct tui_source_window_base)
8270 <tui_source_window_base>: Remove parameter.
8271 * tui/tui-winsource.c
8272 (tui_source_window_base::tui_source_window_base): Remove
8273 parameter.
8274 (tui_source_window_base::refill): Update.
8275 * tui/tui-stack.h (struct tui_locator_window)
8276 <tui_locator_window>: Update.
8277 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8278 Default the constructor.
8279 * tui/tui-regs.h (struct tui_data_item_window)
8280 <tui_data_item_window>: Default the constructor.
8281 (struct tui_data_window) <tui_data_window>: Likewise.
8282 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8283 Default the constructor.
8284 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8285 Default the constructor.
8286 <type>: Remove.
8287 (struct tui_win_info) <tui_win_info>: Default the constructor.
8288 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8289 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8290 Default the constructor.
8291
865a5aec
TT
82922020-02-22 Tom Tromey <tom@tromey.com>
8293
8294 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8295 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8296 * tui/tui-win.c (tui_resize_all): Don't call
8297 tui_delete_invisible_windows.
8298 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8299 done.
8300 (tui_set_layout): Update.
8301 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8302 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8303 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8304
e098d18c
TT
83052020-02-22 Tom Tromey <tom@tromey.com>
8306
8307 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8308 correctly.
8309
eb9c8874
TT
83102020-02-22 Tom Tromey <tom@tromey.com>
8311
8312 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8313
7eed1a8e
TT
83142020-02-22 Tom Tromey <tom@tromey.com>
8315
8316 * tui/tui-winsource.h (struct tui_source_window_iterator)
8317 <inner_iterator>: New etytypedef.
8318 <tui_source_window_iterator>: Take "end" parameter.
8319 <tui_source_window_iterator>: Take iterator.
8320 <operator*, advance>: Update.
8321 <m_iter>: Change type.
8322 <m_end>: New field.
8323 (struct tui_source_windows) <begin, end>: Update.
8324 * tui/tui-layout.c (tui_windows): New global.
8325 (tui_apply_current_layout): Clear tui_windows.
8326 (tui_layout_window::apply): Update tui_windows.
8327 * tui/tui-data.h (tui_windows): Declare.
8328 (all_tui_windows): Now inline function.
8329 (class tui_window_iterator, struct all_tui_windows): Remove.
8330
7c043ba6
TT
83312020-02-22 Tom Tromey <tom@tromey.com>
8332
8333 PR tui/17850:
8334 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8335 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8336 "height" argument.
8337 (class tui_layout_window) <get_sizes>: Likewise.
8338 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8339 argument.
8340 <get_sizes>: Add "height" argument.
8341 <m_vertical>: New field.
8342 * tui/tui-layout.c (tui_layout_split::clone): Update.
8343 (tui_layout_split::get_sizes): Add "height" argument.
8344 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8345 (tui_new_layout_command): Parse "-horizontal".
8346 (_initialize_tui_layout): Update help string.
8347 (tui_layout_split::specification): Add "-horizontal" when needed.
8348 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8349 argument.
8350 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8351 New methods.
8352
6bc56648
TT
83532020-02-22 Tom Tromey <tom@tromey.com>
8354
8355 * tui/tui-layout.h (enum tui_adjust_result): New.
8356 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8357 (class tui_layout_window) <adjust_size>: Return
8358 tui_adjust_result. Rewrite.
8359 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8360 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8361
c22fef7e
TT
83622020-02-22 Tom Tromey <tom@tromey.com>
8363
8364 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8365 parameter and return types.
8366 (class tui_layout_base) <specification>: Add "depth".
8367 (class tui_layout_window) <specification>: Add "depth".
8368 (class tui_layout_split) <specification>: Add "depth".
8369 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8370 and return types.
8371 (tui_new_layout_command): Parse sub-layouts.
8372 (_initialize_tui_layout): Update help string.
8373 (tui_layout_window::specification): Add "depth".
8374 (add_layout_command): Update.
8375
ee325b61
TT
83762020-02-22 Tom Tromey <tom@tromey.com>
8377
8378 * NEWS: Add "tui new-layout" item.
8379 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8380 Add new-layout command to help text.
8381 (validate_window_name): New function.
8382 (tui_new_layout_command): New function.
8383 (_initialize_tui_layout): Register "new-layout".
8384 (tui_layout_window::specification): New method.
8385 (tui_layout_window::specification): New method.
8386 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8387 method.
8388 (class tui_layout_window) <specification>: New method.
8389 (class tui_layout_split) <specification>: New method.
8390
416eb92d
TT
83912020-02-22 Tom Tromey <tom@tromey.com>
8392
8393 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8394 * tui/tui-win.c (window_name_completer): Update comment.
8395 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8396 Declare method.
8397 (class tui_layout_window) <replace_window>: Likewise.
8398 (class tui_layout_split) <replace_window>: Likewise.
8399 (tui_set_layout): Don't declare.
8400 (tui_set_initial_layout): Declare function.
8401 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8402 (asm_regs_layout): New globals.
8403 (tui_current_layout, show_layout): Remove.
8404 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8405 (find_layout, tui_apply_layout): New function.
8406 (layout_completer): Remove.
8407 (tui_next_layout): Reimplement.
8408 (tui_next_layout_command): New function.
8409 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8410 (tui_regs_layout): Reimplement.
8411 (tui_regs_layout_command): New function.
8412 (extract_display_start_addr): Rewrite.
8413 (next_layout, prev_layout): Remove.
8414 (tui_layout_window::replace_window): New method.
8415 (tui_layout_split::replace_window): New method.
8416 (destroy_layout): New function.
8417 (layout_list): New global.
8418 (add_layout_command): New function.
8419 (initialize_layouts): Update.
8420 (tui_layout_command): New function.
8421 (_initialize_tui_layout): Install "layout" commands.
8422 * tui/tui-data.h (enum tui_layout_type): Remove.
8423 (tui_current_layout): Don't declare.
8424
0dbc2fc7
TT
84252020-02-22 Tom Tromey <tom@tromey.com>
8426
8427 * tui/tui-regs.c (tui_reg_layout): Remove.
8428 (tui_reg_command): Use tui_regs_layout.
8429 * tui/tui-layout.h (tui_reg_command): Declare.
8430 * tui/tui-layout.c (tui_reg_command): New function.
8431
5afe342e
TT
84322020-02-22 Tom Tromey <tom@tromey.com>
8433
8434 * tui/tui.c (tui_rl_delete_other_windows): Call
8435 tui_remove_some_windows.
8436 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8437 Declare method.
8438 (class tui_layout_window) <remove_windows>: New method.
8439 (class tui_layout_split) <remove_windows>: Declare.
8440 (tui_remove_some_windows): Declare.
8441 * tui/tui-layout.c (tui_remove_some_windows): New function.
8442 (tui_layout_split::remove_windows): New method.
8443
427326a8
TT
84442020-02-22 Tom Tromey <tom@tromey.com>
8445
8446 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8447 * tui/tui-layout.h (tui_next_layout): Declare.
8448 * tui/tui-layout.c (tui_next_layout): New function.
8449
3fe12b6d
TT
84502020-02-22 Tom Tromey <tom@tromey.com>
8451
8452 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8453 correct coordinates.
8454
59b8b5d2
TT
84552020-02-22 Tom Tromey <tom@tromey.com>
8456
8457 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8458 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8459 DATA_WIN case.
8460
2a3d458b
TT
84612020-02-22 Tom Tromey <tom@tromey.com>
8462
8463 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8464 TUI_DISASM_WIN, not tui_win_list.
8465
3f0cbb04
TT
84662020-02-22 Tom Tromey <tom@tromey.com>
8467
8468 * valprint.c (generic_val_print_enum_1)
8469 (val_print_type_code_flags): Style member names.
8470 * rust-lang.c (val_print_struct, rust_print_enum)
8471 (rust_print_struct_def, rust_internal_print_type): Style member
8472 names.
8473 * p-valprint.c (pascal_object_print_value_fields): Style member
8474 names. Only call fprintf_symbol_filtered for static members.
8475 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8476 * f-valprint.c (f_val_print): Style member names.
8477 * f-typeprint.c (f_type_print_base): Style member names.
8478 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8479 call fprintf_symbol_filtered for static members.
8480 (cp_print_class_member): Style member names.
8481 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8482 member names.
8483 * ada-valprint.c (ada_print_scalar): Style enum names.
8484 (ada_val_print_enum): Likewise.
8485 * ada-typeprint.c (print_enum_type): Style enum names.
8486
d4d947ae
TT
84872020-02-21 Tom Tromey <tom@tromey.com>
8488
8489 * psympriv.h (struct partial_symtab): Update comment.
8490
e94e944b
TT
84912020-02-21 Tom Tromey <tromey@adacore.com>
8492
8493 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8494 type is CORE_ADDR.
8495
1eb73179
TV
84962020-02-21 Tom de Vries <tdevries@suse.de>
8497
8498 PR gdb/25534
8499 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8500 if dependencies[i]->user != NULL.
8501
4f180d53
AT
85022020-02-21 Ali Tamur <tamur@google.com>
8503
8504 * dwarf2/read.c (dwarf2_name): Add null check.
8505
22b6cd70
TT
85062020-02-20 Tom Tromey <tom@tromey.com>
8507
8508 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8509 ">=", in binary search.
8510 (dwarf2_find_containing_comp_unit): New overload.
8511 (run_test): New self-test.
8512 (_initialize_dwarf2_read): Register new test.
8513
bd0cf5a6
NC
85142020-02-20 Nelson Chu <nelson.chu@sifive.com>
8515
8516 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8517 * riscv-tdep.h: Likewise.
8518 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8519 rv32-only CSR.
8520 * features/riscv/64bit-csr.xml: Regenerated.
8521
3f702acd
SDJ
85222020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8523 Tom Tromey <tom@tromey.com>
8524
8525 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8526 of 'fputc_unfiltered'.
8527 (putchar_unfiltered): Call 'fputc_unfiltered'.
8528 (fputc_unfiltered): Call 'fputs_unfiltered'.
8529
d13c7322
AB
85302020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8531
8532 * config.in: Regenerate.
8533 * configure: Regenerate.
8534 * configure.ac: Add --with-python-libdir option.
8535 * main.c: Use WITH_PYTHON_LIBDIR.
8536
869d8950
TT
85372020-02-19 Tom Tromey <tom@tromey.com>
8538
8539 * symtab.c (general_symbol_info::compute_and_set_names): Use
8540 obstack_strndup. Simplify call to symbol_set_demangled_name.
8541
298e9637
SM
85422020-02-19 Simon Marchi <simon.marchi@efficios.com>
8543
8544 * dwarf2/read.c (allocate_signatured_type_table,
8545 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8546 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8547 Remove objfile parameter, update all callers.
8548
08410482
DE
85492020-02-19 Doug Evans <dje@google.com>
8550
8551 PR rust/25535
8552 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8553 rust_enum_variant calculation.
8554
dfdeeca1
TT
85552020-02-19 Tom Tromey <tromey@adacore.com>
8556
8557 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8558
2ef5453b
TT
85592020-02-19 Tom Tromey <tromey@adacore.com>
8560
8561 * ada-lang.c (cache_symbol): Use obstack_strdup.
8562
9f1528a1
AB
85632020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8564
8565 * configure: Regenerate.
8566
d3c22fa8
TT
85672020-02-19 Tom Tromey <tromey@adacore.com>
8568
8569 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8570 NULL check.
8571
bf84f706
MR
85722020-02-19 Maciej W. Rozycki <macro@wdc.com>
8573
8574 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8575
d1c9b20f
AB
85762020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8577
8578 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8579 if GDBSERVER is not defined.
8580 (riscv_tdesc_cache): Likewise, also store const target_desc.
8581 (STATIC_IN_GDB): Define.
8582 (riscv_create_target_description): Update declaration with
8583 STATIC_IN_GDB.
8584 (riscv_lookup_target_description): New function, only define if
8585 GDBSERVER is not defined.
8586 * arch/riscv.h (riscv_create_target_description): Declare only
8587 when GDBSERVER is defined.
8588 (riscv_lookup_target_description): New declaration when GDBSERVER
8589 is not defined.
8590 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8591 (riscv_linux_read_features): ...this, and return
8592 riscv_gdbarch_features instead of target_desc.
8593 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8594 (riscv_linux_read_description): Rename to...
8595 (riscv_linux_read_features): ...this.
8596 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8597 Update to use riscv_gdbarch_features and
8598 riscv_lookup_target_description.
8599 * riscv-tdep.c (riscv_find_default_target_description): Use
8600 riscv_lookup_target_description instead of
8601 riscv_create_target_description.
8602
373d7ac0
SM
86032020-02-18 Simon Marchi <simon.marchi@efficios.com>
8604
8605 * valprint.c (generic_val_print_enum_1): When printing a flag
8606 enum with value 0 and there is no enumerator with value 0, print
8607 just "0" instead of "(unknown: 0x0)".
8608
b29a2df0
SM
86092020-02-18 Simon Marchi <simon.marchi@efficios.com>
8610
8611 * valprint.c (generic_val_print_enum_1): Print unknown part of
8612 flag enum in hex.
8613
6740f0cc
SM
86142020-02-18 Simon Marchi <simon.marchi@efficios.com>
8615
8616 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8617 flag enums to contain duplicate enumerators.
8618 * valprint.c (generic_val_print_enum_1): Update comment.
8619
edd45eb0
SM
86202020-02-18 Simon Marchi <simon.marchi@efficios.com>
8621
8622 * dwarf2/read.c: Include "count-one-bits.h".
8623 (update_enumeration_type_from_children): If an enumerator has
8624 multiple bits set, don't treat the enumeration as a "flag enum".
8625 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8626 of flag enums have 0 or 1 bit set.
8627
6d0cf446
BE
86282020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8629
8630 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8631 conversion.
8632 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8633 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8634 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8635 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8636 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8637
7001c1b7
SM
86382020-02-18 Simon Marchi <simon.marchi@efficios.com>
8639
8640 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8641
fdb61c6c
SM
86422020-02-14 Simon Marchi <simon.marchi@efficios.com>
8643
8644 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8645 displaced_step_closure_up.
8646 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8647 (struct displaced_step_closure_up):
8648 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8649 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8650 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8651 Likewise.
8652 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8653 * gdbarch.c, gdbarch.h: Re-generate.
8654 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8655 displaced_step_closure_up.
8656 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8657 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8658 * infrun.h (displaced_step_closure_up): New type alias.
8659 (struct displaced_step_inferior_state) <step_closure>: Change
8660 type to displaced_step_closure_up.
8661 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8662 displaced_step_closure_up.
8663 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8664
a4a38eb4
TT
86652020-02-14 Tom Tromey <tom@tromey.com>
8666
8667 * minidebug.c (gnu_debug_key): New global.
8668 (find_separate_debug_file_in_section): Use it.
8669
e8217e61
SM
86702020-02-14 Simon Marchi <simon.marchi@efficios.com>
8671
8672 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8673 std::unique_ptr.
8674 * gdbarch.c: Re-generate.
8675 * gdbarch.h: Re-generate.
8676 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8677 change.
8678 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8679 type to std::unique_ptr.
8680 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8681 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8682 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8683 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8684 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8685 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8686 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8687 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8688 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8689
d8d83535
SM
86902020-02-14 Simon Marchi <simon.marchi@efficios.com>
8691
8692 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8693 std::unique_ptr.
8694 (displaced_step_clear): Rename to...
8695 (displaced_step_reset): ... this. Just call displaced->reset ().
8696 (displaced_step_clear_cleanup): Rename to...
8697 (displaced_step_reset_cleanup): ... this.
8698 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8699 (displaced_step_fixup): Likewise.
8700 (resume_1): Likewise.
8701 (handle_inferior_event): Restore child's memory before calling
8702 displaced_step_fixup on the parent.
8703 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8704 to std::unique_ptr.
8705 <step_closure>: Change type to std::unique_ptr.
8706
5f661e03
SM
87072020-02-14 Simon Marchi <simon.marchi@efficios.com>
8708
8709 * arm-tdep.c: Include count-one-bits.h.
8710 (cleanup_block_store_pc): Use count_one_bits.
8711 (cleanup_block_load_pc): Use count_one_bits.
8712 (arm_copy_block_xfer): Use count_one_bits.
8713 (thumb2_copy_block_xfer): Use count_one_bits.
8714 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8715 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8716 (thumb_get_next_pcs_raw): Use count_one_bits.
8717 (arm_get_next_pcs_raw): Use count_one_bits_l.
8718 * arch/arm.c (bitcount): Remove.
8719 * arch/arm.h (bitcount): Remove.
8720
8084e579
TT
87212020-02-14 Tom Tromey <tromey@adacore.com>
8722
8723 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8724 Update.
8725 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8726 * dwarf2/loc.c (call_site_find_chain_1): Return
8727 unique_xmalloc_ptr.
8728 (call_site_find_chain): Likewise.
8729
258bf0ee
RB
87302020-02-14 Richard Biener <rguenther@suse.de>
8731
8732 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8733 on expression with division operators.
8734
f98a8458
AKS
87352020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8736
8737 * MAINTAINERS (Write After Approval): Adding myself.
8738
d1437c0e
TT
87392020-02-12 Tom Tromey <tom@tromey.com>
8740
8741 * event-loop.c (event_data, gdb_event, event_handler_func):
8742 Remove.
8743
3d4560f7
TT
87442020-02-12 Tom Tromey <tom@tromey.com>
8745
8746 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8747 (dwarf2_frame_objfile_data): Add comment.
8748 (find_comp_unit, set_comp_unit): New functions.
8749 (dwarf2_frame_find_fde): Use find_comp_unit.
8750 (dwarf2_build_frame_info): Use set_comp_unit.
8751
21982304
TT
87522020-02-12 Tom Tromey <tom@tromey.com>
8753
8754 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8755 (comp_unit): Don't initialize objfile.
8756 (execute_cfa_program): Add text_offset parameter.
8757 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8758 (dwarf2_frame_cache): Update.
8759 (dwarf2_build_frame_info): Don't set "objfile" member.
8760
4debb237
TT
87612020-02-12 Tom Tromey <tom@tromey.com>
8762
8763 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8764 (decode_frame_entry): Likewise.
8765 (dwarf2_build_frame_info): Update.
8766
0d404d44
TT
87672020-02-12 Tom Tromey <tom@tromey.com>
8768
8769 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8770 (decode_frame_entry_1): Use the comp_unit obstack.
8771
a7a3ae5c
TT
87722020-02-12 Tom Tromey <tom@tromey.com>
8773
8774 * dwarf2/frame.c (struct comp_unit): Add initializers and
8775 constructor.
8776 (dwarf2_frame_objfile_data): Store a comp_unit.
8777 (dwarf2_frame_find_fde): Update.
8778 (dwarf2_build_frame_info): Use "new".
8779
a9d65418
TT
87802020-02-12 Tom Tromey <tom@tromey.com>
8781
8782 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8783 (dwarf2_fde_table): Typedef for std::vector.
8784 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8785 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8786 (decode_frame_entry): Update.
8787 (dwarf2_build_frame_info): Use "new".
8788
7559c217
CB
87892020-02-12 Christian Biesinger <cbiesinger@google.com>
8790
8791 * arm-tdep.c (arm_gdbarch_init): Update.
8792 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8793 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8794 have_neon, is_m>: Change to bool.
8795
aeefc73c
CB
87962020-02-12 Christian Biesinger <cbiesinger@google.com>
8797
8798 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8799
d27b8e5f
TT
88002020-02-12 Tom Tromey <tom@tromey.com>
8801
8802 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8803
cd5900f3
HD
88042020-02-12 Hannes Domani <ssbssa@yahoo.de>
8805
8806 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8807 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8808
f056b22b
TT
88092020-02-11 Tom Tromey <tom@tromey.com>
8810
8811 * psymtab.h: Update comment.
8812
f92ff6b5
TT
88132020-02-11 Tom Tromey <tom@tromey.com>
8814
8815 * gdb_obstack.h (struct auto_obstack): Use
8816 DISABLE_COPY_AND_ASSIGN.
8817
3fd6912b
TT
88182020-02-11 Tom Tromey <tom@tromey.com>
8819
8820 * dwarf2/frame.h (struct objfile): Don't forward declare.
8821
69ed9b74
CB
88222020-02-11 Christian Biesinger <cbiesinger@google.com>
8823
8824 * cris-tdep.c (cris_supply_gregset): Change signature to match
8825 what struct regset expects.
8826 (cris_regset): New struct.
8827 (fetch_core_registers): Remove.
8828 (cris_iterate_over_regset_sections): New function.
8829 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8830 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8831
bda874f6
CB
88322020-02-11 Christian Biesinger <cbiesinger@google.com>
8833
8834 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8835 registers.
8836
754e1564
CB
88372020-02-11 Christian Biesinger <cbiesinger@google.com>
8838
8839 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8840
8ddd8e0e
SM
88412020-02-11 Simon Marchi <simon.marchi@efficios.com>
8842
8843 * configure: Re-generate.
8844
898e7f60
SM
88452020-02-11 Simon Marchi <simon.marchi@efficios.com>
8846
8847 * configure: Re-generate.
8848
58df732b
SM
88492020-02-11 Simon Marchi <simon.marchi@efficios.com>
8850
8851 * acinclude: Update warning.m4 path.
8852 * warning.m4: Move to gdbsupport.
8853
da5bd37e
TT
88542020-02-11 Tom Tromey <tromey@adacore.com>
8855
8856 * remote.c (remote_console_output): Update.
8857 * printcmd.c (printf_command): Update.
8858 * event-loop.c (gdb_wait_for_event): Update.
8859 * linux-nat.c (sigchld_handler): Update.
8860 * remote-sim.c (gdb_os_write_stdout): Update.
8861 (gdb_os_flush_stdout): Update.
8862 (gdb_os_flush_stderr): Update.
8863 (gdb_os_write_stderr): Update.
8864 * exceptions.c (print_exception): Update.
8865 * remote-fileio.c (remote_fileio_func_read): Update.
8866 (remote_fileio_func_write): Update.
8867 * tui/tui.c (tui_enable): Update.
8868 * tui/tui-interp.c (tui_interp::init): Update.
8869 * utils.c (init_page_info): Update.
8870 (putchar_unfiltered, fputc_unfiltered): Update.
8871 (gdb_flush): Update.
8872 (emit_style_escape): Update.
8873 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8874 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8875 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8876 (stderr_file::write): Update.
8877 (stderr_file::puts): Update.
8878 * ui-file.h (ui_file_isatty, ui_file_write)
8879 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8880 (ui_file_puts): Don't declare.
8881
85f0dd3c
TV
88822020-02-10 Tom de Vries <tdevries@suse.de>
8883
8884 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8885 sentinel to char *.
8886
2e927613
TV
88872020-02-09 Tom de Vries <tdevries@suse.de>
8888
8889 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8890 filename if it matches "<artificial>".
8891
6bafc845
HD
88922020-02-09 Hannes Domani <ssbssa@yahoo.de>
8893
8894 * windows-tdep.c (struct enum_value_name): New struct.
8895 (create_enum): New function.
8896 (windows_get_siginfo_type): Create and use enum types.
8897
7928d571
HD
88982020-02-09 Hannes Domani <ssbssa@yahoo.de>
8899
8900 * NEWS: Mention $_siginfo support for Windows.
8901 * windows-nat.c (handle_exception): Set siginfo_er.
8902 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8903 (windows_xfer_siginfo): New function.
8904 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8905 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8906 (init_windows_gdbarch_data): New function.
8907 (get_windows_gdbarch_data): New function.
8908 (windows_get_siginfo_type): New function.
8909 (windows_init_abi): Register windows_get_siginfo_type.
8910 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8911
6751ebae
TT
89122020-02-08 Tom Tromey <tom@tromey.com>
8913
8914 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8915 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8916 <keep>: Declare method.
8917 <m_keep>: Remove member.
8918 <~cutu_reader>: Remove.
8919 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8920 (cutu_reader::cutu_reader): Update.
8921 (cutu_reader::keep): Rename from ~cutu_reader.
8922 (process_psymtab_comp_unit, build_type_psymtabs_1)
8923 (process_skeletonless_type_unit, load_partial_comp_unit)
8924 (load_full_comp_unit, dwarf2_read_addr_index)
8925 (read_signatured_type): Update.
8926
135f5437
TT
89272020-02-08 Tom Tromey <tom@tromey.com>
8928
8929 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8930 "want_partial_unit" parameter.
8931 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8932 Inline check for DW_TAG_partial_unit.
8933 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8934
9f66ff1c
TT
89352020-02-08 Tom Tromey <tom@tromey.com>
8936
8937 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8938 read.c.
8939 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8940 read.c.
8941
c8a7a66f
TT
89422020-02-08 Tom Tromey <tom@tromey.com>
8943
8944 * dwarf2/read.c (read_address): Move to comp-unit.c.
8945 (dwarf2_rnglists_process, dwarf2_ranges_process)
8946 (read_attribute_value, dwarf_decode_lines_1)
8947 (var_decode_location, decode_locdesc): Update.
8948 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8949 read.c. Remove "cu" parameter.
8950 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8951 method.
8952
8266302d
TT
89532020-02-08 Tom Tromey <tom@tromey.com>
8954
8955 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8956 (read_indirect_line_string): Update.
8957 * dwarf2/comp-unit.c (read_offset): Remove.
8958 (read_comp_unit_head): Update.
8959 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8960 method.
8961 (read_offset): Don't declare.
8962
4057dfde
TT
89632020-02-08 Tom Tromey <tom@tromey.com>
8964
8965 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8966 * dwarf2/read.c (struct comp_unit_head): Move to
8967 dwarf2/comp-unit.h.
8968 (enum class rcuh_kind): Move to comp-unit.h.
8969 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8970 (read_comp_unit_head, error_check_comp_unit_head)
8971 (read_and_check_comp_unit_head): Move to comp-unit.c.
8972 (read_offset, dwarf_unit_type_name): Likewise.
8973 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8974 (cutu_reader::cutu_reader, read_call_site_scope)
8975 (find_partial_die, follow_die_offset): Update.
8976 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8977
24aa364d
TT
89782020-02-08 Tom Tromey <tom@tromey.com>
8979
8980 * dwarf2/read.c (read_offset_1): Move to leb.c.
8981 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8982 (dwarf_decode_macro_bytes): Update.
8983 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8984 * dwarf2/leb.h (read_offset): Declare.
8985
2c7d5afc
TT
89862020-02-08 Tom Tromey <tom@tromey.com>
8987
8988 * dwarf2/read.c (dwarf2_section_size): Remove.
8989 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8990 Update.
8991 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8992
4075cb26
TT
89932020-02-08 Tom Tromey <tom@tromey.com>
8994
8995 * dwarf2/read.c (read_initial_length): Move to leb.c.
8996 * dwarf2/leb.h (read_initial_length): Declare.
8997 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8998 handle_nonstd parameter.
8999 * dwarf2/frame.c (read_initial_length): Remove.
9000 (decode_frame_entry_1): Update.
9001
09ba997f
TT
90022020-02-08 Tom Tromey <tom@tromey.com>
9003
9004 * dwarf2/loc.c (dwarf2_find_location_expression)
9005 (dwarf_evaluate_loc_desc::get_tls_address)
9006 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9007 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9008 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9009 (dwarf2_compile_property_to_c)
9010 (dwarf2_loc_desc_get_symbol_read_needs)
9011 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9012 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9013 (loclist_describe_location, loclist_tracepoint_var_ref)
9014 (loclist_generate_c_location): Update.
9015 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9016 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9017 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9018 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9019 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9020 (dwarf2_per_cu_data::addr_size)
9021 (dwarf2_per_cu_data::ref_addr_size)
9022 (dwarf2_per_cu_data::text_offset)
9023 (dwarf2_per_cu_data::addr_type): Now methods.
9024 (per_cu_header_read_in): Make per_cu "const".
9025 (dwarf2_version): Remove.
9026 (dwarf2_per_cu_data::int_type): Now a method.
9027 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9028 (set_die_type, read_array_type, read_subrange_index_type)
9029 (read_tag_string_type, read_subrange_type): Update.
9030 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9031 offset_size, ref_addr_size, text_offset, addr_type, version,
9032 objfile, int_type, addr_sized_int_type>: Declare methods.
9033
96c738c0
TT
90342020-02-08 Tom Tromey <tom@tromey.com>
9035
9036 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9037 Move earlier.
9038
8fdd972c
TT
90392020-02-08 Tom Tromey <tom@tromey.com>
9040
9041 * dwarf2/read.h (dwarf_line_debug): Declare.
9042 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9043 * dwarf2/read.c: Move line_header code to new files.
9044 (dwarf_line_debug): No longer static.
9045 * dwarf2/line-header.c: New file.
9046 * dwarf2/line-header.h: New file.
9047
03075812
TT
90482020-02-08 Tom Tromey <tom@tromey.com>
9049
9050 * dwarf2/read.c (struct line_header) <file_full_name,
9051 file_file_name>: Return unique_xmalloc_ptr.
9052 (line_header::file_file_name): Update.
9053 (line_header::file_full_name): Update.
9054 (dw2_get_file_names_reader): Update.
9055 (macro_start_file): Update.
9056
bb822404
TT
90572020-02-08 Tom Tromey <tom@tromey.com>
9058
9059 * dwarf2/read.c (struct line_header) <file_full_name,
9060 file_file_name>: Declare methods.
9061 (dw2_get_file_names_reader): Update.
9062 (file_file_name): Now a method.
9063 (file_full_name): Likewise.
9064 (macro_start_file): Update.
9065
009b64fc
TT
90662020-02-08 Tom Tromey <tom@tromey.com>
9067
9068 * dwarf2/read.c (dwarf_always_disassemble)
9069 (show_dwarf_always_disassemble): Move to loc.c.
9070 (_initialize_dwarf2_read): Move "always-disassemble" registration
9071 to loc.c.
9072 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9073 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9074 static.
9075 (show_dwarf_always_disassemble): Move from read.c.
9076 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9077
5895093f
TT
90782020-02-08 Tom Tromey <tom@tromey.com>
9079
9080 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9081 (create_quick_file_names_table): Return htab_up.
9082 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9083 Update.
9084 * dwarf2/read.h (struct dwarf2_per_objfile)
9085 <quick_file_names_table>: Now htab_up.
9086
b3b32279
TT
90872020-02-08 Tom Tromey <tom@tromey.com>
9088
9089 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9090
1d33d811
TT
90912020-02-08 Tom Tromey <tom@tromey.com>
9092
9093 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9094 Rewrite.
9095 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9096 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9097 (abbrev_table::abbrev_table): No longer inline.
9098 (ABBREV_HASH_SIZE): Remove.
9099 (abbrev_table::m_abbrevs): Now an htab_up.
9100
86de1d91
TT
91012020-02-08 Tom Tromey <tom@tromey.com>
9102
9103 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9104 (cutu_reader): Update.
9105 (build_type_psymtabs_1): Update.
9106 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9107 (abbrev_table::alloc_abbrev): Update.
9108 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9109 (abbrev_table::read): New static method, renamed from
9110 abbrev_table_read_table.
9111 (abbrev_table::alloc_abbrev)
9112 (abbrev_table::add_abbrev): Now private.
9113 (abbrev_table::abbrev_table): Now private.
9114 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9115
0335378b
TT
91162020-02-08 Tom Tromey <tom@tromey.com>
9117
9118 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9119 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9120 htab_up.
9121
48b490f2
TT
91222020-02-08 Tom Tromey <tom@tromey.com>
9123
9124 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9125 htab_up.
9126 (lookup_dwo_unit_in_dwp): Update.
9127 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9128 on obstack.
9129
bc68fb19
TT
91302020-02-08 Tom Tromey <tom@tromey.com>
9131
9132 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9133 obstack.
9134
d15acc42
TT
91352020-02-08 Tom Tromey <tom@tromey.com>
9136
9137 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9138 line_header_hash.
9139 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9140 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9141 Change type to htab_up.
9142
eaa5fa8b
TT
91432020-02-08 Tom Tromey <tom@tromey.com>
9144
9145 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9146 htab_up. Don't allocate on obstack.
9147 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9148 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9149 Change type to htab_up.
9150
b0b6a987
TT
91512020-02-08 Tom Tromey <tom@tromey.com>
9152
9153 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9154 Change type to htab_up.
9155 * dwarf2/read.c (create_signatured_type_table_from_index)
9156 (create_signatured_type_table_from_debug_names)
9157 (create_all_type_units, add_type_unit)
9158 (lookup_dwo_signatured_type, lookup_signatured_type)
9159 (process_skeletonless_type_unit): Update.
9160 (create_debug_type_hash_table, create_debug_types_hash_table):
9161 Change type of types_htab.
9162 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9163 htab_up. Don't allocate on obstack.
9164 (create_cus_hash_table): Change type of cus_htab parameter.
9165 (struct dwo_file) <cus, tus>: Now htab_up.
9166 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9167 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9168 (queue_and_load_all_dwo_tus): Update.
9169 * dwarf2/index-write.c (write_gdbindex): Update.
9170 (write_debug_names): Update.
9171
39856def
TT
91722020-02-08 Tom Tromey <tom@tromey.com>
9173
9174 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9175 dwarf2/read.c. Remove "next" member. Add constructor ntad
9176 destructor.
9177 (struct dwarf2_per_objfile) <queue>: New member.
9178 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9179 dwarf2/read.h.
9180 (dwarf2_queue, dwarf2_queue_tail): Remove.
9181 (class dwarf2_queue_guard): Add parameter to constructor. Use
9182 DISABLE_COPY_AND_ASSIGN.
9183 <m_per_objfile>: New member.
9184 <~dwarf2_queue_guard>: Rewrite.
9185 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9186 Update.
9187 (~dwarf2_queue_item): New.
9188
3e225074
TT
91892020-02-08 Tom Tromey <tom@tromey.com>
9190
9191 * dwarf2/read.c (struct die_info) <has_children>: New member.
9192 (dw2_get_file_names_reader): Remove has_children.
9193 (dw2_get_file_names): Update.
9194 (read_cutu_die_from_dwo): Remove has_children.
9195 (cutu_reader::init_tu_and_read_dwo_dies)
9196 (cutu_reader::cutu_reader): Update.
9197 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9198 Remove has_children.
9199 (build_type_psymtabs_1, process_skeletonless_type_unit)
9200 (load_partial_comp_unit, load_full_comp_unit): Update.
9201 (create_dwo_cu_reader): Remove has_children.
9202 (create_cus_hash_table, read_die_and_children): Update.
9203 (read_full_die_1,read_full_die): Remove has_children.
9204 (read_signatured_type): Update.
9205 (class cutu_reader) <has_children>: Remove.
9206
82ca8957
TT
92072020-02-08 Tom Tromey <tom@tromey.com>
9208
9209 * dwarf2/expr.c: Rename from dwarf2expr.c.
9210 * dwarf2/expr.h: Rename from dwarf2expr.h.
9211 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9212 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9213 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9214 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9215 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9216 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9217 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9218 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9219 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9220 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9221 * dwarf2/loc.c: Rename from dwarf2loc.c.
9222 * dwarf2/loc.h: Rename from dwarf2loc.h.
9223 * dwarf2/read.c: Rename from dwarf2read.c.
9224 * dwarf2/read.h: Rename from dwarf2read.h.
9225 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9226 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9227 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9228 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9229 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9230 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9231 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9232 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9233 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9234 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9235 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9236 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9237 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9238 Update.
9239 * Makefile.in (COMMON_SFILES): Update.
9240 (HFILES_NO_SRCDIR): Update.
9241
9e35d499
TT
92422020-02-08 Tom Tromey <tom@tromey.com>
9243
9244 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9245 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9246
1eba2311
TT
92472020-02-08 Tom Tromey <tom@tromey.com>
9248
9249 * dwarf2read.h (struct die_info): Don't declare.
9250
e41c2da2
TT
92512020-02-08 Tom Tromey <tom@tromey.com>
9252
9253 * dwarf2read.h (die_info_ptr): Remove typedef.
9254
4fc6c0d5
TT
92552020-02-08 Tom Tromey <tom@tromey.com>
9256
9257 * dwarf2read.c (read_call_site_scope)
9258 (handle_data_member_location, dwarf2_add_member_fn)
9259 (mark_common_block_symbol_computed, read_common_block)
9260 (attr_to_dynamic_prop, partial_die_info::read)
9261 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9262 (dwarf2_symbol_mark_computed, set_die_type): Update.
9263 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9264 method.
9265 (attr_form_is_block): Don't declare.
9266 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9267
cd6c91b4
TT
92682020-02-08 Tom Tromey <tom@tromey.com>
9269
9270 * dwarf2read.c (dwarf2_find_base_address, )
9271 (read_call_site_scope, rust_containing_type)
9272 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9273 (handle_data_member_location, dwarf2_add_member_fn)
9274 (get_alignment, read_structure_type, process_structure_scope)
9275 (mark_common_block_symbol_computed, read_common_block)
9276 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9277 (partial_die_info::read, read_attribute_value, new_symbol)
9278 (lookup_die_type, dwarf2_get_ref_die_offset)
9279 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9280 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9281 (dwarf2_symbol_mark_computed): Update.
9282 * dwarf2/attribute.h (struct attribute) <value_as_address,
9283 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9284 methods.
9285 (value_as_address, attr_form_is_section_offset)
9286 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9287 * dwarf2/attribute.c (attribute::value_as_address)
9288 (attribute::form_is_section_offset, attribute::form_is_constant)
9289 (attribute::form_is_ref): Now methods.
9290
162dce55
TT
92912020-02-08 Tom Tromey <tom@tromey.com>
9292
9293 * dwarf2read.c (struct attribute, DW_STRING)
9294 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9295 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9296 (attr_form_is_block, attr_form_is_section_offset)
9297 (attr_form_is_constant, attr_form_is_ref): Move.
9298 * dwarf2/attribute.h: New file.
9299 * dwarf2/attribute.c: New file, from dwarf2read.c.
9300 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9301
3054dd54
TT
93022020-02-08 Tom Tromey <tom@tromey.com>
9303
9304 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9305 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9306 Move.
9307 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9308 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9309 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9310 abbrev.c.
9311 * dwarf2/abbrev.h: New file.
9312 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9313 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9314
96b79293
TT
93152020-02-08 Tom Tromey <tom@tromey.com>
9316
9317 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9318 (dwarf2_section_size, dwarf2_get_section_info)
9319 (create_signatured_type_table_from_debug_names)
9320 (create_addrmap_from_aranges, read_debug_names_from_section)
9321 (get_gdb_index_contents_from_section, read_comp_unit_head)
9322 (error_check_comp_unit_head, read_abbrev_offset)
9323 (create_debug_type_hash_table, init_cu_die_reader)
9324 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9325 (read_comp_units_from_section, create_cus_hash_table)
9326 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9327 (create_dwp_v2_section, dwarf2_rnglists_process)
9328 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9329 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9330 (read_indirect_string_from_dwz, read_addr_index_1)
9331 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9332 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9333 (fill_in_loclist_baton): Update.
9334 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9335 get_containing_section, get_bfd_owner, get_bfd_section,
9336 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9337 (dwarf2_read_section, get_section_name, get_section_file_name)
9338 (get_containing_section, get_section_bfd_owner)
9339 (get_section_bfd_section, get_section_name, get_section_file_name)
9340 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9341 declare.
9342 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9343 (dwarf2_section_info::get_bfd_owner)
9344 (dwarf2_section_info::get_bfd_section)
9345 (dwarf2_section_info::get_name)
9346 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9347 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9348 (dwarf2_section_info::read): Now methods.
9349 * dwarf-index-write.c (class debug_names): Update.
9350
2c86cff9
TT
93512020-02-08 Tom Tromey <tom@tromey.com>
9352
9353 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9354 Move to dwarf2/section.h.
9355 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9356 (get_section_bfd_section, get_section_name)
9357 (get_section_file_name, get_section_id, get_section_flags)
9358 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9359 dwarf2/section.c.
9360 * dwarf2/section.h: New file.
9361 * dwarf2/section.c: New file, from dwarf2read.c.
9362 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9363
f4382c45
TT
93642020-02-08 Tom Tromey <tom@tromey.com>
9365
9366 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9367 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9368 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9369 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9370 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9371 * dwarf2/leb.h: New file, from dwarf2read.c.
9372 * dwarf2/leb.c: New file, from dwarf2read.c.
9373 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9374 Remove.
9375 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9376 (COMMON_SFILES): Add dwarf2/leb.c.
9377
01840b7a
JB
93782020-02-08 Joel Brobecker <brobecker@adacore.com>
9379
9380 GDB 9.1 released.
9381
dfcb27e4
IB
93822020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9383
9384 PR gdb/25190:
aac66a4c
SM
9385 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9386 * gdb/remote.c (remote_console_output): Update.
9387 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9388 (ui_file_puts): ...this.
9389 * gdb/ui-file.h (ui_file_puts): Add declaration.
9390 * gdb/utils.c (emit_style_escape): Update.
9391 (flush_wrap_buffer): Update.
9392 (fputs_maybe_filtered): Update.
9393 (fputs_unfiltered): Add function.
dfcb27e4 9394
faa17681
IB
93952020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9396
aac66a4c
SM
9397 * gdb/event-loop.c (gdb_wait_for_event): Update.
9398 * gdb/printcmd.c (printf_command): Update.
9399 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9400 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9401 (gdb_os_flush_stderr): Update.
9402 * gdb/remote.c (remote_console_output): Update.
9403 * gdb/ui-file.c (gdb_flush): Rename to...
9404 (ui_file_flush): ...this.
9405 (stderr_file::write): Update.
9406 (stderr_file::puts): Update.
9407 * gdb/ui-file.h (gdb_flush): Rename to...
9408 (ui_file_flush): ...this.
9409 * gdb/utils.c (gdb_flush): Add function.
9410 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9411
5abbbe1d
TT
94122020-02-07 Tom Tromey <tromey@adacore.com>
9413
9414 PR breakpoints/24915:
9415 * source.c (find_and_open_source): Do not check basenames_may_differ.
9416
919adfe8
TT
94172020-02-07 Tom Tromey <tom@tromey.com>
9418
9419 * README: Update gdbserver documentation.
9420 * gdbserver: Move to top level.
9421 * configure.tgt (build_gdbserver): Remove.
9422 * configure.ac: Remove --enable-gdbserver.
9423 * configure: Rebuild.
9424 * Makefile.in (distclean): Don't mention gdbserver.
9425
1d5d29e7
SV
94262020-02-06 Shahab Vahedi <shahab@synopsys.com>
9427
9428 * source-cache.c (source_cache::ensure): Surround
9429 get_plain_source_lines with a try/catch.
9430 (source_cache::get_line_charpos): Get rid of try/catch
9431 and only check for the return value of "ensure".
9432 * tui/tui-source.c (tui_source_window::set_contents):
9433 Simplify "nlines" calculation.
9434
6eb1129c
SV
94352020-02-06 Shahab Vahedi <shahab@synopsys.com>
9436
9437 * MAINTAINERS (Write After Approval): Add myself.
9438
c6a42d11
CB
94392020-02-05 Christian Biesinger <cbiesinger@google.com>
9440
9441 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9442 function call.
9443
c8ecdda6
CB
94442020-02-05 Christian Biesinger <cbiesinger@google.com>
9445
9446 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9447
f6480e70
MR
94482020-02-05 Maciej W. Rozycki <macro@wdc.com>
9449
9450 * nat/riscv-linux-tdesc.h: New file.
9451 * nat/riscv-linux-tdesc.c: New file, taking code from...
9452 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9453 ... here.
9454 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9455 NATDEPFILES.
9456
dcc9fbc6
AB
94572020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9458
9459 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9460 we don't set the fake simulator ptid to the null_ptid.
9461
719546c4
SM
94622020-02-03 Simon Marchi <simon.marchi@efficios.com>
9463
9464 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9465 * gdbthread.h (class thread_info) <resumed>: Likewise.
9466 * infrun.c (resume_1): Likewise.
9467 (proceed): Likewise.
9468 (infrun_thread_stop_requested): Likewise.
9469 (stop_all_threads): Likewise.
9470 (handle_inferior_event): Likewise.
9471 (restart_threads): Likewise.
9472 (finish_step_over): Likewise.
9473 (keep_going_stepped_thread): Likewise.
9474 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9475 (linux_handle_extended_wait): Likewise.
9476 * record-btrace.c (get_thread_current_frame_id): Likewise.
9477 * record-full.c (record_full_wait_1): Likewise.
9478 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9479 * target.c (target_resume): Likewise.
9480 * thread.c (set_running_thread): Likewise.
9481
e409c542
AKS
94822020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9483
9484 * f-valprint.c (f77_print_array_1): Changed datatype of index
9485 variable to LONGEST from int to enable it to contain bound
9486 values correctly.
9487
ee98c0da
MR
94882020-02-03 Maciej W. Rozycki <macro@wdc.com>
9489
9490 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9491 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9492 offsets according to FLEN determined.
9493 (riscv_linux_nat_target::read_description): Determine FLEN
9494 dynamically.
9495 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9496 according to FLEN determined.
9497 (riscv_linux_nat_target::store_registers): Likewise.
9498
aa66aac4
SV
94992020-02-01 Shahab Vahedi <shahab@synopsys.com>
9500
9501 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9502 when reg->group is empty and reggroup is not.
9503
fd9faca8
TT
95042020-01-31 Tom Tromey <tromey@adacore.com>
9505
9506 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9507 Call beneath target's mourn_inferior after unpushing.
9508
42330a68
AB
95092020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9510
9511 PR tui/9765
9512 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9513 have enough lines to fill the screen, still return the lowest
9514 address we found.
9515
7a27a45b
AB
95162020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9517
9518 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9519 '-', '<', and '>' commands.
9520
c47f70e2
PA
95212020-01-29 Pedro Alves <palves@redhat.com>
9522 Sergio Durigan Junior <sergiodj@redhat.com>
9523
9524 * infcmd.c (construct_inferior_arguments): Assert that
9525 'argc' is greater than 0.
9526
5133a315
LM
95272020-01-29 Luis Machado <luis.machado@linaro.org>
9528
9529 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9530 (BRK_INSN_MASK): Define to 0xd4200000.
9531 (aarch64_program_breakpoint_here_p): New function.
9532 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9533 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9534 breakpoint.c.
9535 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9536 breakpoint.h
9537 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9538 call gdbarch_program_breakpoint_here_p.
9539 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9540 default_program_breakpoint_here_p, changed return type to bool and
9541 simplified.
9542 * breakpoint.h (program_breakpoint_here): Moved prototype to
9543 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9544 return type to bool.
9545 * gdbarch.c: Regenerate.
9546 * gdbarch.h: Regenerate.
9547 * gdbarch.sh (program_breakpoint_here_p): New method.
9548 * infrun.c (handle_signal_stop): Call
9549 gdbarch_program_breakpoint_here_p.
9550
168f8c6b
TT
95512020-01-26 Tom Tromey <tom@tromey.com>
9552
9553 * ctfread.c (struct ctf_fp_info): Reindent.
9554 (_initialize_ctfread): Remove.
9555
128a391f
TT
95562020-01-26 Tom Tromey <tom@tromey.com>
9557
9558 * psymtab.c (partial_map_expand_apply)
9559 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9560 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9561 (psym_print_stats, psym_expand_symtabs_for_function)
9562 (psym_map_symbol_filenames, psym_map_matching_symbols)
9563 (psym_expand_symtabs_matching)
9564 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9565 (maintenance_check_psymtabs): Use new methods.
9566 * psympriv.h (struct partial_symtab) <readin_p,
9567 get_compunit_symtab>: New methods.
9568 <readin, compunit_symtab>: Remove members.
9569 (struct standard_psymtab): New.
9570 (struct legacy_psymtab): Derive from standard_psymtab.
9571 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9572 standard_psymtab.
9573 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9574
0494dbec
TT
95752020-01-26 Tom Tromey <tom@tromey.com>
9576
9577 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9578 read_dependencies. Add assert.
9579 * psymtab.c (partial_symtab::read_dependencies): New method.
9580 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9581 method.
9582 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9583 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9584 read_dependencies.
9585 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9586 Add assert.
9587
8566b89b
TT
95882020-01-26 Tom Tromey <tom@tromey.com>
9589
9590 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9591 Call expand_psymtab.
9592 (xcoff_read_symtab): Call expand_psymtab.
9593 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9594 legacy_expand_psymtab.
9595 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9596 method.
9597 (struct legacy_psymtab) <expand_psymtab>: Implement.
9598 <legacy_expand_psymtab>: New member.
9599 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9600 (parse_partial_symbols): Set legacy_expand_psymtab.
9601 (psymtab_to_symtab_1): Change argument order. Call
9602 expand_psymtab.
9603 (new_psymtab): Set legacy_expand_psymtab.
9604 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9605 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9606 expand_psymtab.
9607 (dwarf2_psymtab::expand_psymtab): Rename from
9608 psymtab_to_symtab_1. Call expand_psymtab.
9609 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9610 (dbx_end_psymtab): Likewise.
9611 (dbx_psymtab_to_symtab_1): Change argument order. Call
9612 expand_psymtab.
9613 (dbx_read_symtab): Call expand_psymtab.
9614 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9615 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9616 (ctf_psymtab::read_symtab): Call expand_psymtab.
9617
077cbab2
TT
96182020-01-26 Tom Tromey <tom@tromey.com>
9619
9620 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9621 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9622 messages.
9623 * mdebugread.c (mdebug_read_symtab): Remove prints.
9624 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9625 assert.
9626 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9627
891813be
TT
96282020-01-26 Tom Tromey <tom@tromey.com>
9629
9630 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9631 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9632 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9633 legacy_symtab.
9634 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9635 * psymtab.c (psymtab_to_symtab): Call method.
9636 (dump_psymtab): Update.
9637 * psympriv.h (struct partial_symtab): Add virtual destructor.
9638 <read_symtab>: New method.
9639 (struct legacy_symtab): New.
9640 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9641 (struct pst_map) <pst>: Now a legacy_psymtab.
9642 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9643 (new_psymtab): Use legacy_psymtab.
9644 * dwarf2read.h (struct dwarf2_psymtab): New.
9645 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9646 * dwarf2read.c (dwarf2_create_include_psymtab)
9647 (dwarf2_build_include_psymtabs, create_type_unit_group)
9648 (create_partial_symtab, process_psymtab_comp_unit_reader)
9649 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9650 (set_partial_user): Use dwarf2_psymtab.
9651 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9652 (psymtab_to_symtab_1, process_full_comp_unit)
9653 (process_full_type_unit, dwarf2_ranges_read)
9654 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9655 (dwarf_decode_lines): Use dwarf2_psymtab.
9656 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9657 (add_address_entry_worker, write_one_signatured_type)
9658 (recursively_count_psymbols, recursively_write_psymbols)
9659 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9660 (write_debug_names): Likewise.
9661 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9662 <pst>: Now a legacy_psymtab.
9663 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9664 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9665 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9666 * ctfread.c (struct ctf_psymtab): New.
9667 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9668 ctf_psymtab.
9669 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9670 (create_partial_symtab): Return a ctf_psymtab.
9671 (scan_partial_symbols): Update.
9672
c3693a1d
TT
96732020-01-26 Tom Tromey <tom@tromey.com>
9674
9675 * xcoffread.c (xcoff_start_psymtab): Use new.
9676 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9677 renamed from start_psymtab_common.
9678 * psympriv.h (struct partial_symtab): Add new constructor.
9679 (start_psymtab_common): Don't declare.
9680 * mdebugread.c (parse_partial_symbols): Use new.
9681 * dwarf2read.c (create_partial_symtab): Use new.
9682 * dbxread.c (start_psymtab): Use new.
9683 * ctfread.c (create_partial_symtab): Use new.
9684
32caafd0
TT
96852020-01-26 Tom Tromey <tom@tromey.com>
9686
9687 * xcoffread.c (xcoff_end_psymtab): Use new.
9688 * psymtab.c (start_psymtab_common): Use new.
9689 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9690 Update.
9691 * psympriv.h (struct partial_symtab): Add parameters to
9692 constructor. Don't inline.
9693 (allocate_psymtab): Don't declare.
9694 * mdebugread.c (new_psymtab): Use new.
9695 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9696 * dbxread.c (dbx_end_psymtab): Use new.
9697
abaa2f23
TT
96982020-01-26 Tom Tromey <tom@tromey.com>
9699
9700 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9701 allocate_psymtab. Update documentation.
9702 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9703 allocate_psymtab. Do not use new.
9704 (allocate_psymtab): Use new. Update.
9705
6d94535f
TT
97062020-01-26 Tom Tromey <tom@tromey.com>
9707
9708 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9709 * psymtab.c (psym_print_stats): Update.
9710 * psympriv.h (struct partial_symtab) <readin,
9711 psymtabs_addrmap_supported, anonymous>: Now bool.
9712 * mdebugread.c (psymtab_to_symtab_1): Update.
9713 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9714 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9715 (process_full_comp_unit, process_full_type_unit): Update.
9716 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9717 * ctfread.c (psymtab_to_symtab): Update.
9718
6f17252b
TT
97192020-01-26 Tom Tromey <tom@tromey.com>
9720
9721 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9722 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9723 * psymtab.c (psymtab_storage): Delete psymtabs.
9724 (psymtab_storage::allocate_psymtab): Use new.
9725 (psymtab_storage::discard_psymtab): Use delete.
9726 * psympriv.h (struct partial_symtab): Add constructor and
9727 initializers.
9728
f6f1cebc
TT
97292020-01-26 Tom Tromey <tom@tromey.com>
9730
9731 * machoread.c: Do not include psympriv.h.
9732
e47e48f6
PW
97332020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9734
9735 * NEWS: Mention the new option and the set/show commands.
9736
a2fedca9
PW
97372020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9738
9739 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9740 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9741 (validate_exec_file): New variables, enums, functions.
9742 (exec_file_locate_attach, print_section_info): Style the filenames.
9743 (_initialize_exec): Install show_exec_file_mismatch_command and
9744 set_exec_file_mismatch_command.
9745 * gdbcore.h (validate_exec_file): Declare.
9746 * infcmd.c (attach_command): Call validate_exec_file.
9747 * remote.c ( remote_target::remote_add_inferior): Likewise.
9748
7ffa82e1
AB
97492020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9750
9751 * frame.c (find_frame_sal): Move call to get_next_frame into more
9752 inner scope.
9753 * inline-frame.c (inilne_state) <inline_state>: Update argument
9754 types.
9755 (inilne_state) <skipped_symbol>: Rename to...
9756 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9757 (skip_inline_frames): Build vector of skipped symbols and use this
9758 to reate the inline_state.
9759 (inline_skipped_symbol): Add a comment and some assertions, fetch
9760 skipped symbol from the list.
9761
3d92a3e3
AB
97622020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9763
9764 * buildsym.c (lte_is_less_than): Delete.
9765 (buildsym_compunit::end_symtab_with_blockvector): Create local
9766 lambda function to sort line table entries, and use
9767 std::stable_sort instead of std::sort.
9768 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9769 markers when looking for a previous line.
9770
94a72be7
AB
97712020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9772
9773 * dwarf2read.c (lnp_state_machine::record_line): Include
9774 end_sequence parameter in debug print out. Record the line if we
9775 are at an end_sequence marker even if it's not the start of a
9776 statement.
9777 * symmisc.c (maintenance_print_one_line_table): Print end of
9778 sequence markers with 'END' not '0'.
9779
53af73bf
PA
97802020-01-24 Pedro Alves <palves@redhat.com>
9781
9782 PR gdb/25410
9783 * thread.c (scoped_restore_current_thread::restore): Use
9784 switch_to_inferior_no_thread.
9785 * exec.c: Include "progspace-and-thread.h".
9786 (add_target_sections, remove_target_sections):
9787 scoped_restore_current_pspace_and_thread instead of
9788 scoped_restore_current_thread.
9789 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9790 and aspace to the inferior before calling clone_program_space.
9791 Remove stale comment.
9792
3050c6f4
CB
97932020-01-24 Christian Biesinger <cbiesinger@google.com>
9794
9795 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9796 (arm_netbsd_nat_target::fetch_registers): ...this.
9797 (arm_nbsd_nat_target::store_registers): Rename to...
9798 (arm_netbsd_nat_target::store_registers): ...this.
9799
73685c7e
CB
98002020-01-24 Christian Biesinger <cbiesinger@google.com>
9801
9802 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9803 register_t.
9804
89203d40
CB
98052020-01-24 Christian Biesinger <cbiesinger@google.com>
9806
9807 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9808 Update comment.
9809 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9810 Likewise.
9811 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9812 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9813 the correct replacement (iterate_over_regset_sections).
9814 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9815 Update comment.
9816
1ba1ac88
AB
98172020-01-24 Graham Markall <graham.markall@embecosm.com>
9818
9819 PR gdb/23718
9820 * gdb/python/python.c (execute_gdb_command): Call
9821 async_enable_stdin in catch block.
9822
f3364a6d
AB
98232020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9824
9825 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9826 SWITCH_THRU_ALL_UIS.
9827
733d0a67
AB
98282020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9829
9830 PR tui/9765
9831 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9832 comment, add extra parameter, and update to store previous symbol
9833 when appropriate.
9834 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9835 add extra parameter.
9836 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9837 remove unneeded parameter, add try/catch around gdb_print_insn,
9838 rewrite to add items to asm_lines vector.
9839 (tui_find_backward_disassembly_start_address): New function.
9840 (tui_find_disassembly_address): Updated throughout.
9841 (tui_disasm_window::set_contents): Update for changes to
9842 tui_disassemble.
9843 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9844 number of lines to scroll.
9845
b3b3bada
SM
98462020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9847
9848 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9849 (SECT_OFF_DATA): Likewise.
9850 (SECT_OFF_RODATA): Likewise.
9851 (SECT_OFF_TEXT): Likewise.
9852 (SECT_OFF_BSS): Likewise.
9853 (struct objfile) <text_section_offset, data_section_offset>: New
9854 methods.
9855 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9856 objfile::text_section_offset.
9857 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9858 * coffread.c (coff_symtab_read): Likewise.
9859 (enter_linenos): Likewise.
9860 (process_coff_symbol): Likewise.
9861 * ctfread.c (get_objfile_text_range): Likewise.
9862 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9863 Use objfile::data_section_offset.
9864 * dwarf2-frame.c (execute_cfa_program): Use
9865 objfile::text_section_offset.
9866 (dwarf2_frame_find_fde): Likewise.
9867 * dwarf2read.c (create_addrmap_from_index): Likewise.
9868 (create_addrmap_from_aranges): Likewise.
9869 (dw2_find_pc_sect_compunit_symtab): Likewise.
9870 (process_psymtab_comp_unit_reader): Likewise.
9871 (add_partial_symbol): Likewise.
9872 (add_partial_subprogram): Likewise.
9873 (process_full_comp_unit): Likewise.
9874 (read_file_scope): Likewise.
9875 (read_func_scope): Likewise.
9876 (read_lexical_block_scope): Likewise.
9877 (read_call_site_scope): Likewise.
9878 (dwarf2_rnglists_process): Likewise.
9879 (dwarf2_ranges_process): Likewise.
9880 (dwarf2_ranges_read): Likewise.
9881 (dwarf_decode_lines_1): Likewise.
9882 (new_symbol): Likewise.
9883 (dwarf2_fetch_die_loc_sect_off): Likewise.
9884 (dwarf2_per_cu_text_offset): Likewise.
9885 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9886 * hppa-tdep.c (read_unwind_info): Likewise.
9887 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9888 * psympriv.h (struct partial_symtab): Likewise.
9889 * psymtab.c (find_pc_sect_psymtab): Likewise.
9890 * solib-svr4.c (enable_break): Likewise.
9891 * stap-probe.c (relocate_address): Use
9892 objfile::data_section_offset.
9893 * xcoffread.c (enter_line_range): Use
9894 objfile::text_section_offset.
9895 (read_xcoff_symtab): Likewise.
9896
ab53f382
SM
98972020-01-23 Simon Marchi <simon.marchi@efficios.com>
9898
9899 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9900 declaration to narrower scopes.
9901
e7eee665
SM
99022020-01-23 Simon Marchi <simon.marchi@efficios.com>
9903
9904 * darwin-nat.h (struct darwin_exception_msg, enum
9905 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9906 Move up.
9907 (class darwin_nat_target) <wait_1, check_new_threads,
9908 decode_exception_message, decode_message, stop_inferior,
9909 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9910 * darwin-nat.c (darwin_check_new_threads): Rename to...
9911 (darwin_nat_target::check_new_threads): ... this.
9912 (darwin_suspend_inferior_it): Remove.
9913 (darwin_decode_exception_message): Rename to...
9914 (darwin_nat_target::decode_exception_message): ... this.
9915 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9916 (darwin_decode_message): Rename to...
9917 (darwin_nat_target::decode_message): ... this.
9918 (cancel_breakpoint): Rename to...
9919 (darwin_nat_target::cancel_breakpoint): ... this.
9920 (darwin_wait): Rename to...
9921 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9922 instead of iterate_over_inferiors.
9923 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9924 (darwin_stop_inferior): Rename to...
9925 (darwin_nat_target::stop_inferior): ... this.
9926 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9927 (darwin_init_thread_list): Rename to...
9928 (darwin_nat_target::init_thread_list): ... this.
9929 (darwin_ptrace_him): Rename to...
9930 (darwin_nat_target::ptrace_him): ... this.
9931 (darwin_nat_target::create_inferior): Pass lambda function to
9932 fork_inferior.
9933 (darwin_nat_target::detach): Call stop_inferior instead of
9934 darwin_stop_inferior.
9935 * fork-inferior.h (fork_inferior): Change init_trace_fun
9936 parameter to gdb::function_view.
9937 * fork-inferior.c (fork_inferior): Likewise.
9938
c162ed3e
HD
99392020-01-23 Hannes Domani <ssbssa@yahoo.de>
9940
9941 * i386-cygwin-tdep.c (core_process_module_section): Update.
9942 * windows-nat.c (struct lm_info_windows): Add text_offset.
9943 (windows_xfer_shared_libraries): Update.
9944 * windows-tdep.c (windows_xfer_shared_library):
9945 Add text_offset_cached argument.
9946 * windows-tdep.h (windows_xfer_shared_library): Update.
9947
a1237872
SM
99482020-01-21 Simon Marchi <simon.marchi@efficios.com>
9949
9950 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9951
b3ee6dd9
SM
99522020-01-21 Simon Marchi <simon.marchi@efficios.com>
9953
9954 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9955 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9956 replace with range-based for.
9957 (gdbsim_interrupt_inferior): Remove.
9958 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9959 with a range-based for. Inline code from
9960 gdbsim_interrupt_inferior.
9961
f9fac3c8
SM
99622020-01-21 Simon Marchi <simon.marchi@efficios.com>
9963
9964 * infrun.c (proceed): Fix indentation.
9965
f6474de9
TT
99662020-01-21 Tom Tromey <tromey@adacore.com>
9967
9968 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9969 * python/python.c (python_extension_ops): Update.
9970 (gdbpy_colorize): New function.
9971 * python/lib/gdb/__init__.py (colorize): New function.
9972 * extension.h (ext_lang_colorize): Declare.
9973 * extension.c (ext_lang_colorize): New function.
9974 * extension-priv.h (struct extension_language_ops) <colorize>: New
9975 member.
9976 * cli/cli-style.c (_initialize_cli_style): Update help text.
9977
f0c702d4
LM
99782020-01-21 Luis Machado <luis.machado@linaro.org>
9979
9980 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9981 <cond>: Change type to bool.
9982 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9983 (aarch64_displaced_step_cb): Likewise.
9984 (aarch64_displaced_step_tb): Likewise.
9985
1ab139e5
LM
99862020-01-21 Luis Machado <luis.machado@linaro.org>
9987
9988 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9989 output.
9990
0c271889
LM
99912020-01-21 Luis Machado <luis.machado@linaro.org>
9992
9993 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9994 <pc_adjust>: Adjust the documentation.
9995 (aarch64_displaced_step_fixup): Check if PC really moved before
9996 adjusting it.
9997
4d89c1c7
TT
99982020-01-19 Tom Tromey <tom@tromey.com>
9999
10000 * disasm.c (~gdb_disassembler): New destructor.
10001 (gdb_buffered_insn_length): Call disassemble_free_target.
10002 * disasm.h (class gdb_disassembler): Declare destructor. Use
10003 DISABLE_COPY_AND_ASSIGN.
10004
c0ab21c2
TT
100052020-01-19 Tom Tromey <tom@tromey.com>
10006
10007 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10008 (die_reader_func_ftype): Remove.
10009 (cutu_reader): New class.
10010 (dw2_get_file_names_reader): Remove "data" parameter.
10011 (dw2_get_file_names): Use cutu_reader.
10012 (create_debug_type_hash_table): Update.
10013 (read_cutu_die_from_dwo): Update comment.
10014 (lookup_dwo_unit): Add dwo_name parameter.
10015 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10016 die_reader_func_ftype and data parameters.
10017 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10018 Remove die_reader_func_ftype and data parameters.
10019 (~cutu_reader): New; from init_cutu_and_read_dies.
10020 (cutu_reader::cutu_reader): Rename from
10021 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10022 and data parameters.
10023 (init_cutu_and_read_dies_simple): Remove.
10024 (struct process_psymtab_comp_unit_data): Remove.
10025 (process_psymtab_comp_unit_reader): Remove data parameter; add
10026 want_partial_unit and pretend_language parameters.
10027 (process_psymtab_comp_unit): Use cutu_reader.
10028 (build_type_psymtabs_reader): Remove data parameter.
10029 (build_type_psymtabs_1): Use cutu_reader.
10030 (process_skeletonless_type_unit): Likewise.
10031 (load_partial_comp_unit_reader): Remove.
10032 (load_partial_comp_unit): Use cutu_reader.
10033 (load_full_comp_unit_reader): Remove.
10034 (load_full_comp_unit): Use cutu_reader.
10035 (struct create_dwo_cu_data): Remove.
10036 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10037 dwo_unit parameters.
10038 (create_cus_hash_table): Use cutu_reader.
10039 (struct dwarf2_read_addr_index_data): Remove.
10040 (dwarf2_read_addr_index_reader): Remove.
10041 (dwarf2_read_addr_index): Use cutu_reader.
10042 (read_signatured_type_reader): Remove.
10043 (read_signatured_type): Use cutu_reader.
10044
45bbae5c
TT
100452020-01-19 Tom Tromey <tom@tromey.com>
10046
10047 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10048 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10049 (tui_wrefresh): Declare.
10050 * tui/tui-wingeneral.c (suppress_output): New global.
10051 (tui_suppress_output, ~tui_suppress_output): New constructor and
10052 destructor.
10053 (tui_wrefresh): New function.
10054 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10055 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10056 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10057 method.
10058 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10059 tui_wrefresh.
10060 (tui_data_window::no_refresh): New method.
10061 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10062 (tui_reg_command): Use tui_suppress_output
10063 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10064 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10065 method.
10066 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10067
4f13c1c0
TT
100682020-01-19 Tom Tromey <tom@tromey.com>
10069
10070 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10071 Handle case where symtab is null.
10072
fa47e446
SM
100732020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10074
10075 * linux-fork.c (one_fork_p): Simplify.
10076
26f42329
SM
100772020-01-17 Simon Marchi <simon.marchi@efficios.com>
10078
10079 * top.c (struct qt_args): Remove.
10080 (kill_or_detach): Change return type to void, replace `void *`
10081 parameter with a proper one.
10082 (print_inferior_quit_action): Likewise.
10083 (quit_confirm): Use range-based for loop to iterate over inferiors.
10084 (quit_force): Likewise.
10085
a9ac81b1
SM
100862020-01-17 Simon Marchi <simon.marchi@efficios.com>
10087
10088 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10089 `void *` parameter with proper parameters.
10090 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10091 (print_one_inferior): Change return type to void, replace `void *`
10092 parameter with proper parameters.
10093 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10094 inferiors.
10095 (get_other_inferior): Remove.
10096 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10097 inferiors.
10098
788eca49
SM
100992020-01-17 Simon Marchi <simon.marchi@efficios.com>
10100
10101 * mi/mi-interp.c (report_initial_inferior): Remove.
10102 (mi_interp::init): Use range-based for to iterate over inferiors.
10103
d9bc85b6
SM
101042020-01-17 Simon Marchi <simon.marchi@efficios.com>
10105
10106 * python/py-inferior.c (build_inferior_list): Remove.
10107 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10108
40c94099
CB
101092020-01-16 Christian Biesinger <cbiesinger@google.com>
10110
10111 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10112 (btrace_stitch_trace): Likewise.
10113 * charset.c (intermediate_encoding): Likewise (vaild).
10114 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10115 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10116 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10117
e0cdfe3c
HD
101182020-01-16 Hannes Domani <ssbssa@yahoo.de>
10119
10120 * windows-tdep.c (windows_get_tlb_type):
10121 Add rtl_user_process_parameters type.
10122
790f1718 101232020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10124 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10125
10126 PR build/24805
10127 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10128 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10129 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10130 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10131 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10132 (ps_plog): Redeclare exported functions with default visibility.
10133
3112ed97
NA
101342020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10135
10136 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10137 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10138
8dc3273e
SM
101392020-01-15 Simon Marchi <simon.marchi@efficios.com>
10140
10141 * infcmd.c (post_create_inferior): Use get_thread_regcache
10142 instead of get_current_regcache.
10143
ff47f4f0
TT
101442020-01-14 Tom Tromey <tom@tromey.com>
10145
10146 PR symtab/12535:
10147 * python/python.c (gdbpy_decode_line): Treat empty string the same
10148 as no argument.
10149
975f45b7
TT
101502020-01-14 Tom Tromey <tom@tromey.com>
10151
10152 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10153
25e57356
TT
101542020-01-14 Tom Tromey <tom@tromey.com>
10155
10156 * nat/linux-btrace.c: Don't include <config.h>.
10157 * nat/linux-ptrace.c: Don't include <config.h>.
10158 * nat/x86-linux-dregs.c: Don't include <config.h>.
10159
05ea2a05
TT
101602020-01-14 Tom Tromey <tom@tromey.com>
10161
10162 * configure: Rebuild.
10163 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10164
01027315
TT
101652020-01-14 Tom Tromey <tom@tromey.com>
10166
10167 * nat/x86-linux-dregs.c: Include configh.h.
10168 * nat/linux-ptrace.c: Include configh.h.
10169 * nat/linux-btrace.c: Include configh.h.
10170 * defs.h: Include config.h, bfd.h.
10171 * configure.ac: Don't source common.host.
10172 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10173 * configure: Rebuild.
10174 * acinclude.m4: Update path.
10175 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10176 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10177 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10178 (CLIBS): Add LIBSUPPORT.
10179 (CDEPS): Likewise.
10180 (COMMON_SFILES): Remove gdbsupport files.
10181 (HFILES_NO_SRCDIR): Likewise.
10182 (stamp-version): Update path to create-version.sh.
10183 (ALLDEPFILES): Remove gdbsupport files.
10184
b2ceabe8
TT
101852020-01-14 Tom Tromey <tom@tromey.com>
10186
10187 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10188 USE_WIN32API when needed.
10189 * configure.ac (USE_WIN32API): Don't define.
10190 (WIN32LIBS): Use WIN32APILIBS.
10191 * configure: Rebuild.
10192
25c51f71
TT
101932020-01-14 Tom Tromey <tom@tromey.com>
10194
10195 * configure: Rebuild.
10196 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10197
717c684d
BE
101982020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10199
10200 * skip.c (skip_function_command): Make skip w/o arguments use the
10201 name of the inlined function if pc is inside any inlined function.
10202
7da6a5b9
LM
102032020-01-14 Luis Machado <luis.machado@linaro.org>
10204
10205 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10206 * infrun.c (resume_1): Likewise.
10207 (handle_inferior_event): Remove stale comment.
10208 * linux-nat.c (linux_nat_target::resume): Update comments.
10209 (save_stop_reason): Likewise.
10210 (linux_nat_filter_event): Likewise.
10211 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10212
44e4c775
AB
102132020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10214
10215 * elfread.c (record_minimal_symbol): Set section index to 0 for
10216 non-allocatable sections.
10217
18a8505e
AT
10218
102192020-01-13 Ali Tamur <tamur@google.com>
10220
10221 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10222 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10223 to gdb::optional. Update comments.
10224 (dwo_file): Update comments.
10225 (read_attribute): Update API to take an additional out parameter,
10226 need_reprocess. This is used to mark attributes that need other
10227 attributes (e.g. str_offsets_base) for correct computation which may not
10228 have been read yet.
10229 (read_attribute_reprocess): New function declaration.
10230 (read_addr_index): Likewise.
10231 (read_dwo_str_index): Likewise.
10232 (read_stub_str_index): Likewise.
10233 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10234 (lookup_addr_base): New function definition.
10235 (lookup_ranges_base): Likewise.
10236 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10237 lookup_ranges_base.
10238 (init_cutu_and_read_dies): Update comments.
10239 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10240 unit. This is used to inherit parent's str_offsets_base and addr_base.
10241 Update comments.
10242 (init_cutu_and_read_dies_simple): Reflect API changes.
10243 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10244 (create_cus_hash_table): Change API to take parent compile unit.
10245 Reflect API changes.
10246 (open_and_init_dwo_file): Reflect API changes.
10247 (dwarf2_get_pc_bounds): Update comments.
10248 (dwarf2_record_block_ranges): Likewise.
10249 (read_full_die_1): Change implementation to reprocess attributes that
10250 need str_offsets_base and addr_base.
10251 (partial_die_info::read): Likewise.
10252 (read_attribute_reprocess): New function definition.
10253 (read_attribute_value): Change API to take an additional out parameter,
10254 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10255 when a non-dwo compile unit has index based attributes.
10256 (read_attribute): Reflect API changes.
10257 (read_addr_index_1): Reflect API changes. Update comments.
10258 (dwarf2_read_addr_index_data): Reflect API changes.
10259 (dwarf2_read_addr_index): Likewise.
10260 (read_str_index): Change API and implementation. This becomes a helper
10261 to be used by the new string index related methods. Update error
10262 message and comments.
10263 (read_dwo_str_index): New function definition.
10264 (read_stub_str_index): Likewise.
10265 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10266 * symfile.h (dwarf2_debug_sections): Likewise.
10267 * xcoffread.c (dwarf2_debug_sections): Likewise.
10268
0cac9354
SM
102692020-01-13 Simon Marchi <simon.marchi@efficios.com>
10270
10271 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10272 core_reg_sect type to gdb_byte *.
10273 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10274 * cris-tdep.c (fetch_core_registers): Likewise.
10275 * corelow.c (core_target::get_core_register_section): Change
10276 type of `contents` to gdb::byte_vector.
10277
9a6d629c
AB
102782020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10279
10280 * tui/tui-wingeneral.c (box_win): Position the title in the center
10281 of the border.
10282
d8b2f9e3
SM
102832020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10284
10285 * corelow.c (core_target::get_core_register_section): Use
10286 std::vector instead of alloca.
10287
bb564c58
SM
102882020-01-13 Simon Marchi <simon.marchi@efficios.com>
10289
10290 * warning.m4: Add -Wmissing-declarations to build_warnings.
10291 * configure: Re-generate.
10292
6b366111
SM
102932020-01-13 Simon Marchi <simon.marchi@efficios.com>
10294
10295 * python/python.c (init__gdb_module): Add declaration.
10296
6c265988
SM
102972020-01-13 Simon Marchi <simon.marchi@efficios.com>
10298
10299 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10300 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10301 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10302 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10303 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10304 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10305 * ada-exp.y (_initialize_ada_exp): Add declaration.
10306 * ada-lang.c (_initialize_ada_language): Add declaration.
10307 * ada-tasks.c (_initialize_tasks): Add declaration.
10308 * agent.c (_initialize_agent): Add declaration.
10309 * aix-thread.c (_initialize_aix_thread): Add declaration.
10310 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10311 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10312 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10313 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10314 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10315 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10316 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10317 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10318 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10319 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10320 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10321 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10322 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10323 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10324 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10325 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10326 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10327 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10328 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10329 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10330 * annotate.c (_initialize_annotate): Add declaration.
10331 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10332 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10333 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10334 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10335 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10336 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10337 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10338 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10339 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10340 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10341 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10342 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10343 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10344 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10345 * auto-load.c (_initialize_auto_load): Add declaration.
10346 * auxv.c (_initialize_auxv): Add declaration.
10347 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10348 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10349 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10350 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10351 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10352 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10353 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10354 * breakpoint.c (_initialize_breakpoint): Add declaration.
10355 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10356 * btrace.c (_initialize_btrace): Add declaration.
10357 * charset.c (_initialize_charset): Add declaration.
10358 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10359 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10360 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10361 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10362 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10363 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10364 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10365 * coffread.c (_initialize_coffread): Add declaration.
10366 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10367 * compile/compile.c (_initialize_compile): Add declaration.
10368 * complaints.c (_initialize_complaints): Add declaration.
10369 * completer.c (_initialize_completer): Add declaration.
10370 * copying.c (_initialize_copying): Add declaration.
10371 * corefile.c (_initialize_core): Add declaration.
10372 * corelow.c (_initialize_corelow): Add declaration.
10373 * cp-abi.c (_initialize_cp_abi): Add declaration.
10374 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10375 * cp-support.c (_initialize_cp_support): Add declaration.
10376 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10377 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10378 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10379 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10380 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10381 * ctfread.c (_initialize_ctfread): Add declaration.
10382 * d-lang.c (_initialize_d_language): Add declaration.
10383 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10384 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10385 * dbxread.c (_initialize_dbxread): Add declaration.
10386 * dcache.c (_initialize_dcache): Add declaration.
10387 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10388 * disasm.c (_initialize_disasm): Add declaration.
10389 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10390 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10391 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10392 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10393 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10394 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10395 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10396 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10397 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10398 * elfread.c (_initialize_elfread): Add declaration.
10399 * exec.c (_initialize_exec): Add declaration.
10400 * extension.c (_initialize_extension): Add declaration.
10401 * f-lang.c (_initialize_f_language): Add declaration.
10402 * f-valprint.c (_initialize_f_valprint): Add declaration.
10403 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10404 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10405 * filesystem.c (_initialize_filesystem): Add declaration.
10406 * findcmd.c (_initialize_mem_search): Add declaration.
10407 * findvar.c (_initialize_findvar): Add declaration.
10408 * fork-child.c (_initialize_fork_child): Add declaration.
10409 * frame-base.c (_initialize_frame_base): Add declaration.
10410 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10411 * frame.c (_initialize_frame): Add declaration.
10412 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10413 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10414 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10415 * gcore.c (_initialize_gcore): Add declaration.
10416 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10417 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10418 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10419 * gdbarch.c (_initialize_gdbarch): Add declaration.
10420 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10421 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10422 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10423 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10424 * go-lang.c (_initialize_go_language): Add declaration.
10425 * go32-nat.c (_initialize_go32_nat): Add declaration.
10426 * guile/guile.c (_initialize_guile): Add declaration.
10427 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10428 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10429 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10430 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10431 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10432 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10433 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10434 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10435 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10436 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10437 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10438 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10439 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10440 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10441 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10442 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10443 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10444 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10445 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10446 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10447 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10448 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10449 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10450 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10451 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10452 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10453 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10454 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10455 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10456 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10457 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10458 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10459 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10460 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10461 * infcall.c (_initialize_infcall): Add declaration.
10462 * infcmd.c (_initialize_infcmd): Add declaration.
10463 * inflow.c (_initialize_inflow): Add declaration.
10464 * infrun.c (_initialize_infrun): Add declaration.
10465 * interps.c (_initialize_interpreter): Add declaration.
10466 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10467 * jit.c (_initialize_jit): Add declaration.
10468 * language.c (_initialize_language): Add declaration.
10469 * linux-fork.c (_initialize_linux_fork): Add declaration.
10470 * linux-nat.c (_initialize_linux_nat): Add declaration.
10471 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10472 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10473 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10474 * m2-lang.c (_initialize_m2_language): Add declaration.
10475 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10476 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10477 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10478 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10479 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10480 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10481 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10482 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10483 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10484 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10485 * machoread.c (_initialize_machoread): Add declaration.
10486 * macrocmd.c (_initialize_macrocmd): Add declaration.
10487 * macroscope.c (_initialize_macroscope): Add declaration.
10488 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10489 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10490 * maint.c (_initialize_maint_cmds): Add declaration.
10491 * mdebugread.c (_initialize_mdebugread): Add declaration.
10492 * memattr.c (_initialize_mem): Add declaration.
10493 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10494 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10495 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10496 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10497 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10498 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10499 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10500 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10501 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10502 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10503 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10504 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10505 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10506 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10507 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10508 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10509 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10510 * mipsread.c (_initialize_mipsread): Add declaration.
10511 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10512 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10513 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10514 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10515 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10516 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10517 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10518 * nto-procfs.c (_initialize_procfs): Add declaration.
10519 * objc-lang.c (_initialize_objc_language): Add declaration.
10520 * observable.c (_initialize_observer): Add declaration.
10521 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10522 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10523 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10524 * osabi.c (_initialize_gdb_osabi): Add declaration.
10525 * osdata.c (_initialize_osdata): Add declaration.
10526 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10527 * parse.c (_initialize_parse): Add declaration.
10528 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10529 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10530 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10531 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10532 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10533 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10534 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10535 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10536 * printcmd.c (_initialize_printcmd): Add declaration.
10537 * probe.c (_initialize_probe): Add declaration.
10538 * proc-api.c (_initialize_proc_api): Add declaration.
10539 * proc-events.c (_initialize_proc_events): Add declaration.
10540 * proc-service.c (_initialize_proc_service): Add declaration.
10541 * procfs.c (_initialize_procfs): Add declaration.
10542 * producer.c (_initialize_producer): Add declaration.
10543 * psymtab.c (_initialize_psymtab): Add declaration.
10544 * python/python.c (_initialize_python): Add declaration.
10545 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10546 * record-btrace.c (_initialize_record_btrace): Add declaration.
10547 * record-full.c (_initialize_record_full): Add declaration.
10548 * record.c (_initialize_record): Add declaration.
10549 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10550 * regcache.c (_initialize_regcache): Add declaration.
10551 * reggroups.c (_initialize_reggroup): Add declaration.
10552 * remote-notif.c (_initialize_notif): Add declaration.
10553 * remote-sim.c (_initialize_remote_sim): Add declaration.
10554 * remote.c (_initialize_remote): Add declaration.
10555 * reverse.c (_initialize_reverse): Add declaration.
10556 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10557 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10558 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10559 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10560 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10561 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10562 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10563 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10564 Add declaration.
10565 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10566 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10567 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10568 * rust-exp.y (_initialize_rust_exp): Add declaration.
10569 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10570 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10571 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10572 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10573 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10574 * score-tdep.c (_initialize_score_tdep): Add declaration.
10575 * ser-go32.c (_initialize_ser_dos): Add declaration.
10576 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10577 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10578 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10579 * ser-uds.c (_initialize_ser_socket): Add declaration.
10580 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10581 * serial.c (_initialize_serial): Add declaration.
10582 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10583 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10584 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10585 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10586 * skip.c (_initialize_step_skip): Add declaration.
10587 * sol-thread.c (_initialize_sol_thread): Add declaration.
10588 * solib-aix.c (_initialize_solib_aix): Add declaration.
10589 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10590 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10591 * solib-frv.c (_initialize_frv_solib): Add declaration.
10592 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10593 * solib-target.c (_initialize_solib_target): Add declaration.
10594 * solib.c (_initialize_solib): Add declaration.
10595 * source-cache.c (_initialize_source_cache): Add declaration.
10596 * source.c (_initialize_source): Add declaration.
10597 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10598 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10599 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10600 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10601 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10602 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10603 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10604 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10605 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10606 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10607 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10608 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10609 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10610 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10611 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10612 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10613 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10614 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10615 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10616 * stabsread.c (_initialize_stabsread): Add declaration.
10617 * stack.c (_initialize_stack): Add declaration.
10618 * stap-probe.c (_initialize_stap_probe): Add declaration.
10619 * std-regs.c (_initialize_frame_reg): Add declaration.
10620 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10621 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10622 * symfile.c (_initialize_symfile): Add declaration.
10623 * symmisc.c (_initialize_symmisc): Add declaration.
10624 * symtab.c (_initialize_symtab): Add declaration.
10625 * target.c (_initialize_target): Add declaration.
10626 * target-connection.c (_initialize_target_connection): Add
10627 declaration.
10628 * target-dcache.c (_initialize_target_dcache): Add declaration.
10629 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10630 * thread.c (_initialize_thread): Add declaration.
10631 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10632 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10633 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10634 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10635 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10636 * tracectf.c (_initialize_ctf): Add declaration.
10637 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10638 * tracefile.c (_initialize_tracefile): Add declaration.
10639 * tracepoint.c (_initialize_tracepoint): Add declaration.
10640 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10641 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10642 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10643 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10644 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10645 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10646 * tui/tui.c (_initialize_tui): Add declaration.
10647 * typeprint.c (_initialize_typeprint): Add declaration.
10648 * ui-style.c (_initialize_ui_style): Add declaration.
10649 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10650 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10651 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10652 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10653 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10654 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10655 * unittests/filtered_iterator-selftests.c
10656 (_initialize_filtered_iterator_selftests): Add declaration.
10657 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10658 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10659 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10660 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10661 * unittests/main-thread-selftests.c
10662 (_initialize_main_thread_selftests): Add declaration.
10663 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10664 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10665 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10666 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10667 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10668 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10669 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10670 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10671 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10672 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10673 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10674 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10675 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10676 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10677 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10678 declaration.
10679 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10680 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10681 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10682 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10683 * user-regs.c (_initialize_user_regs): Add declaration.
10684 * utils.c (_initialize_utils): Add declaration.
10685 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10686 * valops.c (_initialize_valops): Add declaration.
10687 * valprint.c (_initialize_valprint): Add declaration.
10688 * value.c (_initialize_values): Add declaration.
10689 * varobj.c (_initialize_varobj): Add declaration.
10690 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10691 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10692 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10693 * windows-nat.c (_initialize_windows_nat): Add declaration.
10694 (_initialize_check_for_gdb_ini): Add declaration.
10695 (_initialize_loadable): Add declaration.
10696 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10697 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10698 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10699 * xcoffread.c (_initialize_xcoffread): Add declaration.
10700 * xml-support.c (_initialize_xml_support): Add declaration.
10701 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10702 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10703 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10704 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10705
e2de1eec
SM
107062020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10707
10708 * regformats/regdat.sh: Generate declaration for init function.
10709
e0037b4c
SM
107102020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10711
10712 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10713 up.
10714 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10715 close_one_inferior>: New methods.
10716 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10717 pass down target to find_inferior_pid.
10718 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10719 Pass down target to find_inferior_ptid.
10720 (gdbsim_target::create_inferior): Pass down target to
10721 add_thread_silent.
10722 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10723 target down to find_inferior_ptid and switch_to_thread.
10724 (gdbsim_target::close): Update to call close_one_inferior.
10725 (struct resume_data): Remove.
10726 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10727 directly, rather than through a void pointer.
10728 (gdbsim_target::resume): Update to call resume_one_inferior.
10729
58920b5b
SM
107302020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10731
10732 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10733
4ec89149
PA
107342020-01-12 Pedro Alves <palves@redhat.com>
10735
10736 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10737 directly for the current inferior instead of
10738 discard_all_inferiors.
10739 (discard_all_inferiors): Delete.
10740
7c392d1d
TT
107412020-01-11 Tom Tromey <tom@tromey.com>
10742
10743 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10744 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10745 deprecated_safe_get_selected_frame.
10746
d9ebdab7
TBA
107472020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10748
10749 * inferior.c (print_inferior): Switch inferior before printing it.
10750
f3c469b9
PA
107512020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10752 Pedro Alves <palves@redhat.com>
10753
10754 * progspace-and-thread.c (switch_to_program_space_and_thread):
10755 Assert there's an inferior for PSPACE. Use
10756 switch_to_inferior_no_thread to switch the inferior too.
10757 * progspace.c (program_space::~program_space): Call
10758 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10759 (program_space::free_all_objfiles): Don't call clear_symtab_users
10760 here.
10761 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10762
65c574f6
PA
107632020-01-10 Pedro Alves <palves@redhat.com>
10764
10765 * NEWS: Mention multi-target debugging, "info connections", and
10766 "add-inferior -no-connection".
10767
2f4fcf00
PA
107682020-01-10 Pedro Alves <palves@redhat.com>
10769
10770 * infrun.c: Include "target-connection.h".
10771 (check_multi_target_resumption): New.
10772 (proceed): Call it.
10773 * target-connection.c (make_target_connection_string): Make
10774 extern.
10775 * target-connection.h (make_target_connection_string): Declare.
10776
121b3efd
PA
107772020-01-10 Pedro Alves <palves@redhat.com>
10778
10779 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10780 * inferior.c (uiout_field_connection): New function.
10781 (print_inferior): Add new "connection-id" column.
10782 (add_inferior_command): Show connection number/string of added
10783 inferior.
10784 * process-stratum-target.h
10785 (process_stratum_target::connection_string): New virtual method.
10786 (process_stratum_target::connection_number): New field.
10787 * remote.c (remote_target::connection_string): New override.
10788 * target-connection.c: New file.
10789 * target-connection.h: New file.
10790 * target.c (decref_target): Remove process_stratum targets from
10791 the connection list.
10792 (target_stack::push): Add process_stratum targets to the
10793 connection list.
10794
4f837581
PA
107952020-01-10 Pedro Alves <palves@redhat.com>
10796
10797 Revert:
10798 2016-04-12 Pedro Alves <palves@redhat.com>
10799 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10800 Remove references to name.
10801 * serial.h (struct serial) <name>: Delete.
10802
f4ec508e
PA
108032020-01-10 Pedro Alves <palves@redhat.com>
10804
10805 * gdbarch-selftests.c (register_to_value_test): Remove "target
10806 already pushed" check.
10807
5b6d1e4f
PA
108082020-01-10 Pedro Alves <palves@redhat.com>
10809 John Baldwin <jhb@FreeBSD.org>
10810
10811 * aarch64-linux-nat.c
10812 (aarch64_linux_nat_target::thread_architecture): Adjust.
10813 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10814 (task_command_1): Likewise.
10815 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10816 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10817 (aix_thread_target::store_registers)
10818 (aix_thread_target::thread_alive): Adjust.
10819 * amd64-fbsd-tdep.c: Include "inferior.h".
10820 (amd64fbsd_get_thread_local_address): Pass down target.
10821 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10822 thread's gdbarch instead of target_gdbarch.
10823 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10824 get_last_target_status.
10825 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10826 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10827 inferiors.
10828 (update_inserted_breakpoint_locations): Skip if inferiors with no
10829 execution.
10830 (update_global_location_list): When handling moribund locations,
10831 find representative inferior for location's pspace, and use thread
10832 count of its process_stratum target.
10833 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10834 * bsd-uthread.c (bsd_uthread_target::wait): Use
10835 as_process_stratum_target and adjust thread_change_ptid and
10836 add_thread calls.
10837 (bsd_uthread_target::update_thread_list): Use
10838 as_process_stratum_target and adjust find_thread_ptid,
10839 thread_change_ptid and add_thread calls.
10840 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10841 find_thread_ptid call.
10842 * corelow.c (add_to_thread_list): Adjust add_thread call.
10843 (core_target_open): Adjust add_thread_silent and thread_count
10844 calls.
10845 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10846 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10847 * event-top.c (async_disconnect): Pop targets from all inferiors.
10848 * exec.c (add_target_sections): Push exec target on all inferiors
10849 sharing the program space.
10850 (remove_target_sections): Remove the exec target from all
10851 inferiors sharing the program space.
10852 (exec_on_vfork): New.
10853 * exec.h (exec_on_vfork): Declare.
10854 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10855 Pass it down.
10856 (fbsd_nat_target::update_thread_list): Adjust.
10857 (fbsd_nat_target::resume): Adjust.
10858 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10859 down.
10860 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10861 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10862 get_thread_arch_regcache call.
10863 * fork-child.c (gdb_startup_inferior): Pass target down to
10864 startup_inferior and set_executing.
10865 * gdbthread.h (struct process_stratum_target): Forward declare.
10866 (add_thread, add_thread_silent, add_thread_with_info)
10867 (in_thread_list): Add process_stratum_target parameter.
10868 (find_thread_ptid(inferior*, ptid_t)): New overload.
10869 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10870 parameter.
10871 (all_threads()): Delete overload.
10872 (all_threads, all_non_exited_threads): Add process_stratum_target
10873 parameter.
10874 (all_threads_safe): Use brace initialization.
10875 (thread_count): Add process_stratum_target parameter.
10876 (set_resumed, set_running, set_stop_requested, set_executing)
10877 (threads_are_executing, finish_thread_state): Add
10878 process_stratum_target parameter.
10879 (switch_to_thread): Use is_current_thread.
10880 * i386-fbsd-tdep.c: Include "inferior.h".
10881 (i386fbsd_get_thread_local_address): Pass down target.
10882 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10883 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10884 have_inferiors check.
10885 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10886 (inf_ptrace_target::attach): Adjust.
10887 * infcall.c (run_inferior_call): Adjust.
10888 * infcmd.c (run_command_1): Pass target to
10889 scoped_finish_thread_state.
10890 (proceed_thread_callback): Skip inferiors with no execution.
10891 (continue_command): Rename 'all_threads' local to avoid hiding
10892 'all_threads' function. Adjust get_last_target_status call.
10893 (prepare_one_step): Adjust set_running call.
10894 (signal_command): Use user_visible_resume_target. Compare thread
10895 pointers instead of inferior_ptid.
10896 (info_program_command): Adjust to pass down target.
10897 (attach_command): Mark target's 'thread_executing' flag.
10898 (stop_current_target_threads_ns): New, factored out from ...
10899 (interrupt_target_1): ... this. Switch inferior before making
10900 target calls.
10901 * inferior-iter.h
10902 (struct all_inferiors_iterator, struct all_inferiors_range)
10903 (struct all_inferiors_safe_range)
10904 (struct all_non_exited_inferiors_range): Filter on
10905 process_stratum_target too. Remove explicit.
10906 * inferior.c (inferior::inferior): Push dummy target on target
10907 stack.
10908 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10909 Add process_stratum_target parameter, and pass it down.
10910 (have_live_inferiors): Adjust.
10911 (switch_to_inferior_and_push_target): New.
10912 (add_inferior_command, clone_inferior_command): Handle
10913 "-no-connection" parameter. Use
10914 switch_to_inferior_and_push_target.
10915 (_initialize_inferior): Mention "-no-connection" option in
10916 the help of "add-inferior" and "clone-inferior" commands.
10917 * inferior.h: Include "process-stratum-target.h".
10918 (interrupt_target_1): Use bool.
10919 (struct inferior) <push_target, unpush_target, target_is_pushed,
10920 find_target_beneath, top_target, process_target, target_at,
10921 m_stack>: New.
10922 (discard_all_inferiors): Delete.
10923 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10924 (all_inferiors, all_non_exited_inferiors): Add
10925 process_stratum_target parameter.
10926 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10927 (target_last_proc_target): New global.
10928 (follow_fork_inferior): Push target on new inferior. Pass target
10929 to add_thread_silent. Call exec_on_vfork. Handle target's
10930 reference count.
10931 (follow_fork): Adjust get_last_target_status call. Also consider
10932 target.
10933 (follow_exec): Push target on new inferior.
10934 (struct execution_control_state) <target>: New field.
10935 (user_visible_resume_target): New.
10936 (do_target_resume): Call target_async.
10937 (resume_1): Set target's threads_executing flag. Consider resume
10938 target.
10939 (commit_resume_all_targets): New.
10940 (proceed): Also consider resume target. Skip threads of inferiors
10941 with no execution. Commit resumtion in all targets.
10942 (start_remote): Pass current inferior to wait_for_inferior.
10943 (infrun_thread_stop_requested): Consider target as well. Pass
10944 thread_info pointer to clear_inline_frame_state instead of ptid.
10945 (infrun_thread_thread_exit): Consider target as well.
10946 (random_pending_event_thread): New inferior parameter. Use it.
10947 (do_target_wait): Rename to ...
10948 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10949 down.
10950 (threads_are_resumed_pending_p, do_target_wait): New.
10951 (prepare_for_detach): Adjust calls.
10952 (wait_for_inferior): New inferior parameter. Handle it. Use
10953 do_target_wait_1 instead of do_target_wait.
10954 (fetch_inferior_event): Adjust. Switch to representative
10955 inferior. Pass target down.
10956 (set_last_target_status): Add process_stratum_target parameter.
10957 Save target in global.
10958 (get_last_target_status): Add process_stratum_target parameter and
10959 handle it.
10960 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10961 (context_switch): Check inferior_ptid == null_ptid before calling
10962 inferior_thread().
10963 (get_inferior_stop_soon): Pass down target.
10964 (wait_one): Rename to ...
10965 (poll_one_curr_target): ... this.
10966 (struct wait_one_event): New.
10967 (wait_one): New.
10968 (stop_all_threads): Adjust.
10969 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10970 event's target.
10971 (switch_back_to_stepped_thread): Also consider target.
10972 (print_stop_event): Update.
10973 (normal_stop): Update. Also consider the resume target.
10974 * infrun.h (wait_for_inferior): Remove declaration.
10975 (user_visible_resume_target): New declaration.
10976 (get_last_target_status, set_last_target_status): New
10977 process_stratum_target parameter.
10978 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10979 process_stratum_target parameter, and use it.
10980 (clear_inline_frame_state (thread_info*)): New.
10981 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10982 process_stratum_target parameter.
10983 (clear_inline_frame_state (thread_info*)): Declare.
10984 * linux-fork.c (delete_checkpoint_command): Pass target down to
10985 find_thread_ptid.
10986 (checkpoint_command): Adjust.
10987 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10988 instead of just tweaking inferior_ptid.
10989 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10990 (exit_lwp): Pass target down to find_thread_ptid.
10991 (attach_proc_task_lwp_callback): Pass target down to
10992 add_thread/set_running/set_executing.
10993 (linux_nat_target::attach): Pass target down to
10994 thread_change_ptid.
10995 (get_detach_signal): Pass target down to find_thread_ptid.
10996 Consider last target status's target.
10997 (linux_resume_one_lwp_throw, resume_lwp)
10998 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10999 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11000 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11001 (linux_nat_target::async_wait_fd): New.
11002 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11003 target down.
11004 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11005 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11006 * linux-thread-db.c (struct thread_db_info::process_target): New
11007 field.
11008 (add_thread_db_info): Save target.
11009 (get_thread_db_info): New process_stratum_target parameter. Also
11010 match target.
11011 (delete_thread_db_info): New process_stratum_target parameter.
11012 Also match target.
11013 (thread_from_lwp): Adjust to pass down target.
11014 (thread_db_notice_clone): Pass down target.
11015 (check_thread_db_callback): Pass down target.
11016 (try_thread_db_load_1): Always push the thread_db target.
11017 (try_thread_db_load, record_thread): Pass target down.
11018 (thread_db_target::detach): Pass target down. Always unpush the
11019 thread_db target.
11020 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11021 target down. Always unpush the thread_db target.
11022 (find_new_threads_callback, thread_db_find_new_threads_2)
11023 (thread_db_target::update_thread_list): Pass target down.
11024 (thread_db_target::pid_to_str): Pass current inferior down.
11025 (thread_db_target::get_thread_local_address): Pass target down.
11026 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11027 target down.
11028 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11029 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11030 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11031 (procfs_init_inferior): Rename to ...
11032 (procfs_target::procfs_init_inferior): ... this and adjust.
11033 (procfs_target::create_inferior, procfs_notice_thread)
11034 (procfs_do_thread_registers): Adjust.
11035 * ppc-fbsd-tdep.c: Include "inferior.h".
11036 (ppcfbsd_get_thread_local_address): Pass down target.
11037 * proc-service.c (ps_xfer_memory): Switch current inferior and
11038 program space as well.
11039 (get_ps_regcache): Pass target down.
11040 * process-stratum-target.c
11041 (process_stratum_target::thread_address_space)
11042 (process_stratum_target::thread_architecture): Pass target down.
11043 * process-stratum-target.h
11044 (process_stratum_target::threads_executing): New field.
11045 (as_process_stratum_target): New.
11046 * ravenscar-thread.c
11047 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11048 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11049 down.
11050 * record-btrace.c (record_btrace_target::info_record): Adjust.
11051 (record_btrace_target::record_method)
11052 (record_btrace_target::record_is_replaying)
11053 (record_btrace_target::fetch_registers)
11054 (get_thread_current_frame_id, record_btrace_target::resume)
11055 (record_btrace_target::wait, record_btrace_target::stop): Pass
11056 target down.
11057 * record-full.c (record_full_wait_1): Switch to event thread.
11058 Pass target down.
11059 * regcache.c (regcache::regcache)
11060 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11061 process_stratum_target parameter and handle it.
11062 (current_thread_target): New global.
11063 (get_thread_regcache): Add process_stratum_target parameter and
11064 handle it. Switch inferior before calling target method.
11065 (get_thread_regcache): Pass target down.
11066 (get_thread_regcache_for_ptid): Pass target down.
11067 (registers_changed_ptid): Add process_stratum_target parameter and
11068 handle it.
11069 (registers_changed_thread, registers_changed): Pass target down.
11070 (test_get_thread_arch_aspace_regcache): New.
11071 (current_regcache_test): Define a couple local test_target_ops
11072 instances and use them for testing.
11073 (readwrite_regcache): Pass process_stratum_target parameter.
11074 (cooked_read_test, cooked_write_test): Pass mock_target down.
11075 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11076 (get_thread_arch_aspace_regcache): Add process_stratum_target
11077 parameter.
11078 (regcache::target): New method.
11079 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11080 (regcache::registers_changed_ptid): Add process_stratum_target
11081 parameter.
11082 (regcache::m_target): New field.
11083 (registers_changed_ptid): Add process_stratum_target parameter.
11084 * remote.c (remote_state::supports_vCont_probed): New field.
11085 (remote_target::async_wait_fd): New method.
11086 (remote_unpush_and_throw): Add remote_target parameter.
11087 (get_current_remote_target): Adjust.
11088 (remote_target::remote_add_inferior): Push target.
11089 (remote_target::remote_add_thread)
11090 (remote_target::remote_notice_new_inferior)
11091 (get_remote_thread_info): Pass target down.
11092 (remote_target::update_thread_list): Skip threads of inferiors
11093 bound to other targets. (remote_target::close): Don't discard
11094 inferiors. (remote_target::add_current_inferior_and_thread)
11095 (remote_target::process_initial_stop_replies)
11096 (remote_target::start_remote)
11097 (remote_target::remote_serial_quit_handler): Pass down target.
11098 (remote_target::remote_unpush_target): New remote_target
11099 parameter. Unpush the target from all inferiors.
11100 (remote_target::remote_unpush_and_throw): New remote_target
11101 parameter. Pass it down.
11102 (remote_target::open_1): Check whether the current inferior has
11103 execution instead of checking whether any inferior is live. Pass
11104 target down.
11105 (remote_target::remote_detach_1): Pass down target. Use
11106 remote_unpush_target.
11107 (extended_remote_target::attach): Pass down target.
11108 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11109 (remote_target::append_resumption): Pass down target.
11110 (remote_target::append_pending_thread_resumptions)
11111 (remote_target::remote_resume_with_hc, remote_target::resume)
11112 (remote_target::commit_resume): Pass down target.
11113 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11114 (remote_target::interrupt_query)
11115 (remote_target::remove_new_fork_children)
11116 (remote_target::check_pending_events_prevent_wildcard_vcont)
11117 (remote_target::remote_parse_stop_reply)
11118 (remote_target::process_stop_reply): Pass down target.
11119 (first_remote_resumed_thread): New remote_target parameter. Pass
11120 it down.
11121 (remote_target::wait_as): Pass down target.
11122 (unpush_and_perror): New remote_target parameter. Pass it down.
11123 (remote_target::readchar, remote_target::remote_serial_write)
11124 (remote_target::getpkt_or_notif_sane_1)
11125 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11126 down target.
11127 (remote_target::mourn_inferior): Pass down target. Use
11128 remote_unpush_target.
11129 (remote_target::core_of_thread)
11130 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11131 (remote_target::pid_to_exec_file)
11132 (remote_target::thread_handle_to_thread_info): Pass down target.
11133 (remote_target::async_wait_fd): New.
11134 * riscv-fbsd-tdep.c: Include "inferior.h".
11135 (riscv_fbsd_get_thread_local_address): Pass down target.
11136 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11137 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11138 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11139 Adjust.
11140 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11141 * solib-svr4.c (enable_break): Pass down target.
11142 * spu-multiarch.c (parse_spufs_run): Pass down target.
11143 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11144 * target-delegates.c: Regenerate.
11145 * target.c (g_target_stack): Delete.
11146 (current_top_target): Return the current inferior's top target.
11147 (target_has_execution_1): Refer to the passed-in inferior's top
11148 target.
11149 (target_supports_terminal_ours): Check whether the initial
11150 inferior was already created.
11151 (decref_target): New.
11152 (target_stack::push): Incref/decref the target.
11153 (push_target, push_target, unpush_target): Adjust.
11154 (target_stack::unpush): Defref target.
11155 (target_is_pushed): Return bool. Adjust to refer to the current
11156 inferior's target stack.
11157 (dispose_inferior): Delete, and inline parts ...
11158 (target_preopen): ... here. Only dispose of the current inferior.
11159 (target_detach): Hold strong target reference while detaching.
11160 Pass target down.
11161 (target_thread_name): Add assertion.
11162 (target_resume): Pass down target.
11163 (target_ops::beneath, find_target_at): Adjust to refer to the
11164 current inferior's target stack.
11165 (get_dummy_target): New.
11166 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11167 has a thread running.
11168 (initialize_targets): Rename to ...
11169 (_initialize_target): ... this.
11170 * target.h: Include "gdbsupport/refcounted-object.h".
11171 (struct target_ops): Inherit refcounted_object.
11172 (target_ops::shortname, target_ops::longname): Make const.
11173 (target_ops::async_wait_fd): New method.
11174 (decref_target): Declare.
11175 (struct target_ops_ref_policy): New.
11176 (target_ops_ref): New typedef.
11177 (get_dummy_target): Declare function.
11178 (target_is_pushed): Return bool.
11179 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11180 (all_matching_threads_iterator::all_matching_threads_iterator):
11181 Handle filter target.
11182 * thread-iter.h (struct all_matching_threads_iterator, struct
11183 all_matching_threads_range, class all_non_exited_threads_range):
11184 Filter by target too. Remove explicit.
11185 * thread.c (threads_executing): Delete.
11186 (inferior_thread): Pass down current inferior.
11187 (clear_thread_inferior_resources): Pass down thread pointer
11188 instead of ptid_t.
11189 (add_thread_silent, add_thread_with_info, add_thread): Add
11190 process_stratum_target parameter. Use it for thread and inferior
11191 searches.
11192 (is_current_thread): New.
11193 (thread_info::deletable): Use it.
11194 (find_thread_ptid, thread_count, in_thread_list)
11195 (thread_change_ptid, set_resumed, set_running): New
11196 process_stratum_target parameter. Pass it down.
11197 (set_executing): New process_stratum_target parameter. Pass it
11198 down. Adjust reference to 'threads_executing'.
11199 (threads_are_executing): New process_stratum_target parameter.
11200 Adjust reference to 'threads_executing'.
11201 (set_stop_requested, finish_thread_state): New
11202 process_stratum_target parameter. Pass it down.
11203 (switch_to_thread): Also match inferior.
11204 (switch_to_thread): New process_stratum_target parameter. Pass it
11205 down.
11206 (update_threads_executing): Reimplement.
11207 * top.c (quit_force): Pop targets from all inferior.
11208 (gdb_init): Don't call initialize_targets.
11209 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11210 Declare.
11211 (windows_add_thread, windows_delete_thread): Adjust.
11212 (get_windows_debug_event): Rename to ...
11213 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11214 * tracefile-tfile.c (tfile_target_open): Pass down target.
11215 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11216 Forward declare.
11217 (switch_to_thread): Add process_stratum_target parameter.
11218 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11219 parameter. Use it.
11220 (mi_on_resume): Pass target down.
11221 * nat/fork-inferior.c (startup_inferior): Add
11222 process_stratum_target parameter. Pass it down.
11223 * nat/fork-inferior.h (startup_inferior): Add
11224 process_stratum_target parameter.
11225 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11226
75c6c844
PA
112272020-01-10 Pedro Alves <palves@redhat.com>
11228
11229 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11230 directly. Instead find the first thread in the thread list and
11231 use switch_to_thread.
11232
78f2c40a
PA
112332020-01-10 Pedro Alves <palves@redhat.com>
11234
11235 * remote.c (remote_target::remote_add_inferior): Don't bind a
11236 process to the current inferior if the current inferior is already
11237 bound to a process.
11238
e7af6c70
TBA
112392020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11240 Pedro Alves <palves@redhat.com>
11241
11242 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11243 If no process is specified, return null_ptid instead of
11244 inferior_ptid.
11245 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11246 TARGET_WAITKIND_SIGNALLED with no pid.
11247
31ba933e
PA
112482020-01-10 Pedro Alves <palves@redhat.com>
11249
11250 * remote.c (first_remote_resumed_thread): New.
11251 (remote_target::wait_as): Use it as default event_ptid instead of
11252 inferior_ptid.
11253
735fc2ca
PA
112542020-01-10 Pedro Alves <palves@redhat.com>
11255
11256 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11257
c17e02e1
PA
112582020-01-10 Pedro Alves <palves@redhat.com>
11259
11260 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11261 not -1.
11262
ab1ddbcf
PA
112632020-01-10 Pedro Alves <palves@redhat.com>
11264
11265 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11266 ptid to get_last_target_status.
11267 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11268 ptid to get_last_target_status.
11269 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11270 get_last_target_status.
11271 (info_program_command): Don't pass a target_waitstatus to
11272 get_last_target_status.
11273 * infrun.c (init_wait_for_inferior): Use
11274 nullify_last_target_wait_ptid.
11275 (get_last_target_status): Handle nullptr arguments.
11276 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11277 (print_stop_event): Don't pass a ptid to get_last_target_status.
11278 (normal_stop): Don't pass a ptid to get_last_target_status.
11279 * infrun.h (get_last_target_status, set_last_target_status): Move
11280 comments here and update.
11281 (nullify_last_target_wait_ptid): Declare.
11282 * linux-fork.c (fork_load_infrun_state): Remove local extern
11283 declaration of nullify_last_target_wait_ptid.
11284 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11285 to get_last_target_status.
11286
f3f8ece4
PA
112872020-01-10 Pedro Alves <palves@redhat.com>
11288
11289 * gdbthread.h (scoped_restore_current_thread)
11290 <dont_restore, restore, m_dont_restore>: Declare.
11291 * thread.c (thread_alive): Add assertion. Return bool.
11292 (switch_to_thread_if_alive): New.
11293 (prune_threads): Switch inferior/thread.
11294 (print_thread_info_1): Switch thread before calling target methods.
11295 (scoped_restore_current_thread::restore): New, factored out from
11296 ...
11297 (scoped_restore_current_thread::~scoped_restore_current_thread):
11298 ... this.
11299 (scoped_restore_current_thread::scoped_restore_current_thread):
11300 Add assertion.
11301 (thread_apply_all_command, thread_select): Use
11302 switch_to_thread_if_alive.
11303 * infrun.c (proceed, restart_threads, handle_signal_stop)
11304 (switch_back_to_stepped_thread): Switch current thread before
11305 calling target methods.
11306
db2d40f7
PA
113072020-01-10 Pedro Alves <palves@redhat.com>
11308
11309 * inferior.c (switch_to_inferior_no_thread): New function,
11310 factored out from ...
11311 (inferior_command): ... here.
11312 * inferior.h (switch_to_inferior_no_thread): Declare.
11313 * mi/mi-main.c (run_one_inferior): Use
11314 switch_to_inferior_no_thread.
11315
bd420a2d
PA
113162020-01-10 Pedro Alves <palves@redhat.com>
11317
11318 * infcmd.c (kill_command): Remove dead code.
11319
ddf5db90
PA
113202020-01-10 Pedro Alves <palves@redhat.com>
11321
11322 * remote.c (remote_target::mourn_inferior): No longer check
11323 whether the target is running.
11324
5018ce90
PA
113252020-01-10 Pedro Alves <palves@redhat.com>
11326
11327 * corelow.c (core_target::has_execution): Change parameter type to
11328 inferior pointer.
11329 * inferior.c (number_of_live_inferiors): Use
11330 inferior::has_execution instead of target_has_execution_1.
11331 * inferior.h (inferior::has_execution): New.
11332 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11333 inferior::has_execution instead of target_has_execution_1.
11334 * process-stratum-target.c
11335 (process_stratum_target::has_execution): Change parameter type to
11336 inferior pointer. Check the inferior's PID instead of
11337 inferior_ptid.
11338 * process-stratum-target.h
11339 (process_stratum_target::has_execution): Change parameter type to
11340 inferior pointer.
11341 * record-full.c (record_full_core_target::has_execution): Change
11342 parameter type to inferior pointer.
11343 * target.c (target_has_execution_1): Change parameter type to
11344 inferior pointer.
11345 (target_has_execution_current): Adjust.
11346 * target.h (target_ops::has_execution): Change parameter type to
11347 inferior pointer.
11348 (target_has_execution_1): Change parameter type to inferior
11349 pointer. Change return type to bool.
11350 * tracefile.h (tracefile_target::has_execution): Change parameter
11351 type to inferior pointer.
11352
74375d18
PA
113532020-01-10 Pedro Alves <palves@redhat.com>
11354
11355 * exceptions.c (print_flush): Remove current_top_target() check.
11356
acdf84a6
PA
113572020-01-10 Pedro Alves <palves@redhat.com>
11358
11359 * remote.c (show_remote_exec_file): Show the current inferior's
11360 exec-file instead of the command variable's value.
11361
ec506636
PA
113622020-01-10 Pedro Alves <palves@redhat.com>
11363
11364 * record-full.c (record_full_resume_ptid): New global.
11365 (record_full_target::resume): Set it.
11366 (record_full_wait_1): Use record_full_resume_ptid instead of
11367 inferior_ptid.
11368
873657b9
PA
113692020-01-10 Pedro Alves <palves@redhat.com>
11370
11371 * gdbthread.h (scoped_restore_current_thread)
11372 <dont_restore, restore, m_dont_restore>: Declare.
11373 * thread.c (thread_alive): Add assertion. Return bool.
11374 (switch_to_thread_if_alive): New.
11375 (prune_threads): Switch inferior/thread.
11376 (print_thread_info_1): Switch thread before calling target methods.
11377 (scoped_restore_current_thread::restore): New, factored out from
11378 ...
11379 (scoped_restore_current_thread::~scoped_restore_current_thread):
11380 ... this.
11381 (scoped_restore_current_thread::scoped_restore_current_thread):
11382 Add assertion.
11383 (thread_apply_all_command, thread_select): Use
11384 switch_to_thread_if_alive.
11385
7f0ae84c
GB
113862020-01-10 George Barrett <bob@bob131.so>
11387
11388 * stap-probe.c (stap_modify_semaphore): Don't check for null
11389 semaphores.
11390 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11391 for null semaphores.
11392
f5a7c406
AB
113932020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11394
11395 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11396 all source windows, and maintain horizontal scroll status while
11397 doing so.
11398
9ae6bf64
TT
113992020-01-09 Tom Tromey <tom@tromey.com>
11400
11401 PR tui/18932:
11402 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11403 update_source_window, not print_source_lines.
11404
b2efe70c
AB
114052020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11406
11407 * tui/tui.c (tui_enable): Register tui hooks after calling
11408 tui_display_main.
11409
5f23a082
CB
114102020-01-09 Christian Biesinger <cbiesinger@google.com>
11411
11412 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11413
3061113b
SM
114142020-01-08 Simon Marchi <simon.marchi@efficios.com>
11415
11416 * thread.c (print_thread_info_1): Fix indentation.
11417
57d75002
CB
114182020-01-09 Christian Biesinger <cbiesinger@google.com>
11419
11420 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11421 unique_xmalloc_ptr outside the if to always free the demangled name.
11422
6a053cb1
TT
114232020-01-08 Tom Tromey <tromey@adacore.com>
11424
11425 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11426 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11427 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11428 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11429 Remove.
11430 (section_offsets): New typedef.
11431 * symtab.c (fixup_section, get_msymbol_address): Update.
11432 * symmisc.c (dump_msymbols): Update.
11433 * symfile.h (relative_addr_info_to_section_offsets)
11434 (symfile_map_offsets_to_segments): Update.
11435 * symfile.c (build_section_addr_info_from_objfile)
11436 (init_objfile_sect_indices): Update.
11437 (struct place_section_arg): Change type of "offsets".
11438 (place_section): Update.
11439 (relative_addr_info_to_section_offsets): Change type of
11440 "section_offsets". Remove "num_sections" parameter.
11441 (default_symfile_offsets, syms_from_objfile_1)
11442 (set_objfile_default_section_offset): Update.
11443 (reread_symbols): No need to preserve section offsets by hand.
11444 (symfile_map_offsets_to_segments): Change type of "offsets".
11445 * stap-probe.c (relocate_address): Update.
11446 * stabsread.h (process_one_symbol): Update.
11447 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11448 (solib_target_relocate_section_addresses): Update.
11449 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11450 Update.
11451 * solib-frv.c (frv_relocate_main_executable): Update.
11452 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11453 * solib-aix.c (solib_aix_get_section_offsets): Change return
11454 type.
11455 (solib_aix_solib_create_inferior_hook): Update.
11456 * remote.c (remote_target::get_offsets): Update.
11457 * psymtab.c (find_pc_sect_psymtab): Update.
11458 * psympriv.h (struct partial_symbol) <address, text_low,
11459 text_high>: Update.
11460 * objfiles.h (obj_section_offset): Update.
11461 (struct objfile) <section_offsets>: Change type.
11462 <num_sections>: Remove.
11463 (objfile_relocate): Update.
11464 * objfiles.c (entry_point_address_query): Update
11465 (relocate_one_symbol): Change type of "section_offsets".
11466 (objfile_relocate1, objfile_relocate1): Change type of
11467 "new_offsets".
11468 (objfile_rebase1): Update.
11469 * mipsread.c (mipscoff_symfile_read): Update.
11470 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11471 parameter.
11472 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11473 (parse_external, psymtab_to_symtab_1): Update.
11474 * machoread.c (macho_symfile_offsets): Update.
11475 * ia64-tdep.c (ia64_find_unwind_table): Update.
11476 * hppa-tdep.c (read_unwind_info): Update.
11477 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11478 * dwarf2read.c (create_addrmap_from_index)
11479 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11480 (process_psymtab_comp_unit_reader, add_partial_symbol)
11481 (add_partial_subprogram, process_full_comp_unit)
11482 (read_file_scope, read_func_scope, read_lexical_block_scope)
11483 (read_call_site_scope, dwarf2_rnglists_process)
11484 (dwarf2_ranges_process, dwarf2_ranges_read)
11485 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11486 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11487 Update.
11488 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11489 Update.
11490 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11491 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11492 (process_one_symbol): Change type of "section_offsets".
11493 * ctfread.c (get_objfile_text_range): Update.
11494 * coffread.c (coff_symtab_read, enter_linenos)
11495 (process_coff_symbol): Update.
11496 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11497 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11498
456e800a
TT
114992020-01-08 Tom Tromey <tromey@adacore.com>
11500
11501 * dwarf2read.c (parse_macro_definition): Use std::string.
11502 (parse_macro_definition): Likewise.
11503
6dfa2fc2
TT
115042020-01-08 Tom Tromey <tromey@adacore.com>
11505
11506 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11507 (ATTR_ALLOC_CHUNK): Remove.
11508
421d1616
TT
115092020-01-08 Tom Tromey <tromey@adacore.com>
11510
11511 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11512
43816ebc
TT
115132020-01-08 Tom Tromey <tromey@adacore.com>
11514
11515 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11516 (dwarf2_compute_name, open_dwo_file): Likewise.
11517 (process_enumeration_scope): Use std::vector.
11518 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11519 (partial_die_info::fixup, dwarf2_start_subfile)
11520 (guess_full_die_structure_name, dwarf2_name): Likewise.
11521 (determine_prefix): Update.
11522 (guess_full_die_structure_name): Make return type const.
11523 (partial_die_full_name): Return unique_xmalloc_ptr.
11524 (DW_FIELD_ALLOC_CHUNK): Remove.
11525
4212d509
TT
115262020-01-07 Tom Tromey <tromey@adacore.com>
11527
11528 PR build/24937:
11529 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11530
06a6207a
JT
115312020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11532
11533 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11534
153d79c4
AB
115352020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11536
11537 * stack.c (print_frame_info): Move disassemble_next_line code
11538 inside source_print block.
11539
66182876
EZ
115402020-01-06 Eli Zaretskii <eliz@gnu.org>
11541
11542 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11543 gdb/signals.h, as we are now using native signal symbols.
11544
cbfa8581
SV
115452020-01-06 Shahab Vahedi <shahab@synopsys.com>
11546
11547 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11548 overflow by an early check of content vs threshold.
aac66a4c 11549 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11550 Likewise.
11551
3f602821
EZ
115522020-01-06 Eli Zaretskii <eliz@gnu.org>
11553
11554 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11555
a08c904d
JT
115562020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11557
11558 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11559 export table if no section contains it's RVA.
11560
89a65580
EZ
115612020-01-06 Eli Zaretskii <eliz@gnu.org>
11562
11563 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11564
8b7fcda2
HD
115652020-01-06 Hannes Domani <ssbssa@yahoo.de>
11566
11567 * source.c (print_source_lines_base): Set last_line_listed.
11568
a61b4f69
SV
115692020-01-06 Shahab Vahedi <shahab@synopsys.com>
11570
11571 * tui/tui-disasm.c: Remove trailing spaces.
11572
559e7e50
EZ
115732020-01-06 Eli Zaretskii <eliz@gnu.org>
11574 Pedro Alves <palves@redhat.com>
11575
11576 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11577 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11578 (windows_gdb_signal_to_target): New function, uses the above
11579 enumeration to convert GDB internal signal codes to equivalent
11580 Windows codes.
11581 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11582 * windows-nat.c: Include "gdb_wait.h".
11583 (get_windows_debug_event): Extract the fatal exception from the
11584 exit status and convert to the equivalent Posix signal number.
11585 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11586 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11587 * gdbsupport/gdb_wait.c: New file, implements
11588 windows_status_to_termsig.
11589 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11590 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11591
f2302a34
AB
115922020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11593
11594 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11595 show_layout.
11596
6a5206eb
LM
115972020-01-05 Luis Machado <luis.machado@linaro.org>
11598
11599 * aarch64-linux-nat.c
11600 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11601 and bfd_mach_aarch64.
11602
6ec1d75e
PW
116032020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11604
11605 * ui-file.c (stdio_file::can_emit_style_escape)
11606 (tee_file::can_emit_style_escape): Ensure style is used also on
11607 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11608 to gdb_stdout.
11609 * main.c (set_gdb_data_directory): Use file style to output the
11610 warning that the given pathname is not a directory.
11611 * top.c (show_history_filename, gdb_safe_append_history)
11612 (show_gdb_datadir): Use file style.
11613
44f81a76
HD
116142020-01-03 Hannes Domani <ssbssa@yahoo.de>
11615
11616 * solib-target.c (struct lm_info_target):
11617 Change offsets to be a unique_xmalloc_ptr.
11618 (solib_target_relocate_section_addresses): Update.
11619
25057eb0
HD
116202020-01-03 Hannes Domani <ssbssa@yahoo.de>
11621
11622 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11623
6e2118f5
BE
116242020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11625
11626 * MAINTAINERS (Write After Approval): Add myself.
11627
8133c7dc
LM
116282020-01-02 Luis Machado <luis.machado@linaro.org>
11629
11630 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11631 Cell BE architecture.
11632 * target.h (struct target_ops) <thread_architecture>: Likewise.
11633
48189bec
HD
116342020-01-01 Hannes Domani <ssbssa@yahoo.de>
11635
11636 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11637
ead1063b
HD
116382020-01-01 Hannes Domani <ssbssa@yahoo.de>
11639
11640 * MAINTAINERS (Write After Approval): Add myself.
11641
e5d78223
JB
116422020-01-01 Joel Brobecker <brobecker@adacore.com>
11643
11644 * gdbarch.sh: Update copyright year range of generated files.
11645
b811d2c2
JB
116462020-01-01 Joel Brobecker <brobecker@adacore.com>
11647
11648 Update copyright year range in all GDB files.
11649
5f4def5c
JB
116502020-01-01 Joel Brobecker <brobecker@adacore.com>
11651
11652 * copyright.py: Convert to Python 3.
11653
51fd4002
JB
116542020-01-01 Joel Brobecker <brobecker@adacore.com>
11655
11656 * copyright.py: Adapt after move of gnulib directory from gdb
11657 directory to toplevel directory.
11658
5fb651f2
JB
116592020-01-01 Joel Brobecker <brobecker@adacore.com>
11660
11661 * copyright.py (main): Exit if run from the wrong directory.
11662
5dd8bf88
JB
116632020-01-01 Joel Brobecker <brobecker@adacore.com>
11664
11665 * top.c (print_gdb_version): Change copyright year to 2020.
11666
9f71dacb 116672020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11668
9f71dacb 11669 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11670
9f71dacb 11671For older changes see ChangeLog-2019.
c906108c
SS
11672\f
11673Local Variables:
11674mode: change-log
11675left-margin: 8
11676fill-column: 74
11677version-control: never
57da7796 11678coding: utf-8
c906108c 11679End: