]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
as: Ignore rest of line on overflow error
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
159ed7d9
SM
12020-08-06 Simon Marchi <simon.marchi@efficios.com>
2
3 * regcache.h (class regcache): Remove friend
4 registers_changed_ptid.
5 <regcache_thread_ptid_changed>: Remove.
6 <regcaches>: Remove.
7 * regcache.c (regcache::regcaches): Rename to...
8 (regcaches): ... this. Make static.
9 (get_thread_arch_aspace_regcache): Update.
10 (regcache::regcache_thread_ptid_changed): Rename to...
11 (regcache_thread_ptid_changed): ... this. Update.
12 (class regcache_access): Remove.
13 (regcaches_test): Update.
14 (_initialize_regcache): Update.
15 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
16 <forward_list>.
17
174981ae
SM
182020-08-06 Simon Marchi <simon.marchi@efficios.com>
19
20 * regcache.h (class regcache) <current_regcache>: Rename to...
21 <regcaches>: ... this. Move doc here.
22 * regcache.c (regcache::current_regcache) Rename to...
23 (regcache::regcaches): ... this. Move doc to header.
24 (get_thread_arch_aspace_regcache): Update.
25 (regcache::regcache_thread_ptid_changed): Update.
26 (registers_changed_ptid): Update.
27 (class regcache_access) <current_regcache_size>: Rename to...
28 <regcaches_size>: ... this.
29 (current_regcache_test): Rename to...
30 (regcaches_test): ... this.
31 (_initialize_regcache): Update.
32
ed908db6
VC
332020-08-06 Victor Collod <vcollod@nvidia.com>
34
35 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
36
b5582ab7
KB
372020-08-05 Kevin Buettner <kevinb@redhat.com>
38
39 * corelow.c (core_target::build_file_mappings): Don't output
40 null pathname in warning.
41
ea946b86
SM
422020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
43
44 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
45 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
46 gdb.dwarf2/dw2-single-line-discriminators.exp,
47 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
48
57d02173
TT
492020-08-05 Tom Tromey <tromey@adacore.com>
50
51 PR rust/26197:
52 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
53 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
54 Fix off-by-one and type size errors in ordinary case.
55
5555c86d
TV
562020-08-05 Tom de Vries <tdevries@suse.de>
57
58 * gdbtypes.c (type_not_allocated, type_not_associated): Use
59 "prop->const_val () == 0" instead of "prop->const_val () != 0".
60
97916bfe
SM
612020-08-04 Simon Marchi <simon.marchi@efficios.com>
62
63 * frame.h (frame_id_p): Return bool.
64 (frame_id_artificial_p): Return bool.
65 (frame_id_eq): Return bool.
66 (has_stack_frames): Return bool.
67 (get_selected_frame): Fix typo in comment.
68 (get_frame_pc_if_available): Return bool.
69 (get_frame_address_in_block_if_available): Return bool.
70 (get_frame_func_if_available): Return bool.
71 (read_frame_register_unsigned): Return bool.
72 (get_frame_register_bytes): Return bool.
73 (safe_frame_unwind_memory): Return bool.
74 (deprecated_frame_register_read): Return bool.
75 (frame_unwinder_is): Return bool.
76 * frame.c (struct frame_info) <prev_arch::p>: Change type to
77 bool.
78 <this_id::p>: Likewise.
79 <prev_p>: Likewise.
80 (frame_stash_add): Return bool.
81 (get_frame_id): Use bool.
82 (frame_id_build_special) Use bool.
83 (frame_id_build_unavailable_stack): Use bool.
84 (frame_id_build): Use bool.
85 (frame_id_p): Return bool, use true/false instead of 1/0.
86 (frame_id_artificial_p): Likewise.
87 (frame_id_eq): Likewise.
88 (frame_id_inner): Likewise.
89 (get_frame_func_if_available): Likewise.
90 (read_frame_register_unsigned): Likewise.
91 (deprecated_frame_register_read): Likewise.
92 (get_frame_register_bytes): Likewise.
93 (has_stack_frames): Likewise.
94 (inside_main_func): Likewise.
95 (inside_entry_func): Likewise.
96 (get_frame_pc_if_available): Likewise.
97 (get_frame_address_in_block_if_available): Likewise.
98 (frame_unwinder_is): Likewise.
99 (safe_frame_unwind_memory): Likewise.
100 (frame_unwind_arch): Likewise.
101
fedfee88
SM
1022020-08-04 Simon Marchi <simon.marchi@efficios.com>
103
104 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
105 type to cached_copy_status.
106 (fprintf_frame): Adjust.
107 (get_frame_func_if_available): Adjust.
108 (frame_cleanup_after_sniffer): Adjust.
109
6cfa9b59
MW
1102020-08-04 Mark Wielaard <mark@klomp.org>
111
112 * MAINTAINERS (Write After Approval): Update email address.
113
66d6346b
SM
1142020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
115
116 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
117 dynamic_prop::const_val.
118
8a6d5e35
SM
1192020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
120
121 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
122 dynamic_prop::kind.
123
51d6067d
SM
1242020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
125
126 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
127
b26e2ae7
JM
1282020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
129
130 * configure.tgt: Set gdb_sim for bpf-*-* targets.
131
39791af2
JM
1322020-08-04 Weimin Pan <weimin.pan@oracle.com>
133 Jose E. Marchesi <jose.marchesi@oracle.com>
134
135 * configure.tgt: Add entry for bpf-*-*.
136 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
137 (ALLDEPFILES): Add bpf-tdep.c.
138 * bpf-tdep.c: New file.
139 * MAINTAINERS: Add bpf target and maintainer.
140 * NEWS: Mention the support for the new target.
141
521894aa
TV
1422020-08-04 Tom de Vries <tdevries@suse.de>
143
144 PR symtab/23270
145 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
146 Error.
147
5d6356e9
JB
1482020-08-03 John Baldwin <jhb@FreeBSD.org>
149
150 * syscalls/freebsd.xml: Regenerate.
151
0cf82b81
JB
1522020-08-03 John Baldwin <jhb@FreeBSD.org>
153
154 * syscalls/update-freebsd.sh: Fix usage and year range.
155
8f34b746
TV
1562020-08-03 Tom de Vries <tdevries@suse.de>
157
158 PR symtab/26333
159 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
160 DW_LNE_lo_user/DW_LNE_hi_user range.
161
5e500d33
SM
1622020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
163
164 PR ada/26318
165 * ada-lang.c (ada_modulus): Return 0 if property is not of const
166 kind.
167
78319c15
TBA
1682020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
169
170 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
171
4c55e970
TBA
1722020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
173
174 * breakpoint.c (set_breakpoint_condition): Update the condition
175 expressions after checking that the input condition string parses
176 successfully and does not contain junk at the end.
177
1e620590
TBA
1782020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
179
180 * breakpoint.c (set_breakpoint_condition): Update the
181 condition string after parsing the new condition successfully.
182
c8693053
RO
1832020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
184
185 * proc-api.c (_STRUCTURED_PROC): Don't define.
186 * proc-events.c: Likewise.
187 * proc-flags.c: Likewise.
188 * proc-why.c: Likewise.
189 * procfs.c: Likewise.
190
191 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
192 * configure, config.in: Regenerate.
193
5a99adb8
TV
1942020-07-30 Tom de Vries <tdevries@suse.de>
195
196 PR build/26320
197 * ui-style.h (struct ui_file_style::color): Wrap m_value and
198 m_red/m_green/m_blue in a union.
199
8ba83e91
TV
2002020-07-29 Tom de Vries <tdevries@suse.de>
201
202 PR tdep/26280
203 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
204
f75a0693
AB
2052020-07-28 Tom Tromey <tromey@adacore.com>
206
207 PR symtab/26270:
208 * symtab.h (find_pc_partial_function_sym): Declare.
209 * cli/cli-cmds.c (disassemble_command): Use
210 find_pc_partial_function_sym. Check asm_demangle.
211 * blockframe.c (cache_pc_function_sym): New global.
212 (cache_pc_function_name): Remove.
213 (clear_pc_function_cache): Update.
214 (find_pc_partial_function_sym): New function, from
215 find_pc_partial_function.
216 (find_pc_partial_function): Rewrite using
217 find_pc_partial_function_sym.
218
16f3242c
TT
2192020-07-28 Tom Tromey <tromey@adacore.com>
220
221 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
222 help. Add usage.
223
4888741a
TT
2242020-07-28 Tom Tromey <tromey@adacore.com>
225
226 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
227 <DW_OP_GNU_variable_value>: Cast to address type.
228
4d46f402
KR
2292020-07-28 Kamil Rytarowski <n54@gmx.com>
230
231 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
232 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
233 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
234 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
235 (nbsd_get_siginfo_type): New.
236 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
237 (_initialize_nbsd_tdep): New.
238
d70f978b
L
2392020-07-28 H.J. Lu <hongjiu.lu@intel.com>
240
241 PR binutils/26301
242 * configure: Regenerated.
243
377170fa
L
2442020-07-28 H.J. Lu <hongjiu.lu@intel.com>
245
246 PR binutils/26301
247 * configure: Regenerated.
248
43d5901d
AB
2492020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
250
251 * python/py-frame.c: Remove 'user-regs.h' include.
252 (frapy_read_register): Rewrite to make use of
253 gdbpy_parse_register_id.
254 * python/py-registers.c (gdbpy_parse_register_id): New function,
255 moved here from python/py-unwind.c. Updated the return type, and
256 also accepts register descriptor objects.
257 * python/py-unwind.c: Remove 'user-regs.h' include.
258 (pyuw_parse_register_id): Moved to python/py-registers.c.
259 (unwind_infopy_add_saved_register): Update to use
260 gdbpy_parse_register_id.
261 (pending_framepy_read_register): Likewise.
262 * python/python-internal.h (gdbpy_parse_register_id): Declare.
263
14fa8fb3
AB
2642020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
265
266 * python/py-registers.c: Add 'user-regs.h' include.
267 (register_descriptor_iter_find): New function.
268 (register_descriptor_iterator_object_methods): New static global
269 methods array.
270 (register_descriptor_iterator_object_type): Add pointer to methods
271 array.
272
ddce1758
JB
2732020-07-27 John Baldwin <jhb@FreeBSD.org>
274
275 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
276 for all architectures on FreeBSD 11.3 and later.
277
a4089f52
TT
2782020-07-27 Tom Tromey <tromey@adacore.com>
279
280 * gcore.h (load_corefile): Don't declare.
281
95420d30
TV
2822020-07-27 Tom de Vries <tdevries@suse.de>
283
284 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
285 * config.in: Regenerate.
286 * configure: Regenerate.
287
05a6b8c2
EZ
2882020-07-26 Eli Zaretskii <eliz@gnu.org>
289
290 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
291 ws2tcpip.h. When checking whether socklen_t type is defined, use
292 ws2tcpip.h if it is available and sys/socket.h isn't.
293 * configure: Regenerate.
294 * config.in: Regenerate.
295
e79eb02f
AB
2962020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
297
298 PR fortran/23051
299 PR fortran/26139
300 * valops.c (value_ind): Pass address to
301 readjust_indirect_value_type.
302 * value.c (readjust_indirect_value_type): Make parameter
303 non-const, and add extra address parameter. Resolve original type
304 before using it.
305 * value.h (readjust_indirect_value_type): Update function
306 signature and comment.
307
876518dd
TV
3082020-07-25 Tom de Vries <tdevries@suse.de>
309
310 PR symtab/26243
311 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
312 entries.
313
f6720b1c
AM
3142020-07-24 Aaron Merey <amerey@redhat.com>
315
316 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
317 * configure: Rebuild.
318
513487e1
KB
3192020-07-23 Kevin Buettner <kevinb@redhat.com>
320
321 PR corefiles/26294
322 * corelow.c (_initialize_corelow): Add period to help text
323 for "maintenance print core-file-backed-mappings".
324
e7bc9db8
PA
3252020-07-23 Pedro Alves <pedro@palves.net>
326
327 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
328 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
329 meanwhile.
330 * frame.c (frame_cache_generation, get_frame_cache_generation):
331 New.
332 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
333 (get_prev_frame_if_no_cycle): On exception, don't touch
334 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
335 * frame.h (get_frame_cache_generation): Declare.
336
90fcc466
TV
3372020-07-23 Tom de Vries <tdevries@suse.de>
338
339 PR tui/26282
340 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
341 New default constructor.
342
78344df7
AB
3432020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
344
345 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
346 exclude non-statement entries.
347
b089853a
KB
3482020-07-22 Kevin Buettner <kevinb@redhat.com>
349
350 * NEWS (New commands): Mention new command
351 "maintenance print core-file-backed-mappings".
352
09c2f5d4
KB
3532020-07-22 Kevin Buettner <kevinb@redhat.com>
354
355 * corelow.c (gdbcmd.h): Include.
356 (core_target::info_proc_mappings): New method.
357 (get_current_core_target): New function.
358 (maintenance_print_core_file_backed_mappings): New function.
359 (_initialize_corelow): Add core-file-backed-mappings to
360 "maint print" commands.
361
9c5ec5c2
KB
3622020-07-22 Kevin Buettner <kevinb@redhat.com>
363
364 * linux-tdep.c (dump_note_entry_p): New function.
365 (linux_dump_mapping_p_ftype): New typedef.
366 (linux_find_memory_regions_full): Add new parameter,
367 should_dump_mapping_p.
368 (linux_find_memory_regions): Adjust call to
369 linux_find_memory_regions_full.
370 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
371 call to linux_find_memory_regions_full.
372
db082f59
KB
3732020-07-22 Kevin Buettner <kevinb@redhat.com>
374
375 * corelow.c (solist.h, unordered_map): Include.
376 (class core_target): Add field m_core_file_mappings and
377 method build_file_mappings.
378 (core_target::core_target): Call build_file_mappings.
379 (core_target::~core_target): Free memory associated with
380 m_core_file_mappings.
381 (core_target::build_file_mappings): New method.
382 (core_target::xfer_partial): Use m_core_file_mappings
383 for memory transfers.
384 * linux-tdep.c (linux_read_core_file_mappings): New
385 function.
386 (linux_core_info_proc_mappings): Rewrite to use
387 linux_read_core_file_mappings.
388 (linux_init_abi): Register linux_read_core_file_mappings.
389
7e183d27
KB
3902020-07-22 Kevin Buettner <kevinb@redhat.com>
391
392 * arch-utils.c (default_read_core_file_mappings): New function.
393 * arch-utils.c (default_read_core_file_mappings): Declare.
394 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
395 * gdbarch.h, gdbarch.c: Regenerate.
396
2735d421
KB
3972020-07-22 Kevin Buettner <kevinb@redhat.com>
398
399 PR corefiles/25631
400 * corelow.c (core_target:xfer_partial): Revise
401 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
402 case after first checking the stratum beneath the core
403 target.
404 (has_all_memory): Return true.
405 * target.c (raw_memory_xfer_partial): Revise comment
406 regarding use of has_all_memory.
407
e56cb451
KB
4082020-07-22 Kevin Buettner <kevinb@redhat.com>
409
410 * exec.h (section_table_xfer_memory): Revise declaration,
411 replacing section name parameter with an optional callback
412 predicate.
413 * exec.c (section_table_xfer_memory): Likewise.
414 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
415 of section_table_xfer_memory.
416
32fa152e
TT
4172020-07-22 Tom Tromey <tromey@adacore.com>
418
419 * mi/mi-cmd-stack.c (list_args_or_locals): Use
420 lookup_symbol_search_name.
421
a67a1c41
AB
4222020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
423
424 * python/py-registers.c (gdbpy_register_object_data_init): Remove
425 redundant local variable.
426 (gdbpy_get_register_descriptor): Extract descriptor vector as a
427 reference, not pointer, update code accordingly.
428
a7b4ff4f
SM
4292020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
430 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
431
432 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
433 * jit.c (jit_breakpoint_re_set_internal): Use the
434 `skip_jit_symbol_lookup` field.
435
2340e834
SM
4362020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
437 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
438
439 * jit.c (jit_read_descriptor): Define the descriptor address once,
440 use twice.
441 (jit_breakpoint_deleted): Move the declaration of the loop variable
442 `iter` into the loop header.
443 (jit_breakpoint_re_set_internal): Move the declaration of the local
444 variable `objf_data` to the first point of definition.
445 (jit_event_handler): Move the declaration of local variables
446 `code_entry`, `entry_addr`, and `objf` to their first point of use.
447 Rename `objf` to `jited`.
448
c1072906
SM
4492020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
450
451 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
452 Remove.
453 * jit.c (get_jiter_objfile_data): Update.
454
c8474dc3
TBA
4552020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
456 Simon Marchi <simon.marchi@polymtl.ca>
457
458 * jit.c (struct jit_program_space_data): Remove.
459 (jit_program_space_key): Remove.
460 (jiter_objfile_data::~jiter_objfile_data): Remove program space
461 stuff.
462 (get_jit_program_space_data): Remove.
463 (jit_breakpoint_deleted): Iterate on all of the program space's
464 objfiles.
465 (jit_inferior_init): Likewise.
466 (jit_breakpoint_re_set_internal): Likewise. Also change return
467 type to void.
468 (jit_breakpoint_re_set): Pass current_program_space to
469 jit_breakpoint_re_set_internal.
470
77208eb7
SM
4712020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
472
473 * jit.h (struct jiter_objfile_data) <cached_code_address,
474 jit_breakpoint>: Move to here from ...
475 * jit.c (jit_program_space_data): ... here.
476 (jiter_objfile_data::~jiter_objfile_data): Update.
477 (jit_breakpoint_deleted): Update.
478 (jit_breakpoint_re_set_internal): Update.
479
8c1c720f
SM
4802020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
481
482 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
483 checks.
484 (jit_read_descriptor): Remove NULL check.
485 (jit_event_handler): Add an assertion.
486
0e74a041
SM
4872020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
488
489 * jit.h (struct jit_objfile_data): Split into...
490 (struct jiter_objfile_data): ... this ...
491 (struct jited_objfile_data): ... and this.
492 * objfiles.h (struct objfile) <jit_data>: Remove.
493 <jiter_data, jited_data>: New fields.
494 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
495 (jiter_objfile_data::~jiter_objfile_data): ... this.
496 (get_jit_objfile_data): Rename to ...
497 (get_jiter_objfile_data): ... this.
498 (add_objfile_entry): Update.
499 (jit_read_descriptor): Use get_jiter_objfile_data.
500 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
501 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
502 (jit_inferior_exit_hook): Use objfile's jited_data field.
503
238b5c9f
SM
5042020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
505
506 * jit.h: Forward-declare `struct minimal_symbol`.
507 (struct jit_objfile_data): Migrate to here from jit.c; also add a
508 constructor, destructor, and an objfile* field.
509 * jit.c (jit_objfile_data): Remove.
510 (struct jit_objfile_data): Migrate from here to jit.h.
511 (jit_objfile_data::~jit_objfile_data): New destructor
512 implementation with code moved from free_objfile_data.
513 (free_objfile_data): Delete.
514 (get_jit_objfile_data): Update to use the jit_data field of objfile.
515 (jit_find_objf_with_entry_addr): Ditto.
516 (jit_inferior_exit_hook): Ditto.
517 (_initialize_jit): Remove the call to
518 register_objfile_data_with_cleanup.
519 * objfiles.h (struct objfile) <jit_data>: New field.
520
fe053b9e
TBA
5212020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
522
523 * jit.h: Forward-declare `struct objfile`.
524 (jit_event_handler): Add a second parameter, the JITer objfile.
525 * jit.c (jit_read_descriptor): Change the signature to take the
526 JITer objfile as an argument instead of the jit_program_space_data.
527 (jit_inferior_init): Update the call to jit_read_descriptor.
528 (jit_event_handler): Use the new JITer objfile argument when calling
529 jit_read_descriptor.
530 * breakpoint.c (handle_jit_event): Update the call to
531 jit_event_handler to pass the JITer objfile.
532
4cec0c66
JB
5332020-07-21 John Baldwin <jhb@FreeBSD.org>
534
535 * gdbarch.c: Regenerate.
536 * gdbarch.h: Regenerate.
537 * gdbarch.sh (handle_segmentation_fault): Remove method.
538 * infrun.c (handle_segmentation_fault): Remove.
539 (print_signal_received_reason): Remove call to
540 handle_segmentation_fault.
541
0e42f66a
JB
5422020-07-21 John Baldwin <jhb@FreeBSD.org>
543
544 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
545 Rename to sparc64_linux_report_signal_info and add siggnal
546 argument.
547 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
548 instead of sparc64_linux_handle_segmentation_fault.
549
77bdfeb2
JB
5502020-07-21 John Baldwin <jhb@FreeBSD.org>
551
552 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
553 i386_linux_report_signal_info instead of
554 i386_linux_handle_segmentation_fault.
555 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
556 to i386_linux_report_signal_info and add siggnal argument.
557 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
558 of i386_linux_handle_segmentation_fault.
559 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
560 to i386_linux_report_signal_info and add siggnal argument.
561
ad97bfc5
JB
5622020-07-21 John Baldwin <jhb@FreeBSD.org>
563
564 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
565 hook if present.
566
272bb05c
JB
5672020-07-21 John Baldwin <jhb@FreeBSD.org>
568
569 * gdbarch.c: Regenerate.
570 * gdbarch.h: Regenerate.
571 * gdbarch.sh (report_signal_info): New method.
572 * infrun.c (print_signal_received_reason): Invoke gdbarch
573 report_signal_info hook if present.
574
baf8791e
AB
5752020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
576
577 * python/py-registers.c : Add 'unordered_map' include.
578 (gdbpy_new_reggroup): Renamed to...
579 (gdbpy_get_reggroup): ...this. Update to only create register
580 group descriptors when needed.
581 (gdbpy_reggroup_iter_next): Update.
582
f7306dac
AB
5832020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
584
585 * python/py-registers.c (gdbpy_register_object_data): New static
586 global.
587 (gdbpy_register_object_data_init): New function.
588 (gdbpy_new_register_descriptor): Renamed to...
589 (gdbpy_get_register_descriptor): ...this, and update to reuse
590 existing register descriptors where possible.
591 (gdbpy_register_descriptor_iter_next): Update.
592 (gdbpy_initialize_registers): Register new gdbarch data.
593
05c309a8
SM
5942020-07-21 Simon Marchi <simon.marchi@efficios.com>
595
596 * linux-nat.c (stopped_pids): Make static.
597
d1fd641e
SM
5982020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
599
600 PR ada/26235
601 * gdbtypes.c (ada_discrete_type_low_bound,
602 ada_discrete_type_high_bound): Handle undefined bounds.
603
1de14d77
KR
6042020-07-21 Kamil Rytarowski <n54@gmx.com>
605
606 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
607 declaration.
608 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
609 function.
610
ed810cc7
JB
6112020-07-20 John Baldwin <jhb@FreeBSD.org>
612
613 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
614 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
615 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
616 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
617 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
618 method.
619
ae5369e7
LC
6202020-07-20 Ludovic Courtès <ludo@gnu.org>
621
622 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
623 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
624 which are deprecated in Guile 3.0.
625 * configure.ac (try_guile_versions): Add "guile-3.0".
626 * configure (try_guile_versions): Regenerate.
627 * NEWS: Update entry.
628
68cf161c
LC
6292020-07-20 Ludovic Courtès <ludo@gnu.org>
630 Doug Evans <dje@google.com>
631
632 PR gdb/21104
633 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
634 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
635 USING_GUILE_BEFORE_2_2.
636 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
637 Change type to 'scm_t_port_type *'.
638 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
639 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
640 parameter and honor it. Update callers.
641 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
642 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
643 functions.
644 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
645 USING_GUILE_BEFORE_2_2.
646 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
647 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
648 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
649 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
650 and 'SCM_PORT_TYPE'.
651 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
652 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
653 (gdbscm_memory_port_read, gdbscm_memory_port_write)
654 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
655 [!USING_GUILE_BEFORE_2_2]: New functions.
656 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
657 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
658 'gdbscm_memory_port_read'.
659 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
660 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
661 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
662 function.
663 (ioscm_init_memory_port): Remove.
664 (ioscm_init_memory_port_stream): New function
665 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
666 function.
667 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
668 Return scm_from_uint (0).
669 (gdbscm_set_memory_port_read_buffer_size_x)
670 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
671 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
672 Return scm_from_uint (0).
673 (gdbscm_set_memory_port_write_buffer_size_x)
674 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
675 * configure.ac (try_guile_versions): Add "guile-2.2".
676 * configure: Regenerate.
677 * NEWS: Add entry.
678
aee91db3
TT
6792020-07-18 Tom Tromey <tom@tromey.com>
680
681 * linux-nat.c (linux_multi_process): Remove.
682 (linux_nat_target::supports_multi_process): Return true.
683
0e267416
AB
6842020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
685
686 * arch/riscv.c (riscv_tdesc_cache): Change map type.
687 (riscv_lookup_target_description): Return pointer out of
688 unique_ptr.
689 * target-descriptions.c (allocate_target_description): Add
690 comment.
691 (target_desc_deleter::operator()): Likewise.
692 * target-descriptions.h (struct target_desc_deleter): Moved to
693 gdbsupport/tdesc.h.
694 (target_desc_up): Likewise.
695
f80c8ec4
TT
6962020-07-17 Tom Tromey <tromey@adacore.com>
697
698 * linux-nat.c (linux_nat_target::supports_non_stop)
699 (linux_nat_target::always_non_stop_p): Use "true".
700 (linux_nat_target::supports_disable_randomization): Use "true" and
701 "false".
702
d0ce17d8
CT
7032020-07-16 Caroline Tice <cmtice@google.com>
704
705 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
706 (RNGLIST_HEADER_SIZE64): New constant definition.
707 (struct dwop_section_names): Add rnglists_dwo.
708 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
709 (struct loclist_header): Rename to 'loclists_rnglists_header'.
710 (struct dwo_sections): Add rnglists field.
711 (read_attribut_reprocess): Add tag parameter.
712 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
713 (cu_debug_rnglists_section): New function (decl & definition).
714 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
715 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
716 die whose range is being checked; get rnglist section from
717 cu_debug_rnglists_section, to get from either objfile or dwo file as
718 appropriate. Add cases for DW_RLE_base_addressx,
719 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
720 the base address to DW_RLE_offset_pairs (not to all ranges), moving
721 test inside if-condition and updating complaint message.
722 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
723 dwarf2_rnglists_process.
724 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
725 dwarf2_ranges_process.
726 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
727 need_ranges_base and update comment appropriately. Also pass die tag
728 to dwarf2_ranges_read.
729 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
730 need_ranges_base and update comment appropriately. Also pass die tag
731 to dwarf2_ranges_process.
732 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
733 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
734 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
735 need_ranges_base and update comment appropriately. Also pass die tag
736 to read_attribute_reprocess and dwarf2_ranges_read.
737 (read_loclist_header): Rename function to read_loclists_rnglists_header,
738 and update function comment appropriately.
739 (read_loclist_index): Call read_loclists_rnglists_header instead of
740 read_loclist_header.
741 (read_rnglist_index): New function.
742 (read_attribute_reprocess): Add tag parameter. Add code for
743 DW_FORM_rnglistx, passing tag to read_rnglist_index.
744 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
745
3dcc261c
AB
7462020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
747
748 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
749 being resolved.
750
ccb9eba6
AB
7512020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
752
753 * arch-utils.c (show_architecture): Update formatting of messages.
754
cf88be68
SM
7552020-07-12 Simon Marchi <simon.marchi@efficios.com>
756
757 * gdbtypes.h (struct type) <bounds>: Handle array and string
758 types.
759 * ada-lang.c (assign_aggregate): Use type::bounds on
760 array/string type.
761 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
762 * c-varobj.c (c_number_of_children): Likewise.
763 (c_describe_child): Likewise.
764 * eval.c (evaluate_subexp_for_sizeof): Likewise.
765 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
766 (f_type_print_base): Likewise.
767 * f-valprint.c (f77_array_offset_tbl): Likewise.
768 (f77_get_upperbound): Likewise.
769 (f77_print_array_1): Likewise.
770 * guile/scm-type.c (gdbscm_type_range): Likewise.
771 * m2-typeprint.c (m2_array): Likewise.
772 (m2_is_long_set_of_type): Likewise.
773 * m2-valprint.c (get_long_set_bounds): Likewise.
774 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
775 * python/py-type.c (typy_range): Likewise.
776 * rust-lang.c (rust_internal_print_type): Likewise.
777 * type-stack.c (type_stack::follow_types): Likewise.
778 * valarith.c (value_subscripted_rvalue): Likewise.
779 * valops.c (value_cast): Likewise.
780
509971ae
SM
7812020-07-12 Simon Marchi <simon.marchi@efficios.com>
782
783 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
784 callers to use the equivalent accessor methods.
785
107406b7
SM
7862020-07-12 Simon Marchi <simon.marchi@efficios.com>
787
788 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
789 (struct type) <bit_stride>: New method.
790 (TYPE_BIT_STRIDE): Remove.
791 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
792
bb789949
SM
7932020-07-12 Simon Marchi <simon.marchi@efficios.com>
794
795 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
796 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
797 callers to use the equivalent accessor methods instead.
798
39498edb
SM
7992020-07-12 Simon Marchi <simon.marchi@efficios.com>
800
801 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
802 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
803 callers to use the equivalent accessor methods instead.
804
3b606f38
SM
8052020-07-12 Simon Marchi <simon.marchi@efficios.com>
806
807 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
808 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
809 to use dynamic_prop::kind.
810
064d9cb9
SM
8112020-07-12 Simon Marchi <simon.marchi@efficios.com>
812
813 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
814 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
815 to get the bound property's kind and check against
816 PROP_UNDEFINED.
817
5537ddd0
SM
8182020-07-12 Simon Marchi <simon.marchi@efficios.com>
819
820 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
821 all callers to use type::range_bounds followed by
822 dynamic_prop::{low,high}.
823
8c2e4e06
SM
8242020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
825
826 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
827 const_val, set_const_val, baton, set_locexpr, set_loclist,
828 set_addr_offset, variant_parts, set_variant_parts,
829 original_type, set_original_type>: New methods.
830 <kind>: Rename to...
831 <m_kind>: ... this. Update all users to use the new methods
832 instead.
833 <data>: Rename to...
834 <m_data>: ... this. Update all users to use the new methods
835 instead.
836
7c6f2712
SM
8372020-07-12 Simon Marchi <simon.marchi@efficios.com>
838
839 * gdbtypes.c (get_discrete_bounds): Return failure if
840 the range type's bounds are not both defined and constant
841 values.
842 (get_array_bounds): Update comment. Remove undefined bound check.
843
599088e3
SM
8442020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
845
846 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
847 the type::bounds method directly.
848
c4dfcb36
SM
8492020-07-12 Simon Marchi <simon.marchi@efficios.com>
850
851 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
852 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
853 are used to set the range type's bounds to use set_bounds.
854
0a278aa7
PW
8552020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
856
857 * exec.c (_initialize_exec): Update exec-file-mismatch help.
858
cce20f10
PA
8592020-07-10 Pedro Alves <pedro@palves.net>
860
861 * gdbthread.h (inferior_ref): Define.
862 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
863 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
864 * thread.c
865 (scoped_restore_current_thread::restore):
866 Adjust to gdb::ref_ptr.
867 (scoped_restore_current_thread::~scoped_restore_current_thread):
868 Remove manual decref handling.
869 (scoped_restore_current_thread::scoped_restore_current_thread):
870 Adjust to use
871 inferior_ref::new_reference/thread_info_ref::new_reference.
872 Incref the thread before calling get_frame_id instead of after.
873 Let TARGET_CLOSE_ERROR propagate.
874
6d7aa592
PA
8752020-07-10 Pedro Alves <pedro@palves.net>
876
877 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
878 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
879 NOT_AVAILABLE_ERROR.
880 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
881 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
882
b3e3a4c1
SM
8832020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
884 Pedro Alves <pedro@palves.net>
885
886 PR gdb/26199
887 * infrun.c (threads_are_resumed_pending_p): Delete.
888 (do_target_wait): Remove threads_are_executing and
889 threads_are_resumed_pending_p checks from the inferior_matches
890 lambda. Update comments.
891
d6cc5d98
PA
8922020-07-10 Pedro Alves <pedro@palves.net>
893
894 PR gdb/26199
895 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
896 executing threads.
897
7d3badc6
PA
8982020-07-10 Pedro Alves <pedro@palves.net>
899
900 PR gdb/26199
901 * infrun.c (handle_no_resumed): Handle multiple targets.
902
42bd97a6
PA
9032020-07-10 Pedro Alves <pedro@palves.net>
904
905 PR gdb/26199
906 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
907 target_is_async_p.
908
43667cc6
PA
9092020-07-10 Pedro Alves <pedro@palves.net>
910
911 PR gdb/26199
912 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
913 threads, not all threads.
914
96118d11
PA
9152020-07-10 Pedro Alves <pedro@palves.net>
916
917 PR gdb/26199
918 * remote.c (remote_target::open_1): Pass remote target pointer as
919 data to create_async_event_handler.
920 (remote_async_inferior_event_handler): Mark async event handler
921 before returning if the remote target still has either pending
922 events or unacknowledged notifications.
923
54904d81
JB
9242020-07-10 John Baldwin <jhb@FreeBSD.org>
925
926 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
927 declaration.
928 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
929 function.
930
f37e5866
JB
9312020-07-09 John Baldwin <jhb@FreeBSD.org>
932
933 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
934 inferior_ptid.
935
fc238d4a
JB
9362020-07-09 John Baldwin <jhb@FreeBSD.org>
937
938 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
939 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
940 AT_FREEBSD_PS_STRINGS.
941
6e2469ff
HD
9422020-07-08 Hannes Domani <ssbssa@yahoo.de>
943
944 * auto-load.c (auto_load_objfile_script_1): Convert drive part
945 of debugfile path on Windows.
946
d1076c41
JB
9472020-07-08 John Baldwin <jhb@FreeBSD.org>
948
949 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
950 argument to 'data'.
951
15f3b077
TT
9522020-07-08 Tom Tromey <tromey@adacore.com>
953
954 * ada-lang.c (ada_exception_message_1): Use read_memory.
955
9fc501fd
AB
9562020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
957
958 PR python/22748
959 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
960 special handling for inline frames.
961 * findvar.c (value_of_register_lazy): Skip inline frames when
962 creating lazy register values.
963 * frame.c (frame_id_computed_p): Delete definition.
964 * frame.h (frame_id_computed_p): Delete declaration.
965
64cb3757
AB
9662020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
967
968 * NEWS: Mention additions to Python API.
969 * python/py-arch.c (archpy_register_groups): New function.
970 (arch_object_methods): Add 'register_groups' method.
971 * python/py-registers.c (reggroup_iterator_object): New struct.
972 (reggroup_object): New struct.
973 (gdbpy_new_reggroup): New function.
974 (gdbpy_reggroup_to_string): New function.
975 (gdbpy_reggroup_name): New function.
976 (gdbpy_reggroup_iter): New function.
977 (gdbpy_reggroup_iter_next): New function.
978 (gdbpy_new_reggroup_iterator): New function
979 (gdbpy_initialize_registers): Register new types.
980 (reggroup_iterator_object_type): Define new Python type.
981 (gdbpy_reggroup_getset): New static global.
982 (reggroup_object_type): Define new Python type.
983 * python/python-internal.h
984
0f767f94
AB
9852020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
986
987 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
988 * python/py-arch.c (archpy_registers): New function.
989 (arch_object_methods): Add 'registers' method.
990 * python/py-registers.c: New file.
991 * python/python-internal.h
992 (gdbpy_new_register_descriptor_iterator): Declare.
993 (gdbpy_initialize_registers): Declare.
994 * python/python.c (do_start_initialization): Call
995 gdbpy_initialize_registers.
996 * NEWS: Mention additions to the Python API.
997
87dbc774
AB
9982020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
999
1000 * NEWS: Mention new Python API method.
1001 * python/py-unwind.c (pending_framepy_architecture): New function.
1002 (pending_frame_object_methods): Add architecture method.
1003
3bc98c0c
AB
10042020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1005
1006 * gdbarch.c: Regenerate.
1007 * gdbarch.h: Regenerate.
1008 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1009 (gdbarch_data): Use internal_error for the case where
1010 deprecated_set_gdbarch_data was originally needed.
1011 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1012 and use passed in obstack.
1013 (libunwind_frame_set_descr): Should no longer get back NULL from
1014 gdbarch_data.
1015 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1016 type.
1017 * user-regs.c (user_regs_init): Update parameters, and use passed
1018 in obstack.
1019 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1020 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1021
d8cc8af6
TV
10222020-07-06 Tom de Vries <tdevries@suse.de>
1023
1024 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1025 End-Of-Sequence in lte_is_less_than.
1026 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1027 "gdb: Don't reorder line table entries too much when sorting".
1028
947f7597
TV
10292020-07-06 Tom de Vries <tdevries@suse.de>
1030
1031 PR tui/26205
1032 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1033
1e7c1b22
TV
10342020-07-05 Tom de Vries <tdevries@suse.de>
1035
1036 PR build/26187
1037 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1038 std::uncaught_exceptions instead of deprecated
1039 std::uncaught_exception.
1040
a36158ec
SM
10412020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1042
1043 * macroexp.h (macro_stringify): Return
1044 gdb::unique_xmalloc_ptr<char>.
1045 * macroexp.c (macro_stringify): Likewise.
1046 * macrotab.c (fixup_definition): Update.
1047
14d960c8
SM
10482020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1049
1050 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1051 (lex_one_token): Update.
1052 * macroexp.c (struct macro_buffer) <release>: Return
1053 gdb::unique_xmalloc_ptr<char>.
1054 (macro_stringify): Update.
1055 (macro_expand): Update.
1056 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1057 * macroexp.h (macro_expand_next): Likewise.
1058
211d5b1c
SM
10592020-07-02 Simon Marchi <simon.marchi@efficios.com>
1060
1061 * macroexp.h (macro_lookup_ftype): Remove.
1062 (macro_expand, macro_expand_once, macro_expand_next): Remove
1063 lookup function parameters, add scope parameter.
1064 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1065 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1066 * macroscope.h (standard_macro_lookup): Change parameter type
1067 to macro_scope.
1068 * macroscope.c (standard_macro_lookup): Likewise.
1069 * c-exp.y (lex_one_token): Update.
1070 * macrocmd.c (macro_expand_command): Likewise.
1071 (macro_expand_once_command): Likewise.
1072
b1a35af2
SM
10732020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1074
1075 * inf-loop.c (inferior_event_handler): Remove client_data param.
1076 * inf-loop.h (inferior_event_handler): Likewise.
1077 * infcmd.c (step_1): Adjust.
1078 * infrun.c (proceed): Adjust.
1079 (fetch_inferior_event): Remove client_data param.
1080 (infrun_async_inferior_event_handler): Adjust.
1081 * infrun.h (fetch_inferior_event): Remove `void *` param.
1082 * linux-nat.c (handle_target_event): Adjust.
1083 * record-btrace.c (record_btrace_handle_async_inferior_event):
1084 Adjust.
1085 * record-full.c (record_full_async_inferior_event_handler):
1086 Adjust.
1087 * remote.c (remote_async_inferior_event_handler): Adjust.
1088
1cdf9e33
TT
10892020-07-01 Tom Tromey <tom@tromey.com>
1090
1091 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1092 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1093
32c1e210
TT
10942020-07-01 Tom Tromey <tom@tromey.com>
1095
1096 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1097 tui_gen_win_info.
1098 (tui_win_info::make_window): Merge with
1099 tui_gen_win_info::make_window.
1100 (tui_win_info::make_visible): Move from tui_gen_win_info.
1101 * tui/tui-win.c (tui_win_info::max_width): Move from
1102 tui_gen_win_info.
1103 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1104 type.
1105 <window_factory>: Likewise.
1106 * tui/tui-layout.c (tui_win_info::resize): Move from
1107 tui_gen_win_info.
1108 (make_standard_window): Change return type.
1109 (get_locator_window, tui_get_window_by_name): Likewise.
1110 (tui_layout_window::apply): Remove a cast.
1111 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1112 (struct tui_win_info): Merge with tui_gen_win_info.
1113 (struct tui_gen_win_info): Remove.
1114
a30cb6da
TT
11152020-07-01 Tom Tromey <tom@tromey.com>
1116
1117 * tui/tui-stack.h (struct tui_locator_window): Derive from
1118 tui_win_info.
1119 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1120 <can_box>: New method.
1121
1eb2161f
TT
11222020-07-01 Tom Tromey <tom@tromey.com>
1123
1124 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1125
7134f2eb
TT
11262020-07-01 Tom Tromey <tom@tromey.com>
1127
1128 * tui/tui-regs.c (tui_data_window::display_registers_from)
1129 (tui_data_window::display_registers_from)
1130 (tui_data_window::first_data_item_displayed)
1131 (tui_data_window::delete_data_content_windows): Update.
1132 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1133 Remove.
1134 (tui_data_window::check_register_values): Update.
1135 (tui_data_item_window::rerender): Add parameters. Update.
1136 (tui_data_item_window::refresh_window): Remove.
1137 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1138 virtual.
1139 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1140 tui_gen_win_info.
1141 <refresh_window, max_height, min_height>: Remove.
1142 <rerender>: Add parameters.
1143 <x, y, visible>: New members.
1144 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1145 <m_item_width>: New member.
1146
22b7b041
TT
11472020-07-01 Tom Tromey <tom@tromey.com>
1148
1149 * tui/tui-regs.c (tui_data_window::show_register_group)
1150 (tui_data_window::check_register_values): Update.
1151 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1152 from item_no.
1153
c9753adb
TT
11542020-07-01 Tom Tromey <tom@tromey.com>
1155
1156 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1157 useless "if".
1158
9ab26b4a
TT
11592020-07-01 Tom Tromey <tom@tromey.com>
1160
1161 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1162 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1163
e555083f
TT
11642020-07-01 Tom Tromey <tom@tromey.com>
1165
1166 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1167 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1168 (struct tui_line_or_address): Move from tui-data.h.
1169 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1170 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1171 (tui_cmd_window, tui_source_window_base, tui_source_window)
1172 (tui_disasm_window): Don't declare.
1173 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1174 to tui-winsource.h.
1175 (SINGLE_KEY): Move to tui-stack.c.
1176
7a02bab7
TT
11772020-07-01 Tom Tromey <tom@tromey.com>
1178
1179 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1180 std::string.
1181 * tui/tui-regs.c (class tab_expansion_file): New.
1182 (tab_expansion_file::write): New method.
1183 (tui_register_format): Change return type. Use
1184 tab_expansion_file.
1185 (tui_get_register, tui_data_window::display_registers_from)
1186 (tui_data_item_window::rerender): Update.
1187 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1188 * tui/tui-io.c (tui_expand_tabs): Remove.
1189
ea68593b
TT
11902020-07-01 Tom Tromey <tom@tromey.com>
1191
1192 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1193
a8caed5d
FS
11942020-07-01 Fangrui Song <maskray@google.com>
1195
1196 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1197
9cdf9820
AKS
11982020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1199
1200 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1201 forms for DW_AT_associated and DW_AT_allocated attributes,
1202 which is already checked in function attr_to_dynamic_prop.
1203
a1520ad8
TT
12042020-06-30 Tom Tromey <tromey@adacore.com>
1205
1206 * dwarf2/read.c (quirk_rust_enum): Correctly call
1207 alloc_rust_variant for default-less enum.
1208
5ac58899
TT
12092020-06-30 Tom Tromey <tromey@adacore.com>
1210
1211 PR build/26183:
1212 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1213 gdb::to_string.
1214
19b187a9
SM
12152020-06-29 Simon Marchi <simon.marchi@efficios.com>
1216
1217 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1218 * gdbarch.h: Re-generate.
1219
cd4c4c07
TT
12202020-06-28 Tom Tromey <tom@tromey.com>
1221
1222 * command.h (cmd_types): Remove.
1223 (cmd_type): Don't declare.
1224 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1225 typedef.
1226 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1227 * cli/cli-decode.c (cmd_type): Remove.
1228
05779d57
PA
12292020-06-27 Pedro Alves <palves@redhat.com>
1230
1231 * fork-child.c (prefork_hook): Adjust.
1232 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1233 Delete.
1234 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1235 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1236 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1237 Remove declarations.
1238 (struct inferior) <set_tty, tty>: New methods.
1239 (struct inferior) <terminal>: Rename to ...
1240 (struct inferior) <m_terminal>: ... this and make private.
1241 * main.c (captured_main_1): Adjust.
1242 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1243 (mi_cmd_inferior_tty_show): Adjust.
1244 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1245 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1246
1776e3e5
NA
12472020-06-26 Nick Alcock <nick.alcock@oracle.com>
1248
1249 * configure.ac: Add --enable-libctf: handle --disable-static
1250 properly.
1251 * acinclude.m4: sinclude ../config/enable.m4.
1252 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1253 (LIBCTF): Substitute in.
1254 (CTF_DEPS): New, likewise.
1255 (CLIBS): libctf needs symbols from libbfd: move earlier.
1256 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1257 flags.
1258 * ctfread.c: Surround in ENABLE_LIBCTF.
1259 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1260 * configure: Regenerate.
1261 * config.in: Likewise.
1262
58373b80
SM
12632020-06-25 Simon Marchi <simon.marchi@efficios.com>
1264
1265 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1266
277474ee
SM
12672020-06-25 Simon Marchi <simon.marchi@efficios.com>
1268
1269 * inferior.h (struct inferior) <terminal>: Change type to
1270 gdb::unique_xmalloc_ptr<char>.
1271 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1272 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1273 field, adjust to unique pointer.
1274 (get_inferior_io_terminal): Adjust to unique pointer.
1275
6d74da72
AB
12762020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1277
1278 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1279 registers, not just the known core set of registers.
1280
2e52d038
AB
12812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1282
1283 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1284 fflags, frm, and fcsr registers.
1285 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1286 restore groups.
1287 (riscv_tdesc_unknown_reg): New function.
1288 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1289 tdesc_use_registers.
1290 * riscv-tdep.h (struct gdbarch_tdep): Add
1291 unknown_csrs_first_regnum, unknown_csrs_count,
1292 duplicate_fflags_regnum, duplicate_frm_regnum, and
1293 duplicate_fcsr_regnum fields.
1294
be64fd07
AB
12952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1296
1297 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1298 callback, use the callback (when not null) to help number unknown
1299 registers.
1300 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1301 (tdesc_use_registers): Add extra parameter to declaration.
1302
3b9fce96
AB
13032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1304
1305 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1306 in the file.
1307 (class riscv_pending_register_alias): Likewise.
1308 (riscv_register_feature::register_info): Change 'required_p' field
1309 to 'required', and change its type. Add 'check' member function.
1310 (riscv_register_feature::register_info::check): Define new member
1311 function.
1312 (riscv_xreg_feature): Change initialisation of 'required' field.
1313 (riscv_freg_feature): Likewise.
1314 (riscv_virtual_feature): Likewise.
1315 (riscv_csr_feature): Likewise.
1316 (riscv_check_tdesc_feature): Take extra parameter, the csr
1317 tdesc_feature, rewrite the function to use the new
1318 riscv_register_feature::register_info::check function.
1319 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1320
865bad26
AB
13212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1322
1323 * features/Makefile: Remove all references to the deleted files
1324 below.
1325 * features/riscv/32bit-csr.c: Deleted.
1326 * features/riscv/32bit-csr.xml: Deleted.
1327 * features/riscv/64bit-csr.c: Deleted.
1328 * features/riscv/64bit-csr.xml: Deleted.
1329 * features/riscv/rebuild-csr-xml.sh: Deleted.
1330
ed69cbc8
AB
13312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1332
1333 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1334 whitespace error for declaration of names member variable.
1335 (struct riscv_register_feature): Add new prefer_first_name member
1336 variable, and fix whitespace error in declaration of registers.
1337 (riscv_xreg_feature): Initialize prefer_first_name field.
1338 (riscv_freg_feature): Likewise.
1339 (riscv_virtual_feature): Likewise.
1340 (riscv_csr_feature): Likewise.
1341 (riscv_register_name): Expand on comments. Remove register name
1342 modifications for CSR and virtual registers.
1343
4445e8f5
AB
13442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1345
1346 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1347 errors.
1348
767a879e
AB
13492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1350
1351 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1352 riscv-opc.h.
1353 (class riscv_pending_register_alias): New class.
1354 (riscv_check_tdesc_feature): Take vector of pending aliases and
1355 populate it as appropriate.
1356 (riscv_setup_register_aliases): Delete.
1357 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1358 to riscv_check_tdesc_feature in all cases. Use the vector to
1359 create the register aliases.
1360
bb6e55f3
RO
13612020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1362
1363 * sol2-tdep.c (sol2_static_transform_name): Remove.
1364 (sol2_init_abi): Don't register it.
1365 * gdbarch.sh (static_transform_name): Remove.
1366 * gdbarch.c, gdbarch.h: Regenerate.
1367
1368 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1369 gdbarch_static_transform_name.
1370 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1371 * stabsread.c (define_symbol) <'X'>: Remove.
1372 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1373 handling.
1374 <'V'>: Likewise.
1375 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1376 <'S'>: Remove call to gdbarch_static_transform_name.
1377
c6d36836
RO
13782020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1379
1380 * procfs.c (procfs_pre_trace): New function.
1381 (procfs_target::create_inferior): Pass it to fork_inferior.
1382
a7e6196b
RO
13832020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1384
1385 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1386 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1387 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1388 sol2-tdep.o, sparc-sol2-tdep.o.
1389 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1390 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1391 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1392 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1393
d412e696
RO
13942020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1395
1396 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1397 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1398 Call sol2_init_abi.
1399 Remove calls to set_gdbarch_skip_solib_resolver,
1400 set_gdbarch_core_pid_to_str.
1401 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1402 (i386_sol2_static_transform_name): Remove.
1403 (i386_sol2_init_abi): Call sol2_init_abi.
1404 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1405 set_gdbarch_static_transform_name,
1406 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1407 Use sol2_sigtramp_p.
1408 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1409 (sol2_sigtramp_p): New function.
1410 (sol2_static_transform_name): New function.
1411 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1412 (sol2_init_abi): New function.
1413 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1414 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1415 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1416 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1417 (sparc_sol2_static_transform_name): Remove.
1418 (sparc32_sol2_init_abi): Call sol2_init_abi.
1419 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1420 set_gdbarch_static_transform_name,
1421 set_gdbarch_skip_solib_resolver,
1422 set_gdbarch_core_pid_to_str.
1423 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1424 (sparc_sol2_static_transform_name): Remove
1425 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1426 call sol2_sigtramp_p.
1427 (sparc64_sol2_init_abi): Call sol2_init_abi.
1428 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1429 set_gdbarch_static_transform_name,
1430 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1431
a8654e7d
PW
14322020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1433
1434 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1435 * exec.c (validate_exec_file): If from_tty, set both
1436 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1437 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1438 and from_tty, unconditionally ask a confirmation.
1439
caa7fd04
AB
14402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1441
1442 * target-descriptions.c (tdesc_architecture_name): Protect against
1443 NULL pointer dereference.
1444 (maint_print_xml_tdesc_cmd): New function.
1445 (_initialize_target_descriptions): Register new 'maint print
1446 xml-tdesc' command and give it the filename completer.
1447 * NEWS: Mention new 'maint print xml-tdesc' command.
1448
fbf42f4e
AB
14492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1450
1451 * target-descriptions.c (class tdesc_compatible_info): New class.
1452 (struct target_desc): Change type of compatible vector.
1453 (tdesc_compatible_p): Update for change in type of
1454 target_desc::compatible.
1455 (tdesc_compatible_info_list): New function.
1456 (tdesc_compatible_info_arch_name): New function.
1457 (tdesc_add_compatible): Update for change in type of
1458 target_desc::compatible.
1459 (print_c_tdesc::visit_pre): Likewise.
1460
20821f4e
AB
14612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1462
1463 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1464 whitespace to underscore.
1465 (maint_print_c_tdesc_cmd): Use fake filename for target
1466 descriptions that came from the target.
1467 (_initialize_target_descriptions): Add filename command completion
1468 for 'maint print c-tdesc'.
1469
1fb5ee62
SM
14702020-06-23 Simon Marchi <simon.marchi@efficios.com>
1471
1472 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1473 lines.
1474
fc3ecb3e
SM
14752020-06-23 Simon Marchi <simon.marchi@efficios.com>
1476
1477 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1478 lines.
1479 (dwarf2_find_location_expression): Likewise.
1480 (call_site_parameter_matches): Likewise.
1481 (dwarf2_compile_expr_to_ax): Likewise.
1482 (disassemble_dwarf_expression): Likewise.
1483 (loclist_describe_location): Likewise.
1484
236ef034
PA
14852020-06-23 Pedro Alves <palves@redhat.com>
1486
1487 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1488 progspace-and-thread.h. Include scoped-mock-context.h instead.
1489 (register_to_value_test): Use scoped_mock_context.
1490 * regcache.c: Include "scoped-mock-context.h".
1491 (cooked_read_test): Don't error out if a target is already pushed.
1492 Use scoped_mock_context. Adjust.
1493 * scoped-mock-context.h: New file.
1494
39e7ecca
AB
14952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1496
1497 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1498 initializer.
1499 (ada_language::is_string_type_p): New member function.
1500 * c-lang.c (c_language_data): Delete la_is_string_type_p
1501 initializer.
1502 (cplus_language_data): Likewise.
1503 (asm_language_data): Likewise.
1504 (minimal_language_data): Likewise.
1505 * d-lang.c (d_language_data): Likewise.
1506 * f-lang.c (f_is_string_type_p): Delete function, implementation
1507 moved to f_language::is_string_type_p.
1508 (f_language_data): Delete la_is_string_type_p initializer.
1509 (f_language::is_string_type_p): New member function,
1510 implementation from f_is_string_type_p.
1511 * go-lang.c (go_is_string_type_p): Delete function, implementation
1512 moved to go_language::is_string_type_p.
1513 (go_language_data): Delete la_is_string_type_p initializer.
1514 (go_language::is_string_type_p): New member function,
1515 implementation from go_is_string_type_p.
1516 * language.c (language_defn::is_string_type_p): Define new member
1517 function.
1518 (default_is_string_type_p): Make static, add comment copied from
1519 header file.
1520 (unknown_language_data): Delete la_is_string_type_p initializer.
1521 (unknown_language::is_string_type_p): New member function.
1522 (auto_language_data): Delete la_is_string_type_p initializer.
1523 (auto_language::is_string_type_p): New member function.
1524 * language.h (language_data): Delete la_is_string_type_p field.
1525 (language_defn::is_string_type_p): Declare new function.
1526 (default_is_string_type_p): Delete desclaration, move comment to
1527 definition.
1528 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1529 moved to m2_language::is_string_type_p.
1530 (m2_language_data): Delete la_is_string_type_p initializer.
1531 (m2_language::is_string_type_p): New member function,
1532 implementation from m2_is_string_type_p.
1533 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1534 initializer.
1535 * opencl-lang.c (opencl_language_data): Likewise.
1536 * p-lang.c (pascal_is_string_type_p): Delete function,
1537 implementation moved to pascal_language::is_string_type_p.
1538 (pascal_language_data): Delete la_is_string_type_p initializer.
1539 (pascal_language::is_string_type_p): New member function,
1540 implementation from pascal_is_string_type_p.
1541 * rust-lang.c (rust_is_string_type_p): Delete function,
1542 implementation moved to rust_language::is_string_type_p.
1543 (rust_language_data): Delete la_is_string_type_p initializer.
1544 (rust_language::is_string_type_p): New member function,
1545 implementation from rust_is_string_type_p.
1546 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1547 is_string_type_p.
1548
4ffc13fb
AB
15492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1550
1551 * ada-lang.c (ada_language_data): Delete la_print_typedef
1552 initializer.
1553 (ada_language::print_typedef): New member function.
1554 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1555 (cplus_language_data): Likewise.
1556 (asm_language_data): Likewise.
1557 (minimal_language_data): Likewise.
1558 * d-lang.c (d_language_data): Likewise.
1559 * f-lang.c (f_language_data): Likewise.
1560 (f_language::print_typedef): New member function.
1561 * go-lang.c (go_language_data): Delete la_print_typedef
1562 initializer.
1563 * language.c (language_defn::print_typedef): Define member
1564 function.
1565 (unknown_language_data): Delete la_print_typedef initializer.
1566 (unknown_language::print_typedef): New member function.
1567 (auto_language_data): Delete la_print_typedef initializer.
1568 (auto_language::print_typedef): New member function.
1569 * language.h (language_data): Delete la_print_typedef field.
1570 (language_defn::print_typedef): Declare new member function.
1571 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1572 (default_print_typedef): Delete declaration.
1573 * m2-lang.c (m2_language_data): Delete la_print_typedef
1574 initializer.
1575 (m2_language::print_typedef): New member function.
1576 * objc-lang.c (objc_language_data): Delete la_print_typedef
1577 initializer.
1578 * opencl-lang.c (opencl_language_data): Likewise.
1579 * p-lang.c (pascal_language_data): Likewise.
1580 (pascal_language::print_typedef): New member function.
1581 * rust-lang.c (rust_print_typedef): Delete function,
1582 implementation moved to rust_language::print_typedef.
1583 (rust_language): Delete la_print_typedef initializer.
1584 (rust_language::print_typedef): New member function,
1585 implementation from rust_print_typedef.
1586 * typeprint.c (default_print_typedef): Delete.
1587
d711ee67
AB
15882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1589
1590 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1591 (ada_language::printstr): New member function.
1592 * c-lang.c (c_language_data): Delete la_printstr initializer.
1593 (cplus_language_data): Likewise.
1594 (asm_language_data): Likewise.
1595 (minimal_language_data): Likewise.
1596 * d-lang.c (d_language_data): Likewise.
1597 * f-lang.c (f_printstr): Rename to f_language::printstr.
1598 (f_language_data): Delete la_printstr initializer.
1599 (f_language::printstr): New member function, implementation from
1600 f_printstr.
1601 * go-lang.c (go_language_data): Delete la_printstr initializer.
1602 * language.c (language_defn::printstr): Define new member
1603 function.
1604 (unk_lang_printstr): Delete.
1605 (unknown_language_data): Delete la_printstr initializer.
1606 (unknown_language::printstr): New member function.
1607 (auto_language_data): Delete la_printstr initializer.
1608 (auto_language::printstr): New member function.
1609 * language.h (language_data): Delete la_printstr field.
1610 (language_defn::printstr): Declare new member function.
1611 (LA_PRINT_STRING): Update call to printstr.
1612 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1613 (m2_language_data): Delete la_printstr initializer.
1614 (m2_language::printstr): New member function, implementation from
1615 m2_printstr.
1616 * objc-lang.c (objc_language_data): Delete la_printstr
1617 initializer.
1618 * opencl-lang.c (opencl_language_data): Likewise.
1619 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1620 (pascal_language_data): Delete la_printstr initializer.
1621 (pascal_language::printstr): New member function, implementation
1622 from pascal_printstr.
1623 * p-lang.h (pascal_printstr): Delete declaration.
1624 * rust-lang.c (rust_printstr): Update header comment.
1625 (rust_language_data): Delete la_printstr initializer.
1626 (rust_language::printstr): New member function.
1627
52b50f2c
AB
16282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1629
1630 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1631 (ada_language::printchar): New member function.
1632 * c-lang.c (c_language_data): Delete la_printchar initializer.
1633 (cplus_language_data): Likewise.
1634 (asm_language_data): Likewise.
1635 (minimal_language_data): Likewise.
1636 * d-lang.c (d_language_data): Likewise.
1637 * f-lang.c (f_printchar): Rename to f_language::printchar.
1638 (f_language_data): Delete la_printchar initializer.
1639 (f_language::printchar): New member function, implementation from
1640 f_printchar.
1641 * go-lang.c (go_language_data): Delete la_printchar initializer.
1642 * language.c (unk_lang_printchar): Delete.
1643 (language_defn::printchar): Define new member function.
1644 (unknown_language_data): Delete la_printchar initializer.
1645 (unknown_language::printchar): New member function.
1646 (auto_language_data): Delete la_printchar initializer.
1647 (auto_language::printchar): New member function.
1648 * language.h (language_data): Delete la_printchar field.
1649 (language_defn::printchar): Declare new member function.
1650 (LA_PRINT_CHAR): Update call to printchar.
1651 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1652 (m2_language::printchar): New member function.
1653 * objc-lang.c (objc_language_data): Delete la_printchar
1654 initializer.
1655 * opencl-lang.c (opencl_language_data): Likewise.
1656 * p-lang.c (pascal_language_data): Delete la_printchar
1657 initializer.
1658 (pascal_language::printchar): New member function.
1659 * rust-lang.c (rust_printchar): Rename to
1660 rust_language::printchar.
1661 (rust_language_data): Delete la_printchar initializer.
1662 (rust_language::printchar): New member function, implementation
1663 from rust_printchar.
1664
ec8cec5b
AB
16652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1666
1667 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1668 (ada_language_data): Delete la_emitchar initializer.
1669 (ada_language::emitchar): New member function, implementation from
1670 emit_char.
1671 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1672 (cplus_language_data): Likewise.
1673 (asm_language_data): Likewise.
1674 (minimal_language_data): Likewise.
1675 * d-lang.c (d_language_data): Likewise.
1676 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1677 (f_language_data): Delete la_emitchar initializer.
1678 (f_language::emitchar): New member function, implementation from
1679 f_emit_char.
1680 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1681 * language.c (unk_lang_emit_char): Delete.
1682 (language_defn::emitchar): New member function definition.
1683 (unknown_language_data): Delete la_emitchar initializer.
1684 (unknown_language::emitchar): New member function.
1685 (auto_language_data): Delete la_emitchar initializer.
1686 (auto_language::emitchar): New member function.
1687 * language.h (language_data): Delete la_emitchar field.
1688 (language_defn::emitchar): New member field declaration.
1689 (LA_EMIT_CHAR): Update call to emitchar.
1690 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1691 (m2_language_data): Delete la_emitchar initializer.
1692 (m2_language::emitchar): New member function, implementation from
1693 m2_emit_char.
1694 * objc-lang.c (objc_language_data): Delete la_emitchar
1695 initializer.
1696 * opencl-lang.c (opencl_language_data): Likewise.
1697 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1698 (pascal_language_data): Delete la_emitchar initializer.
1699 (pascal_language::emitchar): New member function, implementation
1700 from pascal_emit_char.
1701 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1702 (rust_language_data): Delete la_emitchar initializer.
1703 (rust_language::emitchar): New member function, implementation
1704 from rust_emitchar.
1705
1bf9c363
AB
17062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1707
1708 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1709 (ada_language_data): Delete la_post_parser initializer.
1710 (ada_language::post_parser): New member function.
1711 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1712 (cplus_language_data): Likewise.
1713 (asm_language_data): Likewise.
1714 (minimal_language_data): Likewise.
1715 * d-lang.c (d_language_data): Likewise.
1716 * f-lang.c (f_language_data): Likewise.
1717 * go-lang.c (go_language_data): Likewise.
1718 * language.c (unknown_language_data): Likewise.
1719 (auto_language_data): Likewise.
1720 * language.h (language_data): Delete la_post_parser field.
1721 (language_defn::post_parser): New member function.
1722 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1723 * objc-lang.c (objc_language_data): Likewise.
1724 * opencl-lang.c (opencl_language_data): Likewise.
1725 * p-lang.c (pascal_language_data): Likewise.
1726 * parse.c (parse_exp_in_context): Update call to post_parser.
1727 (null_post_parser): Delete definition.
1728 * parser-defs.h (null_post_parser): Delete declaration.
1729 * rust-lang.c (rust_language_data): Delete la_post_parser
1730 initializer.
1731
87afa652
AB
17322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1733
1734 * ada-lang.c (parse): Rename to ada_language::parser.
1735 (ada_language_data): Delete la_parser initializer.
1736 (ada_language::parser): New member function, implementation from
1737 parse.
1738 * c-lang.c (c_language_data): Delete la_parser initializer.
1739 (cplus_language_data): Likewise.
1740 (asm_language_data): Likewise.
1741 (minimal_language_data): Likewise.
1742 * d-lang.c (d_language_data): Likewise.
1743 (d_language::parser): New member function.
1744 * f-lang.c (f_language_data): Delete la_parser initializer.
1745 (f_language::parser): New member function.
1746 * go-lang.c (go_language_data): Delete la_parser initializer.
1747 (go_language::parser): New member function.
1748 * language.c (unk_lang_parser): Delete.
1749 (language_defn::parser): Define new member function.
1750 (unknown_language_data): Delete la_parser initializer.
1751 (unknown_language::parser): New member function.
1752 (auto_language_data): Delete la_parser initializer.
1753 (auto_language::parser): New member function.
1754 * language.h (language_data): Delete la_parser field.
1755 (language_defn::parser): Declare new member function.
1756 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1757 (m2_language::parser): New member function.
1758 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1759 * opencl-lang.c (opencl_language_data): Likewise.
1760 * p-lang.c (pascal_language_data): Likewise.
1761 (pascal_language::parser): New member function.
1762 * parse.c (parse_exp_in_context): Update call to parser.
1763 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1764 (rust_language::parser): New member function.
1765
37825800
AB
17662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1767
1768 * top.c (print_gdb_configuration): Print --with-python-libdir
1769 configuration value.
1770
5b860c93
PW
17712020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1772
1773 * NEWS: Mention change to the alias command.
1774
cf00cd6f
PW
17752020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1776
1777 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1778 (alias_command_completer)
1779 (make_alias_options_def_group): New functions.
1780 (alias_opts, alias_option_defs): New struct and array.
1781 (alias_usage_error): Update usage.
1782 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1783 Use option framework.
1784 (_initialize_cli_cmds): Update alias command help.
1785 Update aliases command help.
1786 (show_user):
1787 Add NULL for new default_args lookup_cmd argument.
1788 (valid_command_p): Rename to validate_aliased_command.
1789 Add NULL for new default_args lookup_cmd argument. Verify that the
1790 aliased_command has no default args.
1791 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1792 (lookup_cmd_1, lookup_cmd): New argument default_args.
1793 (add_alias_cmd):
1794 Add NULL for new default_args lookup_cmd argument.
1795 (print_help_for_command): Show default args under the layout
1796 alias some_alias = some_aliased_cmd some_alias_default_arg.
1797 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1798 xfree default_args in destructor.
1799 * cli/cli-script.c (process_next_line, do_define_command):
1800 Add NULL for new default_args lookup_cmd argument.
1801 * command.h: Declare new default_args argument in lookup_cmd
1802 and lookup_cmd_1.
1803 * completer.c (complete_line_internal_1):
1804 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1805 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1806 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1807 Likewise.
1808 * infcmd.c (_initialize_infcmd): Likewise.
1809 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1810 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1811 * python/py-param.c (add_setshow_generic): Likewise.
1812 * remote.c (_initialize_remote): Likewise.
1813 * top.c (execute_command): Prepend default_args if command has some.
1814 (set_verbose):
1815 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1816 * tracepoint.c (validate_actionline, encode_actions_1):
1817 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1818
bd920864
TBA
18192020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1820
1821 * jit.c (jit_read_descriptor): Use bool as the return type.
1822 (jit_breakpoint_re_set_internal): Use bool as the return type.
1823 Invert the return value logic; return true if the jit breakpoint
1824 has been successfully initialized.
1825 (jit_inferior_init): Update the call to
1826 jit_breakpoint_re_set_internal.
1827
f8098322
PA
18282020-06-22 Pedro Alves <palves@redhat.com>
1829
1830 PR gdb/25939
1831 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1832 Use the current inferior instead. Don't return
1833 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1834 wait again.
1835 * sol-thread.c (sol_thread_target::wait): Don't reference
1836 inferior_ptid.
1837 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1838 (sol_update_thread_list_callback): Use the current inferior's pid
1839 instead of inferior_ptid.
1840
196535a6
RO
18412020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1842
1843 * procfs.c: Cleanup many comments.
1844
1845 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1846 (AFTER_WATCHFLAG): Replace by value.
1847
1848 (MAIN_PROC_NAME_FORMAT): Inline ...
1849 (create_procinfo): ... here.
1850
1851 (procfs_debug_inferior): Remove SYS_exec handling.
1852 (syscall_is_exec): Likewise.
1853 (procfs_set_exec_trap): Likewise.
1854
1855 (syscall_is_lwp_exit): Inline in callers.
1856 (syscall_is_exit): Likewise.
1857 (syscall_is_exec): Likewise.
1858 (syscall_is_lwp_create): Likewise.
1859
1860 (invalidate_cache): Remove #if 0 code.
1861
1862 (make_signal_thread_runnable): Remove.
1863 (procfs_target::resume): Remove #if 0 code.
1864
cf6f3e86
RO
18652020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1866
1867 PR gdb/25939
1868 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1869 call ...
1870 (procfs_target::create_inferior): ... here.
1871
48e9cc84
PW
18722020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1873
1874 * exec.c (validate_exec_file): Ensure the build-id is up to
1875 date by calling reopen_exec_file (that checks file timestamp
1876 to decide to re-read the file).
1877
3922b302
PA
18782020-06-18 Pedro Alves <palves@redhat.com>
1879
1880 PR gdb/25412
1881 * gdbthread.h (delete_thread, delete_thread_silent)
1882 (find_thread_ptid): Update comments.
1883 * thread.c (current_thread_): New global.
1884 (is_current_thread): Move higher, and reimplement.
1885 (inferior_thread): Reimplement.
1886 (set_thread_exited): Use bool. Add assertions.
1887 (add_thread_silent): Simplify thread-reuse handling by always
1888 calling delete_thread.
1889 (delete_thread): Remove intro comment.
1890 (find_thread_ptid): Skip exited threads.
1891 (switch_to_thread_no_regs): Write to current_thread_.
1892 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1893 INFERIOR_PTID. Clear current_thread_.
1894
6dbdab44
PA
18952020-06-18 Pedro Alves <palves@redhat.com>
1896
1897 * aix-thread.c (pd_update): Use switch_to_thread.
1898
2da4b788
PA
18992020-06-18 Pedro Alves <palves@redhat.com>
1900
1901 * ravenscar-thread.c (ravenscar_thread_target): Update.
1902 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1903 (ravenscar_thread_target::add_active_thread): ... this. Don't
1904 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1905 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1906
50838d1b
PA
19072020-06-18 Pedro Alves <palves@redhat.com>
1908
1909 * nat/windows-nat.c (current_windows_thread): Remove.
1910 * nat/windows-nat.h (current_windows_thread): Remove.
1911 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1912 Adjust.
1913 (display_selectors): Adjust to fetch the current
1914 windows_thread_info based on inferior_ptid.
1915 (fake_create_process): No longer write to current_windows_thread.
1916 (windows_nat_target::get_windows_debug_event):
1917 Don't set inferior_ptid or current_windows_thread.
1918 (windows_nat_target::wait): Adjust to not rely on
1919 current_windows_thread.
1920 (do_initial_windows_stuff): Now a method of windows_nat_target.
1921 Switch to the last_ptid thread.
1922 (windows_nat_target::attach): Adjust.
1923 (windows_nat_target::detach): Use switch_to_no_thread instead of
1924 writing to inferior_ptid directly.
1925 (windows_nat_target::create_inferior): Adjust.
1926
31ce04e9
PA
19272020-06-18 Pedro Alves <palves@redhat.com>
1928
1929 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1930
1ee1a363
PA
19312020-06-18 Pedro Alves <palves@redhat.com>
1932
1933 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1934 after creating it, instead of writing to inferior_ptid. Don't
1935 write to inferior_ptid.
1936
6d350754
PA
19372020-06-18 Pedro Alves <palves@redhat.com>
1938
1939 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1940
5d971d48
PA
19412020-06-18 Pedro Alves <palves@redhat.com>
1942
1943 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1944 it, instead of writing to inferior_ptid.
1945
86e57d1b
PA
19462020-06-18 Pedro Alves <palves@redhat.com>
1947
1948 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1949 to inferior_ptid.
1950
f2e1c129
PA
19512020-06-18 Pedro Alves <palves@redhat.com>
1952
1953 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1954 instead of writing to inferior_ptid directly.
1955
60db1b85
PA
19562020-06-18 Pedro Alves <palves@redhat.com>
1957
1958 * corelow.c (core_target::close): Use switch_to_no_thread instead
1959 of writing to inferior_ptid directly.
1960 (add_to_thread_list, core_target_open): Use switch_to_thread
1961 instead of writing to inferior_ptid directly.
1962
fe7d6a8d
PA
19632020-06-18 Pedro Alves <palves@redhat.com>
1964
1965 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1966 inferior_ptid.
1967 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1968 inferior_ptid.
1969 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1970 inferior_ptid directly.
1971 (darwin_nat_target::init_thread_list): Switch to thread, instead
1972 of writing to inferior_ptid.
1973 (darwin_nat_target::attach): Don't write to inferior_ptid.
1974 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1975
975f8708
PA
19762020-06-18 Pedro Alves <palves@redhat.com>
1977
1978 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1979 thread.
1980 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1981 Instead use switch_to_thread.
1982 (gnu_nat_target::detach): Use switch_to_no_thread
1983 instead of writing to inferior_ptid directly. Used passed-in
1984 inferior instead of looking up the inferior by pid.
1985
1a204730
PA
19862020-06-18 Pedro Alves <palves@redhat.com>
1987
1988 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1989 inferior_ptid.
1990
ebe84f23
PA
19912020-06-18 Pedro Alves <palves@redhat.com>
1992
1993 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1994 inferior_ptid.
1995 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1996 thread.
1997 (nto_procfs_target::detach): Avoid referencing
1998 inferior_ptid. Use switch_to_no_thread instead of writing to
1999 inferior_ptid directly.
2000 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2001 instead of writing to inferior_ptid directly.
2002 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2003 to thread.
2004
191f02e5
PA
20052020-06-18 Pedro Alves <palves@redhat.com>
2006
2007 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2008 after creating it, instead of writing to inferior_ptid.
2009 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2010 to inferior_ptid directly.
2011 (gdbsim_target::wait): Don't write to inferior_ptid.
2012
0ac55310
PA
20132020-06-18 Pedro Alves <palves@redhat.com>
2014
2015 * remote.c (remote_target::remote_notice_new_inferior): Use
2016 switch_to_thread instead of writing to inferior_ptid directly.
2017 (remote_target::add_current_inferior_and_thread): Use
2018 switch_to_no_thread instead of writing to inferior_ptid directly.
2019 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2020 and switch_to_thread instead of using set_current_inferior or
2021 writing to inferior_ptid directly.
2022
5233f39b
PA
20232020-06-18 Pedro Alves <palves@redhat.com>
2024
2025 * tracectf.c (ctf_target_open): Switch to added thread instead of
2026 writing to inferior_ptid directly.
2027 (ctf_target::close): Use switch_to_no_thread instead of writing to
2028 inferior_ptid directly.
2029
087e161b
PA
20302020-06-18 Pedro Alves <palves@redhat.com>
2031
2032 * tracefile-tfile.c (tfile_target_open): Don't write to
2033 inferior_ptid directly, instead switch to added thread.
2034 (tfile_target::close): Use switch_to_no_thread instead of writing
2035 to inferior_ptid directly.
2036
7fb43e53
PA
20372020-06-18 Pedro Alves <palves@redhat.com>
2038
2039 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2040 (procfs_target::detach): Use switch_to_no_thread
2041 instead of writing to inferior_ptid directly.
2042 (do_attach): Change return type to void. Switch to the added
2043 thread.
2044 (procfs_target::create_inferior): Switch to the added thread.
2045 (procfs_do_thread_registers): Don't write to inferior_ptid.
2046
18493a00
PA
20472020-06-18 Pedro Alves <palves@redhat.com>
2048
2049 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2050 of writing to inferior_ptid.
2051 (scoped_restore_exited_inferior): Delete.
2052 (handle_vfork_child_exec_or_exit): Simplify using
2053 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2054 instead of writing to inferior_ptid.
2055 (THREAD_STOPPED_BY): Delete.
2056 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2057 (thread_stopped_by_hw_breakpoint): Delete.
2058 (save_waitstatus): Use
2059 scoped_restore_current_thread+switch_to_thread, and call
2060 target_stopped_by_watchpoint instead of
2061 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2062 instead of thread_stopped_by_sw_breakpoint, and
2063 target_stopped_by_hw_breakpoint instead of
2064 thread_stopped_by_hw_breakpoint.
2065 (handle_inferior_event)
2066 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2067 inferior_ptid directly, nor
2068 set_current_inferior/set_current_program_space. Use
2069 switch_to_thread / switch_to_inferior_no_thread instead.
2070
a0776b13
PA
20712020-06-18 Pedro Alves <palves@redhat.com>
2072
2073 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2074 instead of writing to inferior_ptid.
2075
6155c136
PA
20762020-06-18 Pedro Alves <palves@redhat.com>
2077
2078 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2079 added thread.
2080 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2081 to the added thread.
2082 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2083 instead of writing to inferior_ptid.
2084
c5316fc6
PA
20852020-06-18 Pedro Alves <palves@redhat.com>
2086
2087 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2088 (register_to_value_test): Mock a program_space too. Heap-allocate
2089 the address space. Don't write to inferior_ptid. Use
2090 switch_to_thread instead.
2091
8df01799
PA
20922020-06-18 Pedro Alves <palves@redhat.com>
2093
2094 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2095 Delete.
2096 (find_signalled_thread()): New, factored out from
2097 linux_make_corefile_notes and adjusted to handle exited threads.
2098 (linux_make_corefile_notes): Adjust to use the new
2099 find_signalled_thread.
2100
41792d68
PA
21012020-06-18 Pedro Alves <palves@redhat.com>
2102
2103 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2104 of saving/restoring inferior_ptid.
2105
612f258a
TT
21062020-06-17 Tom Tromey <tom@tromey.com>
2107
2108 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2109 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2110 declare.
2111 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2112
efb763a5
SM
21132020-06-15 Simon Marchi <simon.marchi@efficios.com>
2114
2115 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2116 of partial symtabs.
2117
2951f6c0
SM
21182020-06-17 Simon Marchi <simon.marchi@efficios.com>
2119
2120 * regformats/reg-arm.dat: Remove.
2121 * regformats/reg-bfin.dat: Remove.
2122 * regformats/reg-cris.dat: Remove.
2123 * regformats/reg-crisv32.dat: Remove.
2124 * regformats/reg-m32r.dat: Remove.
2125 * regformats/reg-tilegx.dat: Remove.
2126 * regformats/reg-tilegx32.dat: Remove.
2127
7d458ea5
SM
21282020-06-17 Simon Marchi <simon.marchi@efficios.com>
2129
2130 * features/Makefile (WHICH): Remove arm files.
2131 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2132 * regformats/arm/arm-with-neon.dat: Remove.
2133 * regformats/arm/arm-with-vfpv2.dat: Remove.
2134 * regformats/arm/arm-with-vfpv3.dat: Remove.
2135
3af96c0d
SM
21362020-06-17 Simon Marchi <simon.marchi@efficios.com>
2137
2138 * features/Makefile (XMLTOC): Remove rx.xml.
2139
b25e22fd
PA
21402020-06-17 Pedro Alves <palves@redhat.com>
2141
2142 * gdbthread.h (thread_control_state) <trap_expected> Update
2143 comments.
2144
a78a19b1
AB
21452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2146
2147 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2148 ada_language::lookup_symbol_nonlocal.
2149 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2150 (ada_language::lookup_symbol_nonlocal): New member function,
2151 implementation from ada_lookup_symbol_nonlocal.
2152 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2153 initializer.
2154 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2155 initializer.
2156 (cplus_language::lookup_symbol_nonlocal): New member function.
2157 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2158 (minimal_language_data) Likewise.
2159 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2160 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2161 initializer.
2162 (d_language::lookup_symbol_nonlocal): New member function.
2163 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2164 initializer.
2165 (f_language::lookup_symbol_nonlocal): New member function.
2166 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2167 initializer.
2168 * language.c (unknown_language_data): Likewise.
2169 (auto_language_data): Likewise.
2170 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2171 field.
2172 (language_defn::lookup_symbol_nonlocal): New member function.
2173 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2174 initializer.
2175 * objc-lang.c (objc_language_data): Likewise.
2176 * opencl-lang.c (opencl_language_data): Likewise.
2177 * p-lang.c (pascal_language_data): Likewise.
2178 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2179 rust_language::lookup_symbol_nonlocal.
2180 (rust_language_data): Delete la_lookup_symbol_nonlocal
2181 initializer.
2182 (rust_language::lookup_symbol_nonlocal): New member function,
2183 implementation from rust_lookup_symbol_nonlocal.
2184 * symtab.c (lookup_symbol_aux): Update call to
2185 lookup_symbol_nonlocal.
2186 (basic_lookup_symbol_nonlocal): Rename to...
2187 (language_defn::lookup_symbol_nonlocal): ...this, and update
2188 header comment. Remove language_defn parameter, and replace with
2189 uses of `this'.
2190 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2191
ebe2334e
AB
21922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2193
2194 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2195 initializer.
2196 (ada_language::value_print_inner): New member function.
2197 * c-lang.c (c_language_data): Delete la_value_print_inner
2198 initializer.
2199 (cplus_language_data): Likewise.
2200 (asm_language_data): Likewise.
2201 (minimal_language_data): Likewise.
2202 * d-lang.c (d_language_data): Likewise.
2203 (d_language::value_print_inner): New member function.
2204 * f-lang.c (f_language_data): Delete la_value_print_inner
2205 initializer.
2206 (f_language::value_print_inner): New member function.
2207 * f-lang.h (f_value_print_innner): Rename to...
2208 (f_value_print_inner): ...this (note spelling of 'inner').
2209 * f-valprint.c (f_value_print_innner): Rename to...
2210 (f_value_print_inner): ...this (note spelling of 'inner').
2211 * go-lang.c (go_language_data): Delete la_value_print_inner
2212 initializer.
2213 (go_language::value_print_inner): New member function.
2214 * language.c (language_defn::value_print_inner): Define new member
2215 function.
2216 (unk_lang_value_print_inner): Delete.
2217 (unknown_language_data): Delete la_value_print_inner initializer.
2218 (unknown_language::value_print_inner): New member function.
2219 (auto_language_data): Delete la_value_print_inner initializer.
2220 (auto_language::value_print_inner): New member function.
2221 * language.h (language_data): Delete la_value_print_inner field.
2222 (language_defn::value_print_inner): Delcare new member function.
2223 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2224 initializer.
2225 (m2_language::value_print_inner): New member function.
2226 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2227 initializer.
2228 * opencl-lang.c (opencl_language_data): Likewise.
2229 * p-lang.c (pascal_language_data): Likewise.
2230 (pascal_language::value_print_inner): New member function.
2231 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2232 initializer.
2233 (rust_language::value_print_inner): New member function.
2234 * valprint.c (do_val_print): Update call to value_print_inner.
2235
a1d1fa3e
AB
22362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2237
2238 * ada-lang.c (ada_language_data): Delete la_value_print
2239 initializer.
2240 (ada_language::value_print): New member function.
2241 * c-lang.c (c_language_data): Delete la_value_print initializer.
2242 (cplus_language_data): Likewise.
2243 (asm_language_data): Likewise.
2244 (minimal_language_data): Likewise.
2245 * d-lang.c (d_language_data): Likewise.
2246 * f-lang.c (f_language_data): Likewise.
2247 * go-lang.c (go_language_data): Likewise.
2248 * language.c (unk_lang_value_print): Delete.
2249 (language_defn::value_print): Define new member function.
2250 (unknown_language_data): Delete la_value_print initializer.
2251 (unknown_language::value_print): New member function.
2252 (auto_language_data): Delete la_value_print initializer.
2253 (auto_language::value_print): New member function.
2254 * language.h (language_data): Delete la_value_print field.
2255 (language_defn::value_print): Declare new member function.
2256 (LA_VALUE_PRINT): Update call to value_print.
2257 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2258 * objc-lang.c (objc_language_data): Likewise.
2259 * opencl-lang.c (opencl_language_data): Likewise.
2260 * p-lang.c (pascal_language_data): Likewise.
2261 (pascal_language::value_print): New member function.
2262 * rust-lang.c (rust_language_data): Delete la_value_print
2263 initializer.
2264
f16a9f57
AB
22652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2266
2267 * ada-lang.c (ada_watch_location_expression): Rename to
2268 ada_language::watch_location_expression.
2269 (ada_language_data): Delete la_watch_location_expression
2270 initializer.
2271 (ada_language::watch_location_expression): New member function,
2272 implementation from ada_watch_location_expression.
2273 * breakpoint.c (watch_command_1): Update call to
2274 watch_location_expression.
2275 * c-lang.c (c_watch_location_expression): Rename to
2276 language_defn::watch_location_expression.
2277 (c_language_data): Delete la_watch_location_expression
2278 initializer.
2279 (cplus_language_data): Likewise.
2280 (asm_language_data): Likewise.
2281 (minimal_language_data): Likewise.
2282 * c-lang.h (c_watch_location_expression): Delete declaration.
2283 * d-lang.c (d_language_data): Delete la_watch_location_expression
2284 initializer.
2285 * f-lang.c (f_language_data): Likewise.
2286 * go-lang.c (go_language_data): Likewise.
2287 * language.c (language_defn::watch_location_expression): Member
2288 function implementation from c_watch_location_expression.
2289 (unknown_language_data): Delete la_watch_location_expression
2290 initializer.
2291 (auto_language_data): Likewise.
2292 * language.h (language_data): Delete la_watch_location_expression
2293 field.
2294 (language_defn::watch_location_expression): Declare new member
2295 function.
2296 * m2-lang.c (m2_language_data): Delete
2297 la_watch_location_expression initializer.
2298 * objc-lang.c (objc_language_data): Likewise.
2299 * opencl-lang.c (opencl_language_data): Likewise.
2300 * p-lang.c (pascal_language_data): Likewise.
2301 * rust-lang.c (rust_watch_location_expression): Rename to
2302 rust_language::watch_location_expression.
2303 (rust_language_data): Delete la_watch_location_expression
2304 initializer.
2305 (rust_language::watch_location_expression): New member function,
2306 implementation from rust_watch_location_expression.
2307
7e56227d
AB
23082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2309
2310 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2311 ada_language::collect_symbol_completion_matches.
2312 (ada_language_data): Delete la_collect_symbol_completion_matches
2313 initializer.
2314 (ada_language::collect_symbol_completion_matches): New member
2315 function, implementation from
2316 ada_collect_symbol_completion_matches.
2317 * c-lang.c (c_language_data): Delete
2318 la_collect_symbol_completion_matches initializer.
2319 (cplus_language_data): Likewise.
2320 (asm_language_data): Likewise.
2321 (minimal_language_data): Likewise.
2322 * d-lang.c (d_language_data): Likewise.
2323 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2324 f_language::collect_symbol_completion_matches.
2325 (f_language_data): Delete la_collect_symbol_completion_matches
2326 initializer.
2327 (f_language::collect_symbol_completion_matches) New member
2328 function, implementation from f_collect_symbol_completion_matches.
2329 * go-lang.c (go_language_data): Delete
2330 la_collect_symbol_completion_matches initializer.
2331 * language.c (unknown_language_data): Likewise.
2332 (auto_language_data): Likewise.
2333 * language.h (language_data): Delete
2334 la_collect_symbol_completion_matches field.
2335 (language_defn::collect_symbol_completion_matches): New member
2336 function.
2337 * m2-lang.c (m2_language_data): Delete
2338 la_collect_symbol_completion_matches initializer.
2339 * objc-lang.c (objc_language_data): Likewise.
2340 * opencl-lang.c (opencl_language_data): Likewise.
2341 * p-lang.c (pascal_language_data): Likewise.
2342 * rust-lang.c (rust_language_data): Likewise.
2343 * symtab.c (default_collect_symbol_completion_matches): Delete.
2344 (collect_symbol_completion_matches): Update call to
2345 collect_symbol_completion_matches.
2346 (collect_symbol_completion_matches_type): Likewise.
2347 * symtab.h (default_collect_symbol_completion_matches): Delete
2348 declaration.
2349
53fc67f8
AB
23502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2351
2352 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2353 (ada_language_data): Delete la_word_break_characters initializer.
2354 (ada_language::word_break_characters): New member function.
2355 * c-lang.c (c_language_data): Delete la_word_break_characters
2356 initializer.
2357 (cplus_language_data): Likewise.
2358 (asm_language_data): Likewise.
2359 (minimal_language_data): Likewise.
2360 * completer.c: Update global comment.
2361 (advance_to_expression_complete_word_point): Update call to
2362 word_break_characters.
2363 (complete_files_symbols): Likewise.
2364 (complete_line_internal_1): Likewise.
2365 (default_completer_handle_brkchars): Likewise.
2366 (skip_quoted_chars): Likewise.
2367 * d-lang.c (d_language_data): Delete la_word_break_characters
2368 initializer.
2369 * f-lang.c (f_word_break_characters): Delete.
2370 (f_language_data): Delete la_word_break_characters initializer.
2371 (f_language::word_break_characters): New member function.
2372 * go-lang.c (go_language_data): Delete la_word_break_characters
2373 initializer.
2374 * language.c (unknown_language_data): Likewise.
2375 (auto_language_data): Likewise.
2376 * language.h (default_word_break_characters): Move declaration to
2377 earlier in the file.
2378 (language_data): Delete la_word_break_characters field.
2379 (language_defn::word_break_characters): New member function.
2380 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2381 initializer.
2382 * objc-lang.c (objc_language_data): Likewise.
2383 * opencl-lang.c (opencl_language_data): Likewise.
2384 * p-lang.c (pascal_language_data): Likewise.
2385 * rust-lang.c (rust_language_data): Likewise.
2386
c9debfb9
AB
23872020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2388
2389 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2390 (ada_language_data): Delete la_get_symbol_name_matcher
2391 initializer.
2392 (language_defn::get_symbol_name_matcher_inner): New member
2393 function.
2394 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2395 initializer.
2396 (cplus_language_data): Likewise.
2397 (cplus_language::get_symbol_name_matcher_inner): New member
2398 function.
2399 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2400 (minimal_language_data): Likewise.
2401 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2402 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2403 initializer.
2404 * dictionary.c (iter_match_first_hashed): Update call to
2405 get_symbol_name_matcher.
2406 (iter_match_next_hashed): Likewise.
2407 (iter_match_next_linear): Likewise.
2408 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2409 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2410 initializer.
2411 (f_language::get_symbol_name_matcher_inner): New member function.
2412 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2413 initializer.
2414 * language.c (default_symbol_name_matcher): Update header comment,
2415 make static.
2416 (language_defn::get_symbol_name_matcher): New definition.
2417 (language_defn::get_symbol_name_matcher_inner): Likewise.
2418 (get_symbol_name_matcher): Delete.
2419 (unknown_language_data): Delete la_get_symbol_name_matcher
2420 initializer.
2421 (auto_language_data): Likewise.
2422 * language.h (language_data): Delete la_get_symbol_name_matcher
2423 field.
2424 (language_defn::get_symbol_name_matcher): New member function.
2425 (language_defn::get_symbol_name_matcher_inner): Likewise.
2426 (default_symbol_name_matcher): Delete declaration.
2427 * linespec.c (find_methods): Update call to
2428 get_symbol_name_matcher.
2429 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2430 initializer.
2431 * minsyms.c (lookup_minimal_symbol): Update call to
2432 get_symbol_name_matcher.
2433 (iterate_over_minimal_symbols): Likewise.
2434 * objc-lang.c (objc_language_data): Delete
2435 la_get_symbol_name_matcher initializer.
2436 * opencl-lang.c (opencl_language_data): Likewise.
2437 * p-lang.c (pascal_language_data): Likewise.
2438 * psymtab.c (psymbol_name_matches): Update call to
2439 get_symbol_name_matcher.
2440 * rust-lang.c (rust_language_data): Delete
2441 la_get_symbol_name_matcher initializer.
2442 * symtab.c (symbol_matches_search_name): Update call to
2443 get_symbol_name_matcher.
2444 (compare_symbol_name): Likewise.
2445
9a49ad8c
AB
24462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2447
2448 * ada-lang.c (ada_language_data): Delete la_compute_program
2449 initializer.
2450 * c-lang.c (c_language_data): Likewise.
2451 (c_language::compute_program): New member function.
2452 (cplus_language_data): Delete la_compute_program initializer.
2453 (cplus_language::compute_program): New member function.
2454 (asm_language_data): Delete la_compute_program initializer.
2455 (minimal_language_data): Likewise.
2456 * c-lang.h (c_compute_program): Update comment.
2457 (cplus_compute_program): Likewise.
2458 * compile/compile-c-support.c (c_compute_program): Likewise.
2459 (cplus_compute_program): Likewise.
2460 * compile/compile.c (compile_to_object): Update call to
2461 la_compute_program.
2462 * d-lang.c (d_language_data): Delete la_compute_program
2463 initializer.
2464 * f-lang.c (f_language_data): Likewise.
2465 * go-lang.c (go_language_data): Likewise.
2466 * language.c (unknown_language_data): Likewise.
2467 (auto_language_data): Likewise.
2468 * language.h (language_data): Delete la_compute_program field.
2469 (language_defn::compute_program): New member function.
2470 * m2-lang.c (m2_language_data): Delete la_compute_program
2471 initializer.
2472 * objc-lang.c (objc_language_data): Likewise.
2473 * opencl-lang.c (opencl_language_data): Likewise.
2474 * p-lang.c (pascal_language_data): Likewise.
2475 * rust-lang.c (rust_language_data): Likewise.
2476
eff93b4d
AB
24772020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2478
2479 * ada-lang.c (ada_language_data) Delete
2480 la_class_name_from_physname initializer.
2481 * c-lang.c (c_language_data): Likewise.
2482 (cplus_language_data): Likewise.
2483 (cplus_language::class_name_from_physname): New member function.
2484 (asm_language_data): Delete la_class_name_from_physname
2485 initializer.
2486 (minimal_language_data): Likewise.
2487 * d-lang.c (d_language_data): Likewise.
2488 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2489 method on language_defn class.
2490 (guess_full_die_structure_name): Likewise.
2491 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2492 initializer.
2493 * go-lang.c (go_language_data): Likewise.
2494 * language.c (language_class_name_from_physname): Delete.
2495 (unk_lang_class_name): Delete.
2496 (unknown_language_data): Delete la_class_name_from_physname
2497 initializer.
2498 (auto_language_data): Likewise.
2499 * language.h (language_data): Delete la_class_name_from_physname
2500 field.
2501 (language_defn::class_name_from_physname): New function.
2502 (language_class_name_from_physname): Delete declaration.
2503 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2504 initializer.
2505 * objc-lang.c (objc_language_data): Likewise.
2506 * opencl-lang.c (opencl_language_data): Likewise.
2507 * p-lang.c (pascal_language_data): Likewise.
2508 * rust-lang.c (rust_language_data): Likewise.
2509
de543742
TT
25102020-06-16 Tom Tromey <tom@tromey.com>
2511
2512 * tui/tui-data.h (STATUS_NAME): New macro.
2513 * tui/tui-layout.c (tui_remove_some_windows)
2514 (initialize_known_windows, tui_register_window)
2515 (tui_layout_split::remove_windows, initialize_layouts)
2516 (tui_new_layout_command): Don't use hard-coded window names.
2517
a350efd4
TT
25182020-06-16 Tom Tromey <tom@tromey.com>
2519
2520 PR tui/25348:
2521 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2522 tui_initialize_readline. Only run once. Call rl_initialize.
2523 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2524 tui_initialize_readline.
2525 * tui/tui-io.c (tui_setup_io): Call
2526 tui_ensure_readline_initialized.
2527 * tui/tui-interp.c (tui_interp::init): Update.
2528
39ec0490
TT
25292020-06-16 Tom Tromey <tom@tromey.com>
2530
2531 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2532 Also preserve the status window.
2533
d2d1ea20
TT
25342020-06-16 Tom Tromey <tom@tromey.com>
2535
2536 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2537 where m_window==nullptr.
2538
66920317
TT
25392020-06-15 Tom Tromey <tromey@adacore.com>
2540
2541 * windows-nat.c (windows_nat::handle_output_debug_string):
2542 Update.
2543 (windows_nat::handle_ms_vc_exception): Update.
2544 * target.h (target_read_string): Change API.
2545 * target.c (target_read_string): Change API.
2546 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2547 Update.
2548 * solib-frv.c (frv_current_sos): Update.
2549 * solib-dsbt.c (dsbt_current_sos): Update.
2550 * solib-darwin.c (darwin_current_sos): Update.
2551 * linux-thread-db.c (inferior_has_bug): Update.
2552 * expprint.c (print_subexp_standard): Update.
2553 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2554 (ada_exception_message_1): Update.
2555
a5d871dd
TT
25562020-06-15 Tom Tromey <tromey@adacore.com>
2557
2558 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2559
670e35fa
TT
25602020-06-15 Tom Tromey <tromey@adacore.com>
2561
2562 * valprint.c (read_string): Update comment.
2563 * target.c (MIN): Remove.
2564 (target_read_string): Rewrite.
2565
f5272a3b
TT
25662020-06-15 Tom Tromey <tromey@adacore.com>
2567
2568 * corefile.c (read_memory_string): Remove.
2569 * ada-valprint.c (ada_value_print_ptr): Update.
2570 * ada-lang.h (ada_tag_name): Change return type.
2571 * ada-lang.c (type_from_tag): Update.
2572 (ada_tag_name_from_tsd): Change return type. Use
2573 target_read_string.
2574 (ada_tag_name): Likewise.
2575 * gdbcore.h (read_memory_string): Don't declare.
2576
2c074f49
HD
25772020-06-14 Hannes Domani <ssbssa@yahoo.de>
2578
2579 * symtab.c (rbreak_command): Ignore Windows drive colon.
2580
6a17d503
SM
25812020-06-12 Simon Marchi <simon.marchi@efficios.com>
2582
2583 * NEWS: Mention removed GDBserver host support.
2584
453c733f
NC
25852020-06-12 Nelson Chu <nelson.chu@sifive.com>
2586
2587 * features/riscv/rebuild-csr-xml.sh: Updated.
2588
2b4e6a3f
TT
25892020-06-11 Tom Tromey <tom@tromey.com>
2590
2591 PR gdb/18318:
2592 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2593
4412332f
JG
25942020-06-09 Jonny Grant <jg@jguk.org>
25952020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2596
2597 * main.c (captured_main_1): Don't print new line after help.
2598 (print_gdb_help): add mailing list and IRC channel information
2599 to --help. Add new lines between items in the footer. Remove
2600 quotes around bug url.
2601
2f33032a
KS
26022020-06-11 Keith Seitz <keiths@redhat.com>
2603
2604 PR gdb/21356
2605 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2606 Resolve typedefs for type length calculations.
2607
7ab96794
TV
26082020-06-10 Tom de Vries <tdevries@suse.de>
2609
2610 PR ada/24713
2611 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2612 (write_psymbols): Enable .gdb_index for ada.
2613 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2614 ada.
2615
e5f3ece2
TV
26162020-06-10 Tom de Vries <tdevries@suse.de>
2617
2618 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2619 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2620 namei" instead of "const char *name" argument.
2621 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2622 dw2_symtab_iter_init.
2623
940da03e
SM
26242020-06-08 Simon Marchi <simon.marchi@efficios.com>
2625
2626 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2627 to use type::field and field::type instead.
2628
b6cdac4b
SM
26292020-06-08 Simon Marchi <simon.marchi@efficios.com>
2630
2631 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2632 to use field::type instead.
2633
5d14b6e5
SM
26342020-06-08 Simon Marchi <simon.marchi@efficios.com>
2635
2636 * gdbtypes.h (struct field) <type, set_type>: New methods.
2637 Rename `type` field to...
2638 <m_type>: ... this. Change references throughout to use type or
2639 set_type methods.
2640 (FIELD_TYPE): Use field::type. Change call sites that modify
2641 the field's type to use field::set_type instead.
2642
3d967001
SM
26432020-06-08 Simon Marchi <simon.marchi@efficios.com>
2644
2645 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2646 to use type::index_type instead.
2647
262abc0d
SM
26482020-06-08 Simon Marchi <simon.marchi@efficios.com>
2649
2650 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2651 methods.
2652 (TYPE_INDEX_TYPE): Use type::index_type.
2653 * gdbtypes.c (create_array_type_with_stride): Likewise.
2654
82836c92
TT
26552020-06-07 Tom Tromey <tom@tromey.com>
2656
2657 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2658 parameter.
2659 (generic_value_print): Update.
2660
940dace9
AB
26612020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2662
2663 Revert commit 982a38f60b0.
2664 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2665
982a38f6
AB
26662020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2667
2668 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2669 avoid use after free.
2670
82f06518
TV
26712020-06-05 Tom de Vries <tdevries@suse.de>
2672
2673 * NEWS: Fix typos.
2674
f8c41851
SM
26752020-06-04 Simon Marchi <simon.marchi@efficios.com>
2676
2677 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2678 the per_bfd object.
2679 (dwarf2_read_debug_names): Likewise.
2680 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2681 object when re-using a per_bfd object with an index.
2682
f9b5d5ea
TV
26832020-06-03 Tom de Vries <tdevries@suse.de>
2684
2685 PR symtab/26046
2686 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2687 children for C++.
2688 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2689 DW_TAG_subprogram.
2690
f6eee2d0
AB
26912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2692
2693 * ada-lang.c (ada_language_data): Delete skip_trampoline
2694 initializer.
2695 * c-lang.c (c_language_data): Likewise.
2696 (cplus_language_data): Likewise.
2697 (cplus_language::skip_trampoline): New member function.
2698 (asm_language_data): Delete skip_trampoline initializer.
2699 (minimal_language_data): Likewise.
2700 * d-lang.c (d_language_data): Likewise.
2701 * f-lang.c (f_language_data): Likewise.
2702 * go-lang.c (go_language_data): Likewise.
2703 * language.c (unk_lang_trampoline): Delete function.
2704 (skip_language_trampoline): Update.
2705 (unknown_language_data): Delete skip_trampoline initializer.
2706 (auto_language_data): Likewise.
2707 * language.h (language_data): Delete skip_trampoline field.
2708 (language_defn::skip_trampoline): New function.
2709 * m2-lang.c (m2_language_data): Delete skip_trampoline
2710 initializer.
2711 * objc-lang.c (objc_skip_trampoline): Delete function, move
2712 implementation to objc_language::skip_trampoline.
2713 (objc_language_data): Delete skip_trampoline initializer.
2714 (objc_language::skip_trampoline): New member function with
2715 implementation from objc_skip_trampoline.
2716 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2717 initializer.
2718 * p-lang.c (pascal_language_data): Likewise.
2719 * rust-lang.c (rust_language_data): Likewise.
2720
0a50df5d
AB
27212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2722
2723 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2724 (ada_language::demangle): New member function.
2725 * c-lang.c (c_language_data): Delete la_demangle initializer.
2726 (cplus_language_data): Delete la_demangle initializer.
2727 (cplus_language::demangle): New member function.
2728 (asm_language_data): Delete la_demangle initializer.
2729 (minimal_language_data): Delete la_demangle initializer.
2730 * d-lang.c (d_language_data): Delete la_demangle initializer.
2731 (d_language::demangle): New member function.
2732 * f-lang.c (f_language_data): Delete la_demangle initializer.
2733 (f_language::demangle): New member function.
2734 * go-lang.c (go_language_data): Delete la_demangle initializer.
2735 (go_language::demangle): New member function.
2736 * language.c (language_demangle): Update.
2737 (unk_lang_demangle): Delete.
2738 (unknown_language_data): Delete la_demangle initializer.
2739 (unknown_language::demangle): New member function.
2740 (auto_language_data): Delete la_demangle initializer.
2741 (auto_language::demangle): New member function.
2742 * language.h (language_data): Delete la_demangle field.
2743 (language_defn::demangle): New function.
2744 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2745 * objc-lang.c (objc_language_data): Delete la_demangle
2746 initializer.
2747 (objc_language::demangle): New member function.
2748 * opencl-lang.c (opencl_language_data): Delete la_demangle
2749 initializer.
2750 * p-lang.c (pascal_language_data): Likewise.
2751 * rust-lang.c (rust_language_data): Likewise.
2752 (rust_language::demangle): New member function.
2753
fbfb0a46
AB
27542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2755
2756 * ada-lang.c (ada_language_data): Delete la_print_type
2757 initializer.
2758 (ada_language::print_type): New member function.
2759 * c-lang.c (c_language_data): Delete la_print_type initializer.
2760 (c_language::print_type): New member function.
2761 (cplus_language_data): Delete la_print_type initializer.
2762 (cplus_language::print_type): New member function.
2763 (asm_language_data): Delete la_print_type initializer.
2764 (asm_language::print_type): New member function.
2765 (minimal_language_data): Delete la_print_type initializer.
2766 (minimal_language::print_type): New member function.
2767 * d-lang.c (d_language_data): Delete la_print_type initializer.
2768 (d_language::print_type): New member function.
2769 * f-lang.c (f_language_data): Delete la_print_type initializer.
2770 (f_language::print_type): New member function.
2771 * go-lang.c (go_language_data): Delete la_print_type initializer.
2772 (go_language::print_type): New member function.
2773 * language.c (unk_lang_print_type): Delete.
2774 (unknown_language_data): Delete la_print_type initializer.
2775 (unknown_language::print_type): New member function.
2776 (auto_language_data): Delete la_print_type initializer.
2777 (auto_language::print_type): New member function.
2778 * language.h (language_data): Delete la_print_type field.
2779 (language_defn::print_type): New function.
2780 (LA_PRINT_TYPE): Update.
2781 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2782 (m2_language::print_type): New member function.
2783 * objc-lang.c (objc_language_data): Delete la_print_type
2784 initializer.
2785 (objc_language::print_type): New member function.
2786 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2787 to opencl_language::print_type.
2788 (opencl_language_data): Delete la_print_type initializer.
2789 (opencl_language::print_type): New member function, implementation
2790 from opencl_print_type.
2791 * p-lang.c (pascal_language_data): Delete la_print_type
2792 initializer.
2793 (pascal_language::print_type): New member function.
2794 * rust-lang.c (rust_print_type): Delete, implementation moved to
2795 rust_language::print_type.
2796 (rust_language_data): Delete la_print_type initializer.
2797 (rust_language::print_type): New member function, implementation
2798 from rust_print_type.
2799
6f827019
AB
28002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2801
2802 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2803 implementation moves to...
2804 (ada_language::sniff_from_mangled_name): ...here. Update return
2805 type.
2806 (ada_language_data): Delete la_sniff_from_mangled_name
2807 initializer.
2808 * c-lang.c (c_language_data): Likewise.
2809 (cplus_language_data): Likewise.
2810 (cplus_language::sniff_from_mangled_name): New member function,
2811 implementation taken from gdb_sniff_from_mangled_name.
2812 (asm_language_data): Delete la_sniff_from_mangled_name
2813 initializer.
2814 (minimal_language_data): Likewise.
2815 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2816 implementation moves to cplus_language::sniff_from_mangled_name.
2817 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2818 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2819 moves to...
2820 (d_language::sniff_from_mangled_name): ...here.
2821 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2822 * f-lang.c (f_language_data): Likewise.
2823 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2824 moves to...
2825 (go_language::sniff_from_mangled_name): ...here.
2826 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2827 * language.c (language_sniff_from_mangled_name): Delete.
2828 (unknown_language_data): Delete la_sniff_from_mangled_name
2829 initializer.
2830 (auto_language_data): Likewise.
2831 * language.h (language_data): Delete la_sniff_from_mangled_name
2832 field.
2833 (language_defn::sniff_from_mangled_name): New function.
2834 (language_sniff_from_mangled_name): Delete declaration.
2835 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2836 field.
2837 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2838 implementation moves to...
2839 (objc_language::sniff_from_mangled_name): ...here.
2840 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2841 * opencl-lang.c (opencl_language_data): Likewise.
2842 * p-lang.c (pascal_language_data): Likewise.
2843 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2844 implementation moves to...
2845 (rust_language::sniff_from_mangled_name): ...here.
2846 (rust_language_data): Delete la_sniff_from_mangled_name
2847 initializer.
2848 * symtab.c (symbol_find_demangled_name): Call
2849 sniff_from_mangled_name member function.
2850
fb8006fd
AB
28512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2852
2853 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2854 initializer.
2855 * c-lang.c (c_language_data): Likewise.
2856 (cplus_language_data): Likewise.
2857 (cplus_language::search_name_hash): New member function.
2858 (asm_language_data): Delete la_search_name_hash initializer.
2859 (minimal_language_data): Likewise.
2860 * d-lang.c (d_language_data): Likewise.
2861 * dictionary.c (default_search_name_hash): Rename to...
2862 (language_defn::search_name_hash): ...this.
2863 * f-lang.c (f_language_data): Likewise.
2864 (f_language::search_name_hash): New member function.
2865 * go-lang.c (go_language_data): Delete la_search_name_hash
2866 initializer.
2867 * language.c (unknown_language_data): Likewise.
2868 (auto_language_data): Likewise.
2869 * language.h (struct language_data): Delete la_search_name_hash
2870 field.
2871 (language_defn::search_name_hash): Declare new member function.
2872 (default_search_name_hash): Delete declaration.
2873 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2874 initializer.
2875 * objc-lang.c (objc_language_data): Likewise.
2876 * opencl-lang.c (opencl_language_data): Likewise.
2877 * p-lang.c (pascal_language_data): Likewise.
2878 * rust-lang.c (rust_language_data): Likewise.
2879 * symtab.c (search_name_hash): Update call.
2880
8e25bafe
AB
28812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2882
2883 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2884 initializer.
2885 * c-lang.c (class compile_instance): Declare.
2886 (c_language_data): Delete la_get_compile_instance initializer.
2887 (c_language::get_compile_instance): New member function.
2888 (cplus_language_data): Delete la_get_compile_instance initializer.
2889 (cplus_language::get_compile_instance): New member function.
2890 (asm_language_data): Delete la_get_compile_instance initializer.
2891 (minimal_language_data): Likewise.
2892 * c-lang.h (c_get_compile_context): Update comment.
2893 (cplus_get_compile_context): Update comment.
2894 * compile/compile.c (compile_to_object): Update calls, don't rely
2895 on function pointer being NULL.
2896 * d-lang.c (d_language_data): Delete la_get_compile_instance
2897 initializer.
2898 * f-lang.c (f_language_data): Likewise.
2899 * go-lang.c (go_language_data): Likewise.
2900 * language.c (unknown_language_data): Likewise.
2901 (auto_language_data): Likewise.
2902 * language.h (language_data): Delete la_get_compile_instance field.
2903 (language_defn::get_compile_instance): New member function.
2904 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2905 initializer.
2906 * objc-lang.c (objc_language_data): Likewise.
2907 * opencl-lang.c (opencl_language_data): Likewise.
2908 * p-lang.c (pascal_language_data): Likewise.
2909 * rust-lang.c (rust_language_data): Likewise.
2910
4009ee92
AB
29112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2912
2913 * ada-lang.c (ada_add_all_symbols): Update comment.
2914 (ada_iterate_over_symbols): Delete, move implementation to...
2915 (ada_language::iterate_over_symbols): ...here, a new member
2916 function, rewrite to use range based for loop.
2917 (ada_language_data): Delete la_iterate_over_symbols initializer.
2918 * c-lang.c (c_language_data): Likewise.
2919 (cplus_language_data): Likewise.
2920 (asm_language_data): Likewise.
2921 (minimal_language_data): Likewise.
2922 * d-lang.c (d_language_data): Likewise.
2923 * f-lang.c (f_language_data): Likewise.
2924 * go-lang.c (go_language_data): Likewise.
2925 * language.c (unknown_language_data): Likewise.
2926 (auto_language_data): Likewise.
2927 * language.h (language_data): Delete la_iterate_over_symbols field.
2928 (language_defn::iterate_over_symbols): New member function.
2929 (LA_ITERATE_OVER_SYMBOLS): Update.
2930 * linespec.c (iterate_over_all_matching_symtabs): Update.
2931 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2932 initializer.
2933 * objc-lang.c (objc_language_data): Likewise.
2934 * opencl-lang.c (opencl_language_data): Likewise.
2935 * p-lang.c (pascal_language_data): Likewise.
2936 * rust-lang.c (rust_language_data): Likewise.
2937
54f4ca46
AB
29382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2939
2940 * ada-lang.c (ada_language_data): Delete
2941 la_lookup_transparent_type initializer.
2942 * c-lang.c (c_language_data): Likewise.
2943 (cplus_language_data): Likewise.
2944 (cplus_language::lookup_transparent_type): New member function.
2945 (asm_language_data): Delete la_lookup_transparent_type
2946 initializer.
2947 (minimal_language_data): Likewise.
2948 * d-lang.c (d_language_data): Likewise.
2949 * f-lang.c (f_language_data): Likewise.
2950 * go-lang.c (go_language_data): Likewise.
2951 * language.c (unknown_language_data): Likewise.
2952 (auto_language_data): Likewise.
2953 * language.h (struct language_data): Delete
2954 la_lookup_transparent_type field.
2955 (language_defn::lookup_transparent_type): New member function.
2956 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2957 initializer.
2958 * objc-lang.c (objc_language_data): Likewise.
2959 * opencl-lang.c (opencl_language_data): Likewise.
2960 * p-lang.c (pascal_language_data): Likewise.
2961 * rust-lang.c (rust_language_data): Likewise.
2962 * symtab.c (symbol_matches_domain): Update call.
2963
1fb314aa
AB
29642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2965
2966 * ada-lang.c (ada_language_arch_info): Delete function, move
2967 implementation to...
2968 (ada_language::language_arch_info): ...here, a new member
2969 function.
2970 (ada_language_data): Delete la_language_arch_info.
2971 * c-lang.c (c_language_data): Likewise.
2972 (c_language::language_arch_info): New member function.
2973 (cplus_language_arch_info): Delete function, move
2974 implementation to...
2975 (cplus_language::language_arch_info): ...here, a new member
2976 function.
2977 (cplus_language_data): Delete la_language_arch_info.
2978 (asm_language_data): Likewise.
2979 (asm_language::language_arch_info): New member function.
2980 (minimal_language_data): Delete la_language_arch_info.
2981 (minimal_language::language_arch_info): New member function.
2982 * d-lang.c (d_language_arch_info): Delete function, move
2983 implementation to...
2984 (d_language::language_arch_info): ...here, a new member
2985 function.
2986 (d_language_data): Delete la_language_arch_info.
2987 * f-lang.c (f_language_arch_info): Delete function, move
2988 implementation to...
2989 (f_language::language_arch_info): ...here, a new member
2990 function.
2991 (f_language_data): Delete la_language_arch_info.
2992 * go-lang.c (go_language_arch_info): Delete function, move
2993 implementation to...
2994 (go_language::language_arch_info): ...here, a new member
2995 function.
2996 (go_language_data): Delete la_language_arch_info.
2997 * language.c (unknown_language_data): Likewise.
2998 (unknown_language::language_arch_info): New member function.
2999 (auto_language_data): Delete la_language_arch_info.
3000 (auto_language::language_arch_info): New member function.
3001 (language_gdbarch_post_init): Update call to
3002 la_language_arch_info.
3003 * language.h (language_data): Delete la_language_arch_info
3004 function pointer.
3005 (language_defn::language_arch_info): New function.
3006 * m2-lang.c (m2_language_arch_info): Delete function, move
3007 implementation to...
3008 (m2_language::language_arch_info): ...here, a new member
3009 function.
3010 (m2_language_data): Delete la_language_arch_info.
3011 * objc-lang.c (objc_language_arch_info): Delete function, move
3012 implementation to...
3013 (objc_language::language_arch_info): ...here, a new member
3014 function.
3015 (objc_language_data): Delete la_language_arch_info.
3016 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3017 implementation to...
3018 (opencl_language::language_arch_info): ...here, a new member
3019 function.
3020 (opencl_language_data): Delete la_language_arch_info.
3021 * p-lang.c (pascal_language_arch_info): Delete function, move
3022 implementation to...
3023 (pascal_language::language_arch_info): ...here, a new member
3024 function.
3025 (pascal_language_data): Delete la_language_arch_info.
3026 * rust-lang.c (rust_language_arch_info): Delete function, move
3027 implementation to...
3028 (rust_language::language_arch_info): ...here, a new member
3029 function.
3030 (rust_language_data): Delete la_language_arch_info.
3031
48448202
AB
30322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3033
3034 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3035 initializer.
3036 * c-lang.c (c_language_data): Likewise.
3037 (cplus_language_data): Likewise.
3038 (cplus_language::pass_by_reference_info): New method.
3039 (asm_language_data): Delete la_pass_by_reference initializer.
3040 (minimal_language_data): Likewise.
3041 * cp-abi.c (cp_pass_by_reference): Remove use of
3042 default_pass_by_reference.
3043 * d-lang.c (d_language_data): Likewise.
3044 * f-lang.c (f_language_data): Likewise.
3045 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3046 default_pass_by_reference.
3047 * go-lang.c (go_language_data): Likewise.
3048 * language.c (language_pass_by_reference): Update.
3049 (default_pass_by_reference): Delete.
3050 (unknown_language_data): Delete la_pass_by_reference
3051 initializer.
3052 (auto_language_data): Likewise.
3053 * language.h (struct language_data): Delete la_pass_by_reference
3054 field.
3055 (language_defn::pass_by_reference_info): New member function.
3056 (default_pass_by_reference): Delete declaration.
3057 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3058 initializer.
3059 * objc-lang.c (objc_language_data): Likewise.
3060 * opencl-lang.c (opencl_language_data): Likewise.
3061 * p-lang.c (pascal_language_data): Likewise.
3062 * rust-lang.c (rust_language_data): Likewise.
3063
15e5fd35
AB
30642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3065
3066 * ada-lang.c (ada_read_var_value): Delete function, move
3067 implementation to...
3068 (ada_language::read_var_value): ...here.
3069 (ada_language_data): Delete la_read_var_value initializer.
3070 * c-lang.c (c_language_data): Likewise.
3071 (cplus_language_data): Likewise.
3072 (minimal_language_data): Likewise.
3073 * d-lang.c (d_language_data): Likewise.
3074 * f-lang.c (f_language_data): Likewise.
3075 * findvar.c (default_read_var_value): Rename to...
3076 (language_defn::read_var_value): ...this.
3077 * findvar.c (read_var_value): Update header comment, and change to
3078 call member function instead of function pointer.
3079 * go-lang.c (go_language_data): Likewise.
3080 * language.c (unknown_language_data): Delete la_read_var_value
3081 initializer.
3082 (auto_language_data): Likewise.
3083 * language.h (struct language_data): Delete la_read_var_value
3084 field.
3085 (language_defn::read_var_value): New member function.
3086 (default_read_var_value): Delete declaration.
3087 * m2-lang.c (m2_language_data): Delete la_read_var_value
3088 initializer.
3089 * objc-lang.c (objc_language_data): Likewise.
3090 * opencl-lang.c (opencl_language_data): Likewise.
3091 * p-lang.c (pascal_language_data): Likewise.
3092 * rust-lang.c (rust_language_data): Likewise.
3093 * value.h (default_read_var_value): Delete declaration.
3094
5bd40f2a
AB
30952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3096
3097 * ada-lang.c (ada_print_array_index): Delete function, move
3098 implementation to...
3099 (ada_language::print_array_index): ...here.
3100 (ada_language_data): Delete la_print_array_index initializer.
3101 * c-lang.c (c_language_data): Likewise.
3102 (cplus_language_data): Likewise.
3103 (minimal_language_data): Likewise.
3104 * d-lang.c (d_language_data): Likewise.
3105 * f-lang.c (f_language_data): Likewise.
3106 * go-lang.c (go_language_data): Likewise.
3107 * language.c (default_print_array_index): Delete function, move
3108 implementation to...
3109 (language_defn::print_array_index): ...here.
3110 (unknown_language_data): Delete la_print_array_index initializer.
3111 (auto_language_data): Likewise.
3112 * language.h (struct language_data): Delete la_print_array_index
3113 field.
3114 (language_defn::print_array_index): New member function.
3115 (LA_PRINT_ARRAY_INDEX): Update.
3116 (default_print_array_index): Delete declaration.
3117 * m2-lang.c (m2_language_data): Delete la_print_array_index
3118 initializer.
3119 * objc-lang.c (objc_language_data): Likewise.
3120 * opencl-lang.c (opencl_language_data): Likewise.
3121 * p-lang.c (pascal_language_data): Likewise.
3122 * rust-lang.c (rust_language_data): Likewise.
3123
0874fd07
AB
31242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3125
3126 * gdb/ada-lang.c (ada_language_defn): Convert to...
3127 (ada_language_data): ...this.
3128 (class ada_language): New class.
3129 (ada_language_defn): New static global.
3130 * gdb/c-lang.c (c_language_defn): Convert to...
3131 (c_language_data): ...this.
3132 (class c_language): New class.
3133 (c_language_defn): New static global.
3134 (cplus_language_defn): Convert to...
3135 (cplus_language_data): ...this.
3136 (class cplus_language): New class.
3137 (cplus_language_defn): New static global.
3138 (asm_language_defn): Convert to...
3139 (asm_language_data): ...this.
3140 (class asm_language): New class.
3141 (asm_language_defn): New static global.
3142 (minimal_language_defn): Convert to...
3143 (minimal_language_data): ...this.
3144 (class minimal_language): New class.
3145 (minimal_language_defn): New static global.
3146 * gdb/d-lang.c (d_language_defn): Convert to...
3147 (d_language_data): ...this.
3148 (class d_language): New class.
3149 (d_language_defn): New static global.
3150 * gdb/f-lang.c (f_language_defn): Convert to...
3151 (f_language_data): ...this.
3152 (class f_language): New class.
3153 (f_language_defn): New static global.
3154 * gdb/go-lang.c (go_language_defn): Convert to...
3155 (go_language_data): ...this.
3156 (class go_language): New class.
3157 (go_language_defn): New static global.
3158 * gdb/language.c (unknown_language_defn): Remove declaration.
3159 (current_language): Initialize to nullptr, real initialization is
3160 moved to _initialize_language.
3161 (languages): Delete global.
3162 (language_defn::languages): Define.
3163 (set_language_command): Use language_defn::languages.
3164 (set_language): Likewise.
3165 (range_error): Likewise.
3166 (language_enum): Likewise.
3167 (language_def): Likewise.
3168 (add_set_language_command): Use language_def::languages for the
3169 language list, and language_def to lookup language pointers.
3170 (skip_language_trampoline): Use language_defn::languages.
3171 (unknown_language_defn): Convert to...
3172 (unknown_language_data): ...this.
3173 (class unknown_language): New class.
3174 (unknown_language_defn): New static global.
3175 (auto_language_defn): Convert to...
3176 (auto_language_data): ...this.
3177 (class auto_language): New class.
3178 (auto_language_defn): New static global.
3179 (language_gdbarch_post_init): Use language_defn::languages.
3180 (_initialize_language): Initialize current_language.
3181 * gdb/language.h (struct language_defn): Rename to...
3182 (struct language_data): ...this.
3183 (struct language_defn): New.
3184 (auto_language_defn): Delete.
3185 (unknown_language_defn): Delete.
3186 (minimal_language_defn): Delete.
3187 (ada_language_defn): Delete.
3188 (asm_language_defn): Delete.
3189 (c_language_defn): Delete.
3190 (cplus_language_defn): Delete.
3191 (d_language_defn): Delete.
3192 (f_language_defn): Delete.
3193 (go_language_defn): Delete.
3194 (m2_language_defn): Delete.
3195 (objc_language_defn): Delete.
3196 (opencl_language_defn): Delete.
3197 (pascal_language_defn): Delete.
3198 (rust_language_defn): Delete.
3199 * gdb/m2-lang.c (m2_language_defn): Convert to...
3200 (m2_language_data): ...this.
3201 (class m2_language): New class.
3202 (m2_language_defn): New static global.
3203 * gdb/objc-lang.c (objc_language_defn): Convert to...
3204 (objc_language_data): ...this.
3205 (class objc_language): New class.
3206 (objc_language_defn): New static global.
3207 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3208 (opencl_language_data): ...this.
3209 (class opencl_language): New class.
3210 (opencl_language_defn): New static global.
3211 * gdb/p-lang.c (pascal_language_defn): Convert to...
3212 (pascal_language_data): ...this.
3213 (class pascal_language): New class.
3214 (pascal_language_defn): New static global.
3215 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3216 language pointer, update comment format.
3217 * gdb/rust-lang.c (rust_language_defn): Convert to...
3218 (rust_language_data): ...this.
3219 (class rust_language): New class.
3220 (rust_language_defn): New static global.
3221
1313c56e
AB
32222020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3223
3224 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3225 member variable.
3226 <m_stmt_at_address>: New member variable.
3227 (lnp_state_machine::record_line): Don't record some lines, update
3228 tracking of is_stmt at the same address.
3229 (lnp_state_machine::lnp_state_machine): Initialise new member
3230 variables.
3231
b7ed9f3d
ST
32322020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3233
3234 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3235 "-include gnu-nat-mig.h".
3236 * gnu-nat-mig.h: New file.
3237 * gnu-nat.c: Include "gnu-nat-mig.h".
3238 (exc_server, msg_reply_server, notify_server,
3239 process_reply_server): Remove declarations.
3240
14a8ad62
ST
32412020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3242
3243 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3244 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3245 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3246 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3247 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3248 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3249 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3250 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3251 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3252 to gnu_nat_target class.
3253 * gnu-nat.c: Likewise.
3254 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3255 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3256 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3257 object.
3258 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3259 instead of `gnu_target'.
3260
0af5e106
ST
32612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3262
3263 * i386-gnu-tdep.c: Include "gdbcore.h"
3264 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3265 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3266 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3267 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3268 i386_gnu_sigcontext_addr): New functions
3269 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3270 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3271 tdep.
3272
078f2fc9
ST
32732020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3274
3275 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3276 before fork_inferior call. Avoid calling it if target_is_pushed returns
3277 true.
3278
53dff92c
ST
32792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3280
3281 * gnu-nat.h (gnu_target): New variable declaration.
3282 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3283 gnu_target.
3284 * gnu-nat.c (gnu_target): New variable.
3285 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3286 add_thread_silent, and add_thread calls.
3287 (gnu_nat_target::create_inferior): Pass gnu_target to
3288 add_thread_silent, thread_change_ptid call.
3289 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3290 call.
3291
5a8b8627
ST
32922020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3293
3294 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3295 (gnu_nat_target::find_memory_regions): Remove unused
3296 `old_address' variable.
3297
366f550a
ST
32982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3299
3300 * gnu-nat.c: Include "gdbarch.h".
3301
f14871bf
ST
33022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3303
3304 * reply_mig_hack.awk (Error return): Cast function through
3305 void *, to bypass compiler function call check.
3306
c6887cfb
ST
33072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3308
3309 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3310 $(srcdir)/reply_mig_hack.awk.
3311
6930bffe
ST
33122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3313
3314 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3315
112c22ed
JG
33162020-05-30 Jonny Grant <jg@jguk.org>
3317
3318 * configure.ac (ACX_BUGURL): change bug URL to https.
3319
f68f85b5
PA
33202020-05-30 Pedro Alves <palves@redhat.com>
3321
3322 * cp-support.c (replace_typedefs_template): New.
3323 (replace_typedefs_qualified_name): Handle
3324 DEMANGLE_COMPONENT_TEMPLATE.
3325
976ca316
SM
33262020-05-29 Simon Marchi <simon.marchi@efficios.com>
3327
3328 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3329 dwarf2/index-cache.h, dwarf2/index-write.c,
3330 dwarf2/index-write.h, dwarf2/line-header.c,
3331 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3332 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3333 variables and fields from `dwarf2_per_objfile` to just
3334 `per_objfile` throughout.
3335
989ade05
SM
33362020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3337
3338 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3339 <push_dwarf_reg_entry_value>: Add comment.
3340
c47bae85
KB
33412020-05-28 Kevin Buettner <kevinb@redhat.com>
3342 Keith Seitz <keiths@redhat.com>
3343
3344 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3345 instead of PyEval_ReleaseLock.
3346 (class gdbpy_gil): Move to earlier in file.
3347 (finalize_python): Set gdb_python_initialized.
3348 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3349 when not initialized.
3350
44486dcf
SM
33512020-05-28 Simon Marchi <simon.marchi@efficios.com>
3352
3353 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3354 <push_dwarf_reg_entry_value>: Remove assert. Override
3355 per_objfile with caller_per_objfile.
3356
f030440d
TV
33572020-05-28 Tom de Vries <tdevries@suse.de>
3358
3359 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3360 PR gold/15646 workaround to symbol kind "type".
3361
f0fbb768
TT
33622020-05-27 Tom Tromey <tromey@adacore.com>
3363
3364 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3365
af0b2a3e
TT
33662020-05-27 Tom Tromey <tromey@adacore.com>
3367
3368 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3369 Use htab_find_with_hash.
3370 <add_abbrev>: Remove "abbrev_number" parameter.
3371 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3372 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3373 (hash_abbrev): Add comment.
3374 (abbrev_table::lookup_abbrev): Move to header file.
3375 (abbrev_table::read): Update.
3376
7d00ffec
TT
33772020-05-27 Tom Tromey <tromey@adacore.com>
3378
3379 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3380 method.
3381 <canonical_name>: New member.
3382 <raw_name>: Rename from "name".
3383 (partial_die_info): Initialize canonical_name.
3384 (scan_partial_symbols): Check raw_name.
3385 (partial_die_parent_scope, partial_die_full_name)
3386 (add_partial_symbol, add_partial_subprogram)
3387 (add_partial_enumeration, load_partial_dies): Use "name" method.
3388 (partial_die_info::name): New method.
3389 (partial_die_info::read, guess_partial_die_structure_name)
3390 (partial_die_info::fixup): Update.
3391
697bba18
TT
33922020-05-27 Tom Tromey <tromey@adacore.com>
3393
3394 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3395 <get_ref_die_offset>: Inline.
3396 <get_ref_die_offset_complaint>: New method.
3397 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3398 (attribute::get_ref_die_offset_complaint): Rename from
3399 get_ref_die_offset. Just issue complaint.
3400
c17ace43
HD
34012020-05-27 Hannes Domani <ssbssa@yahoo.de>
3402
3403 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3404
96445f0b
HD
34052020-05-27 Hannes Domani <ssbssa@yahoo.de>
3406
3407 * exec.c (exec_file_attach): Use errno value of first openp failure.
3408
ac637ec3
HD
34092020-05-27 Hannes Domani <ssbssa@yahoo.de>
3410
3411 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3412 Don't close thread handle.
3413
17ee85fc
TT
34142020-05-27 Tom Tromey <tom@tromey.com>
3415 Simon Marchi <simon.marchi@efficios.com>
3416
3417 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3418 shared_ptr.
3419 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3420 member.
3421 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3422 dwarf2_per_bfd_objfile_data_key>: New globals.
3423 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3424 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3425 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3426 shared.
3427 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3428 short-circuit when sharing.
3429 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3430 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3431
39b16f87
SM
34322020-05-27 Simon Marchi <simon.marchi@efficios.com>
3433
3434 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3435 to...
3436 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3437 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3438
fcf23d5b
SM
34392020-05-27 Simon Marchi <simon.marchi@efficios.com>
3440
3441 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3442 build_name_components, find_name_components_bounds>:
3443 Add per_objfile parameter.
3444 (struct mapped_index) <symbol_name_at>: Likewise.
3445 (struct mapped_debug_names): Remove constructor.
3446 <dwarf2_per_objfile>: Remove field.
3447 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3448 (mapped_index_base::find_name_components_bounds,
3449 mapped_index_base::build_name_components,
3450 dw2_expand_symtabs_matching_symbol): Likewise.
3451 (class mock_mapped_index) <symbol_name_at>: Likewise.
3452 (check_match): Likewise.
3453 (check_find_bounds_finds): Likewise.
3454 (test_mapped_index_find_name_component_bounds): Update.
3455 (CHECK_MATCH): Update.
3456 (dw2_expand_symtabs_matching): Update.
3457 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3458 per_objfile parameter.
3459 <find_vec_in_debug_names>: Likewise.
3460 <m_per_objfile>: New field.
3461 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3462 parameter.
3463 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3464 (dw2_debug_names_iterator::next): Update.
3465 (dw2_debug_names_lookup_symbol): Update.
3466 (dw2_debug_names_expand_symtabs_for_function): Update.
3467 (dw2_debug_names_map_matching_symbols): Update.
3468 (dw2_debug_names_expand_symtabs_matching): Update.
3469 (dwarf2_read_debug_names): Update.
3470
7188ed02
SM
34712020-05-27 Simon Marchi <simon.marchi@efficios.com>
3472
3473 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3474 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3475 move to dwarf2_per_objfile.
3476 <read_in_chain>: Remove.
3477 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3478 remove_all_cus, age_comp_units>: New methods.
3479 <m_dwarf2_cus>: New member.
3480 (struct dwarf2_per_cu_data) <cu>: Remove.
3481 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3482 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3483 moved to methods of dwarf2_per_objfile.
3484 (dwarf2_clear_marks): Remove.
3485 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3486 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3487 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3488 (dwarf2_per_objfile::remove_all_cus): New.
3489 (class free_cached_comp_units) <~free_cached_comp_units>:
3490 Update.
3491 (load_cu): Update.
3492 (dw2_do_instantiate_symtab): Adjust.
3493 (fill_in_sig_entry_from_dwo_entry): Adjust.
3494 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3495 (cutu_reader::cutu_reader): Likewise.
3496 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3497 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3498 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3499 and dwarf2_per_objfile::age_comp_units.
3500 (load_partial_comp_unit): Update.
3501 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3502 (process_queue): Likewise.
3503 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3504 backlink.
3505 (dwarf2_read_addr_index): Likewise.
3506 (follow_die_offset): Likewise.
3507 (dwarf2_fetch_die_loc_sect_off): Likewise.
3508 (dwarf2_fetch_constant_bytes): Likewise.
3509 (dwarf2_fetch_die_type_sect_off): Likewise.
3510 (follow_die_sig_1): Likewise.
3511 (load_full_type_unit): Likewise.
3512 (read_signatured_type): Likewise.
3513 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3514 (dwarf2_cu::~dwarf2_cu): Remove.
3515 (dwarf2_per_objfile::get_cu): New.
3516 (dwarf2_per_objfile::set_cu): New.
3517 (age_cached_comp_units): Rename to...
3518 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3519 to std::unordered_map.
3520 (free_one_cached_comp_unit): Rename to...
3521 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3522 to std::unordered_map.
3523 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3524 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3525 a dwarf2_per_objfile in data.
3526 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3527 (dwarf2_clear_marks): Remove.
3528
2e671100
SM
35292020-05-27 Simon Marchi <simon.marchi@efficios.com>
3530
3531 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3532 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3533 (init_tu_and_read_dwo_dies): Likewise.
3534 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3535 (cutu_reader::cutu_reader): Likewise.
3536 (load_partial_comp_unit): Likewise.
3537 (process_psymtab_comp_unit): Update.
3538 (build_type_psymtabs_1): Update.
3539 (process_skeletonless_type_unit): Update.
3540 (load_full_comp_unit): Update.
3541 (find_partial_die): Update.
3542 (dwarf2_read_addr_index): Update.
3543 (read_signatured_type): Update.
3544
2e6a9f79
SM
35452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3546
3547 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3548 m_header_read_in>: New fields.
3549 <get_header>: New method.
3550 * dwarf2/read.c (per_cu_header_read_in): Remove.
3551 (dwarf2_per_cu_data::get_header): New.
3552 (dwarf2_per_cu_data::addr_size): Update.
3553 (dwarf2_per_cu_data::offset_size): Update.
3554 (dwarf2_per_cu_data::ref_addr_size): Update.
3555
1b555f17
SM
35562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3557
3558 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3559 (dw2_do_instantiate_symtab): Update.
3560 (queue_and_load_all_dwo_tus): Change parameter from
3561 dwarf2_per_cu_data to dwarf2_cu.
3562 (dwarf2_fetch_die_loc_sect_off): Update.
3563 (dwarf2_fetch_constant_bytes): Update.
3564 (dwarf2_fetch_die_type_sect_off): Update.
3565
8fc0b21d
SM
35662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3567
3568 * dwarf2/read.c (process_full_comp_unit,
3569 process_full_type_unit): Remove per_cu, per_objfile paramters.
3570 Add dwarf2_cu parameter.
3571 (process_queue): Update.
3572
168c9250
SM
35732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3574
3575 * dwarf2/read.c (create_cu_from_index_list): Replace
3576 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3577 (create_cus_from_index_list): Likewise.
3578 (create_cus_from_index): Likewise.
3579 (create_signatured_type_table_from_index): Likewise.
3580 (create_cus_from_debug_names_list): Likewise.
3581 (create_cus_from_debug_names): Likewise.
3582 (dwarf2_read_gdb_index): Update.
3583 (dwarf2_read_debug_names): Update.
3584
e286671b
TT
35852020-05-27 Tom Tromey <tom@tromey.com>
3586 Simon Marchi <simon.marchi@efficios.com>
3587
3588 * dwarf2/read.h (struct dwarf2_per_objfile)
3589 <get_type_for_signatured_type, set_type_for_signatured_type>:
3590 New methods.
3591 <m_type_map>: New member.
3592 (struct signatured_type) <type>: Remove.
3593 * dwarf2/read.c
3594 (dwarf2_per_objfile::get_type_for_signatured_type,
3595 dwarf2_per_objfile::set_type_for_signatured_type): New.
3596 (get_signatured_type): Use new methods.
3597
8adb8487
TT
35982020-05-27 Tom Tromey <tom@tromey.com>
3599 Simon Marchi <simon.marchi@efficios.com>
3600
3601 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3602 (struct dwarf2_per_objfile) <type_units>: New member.
3603 <get_type_unit_group_unshareable>: New method.
3604 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3605 num_symtabs, symtabs>: Remove; move to
3606 type_unit_group_unshareable.
3607 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3608 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3609 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3610
127bbf4b
SM
36112020-05-27 Simon Marchi <simon.marchi@efficios.com>
3612
3613 * dwarf2/read.h (struct dwarf2_per_cu_data):
3614 <dwarf2_per_objfile>: Remove.
3615 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3616 dwarf2_per_objfile.
3617 (create_signatured_type_table_from_index): Likewise.
3618 (create_signatured_type_table_from_debug_names): Likewise.
3619 (create_debug_type_hash_table): Likewise.
3620 (fill_in_sig_entry_from_dwo_entry): Likewise.
3621 (create_type_unit_group): Likewise.
3622 (read_comp_units_from_section): Likewise.
3623 (create_cus_hash_table): Likewise.
3624
f6e649dd
SM
36252020-05-27 Simon Marchi <simon.marchi@efficios.com>
3626
3627 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3628 dwarf2_per_cu_data::dwarf2_per_objfile.
3629 (compute_compunit_symtab_includes): Likewise.
3630 (dwarf2_cu::start_symtab): Likewise.
3631
aa66c379
SM
36322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3633
3634 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3635 parameter.
3636 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3637 (read_namespace_alias): Update.
3638 (lookup_die_type): Update.
3639 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3640 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3641 Update.
3642 (disassemble_dwarf_expression): Update.
3643
120ce1b5
SM
36442020-05-27 Simon Marchi <simon.marchi@efficios.com>
3645
3646 * dwarf2/read.h (struct dwarf2_queue_item): Add
3647 dwarf2_per_objfile parameter, assign new parameter.
3648 <per_objfile>: New field.
3649 * dwarf2/read.c (free_one_cached_comp_unit): Add
3650 dwarf2_per_objfile parameter.
3651 (queue_comp_unit): Likewise.
3652 (dw2_do_instantiate_symtab): Update.
3653 (process_psymtab_comp_unit): Update.
3654 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3655 (process_imported_unit_die): Update.
3656 (queue_and_load_dwo_tu): Update.
3657 (follow_die_offset): Update.
3658 (follow_die_sig_1): Update.
3659
9f47c707
SM
36602020-05-27 Simon Marchi <simon.marchi@efficios.com>
3661
3662 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3663 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3664 (read_call_site_scope): Assign per_objfile.
3665 (dwarf2_per_cu_data::objfile): Remove.
3666 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3667 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3668 dwarf2_per_objfile parameter.
3669 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3670 dwarf2_per_objfile parameter.
3671 (dwarf_expr_reg_to_entry_parameter): Add output
3672 dwarf2_per_objfile parameter.
3673 (locexpr_get_frame_base): Update.
3674 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3675 <push_dwarf_reg_entry_value>: Update.
3676 <call_site_to_target_addr>: Update.
3677 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3678 parameter.
3679 (value_of_dwarf_reg_entry): Update.
3680 (rw_pieced_value): Update.
3681 (indirect_synthetic_pointer): Update.
3682 (dwarf2_evaluate_property): Update.
3683 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3684 parameter.
3685 (locexpr_read_variable): Update.
3686 (locexpr_get_symbol_read_needs): Update.
3687 (loclist_read_variable): Update.
3688
14095eb3
SM
36892020-05-27 Simon Marchi <simon.marchi@efficios.com>
3690
3691 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3692 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3693 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3694 parameter.
3695 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3696 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3697 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3698 parameter.
3699 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3700 sect_variable_value): Add dwarf2_per_objfile parameter.
3701 (class dwarf_evaluate_loc_desc) <dwarf_call,
3702 dwarf_variable_value>: Update.
3703 (fetch_const_value_from_synthetic_pointer): Add
3704 dwarf2_per_objfile parameter.
3705 (fetch_const_value_from_synthetic_pointer): Update.
3706 (coerced_pieced_ref): Update.
3707 (class symbol_needs_eval_context) <dwarf_call,
3708 dwarf_variable_value>: Update.
3709 (dwarf2_compile_expr_to_ax): Update.
3710
3c3cd3d4
SM
37112020-05-27 Simon Marchi <simon.marchi@efficios.com>
3712
3713 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3714 parameter.
3715 (dwarf2_evaluate_loc_desc_full): Update.
3716
82ca3f51
SM
37172020-05-27 Simon Marchi <simon.marchi@efficios.com>
3718
3719 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3720 parameter.
3721 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3722 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3723 dwarf2_per_objfile parameter.
3724 (decode_debug_loc_dwo_addresses): Likewise.
3725 (dwarf2_find_location_expression): Update.
3726 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3727 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3728 parameter.
3729 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3730 parameter.
3731 (locexpr_describe_location_1): Likewise.
3732 (locexpr_describe_location): Update.
3733
4b167ea1
SM
37342020-05-27 Simon Marchi <simon.marchi@efficios.com>
3735
3736 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3737 Remove.
3738 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3739 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3740 (dwarf2_compile_property_to_c): Update.
3741 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3742 use text offset from objfile.
3743 (locexpr_tracepoint_var_ref): Update.
3744 (locexpr_generate_c_location): Update.
3745 (loclist_describe_location): Update.
3746 (loclist_tracepoint_var_ref): Update.
3747 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3748 dwarf2_per_objfile parameter.
3749 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3750 use text offset from objfile.
3751 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3752
89b07335
SM
37532020-05-27 Simon Marchi <simon.marchi@efficios.com>
3754
3755 * dwarf2/expr.h (struct dwarf_expr_context)
3756 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3757 <offset>: Remove.
3758 <per_objfile>: New member.
3759 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3760 dwarf2_per_objfile parameter. Don't set offset, set
3761 per_objfile.
3762 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3763 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3764 a dwarf2_per_objfile object instead of an offset.
3765 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3766 constructor.
3767 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3768 to dwarf2_expr_executor constructor. Don't set offset.
3769 (dwarf2_fetch_cfa_info): Update.
3770 (struct dwarf2_frame_cache) <text_offset>: Remove.
3771 <per_objfile>: New field.
3772 (dwarf2_frame_cache): Update.
3773 (dwarf2_frame_prev_register): Update.
3774 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3775 <dwarf_evaluate_loc_desc>: Add constructor.
3776 (dwarf2_evaluate_loc_desc_full): Update.
3777 (dwarf2_locexpr_baton_eval): Update.
3778 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3779 Add constructor.
3780 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3781
293e7e51
SM
37822020-05-27 Simon Marchi <simon.marchi@efficios.com>
3783
3784 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3785 addr_sized_int_type>: Move to dwarf2_cu.
3786 <int_type>: Move to dwarf2_per_objfile.
3787 (struct dwarf2_per_objfile) <int_type>: Move here.
3788 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3789 addr_sized_int_type>: Move here.
3790 (read_func_scope): Update.
3791 (read_array_type): Update.
3792 (read_tag_string_type): Update.
3793 (attr_to_dynamic_prop): Update.
3794 (dwarf2_per_cu_data::int_type): Rename to...
3795 (dwarf2_per_objfile::int_type): ... this.
3796 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3797 (dwarf2_cu::addr_sized_int_type): ... this.
3798 (read_subrange_type): Update.
3799 (dwarf2_per_cu_data::addr_type): Rename to...
3800 (dwarf2_cu::addr_type): ... this.
3801 (set_die_type): Update.
3802
64874a40
SM
38032020-05-27 Simon Marchi <simon.marchi@efficios.com>
3804
3805 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3806 data through per_cu->cu.
3807
4ab09049
SM
38082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3809
3810 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3811 dwarf2_per_cu_data parameter fo dwarf2_cu.
3812 (lookup_dwo_type_unit): Likewise.
3813 (read_cutu_die_from_dwo): Likewise.
3814 (lookup_dwo_unit): Likewise.
3815 (open_and_init_dwo_file): Likewise.
3816 (lookup_dwo_cutu): Likewise.
3817 (lookup_dwo_comp_unit): Likewise.
3818 (lookup_dwo_type_unit): Likewise.
3819 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3820 (cutu_reader::cutu_reader): Update.
3821
47b14e86
SM
38222020-05-27 Simon Marchi <simon.marchi@efficios.com>
3823
3824 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3825 parameter.
3826 (process_full_type_unit): Likewise.
3827 (process_queue): Update.
3828
43182c09
SM
38292020-05-27 Simon Marchi <simon.marchi@efficios.com>
3830
3831 * dwarf2/read.c (recursively_compute_inclusions): Add
3832 dwarf2_per_objfile parameter.
3833 (compute_compunit_symtab_includes): Likewise.
3834 (process_cu_includes): Update.
3835
7aa104c4
SM
38362020-05-27 Simon Marchi <simon.marchi@efficios.com>
3837
3838 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3839 parameter.
3840 (create_type_unit_group): Update.
3841 (process_psymtab_comp_unit_reader): Update.
3842 (build_type_psymtabs_reader): Update.
3843
e3beb21d
SM
38442020-05-27 Simon Marchi <simon.marchi@efficios.com>
3845
3846 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3847 object through m_this_cu->cu.
3848
d460f660
SM
38492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3850
3851 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3852 the info parameter.
3853 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3854
ab432490
SM
38552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3856
3857 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3858 per_objfile parameter.
3859 (load_full_type_unit): Add per_objfile parameter.
3860 (read_signatured_type): Likewise.
3861 (load_full_comp_unit): Likewise.
3862 (load_cu): Likewise.
3863 (dw2_do_instantiate_symtab): Likewise.
3864 (dw2_get_file_names): Likewise.
3865 (dw2_map_symtabs_matching_filename): Update.
3866 (dw_expand_symtabs_matching_file_matcher): Update.
3867 (dw2_map_symbol_filenames): Update.
3868 (process_psymtab_comp_unit): Add per_objfile parameter.
3869 (build_type_psymtabs_1): Update.
3870 (process_skeletonless_type_unit): Update.
3871 (dwarf2_build_psymtabs_hard): Update.
3872 (load_partial_comp_unit): Add per_objfile parameter.
3873 (scan_partial_symbols): Update.
3874 (load_full_comp_unit): Add per_objfile parameter.
3875 (process_imported_unit_die): Update.
3876 (create_cus_hash_table): Update.
3877 (find_partial_die): Update.
3878 (dwarf2_read_addr_index): Update.
3879 (follow_die_offset): Update.
3880 (dwarf2_fetch_die_loc_sect_off): Update.
3881 (dwarf2_fetch_constant_bytes): Update.
3882 (dwarf2_fetch_die_type_sect_off): Update.
3883 (follow_die_sig_1): Update.
3884 (load_full_type_unit): Add per_objfile parameter.
3885 (read_signatured_type): Likewise.
3886
313bad1b
SM
38872020-05-27 Simon Marchi <simon.marchi@efficios.com>
3888
3889 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3890 of objfile_name.
3891
c3699833
SM
38922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3893
3894 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3895 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3896 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3897 field.
3898 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3899 (create_cus_from_index): Update.
3900 (dwarf2_read_gdb_index): Update.
3901 (create_cus_from_debug_names): Update.
3902 (dwarf2_read_debug_names): Update.
3903 (get_abbrev_section_for_cu): Update.
3904 (create_all_comp_units): Update.
3905 (read_attribute_value): Update.
3906 (get_debug_line_section): Update.
3907 * dwarf2/index-cache.c (index_cache::store): Update.
3908 * dwarf2/index-write.c (save_gdb_index_command): Update.
3909 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3910
1859c670
SM
39112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3912
3913 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3914 member.
3915 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3916 dwarf2_per_cu_data::per_bfd.
3917 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3918 (create_type_unit_group): Likewise.
3919 (queue_comp_unit): Remove reference to
3920 per_cu->dwarf2_per_objfile.
3921 (maybe_queue_comp_unit): Likewise.
3922 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3923 (create_cus_hash_table): Assign new field.
3924
5e22e966
SM
39252020-05-27 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * dwarf2/read.c: Replace
3928 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3929 dwarf2_cu->per_objfile throughout.
3930
97a1449a
SM
39312020-05-27 Simon Marchi <simon.marchi@efficios.com>
3932
3933 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3934 parameter, don't use per_cu->dwarf2_per_objfile.
3935 (dw2_instantiate_symtab): Likewise.
3936 (dw2_find_last_source_symtab): Update.
3937 (dw2_map_expand_apply): Update.
3938 (dw2_lookup_symbol): Update.
3939 (dw2_expand_symtabs_for_function): Update.
3940 (dw2_expand_all_symtabs): Update.
3941 (dw2_expand_symtabs_with_fullname): Update.
3942 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3943 don't use per_cu->dwarf2_per_objfile.
3944 (dw2_expand_marked_cus): Update.
3945 (dw2_find_pc_sect_compunit_symtab): Update.
3946 (dw2_debug_names_lookup_symbol): Update.
3947 (dw2_debug_names_expand_symtabs_for_function): Update.
3948 (dw2_debug_names_map_matching_symbols): Update.
3949 (dwarf2_psymtab::expand_psymtab): Update.
3950
9e021579
SM
39512020-05-27 Simon Marchi <simon.marchi@efficios.com>
3952
3953 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3954 <per_objfile>: New member.
3955 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3956 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3957 call to dwarf2_cu.
3958 (cutu_reader::cutu_reader): Update.
3959 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3960
ae090bdb
SM
39612020-05-27 Simon Marchi <simon.marchi@efficios.com>
3962
3963 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3964 struct dwarf2_per_objfile.
3965 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3966 dwarf2_per_bfd.
3967 * dwarf2/read.c (set_die_type): Update.
3968 (get_die_type_at_offset): Update.
3969
af758d11
SM
39702020-05-27 Tom Tromey <tom@tromey.com>
3971 Simon Marchi <simon.marchi@efficios.com>
3972
3973 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3974 method.
3975 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3976 get_symtab, set_symtab>: New methods.
3977 <m_symtabs>: New field.
3978 (struct dwarf2_psymtab): Derive from partial_symtab.
3979 <readin_p, get_compunit_symtab>: Declare methods.
3980 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3981 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3982 New methods.
3983 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3984 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3985 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3986 (dw2_symtab_iter_next, dw2_print_stats)
3987 (dw2_expand_symtabs_with_fullname)
3988 (dw2_expand_symtabs_matching_one)
3989 (dw_expand_symtabs_matching_file_matcher)
3990 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3991 (dw2_debug_names_iterator::next)
3992 (dw2_debug_names_map_matching_symbols)
3993 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3994 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3995 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3996 New methods.
3997 (get_compunit_symtab, process_full_comp_unit)
3998 (process_full_type_unit): Update.
3999 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4000
5989a64e
SM
40012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4002
4003 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4004 then introduce a new dwarf2_per_objfile type.
4005 <read_line_string>: Move to the new dwarf2_per_objfile type.
4006 <objfile>: Likewise.
4007 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4008 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4009 dwarf2_per_objfile->per_bfd.
4010 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4011 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4012 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4013 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4014 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4015 (dwarf2_per_objfile::locate_sections): Rename to...
4016 (dwarf2_per_bfd::locate_sections): ... this.
4017 (dwarf2_per_objfile::get_cutu): Rename to...
4018 (dwarf2_per_bfd::get_cutu): ... this.
4019 (dwarf2_per_objfile::get_cu): Rename to...
4020 (dwarf2_per_bfd::get_cu): ... this.
4021 (dwarf2_per_objfile::get_tu): Rename to...
4022 (dwarf2_per_bfd::get_tu): ... this.
4023 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4024 (dwarf2_per_bfd::allocate_per_cu): ... this.
4025 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4026 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4027 (get_gdb_index_contents_ftype): Change parameter from
4028 dwarf2_per_objfile to dwarf2_per_bfd.
4029 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4030 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4031
a50264ba
TT
40322020-05-27 Tom Tromey <tom@tromey.com>
4033 Simon Marchi <simon.marchi@efficios.com>
4034
4035 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4036 (allocate_piece_closure): Set "per_objfile" member.
4037 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4038 (locexpr_describe_location, loclist_describe_location): Use new
4039 member.
4040 * dwarf2/read.c (read_call_site_scope)
4041 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4042 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4043 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4044 handle_data_member_location): Set per_objfile member.
4045 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4046 member.
4047 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4048
d3473f0c
TT
40492020-05-27 Tom Tromey <tom@tromey.com>
4050
4051 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4052 allocate_signatured_type>: Declare new methods.
4053 <m_num_psymtabs>: New member.
4054 (struct dwarf2_per_cu_data) <index>: New member.
4055 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4056 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4057 (create_cu_from_index_list): Use allocate_per_cu.
4058 (create_signatured_type_table_from_index)
4059 (create_signatured_type_table_from_debug_names)
4060 (create_debug_type_hash_table, add_type_unit)
4061 (read_comp_units_from_section): Use allocate_signatured_type.
4062
5717c425
TT
40632020-05-27 Tom Tromey <tom@tromey.com>
4064
4065 * psymtab.c (partial_map_expand_apply)
4066 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4067 (psym_lookup_global_symbol_language)
4068 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4069 (psym_print_stats, psym_expand_symtabs_for_function)
4070 (psym_map_symbol_filenames, psym_map_matching_symbols)
4071 (psym_expand_symtabs_matching)
4072 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4073 (maintenance_check_psymtabs): Update.
4074 * psympriv.h (struct partial_symtab) <readin_p,
4075 get_compunit_symtab>: Add objfile parameter.
4076 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4077 Likewise.
4078 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4079 get_compunit_symtab>: Likewise.
4080 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4081
45940949
TT
40822020-05-27 Tom Tromey <tom@tromey.com>
4083
4084 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4085 member.
4086 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4087 (create_cu_from_index_list)
4088 (create_signatured_type_table_from_index)
4089 (create_signatured_type_table_from_debug_names)
4090 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4091 (dwarf2_create_include_psymtab)
4092 (create_debug_type_hash_table, add_type_unit)
4093 (create_type_unit_group, read_comp_units_from_section)
4094 (dwarf2_compute_name, create_cus_hash_table)
4095 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4096 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4097 obstack.
4098 (dw2_get_real_path): Likewise. Change argument to
4099 dwarf2_per_objfile.
4100
f8c6d152
LM
41012020-05-27 Luis Machado <luis.machado@linaro.org>
4102
4103 PR tdep/26000
4104 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4105 for ldrd (immediate).
4106
e98d2e6d
PW
41072020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4108
4109 * command.h: Add comment giving the name of class_tui.
4110 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4111 create the fake command for the help for class_tui.
4112
53a47a3e
TT
41132020-05-26 Tom Tromey <tromey@adacore.com>
4114
4115 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4116 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4117 (val_atr): New function.
4118 (value_val_atr): Use it.
4119 * ada-valprint.c (print_optional_low_bound): Change low bound
4120 handling for enums.
4121 (val_print_packed_array_elements): Don't call discrete_position.
4122 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4123 discrete_position for enum types.
4124 * language.c (default_print_array_index): Change type.
4125 * language.h (struct language_defn) <la_print_array_index>: Add
4126 index_type parameter, change type of index_value.
4127 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4128 (default_print_array_index): Update.
4129 * valprint.c (maybe_print_array_index): Don't call
4130 value_from_longest. Update.
4131 (value_print_array_elements): Don't call discrete_position.
4132
0bc2354b
TT
41332020-05-26 Tom Tromey <tromey@adacore.com>
4134
4135 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4136 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4137
1218a4bf
CDA
41382020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4139
4140 PR gdb/13519
4141 * avr-tdep.c (avr_integer_to_address): Return data or code
4142 address accordingly to the second 'type' argument of the
4143 function.
4144
92651b1d
MW
41452020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4146
4147 * infcmd.c, inferior.h: (construct_inferior_arguments):
4148 Moved function from here to gdbsupport/common-inferior.{h,cc}
4149
0a4f5f8c
TT
41502020-05-23 Tom Tromey <tom@tromey.com>
4151
4152 Revert commit eca1f90c:
4153 * NEWS: Remove entry for completion styling.
4154 * completer.c (_rl_completion_prefix_display_length): Move
4155 declaration later.
4156 (gdb_fnprint): Revert.
4157 (gdb_display_match_list_1): Likewise.
4158 * cli/cli-style.c (completion_prefix_style)
4159 (completion_difference_style, completion_suffix_style): Remove.
4160 (_initialize_cli_style): Revert.
4161 * cli/cli-style.h (completion_prefix_style)
4162 (completion_difference_style, completion_suffix_style): Don't
4163 declare.
4164
e08bd6c5
PA
41652020-05-24 Pedro Alves <palves@redhat.com>
4166
4167 * symtab.c (completion_list_add_name): Return boolean indication
4168 of whether the symbol matched.
4169 (completion_list_add_symbol): Don't try to remove C++ aliases if
4170 the symbol didn't match in the first place.
4171 * symtab.h (completion_list_add_name): Return bool.
4172
ceacbf6e
SM
41732020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4174
4175 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4176 type::field.
4177
26f16254
JB
41782020-05-23 Joel Brobecker <brobecker@adacore.com>
4179
4180 GDB 9.2 released.
4181
eca1f90c
TT
41822020-05-23 Tom Tromey <tom@tromey.com>
4183
4184 * NEWS: Add entry for completion styling.
4185 * completer.c (_rl_completion_prefix_display_length): Move
4186 declaration earlier.
4187 (gdb_fnprint): Use completion_style.
4188 (gdb_display_match_list_1): Likewise.
4189 * cli/cli-style.c (completion_prefix_style)
4190 (completion_difference_style, completion_suffix_style): New
4191 globals.
4192 (_initialize_cli_style): Register new globals.
4193 * cli/cli-style.h (completion_prefix_style)
4194 (completion_difference_style, completion_suffix_style): Declare.
4195
51e2cfa2
PA
41962020-05-23 Pedro Alves <palves@redhat.com>
4197
4198 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4199 (parse_escape): Use ISDIGIT instead of isdigit.
4200 (puts_debug): Use gdb_isprint instead of isprint.
4201 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4202 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4203 ISSPACE instead of isspace.
4204 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4205 instead of isspace.
4206 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4207 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4208 instead of isxdigit and ISDIGIT instead of isdigit.
4209
80fc5e77
SM
42102020-05-22 Simon Marchi <simon.marchi@efficios.com>
4211
4212 * gdbtypes.h (struct type) <field>: New method.
4213 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4214 or type::field.
4215
3cabb6b0
SM
42162020-05-22 Simon Marchi <simon.marchi@efficios.com>
4217
4218 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4219 (TYPE_FIELDS): Use type::fields. Change all call sites that
4220 modify the propery to use type::set_fields instead.
4221
1f704f76
SM
42222020-05-22 Simon Marchi <simon.marchi@efficios.com>
4223
4224 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4225 type::num_fields instead.
4226
5e33d5f4
SM
42272020-05-22 Simon Marchi <simon.marchi@efficios.com>
4228
4229 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4230 methods.
4231 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4232 that modify the number of fields to use type::set_num_fields
4233 instead.
4234
9392ebb3
TT
42352020-05-22 Tom Tromey <tromey@adacore.com>
4236
4237 * compile/compile-object-load.h (munmap_list_free): Don't
4238 declare.
4239
7c13f4e8
AB
42402020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4241
4242 * annotate.c (annotate_source_line): Update return type, add call
4243 to update current symtab and line.
4244 * annotate.h (annotate_source_line): Update return type, and
4245 extend header comment.
4246 * source.c (info_line_command): Check annotation_level before
4247 calling annotate_source_line.
4248 * stack.c (print_frame_info): If calling annotate_source_line
4249 returns true, then don't print any other source line information.
4250
aa370940
SM
42512020-05-21 Simon Marchi <simon.marchi@efficios.com>
4252
4253 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4254
84d53fa9
SM
42552020-05-21 Simon Marchi <simon.marchi@efficios.com>
4256
4257 * coffread.c (patch_type): Remove NULL check before xfree.
4258 * corefile.c (set_gnutarget): Likewise.
4259 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4260 * exec.c (build_section_table): Likewise.
4261 * remote.c (remote_target::pass_signals): Likewise.
4262 * utils.c (n_spaces): Likewise.
4263 * cli/cli-script.c (document_command): Likewise.
4264 * i386-windows-tdep.c (core_process_module_section): Likewise.
4265 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4266
9d428aae
SM
42672020-05-20 Simon Marchi <simon.marchi@efficios.com>
4268
4269 * symfile.c (reread_symbols): Clear objfile's section_offsets
4270 vector and section indices, re-compute them by calling
4271 sym_offsets.
4272
250106a7
TT
42732020-05-20 Tom Tromey <tromey@adacore.com>
4274
4275 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4276 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4277
9a0bacfb
TV
42782020-05-20 Tom de Vries <tdevries@suse.de>
4279
4280 PR symtab/25833
4281 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4282
7b958a48
AM
42832020-05-20 Alan Modra <amodra@gmail.com>
4284
4285 PR 25993
4286 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4287 bfd_set_filename.
4288 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4289 passed to bfd_set_filename.
4290 * symfile-mem.c (add_vsyscall_page): Likewise for string
4291 passed to symbol_file_add_from_memory.
4292 (symbol_file_add_from_memory): Make name param a const char* and
4293 don't strdup.
4294
c7e97679
AM
42952020-05-20 Alan Modra <amodra@gmail.com>
4296
4297 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4298 rather than accessing bfd->filename directly.
4299 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4300 and use bfd_section_name.
4301 * dwarf2/frame.c (decode_frame_entry): Likewise.
4302 * exec.c (exec_set_section_address): Likewise.
4303 * solib-aix.c (solib_aix_bfd_open): Likewise.
4304 * stap-probe.c (get_stap_base_address): Likewise.
4305 * symfile.c (reread_symbols): Likewise.
4306
563c591b
TT
43072020-05-19 Tom Tromey <tromey@adacore.com>
4308
4309 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4310
f408d82c
SM
43112020-05-19 Simon Marchi <simon.marchi@efficios.com>
4312
4313 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4314
98c59b52
PA
43152020-05-19 Pedro Alves <palves@redhat.com>
4316
4317 * NEWS (set exec-file-mismatch): Adjust entry.
4318 * exec.c: Include "build-id.h".
4319 (validate_exec_file): Try to match build IDs instead of filenames.
4320 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4321 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4322 and pass down 'warn_if_slow'.
4323 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4324 gdb_bfd_open_closure to pass it down.
4325 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4326
4111f652
PA
43272020-05-19 Pedro Alves <palves@redhat.com>
4328
4329 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4330 * target.c (target_fileio_open_1): Rename to target_fileio_open
4331 and make extern. Use bool.
4332 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4333 (target_fileio_read_alloc_1): Adjust.
4334 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4335 (target_fileio_open_warn_if_slow): Delete declaration.
4336
ad80db5b
PA
43372020-05-19 Pedro Alves <palves@redhat.com>
4338
4339 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4340 Adjust all callers.
4341
1d6ce4d3
YS
43422020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4343
4344 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4345 whether disp is negative.
4346
9005fbbb
SM
43472020-05-19 Simon Marchi <simon.marchi@efficios.com>
4348
4349 * symfile.h (struct symfile_segment_data)
4350 <~symfile_segment_data>: Remove.
4351 <segment_info>: Change to std::vector.
4352 * symfile.c (default_symfile_segments): Update.
4353 * elfread.c (elf_symfile_segments): Update.
4354
68b888ff
SM
43552020-05-19 Simon Marchi <simon.marchi@efficios.com>
4356
4357 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4358 <segments>: New.
4359 <segment_bases, segment_sizes>: Remove.
4360 * symfile.c (default_symfile_segments): Update.
4361 * elfread.c (elf_symfile_segments): Update.
4362 * remote.c (remote_target::get_offsets): Update.
4363 * solib-target.c (solib_target_relocate_section_addresses):
4364 Update.
4365
62982abd
SM
43662020-05-19 Simon Marchi <simon.marchi@efficios.com>
4367
4368 * symfile.h (struct symfile_segment_data): Initialize fields.
4369 <~symfile_segment_data>: Add.
4370 (symfile_segment_data_up): New.
4371 (struct sym_fns) <sym_segments>: Return a
4372 symfile_segment_data_up.
4373 (default_symfile_segments): Return a symfile_segment_data_up.
4374 (free_symfile_segment_data): Remove.
4375 (get_symfile_segment_data): Return a symfile_segment_data_up.
4376 * symfile.c (default_symfile_segments): Likewise.
4377 (get_symfile_segment_data): Likewise.
4378 (free_symfile_segment_data): Remove.
4379 (symfile_find_segment_sections): Update.
4380 * elfread.c (elf_symfile_segments): Return a
4381 symfile_segment_data_up.
4382 * remote.c (remote_target::get_offsets): Update.
4383 * solib-target.c (solib_target_relocate_section_addresses):
4384 Update.
4385 * symfile-debug.c (debug_sym_segments): Return a
4386 symfile_segment_data_up.
4387
7f204339
RO
43882020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4389
e52a0f1b
RO
4390 PR build/25981
4391 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4392 Hardcode register numbers.
4393
7f204339
RO
4394 PR build/25981
4395 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4396 procfs_find_LDT_entry): Remove.
4397 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4398 procfs_find_LDT_entry): Remove.
4399 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4400 Remove.
4401
7f32a4d5
PA
44022020-05-17 Pedro Alves <palves@redhat.com>
4403 Andrew Burgess <andrew.burgess@embecosm.com>
4404 Keno Fischer <keno@juliacomputing.com>
4405
4406 PR gdb/25741
4407 * breakpoint.c (build_target_condition_list): Update comments.
4408 (build_target_command_list): Update comments and skip matching
4409 locations.
4410 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4411 a separate function. Simplify "set breakpoint auto-hw off"
4412 handling.
4413 (insert_breakpoints): Update comment.
4414 (tracepoint_locations_match): New parameter. For breakpoints,
4415 compare location types too, if the caller wants to.
4416 (handle_automatic_hardware_breakpoints): New functions.
4417 (bp_location_is_less_than): Also sort by location type and
4418 hardware breakpoint length.
4419 (update_global_location_list): Handle "set breakpoint auto-hw on"
4420 here.
4421 (update_breakpoint_locations): Ask breakpoint_locations_match to
4422 ignore location types.
4423
7d93a1e0
SM
44242020-05-16 Simon Marchi <simon.marchi@efficios.com>
4425
4426 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4427 type::name instead.
4428
d0e39ea2
SM
44292020-05-16 Simon Marchi <simon.marchi@efficios.com>
4430
4431 * gdbtypes.h (struct type) <name, set_name>: New methods.
4432 (TYPE_CODE): Use type::name. Change all call sites used to set
4433 the name to use type::set_name instead.
4434
2dab0c7b
TT
44352020-05-16 Tom Tromey <tom@tromey.com>
4436
4437 * top.c (quit_force): Update.
4438 * infrun.c (handle_no_resumed): Update.
4439 * top.h (all_uis): New function.
4440 (ALL_UIS): Remove.
4441
59f7bd8d
SM
44422020-05-16 Simon Marchi <simon.marchi@efficios.com>
4443
4444 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4445
9bf058f0
PA
44462020-05-16 Pedro Alves <palves@redhat.com>
4447
4448 * ia64-linux-nat.c
4449 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4450 Declare method.
4451 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4452
8f86ae1a
SM
44532020-05-15 Simon Marchi <simon.marchi@efficios.com>
4454
4455 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4456 (sparc64_adi_info): Likewise.
4457
d6bc0792
TT
44582020-05-15 Tom Tromey <tom@tromey.com>
4459
4460 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4461 block_objfile.
4462 (lookup_objfile_from_block): Remove.
4463 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4464 (lookup_global_symbol): Use block_objfile.
4465 * symtab.h (lookup_objfile_from_block): Don't declare.
4466 * printcmd.c (clear_dangling_display_expressions): Use
4467 block_objfile.
4468 * parse.c (operator_check_standard): Use block_objfile.
4469
8c14c3a3
TT
44702020-05-15 Tom Tromey <tom@tromey.com>
4471
4472 * language.c (language_alloc_type_symbol): Set
4473 SYMBOL_SECTION.
4474 * symtab.c (initialize_objfile_symbol): Remove.
4475 (allocate_symbol): Remove.
4476 (allocate_template_symbol): Remove.
4477 * dwarf2/read.c (fixup_go_packaging): Use "new".
4478 (new_symbol): Use "new".
4479 (read_variable): Don't call initialize_objfile_symbol. Use
4480 "new".
4481 (read_func_scope): Use "new".
4482 * xcoffread.c (process_xcoff_symbol): Don't call
4483 initialize_objfile_symbol.
4484 (SYMBOL_DUP): Remove.
4485 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4486 "new".
4487 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4488 (allocate_template_symbol): Don't declare.
4489 (struct symbol): Add copy constructor. Change defaults.
4490 * jit.c (finalize_symtab): Use "new".
4491 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4492 Use "new".
4493 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4494 (common_block_end): Use "new".
4495 * mdebugread.c (parse_symbol): Use "new".
4496 (new_symbol): Likewise.
4497
5b4a1a8d
PW
44982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4499
4500 * NEWS: Mention changes to help and apropos.
4501
57b4f16e
PW
45022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4503
4504 * command.h (enum command_class): Improve comments, document
4505 that class_alias is for user-defined aliases, give the class
4506 name for each class, remove unused class_xdb.
4507 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4508 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4509 by a precise class.
4510 * infcmd.c (_initialize_infcmd): Likewise.
4511 * reverse.c (_initialize_reverse): Likewise.
4512 * stack.c (_initialize_stack): Likewise.
4513 * symfile.c (_initialize_symfile): Likewise.
4514 * tracepoint.c (_initialize_tracepoint): Likewise.
4515
7c05caf7
PW
45162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4517
4518 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4519 when their aliased command is traversed.
4520 (help_cmd): Add fput_command_names_styled call to
4521 output command name and aliases when command has an alias.
4522
3b3aaacb
PW
45232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4524
4525 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4526 * cli/cli-decode.c (help_cmd_list): Declare as static,
4527 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4528 a command together with the command.
4529 (fput_command_name_styled, fput_command_names_styled): New functions.
4530 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4531 fput_command_name_styled.
4532 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4533 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4534
7aa1b46f
PW
45352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4536
4537 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4538 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4539 * command.h (cmd_show_list): Likewise.
4540 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4541 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4542
89bcba74
PW
45432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4544
4545 * unittests/command-def-selftests.c (traverse_command_structure):
4546 Verify all commands of a list have the same prefix command and
4547 that only the top cmdlist commands have a null prefix.
4548
3f4d92eb
PW
45492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4550
4551 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4552 as prefix, not one of its aliases.
4553 (set_cmd_prefix): Remove.
4554 (do_add_cmd): Centralize the setting of the prefix of a command, when
4555 command is defined after its full chain of prefix commands.
4556 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4557 (add_setshow_cmd_full): Likewise.
4558 (update_prefix_field_of_prefixed_commands): New function.
4559 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4560 update_prefix_field_of_prefixed_commands.
4561 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4562 addresses of remote_set_cmdlist and remote_show_cmdlist given
4563 as argument, not the address of an argument.
4564 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4565 * gdb/remote.c (_initialize_remote): Likewise.
4566
0605465f
PW
45672020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4568
4569 * cli/cli-cmds.c (alias_command): Check for an existing alias
4570 using lookup_cmd_composition, as valid_command_p is too strict
4571 and forbids aliases that are the prefix of an existing alias
4572 or command.
4573 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4574 command is properly recognised as a valid command.
4575
58e6ac70
PW
45762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4577
4578 * unittests/help-doc-selftests.c: Rename to
4579 unittests/command-def-selftests.c
4580 * unittests/command-def-selftests.c (help_doc_tests): Update some
4581 comments.
4582 (command_structure_tests, traverse_command_structure): New namespace
4583 and function.
4584 (command_structure_invariants_tests): New function.
4585 (_initialize_command_def_selftests) Renamed from
4586 _initialize_help_doc_selftests, register command_structure_invariants
4587 selftest.
4588
a7b9ceb8
PW
45892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4590
4591 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4592 an alias of 'show'.
4593
b2188a06
JB
45942020-05-15 Joel Brobecker <brobecker@adacore.com>
4595
4596 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4597 ada_is_fixed_point_type. Update all callers.
4598 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4599 all callers.
4600 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4601 Update all callers.
4602 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4603 print_fixed_point_type. Update all callers.
4604 * ada-valprint.c (ada_value_print_num): Replace call to
4605 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4606
a51951c2
KB
46072020-05-14 Kevin Buettner <kevinb@redhat.com>
4608
4609 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4610 processors.
4611 (cpu_supports_bts): Add CV_AMD case.
4612
29d6859f
LM
46132020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4614 Simon Marchi <simon.marchi@efficios.com>
4615
4616 * infrun.c (stop_all_threads): Collect multiple wait events at
4617 each pass.
4618
78134374
SM
46192020-05-14 Simon Marchi <simon.marchi@efficios.com>
4620
4621 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4622 type::code instead.
4623
67607e24
SM
46242020-05-14 Simon Marchi <simon.marchi@efficios.com>
4625
4626 * gdbtypes.h (struct type) <code, set_code>: New methods.
4627 (TYPE_CODE): Use type::code. Change all call sites used to set
4628 the code to use type::set_code instead.
4629
a05575d3
TBA
46302020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4631 Tom de Vries <tdevries@suse.de>
4632 Pedro Alves <palves@redhat.com>
4633
4634 PR threads/25478
4635 * infrun.c (stop_all_threads): Do NOT ignore
4636 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4637 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4638 received.
4639 (handle_no_resumed): Remove code handling a live inferior with no
4640 threads.
4641 * remote.c (has_single_non_exited_thread): New.
4642 (remote_target::update_thread_list): Do not delete a thread if is
4643 the last thread of the process.
4644 * thread.c (thread_select): Call delete_exited_threads instead of
4645 prune_threads.
4646
6ad82919
TBA
46472020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4648
4649 * infrun.c (stop_all_threads): Enable/disable thread events of all
4650 targets. Move a debug message denoting the end of the function
4651 into the SCOPED_EXIT block.
4652
d890404b
TBA
46532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4654
4655 * process-stratum-target.h: Include <set>.
4656 (all_non_exited_process_targets, switch_to_target_no_thread): New
4657 function declarations.
4658 * process-stratum-target.c (all_non_exited_process_targets)
4659 (switch_to_target_no_thread): New function implementations.
4660
293b3ebc
TBA
46612020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4662
4663 * infrun.c (handle_inferior_event): Extract out a piece of code
4664 into...
4665 (mark_non_executing_threads): ...this new function.
4666
7ca9b62a
TBA
46672020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4668
4669 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4670 use.
4671
fc75c28b
TBA
46722020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4673
4674 * regcache.c (regcache_read_pc_protected): New function
4675 implementation that returns 0 if the PC cannot read via
4676 'regcache_read_pc'.
4677 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4678 instead of 'regcache_read_pc'.
4679 (keep_going_pass_signal): Ditto.
4680
a89febbd
TT
46812020-05-13 Tom Tromey <tromey@adacore.com>
4682
4683 * ada-lang.c (align_value): Remove.
4684 (ada_template_to_fixed_record_type_1): Use align_up.
4685
f7e23710
TBA
46862020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4687
4688 * async-event.c: Update the copyright year.
4689 * async-event.h: Update the copyright year.
4690
02ff80c2
SM
46912020-05-12 Simon Marchi <simon.marchi@efficios.com>
4692
4693 * objfiles.h (is_addr_in_objfile,
4694 shared_objfile_contains_address_p): Return bool.
4695 * objfile.c (is_addr_in_objfile,
4696 shared_objfile_contains_address_p): Return bool.
4697
4fd6c7e8
TT
46982020-05-11 Tom Tromey <tromey@adacore.com>
4699
4700 * cli/cli-cmds.c (info_command): Restore.
4701 (_initialize_cli_cmds): Use add_prefix_command for "info".
4702 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4703
5eb68a39
TT
47042020-05-11 Tom Tromey <tromey@adacore.com>
4705
4706 * ada-lang.c (ada_value_primitive_field): Now public.
4707 * ada-lang.h (ada_value_primitive_field): Declare.
4708 * ada-valprint.c (print_field_values): Use
4709 ada_value_primitive_field for wrapper fields.
4710
7666722f
TV
47112020-05-11 Tom de Vries <tdevries@suse.de>
4712
4713 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4714 MODULE_DOMAIN.
4715
3ee6bb11
TV
47162020-05-11 Tom de Vries <tdevries@suse.de>
4717
4718 PR symtab/25941
4719 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4720 with length 0, if not gdb-produced.
4721 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4722
43434996
TV
47232020-05-09 Tom de Vries <tdevries@suse.de>
4724
4725 PR gdb/25955
4726 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4727 calculation.
4728
2f78cffc
TT
47292020-05-09 Tom Tromey <tom@tromey.com>
4730
4731 * top.c (server_command): Now bool.
4732 * top.h (server_command): Now bool.
4733
4f7bc5ed
TT
47342020-05-08 Tom Tromey <tromey@adacore.com>
4735
4736 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4737 already being processed.
4738
8be4b118
TT
47392020-05-08 Tom Tromey <tom@tromey.com>
4740
4741 * printcmd.c (struct display) <next>: Remove.
4742 <display>: New constructor.
4743 <exp_string>: Now a std::string.
4744 <enabled_p>: Now a bool.
4745 (display_number): Move definition earlier.
4746 (displays): Rename from display_chain. Now a std::vector.
4747 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4748 (display_command): Update.
4749 (do_one_display, disable_display)
4750 (enable_disable_display_command, do_enable_disable_display):
4751 Update.
4752 (free_display): Remove.
4753 (clear_displays): Rewrite.
4754 (delete_display): Update.
4755 (map_display_numbers): Use function_view. Remove "data"
4756 parameter. Update.
4757 (do_delete_display): Remove.
4758 (undisplay_command): Update.
4759 (do_one_display, do_displays, disable_display)
4760 (info_display_command): Update.
4761 (do_enable_disable_display): Remove.
4762 (enable_disable_display_command)
4763 (clear_dangling_display_expressions): Update.
4764
94c93c35
TT
47652020-05-08 Tom Tromey <tom@tromey.com>
4766
4767 * symtab.c (set_symbol_cache_size)
4768 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4769 (maintenance_print_symbol_cache_statistics): Update.
4770 * symmisc.c (print_symbol_bcache_statistics)
4771 (print_objfile_statistics, maintenance_print_objfiles)
4772 (maintenance_info_symtabs, maintenance_check_symtabs)
4773 (maintenance_expand_symtabs, maintenance_info_line_tables):
4774 Update.
4775 * symfile-debug.c (set_debug_symfile): Update.
4776 * source.c (forget_cached_source_info): Update.
4777 * python/python.c (gdbpy_progspaces): Update.
4778 * psymtab.c (maintenance_info_psymtabs): Update.
4779 * probe.c (parse_probes): Update.
4780 * linespec.c (iterate_over_all_matching_symtabs)
4781 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4782 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4783 * exec.c (exec_target::close): Update.
4784 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4785 * breakpoint.c (print_one_breakpoint_location)
4786 (create_longjmp_master_breakpoint)
4787 (create_std_terminate_master_breakpoint): Update.
4788 * progspace.c (program_spaces): Now a std::vector.
4789 (maybe_new_address_space): Update.
4790 (add_program_space): Remove.
4791 (program_space::program_space): Update.
4792 (remove_program_space): Update.
4793 (number_of_program_spaces): Remove.
4794 (print_program_space, update_address_spaces): Update.
4795 * progspace.h (program_spaces): Change type.
4796 (ALL_PSPACES): Remove.
4797 (number_of_program_spaces): Don't declare.
4798 (struct program_space) <next>: Remove.
4799
a1fd1ac9
TT
48002020-05-08 Tom Tromey <tom@tromey.com>
4801
4802 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4803 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4804 (enable_break): Update.
4805 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4806 (frv_fdpic_find_canonical_descriptor): Update.
4807 (frv_fetch_objfile_link_map): Update.
4808 * progspace.c (program_space::free_all_objfiles): Update.
4809 (program_space::solibs): New method.
4810 * progspace.h (struct program_space) <solibs>: New method.
4811 * solist.h (master_so_list): Don't declare.
4812 (ALL_SO_LIBS): Remove.
4813 * solib.h (so_list_head): Remove.
4814 (update_solib_list): Update comment.
4815 * solib.c (master_so_list): Remove.
4816 (solib_used, update_solib_list, solib_add)
4817 (info_sharedlibrary_command, clear_solib)
4818 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4819
38eae084
TT
48202020-05-08 Tom Tromey <tom@tromey.com>
4821
4822 * extension.c (extension_languages): Now a std::array.
4823 (ALL_EXTENSION_LANGUAGES): Remove.
4824 (get_ext_lang_defn, get_ext_lang_of_file)
4825 (eval_ext_lang_from_control_command): Update.
4826 (finish_ext_lang_initialization)
4827 (auto_load_ext_lang_scripts_for_objfile)
4828 (ext_lang_type_printers::ext_lang_type_printers)
4829 (apply_ext_lang_type_printers)
4830 (ext_lang_type_printers::~ext_lang_type_printers)
4831 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4832 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4833 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4834 (get_matching_xmethod_workers, ext_lang_colorize)
4835 (ext_lang_before_prompt): Update.
4836 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4837
596dc4ad
TT
48382020-05-08 Tom Tromey <tom@tromey.com>
4839
4840 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4841 overload.
4842 <swap_string, m_string>: Remove.
4843 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4844 Update.
4845 * stabsread.c (define_symbol, read_type): Update.
4846 * linespec.c (find_linespec_symbols): Update.
4847 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4848 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4849 * dbxread.c (read_dbx_symtab): Update.
4850 * cp-support.h (cp_canonicalize_string_full)
4851 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4852 Return unique_xmalloc_ptr.
4853 * cp-support.c (inspect_type): Update.
4854 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4855 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4856 Likewise.
4857 * c-typeprint.c (print_name_maybe_canonical): Update.
4858 * break-catch-throw.c (check_status_exception_catchpoint):
4859 Update.
4860
bf4cb9be
TV
48612020-05-08 Tom de Vries <tdevries@suse.de>
4862
4863 * infrun.c (follow_fork): Copy current_line and current_symtab to
4864 child thread.
4865
a1b68f28
SM
48662020-05-07 Simon Marchi <simon.marchi@efficios.com>
4867
4868 * async-event.c (struct async_signal_handler, struct
4869 async_event_handler): Reformat, remove typedef.
4870
98d48915
SM
48712020-05-07 Simon Marchi <simon.marchi@efficios.com>
4872
4873 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4874 access thistype->main_type->dyn_prop_list directly.
4875
7aa91313
SM
48762020-05-07 Simon Marchi <simon.marchi@efficios.com>
4877
4878 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4879 (remove_dyn_prop): Remove. Update all users to use
4880 type::remove_dyn_prop.
4881 * gdbtypes.c (remove_dyn_prop): Rename to...
4882 (type::remove_dyn_prop): ... this.
4883
5c54719c
SM
48842020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4885
4886 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4887 (add_dyn_prop): Remove. Update all users to use
4888 type::add_dyn_prop.
4889 * gdbtypes.c (add_dyn_prop): Rename to...
4890 (type::add_dyn_prop): ... this.
4891
24e99c6c
SM
48922020-05-07 Simon Marchi <simon.marchi@efficios.com>
4893
4894 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4895 (get_dyn_prop): Remove. Update all users to use
4896 type::dyn_prop.
4897 * gdbtypes.c (get_dyn_prop): Rename to...
4898 (type::dyn_prop): ... this.
4899
0d4bf016
SM
49002020-05-06 Simon Marchi <simon.marchi@efficios.com>
4901
4902 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4903
ac4a4f1c
SM
49042020-05-06 Simon Marchi <simon.marchi@efficios.com>
4905
4906 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4907 instruction, skip it if it's there.
4908
a3bbacc1
SM
49092020-05-05 Simon Marchi <simon.marchi@efficios.com>
4910
4911 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4912
c3236f84
SM
49132020-05-04 Simon Marchi <simon.marchi@efficios.com>
4914
4915 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4916 * gdbtypes.c (recursive_dump_type): Remove use of
4917 TYPE_INCOMPLETE.
4918
3b6acaee
TT
49192020-05-03 Tom Tromey <tom@tromey.com>
4920
4921 * breakpoint.c (catch_command, tcatch_command): Remove.
4922 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4923 add_show_prefix_cmd.
4924 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4925 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4926 Remove.
4927 (add_internal_problem_command): Use add_basic_prefix_cmd,
4928 add_show_prefix_cmd.
4929 * mips-tdep.c (set_mipsfpu_command): Remove.
4930 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4931 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4932 (_initialize_index_cache): Use add_basic_prefix_cmd.
4933 * memattr.c (dummy_cmd): Remove.
4934 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4935 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4936 (_initialize_tui_win): Use add_basic_prefix_cmd,
4937 add_show_prefix_cmd.
4938 * cli/cli-logging.c (set_logging_command): Remove.
4939 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4940 add_show_prefix_cmd.
4941 (show_logging_command): Remove.
4942 * target.c (target_command): Remove.
4943 (add_target): Use add_basic_prefix_cmd.
4944
a51119cd
HD
49452020-05-02 Hannes Domani <ssbssa@yahoo.de>
4946
4947 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4948
652fc23a 49492020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4950
652fc23a
PW
4951 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4952 info_command.
4953
117539e6
KR
49542020-04-30 Kamil Rytarowski <n54@gmx.com>
4955
4956 * nbsd-nat.c (nbsd_enable_proc_events)
4957 (nbsd_nat_target::post_startup_inferior): Add.
4958 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4959 (nbsd_nat_target::update_thread_list): Rewrite.
4960 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4961 "PTRACE_LWP_CREATE".
4962 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4963
102e38eb 49642020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4965
102e38eb
PW
4966 * stack.c (_initialize_stack): Remove duplicated creation
4967 of "frame" command and "f" alias.
4968
ee9d1e5f
HD
49692020-04-30 Hannes Domani <ssbssa@yahoo.de>
4970
4971 PR gdb/18706
4972 * gdbtypes.c (check_typedef): Calculate size of array of
4973 stubbed type.
4974
627c7fb8
HD
49752020-04-30 Hannes Domani <ssbssa@yahoo.de>
4976
4977 PR gdb/15559
4978 * i386-tdep.c (i386_push_dummy_call): Call
4979 i386_thiscall_push_dummy_call.
4980 (i386_thiscall_push_dummy_call): New function.
4981 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4982 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4983 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4984
ffc2844e
SM
49852020-04-29 Simon Marchi <simon.marchi@efficios.com>
4986
4987 * gdbarch.sh (do_read): Add shellcheck disable directive for
4988 warning SC2162.
4989
1207375d
SM
49902020-04-29 Simon Marchi <simon.marchi@efficios.com>
4991
4992 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4993 "referenced but not assigned" warning.
4994
9fdb2916
SM
49952020-04-29 Simon Marchi <simon.marchi@efficios.com>
4996
4997 * gdbarch.sh: Remove code that sets fallbackdefault.
4998
759cea5e
SM
49992020-04-29 Simon Marchi <simon.marchi@efficios.com>
5000
5001 * gdbarch.sh: Use shell operators && and || instead of
5002 -a and -o.
5003
cb02ab24
SM
50042020-04-29 Simon Marchi <simon.marchi@efficios.com>
5005
5006 * gdbarch.sh: Use $(...) instead of `...`.
5007
a6fc5ffc
SM
50082020-04-29 Simon Marchi <simon.marchi@efficios.com>
5009
5010 * gdbarch.sh: Use double quotes around variables.
5011
8d113d13
SM
50122020-04-29 Simon Marchi <simon.marchi@efficios.com>
5013
5014 * gdbarch.sh: Use %s with printf, instead of variables in the
5015 format string.
5016
ed6acedd
TT
50172020-04-29 Tom Tromey <tromey@adacore.com>
5018
5019 PR ada/25875:
5020 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5021 type fields here.
5022 (read_enumeration_type): Call
5023 update_enumeration_type_from_children later. Update comments.
5024 (process_enumeration_scope): Don't create type fields.
5025
b68b1b58
KR
50262020-04-29 Kamil Rytarowski <n54@gmx.com>
5027
5028 * nbsd-tdep.c: Include "xml-syscall.h".
5029 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5030
f94b2e03
KR
50312020-04-29 Kamil Rytarowski <n54@gmx.com>
5032
5033 * nbsd-nat.c: Include "sys/wait.h".
5034 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5035 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5036 (nbsd_nat_target::remove_exec_catchpoint)
5037 (nbsd_nat_target::set_syscall_catchpoint): Add.
5038 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5039 (nbsd_nat_target::insert_exec_catchpoint)
5040 (nbsd_nat_target::remove_exec_catchpoint)
5041 (nbsd_nat_target::set_syscall_catchpoint): Add.
5042 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5043 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5044 `nbsd_get_syscall_number'.
5045
fc49bc72
TT
50462020-04-29 Tom Tromey <tom@tromey.com>
5047
5048 * stack.c (print_block_frame_labels): Remove.
5049
d642b692
HD
50502020-04-29 Hannes Domani <ssbssa@yahoo.de>
5051
5052 PR gdb/17320
5053 * ada-valprint.c (val_print_packed_array_elements): Move array
5054 end bracket to new line.
5055 (ada_val_print_string): Remove extra spaces before first array
5056 element.
5057 * c-valprint.c (c_value_print_array): Likewise.
5058 * m2-valprint.c (m2_print_array_contents): Likewise.
5059 (m2_value_print_inner): Likewise.
5060 * p-valprint.c (pascal_value_print_inner): Likewise.
5061 * valprint.c (generic_val_print_array): Likewise.
5062 (value_print_array_elements): Move first array element and array
5063 end bracket to new line.
5064
ea90f227
TV
50652020-04-29 Tom de Vries <tdevries@suse.de>
5066
5067 PR symtab/25889
5068 * linespec.c (find_method): Fix ix calculation.
5069
4498ef4f
KR
50702020-04-28 Kamil Rytarowski <n54@gmx.com>
5071
5072 * syscalls/update-netbsd.sh: New file.
5073 * syscalls/netbsd.xml: Regenerate.
5074 * data-directory/Makefile.in: Register `netbsd.xml' in
5075 `SYSCALLS_FILES'.
5076
a55e30b5
SM
50772020-04-28 Simon Marchi <simon.marchi@efficios.com>
5078
5079 * syscalls/update-freebsd.sh: Add double quotes.
5080
2b2fbab8
TT
50812020-04-28 Tom Tromey <tom@tromey.com>
5082
5083 * NEWS: Update.
5084 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5085 (cmdpy_init): Allow class_tui.
5086
a65189c9
TV
50872020-04-28 Mark Williams <mark@myosotissp.com>
5088
5089 PR gdb/24480
5090 * dwarf2read.c: Add missing assingments to list_in_scope when
5091 start_symtab was already called.
5092
1b95cdb7
SM
50932020-04-28 Simon Marchi <simon.marchi@efficios.com>
5094
5095 PR gdb/25881
5096 * dwarf2/read.c (offset_map_type): Use
5097 gdb:hash_enum<sect_offset> as hash function.
5098
15cd93d0
TV
50992020-04-28 Tom de Vries <tdevries@suse.de>
5100
5101 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5102 with DW_AT_signature.
5103
1eb39914
SM
51042020-04-27 Simon Marchi <simon.marchi@efficios.com>
5105
5106 * configure.ac: Remove check for fs_base/gs_base in
5107 user_regs_struct.
5108 * configure: Re-generate.
5109 * config.in: Re-generate.
5110 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5111 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5112 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5113
991a3e2e
LM
51142020-04-27 Luis Machado <luis.machado@linaro.org>
5115
5116 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5117 problematic inline frame unwinding situation.
5118 * frame.c (frame_id_computed_p): New function.
5119 * frame.h (frame_id_computed_p): New prototype.
5120
361ba0e8
TT
51212020-04-26 Tom Tromey <tom@tromey.com>
5122
5123 * command.h (enum command_class) <class_pseudo>: Remove.
5124
bc3609fd
PW
51252020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5126
5127 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5128 and whitespace.
5129
b9771db7
KR
51302020-04-25 Kamil Rytarowski <n54@gmx.com>
5131
ec16513e
SM
5132 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5133 `PT_GET_PROCESS_STATE' block.
b9771db7 5134
7151c1af
TT
51352020-04-24 Tom Tromey <tom@tromey.com>
5136
5137 * symtab.h (symbol_get_demangled_name): Don't declare.
5138 * symtab.c (symbol_get_demangled_name): Remove.
5139 (general_symbol_info::natural_name)
5140 (general_symbol_info::demangled_name): Update.
5141
906bb4c5
TT
51422020-04-24 Tom Tromey <tom@tromey.com>
5143
5144 PR rust/25025:
5145 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5146
bcfe6157
TT
51472020-04-24 Tom Tromey <tom@tromey.com>
5148
5149 PR symtab/12707:
5150 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5151 exists.
5152 (new_symbol): Likewise.
5153 * compile/compile-object-load.c (get_out_value_type): Use
5154 symbol_matches_search_name.
5155
f049a313
TT
51562020-04-24 Tom Tromey <tom@tromey.com>
5157
5158 * dwarf2/read.c (add_partial_symbol): Do not call
5159 compute_and_set_names.
5160
76e288d1
TT
51612020-04-24 Tom Tromey <tom@tromey.com>
5162
5163 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5164 overload.
5165
2467f4f6
TT
51662020-04-24 Tom Tromey <tom@tromey.com>
5167
5168 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5169 (add_psymbol_to_list): New overload. Make old overload call new
5170 one.
5171 * psympriv.h (add_psymbol_to_list): New overload.
5172
e61108c9
TT
51732020-04-24 Tom Tromey <tom@tromey.com>
5174
5175 * dwarf2/read.c (partial_die_info::read) <case
5176 DW_AT_linkage_name>: Use value_as_string.
5177 (dwarf2_string_attr): Use value_as_string.
5178 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5179 method.
5180 * dwarf2/attribute.c (attribute::value_as_string): New method.
5181
8c87a452
TT
51822020-04-24 Tom Tromey <tom@tromey.com>
5183
5184 * symtab.c (general_symbol_info::natural_name)
5185 (general_symbol_info::demangled_name): Check for language_rust.
5186
787de330
TT
51872020-04-24 Tom Tromey <tom@tromey.com>
5188
5189 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5190 (dwarf2_physname): ... from here.
5191 (partial_die_info::read): Add Rust "{" hack.
5192
ff985671
TT
51932020-04-24 Tom Tromey <tom@tromey.com>
5194
5195 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5196 method.
5197 (symbol_set_demangled_name): Don't declare.
5198 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5199 symbol_set_demangled_name.
5200 (general_symbol_info::set_language)
5201 (general_symbol_info::compute_and_set_names): Update.
5202 * minsyms.c (minimal_symbol_reader::install): Update.
5203 * dwarf2/read.c (new_symbol): Update.
5204
1acda803
TT
52052020-04-24 Tom Tromey <tromey@adacore.com>
5206
5207 PR python/23662:
5208 * python/py-type.c (convert_field): Handle
5209 FIELD_LOC_KIND_DWARF_BLOCK.
5210 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5211 (typy_get_dynamic): Nw function.
5212 (type_object_getset): Add "dynamic".
5213 * NEWS: Add entry.
5214
d656f129
TT
52152020-04-24 Tom Tromey <tromey@adacore.com>
5216
5217 * ada-typeprint.c (print_choices, print_variant_part)
5218 (print_record_field_types_dynamic): New functions.
5219 (print_record_field_types): Use print_record_field_types_dynamic.
5220
7d79de9a
TT
52212020-04-24 Tom Tromey <tromey@adacore.com>
5222
5223 * dwarf2/read.c (handle_data_member_location): New overload.
5224 (dwarf2_add_field): Use it.
5225 (decode_locdesc): Add "computed" parameter. Update comment.
5226 * gdbtypes.c (is_dynamic_type_internal): Also look for
5227 FIELD_LOC_KIND_DWARF_BLOCK.
5228 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5229 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5230 virtual base classes.
5231 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5232 FIELD_LOC_KIND_DWARF_BLOCK.
5233
f8e89861
TT
52342020-04-24 Tom Tromey <tromey@adacore.com>
5235
5236 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5237 * gdbtypes.c (is_dynamic_type_internal): Check
5238 TYPE_HAS_DYNAMIC_LENGTH.
5239 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5240 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5241 New macros.
5242 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5243 constant.
5244
9c6a1327
TT
52452020-04-24 Tom Tromey <tromey@adacore.com>
5246
5247 * dwarf2/read.c (struct variant_field): Rewrite.
5248 (struct variant_part_builder): New.
5249 (struct nextfield): Remove "variant" field. Add "offset".
5250 (struct field_info): Add "current_variant_part" and
5251 "variant_parts".
5252 (alloc_discriminant_info): Remove.
5253 (alloc_rust_variant): New function.
5254 (quirk_rust_enum): Update.
5255 (dwarf2_add_field): Set "offset" member. Don't handle
5256 DW_TAG_variant_part.
5257 (offset_map_type): New typedef.
5258 (convert_variant_range, create_one_variant)
5259 (create_one_variant_part, create_variant_parts)
5260 (add_variant_property): New functions.
5261 (dwarf2_attach_fields_to_type): Call add_variant_property.
5262 (read_structure_type): Don't handle DW_TAG_variant_part.
5263 (handle_variant_part, handle_variant): New functions.
5264 (handle_struct_member_die): Use them.
5265 (process_structure_scope): Don't handle variant parts.
5266 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5267 (struct discriminant_info): Remove.
5268 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5269 (struct main_type) <flag_discriminated_union>: Remove.
5270 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5271 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5272 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5273 Update.
5274 * valops.c (value_union_variant): Remove.
5275 * value.h (value_union_variant): Don't declare.
5276
b249d2c2
TT
52772020-04-24 Tom Tromey <tromey@adacore.com>
5278
5279 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5280 (ada_value_primitive_packed_val): Update.
5281 * ada-valprint.c (ada_value_print_1): Update.
5282 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5283 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5284 just an address. Use evaluate_for_locexpr_baton.
5285 (dwarf2_evaluate_property): Update.
5286 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5287 array_view.
5288 * findvar.c (default_read_var_value): Update.
5289 * gdbtypes.c (compute_variant_fields_inner)
5290 (resolve_dynamic_type_internal): Update.
5291 (resolve_dynamic_type): Change type of valaddr parameter.
5292 * gdbtypes.h (resolve_dynamic_type): Update.
5293 * valarith.c (value_subscripted_rvalue): Update.
5294 * value.c (value_from_contents_and_address): Update.
5295
61122aa9
TT
52962020-04-24 Tom Tromey <tromey@adacore.com>
5297
5298 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5299 "push_initial_value" parameter.
5300 (dwarf2_evaluate_property): Likewise.
5301 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5302
ef83a141
TT
53032020-04-24 Tom Tromey <tromey@adacore.com>
5304
5305 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5306 (variant::matches, compute_variant_fields_recurse)
5307 (compute_variant_fields_inner, compute_variant_fields): New
5308 functions.
5309 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5310 Use resolved_type after type is made.
5311 (operator==): Add new cases.
5312 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5313 (struct discriminant_range, struct variant, struct variant_part):
5314 New.
5315 (union dynamic_prop_data) <variant_parts, original_type>: New
5316 members.
5317 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5318 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5319 constants.
5320 * value.c (unpack_bits_as_long): Now public.
5321 * value.h (unpack_bits_as_long): Declare.
5322
675127ec
TT
53232020-04-24 Tom Tromey <tromey@adacore.com>
5324
5325 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5326 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5327
9852ceef
HD
53282020-04-24 Hannes Domani <ssbssa@yahoo.de>
5329
5330 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5331
7632c6ce
KR
53322020-04-24 Kamil Rytarowski <n54@gmx.com>
5333
5334 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5335 (remove_fork_catchpoint, post_startup_inferior)
5336 (post_attach): Move...
5337 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5338 (remove_fork_catchpoint, post_startup_inferior)
5339 (post_attach): ...here.
5340 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5341 (remove_fork_catchpoint, post_startup_inferior)
5342 (post_attach): Move...
5343 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5344 (remove_fork_catchpoint, post_startup_inferior)
5345 (post_attach): ...here.
5346
7be2bb4f
TT
53472020-04-24 Tom Tromey <tromey@adacore.com>
5348
5349 * nat/windows-nat.h (struct windows_thread_info)
5350 <pc_adjusted>: New member.
5351 * windows-nat.c (windows_fetch_one_register): Check
5352 pc_adjusted.
5353 (windows_nat_target::get_windows_debug_event)
5354 (windows_nat_target::wait): Set pc_adjusted.
5355
f80cb3b4
TV
53562020-04-24 Tom de Vries <tdevries@suse.de>
5357
5358 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5359 Run gdb-add-index inside temp dir.
5360
29514b87
TT
53612020-04-23 Tom Tromey <tromey@adacore.com>
5362
5363 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5364 in loop.
5365
5939967b
LM
53662020-04-23 Luis Machado <luis.machado@linaro.org>
5367
5368 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5369 get_frame_register instead of gdbarch_unwind_pc.
5370
70bc38f5
TV
53712020-04-23 Tom de Vries <tdevries@suse.de>
5372
5373 * symtab.c (lookup_global_symbol): Prefer def over decl.
5374
de82891c
TV
53752020-04-23 Tom de Vries <tdevries@suse.de>
5376
5377 PR symtab/25807
5378 * block.c (best_symbol, better_symbol): Promote to external.
5379 * block.h (best_symbol, better_symbol): Declare.
5380 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5381 decl.
5382
ecc6c606
TT
53832020-04-23 Tom Tromey <tromey@adacore.com>
5384
5385 PR ada/25837:
5386 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5387 "const char *", not a "const std::string &".
5388 <name_and_matcher::operator==>: Update.
5389 * unittests/lookup_name_info-selftests.c: Change type of
5390 "result".
5391
740480b8
TT
53922020-04-23 Tom Tromey <tom@tromey.com>
5393
5394 * inferior.h (iterate_over_inferiors): Don't declare.
5395 * inferior.c (iterate_over_inferiors): Remove.
5396 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5397 Remove.
5398 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5399 use iterate_over_inferiors.
5400 (darwin_resume_inferior_it)
5401 (struct resume_inferior_threads_param)
5402 (darwin_resume_inferior_threads_it): Remove.
5403 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5404
ae3ab1f0
TV
54052020-04-23 Tom de Vries <tdevries@suse.de>
5406
5407 * blockframe.c (find_pc_partial_function): Use
5408 find_pc_sect_compunit_symtab rather than
5409 objfile->sf->qf->find_pc_sect_compunit_symtab.
5410
317d2668
TV
54112020-04-22 Tom de Vries <tdevries@suse.de>
5412
5413 PR symtab/25764
5414 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5415 in psymtabs.
5416
eea9e357
TV
54172020-04-22 Tom de Vries <tdevries@suse.de>
5418
5419 PR symtab/25801
5420 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5421 symtabs.
5422
3d5afab3
TV
54232020-04-22 Tom de Vries <tdevries@suse.de>
5424
5425 PR symtab/25700
5426 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5427 CU if already created.
5428
d43b7a2d
TBA
54292020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5430
5431 * infrun.c (displaced_step_fixup): Switch to the event_thread
5432 before calling displaced_step_restore, not after.
5433
d89edf9b
MM
54342020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5435
5436 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5437 its inferior is not recorded by us.
5438 (record_btrace_target_open): Replace call to
5439 all_non_exited_threads () with call to current_inferior
5440 ()->non_exited_threads ().
5441 (record_btrace_target::stop_recording): Likewise.
5442 (record_btrace_target::close): Likewise.
5443 (record_btrace_target::wait): Likewise.
5444 (record_btrace_target::record_stop_replaying): Likewise.
5445
5897fd49
MM
54462020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5447
5448 * btrace.c (btrace_enable): Throw an error on double enables and
5449 when enabling recording fails.
5450 (btrace_disable): Throw an error if the thread is not recorded.
5451
1a476b6d
MM
54522020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5453
5454 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5455 request if we do not have a thread_info.
5456
4778a5f8
TV
54572020-04-21 Tom de Vries <tdevries@suse.de>
5458
5459 PR gdb/25471
5460 * thread.c
5461 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5462 exception in get_frame_id.
5463
0fa7617d
TT
54642020-04-20 Tom Tromey <tromey@adacore.com>
5465
5466 * python/python.c (struct gdbpy_event): Mark move constructor as
5467 noexcept.
5468 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5469 constructor as noexcept.
5470 * completer.h (struct completion_result): Mark move constructor as
5471 noexcept.
5472 * completer.c (completion_result::completion_result): Use
5473 initialization style. Don't call reset_match_list.
5474
ad23bda0
MS
54752020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5476
5477 * MAINTAINERS (Write After Approval): Add myself.
5478
45e1f031
TT
54792020-04-18 Tom Tromey <tom@tromey.com>
5480
5481 * windows-tdep.c (init_w32_command_list)
5482 (w32_prefix_command_valid): Restore.
5483 (_initialize_windows_tdep): Call init_w32_command_list.
5484
08feed99
TT
54852020-04-18 Tom Tromey <tom@tromey.com>
5486
5487 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5488 * value.c (value_fn_field): Update.
5489 * valops.c (find_function_in_inferior)
5490 (value_allocate_space_in_inferior): Update.
5491 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5492 Update.
5493 * tui/tui-source.c (tui_source_window::set_contents): Update.
5494 * symtab.c (lookup_global_or_static_symbol)
5495 (find_function_start_sal_1, skip_prologue_sal)
5496 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5497 * symmisc.c (dump_msymbols, dump_symtab_1)
5498 (maintenance_print_one_line_table): Update.
5499 * symfile.c (init_entry_point_info, section_is_mapped)
5500 (list_overlays_command, simple_read_overlay_table)
5501 (simple_overlay_update_1): Update.
5502 * stap-probe.c (handle_stap_probe): Update.
5503 * stabsread.c (dbx_init_float_type, define_symbol)
5504 (read_one_struct_field, read_enum_type, read_range_type): Update.
5505 * source.c (info_line_command): Update.
5506 * python/python.c (gdbpy_source_objfile_script)
5507 (gdbpy_execute_objfile_script): Update.
5508 * python/py-type.c (save_objfile_types): Update.
5509 * python/py-objfile.c (py_free_objfile): Update.
5510 * python/py-inferior.c (python_new_objfile): Update.
5511 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5512 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5513 (maintenance_check_psymtabs): Update.
5514 * printcmd.c (info_address_command): Update.
5515 * objfiles.h (struct objfile) <arch>: New method, from
5516 get_objfile_arch.
5517 (get_objfile_arch): Don't declare.
5518 * objfiles.c (get_objfile_arch): Remove.
5519 (filter_overlapping_sections): Update.
5520 * minsyms.c (msymbol_is_function): Update.
5521 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5522 (output_nondebug_symbol): Update.
5523 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5524 (mdebug_expand_psymtab): Update.
5525 * machoread.c (macho_add_oso_symfile): Update.
5526 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5527 Update.
5528 * linux-fork.c (checkpoint_command): Update.
5529 * linespec.c (convert_linespec_to_sals): Update.
5530 * jit.c (finalize_symtab): Update.
5531 * infrun.c (insert_exception_resume_from_probe): Update.
5532 * ia64-tdep.c (ia64_find_unwind_table): Update.
5533 * hppa-tdep.c (internalize_unwinds): Update.
5534 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5535 Update.
5536 * gcore.c (call_target_sbrk): Update.
5537 * elfread.c (record_minimal_symbol, elf_symtab_read)
5538 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5539 (elf_gnu_ifunc_resolve_by_got): Update.
5540 * dwarf2/read.c (create_addrmap_from_index)
5541 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5542 (read_debug_names_from_section)
5543 (process_psymtab_comp_unit_reader, add_partial_symbol)
5544 (add_partial_subprogram, process_full_comp_unit)
5545 (read_file_scope, read_func_scope, read_lexical_block_scope)
5546 (read_call_site_scope, dwarf2_ranges_read)
5547 (dwarf2_record_block_ranges, dwarf2_add_field)
5548 (mark_common_block_symbol_computed, read_tag_pointer_type)
5549 (read_tag_string_type, dwarf2_init_float_type)
5550 (dwarf2_init_complex_target_type, read_base_type)
5551 (partial_die_info::read, partial_die_info::read)
5552 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5553 (dwarf2_fetch_die_loc_sect_off): Update.
5554 * dwarf2/loc.c (dwarf2_find_location_expression)
5555 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5556 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5557 (dwarf2_loc_desc_get_symbol_read_needs)
5558 (locexpr_describe_location_piece, locexpr_describe_location_1)
5559 (loclist_describe_location): Update.
5560 * dwarf2/index-write.c (write_debug_names): Update.
5561 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5562 * dtrace-probe.c (dtrace_process_dof): Update.
5563 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5564 (process_one_symbol): Update.
5565 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5566 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5567 (coff_read_enum_type): Update.
5568 * cli/cli-cmds.c (edit_command, list_command): Update.
5569 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5570 * breakpoint.c (create_overlay_event_breakpoint)
5571 (create_longjmp_master_breakpoint)
5572 (create_std_terminate_master_breakpoint)
5573 (create_exception_master_breakpoint, get_sal_arch): Update.
5574 * block.c (block_gdbarch): Update.
5575 * annotate.c (annotate_source_line): Update.
5576
0743fc83
TT
55772020-04-17 Tom Tromey <tromey@adacore.com>
5578
5579 * auto-load.c (show_auto_load_cmd): Remove.
5580 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5581 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5582 (maintenance_print_arc_command): Remove.
5583 * tui/tui-win.c (tui_command): Remove.
5584 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5585 * tui/tui-layout.c (tui_layout_command): Remove.
5586 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5587 * python/python.c (user_set_python, user_show_python): Remove.
5588 (_initialize_python): Use add_basic_prefix_cmd,
5589 add_show_prefix_cmd.
5590 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5591 (install_gdb_commands): Use add_basic_prefix_cmd,
5592 add_show_prefix_cmd.
5593 (info_guile_command): Remove.
5594 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5595 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5596 add_show_prefix_cmd.
5597 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5598 Remove do_set and do_show parameters.
5599 * cli/cli-style.c (set_style, show_style): Remove.
5600 (_initialize_cli_style): Use add_basic_prefix_cmd,
5601 add_show_prefix_cmd.
5602 (cli_style_option::add_setshow_commands): Remove do_set and
5603 do_show parameters.
5604 (cli_style_option::add_setshow_commands): Use
5605 add_basic_prefix_cmd, add_show_prefix_cmd.
5606 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5607 (set_style_name): Remove.
5608 * cli/cli-dump.c (dump_command, append_command): Remove.
5609 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5610 (tekhex_dump_command, binary_dump_command)
5611 (binary_append_command): Remove.
5612 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5613 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5614 (init_w32_command_list): Remove; move into ...
5615 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5616 * valprint.c (set_print, show_print, set_print_raw)
5617 (show_print_raw): Remove.
5618 (_initialize_valprint): Use add_basic_prefix_cmd,
5619 add_show_prefix_cmd.
5620 * typeprint.c (set_print_type, show_print_type): Remove.
5621 (_initialize_typeprint): Use add_basic_prefix_cmd,
5622 add_show_prefix_cmd.
5623 * record.c (set_record_command, show_record_command): Remove.
5624 (_initialize_record): Use add_basic_prefix_cmd,
5625 add_show_prefix_cmd.
5626 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5627 add_show_prefix_cmd.
5628 (info_command, show_command, set_debug, show_debug): Remove.
5629 * top.h (set_history, show_history): Don't declare.
5630 * top.c (set_history, show_history): Remove.
5631 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5632 (unset_tdesc_cmd): Remove.
5633 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5634 add_show_prefix_cmd.
5635 * symtab.c (info_module_command): Remove.
5636 (_initialize_symtab): Use add_basic_prefix_cmd.
5637 * symfile.c (overlay_command): Remove.
5638 (_initialize_symfile): Use add_basic_prefix_cmd.
5639 * sparc64-tdep.c (info_adi_command): Remove.
5640 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5641 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5642 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5643 add_show_prefix_cmd.
5644 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5645 (_initialize_serial): Use add_basic_prefix_cmd,
5646 add_show_prefix_cmd.
5647 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5648 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5649 add_show_prefix_cmd.
5650 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5651 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5652 add_show_prefix_cmd.
5653 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5654 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5655 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5656 add_show_prefix_cmd.
5657 * remote.c (remote_command, set_remote_cmd): Remove.
5658 (_initialize_remote): Use add_basic_prefix_cmd.
5659 * record-full.c (set_record_full_command)
5660 (show_record_full_command): Remove.
5661 (_initialize_record_full): Use add_basic_prefix_cmd,
5662 add_show_prefix_cmd.
5663 * record-btrace.c (cmd_set_record_btrace)
5664 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5665 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5666 (cmd_show_record_btrace_pt): Remove.
5667 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5668 add_show_prefix_cmd.
5669 * ravenscar-thread.c (set_ravenscar_command)
5670 (show_ravenscar_command): Remove.
5671 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5672 add_show_prefix_cmd.
5673 * mips-tdep.c (show_mips_command, set_mips_command)
5674 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5675 add_show_prefix_cmd.
5676 * maint.c (maintenance_command, maintenance_info_command)
5677 (maintenance_check_command, maintenance_print_command)
5678 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5679 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5680 add_show_prefix_cmd.
5681 (show_per_command_cmd): Remove.
5682 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5683 Remove.
5684 (maintenance_show_test_settings_cmd): Remove.
5685 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5686 add_show_prefix_cmd.
5687 * maint-test-options.c (maintenance_test_options_command):
5688 Remove.
5689 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5690 * macrocmd.c (macro_command): Remove
5691 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5692 * language.c (set_check, show_check): Remove.
5693 (_initialize_language): Use add_basic_prefix_cmd,
5694 add_show_prefix_cmd.
5695 * infcmd.c (unset_command): Remove.
5696 (_initialize_infcmd): Use add_basic_prefix_cmd.
5697 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5698 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5699 add_show_prefix_cmd.
5700 * go32-nat.c (go32_info_dos_command): Remove.
5701 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5702 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5703 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5704 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5705 (_initialize_frame): Use add_basic_prefix_cmd,
5706 add_show_prefix_cmd.
5707 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5708 (_initialize_dcache): Use add_basic_prefix_cmd,
5709 add_show_prefix_cmd.
5710 * cp-support.c (maint_cplus_command): Remove.
5711 (_initialize_cp_support): Use add_basic_prefix_cmd.
5712 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5713 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5714 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5715 add_basic_prefix_cmd, add_show_prefix_cmd.
5716 * breakpoint.c (save_command): Remove.
5717 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5718 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5719 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5720 add_show_prefix_cmd.
5721 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5722 (set_ada_command, show_ada_command): Remove.
5723 (_initialize_ada_language): Use add_basic_prefix_cmd,
5724 add_show_prefix_cmd.
5725 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5726
3557f442
KR
57272020-04-16 Kamil Rytarowski <n54@gmx.com>
5728
5729 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5730 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5731
16197208
SM
57322020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5733
5734 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5735 warning messages.
5736
00ac85d3
SM
57372020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5738
5739 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5740 import table is not at beginning of .idata section.
5741
381ce63f
PA
57422020-04-16 Pedro Alves <palves@redhat.com>
5743
5744 * inferior.c (delete_inferior): Use delete operator directly
5745 instead of delete_program_space.
5746 * progspace.c (add_program_space): New, factored out from
5747 program_space::program_space.
5748 (remove_program_space): New, factored out from
5749 delete_program_space.
5750 (program_space::program_space): Remove intro comment. Rewrite.
5751 (program_space::~program_space): Remove intro comment. Call
5752 remove_program_space.
5753 (delete_program_space): Delete.
5754 * progspace.h (program_space::program_space): Make explicit. Move
5755 intro comment here, adjusted.
5756 (program_space::~program_space): Move intro comment here,
5757 adjusted.
5758 (delete_program_space): Remove.
5759
a010605f
TT
57602020-04-16 Tom Tromey <tromey@adacore.com>
5761
5762 * windows-nat.c (windows_nat::handle_access_violation): New
5763 function.
5764 * nat/windows-nat.h (handle_access_violation): Declare.
5765 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5766 windows-nat.c. Call handle_access_violation.
5767
efba5c23
TV
57682020-04-16 Tom de Vries <tdevries@suse.de>
5769
5770 PR symtab/25791
5771 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5772 CUs without psymtab.
5773
97ed802d
KB
57742020-04-16 Kevin Buettner <kevinb@redhat.com>
5775
5776 * python/python.c (do_start_initialization): Don't call
5777 PyEval_InitThreads for Python 3.9 and beyond.
5778
c7d64809
KR
57792020-04-15 Kamil Rytarowski <n54@gmx.com>
5780
5781 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5782 thread functions.
5783 (obsd_nat_target::wait): Likewise.
5784
ce127a96
TT
57852020-04-15 Tom Tromey <tromey@adacore.com>
5786
5787 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5788 (DEBUG_EXCEPT): Use debug_printf.
5789
99f1bc6a
AB
57902020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5791
5792 * completer.c (class completion_tracker::completion_hash_entry)
5793 <hash_name>: New member function.
5794 (completion_tracker::discard_completions): New callback to hash a
5795 completion_hash_entry, pass this to htab_create_alloc.
5796
a0e9b532
JT
57972016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5798
5799 * windows-nat.c (windows_make_so): Warn rather than stopping with
5800 an error if realpath() fails.
5801
06ca5dd4
KR
58022020-04-14 Kamil Rytarowski <n54@gmx.com>
5803
5804 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5805 (nbsd_nat_target::info_proc): Add do_status.
5806
194d088f
TV
58072020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5808 Tom de Vries <tdevries@suse.de>
5809
5810 PR symtab/25718
5811 * psympriv.h (struct partial_symtab::read_symtab)
5812 (struct partial_symtab::expand_psymtab)
5813 (struct partial_symtab::read_dependencies): Update comments.
5814 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5815 read_symtab for includer.
5816 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5817 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5818 (struct dwarf2_include_psymtab::m_readin): Remove.
5819 (struct dwarf2_include_psymtab::includer): New member function.
5820 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5821
c1a66c06
TV
58222020-04-14 Tom de Vries <tdevries@suse.de>
5823
5824 PR symtab/25720
5825 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5826 with NULL symbol_matcher and lookup_name.
5827 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5828 and lookup_name.
5829 * dwarf2/read.c (dw2_expand_symtabs_matching)
5830 (dw2_debug_names_expand_symtabs_matching): Same.
5831 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5832 Make lookup_name a pointer. Update comment.
5833 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5834 lookup_name being a pointer.
5835 * symfile.c (expand_symtabs_matching): Same.
5836 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5837 * linespec.c (iterate_over_all_matching_symtabs): Same.
5838
400b5eca
TT
58392020-04-13 Tom Tromey <tom@tromey.com>
5840
5841 * run-on-main-thread.c: Update include.
5842 * unittests/main-thread-selftests.c: Update include.
5843 * tui/tui-win.c: Update include.
5844 * tui/tui-io.c: Update include.
5845 * tui/tui-interp.c: Update include.
5846 * tui/tui-hooks.c: Update include.
5847 * top.h: Update include.
5848 * top.c: Update include.
5849 * ser-base.c: Update include.
5850 * remote.c: Update include.
5851 * remote-notif.c: Update include.
5852 * remote-fileio.c: Update include.
5853 * record-full.c: Update include.
5854 * record-btrace.c: Update include.
5855 * python/python.c: Update include.
5856 * posix-hdep.c: Update include.
5857 * mingw-hdep.c: Update include.
5858 * mi/mi-main.c: Update include.
5859 * mi/mi-interp.c: Update include.
5860 * main.c: Update include.
5861 * linux-nat.c: Update include.
5862 * interps.c: Update include.
5863 * infrun.c: Update include.
5864 * inf-loop.c: Update include.
5865 * event-top.c: Update include.
5866 * event-loop.c: Move to ../gdbsupport/.
5867 * event-loop.h: Move to ../gdbsupport/.
5868 * async-event.h: Update include.
5869 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5870
93b54c8e
TT
58712020-04-13 Tom Tromey <tom@tromey.com>
5872
5873 * tui/tui-win.c: Include async-event.h.
5874 * remote.c: Include async-event.h.
5875 * remote-notif.c: Include async-event.h.
5876 * record-full.c: Include async-event.h.
5877 * record-btrace.c: Include async-event.h.
5878 * infrun.c: Include async-event.h.
5879 * event-top.c: Include async-event.h.
5880 * event-loop.h: Move some declarations to async-event.h.
5881 * event-loop.c: Don't include ser-event.h or top.h. Move some
5882 code to async-event.c.
5883 * async-event.h: New file.
5884 * async-event.c: New file.
5885 * Makefile.in (COMMON_SFILES): Add async-event.c.
5886 (HFILES_NO_SRCDIR): Add async-event.h.
5887
c1cd3163
TT
58882020-04-13 Tom Tromey <tom@tromey.com>
5889
5890 * utils.c (flush_streams): New function.
5891 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5892
29f2bf4f
TT
58932020-04-13 Tom Tromey <tom@tromey.com>
5894
5895 * event-loop.c (handle_file_event): Use warning, not
5896 printf_unfiltered.
5897
98029d02
TT
58982020-04-13 Tom Tromey <tom@tromey.com>
5899
5900 * event-loop.c: Include <chrono>.
5901
06cc9596
TT
59022020-04-13 Tom Tromey <tom@tromey.com>
5903
5904 * gdb_select.h: Move to ../gdbsupport/.
5905 * event-loop.c: Update include path.
5906 * top.c: Update include path.
5907 * ser-base.c: Update include path.
5908 * ui-file.c: Update include path.
5909 * ser-tcp.c: Update include path.
5910 * guile/scm-ports.c: Update include path.
5911 * posix-hdep.c: Update include path.
5912 * ser-unix.c: Update include path.
5913 * gdb_usleep.c: Update include path.
5914 * mingw-hdep.c: Update include path.
5915 * inflow.c: Update include path.
5916 * infrun.c: Update include path.
5917 * event-top.c: Update include path.
5918
8ae8e197
TT
59192020-04-13 Tom Tromey <tom@tromey.com>
5920
5921 * configure: Rebuild.
5922 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5923
58cf28e8
TT
59242020-04-13 Tom Tromey <tom@tromey.com>
5925
5926 * event-loop.h (start_event_loop): Don't declare.
5927 * event-loop.c (start_event_loop): Move...
5928 * main.c (start_event_loop): ...here. Now static.
5929
b7f999ae
SDJ
59302020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5931
5932 * MAINTAINERS: Update my email address.
5933
1085dfd4
KR
59342020-04-12 Kamil Rytarowski <n54@gmx.com>
5935
5936 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5937 IP_ALL.
5938
49d1d1f5
KR
59392020-04-12 Kamil Rytarowski <n54@gmx.com>
5940
5941 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5942 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5943
b4848d2a
KR
59442020-04-12 Kamil Rytarowski <n54@gmx.com>
5945
5946 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5947 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5948
51c133d5
KR
59492020-04-12 Kamil Rytarowski <n54@gmx.com>
5950
5951 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5952
54b8cbd0
KR
59532020-04-11 Kamil Rytarowski <n54@gmx.com>
5954
5955 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5956 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5957 (nbsd_nat_target::info_proc): New functions.
5958 * nbsd-nat.c (kinfo_get_vmmap): New function.
5959 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5960 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5961 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5962 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5963 functions.
5964 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5965 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5966 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5967 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5968 (KINFO_VME_FLAG_GROWS_DOWN): New.
5969
cf83625d
AS
59702020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5971
5972 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5973 bit shift.
5974
0c4311ab
TT
59752020-04-10 Tom Tromey <tromey@adacore.com>
5976
5977 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5978
3e65b3e9
TT
59792020-04-10 Tom Tromey <tromey@adacore.com>
5980
5981 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5982 separate debug files.
5983
13302e95
HD
59842020-04-10 Hannes Domani <ssbssa@yahoo.de>
5985
5986 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5987 Move to...
5988 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5989 ... here.
5990 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5991 Check for STATUS_WX86_BREAKPOINT.
5992 (windows_nat_target::wait): Same.
5993
bdfc1e8a
TV
59942020-04-10 Tom de Vries <tdevries@suse.de>
5995
5996 PR cli/25808
5997 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5998
f4460aec
SM
59992020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6000
6001 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6002 (Write After Approval): Remove Tom de Vries.
6003
a25198bb
BE
60042020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6005
6006 revert partially:
6007 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6008
aac66a4c
SM
6009 * buildsym.c (record_line): Fix undefined behavior and preserve
6010 lines at eof.
a25198bb 6011
206c98a6
KR
60122020-04-09 Kamil Rytarowski <n54@gmx.com>
6013
6014 * auxv.h (svr4_auxv_parse): New.
6015 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6016 and generic_auxv_parse.
6017 (svr4_auxv_parse): Add.
6018 * obsd-tdep.c: Include "auxv.h".
6019 (obsd_auxv_parse): Remove.
6020 (obsd_init_abi): Remove comment.
6021 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6022 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6023 * nbsd-tdep.c: Include "auxv.h".
6024 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6025
71fbdbaf
TT
60262020-04-08 Tom Tromey <tromey@adacore.com>
6027
6028 * nat/windows-nat.h (last_wait_event): Don't declare.
6029 (wait_for_debug_event): Update comment.
6030 * nat/windows-nat.c (last_wait_event): Now static.
6031
2c1d95e8
TT
60322020-04-08 Tom Tromey <tromey@adacore.com>
6033
6034 * windows-nat.c (wait_for_debug_event): Move to
6035 nat/windows-nat.c.
6036 * nat/windows-nat.h (wait_for_debug_event): Declare.
6037 * nat/windows-nat.c (wait_for_debug_event): Move from
6038 windows-nat.c. No longer static.
6039
d2977bc4
TT
60402020-04-08 Tom Tromey <tromey@adacore.com>
6041
6042 * windows-nat.c (get_windows_debug_event): Use
6043 fetch_pending_stop.
6044 * nat/windows-nat.h (fetch_pending_stop): Declare.
6045 * nat/windows-nat.c (fetch_pending_stop): New function.
6046
e758e19c
TT
60472020-04-08 Tom Tromey <tromey@adacore.com>
6048
6049 * windows-nat.c (windows_continue): Use matching_pending_stop and
6050 continue_last_debug_event.
6051 * nat/windows-nat.h (matching_pending_stop)
6052 (continue_last_debug_event): Declare.
6053 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6054 (matching_pending_stop, continue_last_debug_event): New
6055 functions.
6056
8d30e395
TT
60572020-04-08 Tom Tromey <tromey@adacore.com>
6058
6059 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6060 (handle_exception_result): Move to nat/windows-nat.h.
6061 (DEBUG_EXCEPTION_SIMPLE): Remove.
6062 (windows_nat::handle_ms_vc_exception): New function.
6063 (handle_exception): Move to nat/windows-nat.c.
6064 (get_windows_debug_event): Update.
6065 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6066 nat/windows-nat.c.
6067 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6068 (handle_exception_result): Move from windows-nat.c.
6069 (handle_exception): Declare.
6070 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6071 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6072 windows-nat.c.
6073
29de418d
TT
60742020-04-08 Tom Tromey <tromey@adacore.com>
6075
6076 * windows-nat.c (exception_count, event_count): Remove.
6077 (handle_exception, get_windows_debug_event)
6078 (do_initial_windows_stuff): Update.
6079
a816ba18
TT
60802020-04-08 Tom Tromey <tromey@adacore.com>
6081
6082 * windows-nat.c (windows_nat::handle_load_dll)
6083 (windows_nat::handle_unload_dll): Rename. No longer static.
6084 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6085 Declare.
6086
a00caa12
TT
60872020-04-08 Tom Tromey <tromey@adacore.com>
6088
6089 * complaints.h (stop_whining): Declare at top-level.
6090 (complaint): Don't declare stop_whining.
6091
d41b524f
TT
60922020-04-08 Tom Tromey <tromey@adacore.com>
6093
6094 * windows-nat.c (windows_nat::handle_output_debug_string):
6095 Rename. No longer static.
6096 * nat/windows-nat.h (handle_output_debug_string): Declare.
6097
3c76026d
TT
60982020-04-08 Tom Tromey <tromey@adacore.com>
6099
6100 * windows-nat.c (current_process_handle, current_process_id)
6101 (main_thread_id, last_sig, current_event, last_wait_event)
6102 (current_windows_thread, desired_stop_thread_id, pending_stops)
6103 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6104 (display_selectors, fake_create_process)
6105 (get_windows_debug_event): Update.
6106 * nat/windows-nat.h (current_process_handle, current_process_id)
6107 (main_thread_id, last_sig, current_event, last_wait_event)
6108 (current_windows_thread, desired_stop_thread_id, pending_stops)
6109 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6110 * nat/windows-nat.c (current_process_handle, current_process_id)
6111 (main_thread_id, last_sig, current_event, last_wait_event)
6112 (current_windows_thread, desired_stop_thread_id, pending_stops)
6113 (siginfo_er): New globals. Move from windows-nat.c.
6114
9d8679cc
TT
61152020-04-08 Tom Tromey <tromey@adacore.com>
6116
6117 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6118 (handle_load_dll): Update.
6119 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6120
28688adf
TT
61212020-04-08 Tom Tromey <tromey@adacore.com>
6122
6123 * windows-nat.c (enum thread_disposition_type): Move to
6124 nat/windows-nat.h.
6125 (windows_nat::thread_rec): Rename from thread_rec. No longer
6126 static.
6127 (windows_add_thread, windows_nat_target::fetch_registers)
6128 (windows_nat_target::store_registers, handle_exception)
6129 (windows_nat_target::resume, get_windows_debug_event)
6130 (windows_nat_target::get_tib_address)
6131 (windows_nat_target::thread_name)
6132 (windows_nat_target::thread_alive): Update.
6133 * nat/windows-nat.h (enum thread_disposition_type): Move from
6134 windows-nat.c.
6135 (thread_rec): Declare.
6136
4834dad0
TT
61372020-04-08 Tom Tromey <tromey@adacore.com>
6138
6139 * windows-nat.c: Add "using namespace".
6140 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6141 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6142
65bafd5b
TT
61432020-04-08 Tom Tromey <tromey@adacore.com>
6144
6145 * nat/windows-nat.h (struct windows_thread_info): Declare
6146 destructor.
6147 * nat/windows-nat.c (~windows_thread_info): New.
6148
0a4afda3
TT
61492020-04-08 Tom Tromey <tromey@adacore.com>
6150
6151 PR gdb/22992
6152 * windows-nat.c (current_event): Update comment.
6153 (last_wait_event, desired_stop_thread_id): New globals.
6154 (struct pending_stop): New.
6155 (pending_stops): New global.
6156 (windows_nat_target) <stopped_by_sw_breakpoint>
6157 <supports_stopped_by_sw_breakpoint>: New methods.
6158 (windows_fetch_one_register): Add assertions. Adjust PC.
6159 (windows_continue): Handle pending stops. Suspend other threads
6160 when stepping. Use last_wait_event
6161 (wait_for_debug_event): New function.
6162 (get_windows_debug_event): Use wait_for_debug_event. Handle
6163 pending stops. Queue spurious stops.
6164 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6165 (windows_nat_target::kill): Use wait_for_debug_event.
6166 * nat/windows-nat.h (struct windows_thread_info)
6167 <stopped_at_software_breakpoint>: New field.
6168 * nat/windows-nat.c (windows_thread_info::resume): Clear
6169 stopped_at_software_breakpoint.
6170
8e61ebec
TT
61712020-04-08 Tom Tromey <tromey@adacore.com>
6172
6173 * windows-nat.c (enum thread_disposition_type): New.
6174 (thread_rec): Replace "get_context" parameter with "disposition";
6175 change type.
6176 (windows_add_thread, windows_nat_target::fetch_registers)
6177 (windows_nat_target::store_registers, handle_exception)
6178 (windows_nat_target::resume, get_windows_debug_event)
6179 (windows_nat_target::get_tib_address)
6180 (windows_nat_target::thread_name)
6181 (windows_nat_target::thread_alive): Update.
6182
98a03287
TT
61832020-04-08 Tom Tromey <tromey@adacore.com>
6184
6185 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6186 (windows_continue): Use windows_continue::resume.
6187 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6188 resume>: Declare new methods.
6189 * nat/windows-nat.c: New file.
6190 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6191
7c7411bc
TT
61922020-04-08 Tom Tromey <tromey@adacore.com>
6193
6194 * windows-nat.c (windows_add_thread, windows_delete_thread)
6195 (windows_nat_target::fetch_registers)
6196 (windows_nat_target::store_registers, fake_create_process)
6197 (windows_nat_target::resume, windows_nat_target::resume)
6198 (get_windows_debug_event, windows_nat_target::wait)
6199 (windows_nat_target::pid_to_str)
6200 (windows_nat_target::get_tib_address)
6201 (windows_nat_target::get_ada_task_ptid)
6202 (windows_nat_target::thread_name)
6203 (windows_nat_target::thread_alive): Use lwp, not tid.
6204
2950fdf7
TT
62052020-04-08 Tom Tromey <tromey@adacore.com>
6206
6207 * windows-nat.c (handle_exception)
6208 (windows_nat_target::thread_name): Update.
6209 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6210 <name>: Now unique_xmalloc_ptr.
6211
62fe396b
TT
62122020-04-08 Tom Tromey <tromey@adacore.com>
6213
6214 * windows-nat.c (thread_rec)
6215 (windows_nat_target::fetch_registers): Update.
6216 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6217 Update comment.
6218 <debug_registers_changed, reload_context>: Now bool.
6219
e9534bd2
TT
62202020-04-08 Tom Tromey <tromey@adacore.com>
6221
6222 * windows-nat.c (windows_add_thread): Use new.
6223 (windows_init_thread_list, windows_delete_thread): Use delete.
6224 (get_windows_debug_event): Update.
6225 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6226 destructor, and initializers.
6227
ae1f8880
TT
62282020-04-08 Tom Tromey <tromey@adacore.com>
6229
6230 * windows-nat.c (struct windows_thread_info): Remove.
6231 * nat/windows-nat.h: New file.
6232
55a1e039
TT
62332020-04-08 Tom Tromey <tromey@adacore.com>
6234
6235 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6236 (thread_rec, windows_add_thread, windows_delete_thread)
6237 (windows_continue): Update.
6238
93366324
TT
62392020-04-08 Tom Tromey <tromey@adacore.com>
6240
6241 * windows-nat.c (struct windows_thread_info): Remove typedef.
6242 (thread_head): Remove.
6243 (thread_list): New global.
6244 (thread_rec, windows_add_thread, windows_init_thread_list)
6245 (windows_delete_thread, windows_continue): Update.
6246
0f2265e2
SM
62472020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6248
6249 * windows-tdep.h (windows_init_abi): Add comment.
6250 (cygwin_init_abi): New declaration.
6251 * windows-tdep.c: Split signal enumeration in two, one for
6252 Windows and one for Cygwin.
6253 (windows_gdb_signal_to_target): Only deal with signal of the
6254 Windows OS ABI.
6255 (cygwin_gdb_signal_to_target): New function.
6256 (windows_init_abi): Rename to windows_init_abi_common, don't set
6257 gdb_signal_to_target gdbarch method. Add new new function with
6258 this name.
6259 (cygwin_init_abi): New function.
6260 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6261 comment. Don't call windows_init_abi.
6262 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6263 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6264 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6265 i386_windows_init_abi_common, don't call windows_init_abi. Add
6266 a new function of this name.
6267 (i386_cygwin_init_abi): New function.
6268 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6269 OS ABI Cygwin.
6270
3810f182
SM
62712020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6272
6273 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6274 parameter.c.
6275 (dwarf2_read_gdb_index): Update.
6276
063f8e80
KR
62772020-04-07 Kamil Rytarowski <n54@gmx.com>
6278
6279 * nbsd-tdep.c: Include "objfiles.h".
6280 (nbsd_skip_solib_resolver): New.
6281 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6282
85a9510c 62832020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6284
6285 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6286 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6287 with DW_LLE_base_addressx are being emitted in DWARFv5.
6288 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6289 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6290 unsigned integer.
6291
9fc3eaae 62922020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6293
6294 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6295 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6296 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6297 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6298 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6299 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6300 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6301
6302
41144253 63032020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6304
6305 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6306 (read_loclist_index): New function definition.
6307 (lookup_loclist_base): New function definition.
6308 (read_loclist_header): New function definition.
6309 (dwarf2_cu): Add loclist_base and loclist_header field.
6310 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6311 (read_full_die_1): Read the value of DW_AT_loclists_base.
6312 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6313 (read_attribute_value): Handle DW_FORM_loclistx.
6314 (skip_one_die): Handle DW_FORM_loclistx.
6315 (loclist_header): New structure declaration.
6316 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6317
9f4e76a4
SM
63182020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6319
6320 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6321 constructor. Remove `addr` parameter from other constructor and
6322 add `per_cu` parameter.
6323 * dwarf2/read.c (create_partial_symtab): Update.
6324
25c11aca
TV
63252020-04-07 Tom de Vries <tdevries@suse.de>
6326
6327 PR symtab/25796
6328 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6329 (partial_die_info::fixup): Inherit has_const_value.
6330
5707e24b
TV
63312020-04-07 Tom de Vries <tdevries@suse.de>
6332
6333 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6334 symbols without address.
6335
05f00e22
KR
63362020-04-06 Kamil Rytarowski <n54@gmx.com>
6337
6338 * nbsd-nat.h (struct thread_info): Add forward declaration.
6339 (nbsd_nat_target::thread_alive): Add.
6340 (nbsd_nat_target::thread_name): Likewise.
6341 (nbsd_nat_target::update_thread_list): Likewise.
6342 (update_thread_list::post_attach): Likewise.
6343 (post_attach::pid_to_str): Likewise.
6344 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6345 (nbsd_thread_lister): Add.
6346 (nbsd_nat_target::thread_alive): Likewise.
6347 (nbsd_nat_target::thread_name): Likewise.
6348 (nbsd_add_threads): Likewise.
6349 (update_thread_list::post_attach): Likewise.
6350 (nbsd_nat_target::update_thread_list): Likewise.
6351 (post_attach::pid_to_str): Likewise.
6352
6ee448cc
TT
63532020-04-06 Tom Tromey <tromey@adacore.com>
6354
6355 * ada-valprint.c (print_variant_part): Extract the variant field.
6356 (print_field_values): Use the field as the outer value when
6357 recursing.
6358
dea34e8c
TT
63592020-04-06 Tom Tromey <tromey@adacore.com>
6360
6361 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6362 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6363 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6364 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6365 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6366
93689ce9
TT
63672020-04-06 Tom Tromey <tromey@adacore.com>
6368
6369 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6370 TYPE_CODE_ERROR.
6371
79743962
KR
63722020-04-06 Kamil Rytarowski <n54@gmx.com>
6373
6374 * nbsd-tdep.c: Include "gdbarch.h".
6375 Define enum with NetBSD signal numbers.
6376 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6377 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6378 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6379 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6380 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6381 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6382 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6383 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6384 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6385 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6386 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6387 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6388
9e7c9a03
HD
63892020-04-03 Hannes Domani <ssbssa@yahoo.de>
6390
6391 PR gdb/25325
6392 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6393
d9e49b61
TT
63942020-04-03 Tom Tromey <tromey@adacore.com>
6395
6396 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6397 Read constant block.
6398
e0fc5c3f
SM
63992020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6400
6401 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6402 (gdb_bfd_get_full_section_contents): New declaration.
6403 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6404 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6405 gdb_bfd_get_full_section_contents.
6406
e2ff18a0
SM
64072020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6408
6409 * exec.c (build_section_table): Replace internal_error with
6410 gdb_assert.
6411 (section_table_xfer_memory_partial): Likewise.
6412 * mdebugread.c (parse_partial_symbols): Likewise.
6413 * psymtab.c (lookup_partial_symbol): Likewise.
6414 * utils.c (wrap_here): Likewise.
6415
0830d301
TT
64162020-04-02 Tom Tromey <tromey@adacore.com>
6417
6418 * f-lang.c (build_fortran_types): Use arch_type to initialize
6419 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6420
e7da7f8f
TT
64212020-04-02 Tom Tromey <tromey@adacore.com>
6422
6423 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6424 of attributes.
6425
c90d28ac
AB
64262020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6427 Bernd Edlinger <bernd.edlinger@hotmail.de>
6428 Tom Tromey <tromey@adacore.com>
6429
6430 * buildsym.c (buildsym_compunit::record_line): Remove
6431 deduplication code.
6432
1aa98955
TV
64332020-04-02 Tom de Vries <tdevries@suse.de>
6434
6435 PR ada/24671
6436 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6437
d3214198
TV
64382020-04-02 Tom de Vries <tdevries@suse.de>
6439
6440 * dwarf2/read.c (dwarf2_gdb_index_functions,
6441 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6442 NULL.
6443 * psymtab.c (psym_lookup_global_symbol_language): New function.
6444 (psym_functions): Init psym_lookup_global_symbol_language with
6445 psym_lookup_global_symbol_language.
6446 * symfile-debug.c (debug_sym_quick_functions): Init
6447 lookup_global_symbol_language with NULL.
6448 * symfile.c (set_initial_language): Remove fixme comment.
6449 * symfile.h (struct quick_symbol_functions): Add
6450 lookup_global_symbol_language.
6451 * symtab.c (find_quick_global_symbol_language): New function.
6452 (find_main_name): Use find_quick_global_symbol_language.
6453
2836752f
SM
64542020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6455
6456 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6457
64dc2d4b
BE
64582020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6459
6460 * buildsym.c (record_line): Fix undefined behavior and preserve
6461 lines at eof.
6462
bbe3dc41
BE
64632020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6464
6465 * buildsym.c (record_line): Fix the resizing condition.
6466
6b4a335b
TT
64672020-04-01 Tom Tromey <tom@tromey.com>
6468
6469 * value.h (value_literal_complex): Add comment.
6470 * valops.c (value_literal_complex): Refer to value.h.
6471
3638a098
TT
64722020-04-01 Tom Tromey <tom@tromey.com>
6473
6474 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6475 (scalar_type): New rule, from typebase.
6476 (typebase): Use scalar_type. Recognize complex types.
6477 (field_name): Handle FLOAT_KEYWORD.
6478 (ident_tokens): Add _Complex and __complex__.
6479
c34e8714
TT
64802020-04-01 Tom Tromey <tom@tromey.com>
6481
6482 PR exp/25299:
6483 * valarith.c (promotion_type, complex_binop): New functions.
6484 (scalar_binop): Handle complex numbers. Use promotion_type.
6485 (value_pos, value_neg, value_complement): Handle complex numbers.
6486
fa649bb7
TT
64872020-04-01 Tom Tromey <tom@tromey.com>
6488
6489 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6490 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6491 (parse_number): Handle complex numbers.
6492
981c08ce
TT
64932020-04-01 Tom Tromey <tom@tromey.com>
6494
6495 * c-valprint.c (c_decorations): Change complex suffix to "i".
6496
4c99290d
TT
64972020-04-01 Tom Tromey <tom@tromey.com>
6498
6499 * valprint.c (generic_value_print_complex): Use accessors.
6500 * value.h (value_real_part, value_imaginary_part): Declare.
6501 * valops.c (value_real_part, value_imaginary_part): New
6502 functions.
6503 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6504
5b930b45
TT
65052020-04-01 Tom Tromey <tom@tromey.com>
6506
6507 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6508 (read_range_type): Update.
6509 * mdebugread.c (basic_type): Update.
6510 * go-lang.c (build_go_types): Use init_complex_type.
6511 * gdbtypes.h (struct main_type) <complex_type>: New member.
6512 (init_complex_type): Update.
6513 (arch_complex_type): Don't declare.
6514 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6515 Make name if none given. Use alloc_type_copy. Look for cached
6516 complex type.
6517 (arch_complex_type): Remove.
6518 (gdbtypes_post_init): Use init_complex_type.
6519 * f-lang.c (build_fortran_types): Use init_complex_type.
6520 * dwarf2/read.c (read_base_type): Update.
6521 * d-lang.c (build_d_types): Use init_complex_type.
6522 * ctfread.c (read_base_type): Update.
6523
53cccef1
TBA
65242020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6525
6526 * infrun.c (stop_all_threads): Update assertion, plus when
6527 stopping threads, take into account that we might be trying
6528 to stop an all-stop target.
6529 (stop_waiting): Call 'stop_all_threads' if there exists a
6530 non-stop target.
6531
a0714d30
TBA
65322020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6533
6534 * target.h (exists_non_stop_target): New function declaration.
6535 * target.c (exists_non_stop_target): New function.
6536
60e22c1e
HD
65372020-04-01 Hannes Domani <ssbssa@yahoo.de>
6538
6539 PR gdb/24789
6540 * eval.c (is_integral_or_integral_reference): New function.
6541 (evaluate_subexp_standard): Allow integer references in
6542 pointer arithmetic.
6543
e139a727
TBA
65442020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6545
6546 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6547 check for no ptid in the stop reply when the target is non-stop.
6548
e0802d59
TT
65492020-04-01 Tom Tromey <tromey@adacore.com>
6550
6551 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6552 "name" parameter to rvalue reference. Initialize m_name_holder.
6553 <lookup_name_info>: New overloads.
6554 <name>: Return gdb::string_view.
6555 <c_str>: New method.
6556 <make_ignore_params>: Update.
6557 <search_name_hash>: Update.
6558 <language_lookup_name>: Return const char *.
6559 <m_name>: Change type.
6560 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6561 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6562 (lookup_name_info::match_any): Update.
6563 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6564 Update.
6565 * minsyms.c (linkage_name_str): Update.
6566 * language.c (default_symbol_name_matcher): Update.
6567 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6568 Update.
6569 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6570 (ada_lookup_name_info::ada_lookup_name_info): Update.
6571 (literal_symbol_name_matcher): Update.
6572
8c072cb6
TT
65732020-04-01 Tom Tromey <tromey@adacore.com>
6574
6575 * psymtab.c (psymtab_search_name): Remove function.
6576 (psym_lookup_symbol): Create search name and lookup name here.
6577 (lookup_partial_symbol): Remove "name" parameter; add
6578 lookup_name.
6579 (psym_expand_symtabs_for_function): Update.
6580
6f29a534
TT
65812020-03-31 Joel Jones <joelkevinjones@gmail.com>
6582
6583 PR tui/25597:
6584 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6585
af62665e
TT
65862020-03-31 Tom Tromey <tromey@adacore.com>
6587
6588 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6589 memcpy.
6590
d1a89da5
NC
65912020-03-30 Nelson Chu <nelson.chu@sifive.com>
6592
6593 * features/riscv/32bit-csr.xml: Regenerated.
6594 * features/riscv/64bit-csr.xml: Regenerated.
6595
d8af9068
TT
65962020-03-30 Tom Tromey <tromey@adacore.com>
6597
6598 * ada-valprint.c (print_variant_part): Update.
6599 * ada-lang.h (ada_which_variant_applies): Update.
6600 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6601 outer_valaddr parameters; replace with "outer" value parameter.
6602 (to_fixed_variant_branch_type): Update.
6603
227c0bf4
PFC
66042020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6605
6606 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6607 <list>. Remove inclusion of observable.h.
6608 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6609 (struct arch_lwp_info): New struct.
6610 (class ppc_linux_dreg_interface): New class.
6611 (struct ppc_linux_process_info): New struct.
6612 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6613 <low_new_clone, low_forget_process, low_prepare_to_resume>
6614 <copy_thread_dreg_state, mark_thread_stale>
6615 <mark_debug_registers_changed, register_hw_breakpoint>
6616 <clear_hw_breakpoint, register_wp, clear_wp>
6617 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6618 <num_memory_accesses, get_trigger_type>
6619 <create_watchpoint_request, hwdebug_point_cmp>
6620 <init_arch_lwp_info, get_arch_lwp_info>
6621 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6622 methods.
6623 <struct ptid_hash>: New inner struct.
6624 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6625 members.
6626 (saved_dabr_value, hwdebug_info, max_slots_number)
6627 (struct hw_break_tuple, struct thread_points, ppc_threads)
6628 (have_ptrace_hwdebug_interface)
6629 (hwdebug_find_thread_points_by_tid)
6630 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6631 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6632 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6633 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6634 use m_dreg_interface.
6635 (hwdebug_point_cmp): Change to...
6636 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6637 reference arguments instead of pointers.
6638 (ppc_linux_nat_target::ranged_break_num_registers): Use
6639 m_dreg_interface.
6640 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6641 m_dreg_interface. Call register_hw_breakpoint.
6642 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6643 m_dreg_interface. Call clear_hw_breakpoint.
6644 (get_trigger_type): Change to...
6645 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6646 comment.
6647 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6648 use m_dreg_interface. Call register_hw_breakpoint.
6649 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6650 use m_dreg_interface. Call clear_hw_breakpoint.
6651 (can_use_watchpoint_cond_accel): Change to...
6652 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6653 method. Update comment, use m_dreg_interface and
6654 m_process_info.
6655 (calculate_dvc): Change to...
6656 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6657 m_dreg_interface.
6658 (num_memory_accesses): Change to...
6659 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6660 (check_condition): Change to...
6661 (ppc_linux_nat_target::check_condition): ...this method.
6662 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6663 comment, use m_dreg_interface.
6664 (create_watchpoint_request): Change to...
6665 (ppc_linux_nat_target::create_watchpoint_request): ...this
6666 method. Use m_dreg_interface.
6667 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6668 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6669 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6670 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6671 (ppc_linux_nat_target::low_forget_process)
6672 (ppc_linux_nat_target::low_new_fork)
6673 (ppc_linux_nat_target::low_new_clone)
6674 (ppc_linux_nat_target::low_delete_thread)
6675 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6676 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6677 only call mark_thread_stale.
6678 (ppc_linux_thread_exit): Remove.
6679 (ppc_linux_nat_target::stopped_data_address): Change to...
6680 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6681 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6682 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6683 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6684 comment. Call low_stopped_data_address.
6685 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6686 m_dreg_interface.
6687 (ppc_linux_nat_target::masked_watch_num_registers): Use
6688 m_dreg_interface.
6689 (ppc_linux_nat_target::copy_thread_dreg_state)
6690 (ppc_linux_nat_target::mark_thread_stale)
6691 (ppc_linux_nat_target::mark_debug_registers_changed)
6692 (ppc_linux_nat_target::register_hw_breakpoint)
6693 (ppc_linux_nat_target::clear_hw_breakpoint)
6694 (ppc_linux_nat_target::register_wp)
6695 (ppc_linux_nat_target::clear_wp)
6696 (ppc_linux_nat_target::init_arch_lwp_info)
6697 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6698 (_initialize_ppc_linux_nat): Remove observer callback.
6699
4db10d8f
PFC
67002020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6701
6702 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6703 (ppc_linux_nat_target::auxv_parse)
6704 (ppc_linux_nat_target::read_description)
6705 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6706 Move up.
6707
1310c1b0
PFC
67082020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6709
6710 * linux-nat.h (low_new_clone): New method.
6711 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6712
69b037c3
SM
67132020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6714
6715 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6716 (dbx_expand_psymtab): ... this.
6717 (start_psymtab): Update.
6718 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6719 (mdebug_expand_psymtab): ... this.
6720 (parse_partial_symbols): Update.
6721 (new_psymtab): Update.
6722 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6723 (xcoff_expand_psymtab): ... this.
6724 (xcoff_start_psymtab): Update.
6725
48993951
SM
67262020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6727
6728 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6729 <expand_dependencies>: ... this.
6730 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6731 (partial_symtab::expand_dependencies): ... this.
6732 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6733 Update.
6734 (dwarf2_psymtab::expand_psymtab): Update.
6735 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6736 * mdebugread.c (psymtab_to_symtab_1): Update.
6737 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6738
3ad83046
SM
67392020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6740
6741 * psympriv.h (discard_psymtab): Remove.
6742 * dbxread.c (dbx_end_psymtab): Update.
6743 * xcoffread.c (xcoff_end_psymtab): Update.
6744
4d1b9ab6
TT
67452020-03-28 Tom Tromey <tom@tromey.com>
6746
6747 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6748 comment.
6749
f1749218
TT
67502020-03-28 Tom Tromey <tom@tromey.com>
6751
6752 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6753
ebea7626
HD
67542020-03-27 Hannes Domani <ssbssa@yahoo.de>
6755
6756 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6757
a879b4d5
JB
67582020-03-26 John Baldwin <jhb@FreeBSD.org>
6759
6760 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6761
0826b30a
TT
67622020-03-26 Tom Tromey <tom@tromey.com>
6763
6764 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6765 (mark_common_block_symbol_computed, read_tag_string_type)
6766 (attr_to_dynamic_prop, read_subrange_type): Update.
6767 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6768 to be methods on struct attribute.
6769 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6770 (read_call_site_scope, partial_die_info::read)
6771 (partial_die_info::read, lookup_die_type, follow_die_ref):
6772 Update.
6773 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6774 from dwarf2_get_ref_die_offset.
6775 (attribute::constant_value): New method, from
6776 dwarf2_get_attr_constant_value.
6777 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6778 Declare method.
6779 <constant_value>: New method.
6780
2b2558bf
TT
67812020-03-26 Tom Tromey <tom@tromey.com>
6782
6783 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6784 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6785 (dwarf_type_encoding_name): Move to stringify.c.
6786 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6787 * dwarf2/stringify.c: New file.
6788 * dwarf2/stringify.h: New file.
6789
eeb64781
TT
67902020-03-26 Tom Tromey <tom@tromey.com>
6791
6792 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6793 Rewrite.
6794
a39fdb41
TT
67952020-03-26 Tom Tromey <tom@tromey.com>
6796
6797 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6798 methods.
6799 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6800 (lookup_ranges_base): Likewise.
6801 (read_cutu_die_from_dwo, read_full_die_1): Update.
6802
436c571c
TT
68032020-03-26 Tom Tromey <tom@tromey.com>
6804
6805 * dwarf2/read.c (read_import_statement, read_file_scope)
6806 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6807 (read_lexical_block_scope, read_call_site_scope)
6808 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6809 (handle_struct_member_die, process_structure_scope)
6810 (update_enumeration_type_from_children)
6811 (process_enumeration_scope, read_array_type, read_common_block)
6812 (read_namespace, read_module, read_subroutine_type): Update.
6813 (sibling_die): Remove.
6814
052c8bb8
TT
68152020-03-26 Tom Tromey <tom@tromey.com>
6816
6817 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6818 (build_type_psymtabs_reader, read_structure_type)
6819 (read_enumeration_type, read_full_die_1): Update.
6820 (dwarf2_attr_no_follow): Move to die.h.
6821 * dwarf2/die.h (struct die_info) <attr>: New method.
6822
2b24b6e4
TT
68232020-03-26 Tom Tromey <tom@tromey.com>
6824
6825 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6826 <base_address>: Now an optional.
6827 (dwarf2_find_base_address, dwarf2_rnglists_process)
6828 (dwarf2_ranges_process, fill_in_loclist_baton)
6829 (dwarf2_symbol_mark_computed): Update.
6830
c2d50fd0
TT
68312020-03-26 Tom Tromey <tom@tromey.com>
6832
6833 * dwarf2/read.c (struct die_info): Move to die.h.
6834 * dwarf2/die.h: New file.
6835
0df7ad3a
TT
68362020-03-26 Tom Tromey <tom@tromey.com>
6837
6838 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6839 * dwarf2/read.c
6840 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6841 Move to line-header.c.
6842 (read_checked_initial_length_and_offset, read_formatted_entries):
6843 Likewise.
6844 (dwarf_decode_line_header): Split into two.
6845 * dwarf2/line-header.c
6846 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6847 Move from read.c.
6848 (read_checked_initial_length_and_offset, read_formatted_entries):
6849 Likewise.
6850 (dwarf_decode_line_header): New function, split from read.c.
6851
86c0bb4c
TT
68522020-03-26 Tom Tromey <tom@tromey.com>
6853
6854 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6855 Declare method.
6856 * dwarf2/read.c (read_attribute_value): Update.
6857 (dwarf2_per_objfile::read_line_string): Rename from
6858 read_indirect_line_string.
6859 (read_formatted_entries): Update.
6860
2ef46c2f
TT
68612020-03-26 Tom Tromey <tom@tromey.com>
6862
6863 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6864 variable.
6865
4f9c1eda
TT
68662020-03-26 Tom Tromey <tom@tromey.com>
6867
6868 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6869 const.
6870 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6871 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6872 parameter const.
6873
5a0e026f
TT
68742020-03-26 Tom Tromey <tom@tromey.com>
6875
6876 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6877 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6878 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6879 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6880
8844c11b
TT
68812020-03-26 Tom Tromey <tom@tromey.com>
6882
6883 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6884 file_names_size, file_full_name, file_file_name>: Use const.
6885 <file_name_at, file_names>: Add const overload.
6886 * dwarf2/line-header.c (line_header::file_file_name)
6887 (line_header::file_full_name): Update.
6888
c90ec28a
TT
68892020-03-26 Tom Tromey <tom@tromey.com>
6890
6891 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6892 (macro_start_file, consume_improper_spaces)
6893 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6894 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6895 (dwarf_decode_macros): Move to macro.c.
6896 * dwarf2/macro.c: New file.
6897 * dwarf2/macro.h: New file.
6898 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6899
4f44ae6c
TT
69002020-03-26 Tom Tromey <tom@tromey.com>
6901
6902 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6903 method.
6904 * dwarf2/section.c: New method. From
6905 read_indirect_string_at_offset_from.
6906 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6907 (read_indirect_string_at_offset_from): Move to section.c.
6908 (read_indirect_string_at_offset): Rewrite.
6909 (read_indirect_line_string_at_offset): Remove.
6910 (read_indirect_string, read_indirect_line_string)
6911 (dwarf_decode_macro_bytes): Update.
6912
a0194fa8
TT
69132020-03-26 Tom Tromey <tom@tromey.com>
6914
6915 * dwarf2/section.h (struct dwarf2_section_info)
6916 <overload_complaint>: Declare.
6917 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6918 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6919 Rename from dwarf2_section_buffer_overflow_complaint.
6920 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6921 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6922
3d27bbdb
TT
69232020-03-26 Tom Tromey <tom@tromey.com>
6924
6925 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6926 Declare.
6927 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6928 Move from read.c.
6929 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6930 to section.c.
6931
9eac9650
TT
69322020-03-26 Tom Tromey <tom@tromey.com>
6933
6934 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6935
bf80d710
TT
69362020-03-26 Tom Tromey <tom@tromey.com>
6937
6938 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6939 "builder".
6940 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6941 parameter.
6942 (dwarf_decode_macros): Update.
6943
0314b390
TT
69442020-03-26 Tom Tromey <tom@tromey.com>
6945
6946 * dwarf2/read.c (read_attribute_value): Update.
6947 (read_indirect_string_from_dwz): Move to dwz.c; change into
6948 method.
6949 (dwarf_decode_macro_bytes): Update.
6950 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6951 * dwarf2/dwz.c: New file.
6952 * Makefile.in (COMMON_SFILES): Add dwz.c.
6953
9fda78b6
TT
69542020-03-26 Tom Tromey <tom@tromey.com>
6955
6956 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6957 * dwarf2/read.c: Add include.
6958 * dwarf2/index-write.c: Add include.
6959 * dwarf2/index-cache.c: Add include.
6960 * dwarf2/dwz.h: New file.
6961
33aa3c10
TT
69622020-03-25 Tom Tromey <tom@tromey.com>
6963
6964 * compile/compile-object-load.c (get_out_value_type): Mention
6965 correct symbol name in error message.
6966
d503b685
HD
69672020-03-25 Hannes Domani <ssbssa@yahoo.de>
6968
6969 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6970
7b1eff95
TV
69712020-03-25 Tom de Vries <tdevries@suse.de>
6972
6973 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6974 * symmisc.c (dump_symtab_1): Print user and includes fields.
6975 (maintenance_info_symtabs): Same.
6976
dd895392
AB
69772020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6978
6979 PR gdb/25534
6980 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6981 (riscv_regcache_cooked_write): New function.
6982 (riscv_push_dummy_call): Use new function.
6983 (riscv_return_value): Likewise.
6984
5ab2fbf1
SM
69852020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6986
6987 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6988 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6989 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6990 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6991 * infrun.c (follow_fork): Likewise.
6992 (follow_fork_inferior): Likewise.
6993 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6994 * linux-nat.h (class linux_nat_target): Likewise.
6995 * remote.c (class remote_target) <follow_fork>: Likewise.
6996 (remote_target::follow_fork): Likewise.
6997 * target-delegates.c: Re-generate.
6998 * target.c (default_follow_fork): Likewise.
6999 (target_follow_fork): Likewise.
7000 * target.h (struct target_ops) <follow_fork>: Likewise.
7001 (target_follow_fork): Likewise.
7002
a64fafb5
TV
70032020-03-24 Tom de Vries <tdevries@suse.de>
7004
7005 * psymtab.c (maintenance_info_psymtabs): Print user field.
7006
fe26d3a3
TT
70072020-03-20 Tom Tromey <tromey@adacore.com>
7008
7009 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7010 const.
7011 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7012 const.
7013
c884cc46
SM
70142020-03-20 Simon Marchi <simon.marchi@efficios.com>
7015
7016 * ptrace.m4: Don't check for ptrace declaration.
7017 * config.in: Re-generate.
7018 * configure: Re-generate.
7019 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7020 not defined.
7021
1ff700c2
KR
70222020-03-20 Kamil Rytarowski <n54@gmx.com>
7023
7024 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7025 `PTRACE_TYPE_RET'.
7026 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7027 * sparc-nat.c (gdb_ptrace): Likewise.
7028 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7029
f7d4f0b1
TT
70302020-03-20 Tom Tromey <tromey@adacore.com>
7031
7032 * c-exp.y (lex_one_token): Fix assert.
7033
f67210ff
TT
70342020-03-20 Tom Tromey <tromey@adacore.com>
7035
7036 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7037 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7038 strncpy call.
7039
1773be9e
TT
70402020-03-20 Tom Tromey <tromey@adacore.com>
7041
7042 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7043
70304be9
TT
70442020-03-20 Tom Tromey <tromey@adacore.com>
7045
7046 * ada-valprint.c (print_variant_part): Remove parameters; switch
7047 to value-based API.
7048 (print_field_values): Likewise.
7049 (ada_val_print_struct_union): Likewise.
7050 (ada_value_print_1): Update.
7051
9faa006d
KR
70522020-03-20 Kamil Rytarowski <n54@gmx.com>
7053
7054 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7055 nbsd_nat_target instead of inf_ptrace_target.
7056 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7057 nbsd_nat_target.
7058
4a90f062
KR
70592020-03-20 Kamil Rytarowski <n54@gmx.com>
7060
7061 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7062 it to the ptrace call.
7063 * (store_registers): Likewise.
7064
70652020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7066
7067 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7068 it to the ptrace call.
7069 * (store_registers): Likewise.
7070
2d07da27
LM
70712020-03-19 Luis Machado <luis.machado@linaro.org>
7072
7073 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7074 valid, fetch vg value from ptrace.
7075
f09db380
KR
70762020-03-19 Kamil Rytarowski <n54@gmx.com>
7077 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7078 * inf-ptrace.c: Likewise.
7079 * (gdb_ptrace): Add.
7080 * (inf_ptrace_target::resume): Update.
7081 * (inf_ptrace_target::xfer_partial): Likewise.
7082 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7083 * (inf_ptrace_peek_poke): Update.
7084
fcc7376e
KR
70852020-03-19 Kamil Rytarowski <n54@gmx.com>
7086
7087 * x86-bsd-nat.c (gdb_ptrace): New.
7088 * (x86bsd_dr_set): Add new argument `ptid'.
7089 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7090 x86bsd_dr_set_addr): Update.
7091
cada5fc9
AB
70922020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7093
7094 * remote.c (remote_target::process_stop_reply): Handle events for
7095 all threads differently.
7096
19a2740f
AB
70972020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7098
7099 * completer.c (completion_tracker::remove_completion): Define new
7100 function.
7101 * completer.h (completion_tracker::remove_completion): Declare new
7102 function.
7103 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7104 when adding a C++ function symbol.
7105
724fd9ba
AB
71062020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7107
7108 * completer.c (completion_tracker::completion_hash_entry): Define
7109 new class.
7110 (advance_to_filename_complete_word_point): Call
7111 recompute_lowest_common_denominator.
7112 (completion_tracker::completion_tracker): Call discard_completions
7113 to setup the hash table.
7114 (completion_tracker::discard_completions): Allow for being called
7115 from the constructor, pass new equal function, and element deleter
7116 when constructing the hash table. Initialise new class member
7117 variables.
7118 (completion_tracker::maybe_add_completion): Remove use of
7119 m_entries_vec, and store more information into m_entries_hash.
7120 (completion_tracker::recompute_lcd_visitor): New function, most
7121 content taken from...
7122 (completion_tracker::recompute_lowest_common_denominator):
7123 ...here, this now just visits each item in the hash calling the
7124 above visitor.
7125 (completion_tracker::build_completion_result): Remove use of
7126 m_entries_vec, call recompute_lowest_common_denominator.
7127 * completer.h (completion_tracker::have_completions): Remove use
7128 of m_entries_vec.
7129 (completion_tracker::completion_hash_entry): Declare new class.
7130 (completion_tracker::recompute_lowest_common_denominator): Change
7131 function signature.
7132 (completion_tracker::recompute_lcd_visitor): Declare new function.
7133 (completion_tracker::m_entries_vec): Delete.
7134 (completion_tracker::m_entries_hash): Initialize to NULL.
7135 (completion_tracker::m_lowest_common_denominator_valid): New
7136 member variable.
7137 (completion_tracker::m_lowest_common_denominator_max_length): New
7138 member variable.
7139
5a82b8a1
KR
71402020-03-17 Kamil Rytarowski <n54@gmx.com>
7141
7142 * regformats/regdef.h: Put reg in gdb namespace.
7143
fb516a69
KR
71442020-03-17 Kamil Rytarowski <n54@gmx.com>
7145
7146 * i386-bsd-nat.c (gdb_ptrace): New.
7147 * (i386bsd_fetch_inferior_registers,
7148 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7149 * (i386bsd_fetch_inferior_registers,
7150 i386bsd_store_inferior_registers) Use gdb_ptrace.
7151
1c0aa1fb
KR
71522020-03-17 Kamil Rytarowski <n54@gmx.com>
7153
7154 * amd64-bsd-nat.c (gdb_ptrace): New.
7155 * (amd64bsd_fetch_inferior_registers,
7156 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7157 * (amd64bsd_fetch_inferior_registers,
7158 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7159
5ccd2fb7
KR
71602020-03-17 Kamil Rytarowski <n54@gmx.com>
7161
7162 * user-regs.c (user_reg::read): Rename to...
7163 (user_reg::xread): ...this.
7164 * (append_user_reg): Rename argument `read' to `xread'.
7165 * (user_reg_add_builtin): Likewise.
7166 * (user_reg_add): Likewise.
7167 * (value_of_user_reg): Likewise.
7168
2108a63a
KR
71692020-03-17 Kamil Rytarowski <n54@gmx.com>
7170
7171 * sparc-nat.c (gdb_ptrace): New.
7172 * sparc-nat.c (sparc_fetch_inferior_registers)
7173 (sparc_store_inferior_registers) Remove obsolete comment.
7174 * sparc-nat.c (sparc_fetch_inferior_registers)
7175 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7176 * sparc-nat.c (sparc_fetch_inferior_registers)
7177 (sparc_store_inferior_registers) Use gdb_ptrace.
7178
a225c9a8
KR
71792020-03-17 Kamil Rytarowski <n54@gmx.com>
7180
7181 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7182 it to the ptrace call.
7183 * sh-nbsd-nat.c (store_registers): Likewise.
7184
98097623
KR
71852020-03-17 Kamil Rytarowski <n54@gmx.com>
7186
7187 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7188 nbsd_nat_target instead of inf_ptrace_target.
7189 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7190 nbsd_nat_target.
7191
9e38d619
KR
71922020-03-17 Kamil Rytarowski <n54@gmx.com>
7193
7194 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7195
a2ecbe9f
KR
71962020-03-17 Kamil Rytarowski <n54@gmx.com>
7197
7198 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7199 <sys/sysctl.h>.
7200 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7201
58990295
TV
72022020-03-17 Tom de Vries <tdevries@suse.de>
7203
7204 PR gdb/23710
7205 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7206 fields.
7207 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7208 fields.
7209 (process_imported_unit_die): Skip import of c++ CUs.
7210
771dd3a8
TT
72112020-03-16 Tom Tromey <tom@tromey.com>
7212
7213 * p-valprint.c (pascal_object_print_value): Initialize
7214 base_value.
7215
817a7585
AK
72162020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7217 Shahab Vahedi <shahab@synopsys.com>
7218
7219 * Makefile.in: Add arch/arc.o
7220 * configure.tgt: Likewise.
7221 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7222 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7223 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7224 * arc-tdep.h (arc_read_description): Add proto type.
7225 * arch/arc.c: New file.
7226 * arch/arc.h: Likewise.
7227 * features/Makefile: Replace old target descriptions with new.
7228 * features/arc-arcompact.c: Remove.
7229 * features/arc-arcompact.xml: Likewise.
7230 * features/arc-v2.c: Likewise
7231 * features/arc-v2.xml: Likewise
7232 * features/arc/aux-arcompact.xml: New file.
7233 * features/arc/aux-v2.xml: Likewise.
7234 * features/arc/core-arcompact.xml: Likewise.
7235 * features/arc/core-v2.xml: Likewise.
7236 * features/arc/aux-arcompact.c: Generate.
7237 * features/arc/aux-v2.c: Likewise.
7238 * features/arc/core-arcompact.c: Likewise.
7239 * features/arc/core-v2.c: Likewise.
7240 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7241
67430cd0
TT
72422020-03-16 Tom Tromey <tromey@adacore.com>
7243
7244 PR gdb/25663:
7245 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7246 putting value into bcache.
7247
30efb6c7
SM
72482020-03-16 Simon Marchi <simon.marchi@efficios.com>
7249
7250 PR gdb/21500
7251 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7252 to...
7253 (amd64_windows_init_abi_common): ... this. Don't set size of
7254 long type.
7255 (amd64_windows_init_abi): New function.
7256 (amd64_cygwin_init_abi): New function.
7257 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7258 the Cygwin OS ABI.
7259 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7260 comment.
7261
8db52437
SM
72622020-03-16 Simon Marchi <simon.marchi@efficios.com>
7263
7264 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7265 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7266 (pe_import_directory_entry): New struct type.
7267 (is_linked_with_cygwin_dll): New function.
7268 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7269 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7270 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7271
5982a56a
SM
72722020-03-16 Simon Marchi <simon.marchi@efficios.com>
7273
7274 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7275 i386_cygwin_core_osabi_sniffer.
7276
7a1998df
SM
72772020-03-16 Simon Marchi <simon.marchi@efficios.com>
7278
7279 * i386-cygwin-tdep.c: Rename to...
7280 * i386-windows-tdep.c: ... this.
7281 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7282 i386-windows-tdep.c.
7283 * configure.tgt: Likewise.
7284
053205cc
SM
72852020-03-16 Simon Marchi <simon.marchi@efficios.com>
7286
7287 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7288 * osabi.c (gdb_osabi_names): Add "Windows".
7289 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7290 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7291 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7292 i386_cygwin_osabi_sniffer.
7293 (_initialize_i386_cygwin_tdep): Register OS ABI
7294 GDB_OSABI_WINDOWS for i386.
7295 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7296 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7297 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7298 for x86-64.
7299 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7300 when the target matches '*-*-mingw*'.
7301
fe4b2ee6
SM
73022020-03-16 Simon Marchi <simon.marchi@efficios.com>
7303
7304 * defs.h (enum gdb_osabi): Move to...
7305 * osabi.h (enum gdb_osabi): ... here.
7306 * gdbarch.sh: Include osabi.h in gdbarch.h.
7307 * gdbarch.h: Re-generate.
7308
cb9b645d
SM
73092020-03-16 Simon Marchi <simon.marchi@efficios.com>
7310
7311 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7312 function.
7313 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7314
3293bbaf
TT
73152020-03-14 Tom Tromey <tom@tromey.com>
7316
7317 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7318 for C++.
7319 (c_type_print_modifier): Likewise. Add "language" parameter.
7320 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7321 (c_type_print_base_1): Update.
7322 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7323 constants.
7324 * type-stack.c (type_stack::insert): Handle tp_atomic and
7325 tp_restrict.
7326 (type_stack::follow_type_instance_flags): Likewise.
7327 (type_stack::follow_types): Likewise. Merge type-following code.
7328 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7329 (space_identifier, cv_with_space_id)
7330 (const_or_volatile_or_space_identifier_noopt)
7331 (const_or_volatile_or_space_identifier): Remove.
7332 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7333 rules.
7334 (ptr_operator, typebase): Update.
7335 (enum token_flag) <FLAG_C>: New constant.
7336 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7337 "_Atomic".
7338 (lex_one_token): Handle FLAG_C.
7339
154151a6
KR
73402020-03-14 Kamil Rytarowski <n54@gmx.com>
7341
7342 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7343 it to the ptrace call.
7344 * m68k-bsd-nat.c (store_registers): Likewise.
7345
bc107784
KR
73462020-03-14 Kamil Rytarowski <n54@gmx.com>
7347
7348 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7349 gdb_byte *.
7350 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7351 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7352 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7353
01a80117
KR
73542020-03-14 Kamil Rytarowski <n54@gmx.com>
7355
7356 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7357 nbsd_nat_target instead of inf_ptrace_target.
7358 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7359 nbsd_nat_target.
7360
f90280ca
KR
73612020-03-14 Kamil Rytarowski <n54@gmx.com>
7362
7363 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7364 register_t.
7365
6def66f1
KR
73662020-03-14 Kamil Rytarowski <n54@gmx.com>
7367
7368 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7369 it to the ptrace call.
7370 * alpha-bsd-nat.c (store_registers): Likewise.
7371
66eaca97
KR
73722020-03-14 Kamil Rytarowski <n54@gmx.com>
7373
7374 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7375 includes.
7376 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7377 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7378 fill_fpregset): Likewise.
7379
4fed520b
KR
73802020-03-14 Kamil Rytarowski <n54@gmx.com>
7381
7382 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7383 nbsd_nat_target instead of inf_ptrace_target.
7384 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7385 nbsd_nat_target.
7386
2190cf06
KR
73872020-03-14 Kamil Rytarowski <n54@gmx.com>
7388
7389 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7390 register_t.
7391
75c56d3d
KR
73922020-03-14 Kamil Rytarowski <n54@gmx.com>
7393
7394 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7395 it to the ptrace call.
7396 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7397 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7398 * arm-nbsd-nat.c (store_register): Likewise.
7399 * arm-nbsd-nat.c (store_regs): Likewise.
7400 * arm-nbsd-nat.c (store_fp_register): Likewise.
7401 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7402
6018d381
KR
74032020-03-14 Kamil Rytarowski <n54@gmx.com>
7404
7405 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7406 nbsd_nat_target instead of inf_ptrace_target.
7407 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7408 nbsd_nat_target.
7409
013f99f0
KR
74102020-03-14 Kamil Rytarowski <n54@gmx.com>
7411
7412 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7413 it to the ptrace call.
7414 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7415
12753073
KR
74162020-03-14 Kamil Rytarowski <n54@gmx.com>
7417
6227b330
KR
7418 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7419 it to the ptrace call.
7420 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7421
74222020-03-14 Kamil Rytarowski <n54@gmx.com>
7423
7424 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7425 gdb_byte *.
12753073
KR
7426 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7427
d5be5fa4
KR
74282020-03-14 Kamil Rytarowski <n54@gmx.com>
7429
7430 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7431 instead of inf_ptrace_target.
7432 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7433 nbsd_nat_target.
7434
8110f842
KR
74352020-03-14 Kamil Rytarowski <n54@gmx.com>
7436
7437 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7438 register_t.
7439
52feded7
KR
74402020-03-14 Kamil Rytarowski <n54@gmx.com>
7441
7442 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7443 register_t.
7444
25567eee
KR
74452020-03-14 Kamil Rytarowski <n54@gmx.com>
7446
7447 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7448 register_t.
7449
426a9c18
TT
74502020-03-13 Tom Tromey <tom@tromey.com>
7451
7452 * value.h (val_print): Don't declare.
7453 * valprint.h (val_print_array_elements)
7454 (val_print_scalar_formatted, generic_val_print): Don't declare.
7455 * valprint.c (generic_val_print_array): Take a struct value.
7456 (generic_val_print_ptr, generic_val_print_memberptr)
7457 (generic_val_print_bool, generic_val_print_int)
7458 (generic_val_print_char, generic_val_print_complex)
7459 (generic_val_print): Remove.
7460 (generic_value_print): Update.
7461 (do_val_print): Remove unused parameters. Don't call
7462 la_val_print.
7463 (val_print): Remove.
7464 (common_val_print): Update. Don't call value_check_printable.
7465 (val_print_scalar_formatted, val_print_array_elements): Remove.
7466 * rust-lang.c (rust_val_print): Remove.
7467 (rust_language_defn): Update.
7468 * p-valprint.c (pascal_val_print): Remove.
7469 (pascal_value_print_inner): Update.
7470 (pascal_object_print_val_fields, pascal_object_print_val):
7471 Remove.
7472 (pascal_object_print_static_field): Update.
7473 * p-lang.h (pascal_val_print): Don't declare.
7474 * p-lang.c (pascal_language_defn): Update.
7475 * opencl-lang.c (opencl_language_defn): Update.
7476 * objc-lang.c (objc_language_defn): Update.
7477 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7478 * m2-lang.h (m2_val_print): Don't declare.
7479 * m2-lang.c (m2_language_defn): Update.
7480 * language.h (struct language_defn) <la_val_print>: Remove.
7481 * language.c (unk_lang_value_print_inner): Rename. Change
7482 argument types.
7483 (unknown_language_defn, auto_language_defn): Update.
7484 * go-valprint.c (go_val_print): Remove.
7485 * go-lang.h (go_val_print): Don't declare.
7486 * go-lang.c (go_language_defn): Update.
7487 * f-valprint.c (f_val_print): Remove.
7488 * f-lang.h (f_value_print): Don't declare.
7489 * f-lang.c (f_language_defn): Update.
7490 * d-valprint.c (d_val_print): Remove.
7491 * d-lang.h (d_value_print): Don't declare.
7492 * d-lang.c (d_language_defn): Update.
7493 * cp-valprint.c (cp_print_value_fields)
7494 (cp_print_value_fields_rtti, cp_print_value): Remove.
7495 (cp_print_static_field): Update.
7496 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7497 (c_val_print_struct, c_val_print_union, c_val_print_int)
7498 (c_val_print_memberptr, c_val_print): Remove.
7499 * c-lang.h (c_val_print_array, cp_print_value_fields)
7500 (cp_print_value_fields_rtti): Don't declare.
7501 * c-lang.c (c_language_defn, cplus_language_defn)
7502 (asm_language_defn, minimal_language_defn): Update.
7503 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7504 (ada_val_print_enum): Take a struct value.
7505 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7506 (ada_val_print): Remove.
7507 (ada_value_print_1): Update.
7508 (printable_val_type): Remove.
7509 * ada-lang.h (ada_val_print): Don't declare.
7510 * ada-lang.c (ada_language_defn): Update.
7511
42331a1e
TT
75122020-03-13 Tom Tromey <tom@tromey.com>
7513
7514 * valprint.c (do_val_print): Update.
7515 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7516 a struct value.
7517 (value_to_value_object_no_release): Declare.
7518 * python/py-value.c (value_to_value_object_no_release): New
7519 function.
7520 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7521 struct value.
7522 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7523 function.
7524 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7525 a struct value.
7526 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7527 Declare.
7528 (gdbscm_apply_val_pretty_printer): Take a struct value.
7529 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7530 value.
7531 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7532 value.
7533 * extension-priv.h (struct extension_language_ops)
7534 <apply_val_pretty_printer>: Take a struct value.
7535 * cp-valprint.c (cp_print_value): Create a struct value.
7536 (cp_print_value): Update.
7537
3a916a97
TT
75382020-03-13 Tom Tromey <tom@tromey.com>
7539
7540 * ada-valprint.c (print_field_values): Call common_val_print.
7541
b59eac37
TT
75422020-03-13 Tom Tromey <tom@tromey.com>
7543
7544 * ada-valprint.c (val_print_packed_array_elements): Remove
7545 bitoffset and val parameters. Call common_val_print.
7546 (ada_val_print_string): Remove offset, address, and original_value
7547 parameters.
7548 (ada_val_print_array): Update.
7549 (ada_value_print_array): New function.
7550 (ada_value_print_1): Call it.
7551
03371129
TT
75522020-03-13 Tom Tromey <tom@tromey.com>
7553
7554 * ada-valprint.c (ada_value_print): Use common_val_print.
7555
2e088f8b
TT
75562020-03-13 Tom Tromey <tom@tromey.com>
7557
7558 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7559
39ef85a8
TT
75602020-03-13 Tom Tromey <tom@tromey.com>
7561
7562 * ada-valprint.c (ada_value_print_num): New function.
7563 (ada_value_print_1): Use it.
7564
b9fa6e07
TT
75652020-03-13 Tom Tromey <tom@tromey.com>
7566
7567 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7568
416595d6
TT
75692020-03-13 Tom Tromey <tom@tromey.com>
7570
7571 * ada-valprint.c (ada_value_print_ptr): New function.
7572 (ada_value_print_1): Use it.
7573
5b5e15ec
TT
75742020-03-13 Tom Tromey <tom@tromey.com>
7575
7576 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7577 call common_val_print.
7578 (ada_val_print_1): Update.
7579 (ada_value_print_1): New function.
7580 (ada_value_print_inner): Rewrite.
7581
fbf54e75
TT
75822020-03-13 Tom Tromey <tom@tromey.com>
7583
7584 * cp-valprint.c (cp_print_value_fields): Update.
7585 (cp_print_value): New function.
7586
64b653ca
TT
75872020-03-13 Tom Tromey <tom@tromey.com>
7588
7589 * m2-valprint.c (m2_value_print_inner): Use
7590 cp_print_value_fields.
7591 * cp-valprint.c (cp_print_value_fields): New function.
7592 * c-valprint.c (c_value_print_struct): New function.
7593 (c_value_print_inner): Use c_value_print_struct.
7594 * c-lang.h (cp_print_value_fields): Declare.
7595
6999f067
TT
75962020-03-13 Tom Tromey <tom@tromey.com>
7597
7598 * c-valprint.c (c_value_print_array): New function.
7599 (c_value_print_inner): Use it.
7600
ce80b8bd
TT
76012020-03-13 Tom Tromey <tom@tromey.com>
7602
7603 * c-valprint.c (c_value_print_memberptr): New function.
7604 (c_value_print_inner): Use it.
7605
2faac269
TT
76062020-03-13 Tom Tromey <tom@tromey.com>
7607
7608 * c-valprint.c (c_value_print_int): New function.
7609 (c_value_print_inner): Use it.
7610
da3e2c29
TT
76112020-03-13 Tom Tromey <tom@tromey.com>
7612
7613 * c-valprint.c (c_value_print_ptr): New function.
7614 (c_value_print_inner): Use it.
7615
50836231
TT
76162020-03-13 Tom Tromey <tom@tromey.com>
7617
7618 * c-valprint.c (c_value_print_inner): Rewrite.
7619
4f412b6e
TT
76202020-03-13 Tom Tromey <tom@tromey.com>
7621
7622 * valprint.c (generic_value_print_complex): New function.
7623 (generic_value_print): Use it.
7624
f5354008
TT
76252020-03-13 Tom Tromey <tom@tromey.com>
7626
7627 * valprint.c (generic_val_print_float): Don't call
7628 val_print_scalar_formatted.
7629 (generic_val_print, generic_value_print): Update.
7630
3eec3b05
TT
76312020-03-13 Tom Tromey <tom@tromey.com>
7632
7633 * valprint.c (generic_value_print_char): New function
7634 (generic_value_print): Use it.
7635
fdddfccb
TT
76362020-03-13 Tom Tromey <tom@tromey.com>
7637
7638 * valprint.c (generic_value_print_int): New function.
7639 (generic_value_print): Use it.
7640
6dde7521
TT
76412020-03-13 Tom Tromey <tom@tromey.com>
7642
7643 * valprint.c (generic_value_print_bool): New function.
7644 (generic_value_print): Use it.
7645
4112d2e6
TT
76462020-03-13 Tom Tromey <tom@tromey.com>
7647
7648 * valprint.c (generic_val_print_func): Simplify.
7649 (generic_val_print, generic_value_print): Update.
7650
65786af6
TT
76512020-03-13 Tom Tromey <tom@tromey.com>
7652
7653 * valprint.c (generic_val_print_flags): Remove.
7654 (generic_val_print, generic_value_print): Update.
7655 (val_print_type_code_flags): Add original_value parameter.
7656
40f3ce18
TT
76572020-03-13 Tom Tromey <tom@tromey.com>
7658
7659 * valprint.c (generic_val_print): Update.
7660 (generic_value_print): Update.
7661 * valprint.c (generic_val_print_enum): Don't call
7662 val_print_scalar_formatted.
7663
2a5b130b
TT
76642020-03-13 Tom Tromey <tom@tromey.com>
7665
7666 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7667 * valprint.c (generic_value_print_ptr): New function.
7668
abc66ce9
TT
76692020-03-13 Tom Tromey <tom@tromey.com>
7670
7671 * valprint.c (generic_value_print): Rewrite.
7672
07a32858
TT
76732020-03-13 Tom Tromey <tom@tromey.com>
7674
7675 * p-valprint.c (pascal_object_print_value_fields)
7676 (pascal_object_print_value): New functions.
7677
64d64d3a
TT
76782020-03-13 Tom Tromey <tom@tromey.com>
7679
7680 * p-valprint.c (pascal_value_print_inner): Rewrite.
7681
6a95a1f5
TT
76822020-03-13 Tom Tromey <tom@tromey.com>
7683
7684 * f-valprint.c (f_value_print_innner): Rewrite.
7685
59fcdac6
TT
76862020-03-13 Tom Tromey <tom@tromey.com>
7687
7688 * m2-valprint.c (m2_print_unbounded_array): New overload.
7689 (m2_print_unbounded_array): Update.
7690 (m2_print_array_contents): Take a struct value.
7691 (m2_value_print_inner): Rewrite.
7692
d133c3e1
TT
76932020-03-13 Tom Tromey <tom@tromey.com>
7694
7695 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7696 (d_value_print_inner): New function.
7697 * d-lang.h (d_value_print_inner): Declare.
7698 * d-lang.c (d_language_defn): Use d_value_print_inner.
7699
23b0f06b
TT
77002020-03-13 Tom Tromey <tom@tromey.com>
7701
7702 * go-valprint.c (go_value_print_inner): New function.
7703 * go-lang.h (go_value_print_inner): Declare.
7704 * go-lang.c (go_language_defn): Use go_value_print_inner.
7705
5f56f7cb
TT
77062020-03-13 Tom Tromey <tom@tromey.com>
7707
7708 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7709 API.
7710 (rust_val_print): Rewrite.
7711 (rust_value_print_inner): New function, from rust_val_print.
7712 (rust_language_defn): Use rust_value_print_inner.
7713
26792ee0
TT
77142020-03-13 Tom Tromey <tom@tromey.com>
7715
7716 * ada-valprint.c (ada_value_print_inner): New function.
7717 * ada-lang.h (ada_value_print_inner): Declare.
7718 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7719
24051bbe
TT
77202020-03-13 Tom Tromey <tom@tromey.com>
7721
7722 * f-valprint.c (f_value_print_innner): New function.
7723 * f-lang.h (f_value_print_innner): Declare.
7724 * f-lang.c (f_language_defn): Use f_value_print_innner.
7725
c0941be6
TT
77262020-03-13 Tom Tromey <tom@tromey.com>
7727
7728 * p-valprint.c (pascal_value_print_inner): New function.
7729 * p-lang.h (pascal_value_print_inner): Declare.
7730 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7731
62c4663d
TT
77322020-03-13 Tom Tromey <tom@tromey.com>
7733
7734 * m2-valprint.c (m2_value_print_inner): New function.
7735 * m2-lang.h (m2_value_print_inner): Declare.
7736 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7737
62182190
TT
77382020-03-13 Tom Tromey <tom@tromey.com>
7739
7740 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7741 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7742 * c-valprint.c (c_value_print_inner): New function.
7743 * c-lang.h (c_value_print_inner): Declare.
7744 * c-lang.c (c_language_defn, cplus_language_defn)
7745 (asm_language_defn, minimal_language_defn): Use
7746 c_value_print_inner.
7747
1e592a8a
TT
77482020-03-13 Tom Tromey <tom@tromey.com>
7749
7750 * p-valprint.c (pascal_object_print_value_fields): Now static.
7751 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7752
7fe471e9
TT
77532020-03-13 Tom Tromey <tom@tromey.com>
7754
7755 * c-valprint.c (c_val_print_array): Simplify.
7756
d121c6ce
TT
77572020-03-13 Tom Tromey <tom@tromey.com>
7758
7759 * valprint.c (value_print_array_elements): New function.
7760 * valprint.h (value_print_array_elements): Declare.
7761
4dba70ee
TT
77622020-03-13 Tom Tromey <tom@tromey.com>
7763
7764 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7765 * mips-tdep.c (mips_print_register): Use
7766 value_print_scalar_formatted.
7767
4f9ae810
TT
77682020-03-13 Tom Tromey <tom@tromey.com>
7769
7770 * valprint.h (value_print_scalar_formatted): Declare.
7771 * valprint.c (value_print_scalar_formatted): New function.
7772
156bfec9
TT
77732020-03-13 Tom Tromey <tom@tromey.com>
7774
7775 * valprint.h (generic_value_print): Declare.
7776 * valprint.c (generic_value_print): New function.
7777
2b4e573d
TT
77782020-03-13 Tom Tromey <tom@tromey.com>
7779
7780 * valprint.c (do_val_print): Call la_value_print_inner, if
7781 available.
7782 * rust-lang.c (rust_language_defn): Update.
7783 * p-lang.c (pascal_language_defn): Update.
7784 * opencl-lang.c (opencl_language_defn): Update.
7785 * objc-lang.c (objc_language_defn): Update.
7786 * m2-lang.c (m2_language_defn): Update.
7787 * language.h (struct language_defn) <la_value_print_inner>: New
7788 member.
7789 * language.c (unknown_language_defn, auto_language_defn): Update.
7790 * go-lang.c (go_language_defn): Update.
7791 * f-lang.c (f_language_defn): Update.
7792 * d-lang.c (d_language_defn): Update.
7793 * c-lang.c (c_language_defn, cplus_language_defn)
7794 (asm_language_defn, minimal_language_defn): Update.
7795 * ada-lang.c (ada_language_defn): Update.
7796
a1f6a07c
TT
77972020-03-13 Tom Tromey <tom@tromey.com>
7798
7799 * c-valprint.c (c_value_print): Use common_val_print.
7800
410cf315
TT
78012020-03-13 Tom Tromey <tom@tromey.com>
7802
7803 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7804
72a45c93
TT
78052020-03-13 Tom Tromey <tom@tromey.com>
7806
7807 * f-valprint.c (f77_print_array_1, f_val_print): Use
7808 common_val_print.
7809
040f66bd
TT
78102020-03-13 Tom Tromey <tom@tromey.com>
7811
7812 * riscv-tdep.c (riscv_print_one_register_info): Use
7813 common_val_print.
7814
a6e05a6c
TT
78152020-03-13 Tom Tromey <tom@tromey.com>
7816
7817 * mi/mi-main.c (output_register): Use common_val_print.
7818
3444c526
TT
78192020-03-13 Tom Tromey <tom@tromey.com>
7820
7821 * infcmd.c (default_print_one_register_info): Use
7822 common_val_print.
7823
c2a44efe
TT
78242020-03-13 Tom Tromey <tom@tromey.com>
7825
7826 * valprint.h (common_val_print_checked): Declare.
7827 * valprint.c (common_val_print_checked): New function.
7828 * stack.c (print_frame_arg): Use common_val_print_checked.
7829
b0c26e99
TT
78302020-03-13 Tom Tromey <tom@tromey.com>
7831
7832 * valprint.c (do_val_print): New function, from val_print.
7833 (val_print): Use do_val_print.
7834 (common_val_print): Use do_val_print.
7835
ce3acbe9
TT
78362020-03-13 Tom Tromey <tom@tromey.com>
7837
7838 * valprint.c (value_print): Use scoped_value_mark.
7839
96c7f873
TV
78402020-03-13 Tom de Vries <tdevries@suse.de>
7841
7842 PR symtab/25646
7843 * psymtab.c (partial_symtab::partial_symtab): Don't set
7844 globals_offset and statics_offset. Push element onto
7845 current_global_psymbols and current_static_psymbols stacks.
7846 (concat): New function.
7847 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7848 element from current_global_psymbols and current_static_psymbols
7849 stacks. Concat popped elements to global_psymbols and
7850 static_symbols.
7851 (add_psymbol_to_list): Use current_global_psymbols and
7852 current_static_psymbols stacks.
7853 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7854 current_static_psymbols fields.
7855
6ba0a321
CB
78562020-03-12 Christian Biesinger <cbiesinger@google.com>
7857
7858 * corelow.c (sniff_core_bfd): Remove.
7859 (class core_target) <m_core_vec>: Remove.
7860 (core_target::core_target): Update.
7861 (core_file_fns): Remove.
7862 (deprecated_add_core_fns): Remove.
7863 (default_core_sniffer): Remove.
7864 (sniff_core_bfd): Remove.
7865 (default_check_format): Remove.
7866 (gdb_check_format): Remove.
7867 (core_target_open): Update.
7868 (core_target::get_core_register_section): Update.
7869 (get_core_registers_cb): Update.
7870 (core_target::fetch_registers): Update.
7871 * gdbcore.h (struct core_fns): Remove.
7872 (deprecated_add_core_fns): Remove.
7873 (default_core_sniffer): Remove.
7874 (default_check_format): Remove.
7875
227031b2
TT
78762020-03-12 Tom Tromey <tom@tromey.com>
7877
7878 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7879 CORE_ADDR.
7880 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7881
53807e9f
TT
78822020-03-12 Tom Tromey <tom@tromey.com>
7883
7884 * remote.c (remote_target::download_tracepoint)
7885 (remote_target::enable_tracepoint)
7886 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7887 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7888 sprintf_vma.
7889
64f25102
TT
78902020-03-12 Tom Tromey <tom@tromey.com>
7891
7892 * symfile-mem.c: Update CORE_ADDR size assert.
7893
272cd5a3
SM
78942020-03-12 Simon Marchi <simon.marchi@efficios.com>
7895
7896 * selftest.m4: Move to gdbsupport/.
7897 * acinclude.m4: Update path to selftest.m4.
7898
74cd3f9d
SM
78992020-03-12 Simon Marchi <simon.marchi@efficios.com>
7900
7901 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7902 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7903 gdbarch-selfselftests.c and selftest-arch.c.
7904 (SUBDIR_UNITTESTS_OBS): Rename to...
7905 (SELFTESTS_OBS): ... this.
7906 (COMMON_SFILES): Remove disasm-selftests.c and
7907 gdbarch-selftests.c.
7908 * configure.ac: Don't add selftest-arch.{c,o} to
7909 CONFIG_{SRCS,OBS}.
7910 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7911 preprocessor conditions.
7912
db6878ac
SM
79132020-03-12 Simon Marchi <simon.marchi@efficios.com>
7914
7915 * configure.ac: Don't source bfd/development.sh.
7916 * selftest.m4: Modify comment.
7917 * configure: Re-generate.
7918
4d696a5c
SM
79192020-03-12 Simon Marchi <simon.marchi@efficios.com>
7920
7921 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7922 not "true" or "false".
7923 * configure: Re-generate.
7924
8dd8e1c7
CB
79252020-03-12 Christian Biesinger <cbiesinger@google.com>
7926
7927 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7928 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7929 renamed to arm_nbsd_supply_gregset.
7930 (fetch_register): Update to call arm_nbsd_supply_gregset.
7931 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7932 (arm_netbsd_nat_target::fetch_registers): Update.
7933 (fetch_elfcore_registers): Removed.
7934 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7935 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7936 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7937 not require NetBSD system headers.
7938 (arm_nbsd_regset): New struct.
7939 (arm_nbsd_iterate_over_regset_sections): New function.
7940 (arm_netbsd_init_abi_common): Updated to call
7941 set_gdbarch_iterate_over_regset_sections.
7942 * arm-nbsd-tdep.h: New file.
7943
dd69bf7a
KB
79442020-03-11 Kevin Buettner <kevinb@redhat.com>
7945
7946 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7947 recursion.
7948
a0761e34
SM
79492020-03-11 Simon Marchi <simon.marchi@efficios.com>
7950
7951 * configure: Re-generate.
7952
e7a82140
TT
79532020-03-11 Tom Tromey <tromey@adacore.com>
7954
7955 * ada-typeprint.c (print_choices): Fix comment.
7956
dcc050c8
AB
79572020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7958
7959 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7960 previous item in the list, when the list has no items.
7961
1c33af77
TV
79622020-03-11 Tom de Vries <tdevries@suse.de>
7963
7964 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7965 PROP_LOCLIST handling code.
7966
8c95582d
AB
79672020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7968
7969 * buildsym-legacy.c (record_line): Pass extra parameter to
7970 record_line.
7971 * buildsym.c (buildsym_compunit::record_line): Take an extra
7972 parameter, reduce duplication in the line table, and record the
7973 is_stmt flag in the line table.
7974 * buildsym.h (buildsym_compunit::record_line): Add extra
7975 parameter.
7976 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7977 non-statement lines.
7978 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7979 this to the symtab builder.
7980 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7981 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7982 through to dwarf_record_line_1.
7983 * infrun.c (process_event_stop_test): When stepping, don't stop at
7984 a non-statement instruction, and only refresh the step info when
7985 we land in the middle of a line's range. Also add an extra
7986 comment.
7987 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7988 field.
7989 * record-btrace.c (btrace_find_line_range): Only record lines
7990 marked as is-statement.
7991 * stack.c (frame_show_address): Show the frame address if we are
7992 in a non-statement sal.
7993 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7994 (maintenance_print_one_line_table): Print a header for the is_stmt
7995 column, and include is_stmt information in the output.
7996 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7997 preference to non-statements.
7998 (find_pcs_for_symtab_line): Prefer is-statement entries.
7999 (find_line_common): Likewise.
8000 * symtab.h (struct linetable_entry): Add is_stmt field.
8001 (struct symtab_and_line): Likewise.
8002 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8003 arranging the line table.
8004
e4003a34
TV
80052020-03-07 Tom de Vries <tdevries@suse.de>
8006
8007 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8008 DIE.
8009
e8932576
TT
80102020-03-07 Tom Tromey <tom@tromey.com>
8011
8012 * valops.c (value_literal_complex): Remove obsolete comment.
8013 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8014 comment.
8015
29734269
SM
80162020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8017
8018 * infrun.h: Forward-declare thread_info.
8019 (set_step_info): Add thread_info parameter, add doc.
8020 * infrun.c (set_step_info): Add thread_info parameter, move doc
8021 to header.
8022 * infrun.c (process_event_stop_test): Pass thread to
8023 set_step_info call.
8024 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8025 set_step_info.
8026 (prepare_one_step): Add thread_info parameter, pass it to
8027 set_step_frame and prepare_one_step (recursive) call.
8028 (step_1): Pass thread to prepare_one_step call.
8029 (step_command_fsm::should_stop): Pass thread to
8030 prepare_one_step.
8031 (until_next_fsm): Pass thread to set_step_frame call.
8032 (finish_command): Pass thread to set_step_info call.
8033
b7d64b29
HD
80342020-03-06 Hannes Domani <ssbssa@yahoo.de>
8035
8036 * windows-tdep.c (windows_solib_create_inferior_hook):
8037 Check if inferior is running.
8038
09f2921c
TV
80392020-03-06 Tom de Vries <tdevries@suse.de>
8040
8041 * NEWS: Fix "the the".
8042 * ctfread.c: Same.
8043
fd760e79
TV
80442020-03-06 Tom de Vries <tdevries@suse.de>
8045
8046 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8047
20ea4a60
AB
80482020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8049
8050 * .dir-locals.el: Add a comment referencing the other copies of
8051 this file.
8052
0afbabf0
JB
80532020-03-05 John Baldwin <jhb@FreeBSD.org>
8054
8055 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8056 psargs.
8057
842806cb
TBA
80582020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8059
8060 * .gitattributes: New file.
8061
be1e3d3e
TT
80622020-03-04 Tom Tromey <tom@tromey.com>
8063
8064 * symmisc.c (print_symbol_bcache_statistics)
8065 (print_objfile_statistics): Update.
8066 * symfile.c (allocate_symtab): Use intern.
8067 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8068 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8069 macro_cache>: Remove.
8070 <string_cache>: New member.
8071 (struct objfile) <intern>: New methods.
8072 * elfread.c (elf_symtab_read): Use intern.
8073 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8074 (dwarf2_compute_name, dwarf2_physname)
8075 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8076 names.
8077 (guess_partial_die_structure_name): Update.
8078 (partial_die_info::fixup): Intern name.
8079 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8080 name.
8081 (dwarf2_name): Intern name. Update.
8082 * buildsym.c (buildsym_compunit::get_macro_table): Use
8083 string_cache.
8084
4e7625fd
TT
80852020-03-04 Tom Tromey <tom@tromey.com>
8086
8087 * jit.c (bfd_open_from_target_memory): Make "target" const.
8088 * corefile.c (gnutarget): Now const.
8089 * gdbcore.h (gnutarget): Now const.
8090
46f9f931
HD
80912020-03-04 Hannes Domani <ssbssa@yahoo.de>
8092
8093 * NEWS: Mention support for WOW64 processes.
8094 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8095 (amd64_windows_segment_register_p): Remove static.
8096 (_initialize_amd64_windows_nat): Update.
8097 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8098 * i386-windows-nat.c (context_offset): Update.
8099 (i386_mappings): Rename and remove static.
8100 (i386_windows_segment_register_p): Remove static.
8101 (_initialize_i386_windows_nat): Update.
8102 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8103 (STATUS_WX86_SINGLE_STEP): New macro.
8104 (EnumProcessModulesEx): New macro.
8105 (Wow64SuspendThread): New macro.
8106 (Wow64GetThreadContext): New macro.
8107 (Wow64SetThreadContext): New macro.
8108 (Wow64GetThreadSelectorEntry): New macro.
8109 (windows_set_context_register_offsets): Add static.
8110 (windows_set_segment_register_p): Likewise.
8111 (windows_add_thread): Adapt for WOW64 processes.
8112 (windows_fetch_one_register): Likewise.
8113 (windows_nat_target::fetch_registers): Likewise.
8114 (windows_store_one_register): Likewise.
8115 (display_selector): Likewise.
8116 (display_selectors): Likewise.
8117 (handle_exception): Likewise.
8118 (windows_continue): Likewise.
8119 (windows_nat_target::resume): Likewise.
8120 (windows_add_all_dlls): Likewise.
8121 (do_initial_windows_stuff): Likewise.
8122 (windows_nat_target::attach): Likewise.
8123 (windows_get_exec_module_filename): Likewise.
8124 (windows_nat_target::create_inferior): Likewise.
8125 (windows_xfer_siginfo): Likewise.
8126 (_initialize_loadable): Initialize Wow64SuspendThread,
8127 Wow64GetThreadContext, Wow64SetThreadContext,
8128 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8129 * windows-nat.h (windows_set_context_register_offsets):
8130 Remove declaration.
8131 (windows_set_segment_register_p): Likewise.
8132 (i386_windows_segment_register_p): Add declaration.
8133 (amd64_windows_segment_register_p): Likewise.
8134
440cf44e
LM
81352020-03-04 Luis Machado <luis.machado@linaro.org>
8136
8137 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8138 in "info registers" for AArch64/ARM.
8139
8140 The change caused "info registers" to not print GPR's.
8141
8142 gdb/ChangeLog:
8143
8144 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8145
8146 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8147 when reg->group is empty and reggroup is not.
8148
1009d92f
TT
81492020-03-03 Tom Tromey <tromey@adacore.com>
8150
8151 * dwarf2/frame.c (struct dwarf2_frame_cache)
8152 <checked_tailcall_bottom, entry_cfa_sp_offset,
8153 entry_cfa_sp_offset_p>: Remove members.
8154 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8155 (dwarf2_frame_prev_register): Don't call
8156 dwarf2_tailcall_sniffer_first.
8157 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8158 * frame-unwind.c (add_unwinder): New fuction.
8159 (frame_unwind_init): Use it. Add tailcall unwinder.
8160
5e5d66b6
AB
81612020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8162 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8163
8164 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8165 value should be printed as true.
8166
584cf46d
HD
81672020-03-03 Hannes Domani <ssbssa@yahoo.de>
8168
8169 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8170 (windows_init_abi): Set and use windows_so_ops.
8171
7b973adc
SDJ
81722020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8173
8174 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8175 when verifying if dealing with a convenience variable.
8176
bb7b70ab
LM
81772020-03-03 Luis Machado <luis.machado@linaro.org>
8178
8179 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8180
9822cb57
SM
81812020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8182
8183 * infrun.c (gdbarch_supports_displaced_stepping): New.
8184 (use_displaced_stepping): Break up conditions in smaller pieces.
8185 Use gdbarch_supports_displaced_stepping.
8186 (displaced_step_prepare_throw): Use
8187 gdbarch_supports_displaced_stepping.
8188
63e163f2
AB
81892020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8190
8191 * NEWS: Mention new behaviour of the history filename.
8192 * top.c (write_history_p): Add comment.
8193 (show_write_history_p): Add header comment, give a different
8194 message when history writing is on, but the history filename is
8195 empty.
8196 (history_filename): Add comment.
8197 (history_filename_empty): New function.
8198 (show_history_filename): Add header comment, give a different
8199 message when the filename is empty.
8200 (init_history): Compare history_filename against nullptr, and only
8201 read history if the filename is not empty.
8202 (set_history_filename): Add header comment, and only make
8203 non-empty filenames absolute.
8204 (init_main): Make the filename argument to 'set history filename'
8205 optional.
8206
81b86b97
CB
82072020-03-02 Christian Biesinger <cbiesinger@google.com>
8208
8209 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8210 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8211 (fetch_fp_register): Update.
8212 (fetch_fp_regs): Update.
8213 (store_fp_register): Update.
8214 (store_fp_regs): Update.
8215 (arm_netbsd_nat_target::read_description): New function.
8216 (fetch_elfcore_registers): Update.
8217
24ed6739
AB
82182020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8219
8220 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8221 general_thread if the stop reply is missing a thread-id.
8222 (remote_target::process_stop_reply): Use the first non-exited
8223 thread if the target didn't pass a thread-id.
8224 * infrun.c (do_target_wait): Move call to
8225 switch_to_inferior_no_thread to ....
8226 (do_target_wait_1): ... here.
8227
a84bb2a0
JT
82282020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8229
8230 * debuginfod-support.c: Include defs.h first.
8231
658dadf0
TV
82322020-02-28 Tom de Vries <tdevries@suse.de>
8233
8234 * symfile.c (set_initial_language): Use default language for lookup.
8235
4ebe4877
SM
82362020-02-28 Simon Marchi <simon.marchi@efficios.com>
8237
8238 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8239 reader variable, pass `this` to read_cutu_die_from_dwo.
8240
e5da1139
AM
82412020-02-27 Aaron Merey <amerey@redhat.com>
8242
8243 * source.c (open_source_file): Check for nullptr when computing
8244 srcpath.
8245
317f7127
TT
82462020-02-27 Tom Tromey <tromey@adacore.com>
8247
8248 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8249 member.
8250 (dwarf2_add_field): Don't update nfields.
8251 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8252
3104d9ee
AB
82532020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8254
8255 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8256 abs.
8257
b83470bf
TT
82582020-02-26 Tom Tromey <tom@tromey.com>
8259
8260 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8261 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8262 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8263 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8264 per_cu_data.
8265
edfe0a0c
TT
82662020-02-26 Tom Tromey <tom@tromey.com>
8267
8268 * dwarf2/index-write.c (psym_index_map): Change type.
8269 (add_address_entry_worker, write_one_signatured_type)
8270 (recursively_count_psymbols, recursively_write_psymbols)
8271 (class debug_names, psyms_seen_size, write_gdbindex)
8272 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8273
0d79cdc4
AM
82742020-02-26 Aaron Merey <amerey@redhat.com>
8275
8276 * Makefile.in: Handle optional debuginfod support.
8277 * NEWS: Update.
8278 * README: Add --with-debuginfod summary.
8279 * config.in: Regenerate.
8280 * configure: Regenerate.
8281 * configure.ac: Handle optional debuginfod support.
8282 * debuginfod-support.c: debuginfod helper functions.
8283 * debuginfod-support.h: Ditto.
8284 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8285 summary.
8286 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8287 when a dwz file cannot be found.
8288 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8289 debuginfo file cannot be found.
8290 * source.c (open_source_file): Query debuginfod servers when a
8291 source file cannot be found.
8292 * top.c (print_gdb_configuration): Include
8293 --{with,without}-debuginfod in the output.
8294
b65ce565
JG
82952020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8296
8297 * thread.c (thr_try_catch_cmd): Print thread name.
8298
d4c9a4f8
SM
82992020-02-26 Simon Marchi <simon.marchi@efficios.com>
8300
8301 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8302 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8303 dwarf2_fetch_die_type_sect_off): Move to...
8304 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8305 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8306 dwarf2_fetch_die_type_sect_off): ... here.
8307 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8308 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8309 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8310
0dce4280
TV
83112020-02-26 Tom de Vries <tdevries@suse.de>
8312
8313 PR gdb/25603
8314 * symfile.c (set_initial_language): Exit-early if
8315 language_mode == language_mode_manual.
8316
450a1bfc
SM
83172020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8318
8319 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8320 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8321 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8322
9e80cfa1
AB
83232020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8324
8325 * gdbtypes.c (create_array_type_with_stride): Handle negative
8326 array strides.
8327 * valarith.c (value_subscripted_rvalue): Likewise.
8328
09624f1f
LM
83292020-02-25 Luis Machado <luis.machado@linaro.org>
8330
8331 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8332
8cb5117c
SM
83332020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8334
8335 * loc.h (dwarf2_get_die_type): Move to...
8336 * read.h (dwarf2_get_die_type): ... here.
8337 * read.c (dwarf2_get_die_type): Move doc to header.
8338
c325c44e
JB
83392020-02-25 Joel Brobecker <brobecker@adacore.com>
8340
8341 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8342 'gnulib/Makefile.in' to the list.
8343
4ac93832
TT
83442020-02-24 Tom Tromey <tom@tromey.com>
8345
8346 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8347 Remove.
8348 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8349 XOBNEWVEC.
8350
197400e8
TT
83512020-02-24 Tom Tromey <tom@tromey.com>
8352
8353 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8354 New method.
8355 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8356 (dw2_do_instantiate_symtab, dw2_get_file_names)
8357 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8358
76935768
TT
83592020-02-24 Tom Tromey <tom@tromey.com>
8360
8361 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8362 make_scoped_restore.
8363 (dwarf2_psymtab::read_symtab): Don't clear
8364 reading_partial_symbols.
8365
a88ef40d
TV
83662020-02-24 Tom de Vries <tdevries@suse.de>
8367
8368 PR gdb/25592
8369 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8370
c9af6521
TV
83712020-02-24 Tom de Vries <tdevries@suse.de>
8372
8373 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8374 commands layout next/prev/regs.
8375
5707a07a
TT
83762020-02-22 Tom Tromey <tom@tromey.com>
8377
8378 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8379 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8380
3b0fb49e
TT
83812020-02-22 Tom Tromey <tom@tromey.com>
8382
8383 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8384
283be8bf
TT
83852020-02-22 Tom Tromey <tom@tromey.com>
8386
8387 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8388 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8389 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8390 * tui/tui.c (_initialize_tui): Add usage text.
8391
ca793b96
TT
83922020-02-22 Tom Tromey <tom@tromey.com>
8393
8394 * tui/tui-win.c (tui_set_focus_command)
8395 (tui_set_win_height_command): Use error_no_arg.
8396 (_initialize_tui_win): Update help text.
8397 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8398
432b5c40
TT
83992020-02-22 Tom Tromey <tom@tromey.com>
8400
8401 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8402 * tui/tui-disasm.h (struct tui_disasm_window)
8403 <display_start_addr>: Declare.
8404 * tui/tui-source.h (struct tui_source_window)
8405 <display_start_addr>: Declare.
8406 * tui/tui-winsource.h (struct tui_source_window_base)
8407 <show_source_line, display_start_addr>: New methods.
8408 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8409 Rename and move to protected section.
8410 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8411 (tui_source_window_base::do_erase_source_content): Update.
8412 (tui_source_window_base::show_source_line): Now a method.
8413 (tui_source_window_base::show_source_content)
8414 (tui_source_window_base::tui_source_window_base)
8415 (tui_source_window_base::rerender)
8416 (tui_source_window_base::refill)
8417 (tui_source_window_base::do_scroll_horizontal)
8418 (tui_source_window_base::set_is_exec_point_at)
8419 (tui_source_window_base::update_breakpoint_info)
8420 (tui_source_window_base::update_exec_info): Update.
8421 * tui/tui-source.c (tui_source_window::set_contents)
8422 (tui_source_window::showing_source_p)
8423 (tui_source_window::do_scroll_vertical)
8424 (tui_source_window::location_matches_p)
8425 (tui_source_window::line_is_displayed): Update.
8426 (tui_source_window::display_start_addr): New method.
8427 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8428 (tui_disasm_window::do_scroll_vertical)
8429 (tui_disasm_window::location_matches_p): Update.
8430 (tui_disasm_window::display_start_addr): New method.
8431
01b1af32
TT
84322020-02-22 Tom Tromey <tom@tromey.com>
8433
8434 * NEWS: Add entry for gdb.register_window_type.
8435 * tui/tui-layout.h (window_factory): New typedef.
8436 (tui_register_window): Declare.
8437 * tui/tui-layout.c (saved_tui_windows): New global.
8438 (tui_apply_current_layout): Use it.
8439 (tui_register_window): New function.
8440 * python/python.c (do_start_initialization): Call
8441 gdbpy_initialize_tui.
8442 (python_GdbMethods): Add "register_window_type" function.
8443 * python/python-internal.h (gdbpy_register_tui_window)
8444 (gdbpy_initialize_tui): Declare.
8445 * python/py-tui.c: New file.
8446 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8447
fc96d20b
TT
84482020-02-22 Tom Tromey <tom@tromey.com>
8449
8450 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8451
935c78c0
TT
84522020-02-22 Tom Tromey <tom@tromey.com>
8453
8454 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8455 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8456 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8457 (tui_set_win_focus_to): Move from tui-win.c.
8458
0240c8f1
TT
84592020-02-22 Tom Tromey <tom@tromey.com>
8460
8461 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8462 functions.
8463 (known_window_types): New global.
8464 (tui_get_window_by_name): Reimplement.
8465 (initialize_known_windows): New function.
8466 (validate_window_name): Rewrite.
8467 (_initialize_tui_layout): Call initialize_known_windows.
8468
fdb01f0c
TT
84692020-02-22 Tom Tromey <tom@tromey.com>
8470
8471 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8472 Remove constants.
8473 * tui/tui-winsource.h (struct tui_source_window_base)
8474 <tui_source_window_base>: Remove parameter.
8475 * tui/tui-winsource.c
8476 (tui_source_window_base::tui_source_window_base): Remove
8477 parameter.
8478 (tui_source_window_base::refill): Update.
8479 * tui/tui-stack.h (struct tui_locator_window)
8480 <tui_locator_window>: Update.
8481 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8482 Default the constructor.
8483 * tui/tui-regs.h (struct tui_data_item_window)
8484 <tui_data_item_window>: Default the constructor.
8485 (struct tui_data_window) <tui_data_window>: Likewise.
8486 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8487 Default the constructor.
8488 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8489 Default the constructor.
8490 <type>: Remove.
8491 (struct tui_win_info) <tui_win_info>: Default the constructor.
8492 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8493 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8494 Default the constructor.
8495
865a5aec
TT
84962020-02-22 Tom Tromey <tom@tromey.com>
8497
8498 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8499 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8500 * tui/tui-win.c (tui_resize_all): Don't call
8501 tui_delete_invisible_windows.
8502 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8503 done.
8504 (tui_set_layout): Update.
8505 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8506 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8507 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8508
e098d18c
TT
85092020-02-22 Tom Tromey <tom@tromey.com>
8510
8511 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8512 correctly.
8513
eb9c8874
TT
85142020-02-22 Tom Tromey <tom@tromey.com>
8515
8516 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8517
7eed1a8e
TT
85182020-02-22 Tom Tromey <tom@tromey.com>
8519
8520 * tui/tui-winsource.h (struct tui_source_window_iterator)
8521 <inner_iterator>: New etytypedef.
8522 <tui_source_window_iterator>: Take "end" parameter.
8523 <tui_source_window_iterator>: Take iterator.
8524 <operator*, advance>: Update.
8525 <m_iter>: Change type.
8526 <m_end>: New field.
8527 (struct tui_source_windows) <begin, end>: Update.
8528 * tui/tui-layout.c (tui_windows): New global.
8529 (tui_apply_current_layout): Clear tui_windows.
8530 (tui_layout_window::apply): Update tui_windows.
8531 * tui/tui-data.h (tui_windows): Declare.
8532 (all_tui_windows): Now inline function.
8533 (class tui_window_iterator, struct all_tui_windows): Remove.
8534
7c043ba6
TT
85352020-02-22 Tom Tromey <tom@tromey.com>
8536
8537 PR tui/17850:
8538 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8539 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8540 "height" argument.
8541 (class tui_layout_window) <get_sizes>: Likewise.
8542 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8543 argument.
8544 <get_sizes>: Add "height" argument.
8545 <m_vertical>: New field.
8546 * tui/tui-layout.c (tui_layout_split::clone): Update.
8547 (tui_layout_split::get_sizes): Add "height" argument.
8548 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8549 (tui_new_layout_command): Parse "-horizontal".
8550 (_initialize_tui_layout): Update help string.
8551 (tui_layout_split::specification): Add "-horizontal" when needed.
8552 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8553 argument.
8554 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8555 New methods.
8556
6bc56648
TT
85572020-02-22 Tom Tromey <tom@tromey.com>
8558
8559 * tui/tui-layout.h (enum tui_adjust_result): New.
8560 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8561 (class tui_layout_window) <adjust_size>: Return
8562 tui_adjust_result. Rewrite.
8563 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8564 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8565
c22fef7e
TT
85662020-02-22 Tom Tromey <tom@tromey.com>
8567
8568 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8569 parameter and return types.
8570 (class tui_layout_base) <specification>: Add "depth".
8571 (class tui_layout_window) <specification>: Add "depth".
8572 (class tui_layout_split) <specification>: Add "depth".
8573 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8574 and return types.
8575 (tui_new_layout_command): Parse sub-layouts.
8576 (_initialize_tui_layout): Update help string.
8577 (tui_layout_window::specification): Add "depth".
8578 (add_layout_command): Update.
8579
ee325b61
TT
85802020-02-22 Tom Tromey <tom@tromey.com>
8581
8582 * NEWS: Add "tui new-layout" item.
8583 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8584 Add new-layout command to help text.
8585 (validate_window_name): New function.
8586 (tui_new_layout_command): New function.
8587 (_initialize_tui_layout): Register "new-layout".
8588 (tui_layout_window::specification): New method.
8589 (tui_layout_window::specification): New method.
8590 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8591 method.
8592 (class tui_layout_window) <specification>: New method.
8593 (class tui_layout_split) <specification>: New method.
8594
416eb92d
TT
85952020-02-22 Tom Tromey <tom@tromey.com>
8596
8597 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8598 * tui/tui-win.c (window_name_completer): Update comment.
8599 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8600 Declare method.
8601 (class tui_layout_window) <replace_window>: Likewise.
8602 (class tui_layout_split) <replace_window>: Likewise.
8603 (tui_set_layout): Don't declare.
8604 (tui_set_initial_layout): Declare function.
8605 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8606 (asm_regs_layout): New globals.
8607 (tui_current_layout, show_layout): Remove.
8608 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8609 (find_layout, tui_apply_layout): New function.
8610 (layout_completer): Remove.
8611 (tui_next_layout): Reimplement.
8612 (tui_next_layout_command): New function.
8613 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8614 (tui_regs_layout): Reimplement.
8615 (tui_regs_layout_command): New function.
8616 (extract_display_start_addr): Rewrite.
8617 (next_layout, prev_layout): Remove.
8618 (tui_layout_window::replace_window): New method.
8619 (tui_layout_split::replace_window): New method.
8620 (destroy_layout): New function.
8621 (layout_list): New global.
8622 (add_layout_command): New function.
8623 (initialize_layouts): Update.
8624 (tui_layout_command): New function.
8625 (_initialize_tui_layout): Install "layout" commands.
8626 * tui/tui-data.h (enum tui_layout_type): Remove.
8627 (tui_current_layout): Don't declare.
8628
0dbc2fc7
TT
86292020-02-22 Tom Tromey <tom@tromey.com>
8630
8631 * tui/tui-regs.c (tui_reg_layout): Remove.
8632 (tui_reg_command): Use tui_regs_layout.
8633 * tui/tui-layout.h (tui_reg_command): Declare.
8634 * tui/tui-layout.c (tui_reg_command): New function.
8635
5afe342e
TT
86362020-02-22 Tom Tromey <tom@tromey.com>
8637
8638 * tui/tui.c (tui_rl_delete_other_windows): Call
8639 tui_remove_some_windows.
8640 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8641 Declare method.
8642 (class tui_layout_window) <remove_windows>: New method.
8643 (class tui_layout_split) <remove_windows>: Declare.
8644 (tui_remove_some_windows): Declare.
8645 * tui/tui-layout.c (tui_remove_some_windows): New function.
8646 (tui_layout_split::remove_windows): New method.
8647
427326a8
TT
86482020-02-22 Tom Tromey <tom@tromey.com>
8649
8650 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8651 * tui/tui-layout.h (tui_next_layout): Declare.
8652 * tui/tui-layout.c (tui_next_layout): New function.
8653
3fe12b6d
TT
86542020-02-22 Tom Tromey <tom@tromey.com>
8655
8656 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8657 correct coordinates.
8658
59b8b5d2
TT
86592020-02-22 Tom Tromey <tom@tromey.com>
8660
8661 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8662 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8663 DATA_WIN case.
8664
2a3d458b
TT
86652020-02-22 Tom Tromey <tom@tromey.com>
8666
8667 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8668 TUI_DISASM_WIN, not tui_win_list.
8669
3f0cbb04
TT
86702020-02-22 Tom Tromey <tom@tromey.com>
8671
8672 * valprint.c (generic_val_print_enum_1)
8673 (val_print_type_code_flags): Style member names.
8674 * rust-lang.c (val_print_struct, rust_print_enum)
8675 (rust_print_struct_def, rust_internal_print_type): Style member
8676 names.
8677 * p-valprint.c (pascal_object_print_value_fields): Style member
8678 names. Only call fprintf_symbol_filtered for static members.
8679 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8680 * f-valprint.c (f_val_print): Style member names.
8681 * f-typeprint.c (f_type_print_base): Style member names.
8682 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8683 call fprintf_symbol_filtered for static members.
8684 (cp_print_class_member): Style member names.
8685 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8686 member names.
8687 * ada-valprint.c (ada_print_scalar): Style enum names.
8688 (ada_val_print_enum): Likewise.
8689 * ada-typeprint.c (print_enum_type): Style enum names.
8690
d4d947ae
TT
86912020-02-21 Tom Tromey <tom@tromey.com>
8692
8693 * psympriv.h (struct partial_symtab): Update comment.
8694
e94e944b
TT
86952020-02-21 Tom Tromey <tromey@adacore.com>
8696
8697 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8698 type is CORE_ADDR.
8699
1eb73179
TV
87002020-02-21 Tom de Vries <tdevries@suse.de>
8701
8702 PR gdb/25534
8703 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8704 if dependencies[i]->user != NULL.
8705
4f180d53
AT
87062020-02-21 Ali Tamur <tamur@google.com>
8707
8708 * dwarf2/read.c (dwarf2_name): Add null check.
8709
22b6cd70
TT
87102020-02-20 Tom Tromey <tom@tromey.com>
8711
8712 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8713 ">=", in binary search.
8714 (dwarf2_find_containing_comp_unit): New overload.
8715 (run_test): New self-test.
8716 (_initialize_dwarf2_read): Register new test.
8717
bd0cf5a6
NC
87182020-02-20 Nelson Chu <nelson.chu@sifive.com>
8719
8720 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8721 * riscv-tdep.h: Likewise.
8722 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8723 rv32-only CSR.
8724 * features/riscv/64bit-csr.xml: Regenerated.
8725
3f702acd
SDJ
87262020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8727 Tom Tromey <tom@tromey.com>
8728
8729 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8730 of 'fputc_unfiltered'.
8731 (putchar_unfiltered): Call 'fputc_unfiltered'.
8732 (fputc_unfiltered): Call 'fputs_unfiltered'.
8733
d13c7322
AB
87342020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8735
8736 * config.in: Regenerate.
8737 * configure: Regenerate.
8738 * configure.ac: Add --with-python-libdir option.
8739 * main.c: Use WITH_PYTHON_LIBDIR.
8740
869d8950
TT
87412020-02-19 Tom Tromey <tom@tromey.com>
8742
8743 * symtab.c (general_symbol_info::compute_and_set_names): Use
8744 obstack_strndup. Simplify call to symbol_set_demangled_name.
8745
298e9637
SM
87462020-02-19 Simon Marchi <simon.marchi@efficios.com>
8747
8748 * dwarf2/read.c (allocate_signatured_type_table,
8749 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8750 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8751 Remove objfile parameter, update all callers.
8752
08410482
DE
87532020-02-19 Doug Evans <dje@google.com>
8754
8755 PR rust/25535
8756 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8757 rust_enum_variant calculation.
8758
dfdeeca1
TT
87592020-02-19 Tom Tromey <tromey@adacore.com>
8760
8761 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8762
2ef5453b
TT
87632020-02-19 Tom Tromey <tromey@adacore.com>
8764
8765 * ada-lang.c (cache_symbol): Use obstack_strdup.
8766
9f1528a1
AB
87672020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8768
8769 * configure: Regenerate.
8770
d3c22fa8
TT
87712020-02-19 Tom Tromey <tromey@adacore.com>
8772
8773 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8774 NULL check.
8775
bf84f706
MR
87762020-02-19 Maciej W. Rozycki <macro@wdc.com>
8777
8778 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8779
d1c9b20f
AB
87802020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8781
8782 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8783 if GDBSERVER is not defined.
8784 (riscv_tdesc_cache): Likewise, also store const target_desc.
8785 (STATIC_IN_GDB): Define.
8786 (riscv_create_target_description): Update declaration with
8787 STATIC_IN_GDB.
8788 (riscv_lookup_target_description): New function, only define if
8789 GDBSERVER is not defined.
8790 * arch/riscv.h (riscv_create_target_description): Declare only
8791 when GDBSERVER is defined.
8792 (riscv_lookup_target_description): New declaration when GDBSERVER
8793 is not defined.
8794 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8795 (riscv_linux_read_features): ...this, and return
8796 riscv_gdbarch_features instead of target_desc.
8797 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8798 (riscv_linux_read_description): Rename to...
8799 (riscv_linux_read_features): ...this.
8800 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8801 Update to use riscv_gdbarch_features and
8802 riscv_lookup_target_description.
8803 * riscv-tdep.c (riscv_find_default_target_description): Use
8804 riscv_lookup_target_description instead of
8805 riscv_create_target_description.
8806
373d7ac0
SM
88072020-02-18 Simon Marchi <simon.marchi@efficios.com>
8808
8809 * valprint.c (generic_val_print_enum_1): When printing a flag
8810 enum with value 0 and there is no enumerator with value 0, print
8811 just "0" instead of "(unknown: 0x0)".
8812
b29a2df0
SM
88132020-02-18 Simon Marchi <simon.marchi@efficios.com>
8814
8815 * valprint.c (generic_val_print_enum_1): Print unknown part of
8816 flag enum in hex.
8817
6740f0cc
SM
88182020-02-18 Simon Marchi <simon.marchi@efficios.com>
8819
8820 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8821 flag enums to contain duplicate enumerators.
8822 * valprint.c (generic_val_print_enum_1): Update comment.
8823
edd45eb0
SM
88242020-02-18 Simon Marchi <simon.marchi@efficios.com>
8825
8826 * dwarf2/read.c: Include "count-one-bits.h".
8827 (update_enumeration_type_from_children): If an enumerator has
8828 multiple bits set, don't treat the enumeration as a "flag enum".
8829 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8830 of flag enums have 0 or 1 bit set.
8831
6d0cf446
BE
88322020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8833
8834 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8835 conversion.
8836 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8837 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8838 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8839 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8840 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8841
7001c1b7
SM
88422020-02-18 Simon Marchi <simon.marchi@efficios.com>
8843
8844 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8845
fdb61c6c
SM
88462020-02-14 Simon Marchi <simon.marchi@efficios.com>
8847
8848 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8849 displaced_step_closure_up.
8850 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8851 (struct displaced_step_closure_up):
8852 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8853 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8854 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8855 Likewise.
8856 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8857 * gdbarch.c, gdbarch.h: Re-generate.
8858 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8859 displaced_step_closure_up.
8860 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8861 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8862 * infrun.h (displaced_step_closure_up): New type alias.
8863 (struct displaced_step_inferior_state) <step_closure>: Change
8864 type to displaced_step_closure_up.
8865 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8866 displaced_step_closure_up.
8867 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8868
a4a38eb4
TT
88692020-02-14 Tom Tromey <tom@tromey.com>
8870
8871 * minidebug.c (gnu_debug_key): New global.
8872 (find_separate_debug_file_in_section): Use it.
8873
e8217e61
SM
88742020-02-14 Simon Marchi <simon.marchi@efficios.com>
8875
8876 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8877 std::unique_ptr.
8878 * gdbarch.c: Re-generate.
8879 * gdbarch.h: Re-generate.
8880 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8881 change.
8882 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8883 type to std::unique_ptr.
8884 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8885 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8886 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8887 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8888 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8889 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8890 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8891 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8892 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8893
d8d83535
SM
88942020-02-14 Simon Marchi <simon.marchi@efficios.com>
8895
8896 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8897 std::unique_ptr.
8898 (displaced_step_clear): Rename to...
8899 (displaced_step_reset): ... this. Just call displaced->reset ().
8900 (displaced_step_clear_cleanup): Rename to...
8901 (displaced_step_reset_cleanup): ... this.
8902 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8903 (displaced_step_fixup): Likewise.
8904 (resume_1): Likewise.
8905 (handle_inferior_event): Restore child's memory before calling
8906 displaced_step_fixup on the parent.
8907 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8908 to std::unique_ptr.
8909 <step_closure>: Change type to std::unique_ptr.
8910
5f661e03
SM
89112020-02-14 Simon Marchi <simon.marchi@efficios.com>
8912
8913 * arm-tdep.c: Include count-one-bits.h.
8914 (cleanup_block_store_pc): Use count_one_bits.
8915 (cleanup_block_load_pc): Use count_one_bits.
8916 (arm_copy_block_xfer): Use count_one_bits.
8917 (thumb2_copy_block_xfer): Use count_one_bits.
8918 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8919 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8920 (thumb_get_next_pcs_raw): Use count_one_bits.
8921 (arm_get_next_pcs_raw): Use count_one_bits_l.
8922 * arch/arm.c (bitcount): Remove.
8923 * arch/arm.h (bitcount): Remove.
8924
8084e579
TT
89252020-02-14 Tom Tromey <tromey@adacore.com>
8926
8927 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8928 Update.
8929 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8930 * dwarf2/loc.c (call_site_find_chain_1): Return
8931 unique_xmalloc_ptr.
8932 (call_site_find_chain): Likewise.
8933
258bf0ee
RB
89342020-02-14 Richard Biener <rguenther@suse.de>
8935
8936 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8937 on expression with division operators.
8938
f98a8458
AKS
89392020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8940
8941 * MAINTAINERS (Write After Approval): Adding myself.
8942
d1437c0e
TT
89432020-02-12 Tom Tromey <tom@tromey.com>
8944
8945 * event-loop.c (event_data, gdb_event, event_handler_func):
8946 Remove.
8947
3d4560f7
TT
89482020-02-12 Tom Tromey <tom@tromey.com>
8949
8950 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8951 (dwarf2_frame_objfile_data): Add comment.
8952 (find_comp_unit, set_comp_unit): New functions.
8953 (dwarf2_frame_find_fde): Use find_comp_unit.
8954 (dwarf2_build_frame_info): Use set_comp_unit.
8955
21982304
TT
89562020-02-12 Tom Tromey <tom@tromey.com>
8957
8958 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8959 (comp_unit): Don't initialize objfile.
8960 (execute_cfa_program): Add text_offset parameter.
8961 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8962 (dwarf2_frame_cache): Update.
8963 (dwarf2_build_frame_info): Don't set "objfile" member.
8964
4debb237
TT
89652020-02-12 Tom Tromey <tom@tromey.com>
8966
8967 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8968 (decode_frame_entry): Likewise.
8969 (dwarf2_build_frame_info): Update.
8970
0d404d44
TT
89712020-02-12 Tom Tromey <tom@tromey.com>
8972
8973 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8974 (decode_frame_entry_1): Use the comp_unit obstack.
8975
a7a3ae5c
TT
89762020-02-12 Tom Tromey <tom@tromey.com>
8977
8978 * dwarf2/frame.c (struct comp_unit): Add initializers and
8979 constructor.
8980 (dwarf2_frame_objfile_data): Store a comp_unit.
8981 (dwarf2_frame_find_fde): Update.
8982 (dwarf2_build_frame_info): Use "new".
8983
a9d65418
TT
89842020-02-12 Tom Tromey <tom@tromey.com>
8985
8986 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8987 (dwarf2_fde_table): Typedef for std::vector.
8988 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8989 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8990 (decode_frame_entry): Update.
8991 (dwarf2_build_frame_info): Use "new".
8992
7559c217
CB
89932020-02-12 Christian Biesinger <cbiesinger@google.com>
8994
8995 * arm-tdep.c (arm_gdbarch_init): Update.
8996 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8997 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8998 have_neon, is_m>: Change to bool.
8999
aeefc73c
CB
90002020-02-12 Christian Biesinger <cbiesinger@google.com>
9001
9002 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9003
d27b8e5f
TT
90042020-02-12 Tom Tromey <tom@tromey.com>
9005
9006 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9007
cd5900f3
HD
90082020-02-12 Hannes Domani <ssbssa@yahoo.de>
9009
9010 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9011 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9012
f056b22b
TT
90132020-02-11 Tom Tromey <tom@tromey.com>
9014
9015 * psymtab.h: Update comment.
9016
f92ff6b5
TT
90172020-02-11 Tom Tromey <tom@tromey.com>
9018
9019 * gdb_obstack.h (struct auto_obstack): Use
9020 DISABLE_COPY_AND_ASSIGN.
9021
3fd6912b
TT
90222020-02-11 Tom Tromey <tom@tromey.com>
9023
9024 * dwarf2/frame.h (struct objfile): Don't forward declare.
9025
69ed9b74
CB
90262020-02-11 Christian Biesinger <cbiesinger@google.com>
9027
9028 * cris-tdep.c (cris_supply_gregset): Change signature to match
9029 what struct regset expects.
9030 (cris_regset): New struct.
9031 (fetch_core_registers): Remove.
9032 (cris_iterate_over_regset_sections): New function.
9033 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9034 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9035
bda874f6
CB
90362020-02-11 Christian Biesinger <cbiesinger@google.com>
9037
9038 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9039 registers.
9040
754e1564
CB
90412020-02-11 Christian Biesinger <cbiesinger@google.com>
9042
9043 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9044
8ddd8e0e
SM
90452020-02-11 Simon Marchi <simon.marchi@efficios.com>
9046
9047 * configure: Re-generate.
9048
898e7f60
SM
90492020-02-11 Simon Marchi <simon.marchi@efficios.com>
9050
9051 * configure: Re-generate.
9052
58df732b
SM
90532020-02-11 Simon Marchi <simon.marchi@efficios.com>
9054
9055 * acinclude: Update warning.m4 path.
9056 * warning.m4: Move to gdbsupport.
9057
da5bd37e
TT
90582020-02-11 Tom Tromey <tromey@adacore.com>
9059
9060 * remote.c (remote_console_output): Update.
9061 * printcmd.c (printf_command): Update.
9062 * event-loop.c (gdb_wait_for_event): Update.
9063 * linux-nat.c (sigchld_handler): Update.
9064 * remote-sim.c (gdb_os_write_stdout): Update.
9065 (gdb_os_flush_stdout): Update.
9066 (gdb_os_flush_stderr): Update.
9067 (gdb_os_write_stderr): Update.
9068 * exceptions.c (print_exception): Update.
9069 * remote-fileio.c (remote_fileio_func_read): Update.
9070 (remote_fileio_func_write): Update.
9071 * tui/tui.c (tui_enable): Update.
9072 * tui/tui-interp.c (tui_interp::init): Update.
9073 * utils.c (init_page_info): Update.
9074 (putchar_unfiltered, fputc_unfiltered): Update.
9075 (gdb_flush): Update.
9076 (emit_style_escape): Update.
9077 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9078 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9079 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9080 (stderr_file::write): Update.
9081 (stderr_file::puts): Update.
9082 * ui-file.h (ui_file_isatty, ui_file_write)
9083 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9084 (ui_file_puts): Don't declare.
9085
85f0dd3c
TV
90862020-02-10 Tom de Vries <tdevries@suse.de>
9087
9088 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9089 sentinel to char *.
9090
2e927613
TV
90912020-02-09 Tom de Vries <tdevries@suse.de>
9092
9093 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9094 filename if it matches "<artificial>".
9095
6bafc845
HD
90962020-02-09 Hannes Domani <ssbssa@yahoo.de>
9097
9098 * windows-tdep.c (struct enum_value_name): New struct.
9099 (create_enum): New function.
9100 (windows_get_siginfo_type): Create and use enum types.
9101
7928d571
HD
91022020-02-09 Hannes Domani <ssbssa@yahoo.de>
9103
9104 * NEWS: Mention $_siginfo support for Windows.
9105 * windows-nat.c (handle_exception): Set siginfo_er.
9106 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9107 (windows_xfer_siginfo): New function.
9108 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9109 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9110 (init_windows_gdbarch_data): New function.
9111 (get_windows_gdbarch_data): New function.
9112 (windows_get_siginfo_type): New function.
9113 (windows_init_abi): Register windows_get_siginfo_type.
9114 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9115
6751ebae
TT
91162020-02-08 Tom Tromey <tom@tromey.com>
9117
9118 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9119 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9120 <keep>: Declare method.
9121 <m_keep>: Remove member.
9122 <~cutu_reader>: Remove.
9123 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9124 (cutu_reader::cutu_reader): Update.
9125 (cutu_reader::keep): Rename from ~cutu_reader.
9126 (process_psymtab_comp_unit, build_type_psymtabs_1)
9127 (process_skeletonless_type_unit, load_partial_comp_unit)
9128 (load_full_comp_unit, dwarf2_read_addr_index)
9129 (read_signatured_type): Update.
9130
135f5437
TT
91312020-02-08 Tom Tromey <tom@tromey.com>
9132
9133 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9134 "want_partial_unit" parameter.
9135 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9136 Inline check for DW_TAG_partial_unit.
9137 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9138
9f66ff1c
TT
91392020-02-08 Tom Tromey <tom@tromey.com>
9140
9141 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9142 read.c.
9143 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9144 read.c.
9145
c8a7a66f
TT
91462020-02-08 Tom Tromey <tom@tromey.com>
9147
9148 * dwarf2/read.c (read_address): Move to comp-unit.c.
9149 (dwarf2_rnglists_process, dwarf2_ranges_process)
9150 (read_attribute_value, dwarf_decode_lines_1)
9151 (var_decode_location, decode_locdesc): Update.
9152 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9153 read.c. Remove "cu" parameter.
9154 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9155 method.
9156
8266302d
TT
91572020-02-08 Tom Tromey <tom@tromey.com>
9158
9159 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9160 (read_indirect_line_string): Update.
9161 * dwarf2/comp-unit.c (read_offset): Remove.
9162 (read_comp_unit_head): Update.
9163 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9164 method.
9165 (read_offset): Don't declare.
9166
4057dfde
TT
91672020-02-08 Tom Tromey <tom@tromey.com>
9168
9169 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9170 * dwarf2/read.c (struct comp_unit_head): Move to
9171 dwarf2/comp-unit.h.
9172 (enum class rcuh_kind): Move to comp-unit.h.
9173 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9174 (read_comp_unit_head, error_check_comp_unit_head)
9175 (read_and_check_comp_unit_head): Move to comp-unit.c.
9176 (read_offset, dwarf_unit_type_name): Likewise.
9177 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9178 (cutu_reader::cutu_reader, read_call_site_scope)
9179 (find_partial_die, follow_die_offset): Update.
9180 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9181
24aa364d
TT
91822020-02-08 Tom Tromey <tom@tromey.com>
9183
9184 * dwarf2/read.c (read_offset_1): Move to leb.c.
9185 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9186 (dwarf_decode_macro_bytes): Update.
9187 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9188 * dwarf2/leb.h (read_offset): Declare.
9189
2c7d5afc
TT
91902020-02-08 Tom Tromey <tom@tromey.com>
9191
9192 * dwarf2/read.c (dwarf2_section_size): Remove.
9193 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9194 Update.
9195 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9196
4075cb26
TT
91972020-02-08 Tom Tromey <tom@tromey.com>
9198
9199 * dwarf2/read.c (read_initial_length): Move to leb.c.
9200 * dwarf2/leb.h (read_initial_length): Declare.
9201 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9202 handle_nonstd parameter.
9203 * dwarf2/frame.c (read_initial_length): Remove.
9204 (decode_frame_entry_1): Update.
9205
09ba997f
TT
92062020-02-08 Tom Tromey <tom@tromey.com>
9207
9208 * dwarf2/loc.c (dwarf2_find_location_expression)
9209 (dwarf_evaluate_loc_desc::get_tls_address)
9210 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9211 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9212 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9213 (dwarf2_compile_property_to_c)
9214 (dwarf2_loc_desc_get_symbol_read_needs)
9215 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9216 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9217 (loclist_describe_location, loclist_tracepoint_var_ref)
9218 (loclist_generate_c_location): Update.
9219 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9220 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9221 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9222 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9223 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9224 (dwarf2_per_cu_data::addr_size)
9225 (dwarf2_per_cu_data::ref_addr_size)
9226 (dwarf2_per_cu_data::text_offset)
9227 (dwarf2_per_cu_data::addr_type): Now methods.
9228 (per_cu_header_read_in): Make per_cu "const".
9229 (dwarf2_version): Remove.
9230 (dwarf2_per_cu_data::int_type): Now a method.
9231 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9232 (set_die_type, read_array_type, read_subrange_index_type)
9233 (read_tag_string_type, read_subrange_type): Update.
9234 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9235 offset_size, ref_addr_size, text_offset, addr_type, version,
9236 objfile, int_type, addr_sized_int_type>: Declare methods.
9237
96c738c0
TT
92382020-02-08 Tom Tromey <tom@tromey.com>
9239
9240 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9241 Move earlier.
9242
8fdd972c
TT
92432020-02-08 Tom Tromey <tom@tromey.com>
9244
9245 * dwarf2/read.h (dwarf_line_debug): Declare.
9246 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9247 * dwarf2/read.c: Move line_header code to new files.
9248 (dwarf_line_debug): No longer static.
9249 * dwarf2/line-header.c: New file.
9250 * dwarf2/line-header.h: New file.
9251
03075812
TT
92522020-02-08 Tom Tromey <tom@tromey.com>
9253
9254 * dwarf2/read.c (struct line_header) <file_full_name,
9255 file_file_name>: Return unique_xmalloc_ptr.
9256 (line_header::file_file_name): Update.
9257 (line_header::file_full_name): Update.
9258 (dw2_get_file_names_reader): Update.
9259 (macro_start_file): Update.
9260
bb822404
TT
92612020-02-08 Tom Tromey <tom@tromey.com>
9262
9263 * dwarf2/read.c (struct line_header) <file_full_name,
9264 file_file_name>: Declare methods.
9265 (dw2_get_file_names_reader): Update.
9266 (file_file_name): Now a method.
9267 (file_full_name): Likewise.
9268 (macro_start_file): Update.
9269
009b64fc
TT
92702020-02-08 Tom Tromey <tom@tromey.com>
9271
9272 * dwarf2/read.c (dwarf_always_disassemble)
9273 (show_dwarf_always_disassemble): Move to loc.c.
9274 (_initialize_dwarf2_read): Move "always-disassemble" registration
9275 to loc.c.
9276 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9277 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9278 static.
9279 (show_dwarf_always_disassemble): Move from read.c.
9280 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9281
5895093f
TT
92822020-02-08 Tom Tromey <tom@tromey.com>
9283
9284 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9285 (create_quick_file_names_table): Return htab_up.
9286 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9287 Update.
9288 * dwarf2/read.h (struct dwarf2_per_objfile)
9289 <quick_file_names_table>: Now htab_up.
9290
b3b32279
TT
92912020-02-08 Tom Tromey <tom@tromey.com>
9292
9293 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9294
1d33d811
TT
92952020-02-08 Tom Tromey <tom@tromey.com>
9296
9297 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9298 Rewrite.
9299 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9300 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9301 (abbrev_table::abbrev_table): No longer inline.
9302 (ABBREV_HASH_SIZE): Remove.
9303 (abbrev_table::m_abbrevs): Now an htab_up.
9304
86de1d91
TT
93052020-02-08 Tom Tromey <tom@tromey.com>
9306
9307 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9308 (cutu_reader): Update.
9309 (build_type_psymtabs_1): Update.
9310 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9311 (abbrev_table::alloc_abbrev): Update.
9312 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9313 (abbrev_table::read): New static method, renamed from
9314 abbrev_table_read_table.
9315 (abbrev_table::alloc_abbrev)
9316 (abbrev_table::add_abbrev): Now private.
9317 (abbrev_table::abbrev_table): Now private.
9318 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9319
0335378b
TT
93202020-02-08 Tom Tromey <tom@tromey.com>
9321
9322 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9323 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9324 htab_up.
9325
48b490f2
TT
93262020-02-08 Tom Tromey <tom@tromey.com>
9327
9328 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9329 htab_up.
9330 (lookup_dwo_unit_in_dwp): Update.
9331 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9332 on obstack.
9333
bc68fb19
TT
93342020-02-08 Tom Tromey <tom@tromey.com>
9335
9336 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9337 obstack.
9338
d15acc42
TT
93392020-02-08 Tom Tromey <tom@tromey.com>
9340
9341 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9342 line_header_hash.
9343 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9344 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9345 Change type to htab_up.
9346
eaa5fa8b
TT
93472020-02-08 Tom Tromey <tom@tromey.com>
9348
9349 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9350 htab_up. Don't allocate on obstack.
9351 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9352 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9353 Change type to htab_up.
9354
b0b6a987
TT
93552020-02-08 Tom Tromey <tom@tromey.com>
9356
9357 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9358 Change type to htab_up.
9359 * dwarf2/read.c (create_signatured_type_table_from_index)
9360 (create_signatured_type_table_from_debug_names)
9361 (create_all_type_units, add_type_unit)
9362 (lookup_dwo_signatured_type, lookup_signatured_type)
9363 (process_skeletonless_type_unit): Update.
9364 (create_debug_type_hash_table, create_debug_types_hash_table):
9365 Change type of types_htab.
9366 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9367 htab_up. Don't allocate on obstack.
9368 (create_cus_hash_table): Change type of cus_htab parameter.
9369 (struct dwo_file) <cus, tus>: Now htab_up.
9370 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9371 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9372 (queue_and_load_all_dwo_tus): Update.
9373 * dwarf2/index-write.c (write_gdbindex): Update.
9374 (write_debug_names): Update.
9375
39856def
TT
93762020-02-08 Tom Tromey <tom@tromey.com>
9377
9378 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9379 dwarf2/read.c. Remove "next" member. Add constructor ntad
9380 destructor.
9381 (struct dwarf2_per_objfile) <queue>: New member.
9382 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9383 dwarf2/read.h.
9384 (dwarf2_queue, dwarf2_queue_tail): Remove.
9385 (class dwarf2_queue_guard): Add parameter to constructor. Use
9386 DISABLE_COPY_AND_ASSIGN.
9387 <m_per_objfile>: New member.
9388 <~dwarf2_queue_guard>: Rewrite.
9389 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9390 Update.
9391 (~dwarf2_queue_item): New.
9392
3e225074
TT
93932020-02-08 Tom Tromey <tom@tromey.com>
9394
9395 * dwarf2/read.c (struct die_info) <has_children>: New member.
9396 (dw2_get_file_names_reader): Remove has_children.
9397 (dw2_get_file_names): Update.
9398 (read_cutu_die_from_dwo): Remove has_children.
9399 (cutu_reader::init_tu_and_read_dwo_dies)
9400 (cutu_reader::cutu_reader): Update.
9401 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9402 Remove has_children.
9403 (build_type_psymtabs_1, process_skeletonless_type_unit)
9404 (load_partial_comp_unit, load_full_comp_unit): Update.
9405 (create_dwo_cu_reader): Remove has_children.
9406 (create_cus_hash_table, read_die_and_children): Update.
9407 (read_full_die_1,read_full_die): Remove has_children.
9408 (read_signatured_type): Update.
9409 (class cutu_reader) <has_children>: Remove.
9410
82ca8957
TT
94112020-02-08 Tom Tromey <tom@tromey.com>
9412
9413 * dwarf2/expr.c: Rename from dwarf2expr.c.
9414 * dwarf2/expr.h: Rename from dwarf2expr.h.
9415 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9416 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9417 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9418 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9419 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9420 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9421 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9422 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9423 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9424 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9425 * dwarf2/loc.c: Rename from dwarf2loc.c.
9426 * dwarf2/loc.h: Rename from dwarf2loc.h.
9427 * dwarf2/read.c: Rename from dwarf2read.c.
9428 * dwarf2/read.h: Rename from dwarf2read.h.
9429 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9430 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9431 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9432 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9433 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9434 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9435 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9436 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9437 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9438 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9439 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9440 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9441 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9442 Update.
9443 * Makefile.in (COMMON_SFILES): Update.
9444 (HFILES_NO_SRCDIR): Update.
9445
9e35d499
TT
94462020-02-08 Tom Tromey <tom@tromey.com>
9447
9448 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9449 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9450
1eba2311
TT
94512020-02-08 Tom Tromey <tom@tromey.com>
9452
9453 * dwarf2read.h (struct die_info): Don't declare.
9454
e41c2da2
TT
94552020-02-08 Tom Tromey <tom@tromey.com>
9456
9457 * dwarf2read.h (die_info_ptr): Remove typedef.
9458
4fc6c0d5
TT
94592020-02-08 Tom Tromey <tom@tromey.com>
9460
9461 * dwarf2read.c (read_call_site_scope)
9462 (handle_data_member_location, dwarf2_add_member_fn)
9463 (mark_common_block_symbol_computed, read_common_block)
9464 (attr_to_dynamic_prop, partial_die_info::read)
9465 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9466 (dwarf2_symbol_mark_computed, set_die_type): Update.
9467 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9468 method.
9469 (attr_form_is_block): Don't declare.
9470 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9471
cd6c91b4
TT
94722020-02-08 Tom Tromey <tom@tromey.com>
9473
9474 * dwarf2read.c (dwarf2_find_base_address, )
9475 (read_call_site_scope, rust_containing_type)
9476 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9477 (handle_data_member_location, dwarf2_add_member_fn)
9478 (get_alignment, read_structure_type, process_structure_scope)
9479 (mark_common_block_symbol_computed, read_common_block)
9480 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9481 (partial_die_info::read, read_attribute_value, new_symbol)
9482 (lookup_die_type, dwarf2_get_ref_die_offset)
9483 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9484 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9485 (dwarf2_symbol_mark_computed): Update.
9486 * dwarf2/attribute.h (struct attribute) <value_as_address,
9487 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9488 methods.
9489 (value_as_address, attr_form_is_section_offset)
9490 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9491 * dwarf2/attribute.c (attribute::value_as_address)
9492 (attribute::form_is_section_offset, attribute::form_is_constant)
9493 (attribute::form_is_ref): Now methods.
9494
162dce55
TT
94952020-02-08 Tom Tromey <tom@tromey.com>
9496
9497 * dwarf2read.c (struct attribute, DW_STRING)
9498 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9499 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9500 (attr_form_is_block, attr_form_is_section_offset)
9501 (attr_form_is_constant, attr_form_is_ref): Move.
9502 * dwarf2/attribute.h: New file.
9503 * dwarf2/attribute.c: New file, from dwarf2read.c.
9504 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9505
3054dd54
TT
95062020-02-08 Tom Tromey <tom@tromey.com>
9507
9508 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9509 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9510 Move.
9511 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9512 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9513 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9514 abbrev.c.
9515 * dwarf2/abbrev.h: New file.
9516 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9517 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9518
96b79293
TT
95192020-02-08 Tom Tromey <tom@tromey.com>
9520
9521 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9522 (dwarf2_section_size, dwarf2_get_section_info)
9523 (create_signatured_type_table_from_debug_names)
9524 (create_addrmap_from_aranges, read_debug_names_from_section)
9525 (get_gdb_index_contents_from_section, read_comp_unit_head)
9526 (error_check_comp_unit_head, read_abbrev_offset)
9527 (create_debug_type_hash_table, init_cu_die_reader)
9528 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9529 (read_comp_units_from_section, create_cus_hash_table)
9530 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9531 (create_dwp_v2_section, dwarf2_rnglists_process)
9532 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9533 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9534 (read_indirect_string_from_dwz, read_addr_index_1)
9535 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9536 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9537 (fill_in_loclist_baton): Update.
9538 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9539 get_containing_section, get_bfd_owner, get_bfd_section,
9540 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9541 (dwarf2_read_section, get_section_name, get_section_file_name)
9542 (get_containing_section, get_section_bfd_owner)
9543 (get_section_bfd_section, get_section_name, get_section_file_name)
9544 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9545 declare.
9546 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9547 (dwarf2_section_info::get_bfd_owner)
9548 (dwarf2_section_info::get_bfd_section)
9549 (dwarf2_section_info::get_name)
9550 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9551 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9552 (dwarf2_section_info::read): Now methods.
9553 * dwarf-index-write.c (class debug_names): Update.
9554
2c86cff9
TT
95552020-02-08 Tom Tromey <tom@tromey.com>
9556
9557 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9558 Move to dwarf2/section.h.
9559 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9560 (get_section_bfd_section, get_section_name)
9561 (get_section_file_name, get_section_id, get_section_flags)
9562 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9563 dwarf2/section.c.
9564 * dwarf2/section.h: New file.
9565 * dwarf2/section.c: New file, from dwarf2read.c.
9566 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9567
f4382c45
TT
95682020-02-08 Tom Tromey <tom@tromey.com>
9569
9570 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9571 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9572 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9573 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9574 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9575 * dwarf2/leb.h: New file, from dwarf2read.c.
9576 * dwarf2/leb.c: New file, from dwarf2read.c.
9577 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9578 Remove.
9579 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9580 (COMMON_SFILES): Add dwarf2/leb.c.
9581
01840b7a
JB
95822020-02-08 Joel Brobecker <brobecker@adacore.com>
9583
9584 GDB 9.1 released.
9585
dfcb27e4
IB
95862020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9587
9588 PR gdb/25190:
aac66a4c
SM
9589 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9590 * gdb/remote.c (remote_console_output): Update.
9591 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9592 (ui_file_puts): ...this.
9593 * gdb/ui-file.h (ui_file_puts): Add declaration.
9594 * gdb/utils.c (emit_style_escape): Update.
9595 (flush_wrap_buffer): Update.
9596 (fputs_maybe_filtered): Update.
9597 (fputs_unfiltered): Add function.
dfcb27e4 9598
faa17681
IB
95992020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9600
aac66a4c
SM
9601 * gdb/event-loop.c (gdb_wait_for_event): Update.
9602 * gdb/printcmd.c (printf_command): Update.
9603 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9604 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9605 (gdb_os_flush_stderr): Update.
9606 * gdb/remote.c (remote_console_output): Update.
9607 * gdb/ui-file.c (gdb_flush): Rename to...
9608 (ui_file_flush): ...this.
9609 (stderr_file::write): Update.
9610 (stderr_file::puts): Update.
9611 * gdb/ui-file.h (gdb_flush): Rename to...
9612 (ui_file_flush): ...this.
9613 * gdb/utils.c (gdb_flush): Add function.
9614 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9615
5abbbe1d
TT
96162020-02-07 Tom Tromey <tromey@adacore.com>
9617
9618 PR breakpoints/24915:
9619 * source.c (find_and_open_source): Do not check basenames_may_differ.
9620
919adfe8
TT
96212020-02-07 Tom Tromey <tom@tromey.com>
9622
9623 * README: Update gdbserver documentation.
9624 * gdbserver: Move to top level.
9625 * configure.tgt (build_gdbserver): Remove.
9626 * configure.ac: Remove --enable-gdbserver.
9627 * configure: Rebuild.
9628 * Makefile.in (distclean): Don't mention gdbserver.
9629
1d5d29e7
SV
96302020-02-06 Shahab Vahedi <shahab@synopsys.com>
9631
9632 * source-cache.c (source_cache::ensure): Surround
9633 get_plain_source_lines with a try/catch.
9634 (source_cache::get_line_charpos): Get rid of try/catch
9635 and only check for the return value of "ensure".
9636 * tui/tui-source.c (tui_source_window::set_contents):
9637 Simplify "nlines" calculation.
9638
6eb1129c
SV
96392020-02-06 Shahab Vahedi <shahab@synopsys.com>
9640
9641 * MAINTAINERS (Write After Approval): Add myself.
9642
c6a42d11
CB
96432020-02-05 Christian Biesinger <cbiesinger@google.com>
9644
9645 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9646 function call.
9647
c8ecdda6
CB
96482020-02-05 Christian Biesinger <cbiesinger@google.com>
9649
9650 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9651
f6480e70
MR
96522020-02-05 Maciej W. Rozycki <macro@wdc.com>
9653
9654 * nat/riscv-linux-tdesc.h: New file.
9655 * nat/riscv-linux-tdesc.c: New file, taking code from...
9656 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9657 ... here.
9658 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9659 NATDEPFILES.
9660
dcc9fbc6
AB
96612020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9662
9663 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9664 we don't set the fake simulator ptid to the null_ptid.
9665
719546c4
SM
96662020-02-03 Simon Marchi <simon.marchi@efficios.com>
9667
9668 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9669 * gdbthread.h (class thread_info) <resumed>: Likewise.
9670 * infrun.c (resume_1): Likewise.
9671 (proceed): Likewise.
9672 (infrun_thread_stop_requested): Likewise.
9673 (stop_all_threads): Likewise.
9674 (handle_inferior_event): Likewise.
9675 (restart_threads): Likewise.
9676 (finish_step_over): Likewise.
9677 (keep_going_stepped_thread): Likewise.
9678 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9679 (linux_handle_extended_wait): Likewise.
9680 * record-btrace.c (get_thread_current_frame_id): Likewise.
9681 * record-full.c (record_full_wait_1): Likewise.
9682 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9683 * target.c (target_resume): Likewise.
9684 * thread.c (set_running_thread): Likewise.
9685
e409c542
AKS
96862020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9687
9688 * f-valprint.c (f77_print_array_1): Changed datatype of index
9689 variable to LONGEST from int to enable it to contain bound
9690 values correctly.
9691
ee98c0da
MR
96922020-02-03 Maciej W. Rozycki <macro@wdc.com>
9693
9694 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9695 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9696 offsets according to FLEN determined.
9697 (riscv_linux_nat_target::read_description): Determine FLEN
9698 dynamically.
9699 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9700 according to FLEN determined.
9701 (riscv_linux_nat_target::store_registers): Likewise.
9702
aa66aac4
SV
97032020-02-01 Shahab Vahedi <shahab@synopsys.com>
9704
9705 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9706 when reg->group is empty and reggroup is not.
9707
fd9faca8
TT
97082020-01-31 Tom Tromey <tromey@adacore.com>
9709
9710 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9711 Call beneath target's mourn_inferior after unpushing.
9712
42330a68
AB
97132020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9714
9715 PR tui/9765
9716 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9717 have enough lines to fill the screen, still return the lowest
9718 address we found.
9719
7a27a45b
AB
97202020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9721
9722 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9723 '-', '<', and '>' commands.
9724
c47f70e2
PA
97252020-01-29 Pedro Alves <palves@redhat.com>
9726 Sergio Durigan Junior <sergiodj@redhat.com>
9727
9728 * infcmd.c (construct_inferior_arguments): Assert that
9729 'argc' is greater than 0.
9730
5133a315
LM
97312020-01-29 Luis Machado <luis.machado@linaro.org>
9732
9733 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9734 (BRK_INSN_MASK): Define to 0xd4200000.
9735 (aarch64_program_breakpoint_here_p): New function.
9736 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9737 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9738 breakpoint.c.
9739 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9740 breakpoint.h
9741 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9742 call gdbarch_program_breakpoint_here_p.
9743 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9744 default_program_breakpoint_here_p, changed return type to bool and
9745 simplified.
9746 * breakpoint.h (program_breakpoint_here): Moved prototype to
9747 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9748 return type to bool.
9749 * gdbarch.c: Regenerate.
9750 * gdbarch.h: Regenerate.
9751 * gdbarch.sh (program_breakpoint_here_p): New method.
9752 * infrun.c (handle_signal_stop): Call
9753 gdbarch_program_breakpoint_here_p.
9754
168f8c6b
TT
97552020-01-26 Tom Tromey <tom@tromey.com>
9756
9757 * ctfread.c (struct ctf_fp_info): Reindent.
9758 (_initialize_ctfread): Remove.
9759
128a391f
TT
97602020-01-26 Tom Tromey <tom@tromey.com>
9761
9762 * psymtab.c (partial_map_expand_apply)
9763 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9764 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9765 (psym_print_stats, psym_expand_symtabs_for_function)
9766 (psym_map_symbol_filenames, psym_map_matching_symbols)
9767 (psym_expand_symtabs_matching)
9768 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9769 (maintenance_check_psymtabs): Use new methods.
9770 * psympriv.h (struct partial_symtab) <readin_p,
9771 get_compunit_symtab>: New methods.
9772 <readin, compunit_symtab>: Remove members.
9773 (struct standard_psymtab): New.
9774 (struct legacy_psymtab): Derive from standard_psymtab.
9775 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9776 standard_psymtab.
9777 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9778
0494dbec
TT
97792020-01-26 Tom Tromey <tom@tromey.com>
9780
9781 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9782 read_dependencies. Add assert.
9783 * psymtab.c (partial_symtab::read_dependencies): New method.
9784 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9785 method.
9786 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9787 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9788 read_dependencies.
9789 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9790 Add assert.
9791
8566b89b
TT
97922020-01-26 Tom Tromey <tom@tromey.com>
9793
9794 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9795 Call expand_psymtab.
9796 (xcoff_read_symtab): Call expand_psymtab.
9797 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9798 legacy_expand_psymtab.
9799 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9800 method.
9801 (struct legacy_psymtab) <expand_psymtab>: Implement.
9802 <legacy_expand_psymtab>: New member.
9803 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9804 (parse_partial_symbols): Set legacy_expand_psymtab.
9805 (psymtab_to_symtab_1): Change argument order. Call
9806 expand_psymtab.
9807 (new_psymtab): Set legacy_expand_psymtab.
9808 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9809 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9810 expand_psymtab.
9811 (dwarf2_psymtab::expand_psymtab): Rename from
9812 psymtab_to_symtab_1. Call expand_psymtab.
9813 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9814 (dbx_end_psymtab): Likewise.
9815 (dbx_psymtab_to_symtab_1): Change argument order. Call
9816 expand_psymtab.
9817 (dbx_read_symtab): Call expand_psymtab.
9818 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9819 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9820 (ctf_psymtab::read_symtab): Call expand_psymtab.
9821
077cbab2
TT
98222020-01-26 Tom Tromey <tom@tromey.com>
9823
9824 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9825 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9826 messages.
9827 * mdebugread.c (mdebug_read_symtab): Remove prints.
9828 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9829 assert.
9830 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9831
891813be
TT
98322020-01-26 Tom Tromey <tom@tromey.com>
9833
9834 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9835 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9836 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9837 legacy_symtab.
9838 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9839 * psymtab.c (psymtab_to_symtab): Call method.
9840 (dump_psymtab): Update.
9841 * psympriv.h (struct partial_symtab): Add virtual destructor.
9842 <read_symtab>: New method.
9843 (struct legacy_symtab): New.
9844 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9845 (struct pst_map) <pst>: Now a legacy_psymtab.
9846 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9847 (new_psymtab): Use legacy_psymtab.
9848 * dwarf2read.h (struct dwarf2_psymtab): New.
9849 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9850 * dwarf2read.c (dwarf2_create_include_psymtab)
9851 (dwarf2_build_include_psymtabs, create_type_unit_group)
9852 (create_partial_symtab, process_psymtab_comp_unit_reader)
9853 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9854 (set_partial_user): Use dwarf2_psymtab.
9855 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9856 (psymtab_to_symtab_1, process_full_comp_unit)
9857 (process_full_type_unit, dwarf2_ranges_read)
9858 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9859 (dwarf_decode_lines): Use dwarf2_psymtab.
9860 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9861 (add_address_entry_worker, write_one_signatured_type)
9862 (recursively_count_psymbols, recursively_write_psymbols)
9863 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9864 (write_debug_names): Likewise.
9865 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9866 <pst>: Now a legacy_psymtab.
9867 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9868 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9869 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9870 * ctfread.c (struct ctf_psymtab): New.
9871 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9872 ctf_psymtab.
9873 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9874 (create_partial_symtab): Return a ctf_psymtab.
9875 (scan_partial_symbols): Update.
9876
c3693a1d
TT
98772020-01-26 Tom Tromey <tom@tromey.com>
9878
9879 * xcoffread.c (xcoff_start_psymtab): Use new.
9880 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9881 renamed from start_psymtab_common.
9882 * psympriv.h (struct partial_symtab): Add new constructor.
9883 (start_psymtab_common): Don't declare.
9884 * mdebugread.c (parse_partial_symbols): Use new.
9885 * dwarf2read.c (create_partial_symtab): Use new.
9886 * dbxread.c (start_psymtab): Use new.
9887 * ctfread.c (create_partial_symtab): Use new.
9888
32caafd0
TT
98892020-01-26 Tom Tromey <tom@tromey.com>
9890
9891 * xcoffread.c (xcoff_end_psymtab): Use new.
9892 * psymtab.c (start_psymtab_common): Use new.
9893 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9894 Update.
9895 * psympriv.h (struct partial_symtab): Add parameters to
9896 constructor. Don't inline.
9897 (allocate_psymtab): Don't declare.
9898 * mdebugread.c (new_psymtab): Use new.
9899 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9900 * dbxread.c (dbx_end_psymtab): Use new.
9901
abaa2f23
TT
99022020-01-26 Tom Tromey <tom@tromey.com>
9903
9904 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9905 allocate_psymtab. Update documentation.
9906 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9907 allocate_psymtab. Do not use new.
9908 (allocate_psymtab): Use new. Update.
9909
6d94535f
TT
99102020-01-26 Tom Tromey <tom@tromey.com>
9911
9912 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9913 * psymtab.c (psym_print_stats): Update.
9914 * psympriv.h (struct partial_symtab) <readin,
9915 psymtabs_addrmap_supported, anonymous>: Now bool.
9916 * mdebugread.c (psymtab_to_symtab_1): Update.
9917 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9918 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9919 (process_full_comp_unit, process_full_type_unit): Update.
9920 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9921 * ctfread.c (psymtab_to_symtab): Update.
9922
6f17252b
TT
99232020-01-26 Tom Tromey <tom@tromey.com>
9924
9925 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9926 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9927 * psymtab.c (psymtab_storage): Delete psymtabs.
9928 (psymtab_storage::allocate_psymtab): Use new.
9929 (psymtab_storage::discard_psymtab): Use delete.
9930 * psympriv.h (struct partial_symtab): Add constructor and
9931 initializers.
9932
f6f1cebc
TT
99332020-01-26 Tom Tromey <tom@tromey.com>
9934
9935 * machoread.c: Do not include psympriv.h.
9936
e47e48f6
PW
99372020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9938
9939 * NEWS: Mention the new option and the set/show commands.
9940
a2fedca9
PW
99412020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9942
9943 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9944 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9945 (validate_exec_file): New variables, enums, functions.
9946 (exec_file_locate_attach, print_section_info): Style the filenames.
9947 (_initialize_exec): Install show_exec_file_mismatch_command and
9948 set_exec_file_mismatch_command.
9949 * gdbcore.h (validate_exec_file): Declare.
9950 * infcmd.c (attach_command): Call validate_exec_file.
9951 * remote.c ( remote_target::remote_add_inferior): Likewise.
9952
7ffa82e1
AB
99532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9954
9955 * frame.c (find_frame_sal): Move call to get_next_frame into more
9956 inner scope.
9957 * inline-frame.c (inilne_state) <inline_state>: Update argument
9958 types.
9959 (inilne_state) <skipped_symbol>: Rename to...
9960 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9961 (skip_inline_frames): Build vector of skipped symbols and use this
9962 to reate the inline_state.
9963 (inline_skipped_symbol): Add a comment and some assertions, fetch
9964 skipped symbol from the list.
9965
3d92a3e3
AB
99662020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9967
9968 * buildsym.c (lte_is_less_than): Delete.
9969 (buildsym_compunit::end_symtab_with_blockvector): Create local
9970 lambda function to sort line table entries, and use
9971 std::stable_sort instead of std::sort.
9972 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9973 markers when looking for a previous line.
9974
94a72be7
AB
99752020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9976
9977 * dwarf2read.c (lnp_state_machine::record_line): Include
9978 end_sequence parameter in debug print out. Record the line if we
9979 are at an end_sequence marker even if it's not the start of a
9980 statement.
9981 * symmisc.c (maintenance_print_one_line_table): Print end of
9982 sequence markers with 'END' not '0'.
9983
53af73bf
PA
99842020-01-24 Pedro Alves <palves@redhat.com>
9985
9986 PR gdb/25410
9987 * thread.c (scoped_restore_current_thread::restore): Use
9988 switch_to_inferior_no_thread.
9989 * exec.c: Include "progspace-and-thread.h".
9990 (add_target_sections, remove_target_sections):
9991 scoped_restore_current_pspace_and_thread instead of
9992 scoped_restore_current_thread.
9993 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9994 and aspace to the inferior before calling clone_program_space.
9995 Remove stale comment.
9996
3050c6f4
CB
99972020-01-24 Christian Biesinger <cbiesinger@google.com>
9998
9999 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10000 (arm_netbsd_nat_target::fetch_registers): ...this.
10001 (arm_nbsd_nat_target::store_registers): Rename to...
10002 (arm_netbsd_nat_target::store_registers): ...this.
10003
73685c7e
CB
100042020-01-24 Christian Biesinger <cbiesinger@google.com>
10005
10006 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10007 register_t.
10008
89203d40
CB
100092020-01-24 Christian Biesinger <cbiesinger@google.com>
10010
10011 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10012 Update comment.
10013 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10014 Likewise.
10015 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10016 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10017 the correct replacement (iterate_over_regset_sections).
10018 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10019 Update comment.
10020
1ba1ac88
AB
100212020-01-24 Graham Markall <graham.markall@embecosm.com>
10022
10023 PR gdb/23718
10024 * gdb/python/python.c (execute_gdb_command): Call
10025 async_enable_stdin in catch block.
10026
f3364a6d
AB
100272020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10028
10029 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10030 SWITCH_THRU_ALL_UIS.
10031
733d0a67
AB
100322020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10033
10034 PR tui/9765
10035 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10036 comment, add extra parameter, and update to store previous symbol
10037 when appropriate.
10038 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10039 add extra parameter.
10040 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10041 remove unneeded parameter, add try/catch around gdb_print_insn,
10042 rewrite to add items to asm_lines vector.
10043 (tui_find_backward_disassembly_start_address): New function.
10044 (tui_find_disassembly_address): Updated throughout.
10045 (tui_disasm_window::set_contents): Update for changes to
10046 tui_disassemble.
10047 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10048 number of lines to scroll.
10049
b3b3bada
SM
100502020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10051
10052 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10053 (SECT_OFF_DATA): Likewise.
10054 (SECT_OFF_RODATA): Likewise.
10055 (SECT_OFF_TEXT): Likewise.
10056 (SECT_OFF_BSS): Likewise.
10057 (struct objfile) <text_section_offset, data_section_offset>: New
10058 methods.
10059 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10060 objfile::text_section_offset.
10061 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10062 * coffread.c (coff_symtab_read): Likewise.
10063 (enter_linenos): Likewise.
10064 (process_coff_symbol): Likewise.
10065 * ctfread.c (get_objfile_text_range): Likewise.
10066 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10067 Use objfile::data_section_offset.
10068 * dwarf2-frame.c (execute_cfa_program): Use
10069 objfile::text_section_offset.
10070 (dwarf2_frame_find_fde): Likewise.
10071 * dwarf2read.c (create_addrmap_from_index): Likewise.
10072 (create_addrmap_from_aranges): Likewise.
10073 (dw2_find_pc_sect_compunit_symtab): Likewise.
10074 (process_psymtab_comp_unit_reader): Likewise.
10075 (add_partial_symbol): Likewise.
10076 (add_partial_subprogram): Likewise.
10077 (process_full_comp_unit): Likewise.
10078 (read_file_scope): Likewise.
10079 (read_func_scope): Likewise.
10080 (read_lexical_block_scope): Likewise.
10081 (read_call_site_scope): Likewise.
10082 (dwarf2_rnglists_process): Likewise.
10083 (dwarf2_ranges_process): Likewise.
10084 (dwarf2_ranges_read): Likewise.
10085 (dwarf_decode_lines_1): Likewise.
10086 (new_symbol): Likewise.
10087 (dwarf2_fetch_die_loc_sect_off): Likewise.
10088 (dwarf2_per_cu_text_offset): Likewise.
10089 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10090 * hppa-tdep.c (read_unwind_info): Likewise.
10091 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10092 * psympriv.h (struct partial_symtab): Likewise.
10093 * psymtab.c (find_pc_sect_psymtab): Likewise.
10094 * solib-svr4.c (enable_break): Likewise.
10095 * stap-probe.c (relocate_address): Use
10096 objfile::data_section_offset.
10097 * xcoffread.c (enter_line_range): Use
10098 objfile::text_section_offset.
10099 (read_xcoff_symtab): Likewise.
10100
ab53f382
SM
101012020-01-23 Simon Marchi <simon.marchi@efficios.com>
10102
10103 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10104 declaration to narrower scopes.
10105
e7eee665
SM
101062020-01-23 Simon Marchi <simon.marchi@efficios.com>
10107
10108 * darwin-nat.h (struct darwin_exception_msg, enum
10109 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10110 Move up.
10111 (class darwin_nat_target) <wait_1, check_new_threads,
10112 decode_exception_message, decode_message, stop_inferior,
10113 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10114 * darwin-nat.c (darwin_check_new_threads): Rename to...
10115 (darwin_nat_target::check_new_threads): ... this.
10116 (darwin_suspend_inferior_it): Remove.
10117 (darwin_decode_exception_message): Rename to...
10118 (darwin_nat_target::decode_exception_message): ... this.
10119 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10120 (darwin_decode_message): Rename to...
10121 (darwin_nat_target::decode_message): ... this.
10122 (cancel_breakpoint): Rename to...
10123 (darwin_nat_target::cancel_breakpoint): ... this.
10124 (darwin_wait): Rename to...
10125 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10126 instead of iterate_over_inferiors.
10127 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10128 (darwin_stop_inferior): Rename to...
10129 (darwin_nat_target::stop_inferior): ... this.
10130 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10131 (darwin_init_thread_list): Rename to...
10132 (darwin_nat_target::init_thread_list): ... this.
10133 (darwin_ptrace_him): Rename to...
10134 (darwin_nat_target::ptrace_him): ... this.
10135 (darwin_nat_target::create_inferior): Pass lambda function to
10136 fork_inferior.
10137 (darwin_nat_target::detach): Call stop_inferior instead of
10138 darwin_stop_inferior.
10139 * fork-inferior.h (fork_inferior): Change init_trace_fun
10140 parameter to gdb::function_view.
10141 * fork-inferior.c (fork_inferior): Likewise.
10142
c162ed3e
HD
101432020-01-23 Hannes Domani <ssbssa@yahoo.de>
10144
10145 * i386-cygwin-tdep.c (core_process_module_section): Update.
10146 * windows-nat.c (struct lm_info_windows): Add text_offset.
10147 (windows_xfer_shared_libraries): Update.
10148 * windows-tdep.c (windows_xfer_shared_library):
10149 Add text_offset_cached argument.
10150 * windows-tdep.h (windows_xfer_shared_library): Update.
10151
a1237872
SM
101522020-01-21 Simon Marchi <simon.marchi@efficios.com>
10153
10154 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10155
b3ee6dd9
SM
101562020-01-21 Simon Marchi <simon.marchi@efficios.com>
10157
10158 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10159 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10160 replace with range-based for.
10161 (gdbsim_interrupt_inferior): Remove.
10162 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10163 with a range-based for. Inline code from
10164 gdbsim_interrupt_inferior.
10165
f9fac3c8
SM
101662020-01-21 Simon Marchi <simon.marchi@efficios.com>
10167
10168 * infrun.c (proceed): Fix indentation.
10169
f6474de9
TT
101702020-01-21 Tom Tromey <tromey@adacore.com>
10171
10172 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10173 * python/python.c (python_extension_ops): Update.
10174 (gdbpy_colorize): New function.
10175 * python/lib/gdb/__init__.py (colorize): New function.
10176 * extension.h (ext_lang_colorize): Declare.
10177 * extension.c (ext_lang_colorize): New function.
10178 * extension-priv.h (struct extension_language_ops) <colorize>: New
10179 member.
10180 * cli/cli-style.c (_initialize_cli_style): Update help text.
10181
f0c702d4
LM
101822020-01-21 Luis Machado <luis.machado@linaro.org>
10183
10184 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10185 <cond>: Change type to bool.
10186 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10187 (aarch64_displaced_step_cb): Likewise.
10188 (aarch64_displaced_step_tb): Likewise.
10189
1ab139e5
LM
101902020-01-21 Luis Machado <luis.machado@linaro.org>
10191
10192 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10193 output.
10194
0c271889
LM
101952020-01-21 Luis Machado <luis.machado@linaro.org>
10196
10197 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10198 <pc_adjust>: Adjust the documentation.
10199 (aarch64_displaced_step_fixup): Check if PC really moved before
10200 adjusting it.
10201
4d89c1c7
TT
102022020-01-19 Tom Tromey <tom@tromey.com>
10203
10204 * disasm.c (~gdb_disassembler): New destructor.
10205 (gdb_buffered_insn_length): Call disassemble_free_target.
10206 * disasm.h (class gdb_disassembler): Declare destructor. Use
10207 DISABLE_COPY_AND_ASSIGN.
10208
c0ab21c2
TT
102092020-01-19 Tom Tromey <tom@tromey.com>
10210
10211 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10212 (die_reader_func_ftype): Remove.
10213 (cutu_reader): New class.
10214 (dw2_get_file_names_reader): Remove "data" parameter.
10215 (dw2_get_file_names): Use cutu_reader.
10216 (create_debug_type_hash_table): Update.
10217 (read_cutu_die_from_dwo): Update comment.
10218 (lookup_dwo_unit): Add dwo_name parameter.
10219 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10220 die_reader_func_ftype and data parameters.
10221 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10222 Remove die_reader_func_ftype and data parameters.
10223 (~cutu_reader): New; from init_cutu_and_read_dies.
10224 (cutu_reader::cutu_reader): Rename from
10225 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10226 and data parameters.
10227 (init_cutu_and_read_dies_simple): Remove.
10228 (struct process_psymtab_comp_unit_data): Remove.
10229 (process_psymtab_comp_unit_reader): Remove data parameter; add
10230 want_partial_unit and pretend_language parameters.
10231 (process_psymtab_comp_unit): Use cutu_reader.
10232 (build_type_psymtabs_reader): Remove data parameter.
10233 (build_type_psymtabs_1): Use cutu_reader.
10234 (process_skeletonless_type_unit): Likewise.
10235 (load_partial_comp_unit_reader): Remove.
10236 (load_partial_comp_unit): Use cutu_reader.
10237 (load_full_comp_unit_reader): Remove.
10238 (load_full_comp_unit): Use cutu_reader.
10239 (struct create_dwo_cu_data): Remove.
10240 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10241 dwo_unit parameters.
10242 (create_cus_hash_table): Use cutu_reader.
10243 (struct dwarf2_read_addr_index_data): Remove.
10244 (dwarf2_read_addr_index_reader): Remove.
10245 (dwarf2_read_addr_index): Use cutu_reader.
10246 (read_signatured_type_reader): Remove.
10247 (read_signatured_type): Use cutu_reader.
10248
45bbae5c
TT
102492020-01-19 Tom Tromey <tom@tromey.com>
10250
10251 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10252 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10253 (tui_wrefresh): Declare.
10254 * tui/tui-wingeneral.c (suppress_output): New global.
10255 (tui_suppress_output, ~tui_suppress_output): New constructor and
10256 destructor.
10257 (tui_wrefresh): New function.
10258 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10259 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10260 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10261 method.
10262 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10263 tui_wrefresh.
10264 (tui_data_window::no_refresh): New method.
10265 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10266 (tui_reg_command): Use tui_suppress_output
10267 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10268 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10269 method.
10270 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10271
4f13c1c0
TT
102722020-01-19 Tom Tromey <tom@tromey.com>
10273
10274 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10275 Handle case where symtab is null.
10276
fa47e446
SM
102772020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10278
10279 * linux-fork.c (one_fork_p): Simplify.
10280
26f42329
SM
102812020-01-17 Simon Marchi <simon.marchi@efficios.com>
10282
10283 * top.c (struct qt_args): Remove.
10284 (kill_or_detach): Change return type to void, replace `void *`
10285 parameter with a proper one.
10286 (print_inferior_quit_action): Likewise.
10287 (quit_confirm): Use range-based for loop to iterate over inferiors.
10288 (quit_force): Likewise.
10289
a9ac81b1
SM
102902020-01-17 Simon Marchi <simon.marchi@efficios.com>
10291
10292 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10293 `void *` parameter with proper parameters.
10294 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10295 (print_one_inferior): Change return type to void, replace `void *`
10296 parameter with proper parameters.
10297 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10298 inferiors.
10299 (get_other_inferior): Remove.
10300 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10301 inferiors.
10302
788eca49
SM
103032020-01-17 Simon Marchi <simon.marchi@efficios.com>
10304
10305 * mi/mi-interp.c (report_initial_inferior): Remove.
10306 (mi_interp::init): Use range-based for to iterate over inferiors.
10307
d9bc85b6
SM
103082020-01-17 Simon Marchi <simon.marchi@efficios.com>
10309
10310 * python/py-inferior.c (build_inferior_list): Remove.
10311 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10312
40c94099
CB
103132020-01-16 Christian Biesinger <cbiesinger@google.com>
10314
10315 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10316 (btrace_stitch_trace): Likewise.
10317 * charset.c (intermediate_encoding): Likewise (vaild).
10318 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10319 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10320 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10321
e0cdfe3c
HD
103222020-01-16 Hannes Domani <ssbssa@yahoo.de>
10323
10324 * windows-tdep.c (windows_get_tlb_type):
10325 Add rtl_user_process_parameters type.
10326
790f1718 103272020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10328 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10329
10330 PR build/24805
10331 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10332 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10333 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10334 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10335 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10336 (ps_plog): Redeclare exported functions with default visibility.
10337
3112ed97
NA
103382020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10339
10340 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10341 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10342
8dc3273e
SM
103432020-01-15 Simon Marchi <simon.marchi@efficios.com>
10344
10345 * infcmd.c (post_create_inferior): Use get_thread_regcache
10346 instead of get_current_regcache.
10347
ff47f4f0
TT
103482020-01-14 Tom Tromey <tom@tromey.com>
10349
10350 PR symtab/12535:
10351 * python/python.c (gdbpy_decode_line): Treat empty string the same
10352 as no argument.
10353
975f45b7
TT
103542020-01-14 Tom Tromey <tom@tromey.com>
10355
10356 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10357
25e57356
TT
103582020-01-14 Tom Tromey <tom@tromey.com>
10359
10360 * nat/linux-btrace.c: Don't include <config.h>.
10361 * nat/linux-ptrace.c: Don't include <config.h>.
10362 * nat/x86-linux-dregs.c: Don't include <config.h>.
10363
05ea2a05
TT
103642020-01-14 Tom Tromey <tom@tromey.com>
10365
10366 * configure: Rebuild.
10367 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10368
01027315
TT
103692020-01-14 Tom Tromey <tom@tromey.com>
10370
10371 * nat/x86-linux-dregs.c: Include configh.h.
10372 * nat/linux-ptrace.c: Include configh.h.
10373 * nat/linux-btrace.c: Include configh.h.
10374 * defs.h: Include config.h, bfd.h.
10375 * configure.ac: Don't source common.host.
10376 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10377 * configure: Rebuild.
10378 * acinclude.m4: Update path.
10379 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10380 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10381 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10382 (CLIBS): Add LIBSUPPORT.
10383 (CDEPS): Likewise.
10384 (COMMON_SFILES): Remove gdbsupport files.
10385 (HFILES_NO_SRCDIR): Likewise.
10386 (stamp-version): Update path to create-version.sh.
10387 (ALLDEPFILES): Remove gdbsupport files.
10388
b2ceabe8
TT
103892020-01-14 Tom Tromey <tom@tromey.com>
10390
10391 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10392 USE_WIN32API when needed.
10393 * configure.ac (USE_WIN32API): Don't define.
10394 (WIN32LIBS): Use WIN32APILIBS.
10395 * configure: Rebuild.
10396
25c51f71
TT
103972020-01-14 Tom Tromey <tom@tromey.com>
10398
10399 * configure: Rebuild.
10400 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10401
717c684d
BE
104022020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10403
10404 * skip.c (skip_function_command): Make skip w/o arguments use the
10405 name of the inlined function if pc is inside any inlined function.
10406
7da6a5b9
LM
104072020-01-14 Luis Machado <luis.machado@linaro.org>
10408
10409 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10410 * infrun.c (resume_1): Likewise.
10411 (handle_inferior_event): Remove stale comment.
10412 * linux-nat.c (linux_nat_target::resume): Update comments.
10413 (save_stop_reason): Likewise.
10414 (linux_nat_filter_event): Likewise.
10415 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10416
44e4c775
AB
104172020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10418
10419 * elfread.c (record_minimal_symbol): Set section index to 0 for
10420 non-allocatable sections.
10421
18a8505e
AT
10422
104232020-01-13 Ali Tamur <tamur@google.com>
10424
10425 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10426 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10427 to gdb::optional. Update comments.
10428 (dwo_file): Update comments.
10429 (read_attribute): Update API to take an additional out parameter,
10430 need_reprocess. This is used to mark attributes that need other
10431 attributes (e.g. str_offsets_base) for correct computation which may not
10432 have been read yet.
10433 (read_attribute_reprocess): New function declaration.
10434 (read_addr_index): Likewise.
10435 (read_dwo_str_index): Likewise.
10436 (read_stub_str_index): Likewise.
10437 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10438 (lookup_addr_base): New function definition.
10439 (lookup_ranges_base): Likewise.
10440 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10441 lookup_ranges_base.
10442 (init_cutu_and_read_dies): Update comments.
10443 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10444 unit. This is used to inherit parent's str_offsets_base and addr_base.
10445 Update comments.
10446 (init_cutu_and_read_dies_simple): Reflect API changes.
10447 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10448 (create_cus_hash_table): Change API to take parent compile unit.
10449 Reflect API changes.
10450 (open_and_init_dwo_file): Reflect API changes.
10451 (dwarf2_get_pc_bounds): Update comments.
10452 (dwarf2_record_block_ranges): Likewise.
10453 (read_full_die_1): Change implementation to reprocess attributes that
10454 need str_offsets_base and addr_base.
10455 (partial_die_info::read): Likewise.
10456 (read_attribute_reprocess): New function definition.
10457 (read_attribute_value): Change API to take an additional out parameter,
10458 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10459 when a non-dwo compile unit has index based attributes.
10460 (read_attribute): Reflect API changes.
10461 (read_addr_index_1): Reflect API changes. Update comments.
10462 (dwarf2_read_addr_index_data): Reflect API changes.
10463 (dwarf2_read_addr_index): Likewise.
10464 (read_str_index): Change API and implementation. This becomes a helper
10465 to be used by the new string index related methods. Update error
10466 message and comments.
10467 (read_dwo_str_index): New function definition.
10468 (read_stub_str_index): Likewise.
10469 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10470 * symfile.h (dwarf2_debug_sections): Likewise.
10471 * xcoffread.c (dwarf2_debug_sections): Likewise.
10472
0cac9354
SM
104732020-01-13 Simon Marchi <simon.marchi@efficios.com>
10474
10475 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10476 core_reg_sect type to gdb_byte *.
10477 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10478 * cris-tdep.c (fetch_core_registers): Likewise.
10479 * corelow.c (core_target::get_core_register_section): Change
10480 type of `contents` to gdb::byte_vector.
10481
9a6d629c
AB
104822020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10483
10484 * tui/tui-wingeneral.c (box_win): Position the title in the center
10485 of the border.
10486
d8b2f9e3
SM
104872020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10488
10489 * corelow.c (core_target::get_core_register_section): Use
10490 std::vector instead of alloca.
10491
bb564c58
SM
104922020-01-13 Simon Marchi <simon.marchi@efficios.com>
10493
10494 * warning.m4: Add -Wmissing-declarations to build_warnings.
10495 * configure: Re-generate.
10496
6b366111
SM
104972020-01-13 Simon Marchi <simon.marchi@efficios.com>
10498
10499 * python/python.c (init__gdb_module): Add declaration.
10500
6c265988
SM
105012020-01-13 Simon Marchi <simon.marchi@efficios.com>
10502
10503 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10504 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10505 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10506 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10507 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10508 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10509 * ada-exp.y (_initialize_ada_exp): Add declaration.
10510 * ada-lang.c (_initialize_ada_language): Add declaration.
10511 * ada-tasks.c (_initialize_tasks): Add declaration.
10512 * agent.c (_initialize_agent): Add declaration.
10513 * aix-thread.c (_initialize_aix_thread): Add declaration.
10514 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10515 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10516 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10517 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10518 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10519 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10520 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10521 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10522 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10523 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10524 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10525 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10526 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10527 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10528 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10529 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10530 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10531 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10532 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10533 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10534 * annotate.c (_initialize_annotate): Add declaration.
10535 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10536 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10537 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10538 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10539 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10540 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10541 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10542 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10543 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10544 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10545 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10546 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10547 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10548 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10549 * auto-load.c (_initialize_auto_load): Add declaration.
10550 * auxv.c (_initialize_auxv): Add declaration.
10551 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10552 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10553 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10554 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10555 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10556 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10557 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10558 * breakpoint.c (_initialize_breakpoint): Add declaration.
10559 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10560 * btrace.c (_initialize_btrace): Add declaration.
10561 * charset.c (_initialize_charset): Add declaration.
10562 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10563 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10564 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10565 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10566 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10567 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10568 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10569 * coffread.c (_initialize_coffread): Add declaration.
10570 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10571 * compile/compile.c (_initialize_compile): Add declaration.
10572 * complaints.c (_initialize_complaints): Add declaration.
10573 * completer.c (_initialize_completer): Add declaration.
10574 * copying.c (_initialize_copying): Add declaration.
10575 * corefile.c (_initialize_core): Add declaration.
10576 * corelow.c (_initialize_corelow): Add declaration.
10577 * cp-abi.c (_initialize_cp_abi): Add declaration.
10578 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10579 * cp-support.c (_initialize_cp_support): Add declaration.
10580 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10581 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10582 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10583 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10584 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10585 * ctfread.c (_initialize_ctfread): Add declaration.
10586 * d-lang.c (_initialize_d_language): Add declaration.
10587 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10588 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10589 * dbxread.c (_initialize_dbxread): Add declaration.
10590 * dcache.c (_initialize_dcache): Add declaration.
10591 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10592 * disasm.c (_initialize_disasm): Add declaration.
10593 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10594 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10595 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10596 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10597 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10598 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10599 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10600 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10601 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10602 * elfread.c (_initialize_elfread): Add declaration.
10603 * exec.c (_initialize_exec): Add declaration.
10604 * extension.c (_initialize_extension): Add declaration.
10605 * f-lang.c (_initialize_f_language): Add declaration.
10606 * f-valprint.c (_initialize_f_valprint): Add declaration.
10607 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10608 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10609 * filesystem.c (_initialize_filesystem): Add declaration.
10610 * findcmd.c (_initialize_mem_search): Add declaration.
10611 * findvar.c (_initialize_findvar): Add declaration.
10612 * fork-child.c (_initialize_fork_child): Add declaration.
10613 * frame-base.c (_initialize_frame_base): Add declaration.
10614 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10615 * frame.c (_initialize_frame): Add declaration.
10616 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10617 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10618 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10619 * gcore.c (_initialize_gcore): Add declaration.
10620 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10621 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10622 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10623 * gdbarch.c (_initialize_gdbarch): Add declaration.
10624 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10625 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10626 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10627 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10628 * go-lang.c (_initialize_go_language): Add declaration.
10629 * go32-nat.c (_initialize_go32_nat): Add declaration.
10630 * guile/guile.c (_initialize_guile): Add declaration.
10631 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10632 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10633 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10634 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10635 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10636 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10637 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10638 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10639 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10640 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10641 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10642 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10643 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10644 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10645 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10646 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10647 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10648 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10649 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10650 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10651 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10652 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10653 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10654 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10655 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10656 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10657 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10658 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10659 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10660 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10661 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10662 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10663 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10664 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10665 * infcall.c (_initialize_infcall): Add declaration.
10666 * infcmd.c (_initialize_infcmd): Add declaration.
10667 * inflow.c (_initialize_inflow): Add declaration.
10668 * infrun.c (_initialize_infrun): Add declaration.
10669 * interps.c (_initialize_interpreter): Add declaration.
10670 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10671 * jit.c (_initialize_jit): Add declaration.
10672 * language.c (_initialize_language): Add declaration.
10673 * linux-fork.c (_initialize_linux_fork): Add declaration.
10674 * linux-nat.c (_initialize_linux_nat): Add declaration.
10675 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10676 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10677 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10678 * m2-lang.c (_initialize_m2_language): Add declaration.
10679 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10680 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10681 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10682 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10683 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10684 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10685 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10686 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10687 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10688 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10689 * machoread.c (_initialize_machoread): Add declaration.
10690 * macrocmd.c (_initialize_macrocmd): Add declaration.
10691 * macroscope.c (_initialize_macroscope): Add declaration.
10692 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10693 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10694 * maint.c (_initialize_maint_cmds): Add declaration.
10695 * mdebugread.c (_initialize_mdebugread): Add declaration.
10696 * memattr.c (_initialize_mem): Add declaration.
10697 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10698 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10699 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10700 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10701 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10702 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10703 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10704 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10705 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10706 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10707 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10708 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10709 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10710 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10711 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10712 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10713 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10714 * mipsread.c (_initialize_mipsread): Add declaration.
10715 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10716 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10717 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10718 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10719 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10720 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10721 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10722 * nto-procfs.c (_initialize_procfs): Add declaration.
10723 * objc-lang.c (_initialize_objc_language): Add declaration.
10724 * observable.c (_initialize_observer): Add declaration.
10725 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10726 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10727 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10728 * osabi.c (_initialize_gdb_osabi): Add declaration.
10729 * osdata.c (_initialize_osdata): Add declaration.
10730 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10731 * parse.c (_initialize_parse): Add declaration.
10732 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10733 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10734 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10735 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10736 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10737 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10738 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10739 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10740 * printcmd.c (_initialize_printcmd): Add declaration.
10741 * probe.c (_initialize_probe): Add declaration.
10742 * proc-api.c (_initialize_proc_api): Add declaration.
10743 * proc-events.c (_initialize_proc_events): Add declaration.
10744 * proc-service.c (_initialize_proc_service): Add declaration.
10745 * procfs.c (_initialize_procfs): Add declaration.
10746 * producer.c (_initialize_producer): Add declaration.
10747 * psymtab.c (_initialize_psymtab): Add declaration.
10748 * python/python.c (_initialize_python): Add declaration.
10749 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10750 * record-btrace.c (_initialize_record_btrace): Add declaration.
10751 * record-full.c (_initialize_record_full): Add declaration.
10752 * record.c (_initialize_record): Add declaration.
10753 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10754 * regcache.c (_initialize_regcache): Add declaration.
10755 * reggroups.c (_initialize_reggroup): Add declaration.
10756 * remote-notif.c (_initialize_notif): Add declaration.
10757 * remote-sim.c (_initialize_remote_sim): Add declaration.
10758 * remote.c (_initialize_remote): Add declaration.
10759 * reverse.c (_initialize_reverse): Add declaration.
10760 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10761 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10762 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10763 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10764 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10765 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10766 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10767 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10768 Add declaration.
10769 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10770 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10771 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10772 * rust-exp.y (_initialize_rust_exp): Add declaration.
10773 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10774 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10775 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10776 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10777 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10778 * score-tdep.c (_initialize_score_tdep): Add declaration.
10779 * ser-go32.c (_initialize_ser_dos): Add declaration.
10780 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10781 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10782 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10783 * ser-uds.c (_initialize_ser_socket): Add declaration.
10784 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10785 * serial.c (_initialize_serial): Add declaration.
10786 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10787 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10788 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10789 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10790 * skip.c (_initialize_step_skip): Add declaration.
10791 * sol-thread.c (_initialize_sol_thread): Add declaration.
10792 * solib-aix.c (_initialize_solib_aix): Add declaration.
10793 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10794 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10795 * solib-frv.c (_initialize_frv_solib): Add declaration.
10796 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10797 * solib-target.c (_initialize_solib_target): Add declaration.
10798 * solib.c (_initialize_solib): Add declaration.
10799 * source-cache.c (_initialize_source_cache): Add declaration.
10800 * source.c (_initialize_source): Add declaration.
10801 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10802 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10803 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10804 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10805 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10806 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10807 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10808 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10809 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10810 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10811 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10812 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10813 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10814 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10815 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10816 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10817 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10818 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10819 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10820 * stabsread.c (_initialize_stabsread): Add declaration.
10821 * stack.c (_initialize_stack): Add declaration.
10822 * stap-probe.c (_initialize_stap_probe): Add declaration.
10823 * std-regs.c (_initialize_frame_reg): Add declaration.
10824 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10825 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10826 * symfile.c (_initialize_symfile): Add declaration.
10827 * symmisc.c (_initialize_symmisc): Add declaration.
10828 * symtab.c (_initialize_symtab): Add declaration.
10829 * target.c (_initialize_target): Add declaration.
10830 * target-connection.c (_initialize_target_connection): Add
10831 declaration.
10832 * target-dcache.c (_initialize_target_dcache): Add declaration.
10833 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10834 * thread.c (_initialize_thread): Add declaration.
10835 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10836 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10837 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10838 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10839 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10840 * tracectf.c (_initialize_ctf): Add declaration.
10841 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10842 * tracefile.c (_initialize_tracefile): Add declaration.
10843 * tracepoint.c (_initialize_tracepoint): Add declaration.
10844 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10845 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10846 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10847 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10848 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10849 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10850 * tui/tui.c (_initialize_tui): Add declaration.
10851 * typeprint.c (_initialize_typeprint): Add declaration.
10852 * ui-style.c (_initialize_ui_style): Add declaration.
10853 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10854 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10855 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10856 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10857 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10858 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10859 * unittests/filtered_iterator-selftests.c
10860 (_initialize_filtered_iterator_selftests): Add declaration.
10861 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10862 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10863 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10864 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10865 * unittests/main-thread-selftests.c
10866 (_initialize_main_thread_selftests): Add declaration.
10867 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10868 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10869 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10870 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10871 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10872 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10873 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10874 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10875 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10876 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10877 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10878 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10879 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10880 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10881 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10882 declaration.
10883 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10884 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10885 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10886 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10887 * user-regs.c (_initialize_user_regs): Add declaration.
10888 * utils.c (_initialize_utils): Add declaration.
10889 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10890 * valops.c (_initialize_valops): Add declaration.
10891 * valprint.c (_initialize_valprint): Add declaration.
10892 * value.c (_initialize_values): Add declaration.
10893 * varobj.c (_initialize_varobj): Add declaration.
10894 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10895 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10896 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10897 * windows-nat.c (_initialize_windows_nat): Add declaration.
10898 (_initialize_check_for_gdb_ini): Add declaration.
10899 (_initialize_loadable): Add declaration.
10900 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10901 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10902 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10903 * xcoffread.c (_initialize_xcoffread): Add declaration.
10904 * xml-support.c (_initialize_xml_support): Add declaration.
10905 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10906 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10907 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10908 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10909
e2de1eec
SM
109102020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10911
10912 * regformats/regdat.sh: Generate declaration for init function.
10913
e0037b4c
SM
109142020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10915
10916 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10917 up.
10918 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10919 close_one_inferior>: New methods.
10920 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10921 pass down target to find_inferior_pid.
10922 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10923 Pass down target to find_inferior_ptid.
10924 (gdbsim_target::create_inferior): Pass down target to
10925 add_thread_silent.
10926 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10927 target down to find_inferior_ptid and switch_to_thread.
10928 (gdbsim_target::close): Update to call close_one_inferior.
10929 (struct resume_data): Remove.
10930 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10931 directly, rather than through a void pointer.
10932 (gdbsim_target::resume): Update to call resume_one_inferior.
10933
58920b5b
SM
109342020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10935
10936 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10937
4ec89149
PA
109382020-01-12 Pedro Alves <palves@redhat.com>
10939
10940 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10941 directly for the current inferior instead of
10942 discard_all_inferiors.
10943 (discard_all_inferiors): Delete.
10944
7c392d1d
TT
109452020-01-11 Tom Tromey <tom@tromey.com>
10946
10947 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10948 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10949 deprecated_safe_get_selected_frame.
10950
d9ebdab7
TBA
109512020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10952
10953 * inferior.c (print_inferior): Switch inferior before printing it.
10954
f3c469b9
PA
109552020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10956 Pedro Alves <palves@redhat.com>
10957
10958 * progspace-and-thread.c (switch_to_program_space_and_thread):
10959 Assert there's an inferior for PSPACE. Use
10960 switch_to_inferior_no_thread to switch the inferior too.
10961 * progspace.c (program_space::~program_space): Call
10962 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10963 (program_space::free_all_objfiles): Don't call clear_symtab_users
10964 here.
10965 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10966
65c574f6
PA
109672020-01-10 Pedro Alves <palves@redhat.com>
10968
10969 * NEWS: Mention multi-target debugging, "info connections", and
10970 "add-inferior -no-connection".
10971
2f4fcf00
PA
109722020-01-10 Pedro Alves <palves@redhat.com>
10973
10974 * infrun.c: Include "target-connection.h".
10975 (check_multi_target_resumption): New.
10976 (proceed): Call it.
10977 * target-connection.c (make_target_connection_string): Make
10978 extern.
10979 * target-connection.h (make_target_connection_string): Declare.
10980
121b3efd
PA
109812020-01-10 Pedro Alves <palves@redhat.com>
10982
10983 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10984 * inferior.c (uiout_field_connection): New function.
10985 (print_inferior): Add new "connection-id" column.
10986 (add_inferior_command): Show connection number/string of added
10987 inferior.
10988 * process-stratum-target.h
10989 (process_stratum_target::connection_string): New virtual method.
10990 (process_stratum_target::connection_number): New field.
10991 * remote.c (remote_target::connection_string): New override.
10992 * target-connection.c: New file.
10993 * target-connection.h: New file.
10994 * target.c (decref_target): Remove process_stratum targets from
10995 the connection list.
10996 (target_stack::push): Add process_stratum targets to the
10997 connection list.
10998
4f837581
PA
109992020-01-10 Pedro Alves <palves@redhat.com>
11000
11001 Revert:
11002 2016-04-12 Pedro Alves <palves@redhat.com>
11003 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11004 Remove references to name.
11005 * serial.h (struct serial) <name>: Delete.
11006
f4ec508e
PA
110072020-01-10 Pedro Alves <palves@redhat.com>
11008
11009 * gdbarch-selftests.c (register_to_value_test): Remove "target
11010 already pushed" check.
11011
5b6d1e4f
PA
110122020-01-10 Pedro Alves <palves@redhat.com>
11013 John Baldwin <jhb@FreeBSD.org>
11014
11015 * aarch64-linux-nat.c
11016 (aarch64_linux_nat_target::thread_architecture): Adjust.
11017 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11018 (task_command_1): Likewise.
11019 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11020 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11021 (aix_thread_target::store_registers)
11022 (aix_thread_target::thread_alive): Adjust.
11023 * amd64-fbsd-tdep.c: Include "inferior.h".
11024 (amd64fbsd_get_thread_local_address): Pass down target.
11025 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11026 thread's gdbarch instead of target_gdbarch.
11027 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11028 get_last_target_status.
11029 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11030 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11031 inferiors.
11032 (update_inserted_breakpoint_locations): Skip if inferiors with no
11033 execution.
11034 (update_global_location_list): When handling moribund locations,
11035 find representative inferior for location's pspace, and use thread
11036 count of its process_stratum target.
11037 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11038 * bsd-uthread.c (bsd_uthread_target::wait): Use
11039 as_process_stratum_target and adjust thread_change_ptid and
11040 add_thread calls.
11041 (bsd_uthread_target::update_thread_list): Use
11042 as_process_stratum_target and adjust find_thread_ptid,
11043 thread_change_ptid and add_thread calls.
11044 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11045 find_thread_ptid call.
11046 * corelow.c (add_to_thread_list): Adjust add_thread call.
11047 (core_target_open): Adjust add_thread_silent and thread_count
11048 calls.
11049 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11050 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11051 * event-top.c (async_disconnect): Pop targets from all inferiors.
11052 * exec.c (add_target_sections): Push exec target on all inferiors
11053 sharing the program space.
11054 (remove_target_sections): Remove the exec target from all
11055 inferiors sharing the program space.
11056 (exec_on_vfork): New.
11057 * exec.h (exec_on_vfork): Declare.
11058 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11059 Pass it down.
11060 (fbsd_nat_target::update_thread_list): Adjust.
11061 (fbsd_nat_target::resume): Adjust.
11062 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11063 down.
11064 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11065 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11066 get_thread_arch_regcache call.
11067 * fork-child.c (gdb_startup_inferior): Pass target down to
11068 startup_inferior and set_executing.
11069 * gdbthread.h (struct process_stratum_target): Forward declare.
11070 (add_thread, add_thread_silent, add_thread_with_info)
11071 (in_thread_list): Add process_stratum_target parameter.
11072 (find_thread_ptid(inferior*, ptid_t)): New overload.
11073 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11074 parameter.
11075 (all_threads()): Delete overload.
11076 (all_threads, all_non_exited_threads): Add process_stratum_target
11077 parameter.
11078 (all_threads_safe): Use brace initialization.
11079 (thread_count): Add process_stratum_target parameter.
11080 (set_resumed, set_running, set_stop_requested, set_executing)
11081 (threads_are_executing, finish_thread_state): Add
11082 process_stratum_target parameter.
11083 (switch_to_thread): Use is_current_thread.
11084 * i386-fbsd-tdep.c: Include "inferior.h".
11085 (i386fbsd_get_thread_local_address): Pass down target.
11086 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11087 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11088 have_inferiors check.
11089 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11090 (inf_ptrace_target::attach): Adjust.
11091 * infcall.c (run_inferior_call): Adjust.
11092 * infcmd.c (run_command_1): Pass target to
11093 scoped_finish_thread_state.
11094 (proceed_thread_callback): Skip inferiors with no execution.
11095 (continue_command): Rename 'all_threads' local to avoid hiding
11096 'all_threads' function. Adjust get_last_target_status call.
11097 (prepare_one_step): Adjust set_running call.
11098 (signal_command): Use user_visible_resume_target. Compare thread
11099 pointers instead of inferior_ptid.
11100 (info_program_command): Adjust to pass down target.
11101 (attach_command): Mark target's 'thread_executing' flag.
11102 (stop_current_target_threads_ns): New, factored out from ...
11103 (interrupt_target_1): ... this. Switch inferior before making
11104 target calls.
11105 * inferior-iter.h
11106 (struct all_inferiors_iterator, struct all_inferiors_range)
11107 (struct all_inferiors_safe_range)
11108 (struct all_non_exited_inferiors_range): Filter on
11109 process_stratum_target too. Remove explicit.
11110 * inferior.c (inferior::inferior): Push dummy target on target
11111 stack.
11112 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11113 Add process_stratum_target parameter, and pass it down.
11114 (have_live_inferiors): Adjust.
11115 (switch_to_inferior_and_push_target): New.
11116 (add_inferior_command, clone_inferior_command): Handle
11117 "-no-connection" parameter. Use
11118 switch_to_inferior_and_push_target.
11119 (_initialize_inferior): Mention "-no-connection" option in
11120 the help of "add-inferior" and "clone-inferior" commands.
11121 * inferior.h: Include "process-stratum-target.h".
11122 (interrupt_target_1): Use bool.
11123 (struct inferior) <push_target, unpush_target, target_is_pushed,
11124 find_target_beneath, top_target, process_target, target_at,
11125 m_stack>: New.
11126 (discard_all_inferiors): Delete.
11127 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11128 (all_inferiors, all_non_exited_inferiors): Add
11129 process_stratum_target parameter.
11130 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11131 (target_last_proc_target): New global.
11132 (follow_fork_inferior): Push target on new inferior. Pass target
11133 to add_thread_silent. Call exec_on_vfork. Handle target's
11134 reference count.
11135 (follow_fork): Adjust get_last_target_status call. Also consider
11136 target.
11137 (follow_exec): Push target on new inferior.
11138 (struct execution_control_state) <target>: New field.
11139 (user_visible_resume_target): New.
11140 (do_target_resume): Call target_async.
11141 (resume_1): Set target's threads_executing flag. Consider resume
11142 target.
11143 (commit_resume_all_targets): New.
11144 (proceed): Also consider resume target. Skip threads of inferiors
11145 with no execution. Commit resumtion in all targets.
11146 (start_remote): Pass current inferior to wait_for_inferior.
11147 (infrun_thread_stop_requested): Consider target as well. Pass
11148 thread_info pointer to clear_inline_frame_state instead of ptid.
11149 (infrun_thread_thread_exit): Consider target as well.
11150 (random_pending_event_thread): New inferior parameter. Use it.
11151 (do_target_wait): Rename to ...
11152 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11153 down.
11154 (threads_are_resumed_pending_p, do_target_wait): New.
11155 (prepare_for_detach): Adjust calls.
11156 (wait_for_inferior): New inferior parameter. Handle it. Use
11157 do_target_wait_1 instead of do_target_wait.
11158 (fetch_inferior_event): Adjust. Switch to representative
11159 inferior. Pass target down.
11160 (set_last_target_status): Add process_stratum_target parameter.
11161 Save target in global.
11162 (get_last_target_status): Add process_stratum_target parameter and
11163 handle it.
11164 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11165 (context_switch): Check inferior_ptid == null_ptid before calling
11166 inferior_thread().
11167 (get_inferior_stop_soon): Pass down target.
11168 (wait_one): Rename to ...
11169 (poll_one_curr_target): ... this.
11170 (struct wait_one_event): New.
11171 (wait_one): New.
11172 (stop_all_threads): Adjust.
11173 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11174 event's target.
11175 (switch_back_to_stepped_thread): Also consider target.
11176 (print_stop_event): Update.
11177 (normal_stop): Update. Also consider the resume target.
11178 * infrun.h (wait_for_inferior): Remove declaration.
11179 (user_visible_resume_target): New declaration.
11180 (get_last_target_status, set_last_target_status): New
11181 process_stratum_target parameter.
11182 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11183 process_stratum_target parameter, and use it.
11184 (clear_inline_frame_state (thread_info*)): New.
11185 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11186 process_stratum_target parameter.
11187 (clear_inline_frame_state (thread_info*)): Declare.
11188 * linux-fork.c (delete_checkpoint_command): Pass target down to
11189 find_thread_ptid.
11190 (checkpoint_command): Adjust.
11191 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11192 instead of just tweaking inferior_ptid.
11193 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11194 (exit_lwp): Pass target down to find_thread_ptid.
11195 (attach_proc_task_lwp_callback): Pass target down to
11196 add_thread/set_running/set_executing.
11197 (linux_nat_target::attach): Pass target down to
11198 thread_change_ptid.
11199 (get_detach_signal): Pass target down to find_thread_ptid.
11200 Consider last target status's target.
11201 (linux_resume_one_lwp_throw, resume_lwp)
11202 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11203 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11204 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11205 (linux_nat_target::async_wait_fd): New.
11206 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11207 target down.
11208 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11209 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11210 * linux-thread-db.c (struct thread_db_info::process_target): New
11211 field.
11212 (add_thread_db_info): Save target.
11213 (get_thread_db_info): New process_stratum_target parameter. Also
11214 match target.
11215 (delete_thread_db_info): New process_stratum_target parameter.
11216 Also match target.
11217 (thread_from_lwp): Adjust to pass down target.
11218 (thread_db_notice_clone): Pass down target.
11219 (check_thread_db_callback): Pass down target.
11220 (try_thread_db_load_1): Always push the thread_db target.
11221 (try_thread_db_load, record_thread): Pass target down.
11222 (thread_db_target::detach): Pass target down. Always unpush the
11223 thread_db target.
11224 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11225 target down. Always unpush the thread_db target.
11226 (find_new_threads_callback, thread_db_find_new_threads_2)
11227 (thread_db_target::update_thread_list): Pass target down.
11228 (thread_db_target::pid_to_str): Pass current inferior down.
11229 (thread_db_target::get_thread_local_address): Pass target down.
11230 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11231 target down.
11232 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11233 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11234 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11235 (procfs_init_inferior): Rename to ...
11236 (procfs_target::procfs_init_inferior): ... this and adjust.
11237 (procfs_target::create_inferior, procfs_notice_thread)
11238 (procfs_do_thread_registers): Adjust.
11239 * ppc-fbsd-tdep.c: Include "inferior.h".
11240 (ppcfbsd_get_thread_local_address): Pass down target.
11241 * proc-service.c (ps_xfer_memory): Switch current inferior and
11242 program space as well.
11243 (get_ps_regcache): Pass target down.
11244 * process-stratum-target.c
11245 (process_stratum_target::thread_address_space)
11246 (process_stratum_target::thread_architecture): Pass target down.
11247 * process-stratum-target.h
11248 (process_stratum_target::threads_executing): New field.
11249 (as_process_stratum_target): New.
11250 * ravenscar-thread.c
11251 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11252 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11253 down.
11254 * record-btrace.c (record_btrace_target::info_record): Adjust.
11255 (record_btrace_target::record_method)
11256 (record_btrace_target::record_is_replaying)
11257 (record_btrace_target::fetch_registers)
11258 (get_thread_current_frame_id, record_btrace_target::resume)
11259 (record_btrace_target::wait, record_btrace_target::stop): Pass
11260 target down.
11261 * record-full.c (record_full_wait_1): Switch to event thread.
11262 Pass target down.
11263 * regcache.c (regcache::regcache)
11264 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11265 process_stratum_target parameter and handle it.
11266 (current_thread_target): New global.
11267 (get_thread_regcache): Add process_stratum_target parameter and
11268 handle it. Switch inferior before calling target method.
11269 (get_thread_regcache): Pass target down.
11270 (get_thread_regcache_for_ptid): Pass target down.
11271 (registers_changed_ptid): Add process_stratum_target parameter and
11272 handle it.
11273 (registers_changed_thread, registers_changed): Pass target down.
11274 (test_get_thread_arch_aspace_regcache): New.
11275 (current_regcache_test): Define a couple local test_target_ops
11276 instances and use them for testing.
11277 (readwrite_regcache): Pass process_stratum_target parameter.
11278 (cooked_read_test, cooked_write_test): Pass mock_target down.
11279 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11280 (get_thread_arch_aspace_regcache): Add process_stratum_target
11281 parameter.
11282 (regcache::target): New method.
11283 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11284 (regcache::registers_changed_ptid): Add process_stratum_target
11285 parameter.
11286 (regcache::m_target): New field.
11287 (registers_changed_ptid): Add process_stratum_target parameter.
11288 * remote.c (remote_state::supports_vCont_probed): New field.
11289 (remote_target::async_wait_fd): New method.
11290 (remote_unpush_and_throw): Add remote_target parameter.
11291 (get_current_remote_target): Adjust.
11292 (remote_target::remote_add_inferior): Push target.
11293 (remote_target::remote_add_thread)
11294 (remote_target::remote_notice_new_inferior)
11295 (get_remote_thread_info): Pass target down.
11296 (remote_target::update_thread_list): Skip threads of inferiors
11297 bound to other targets. (remote_target::close): Don't discard
11298 inferiors. (remote_target::add_current_inferior_and_thread)
11299 (remote_target::process_initial_stop_replies)
11300 (remote_target::start_remote)
11301 (remote_target::remote_serial_quit_handler): Pass down target.
11302 (remote_target::remote_unpush_target): New remote_target
11303 parameter. Unpush the target from all inferiors.
11304 (remote_target::remote_unpush_and_throw): New remote_target
11305 parameter. Pass it down.
11306 (remote_target::open_1): Check whether the current inferior has
11307 execution instead of checking whether any inferior is live. Pass
11308 target down.
11309 (remote_target::remote_detach_1): Pass down target. Use
11310 remote_unpush_target.
11311 (extended_remote_target::attach): Pass down target.
11312 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11313 (remote_target::append_resumption): Pass down target.
11314 (remote_target::append_pending_thread_resumptions)
11315 (remote_target::remote_resume_with_hc, remote_target::resume)
11316 (remote_target::commit_resume): Pass down target.
11317 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11318 (remote_target::interrupt_query)
11319 (remote_target::remove_new_fork_children)
11320 (remote_target::check_pending_events_prevent_wildcard_vcont)
11321 (remote_target::remote_parse_stop_reply)
11322 (remote_target::process_stop_reply): Pass down target.
11323 (first_remote_resumed_thread): New remote_target parameter. Pass
11324 it down.
11325 (remote_target::wait_as): Pass down target.
11326 (unpush_and_perror): New remote_target parameter. Pass it down.
11327 (remote_target::readchar, remote_target::remote_serial_write)
11328 (remote_target::getpkt_or_notif_sane_1)
11329 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11330 down target.
11331 (remote_target::mourn_inferior): Pass down target. Use
11332 remote_unpush_target.
11333 (remote_target::core_of_thread)
11334 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11335 (remote_target::pid_to_exec_file)
11336 (remote_target::thread_handle_to_thread_info): Pass down target.
11337 (remote_target::async_wait_fd): New.
11338 * riscv-fbsd-tdep.c: Include "inferior.h".
11339 (riscv_fbsd_get_thread_local_address): Pass down target.
11340 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11341 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11342 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11343 Adjust.
11344 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11345 * solib-svr4.c (enable_break): Pass down target.
11346 * spu-multiarch.c (parse_spufs_run): Pass down target.
11347 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11348 * target-delegates.c: Regenerate.
11349 * target.c (g_target_stack): Delete.
11350 (current_top_target): Return the current inferior's top target.
11351 (target_has_execution_1): Refer to the passed-in inferior's top
11352 target.
11353 (target_supports_terminal_ours): Check whether the initial
11354 inferior was already created.
11355 (decref_target): New.
11356 (target_stack::push): Incref/decref the target.
11357 (push_target, push_target, unpush_target): Adjust.
11358 (target_stack::unpush): Defref target.
11359 (target_is_pushed): Return bool. Adjust to refer to the current
11360 inferior's target stack.
11361 (dispose_inferior): Delete, and inline parts ...
11362 (target_preopen): ... here. Only dispose of the current inferior.
11363 (target_detach): Hold strong target reference while detaching.
11364 Pass target down.
11365 (target_thread_name): Add assertion.
11366 (target_resume): Pass down target.
11367 (target_ops::beneath, find_target_at): Adjust to refer to the
11368 current inferior's target stack.
11369 (get_dummy_target): New.
11370 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11371 has a thread running.
11372 (initialize_targets): Rename to ...
11373 (_initialize_target): ... this.
11374 * target.h: Include "gdbsupport/refcounted-object.h".
11375 (struct target_ops): Inherit refcounted_object.
11376 (target_ops::shortname, target_ops::longname): Make const.
11377 (target_ops::async_wait_fd): New method.
11378 (decref_target): Declare.
11379 (struct target_ops_ref_policy): New.
11380 (target_ops_ref): New typedef.
11381 (get_dummy_target): Declare function.
11382 (target_is_pushed): Return bool.
11383 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11384 (all_matching_threads_iterator::all_matching_threads_iterator):
11385 Handle filter target.
11386 * thread-iter.h (struct all_matching_threads_iterator, struct
11387 all_matching_threads_range, class all_non_exited_threads_range):
11388 Filter by target too. Remove explicit.
11389 * thread.c (threads_executing): Delete.
11390 (inferior_thread): Pass down current inferior.
11391 (clear_thread_inferior_resources): Pass down thread pointer
11392 instead of ptid_t.
11393 (add_thread_silent, add_thread_with_info, add_thread): Add
11394 process_stratum_target parameter. Use it for thread and inferior
11395 searches.
11396 (is_current_thread): New.
11397 (thread_info::deletable): Use it.
11398 (find_thread_ptid, thread_count, in_thread_list)
11399 (thread_change_ptid, set_resumed, set_running): New
11400 process_stratum_target parameter. Pass it down.
11401 (set_executing): New process_stratum_target parameter. Pass it
11402 down. Adjust reference to 'threads_executing'.
11403 (threads_are_executing): New process_stratum_target parameter.
11404 Adjust reference to 'threads_executing'.
11405 (set_stop_requested, finish_thread_state): New
11406 process_stratum_target parameter. Pass it down.
11407 (switch_to_thread): Also match inferior.
11408 (switch_to_thread): New process_stratum_target parameter. Pass it
11409 down.
11410 (update_threads_executing): Reimplement.
11411 * top.c (quit_force): Pop targets from all inferior.
11412 (gdb_init): Don't call initialize_targets.
11413 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11414 Declare.
11415 (windows_add_thread, windows_delete_thread): Adjust.
11416 (get_windows_debug_event): Rename to ...
11417 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11418 * tracefile-tfile.c (tfile_target_open): Pass down target.
11419 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11420 Forward declare.
11421 (switch_to_thread): Add process_stratum_target parameter.
11422 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11423 parameter. Use it.
11424 (mi_on_resume): Pass target down.
11425 * nat/fork-inferior.c (startup_inferior): Add
11426 process_stratum_target parameter. Pass it down.
11427 * nat/fork-inferior.h (startup_inferior): Add
11428 process_stratum_target parameter.
11429 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11430
75c6c844
PA
114312020-01-10 Pedro Alves <palves@redhat.com>
11432
11433 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11434 directly. Instead find the first thread in the thread list and
11435 use switch_to_thread.
11436
78f2c40a
PA
114372020-01-10 Pedro Alves <palves@redhat.com>
11438
11439 * remote.c (remote_target::remote_add_inferior): Don't bind a
11440 process to the current inferior if the current inferior is already
11441 bound to a process.
11442
e7af6c70
TBA
114432020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11444 Pedro Alves <palves@redhat.com>
11445
11446 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11447 If no process is specified, return null_ptid instead of
11448 inferior_ptid.
11449 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11450 TARGET_WAITKIND_SIGNALLED with no pid.
11451
31ba933e
PA
114522020-01-10 Pedro Alves <palves@redhat.com>
11453
11454 * remote.c (first_remote_resumed_thread): New.
11455 (remote_target::wait_as): Use it as default event_ptid instead of
11456 inferior_ptid.
11457
735fc2ca
PA
114582020-01-10 Pedro Alves <palves@redhat.com>
11459
11460 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11461
c17e02e1
PA
114622020-01-10 Pedro Alves <palves@redhat.com>
11463
11464 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11465 not -1.
11466
ab1ddbcf
PA
114672020-01-10 Pedro Alves <palves@redhat.com>
11468
11469 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11470 ptid to get_last_target_status.
11471 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11472 ptid to get_last_target_status.
11473 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11474 get_last_target_status.
11475 (info_program_command): Don't pass a target_waitstatus to
11476 get_last_target_status.
11477 * infrun.c (init_wait_for_inferior): Use
11478 nullify_last_target_wait_ptid.
11479 (get_last_target_status): Handle nullptr arguments.
11480 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11481 (print_stop_event): Don't pass a ptid to get_last_target_status.
11482 (normal_stop): Don't pass a ptid to get_last_target_status.
11483 * infrun.h (get_last_target_status, set_last_target_status): Move
11484 comments here and update.
11485 (nullify_last_target_wait_ptid): Declare.
11486 * linux-fork.c (fork_load_infrun_state): Remove local extern
11487 declaration of nullify_last_target_wait_ptid.
11488 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11489 to get_last_target_status.
11490
f3f8ece4
PA
114912020-01-10 Pedro Alves <palves@redhat.com>
11492
11493 * gdbthread.h (scoped_restore_current_thread)
11494 <dont_restore, restore, m_dont_restore>: Declare.
11495 * thread.c (thread_alive): Add assertion. Return bool.
11496 (switch_to_thread_if_alive): New.
11497 (prune_threads): Switch inferior/thread.
11498 (print_thread_info_1): Switch thread before calling target methods.
11499 (scoped_restore_current_thread::restore): New, factored out from
11500 ...
11501 (scoped_restore_current_thread::~scoped_restore_current_thread):
11502 ... this.
11503 (scoped_restore_current_thread::scoped_restore_current_thread):
11504 Add assertion.
11505 (thread_apply_all_command, thread_select): Use
11506 switch_to_thread_if_alive.
11507 * infrun.c (proceed, restart_threads, handle_signal_stop)
11508 (switch_back_to_stepped_thread): Switch current thread before
11509 calling target methods.
11510
db2d40f7
PA
115112020-01-10 Pedro Alves <palves@redhat.com>
11512
11513 * inferior.c (switch_to_inferior_no_thread): New function,
11514 factored out from ...
11515 (inferior_command): ... here.
11516 * inferior.h (switch_to_inferior_no_thread): Declare.
11517 * mi/mi-main.c (run_one_inferior): Use
11518 switch_to_inferior_no_thread.
11519
bd420a2d
PA
115202020-01-10 Pedro Alves <palves@redhat.com>
11521
11522 * infcmd.c (kill_command): Remove dead code.
11523
ddf5db90
PA
115242020-01-10 Pedro Alves <palves@redhat.com>
11525
11526 * remote.c (remote_target::mourn_inferior): No longer check
11527 whether the target is running.
11528
5018ce90
PA
115292020-01-10 Pedro Alves <palves@redhat.com>
11530
11531 * corelow.c (core_target::has_execution): Change parameter type to
11532 inferior pointer.
11533 * inferior.c (number_of_live_inferiors): Use
11534 inferior::has_execution instead of target_has_execution_1.
11535 * inferior.h (inferior::has_execution): New.
11536 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11537 inferior::has_execution instead of target_has_execution_1.
11538 * process-stratum-target.c
11539 (process_stratum_target::has_execution): Change parameter type to
11540 inferior pointer. Check the inferior's PID instead of
11541 inferior_ptid.
11542 * process-stratum-target.h
11543 (process_stratum_target::has_execution): Change parameter type to
11544 inferior pointer.
11545 * record-full.c (record_full_core_target::has_execution): Change
11546 parameter type to inferior pointer.
11547 * target.c (target_has_execution_1): Change parameter type to
11548 inferior pointer.
11549 (target_has_execution_current): Adjust.
11550 * target.h (target_ops::has_execution): Change parameter type to
11551 inferior pointer.
11552 (target_has_execution_1): Change parameter type to inferior
11553 pointer. Change return type to bool.
11554 * tracefile.h (tracefile_target::has_execution): Change parameter
11555 type to inferior pointer.
11556
74375d18
PA
115572020-01-10 Pedro Alves <palves@redhat.com>
11558
11559 * exceptions.c (print_flush): Remove current_top_target() check.
11560
acdf84a6
PA
115612020-01-10 Pedro Alves <palves@redhat.com>
11562
11563 * remote.c (show_remote_exec_file): Show the current inferior's
11564 exec-file instead of the command variable's value.
11565
ec506636
PA
115662020-01-10 Pedro Alves <palves@redhat.com>
11567
11568 * record-full.c (record_full_resume_ptid): New global.
11569 (record_full_target::resume): Set it.
11570 (record_full_wait_1): Use record_full_resume_ptid instead of
11571 inferior_ptid.
11572
873657b9
PA
115732020-01-10 Pedro Alves <palves@redhat.com>
11574
11575 * gdbthread.h (scoped_restore_current_thread)
11576 <dont_restore, restore, m_dont_restore>: Declare.
11577 * thread.c (thread_alive): Add assertion. Return bool.
11578 (switch_to_thread_if_alive): New.
11579 (prune_threads): Switch inferior/thread.
11580 (print_thread_info_1): Switch thread before calling target methods.
11581 (scoped_restore_current_thread::restore): New, factored out from
11582 ...
11583 (scoped_restore_current_thread::~scoped_restore_current_thread):
11584 ... this.
11585 (scoped_restore_current_thread::scoped_restore_current_thread):
11586 Add assertion.
11587 (thread_apply_all_command, thread_select): Use
11588 switch_to_thread_if_alive.
11589
7f0ae84c
GB
115902020-01-10 George Barrett <bob@bob131.so>
11591
11592 * stap-probe.c (stap_modify_semaphore): Don't check for null
11593 semaphores.
11594 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11595 for null semaphores.
11596
f5a7c406
AB
115972020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11598
11599 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11600 all source windows, and maintain horizontal scroll status while
11601 doing so.
11602
9ae6bf64
TT
116032020-01-09 Tom Tromey <tom@tromey.com>
11604
11605 PR tui/18932:
11606 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11607 update_source_window, not print_source_lines.
11608
b2efe70c
AB
116092020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11610
11611 * tui/tui.c (tui_enable): Register tui hooks after calling
11612 tui_display_main.
11613
5f23a082
CB
116142020-01-09 Christian Biesinger <cbiesinger@google.com>
11615
11616 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11617
3061113b
SM
116182020-01-08 Simon Marchi <simon.marchi@efficios.com>
11619
11620 * thread.c (print_thread_info_1): Fix indentation.
11621
57d75002
CB
116222020-01-09 Christian Biesinger <cbiesinger@google.com>
11623
11624 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11625 unique_xmalloc_ptr outside the if to always free the demangled name.
11626
6a053cb1
TT
116272020-01-08 Tom Tromey <tromey@adacore.com>
11628
11629 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11630 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11631 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11632 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11633 Remove.
11634 (section_offsets): New typedef.
11635 * symtab.c (fixup_section, get_msymbol_address): Update.
11636 * symmisc.c (dump_msymbols): Update.
11637 * symfile.h (relative_addr_info_to_section_offsets)
11638 (symfile_map_offsets_to_segments): Update.
11639 * symfile.c (build_section_addr_info_from_objfile)
11640 (init_objfile_sect_indices): Update.
11641 (struct place_section_arg): Change type of "offsets".
11642 (place_section): Update.
11643 (relative_addr_info_to_section_offsets): Change type of
11644 "section_offsets". Remove "num_sections" parameter.
11645 (default_symfile_offsets, syms_from_objfile_1)
11646 (set_objfile_default_section_offset): Update.
11647 (reread_symbols): No need to preserve section offsets by hand.
11648 (symfile_map_offsets_to_segments): Change type of "offsets".
11649 * stap-probe.c (relocate_address): Update.
11650 * stabsread.h (process_one_symbol): Update.
11651 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11652 (solib_target_relocate_section_addresses): Update.
11653 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11654 Update.
11655 * solib-frv.c (frv_relocate_main_executable): Update.
11656 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11657 * solib-aix.c (solib_aix_get_section_offsets): Change return
11658 type.
11659 (solib_aix_solib_create_inferior_hook): Update.
11660 * remote.c (remote_target::get_offsets): Update.
11661 * psymtab.c (find_pc_sect_psymtab): Update.
11662 * psympriv.h (struct partial_symbol) <address, text_low,
11663 text_high>: Update.
11664 * objfiles.h (obj_section_offset): Update.
11665 (struct objfile) <section_offsets>: Change type.
11666 <num_sections>: Remove.
11667 (objfile_relocate): Update.
11668 * objfiles.c (entry_point_address_query): Update
11669 (relocate_one_symbol): Change type of "section_offsets".
11670 (objfile_relocate1, objfile_relocate1): Change type of
11671 "new_offsets".
11672 (objfile_rebase1): Update.
11673 * mipsread.c (mipscoff_symfile_read): Update.
11674 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11675 parameter.
11676 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11677 (parse_external, psymtab_to_symtab_1): Update.
11678 * machoread.c (macho_symfile_offsets): Update.
11679 * ia64-tdep.c (ia64_find_unwind_table): Update.
11680 * hppa-tdep.c (read_unwind_info): Update.
11681 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11682 * dwarf2read.c (create_addrmap_from_index)
11683 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11684 (process_psymtab_comp_unit_reader, add_partial_symbol)
11685 (add_partial_subprogram, process_full_comp_unit)
11686 (read_file_scope, read_func_scope, read_lexical_block_scope)
11687 (read_call_site_scope, dwarf2_rnglists_process)
11688 (dwarf2_ranges_process, dwarf2_ranges_read)
11689 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11690 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11691 Update.
11692 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11693 Update.
11694 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11695 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11696 (process_one_symbol): Change type of "section_offsets".
11697 * ctfread.c (get_objfile_text_range): Update.
11698 * coffread.c (coff_symtab_read, enter_linenos)
11699 (process_coff_symbol): Update.
11700 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11701 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11702
456e800a
TT
117032020-01-08 Tom Tromey <tromey@adacore.com>
11704
11705 * dwarf2read.c (parse_macro_definition): Use std::string.
11706 (parse_macro_definition): Likewise.
11707
6dfa2fc2
TT
117082020-01-08 Tom Tromey <tromey@adacore.com>
11709
11710 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11711 (ATTR_ALLOC_CHUNK): Remove.
11712
421d1616
TT
117132020-01-08 Tom Tromey <tromey@adacore.com>
11714
11715 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11716
43816ebc
TT
117172020-01-08 Tom Tromey <tromey@adacore.com>
11718
11719 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11720 (dwarf2_compute_name, open_dwo_file): Likewise.
11721 (process_enumeration_scope): Use std::vector.
11722 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11723 (partial_die_info::fixup, dwarf2_start_subfile)
11724 (guess_full_die_structure_name, dwarf2_name): Likewise.
11725 (determine_prefix): Update.
11726 (guess_full_die_structure_name): Make return type const.
11727 (partial_die_full_name): Return unique_xmalloc_ptr.
11728 (DW_FIELD_ALLOC_CHUNK): Remove.
11729
4212d509
TT
117302020-01-07 Tom Tromey <tromey@adacore.com>
11731
11732 PR build/24937:
11733 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11734
06a6207a
JT
117352020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11736
11737 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11738
153d79c4
AB
117392020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11740
11741 * stack.c (print_frame_info): Move disassemble_next_line code
11742 inside source_print block.
11743
66182876
EZ
117442020-01-06 Eli Zaretskii <eliz@gnu.org>
11745
11746 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11747 gdb/signals.h, as we are now using native signal symbols.
11748
cbfa8581
SV
117492020-01-06 Shahab Vahedi <shahab@synopsys.com>
11750
11751 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11752 overflow by an early check of content vs threshold.
aac66a4c 11753 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11754 Likewise.
11755
3f602821
EZ
117562020-01-06 Eli Zaretskii <eliz@gnu.org>
11757
11758 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11759
a08c904d
JT
117602020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11761
11762 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11763 export table if no section contains it's RVA.
11764
89a65580
EZ
117652020-01-06 Eli Zaretskii <eliz@gnu.org>
11766
11767 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11768
8b7fcda2
HD
117692020-01-06 Hannes Domani <ssbssa@yahoo.de>
11770
11771 * source.c (print_source_lines_base): Set last_line_listed.
11772
a61b4f69
SV
117732020-01-06 Shahab Vahedi <shahab@synopsys.com>
11774
11775 * tui/tui-disasm.c: Remove trailing spaces.
11776
559e7e50
EZ
117772020-01-06 Eli Zaretskii <eliz@gnu.org>
11778 Pedro Alves <palves@redhat.com>
11779
11780 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11781 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11782 (windows_gdb_signal_to_target): New function, uses the above
11783 enumeration to convert GDB internal signal codes to equivalent
11784 Windows codes.
11785 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11786 * windows-nat.c: Include "gdb_wait.h".
11787 (get_windows_debug_event): Extract the fatal exception from the
11788 exit status and convert to the equivalent Posix signal number.
11789 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11790 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11791 * gdbsupport/gdb_wait.c: New file, implements
11792 windows_status_to_termsig.
11793 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11794 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11795
f2302a34
AB
117962020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11797
11798 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11799 show_layout.
11800
6a5206eb
LM
118012020-01-05 Luis Machado <luis.machado@linaro.org>
11802
11803 * aarch64-linux-nat.c
11804 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11805 and bfd_mach_aarch64.
11806
6ec1d75e
PW
118072020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11808
11809 * ui-file.c (stdio_file::can_emit_style_escape)
11810 (tee_file::can_emit_style_escape): Ensure style is used also on
11811 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11812 to gdb_stdout.
11813 * main.c (set_gdb_data_directory): Use file style to output the
11814 warning that the given pathname is not a directory.
11815 * top.c (show_history_filename, gdb_safe_append_history)
11816 (show_gdb_datadir): Use file style.
11817
44f81a76
HD
118182020-01-03 Hannes Domani <ssbssa@yahoo.de>
11819
11820 * solib-target.c (struct lm_info_target):
11821 Change offsets to be a unique_xmalloc_ptr.
11822 (solib_target_relocate_section_addresses): Update.
11823
25057eb0
HD
118242020-01-03 Hannes Domani <ssbssa@yahoo.de>
11825
11826 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11827
6e2118f5
BE
118282020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11829
11830 * MAINTAINERS (Write After Approval): Add myself.
11831
8133c7dc
LM
118322020-01-02 Luis Machado <luis.machado@linaro.org>
11833
11834 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11835 Cell BE architecture.
11836 * target.h (struct target_ops) <thread_architecture>: Likewise.
11837
48189bec
HD
118382020-01-01 Hannes Domani <ssbssa@yahoo.de>
11839
11840 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11841
ead1063b
HD
118422020-01-01 Hannes Domani <ssbssa@yahoo.de>
11843
11844 * MAINTAINERS (Write After Approval): Add myself.
11845
e5d78223
JB
118462020-01-01 Joel Brobecker <brobecker@adacore.com>
11847
11848 * gdbarch.sh: Update copyright year range of generated files.
11849
b811d2c2
JB
118502020-01-01 Joel Brobecker <brobecker@adacore.com>
11851
11852 Update copyright year range in all GDB files.
11853
5f4def5c
JB
118542020-01-01 Joel Brobecker <brobecker@adacore.com>
11855
11856 * copyright.py: Convert to Python 3.
11857
51fd4002
JB
118582020-01-01 Joel Brobecker <brobecker@adacore.com>
11859
11860 * copyright.py: Adapt after move of gnulib directory from gdb
11861 directory to toplevel directory.
11862
5fb651f2
JB
118632020-01-01 Joel Brobecker <brobecker@adacore.com>
11864
11865 * copyright.py (main): Exit if run from the wrong directory.
11866
5dd8bf88
JB
118672020-01-01 Joel Brobecker <brobecker@adacore.com>
11868
11869 * top.c (print_gdb_version): Change copyright year to 2020.
11870
9f71dacb 118712020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11872
9f71dacb 11873 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11874
9f71dacb 11875For older changes see ChangeLog-2019.
c906108c
SS
11876\f
11877Local Variables:
11878mode: change-log
11879left-margin: 8
11880fill-column: 74
11881version-control: never
57da7796 11882coding: utf-8
c906108c 11883End: