]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: pass target to thread_ptid_changed observable
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b161a60d
SM
12020-08-07 Simon Marchi <simon.marchi@efficios.com>
2
3 * observable.h (thread_ptid_changed): Add parameter
4 `process_stratum_target *`.
5 * infrun.c (infrun_thread_ptid_changed): Add parameter
6 `process_stratum_target *` and use it.
7 (selftests): New namespace.
8 (infrun_thread_ptid_changed): New function.
9 (_initialize_infrun): Register selftest.
10 * regcache.c (regcache_thread_ptid_changed): Add parameter
11 `process_stratum_target *` and use it.
12 (regcache_thread_ptid_changed): New function.
13 (_initialize_regcache): Register selftest.
14 * thread.c (thread_change_ptid): Pass target to
15 thread_ptid_changed observable.
16
d2854d8d
CT
172020-08-06 Caroline Tice <cmtice@google.com>
18
19 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
20 (struct dwp_sections): Update field comments. Add loclists and
21 rnglists fields.
22 (struct virtual_v2_dwo_sections): Rename struct to
23 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
24 size & offset fields for loclists and rnglists.
25 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
26 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
27 skipping dummy type units.
28 (create_dwp_hash_table): Update the large comment above the function to
29 discuss Version 5 DWP files as well, with references. Update all the
30 version checks in the function to check for version 5 as well. Add new
31 section at the end to create dwp hash table for version 5.
32 (create_dwp_v2_section): Rename function to
33 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
34 Add V5 to error message text.
35 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
36 into calls to create_dwp_v2_or_v5_section.
37 (create_dwo_unit_in_dwp_v5): New function.
38 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
39 check for version2; add else clause to handle version 5.
40 (open_and_init_dwo_file): Add code to check dwarf version & only call
41 create_debug_types_hash_table (with sections.types) if version is not 5;
42 else call create_debug_type_hash_table, with sections.info.
43 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
44 version 5.
45 (dwarf2_locate_v5_dwp_sections): New function.
46 (open_and_init_dwp_file): Add else-if clause for version 5 to call
47 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
48
159ed7d9
SM
492020-08-06 Simon Marchi <simon.marchi@efficios.com>
50
51 * regcache.h (class regcache): Remove friend
52 registers_changed_ptid.
53 <regcache_thread_ptid_changed>: Remove.
54 <regcaches>: Remove.
55 * regcache.c (regcache::regcaches): Rename to...
56 (regcaches): ... this. Make static.
57 (get_thread_arch_aspace_regcache): Update.
58 (regcache::regcache_thread_ptid_changed): Rename to...
59 (regcache_thread_ptid_changed): ... this. Update.
60 (class regcache_access): Remove.
61 (regcaches_test): Update.
62 (_initialize_regcache): Update.
63 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
64 <forward_list>.
65
174981ae
SM
662020-08-06 Simon Marchi <simon.marchi@efficios.com>
67
68 * regcache.h (class regcache) <current_regcache>: Rename to...
69 <regcaches>: ... this. Move doc here.
70 * regcache.c (regcache::current_regcache) Rename to...
71 (regcache::regcaches): ... this. Move doc to header.
72 (get_thread_arch_aspace_regcache): Update.
73 (regcache::regcache_thread_ptid_changed): Update.
74 (registers_changed_ptid): Update.
75 (class regcache_access) <current_regcache_size>: Rename to...
76 <regcaches_size>: ... this.
77 (current_regcache_test): Rename to...
78 (regcaches_test): ... this.
79 (_initialize_regcache): Update.
80
ed908db6
VC
812020-08-06 Victor Collod <vcollod@nvidia.com>
82
83 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
84
b5582ab7
KB
852020-08-05 Kevin Buettner <kevinb@redhat.com>
86
87 * corelow.c (core_target::build_file_mappings): Don't output
88 null pathname in warning.
89
ea946b86
SM
902020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
91
92 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
93 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
94 gdb.dwarf2/dw2-single-line-discriminators.exp,
95 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
96
57d02173
TT
972020-08-05 Tom Tromey <tromey@adacore.com>
98
99 PR rust/26197:
100 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
101 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
102 Fix off-by-one and type size errors in ordinary case.
103
5555c86d
TV
1042020-08-05 Tom de Vries <tdevries@suse.de>
105
106 * gdbtypes.c (type_not_allocated, type_not_associated): Use
107 "prop->const_val () == 0" instead of "prop->const_val () != 0".
108
97916bfe
SM
1092020-08-04 Simon Marchi <simon.marchi@efficios.com>
110
111 * frame.h (frame_id_p): Return bool.
112 (frame_id_artificial_p): Return bool.
113 (frame_id_eq): Return bool.
114 (has_stack_frames): Return bool.
115 (get_selected_frame): Fix typo in comment.
116 (get_frame_pc_if_available): Return bool.
117 (get_frame_address_in_block_if_available): Return bool.
118 (get_frame_func_if_available): Return bool.
119 (read_frame_register_unsigned): Return bool.
120 (get_frame_register_bytes): Return bool.
121 (safe_frame_unwind_memory): Return bool.
122 (deprecated_frame_register_read): Return bool.
123 (frame_unwinder_is): Return bool.
124 * frame.c (struct frame_info) <prev_arch::p>: Change type to
125 bool.
126 <this_id::p>: Likewise.
127 <prev_p>: Likewise.
128 (frame_stash_add): Return bool.
129 (get_frame_id): Use bool.
130 (frame_id_build_special) Use bool.
131 (frame_id_build_unavailable_stack): Use bool.
132 (frame_id_build): Use bool.
133 (frame_id_p): Return bool, use true/false instead of 1/0.
134 (frame_id_artificial_p): Likewise.
135 (frame_id_eq): Likewise.
136 (frame_id_inner): Likewise.
137 (get_frame_func_if_available): Likewise.
138 (read_frame_register_unsigned): Likewise.
139 (deprecated_frame_register_read): Likewise.
140 (get_frame_register_bytes): Likewise.
141 (has_stack_frames): Likewise.
142 (inside_main_func): Likewise.
143 (inside_entry_func): Likewise.
144 (get_frame_pc_if_available): Likewise.
145 (get_frame_address_in_block_if_available): Likewise.
146 (frame_unwinder_is): Likewise.
147 (safe_frame_unwind_memory): Likewise.
148 (frame_unwind_arch): Likewise.
149
fedfee88
SM
1502020-08-04 Simon Marchi <simon.marchi@efficios.com>
151
152 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
153 type to cached_copy_status.
154 (fprintf_frame): Adjust.
155 (get_frame_func_if_available): Adjust.
156 (frame_cleanup_after_sniffer): Adjust.
157
6cfa9b59
MW
1582020-08-04 Mark Wielaard <mark@klomp.org>
159
160 * MAINTAINERS (Write After Approval): Update email address.
161
66d6346b
SM
1622020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
163
164 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
165 dynamic_prop::const_val.
166
8a6d5e35
SM
1672020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
168
169 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
170 dynamic_prop::kind.
171
51d6067d
SM
1722020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
173
174 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
175
b26e2ae7
JM
1762020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
177
178 * configure.tgt: Set gdb_sim for bpf-*-* targets.
179
39791af2
JM
1802020-08-04 Weimin Pan <weimin.pan@oracle.com>
181 Jose E. Marchesi <jose.marchesi@oracle.com>
182
183 * configure.tgt: Add entry for bpf-*-*.
184 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
185 (ALLDEPFILES): Add bpf-tdep.c.
186 * bpf-tdep.c: New file.
187 * MAINTAINERS: Add bpf target and maintainer.
188 * NEWS: Mention the support for the new target.
189
521894aa
TV
1902020-08-04 Tom de Vries <tdevries@suse.de>
191
192 PR symtab/23270
193 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
194 Error.
195
5d6356e9
JB
1962020-08-03 John Baldwin <jhb@FreeBSD.org>
197
198 * syscalls/freebsd.xml: Regenerate.
199
0cf82b81
JB
2002020-08-03 John Baldwin <jhb@FreeBSD.org>
201
202 * syscalls/update-freebsd.sh: Fix usage and year range.
203
8f34b746
TV
2042020-08-03 Tom de Vries <tdevries@suse.de>
205
206 PR symtab/26333
207 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
208 DW_LNE_lo_user/DW_LNE_hi_user range.
209
5e500d33
SM
2102020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
211
212 PR ada/26318
213 * ada-lang.c (ada_modulus): Return 0 if property is not of const
214 kind.
215
78319c15
TBA
2162020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
217
218 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
219
4c55e970
TBA
2202020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
221
222 * breakpoint.c (set_breakpoint_condition): Update the condition
223 expressions after checking that the input condition string parses
224 successfully and does not contain junk at the end.
225
1e620590
TBA
2262020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
227
228 * breakpoint.c (set_breakpoint_condition): Update the
229 condition string after parsing the new condition successfully.
230
c8693053
RO
2312020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
232
233 * proc-api.c (_STRUCTURED_PROC): Don't define.
234 * proc-events.c: Likewise.
235 * proc-flags.c: Likewise.
236 * proc-why.c: Likewise.
237 * procfs.c: Likewise.
238
239 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
240 * configure, config.in: Regenerate.
241
5a99adb8
TV
2422020-07-30 Tom de Vries <tdevries@suse.de>
243
244 PR build/26320
245 * ui-style.h (struct ui_file_style::color): Wrap m_value and
246 m_red/m_green/m_blue in a union.
247
8ba83e91
TV
2482020-07-29 Tom de Vries <tdevries@suse.de>
249
250 PR tdep/26280
251 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
252
f75a0693
AB
2532020-07-28 Tom Tromey <tromey@adacore.com>
254
255 PR symtab/26270:
256 * symtab.h (find_pc_partial_function_sym): Declare.
257 * cli/cli-cmds.c (disassemble_command): Use
258 find_pc_partial_function_sym. Check asm_demangle.
259 * blockframe.c (cache_pc_function_sym): New global.
260 (cache_pc_function_name): Remove.
261 (clear_pc_function_cache): Update.
262 (find_pc_partial_function_sym): New function, from
263 find_pc_partial_function.
264 (find_pc_partial_function): Rewrite using
265 find_pc_partial_function_sym.
266
16f3242c
TT
2672020-07-28 Tom Tromey <tromey@adacore.com>
268
269 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
270 help. Add usage.
271
4888741a
TT
2722020-07-28 Tom Tromey <tromey@adacore.com>
273
274 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
275 <DW_OP_GNU_variable_value>: Cast to address type.
276
4d46f402
KR
2772020-07-28 Kamil Rytarowski <n54@gmx.com>
278
279 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
280 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
281 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
282 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
283 (nbsd_get_siginfo_type): New.
284 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
285 (_initialize_nbsd_tdep): New.
286
d70f978b
L
2872020-07-28 H.J. Lu <hongjiu.lu@intel.com>
288
289 PR binutils/26301
290 * configure: Regenerated.
291
377170fa
L
2922020-07-28 H.J. Lu <hongjiu.lu@intel.com>
293
294 PR binutils/26301
295 * configure: Regenerated.
296
43d5901d
AB
2972020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
298
299 * python/py-frame.c: Remove 'user-regs.h' include.
300 (frapy_read_register): Rewrite to make use of
301 gdbpy_parse_register_id.
302 * python/py-registers.c (gdbpy_parse_register_id): New function,
303 moved here from python/py-unwind.c. Updated the return type, and
304 also accepts register descriptor objects.
305 * python/py-unwind.c: Remove 'user-regs.h' include.
306 (pyuw_parse_register_id): Moved to python/py-registers.c.
307 (unwind_infopy_add_saved_register): Update to use
308 gdbpy_parse_register_id.
309 (pending_framepy_read_register): Likewise.
310 * python/python-internal.h (gdbpy_parse_register_id): Declare.
311
14fa8fb3
AB
3122020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
313
314 * python/py-registers.c: Add 'user-regs.h' include.
315 (register_descriptor_iter_find): New function.
316 (register_descriptor_iterator_object_methods): New static global
317 methods array.
318 (register_descriptor_iterator_object_type): Add pointer to methods
319 array.
320
ddce1758
JB
3212020-07-27 John Baldwin <jhb@FreeBSD.org>
322
323 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
324 for all architectures on FreeBSD 11.3 and later.
325
a4089f52
TT
3262020-07-27 Tom Tromey <tromey@adacore.com>
327
328 * gcore.h (load_corefile): Don't declare.
329
95420d30
TV
3302020-07-27 Tom de Vries <tdevries@suse.de>
331
332 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
333 * config.in: Regenerate.
334 * configure: Regenerate.
335
05a6b8c2
EZ
3362020-07-26 Eli Zaretskii <eliz@gnu.org>
337
338 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
339 ws2tcpip.h. When checking whether socklen_t type is defined, use
340 ws2tcpip.h if it is available and sys/socket.h isn't.
341 * configure: Regenerate.
342 * config.in: Regenerate.
343
e79eb02f
AB
3442020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
345
346 PR fortran/23051
347 PR fortran/26139
348 * valops.c (value_ind): Pass address to
349 readjust_indirect_value_type.
350 * value.c (readjust_indirect_value_type): Make parameter
351 non-const, and add extra address parameter. Resolve original type
352 before using it.
353 * value.h (readjust_indirect_value_type): Update function
354 signature and comment.
355
876518dd
TV
3562020-07-25 Tom de Vries <tdevries@suse.de>
357
358 PR symtab/26243
359 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
360 entries.
361
f6720b1c
AM
3622020-07-24 Aaron Merey <amerey@redhat.com>
363
364 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
365 * configure: Rebuild.
366
513487e1
KB
3672020-07-23 Kevin Buettner <kevinb@redhat.com>
368
369 PR corefiles/26294
370 * corelow.c (_initialize_corelow): Add period to help text
371 for "maintenance print core-file-backed-mappings".
372
e7bc9db8
PA
3732020-07-23 Pedro Alves <pedro@palves.net>
374
375 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
376 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
377 meanwhile.
378 * frame.c (frame_cache_generation, get_frame_cache_generation):
379 New.
380 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
381 (get_prev_frame_if_no_cycle): On exception, don't touch
382 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
383 * frame.h (get_frame_cache_generation): Declare.
384
90fcc466
TV
3852020-07-23 Tom de Vries <tdevries@suse.de>
386
387 PR tui/26282
388 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
389 New default constructor.
390
78344df7
AB
3912020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
392
393 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
394 exclude non-statement entries.
395
b089853a
KB
3962020-07-22 Kevin Buettner <kevinb@redhat.com>
397
398 * NEWS (New commands): Mention new command
399 "maintenance print core-file-backed-mappings".
400
09c2f5d4
KB
4012020-07-22 Kevin Buettner <kevinb@redhat.com>
402
403 * corelow.c (gdbcmd.h): Include.
404 (core_target::info_proc_mappings): New method.
405 (get_current_core_target): New function.
406 (maintenance_print_core_file_backed_mappings): New function.
407 (_initialize_corelow): Add core-file-backed-mappings to
408 "maint print" commands.
409
9c5ec5c2
KB
4102020-07-22 Kevin Buettner <kevinb@redhat.com>
411
412 * linux-tdep.c (dump_note_entry_p): New function.
413 (linux_dump_mapping_p_ftype): New typedef.
414 (linux_find_memory_regions_full): Add new parameter,
415 should_dump_mapping_p.
416 (linux_find_memory_regions): Adjust call to
417 linux_find_memory_regions_full.
418 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
419 call to linux_find_memory_regions_full.
420
db082f59
KB
4212020-07-22 Kevin Buettner <kevinb@redhat.com>
422
423 * corelow.c (solist.h, unordered_map): Include.
424 (class core_target): Add field m_core_file_mappings and
425 method build_file_mappings.
426 (core_target::core_target): Call build_file_mappings.
427 (core_target::~core_target): Free memory associated with
428 m_core_file_mappings.
429 (core_target::build_file_mappings): New method.
430 (core_target::xfer_partial): Use m_core_file_mappings
431 for memory transfers.
432 * linux-tdep.c (linux_read_core_file_mappings): New
433 function.
434 (linux_core_info_proc_mappings): Rewrite to use
435 linux_read_core_file_mappings.
436 (linux_init_abi): Register linux_read_core_file_mappings.
437
7e183d27
KB
4382020-07-22 Kevin Buettner <kevinb@redhat.com>
439
440 * arch-utils.c (default_read_core_file_mappings): New function.
441 * arch-utils.c (default_read_core_file_mappings): Declare.
442 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
443 * gdbarch.h, gdbarch.c: Regenerate.
444
2735d421
KB
4452020-07-22 Kevin Buettner <kevinb@redhat.com>
446
447 PR corefiles/25631
448 * corelow.c (core_target:xfer_partial): Revise
449 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
450 case after first checking the stratum beneath the core
451 target.
452 (has_all_memory): Return true.
453 * target.c (raw_memory_xfer_partial): Revise comment
454 regarding use of has_all_memory.
455
e56cb451
KB
4562020-07-22 Kevin Buettner <kevinb@redhat.com>
457
458 * exec.h (section_table_xfer_memory): Revise declaration,
459 replacing section name parameter with an optional callback
460 predicate.
461 * exec.c (section_table_xfer_memory): Likewise.
462 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
463 of section_table_xfer_memory.
464
32fa152e
TT
4652020-07-22 Tom Tromey <tromey@adacore.com>
466
467 * mi/mi-cmd-stack.c (list_args_or_locals): Use
468 lookup_symbol_search_name.
469
a67a1c41
AB
4702020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
471
472 * python/py-registers.c (gdbpy_register_object_data_init): Remove
473 redundant local variable.
474 (gdbpy_get_register_descriptor): Extract descriptor vector as a
475 reference, not pointer, update code accordingly.
476
a7b4ff4f
SM
4772020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
478 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
479
480 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
481 * jit.c (jit_breakpoint_re_set_internal): Use the
482 `skip_jit_symbol_lookup` field.
483
2340e834
SM
4842020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
485 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
486
487 * jit.c (jit_read_descriptor): Define the descriptor address once,
488 use twice.
489 (jit_breakpoint_deleted): Move the declaration of the loop variable
490 `iter` into the loop header.
491 (jit_breakpoint_re_set_internal): Move the declaration of the local
492 variable `objf_data` to the first point of definition.
493 (jit_event_handler): Move the declaration of local variables
494 `code_entry`, `entry_addr`, and `objf` to their first point of use.
495 Rename `objf` to `jited`.
496
c1072906
SM
4972020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
498
499 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
500 Remove.
501 * jit.c (get_jiter_objfile_data): Update.
502
c8474dc3
TBA
5032020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
504 Simon Marchi <simon.marchi@polymtl.ca>
505
506 * jit.c (struct jit_program_space_data): Remove.
507 (jit_program_space_key): Remove.
508 (jiter_objfile_data::~jiter_objfile_data): Remove program space
509 stuff.
510 (get_jit_program_space_data): Remove.
511 (jit_breakpoint_deleted): Iterate on all of the program space's
512 objfiles.
513 (jit_inferior_init): Likewise.
514 (jit_breakpoint_re_set_internal): Likewise. Also change return
515 type to void.
516 (jit_breakpoint_re_set): Pass current_program_space to
517 jit_breakpoint_re_set_internal.
518
77208eb7
SM
5192020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
520
521 * jit.h (struct jiter_objfile_data) <cached_code_address,
522 jit_breakpoint>: Move to here from ...
523 * jit.c (jit_program_space_data): ... here.
524 (jiter_objfile_data::~jiter_objfile_data): Update.
525 (jit_breakpoint_deleted): Update.
526 (jit_breakpoint_re_set_internal): Update.
527
8c1c720f
SM
5282020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
529
530 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
531 checks.
532 (jit_read_descriptor): Remove NULL check.
533 (jit_event_handler): Add an assertion.
534
0e74a041
SM
5352020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
536
537 * jit.h (struct jit_objfile_data): Split into...
538 (struct jiter_objfile_data): ... this ...
539 (struct jited_objfile_data): ... and this.
540 * objfiles.h (struct objfile) <jit_data>: Remove.
541 <jiter_data, jited_data>: New fields.
542 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
543 (jiter_objfile_data::~jiter_objfile_data): ... this.
544 (get_jit_objfile_data): Rename to ...
545 (get_jiter_objfile_data): ... this.
546 (add_objfile_entry): Update.
547 (jit_read_descriptor): Use get_jiter_objfile_data.
548 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
549 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
550 (jit_inferior_exit_hook): Use objfile's jited_data field.
551
238b5c9f
SM
5522020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
553
554 * jit.h: Forward-declare `struct minimal_symbol`.
555 (struct jit_objfile_data): Migrate to here from jit.c; also add a
556 constructor, destructor, and an objfile* field.
557 * jit.c (jit_objfile_data): Remove.
558 (struct jit_objfile_data): Migrate from here to jit.h.
559 (jit_objfile_data::~jit_objfile_data): New destructor
560 implementation with code moved from free_objfile_data.
561 (free_objfile_data): Delete.
562 (get_jit_objfile_data): Update to use the jit_data field of objfile.
563 (jit_find_objf_with_entry_addr): Ditto.
564 (jit_inferior_exit_hook): Ditto.
565 (_initialize_jit): Remove the call to
566 register_objfile_data_with_cleanup.
567 * objfiles.h (struct objfile) <jit_data>: New field.
568
fe053b9e
TBA
5692020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
570
571 * jit.h: Forward-declare `struct objfile`.
572 (jit_event_handler): Add a second parameter, the JITer objfile.
573 * jit.c (jit_read_descriptor): Change the signature to take the
574 JITer objfile as an argument instead of the jit_program_space_data.
575 (jit_inferior_init): Update the call to jit_read_descriptor.
576 (jit_event_handler): Use the new JITer objfile argument when calling
577 jit_read_descriptor.
578 * breakpoint.c (handle_jit_event): Update the call to
579 jit_event_handler to pass the JITer objfile.
580
4cec0c66
JB
5812020-07-21 John Baldwin <jhb@FreeBSD.org>
582
583 * gdbarch.c: Regenerate.
584 * gdbarch.h: Regenerate.
585 * gdbarch.sh (handle_segmentation_fault): Remove method.
586 * infrun.c (handle_segmentation_fault): Remove.
587 (print_signal_received_reason): Remove call to
588 handle_segmentation_fault.
589
0e42f66a
JB
5902020-07-21 John Baldwin <jhb@FreeBSD.org>
591
592 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
593 Rename to sparc64_linux_report_signal_info and add siggnal
594 argument.
595 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
596 instead of sparc64_linux_handle_segmentation_fault.
597
77bdfeb2
JB
5982020-07-21 John Baldwin <jhb@FreeBSD.org>
599
600 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
601 i386_linux_report_signal_info instead of
602 i386_linux_handle_segmentation_fault.
603 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
604 to i386_linux_report_signal_info and add siggnal argument.
605 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
606 of i386_linux_handle_segmentation_fault.
607 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
608 to i386_linux_report_signal_info and add siggnal argument.
609
ad97bfc5
JB
6102020-07-21 John Baldwin <jhb@FreeBSD.org>
611
612 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
613 hook if present.
614
272bb05c
JB
6152020-07-21 John Baldwin <jhb@FreeBSD.org>
616
617 * gdbarch.c: Regenerate.
618 * gdbarch.h: Regenerate.
619 * gdbarch.sh (report_signal_info): New method.
620 * infrun.c (print_signal_received_reason): Invoke gdbarch
621 report_signal_info hook if present.
622
baf8791e
AB
6232020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
624
625 * python/py-registers.c : Add 'unordered_map' include.
626 (gdbpy_new_reggroup): Renamed to...
627 (gdbpy_get_reggroup): ...this. Update to only create register
628 group descriptors when needed.
629 (gdbpy_reggroup_iter_next): Update.
630
f7306dac
AB
6312020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
632
633 * python/py-registers.c (gdbpy_register_object_data): New static
634 global.
635 (gdbpy_register_object_data_init): New function.
636 (gdbpy_new_register_descriptor): Renamed to...
637 (gdbpy_get_register_descriptor): ...this, and update to reuse
638 existing register descriptors where possible.
639 (gdbpy_register_descriptor_iter_next): Update.
640 (gdbpy_initialize_registers): Register new gdbarch data.
641
05c309a8
SM
6422020-07-21 Simon Marchi <simon.marchi@efficios.com>
643
644 * linux-nat.c (stopped_pids): Make static.
645
d1fd641e
SM
6462020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
647
648 PR ada/26235
649 * gdbtypes.c (ada_discrete_type_low_bound,
650 ada_discrete_type_high_bound): Handle undefined bounds.
651
1de14d77
KR
6522020-07-21 Kamil Rytarowski <n54@gmx.com>
653
654 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
655 declaration.
656 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
657 function.
658
ed810cc7
JB
6592020-07-20 John Baldwin <jhb@FreeBSD.org>
660
661 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
662 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
663 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
664 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
665 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
666 method.
667
ae5369e7
LC
6682020-07-20 Ludovic Courtès <ludo@gnu.org>
669
670 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
671 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
672 which are deprecated in Guile 3.0.
673 * configure.ac (try_guile_versions): Add "guile-3.0".
674 * configure (try_guile_versions): Regenerate.
675 * NEWS: Update entry.
676
68cf161c
LC
6772020-07-20 Ludovic Courtès <ludo@gnu.org>
678 Doug Evans <dje@google.com>
679
680 PR gdb/21104
681 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
682 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
683 USING_GUILE_BEFORE_2_2.
684 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
685 Change type to 'scm_t_port_type *'.
686 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
687 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
688 parameter and honor it. Update callers.
689 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
690 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
691 functions.
692 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
693 USING_GUILE_BEFORE_2_2.
694 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
695 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
696 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
697 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
698 and 'SCM_PORT_TYPE'.
699 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
700 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
701 (gdbscm_memory_port_read, gdbscm_memory_port_write)
702 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
703 [!USING_GUILE_BEFORE_2_2]: New functions.
704 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
705 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
706 'gdbscm_memory_port_read'.
707 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
708 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
709 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
710 function.
711 (ioscm_init_memory_port): Remove.
712 (ioscm_init_memory_port_stream): New function
713 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
714 function.
715 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
716 Return scm_from_uint (0).
717 (gdbscm_set_memory_port_read_buffer_size_x)
718 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
719 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
720 Return scm_from_uint (0).
721 (gdbscm_set_memory_port_write_buffer_size_x)
722 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
723 * configure.ac (try_guile_versions): Add "guile-2.2".
724 * configure: Regenerate.
725 * NEWS: Add entry.
726
aee91db3
TT
7272020-07-18 Tom Tromey <tom@tromey.com>
728
729 * linux-nat.c (linux_multi_process): Remove.
730 (linux_nat_target::supports_multi_process): Return true.
731
0e267416
AB
7322020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
733
734 * arch/riscv.c (riscv_tdesc_cache): Change map type.
735 (riscv_lookup_target_description): Return pointer out of
736 unique_ptr.
737 * target-descriptions.c (allocate_target_description): Add
738 comment.
739 (target_desc_deleter::operator()): Likewise.
740 * target-descriptions.h (struct target_desc_deleter): Moved to
741 gdbsupport/tdesc.h.
742 (target_desc_up): Likewise.
743
f80c8ec4
TT
7442020-07-17 Tom Tromey <tromey@adacore.com>
745
746 * linux-nat.c (linux_nat_target::supports_non_stop)
747 (linux_nat_target::always_non_stop_p): Use "true".
748 (linux_nat_target::supports_disable_randomization): Use "true" and
749 "false".
750
d0ce17d8
CT
7512020-07-16 Caroline Tice <cmtice@google.com>
752
753 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
754 (RNGLIST_HEADER_SIZE64): New constant definition.
755 (struct dwop_section_names): Add rnglists_dwo.
756 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
757 (struct loclist_header): Rename to 'loclists_rnglists_header'.
758 (struct dwo_sections): Add rnglists field.
759 (read_attribut_reprocess): Add tag parameter.
760 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
761 (cu_debug_rnglists_section): New function (decl & definition).
762 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
763 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
764 die whose range is being checked; get rnglist section from
765 cu_debug_rnglists_section, to get from either objfile or dwo file as
766 appropriate. Add cases for DW_RLE_base_addressx,
767 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
768 the base address to DW_RLE_offset_pairs (not to all ranges), moving
769 test inside if-condition and updating complaint message.
770 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
771 dwarf2_rnglists_process.
772 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
773 dwarf2_ranges_process.
774 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
775 need_ranges_base and update comment appropriately. Also pass die tag
776 to dwarf2_ranges_read.
777 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
778 need_ranges_base and update comment appropriately. Also pass die tag
779 to dwarf2_ranges_process.
780 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
781 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
782 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
783 need_ranges_base and update comment appropriately. Also pass die tag
784 to read_attribute_reprocess and dwarf2_ranges_read.
785 (read_loclist_header): Rename function to read_loclists_rnglists_header,
786 and update function comment appropriately.
787 (read_loclist_index): Call read_loclists_rnglists_header instead of
788 read_loclist_header.
789 (read_rnglist_index): New function.
790 (read_attribute_reprocess): Add tag parameter. Add code for
791 DW_FORM_rnglistx, passing tag to read_rnglist_index.
792 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
793
3dcc261c
AB
7942020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
795
796 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
797 being resolved.
798
ccb9eba6
AB
7992020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
800
801 * arch-utils.c (show_architecture): Update formatting of messages.
802
cf88be68
SM
8032020-07-12 Simon Marchi <simon.marchi@efficios.com>
804
805 * gdbtypes.h (struct type) <bounds>: Handle array and string
806 types.
807 * ada-lang.c (assign_aggregate): Use type::bounds on
808 array/string type.
809 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
810 * c-varobj.c (c_number_of_children): Likewise.
811 (c_describe_child): Likewise.
812 * eval.c (evaluate_subexp_for_sizeof): Likewise.
813 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
814 (f_type_print_base): Likewise.
815 * f-valprint.c (f77_array_offset_tbl): Likewise.
816 (f77_get_upperbound): Likewise.
817 (f77_print_array_1): Likewise.
818 * guile/scm-type.c (gdbscm_type_range): Likewise.
819 * m2-typeprint.c (m2_array): Likewise.
820 (m2_is_long_set_of_type): Likewise.
821 * m2-valprint.c (get_long_set_bounds): Likewise.
822 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
823 * python/py-type.c (typy_range): Likewise.
824 * rust-lang.c (rust_internal_print_type): Likewise.
825 * type-stack.c (type_stack::follow_types): Likewise.
826 * valarith.c (value_subscripted_rvalue): Likewise.
827 * valops.c (value_cast): Likewise.
828
509971ae
SM
8292020-07-12 Simon Marchi <simon.marchi@efficios.com>
830
831 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
832 callers to use the equivalent accessor methods.
833
107406b7
SM
8342020-07-12 Simon Marchi <simon.marchi@efficios.com>
835
836 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
837 (struct type) <bit_stride>: New method.
838 (TYPE_BIT_STRIDE): Remove.
839 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
840
bb789949
SM
8412020-07-12 Simon Marchi <simon.marchi@efficios.com>
842
843 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
844 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
845 callers to use the equivalent accessor methods instead.
846
39498edb
SM
8472020-07-12 Simon Marchi <simon.marchi@efficios.com>
848
849 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
850 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
851 callers to use the equivalent accessor methods instead.
852
3b606f38
SM
8532020-07-12 Simon Marchi <simon.marchi@efficios.com>
854
855 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
856 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
857 to use dynamic_prop::kind.
858
064d9cb9
SM
8592020-07-12 Simon Marchi <simon.marchi@efficios.com>
860
861 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
862 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
863 to get the bound property's kind and check against
864 PROP_UNDEFINED.
865
5537ddd0
SM
8662020-07-12 Simon Marchi <simon.marchi@efficios.com>
867
868 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
869 all callers to use type::range_bounds followed by
870 dynamic_prop::{low,high}.
871
8c2e4e06
SM
8722020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
873
874 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
875 const_val, set_const_val, baton, set_locexpr, set_loclist,
876 set_addr_offset, variant_parts, set_variant_parts,
877 original_type, set_original_type>: New methods.
878 <kind>: Rename to...
879 <m_kind>: ... this. Update all users to use the new methods
880 instead.
881 <data>: Rename to...
882 <m_data>: ... this. Update all users to use the new methods
883 instead.
884
7c6f2712
SM
8852020-07-12 Simon Marchi <simon.marchi@efficios.com>
886
887 * gdbtypes.c (get_discrete_bounds): Return failure if
888 the range type's bounds are not both defined and constant
889 values.
890 (get_array_bounds): Update comment. Remove undefined bound check.
891
599088e3
SM
8922020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
893
894 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
895 the type::bounds method directly.
896
c4dfcb36
SM
8972020-07-12 Simon Marchi <simon.marchi@efficios.com>
898
899 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
900 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
901 are used to set the range type's bounds to use set_bounds.
902
0a278aa7
PW
9032020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
904
905 * exec.c (_initialize_exec): Update exec-file-mismatch help.
906
cce20f10
PA
9072020-07-10 Pedro Alves <pedro@palves.net>
908
909 * gdbthread.h (inferior_ref): Define.
910 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
911 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
912 * thread.c
913 (scoped_restore_current_thread::restore):
914 Adjust to gdb::ref_ptr.
915 (scoped_restore_current_thread::~scoped_restore_current_thread):
916 Remove manual decref handling.
917 (scoped_restore_current_thread::scoped_restore_current_thread):
918 Adjust to use
919 inferior_ref::new_reference/thread_info_ref::new_reference.
920 Incref the thread before calling get_frame_id instead of after.
921 Let TARGET_CLOSE_ERROR propagate.
922
6d7aa592
PA
9232020-07-10 Pedro Alves <pedro@palves.net>
924
925 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
926 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
927 NOT_AVAILABLE_ERROR.
928 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
929 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
930
b3e3a4c1
SM
9312020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
932 Pedro Alves <pedro@palves.net>
933
934 PR gdb/26199
935 * infrun.c (threads_are_resumed_pending_p): Delete.
936 (do_target_wait): Remove threads_are_executing and
937 threads_are_resumed_pending_p checks from the inferior_matches
938 lambda. Update comments.
939
d6cc5d98
PA
9402020-07-10 Pedro Alves <pedro@palves.net>
941
942 PR gdb/26199
943 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
944 executing threads.
945
7d3badc6
PA
9462020-07-10 Pedro Alves <pedro@palves.net>
947
948 PR gdb/26199
949 * infrun.c (handle_no_resumed): Handle multiple targets.
950
42bd97a6
PA
9512020-07-10 Pedro Alves <pedro@palves.net>
952
953 PR gdb/26199
954 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
955 target_is_async_p.
956
43667cc6
PA
9572020-07-10 Pedro Alves <pedro@palves.net>
958
959 PR gdb/26199
960 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
961 threads, not all threads.
962
96118d11
PA
9632020-07-10 Pedro Alves <pedro@palves.net>
964
965 PR gdb/26199
966 * remote.c (remote_target::open_1): Pass remote target pointer as
967 data to create_async_event_handler.
968 (remote_async_inferior_event_handler): Mark async event handler
969 before returning if the remote target still has either pending
970 events or unacknowledged notifications.
971
54904d81
JB
9722020-07-10 John Baldwin <jhb@FreeBSD.org>
973
974 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
975 declaration.
976 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
977 function.
978
f37e5866
JB
9792020-07-09 John Baldwin <jhb@FreeBSD.org>
980
981 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
982 inferior_ptid.
983
fc238d4a
JB
9842020-07-09 John Baldwin <jhb@FreeBSD.org>
985
986 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
987 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
988 AT_FREEBSD_PS_STRINGS.
989
6e2469ff
HD
9902020-07-08 Hannes Domani <ssbssa@yahoo.de>
991
992 * auto-load.c (auto_load_objfile_script_1): Convert drive part
993 of debugfile path on Windows.
994
d1076c41
JB
9952020-07-08 John Baldwin <jhb@FreeBSD.org>
996
997 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
998 argument to 'data'.
999
15f3b077
TT
10002020-07-08 Tom Tromey <tromey@adacore.com>
1001
1002 * ada-lang.c (ada_exception_message_1): Use read_memory.
1003
9fc501fd
AB
10042020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1005
1006 PR python/22748
1007 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1008 special handling for inline frames.
1009 * findvar.c (value_of_register_lazy): Skip inline frames when
1010 creating lazy register values.
1011 * frame.c (frame_id_computed_p): Delete definition.
1012 * frame.h (frame_id_computed_p): Delete declaration.
1013
64cb3757
AB
10142020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1015
1016 * NEWS: Mention additions to Python API.
1017 * python/py-arch.c (archpy_register_groups): New function.
1018 (arch_object_methods): Add 'register_groups' method.
1019 * python/py-registers.c (reggroup_iterator_object): New struct.
1020 (reggroup_object): New struct.
1021 (gdbpy_new_reggroup): New function.
1022 (gdbpy_reggroup_to_string): New function.
1023 (gdbpy_reggroup_name): New function.
1024 (gdbpy_reggroup_iter): New function.
1025 (gdbpy_reggroup_iter_next): New function.
1026 (gdbpy_new_reggroup_iterator): New function
1027 (gdbpy_initialize_registers): Register new types.
1028 (reggroup_iterator_object_type): Define new Python type.
1029 (gdbpy_reggroup_getset): New static global.
1030 (reggroup_object_type): Define new Python type.
1031 * python/python-internal.h
1032
0f767f94
AB
10332020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1034
1035 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1036 * python/py-arch.c (archpy_registers): New function.
1037 (arch_object_methods): Add 'registers' method.
1038 * python/py-registers.c: New file.
1039 * python/python-internal.h
1040 (gdbpy_new_register_descriptor_iterator): Declare.
1041 (gdbpy_initialize_registers): Declare.
1042 * python/python.c (do_start_initialization): Call
1043 gdbpy_initialize_registers.
1044 * NEWS: Mention additions to the Python API.
1045
87dbc774
AB
10462020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1047
1048 * NEWS: Mention new Python API method.
1049 * python/py-unwind.c (pending_framepy_architecture): New function.
1050 (pending_frame_object_methods): Add architecture method.
1051
3bc98c0c
AB
10522020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1053
1054 * gdbarch.c: Regenerate.
1055 * gdbarch.h: Regenerate.
1056 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1057 (gdbarch_data): Use internal_error for the case where
1058 deprecated_set_gdbarch_data was originally needed.
1059 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1060 and use passed in obstack.
1061 (libunwind_frame_set_descr): Should no longer get back NULL from
1062 gdbarch_data.
1063 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1064 type.
1065 * user-regs.c (user_regs_init): Update parameters, and use passed
1066 in obstack.
1067 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1068 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1069
d8cc8af6
TV
10702020-07-06 Tom de Vries <tdevries@suse.de>
1071
1072 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1073 End-Of-Sequence in lte_is_less_than.
1074 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1075 "gdb: Don't reorder line table entries too much when sorting".
1076
947f7597
TV
10772020-07-06 Tom de Vries <tdevries@suse.de>
1078
1079 PR tui/26205
1080 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1081
1e7c1b22
TV
10822020-07-05 Tom de Vries <tdevries@suse.de>
1083
1084 PR build/26187
1085 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1086 std::uncaught_exceptions instead of deprecated
1087 std::uncaught_exception.
1088
a36158ec
SM
10892020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1090
1091 * macroexp.h (macro_stringify): Return
1092 gdb::unique_xmalloc_ptr<char>.
1093 * macroexp.c (macro_stringify): Likewise.
1094 * macrotab.c (fixup_definition): Update.
1095
14d960c8
SM
10962020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1097
1098 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1099 (lex_one_token): Update.
1100 * macroexp.c (struct macro_buffer) <release>: Return
1101 gdb::unique_xmalloc_ptr<char>.
1102 (macro_stringify): Update.
1103 (macro_expand): Update.
1104 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1105 * macroexp.h (macro_expand_next): Likewise.
1106
211d5b1c
SM
11072020-07-02 Simon Marchi <simon.marchi@efficios.com>
1108
1109 * macroexp.h (macro_lookup_ftype): Remove.
1110 (macro_expand, macro_expand_once, macro_expand_next): Remove
1111 lookup function parameters, add scope parameter.
1112 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1113 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1114 * macroscope.h (standard_macro_lookup): Change parameter type
1115 to macro_scope.
1116 * macroscope.c (standard_macro_lookup): Likewise.
1117 * c-exp.y (lex_one_token): Update.
1118 * macrocmd.c (macro_expand_command): Likewise.
1119 (macro_expand_once_command): Likewise.
1120
b1a35af2
SM
11212020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1122
1123 * inf-loop.c (inferior_event_handler): Remove client_data param.
1124 * inf-loop.h (inferior_event_handler): Likewise.
1125 * infcmd.c (step_1): Adjust.
1126 * infrun.c (proceed): Adjust.
1127 (fetch_inferior_event): Remove client_data param.
1128 (infrun_async_inferior_event_handler): Adjust.
1129 * infrun.h (fetch_inferior_event): Remove `void *` param.
1130 * linux-nat.c (handle_target_event): Adjust.
1131 * record-btrace.c (record_btrace_handle_async_inferior_event):
1132 Adjust.
1133 * record-full.c (record_full_async_inferior_event_handler):
1134 Adjust.
1135 * remote.c (remote_async_inferior_event_handler): Adjust.
1136
1cdf9e33
TT
11372020-07-01 Tom Tromey <tom@tromey.com>
1138
1139 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1140 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1141
32c1e210
TT
11422020-07-01 Tom Tromey <tom@tromey.com>
1143
1144 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1145 tui_gen_win_info.
1146 (tui_win_info::make_window): Merge with
1147 tui_gen_win_info::make_window.
1148 (tui_win_info::make_visible): Move from tui_gen_win_info.
1149 * tui/tui-win.c (tui_win_info::max_width): Move from
1150 tui_gen_win_info.
1151 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1152 type.
1153 <window_factory>: Likewise.
1154 * tui/tui-layout.c (tui_win_info::resize): Move from
1155 tui_gen_win_info.
1156 (make_standard_window): Change return type.
1157 (get_locator_window, tui_get_window_by_name): Likewise.
1158 (tui_layout_window::apply): Remove a cast.
1159 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1160 (struct tui_win_info): Merge with tui_gen_win_info.
1161 (struct tui_gen_win_info): Remove.
1162
a30cb6da
TT
11632020-07-01 Tom Tromey <tom@tromey.com>
1164
1165 * tui/tui-stack.h (struct tui_locator_window): Derive from
1166 tui_win_info.
1167 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1168 <can_box>: New method.
1169
1eb2161f
TT
11702020-07-01 Tom Tromey <tom@tromey.com>
1171
1172 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1173
7134f2eb
TT
11742020-07-01 Tom Tromey <tom@tromey.com>
1175
1176 * tui/tui-regs.c (tui_data_window::display_registers_from)
1177 (tui_data_window::display_registers_from)
1178 (tui_data_window::first_data_item_displayed)
1179 (tui_data_window::delete_data_content_windows): Update.
1180 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1181 Remove.
1182 (tui_data_window::check_register_values): Update.
1183 (tui_data_item_window::rerender): Add parameters. Update.
1184 (tui_data_item_window::refresh_window): Remove.
1185 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1186 virtual.
1187 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1188 tui_gen_win_info.
1189 <refresh_window, max_height, min_height>: Remove.
1190 <rerender>: Add parameters.
1191 <x, y, visible>: New members.
1192 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1193 <m_item_width>: New member.
1194
22b7b041
TT
11952020-07-01 Tom Tromey <tom@tromey.com>
1196
1197 * tui/tui-regs.c (tui_data_window::show_register_group)
1198 (tui_data_window::check_register_values): Update.
1199 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1200 from item_no.
1201
c9753adb
TT
12022020-07-01 Tom Tromey <tom@tromey.com>
1203
1204 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1205 useless "if".
1206
9ab26b4a
TT
12072020-07-01 Tom Tromey <tom@tromey.com>
1208
1209 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1210 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1211
e555083f
TT
12122020-07-01 Tom Tromey <tom@tromey.com>
1213
1214 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1215 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1216 (struct tui_line_or_address): Move from tui-data.h.
1217 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1218 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1219 (tui_cmd_window, tui_source_window_base, tui_source_window)
1220 (tui_disasm_window): Don't declare.
1221 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1222 to tui-winsource.h.
1223 (SINGLE_KEY): Move to tui-stack.c.
1224
7a02bab7
TT
12252020-07-01 Tom Tromey <tom@tromey.com>
1226
1227 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1228 std::string.
1229 * tui/tui-regs.c (class tab_expansion_file): New.
1230 (tab_expansion_file::write): New method.
1231 (tui_register_format): Change return type. Use
1232 tab_expansion_file.
1233 (tui_get_register, tui_data_window::display_registers_from)
1234 (tui_data_item_window::rerender): Update.
1235 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1236 * tui/tui-io.c (tui_expand_tabs): Remove.
1237
ea68593b
TT
12382020-07-01 Tom Tromey <tom@tromey.com>
1239
1240 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1241
a8caed5d
FS
12422020-07-01 Fangrui Song <maskray@google.com>
1243
1244 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1245
9cdf9820
AKS
12462020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1247
1248 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1249 forms for DW_AT_associated and DW_AT_allocated attributes,
1250 which is already checked in function attr_to_dynamic_prop.
1251
a1520ad8
TT
12522020-06-30 Tom Tromey <tromey@adacore.com>
1253
1254 * dwarf2/read.c (quirk_rust_enum): Correctly call
1255 alloc_rust_variant for default-less enum.
1256
5ac58899
TT
12572020-06-30 Tom Tromey <tromey@adacore.com>
1258
1259 PR build/26183:
1260 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1261 gdb::to_string.
1262
19b187a9
SM
12632020-06-29 Simon Marchi <simon.marchi@efficios.com>
1264
1265 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1266 * gdbarch.h: Re-generate.
1267
cd4c4c07
TT
12682020-06-28 Tom Tromey <tom@tromey.com>
1269
1270 * command.h (cmd_types): Remove.
1271 (cmd_type): Don't declare.
1272 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1273 typedef.
1274 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1275 * cli/cli-decode.c (cmd_type): Remove.
1276
05779d57
PA
12772020-06-27 Pedro Alves <palves@redhat.com>
1278
1279 * fork-child.c (prefork_hook): Adjust.
1280 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1281 Delete.
1282 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1283 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1284 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1285 Remove declarations.
1286 (struct inferior) <set_tty, tty>: New methods.
1287 (struct inferior) <terminal>: Rename to ...
1288 (struct inferior) <m_terminal>: ... this and make private.
1289 * main.c (captured_main_1): Adjust.
1290 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1291 (mi_cmd_inferior_tty_show): Adjust.
1292 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1293 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1294
1776e3e5
NA
12952020-06-26 Nick Alcock <nick.alcock@oracle.com>
1296
1297 * configure.ac: Add --enable-libctf: handle --disable-static
1298 properly.
1299 * acinclude.m4: sinclude ../config/enable.m4.
1300 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1301 (LIBCTF): Substitute in.
1302 (CTF_DEPS): New, likewise.
1303 (CLIBS): libctf needs symbols from libbfd: move earlier.
1304 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1305 flags.
1306 * ctfread.c: Surround in ENABLE_LIBCTF.
1307 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1308 * configure: Regenerate.
1309 * config.in: Likewise.
1310
58373b80
SM
13112020-06-25 Simon Marchi <simon.marchi@efficios.com>
1312
1313 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1314
277474ee
SM
13152020-06-25 Simon Marchi <simon.marchi@efficios.com>
1316
1317 * inferior.h (struct inferior) <terminal>: Change type to
1318 gdb::unique_xmalloc_ptr<char>.
1319 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1320 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1321 field, adjust to unique pointer.
1322 (get_inferior_io_terminal): Adjust to unique pointer.
1323
6d74da72
AB
13242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1325
1326 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1327 registers, not just the known core set of registers.
1328
2e52d038
AB
13292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1330
1331 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1332 fflags, frm, and fcsr registers.
1333 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1334 restore groups.
1335 (riscv_tdesc_unknown_reg): New function.
1336 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1337 tdesc_use_registers.
1338 * riscv-tdep.h (struct gdbarch_tdep): Add
1339 unknown_csrs_first_regnum, unknown_csrs_count,
1340 duplicate_fflags_regnum, duplicate_frm_regnum, and
1341 duplicate_fcsr_regnum fields.
1342
be64fd07
AB
13432020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1344
1345 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1346 callback, use the callback (when not null) to help number unknown
1347 registers.
1348 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1349 (tdesc_use_registers): Add extra parameter to declaration.
1350
3b9fce96
AB
13512020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1352
1353 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1354 in the file.
1355 (class riscv_pending_register_alias): Likewise.
1356 (riscv_register_feature::register_info): Change 'required_p' field
1357 to 'required', and change its type. Add 'check' member function.
1358 (riscv_register_feature::register_info::check): Define new member
1359 function.
1360 (riscv_xreg_feature): Change initialisation of 'required' field.
1361 (riscv_freg_feature): Likewise.
1362 (riscv_virtual_feature): Likewise.
1363 (riscv_csr_feature): Likewise.
1364 (riscv_check_tdesc_feature): Take extra parameter, the csr
1365 tdesc_feature, rewrite the function to use the new
1366 riscv_register_feature::register_info::check function.
1367 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1368
865bad26
AB
13692020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1370
1371 * features/Makefile: Remove all references to the deleted files
1372 below.
1373 * features/riscv/32bit-csr.c: Deleted.
1374 * features/riscv/32bit-csr.xml: Deleted.
1375 * features/riscv/64bit-csr.c: Deleted.
1376 * features/riscv/64bit-csr.xml: Deleted.
1377 * features/riscv/rebuild-csr-xml.sh: Deleted.
1378
ed69cbc8
AB
13792020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1380
1381 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1382 whitespace error for declaration of names member variable.
1383 (struct riscv_register_feature): Add new prefer_first_name member
1384 variable, and fix whitespace error in declaration of registers.
1385 (riscv_xreg_feature): Initialize prefer_first_name field.
1386 (riscv_freg_feature): Likewise.
1387 (riscv_virtual_feature): Likewise.
1388 (riscv_csr_feature): Likewise.
1389 (riscv_register_name): Expand on comments. Remove register name
1390 modifications for CSR and virtual registers.
1391
4445e8f5
AB
13922020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1393
1394 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1395 errors.
1396
767a879e
AB
13972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1398
1399 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1400 riscv-opc.h.
1401 (class riscv_pending_register_alias): New class.
1402 (riscv_check_tdesc_feature): Take vector of pending aliases and
1403 populate it as appropriate.
1404 (riscv_setup_register_aliases): Delete.
1405 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1406 to riscv_check_tdesc_feature in all cases. Use the vector to
1407 create the register aliases.
1408
bb6e55f3
RO
14092020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1410
1411 * sol2-tdep.c (sol2_static_transform_name): Remove.
1412 (sol2_init_abi): Don't register it.
1413 * gdbarch.sh (static_transform_name): Remove.
1414 * gdbarch.c, gdbarch.h: Regenerate.
1415
1416 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1417 gdbarch_static_transform_name.
1418 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1419 * stabsread.c (define_symbol) <'X'>: Remove.
1420 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1421 handling.
1422 <'V'>: Likewise.
1423 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1424 <'S'>: Remove call to gdbarch_static_transform_name.
1425
c6d36836
RO
14262020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1427
1428 * procfs.c (procfs_pre_trace): New function.
1429 (procfs_target::create_inferior): Pass it to fork_inferior.
1430
a7e6196b
RO
14312020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1432
1433 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1434 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1435 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1436 sol2-tdep.o, sparc-sol2-tdep.o.
1437 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1438 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1439 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1440 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1441
d412e696
RO
14422020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1443
1444 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1445 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1446 Call sol2_init_abi.
1447 Remove calls to set_gdbarch_skip_solib_resolver,
1448 set_gdbarch_core_pid_to_str.
1449 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1450 (i386_sol2_static_transform_name): Remove.
1451 (i386_sol2_init_abi): Call sol2_init_abi.
1452 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1453 set_gdbarch_static_transform_name,
1454 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1455 Use sol2_sigtramp_p.
1456 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1457 (sol2_sigtramp_p): New function.
1458 (sol2_static_transform_name): New function.
1459 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1460 (sol2_init_abi): New function.
1461 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1462 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1463 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1464 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1465 (sparc_sol2_static_transform_name): Remove.
1466 (sparc32_sol2_init_abi): Call sol2_init_abi.
1467 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1468 set_gdbarch_static_transform_name,
1469 set_gdbarch_skip_solib_resolver,
1470 set_gdbarch_core_pid_to_str.
1471 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1472 (sparc_sol2_static_transform_name): Remove
1473 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1474 call sol2_sigtramp_p.
1475 (sparc64_sol2_init_abi): Call sol2_init_abi.
1476 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1477 set_gdbarch_static_transform_name,
1478 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1479
a8654e7d
PW
14802020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1481
1482 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1483 * exec.c (validate_exec_file): If from_tty, set both
1484 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1485 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1486 and from_tty, unconditionally ask a confirmation.
1487
caa7fd04
AB
14882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1489
1490 * target-descriptions.c (tdesc_architecture_name): Protect against
1491 NULL pointer dereference.
1492 (maint_print_xml_tdesc_cmd): New function.
1493 (_initialize_target_descriptions): Register new 'maint print
1494 xml-tdesc' command and give it the filename completer.
1495 * NEWS: Mention new 'maint print xml-tdesc' command.
1496
fbf42f4e
AB
14972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1498
1499 * target-descriptions.c (class tdesc_compatible_info): New class.
1500 (struct target_desc): Change type of compatible vector.
1501 (tdesc_compatible_p): Update for change in type of
1502 target_desc::compatible.
1503 (tdesc_compatible_info_list): New function.
1504 (tdesc_compatible_info_arch_name): New function.
1505 (tdesc_add_compatible): Update for change in type of
1506 target_desc::compatible.
1507 (print_c_tdesc::visit_pre): Likewise.
1508
20821f4e
AB
15092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1510
1511 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1512 whitespace to underscore.
1513 (maint_print_c_tdesc_cmd): Use fake filename for target
1514 descriptions that came from the target.
1515 (_initialize_target_descriptions): Add filename command completion
1516 for 'maint print c-tdesc'.
1517
1fb5ee62
SM
15182020-06-23 Simon Marchi <simon.marchi@efficios.com>
1519
1520 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1521 lines.
1522
fc3ecb3e
SM
15232020-06-23 Simon Marchi <simon.marchi@efficios.com>
1524
1525 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1526 lines.
1527 (dwarf2_find_location_expression): Likewise.
1528 (call_site_parameter_matches): Likewise.
1529 (dwarf2_compile_expr_to_ax): Likewise.
1530 (disassemble_dwarf_expression): Likewise.
1531 (loclist_describe_location): Likewise.
1532
236ef034
PA
15332020-06-23 Pedro Alves <palves@redhat.com>
1534
1535 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1536 progspace-and-thread.h. Include scoped-mock-context.h instead.
1537 (register_to_value_test): Use scoped_mock_context.
1538 * regcache.c: Include "scoped-mock-context.h".
1539 (cooked_read_test): Don't error out if a target is already pushed.
1540 Use scoped_mock_context. Adjust.
1541 * scoped-mock-context.h: New file.
1542
39e7ecca
AB
15432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1544
1545 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1546 initializer.
1547 (ada_language::is_string_type_p): New member function.
1548 * c-lang.c (c_language_data): Delete la_is_string_type_p
1549 initializer.
1550 (cplus_language_data): Likewise.
1551 (asm_language_data): Likewise.
1552 (minimal_language_data): Likewise.
1553 * d-lang.c (d_language_data): Likewise.
1554 * f-lang.c (f_is_string_type_p): Delete function, implementation
1555 moved to f_language::is_string_type_p.
1556 (f_language_data): Delete la_is_string_type_p initializer.
1557 (f_language::is_string_type_p): New member function,
1558 implementation from f_is_string_type_p.
1559 * go-lang.c (go_is_string_type_p): Delete function, implementation
1560 moved to go_language::is_string_type_p.
1561 (go_language_data): Delete la_is_string_type_p initializer.
1562 (go_language::is_string_type_p): New member function,
1563 implementation from go_is_string_type_p.
1564 * language.c (language_defn::is_string_type_p): Define new member
1565 function.
1566 (default_is_string_type_p): Make static, add comment copied from
1567 header file.
1568 (unknown_language_data): Delete la_is_string_type_p initializer.
1569 (unknown_language::is_string_type_p): New member function.
1570 (auto_language_data): Delete la_is_string_type_p initializer.
1571 (auto_language::is_string_type_p): New member function.
1572 * language.h (language_data): Delete la_is_string_type_p field.
1573 (language_defn::is_string_type_p): Declare new function.
1574 (default_is_string_type_p): Delete desclaration, move comment to
1575 definition.
1576 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1577 moved to m2_language::is_string_type_p.
1578 (m2_language_data): Delete la_is_string_type_p initializer.
1579 (m2_language::is_string_type_p): New member function,
1580 implementation from m2_is_string_type_p.
1581 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1582 initializer.
1583 * opencl-lang.c (opencl_language_data): Likewise.
1584 * p-lang.c (pascal_is_string_type_p): Delete function,
1585 implementation moved to pascal_language::is_string_type_p.
1586 (pascal_language_data): Delete la_is_string_type_p initializer.
1587 (pascal_language::is_string_type_p): New member function,
1588 implementation from pascal_is_string_type_p.
1589 * rust-lang.c (rust_is_string_type_p): Delete function,
1590 implementation moved to rust_language::is_string_type_p.
1591 (rust_language_data): Delete la_is_string_type_p initializer.
1592 (rust_language::is_string_type_p): New member function,
1593 implementation from rust_is_string_type_p.
1594 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1595 is_string_type_p.
1596
4ffc13fb
AB
15972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1598
1599 * ada-lang.c (ada_language_data): Delete la_print_typedef
1600 initializer.
1601 (ada_language::print_typedef): New member function.
1602 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1603 (cplus_language_data): Likewise.
1604 (asm_language_data): Likewise.
1605 (minimal_language_data): Likewise.
1606 * d-lang.c (d_language_data): Likewise.
1607 * f-lang.c (f_language_data): Likewise.
1608 (f_language::print_typedef): New member function.
1609 * go-lang.c (go_language_data): Delete la_print_typedef
1610 initializer.
1611 * language.c (language_defn::print_typedef): Define member
1612 function.
1613 (unknown_language_data): Delete la_print_typedef initializer.
1614 (unknown_language::print_typedef): New member function.
1615 (auto_language_data): Delete la_print_typedef initializer.
1616 (auto_language::print_typedef): New member function.
1617 * language.h (language_data): Delete la_print_typedef field.
1618 (language_defn::print_typedef): Declare new member function.
1619 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1620 (default_print_typedef): Delete declaration.
1621 * m2-lang.c (m2_language_data): Delete la_print_typedef
1622 initializer.
1623 (m2_language::print_typedef): New member function.
1624 * objc-lang.c (objc_language_data): Delete la_print_typedef
1625 initializer.
1626 * opencl-lang.c (opencl_language_data): Likewise.
1627 * p-lang.c (pascal_language_data): Likewise.
1628 (pascal_language::print_typedef): New member function.
1629 * rust-lang.c (rust_print_typedef): Delete function,
1630 implementation moved to rust_language::print_typedef.
1631 (rust_language): Delete la_print_typedef initializer.
1632 (rust_language::print_typedef): New member function,
1633 implementation from rust_print_typedef.
1634 * typeprint.c (default_print_typedef): Delete.
1635
d711ee67
AB
16362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1637
1638 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1639 (ada_language::printstr): New member function.
1640 * c-lang.c (c_language_data): Delete la_printstr initializer.
1641 (cplus_language_data): Likewise.
1642 (asm_language_data): Likewise.
1643 (minimal_language_data): Likewise.
1644 * d-lang.c (d_language_data): Likewise.
1645 * f-lang.c (f_printstr): Rename to f_language::printstr.
1646 (f_language_data): Delete la_printstr initializer.
1647 (f_language::printstr): New member function, implementation from
1648 f_printstr.
1649 * go-lang.c (go_language_data): Delete la_printstr initializer.
1650 * language.c (language_defn::printstr): Define new member
1651 function.
1652 (unk_lang_printstr): Delete.
1653 (unknown_language_data): Delete la_printstr initializer.
1654 (unknown_language::printstr): New member function.
1655 (auto_language_data): Delete la_printstr initializer.
1656 (auto_language::printstr): New member function.
1657 * language.h (language_data): Delete la_printstr field.
1658 (language_defn::printstr): Declare new member function.
1659 (LA_PRINT_STRING): Update call to printstr.
1660 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1661 (m2_language_data): Delete la_printstr initializer.
1662 (m2_language::printstr): New member function, implementation from
1663 m2_printstr.
1664 * objc-lang.c (objc_language_data): Delete la_printstr
1665 initializer.
1666 * opencl-lang.c (opencl_language_data): Likewise.
1667 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1668 (pascal_language_data): Delete la_printstr initializer.
1669 (pascal_language::printstr): New member function, implementation
1670 from pascal_printstr.
1671 * p-lang.h (pascal_printstr): Delete declaration.
1672 * rust-lang.c (rust_printstr): Update header comment.
1673 (rust_language_data): Delete la_printstr initializer.
1674 (rust_language::printstr): New member function.
1675
52b50f2c
AB
16762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1677
1678 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1679 (ada_language::printchar): New member function.
1680 * c-lang.c (c_language_data): Delete la_printchar initializer.
1681 (cplus_language_data): Likewise.
1682 (asm_language_data): Likewise.
1683 (minimal_language_data): Likewise.
1684 * d-lang.c (d_language_data): Likewise.
1685 * f-lang.c (f_printchar): Rename to f_language::printchar.
1686 (f_language_data): Delete la_printchar initializer.
1687 (f_language::printchar): New member function, implementation from
1688 f_printchar.
1689 * go-lang.c (go_language_data): Delete la_printchar initializer.
1690 * language.c (unk_lang_printchar): Delete.
1691 (language_defn::printchar): Define new member function.
1692 (unknown_language_data): Delete la_printchar initializer.
1693 (unknown_language::printchar): New member function.
1694 (auto_language_data): Delete la_printchar initializer.
1695 (auto_language::printchar): New member function.
1696 * language.h (language_data): Delete la_printchar field.
1697 (language_defn::printchar): Declare new member function.
1698 (LA_PRINT_CHAR): Update call to printchar.
1699 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1700 (m2_language::printchar): New member function.
1701 * objc-lang.c (objc_language_data): Delete la_printchar
1702 initializer.
1703 * opencl-lang.c (opencl_language_data): Likewise.
1704 * p-lang.c (pascal_language_data): Delete la_printchar
1705 initializer.
1706 (pascal_language::printchar): New member function.
1707 * rust-lang.c (rust_printchar): Rename to
1708 rust_language::printchar.
1709 (rust_language_data): Delete la_printchar initializer.
1710 (rust_language::printchar): New member function, implementation
1711 from rust_printchar.
1712
ec8cec5b
AB
17132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1714
1715 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1716 (ada_language_data): Delete la_emitchar initializer.
1717 (ada_language::emitchar): New member function, implementation from
1718 emit_char.
1719 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1720 (cplus_language_data): Likewise.
1721 (asm_language_data): Likewise.
1722 (minimal_language_data): Likewise.
1723 * d-lang.c (d_language_data): Likewise.
1724 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1725 (f_language_data): Delete la_emitchar initializer.
1726 (f_language::emitchar): New member function, implementation from
1727 f_emit_char.
1728 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1729 * language.c (unk_lang_emit_char): Delete.
1730 (language_defn::emitchar): New member function definition.
1731 (unknown_language_data): Delete la_emitchar initializer.
1732 (unknown_language::emitchar): New member function.
1733 (auto_language_data): Delete la_emitchar initializer.
1734 (auto_language::emitchar): New member function.
1735 * language.h (language_data): Delete la_emitchar field.
1736 (language_defn::emitchar): New member field declaration.
1737 (LA_EMIT_CHAR): Update call to emitchar.
1738 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1739 (m2_language_data): Delete la_emitchar initializer.
1740 (m2_language::emitchar): New member function, implementation from
1741 m2_emit_char.
1742 * objc-lang.c (objc_language_data): Delete la_emitchar
1743 initializer.
1744 * opencl-lang.c (opencl_language_data): Likewise.
1745 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1746 (pascal_language_data): Delete la_emitchar initializer.
1747 (pascal_language::emitchar): New member function, implementation
1748 from pascal_emit_char.
1749 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1750 (rust_language_data): Delete la_emitchar initializer.
1751 (rust_language::emitchar): New member function, implementation
1752 from rust_emitchar.
1753
1bf9c363
AB
17542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1755
1756 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1757 (ada_language_data): Delete la_post_parser initializer.
1758 (ada_language::post_parser): New member function.
1759 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1760 (cplus_language_data): Likewise.
1761 (asm_language_data): Likewise.
1762 (minimal_language_data): Likewise.
1763 * d-lang.c (d_language_data): Likewise.
1764 * f-lang.c (f_language_data): Likewise.
1765 * go-lang.c (go_language_data): Likewise.
1766 * language.c (unknown_language_data): Likewise.
1767 (auto_language_data): Likewise.
1768 * language.h (language_data): Delete la_post_parser field.
1769 (language_defn::post_parser): New member function.
1770 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1771 * objc-lang.c (objc_language_data): Likewise.
1772 * opencl-lang.c (opencl_language_data): Likewise.
1773 * p-lang.c (pascal_language_data): Likewise.
1774 * parse.c (parse_exp_in_context): Update call to post_parser.
1775 (null_post_parser): Delete definition.
1776 * parser-defs.h (null_post_parser): Delete declaration.
1777 * rust-lang.c (rust_language_data): Delete la_post_parser
1778 initializer.
1779
87afa652
AB
17802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1781
1782 * ada-lang.c (parse): Rename to ada_language::parser.
1783 (ada_language_data): Delete la_parser initializer.
1784 (ada_language::parser): New member function, implementation from
1785 parse.
1786 * c-lang.c (c_language_data): Delete la_parser initializer.
1787 (cplus_language_data): Likewise.
1788 (asm_language_data): Likewise.
1789 (minimal_language_data): Likewise.
1790 * d-lang.c (d_language_data): Likewise.
1791 (d_language::parser): New member function.
1792 * f-lang.c (f_language_data): Delete la_parser initializer.
1793 (f_language::parser): New member function.
1794 * go-lang.c (go_language_data): Delete la_parser initializer.
1795 (go_language::parser): New member function.
1796 * language.c (unk_lang_parser): Delete.
1797 (language_defn::parser): Define new member function.
1798 (unknown_language_data): Delete la_parser initializer.
1799 (unknown_language::parser): New member function.
1800 (auto_language_data): Delete la_parser initializer.
1801 (auto_language::parser): New member function.
1802 * language.h (language_data): Delete la_parser field.
1803 (language_defn::parser): Declare new member function.
1804 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1805 (m2_language::parser): New member function.
1806 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1807 * opencl-lang.c (opencl_language_data): Likewise.
1808 * p-lang.c (pascal_language_data): Likewise.
1809 (pascal_language::parser): New member function.
1810 * parse.c (parse_exp_in_context): Update call to parser.
1811 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1812 (rust_language::parser): New member function.
1813
37825800
AB
18142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1815
1816 * top.c (print_gdb_configuration): Print --with-python-libdir
1817 configuration value.
1818
5b860c93
PW
18192020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1820
1821 * NEWS: Mention change to the alias command.
1822
cf00cd6f
PW
18232020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1824
1825 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1826 (alias_command_completer)
1827 (make_alias_options_def_group): New functions.
1828 (alias_opts, alias_option_defs): New struct and array.
1829 (alias_usage_error): Update usage.
1830 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1831 Use option framework.
1832 (_initialize_cli_cmds): Update alias command help.
1833 Update aliases command help.
1834 (show_user):
1835 Add NULL for new default_args lookup_cmd argument.
1836 (valid_command_p): Rename to validate_aliased_command.
1837 Add NULL for new default_args lookup_cmd argument. Verify that the
1838 aliased_command has no default args.
1839 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1840 (lookup_cmd_1, lookup_cmd): New argument default_args.
1841 (add_alias_cmd):
1842 Add NULL for new default_args lookup_cmd argument.
1843 (print_help_for_command): Show default args under the layout
1844 alias some_alias = some_aliased_cmd some_alias_default_arg.
1845 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1846 xfree default_args in destructor.
1847 * cli/cli-script.c (process_next_line, do_define_command):
1848 Add NULL for new default_args lookup_cmd argument.
1849 * command.h: Declare new default_args argument in lookup_cmd
1850 and lookup_cmd_1.
1851 * completer.c (complete_line_internal_1):
1852 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1853 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1854 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1855 Likewise.
1856 * infcmd.c (_initialize_infcmd): Likewise.
1857 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1858 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1859 * python/py-param.c (add_setshow_generic): Likewise.
1860 * remote.c (_initialize_remote): Likewise.
1861 * top.c (execute_command): Prepend default_args if command has some.
1862 (set_verbose):
1863 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1864 * tracepoint.c (validate_actionline, encode_actions_1):
1865 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1866
bd920864
TBA
18672020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1868
1869 * jit.c (jit_read_descriptor): Use bool as the return type.
1870 (jit_breakpoint_re_set_internal): Use bool as the return type.
1871 Invert the return value logic; return true if the jit breakpoint
1872 has been successfully initialized.
1873 (jit_inferior_init): Update the call to
1874 jit_breakpoint_re_set_internal.
1875
f8098322
PA
18762020-06-22 Pedro Alves <palves@redhat.com>
1877
1878 PR gdb/25939
1879 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1880 Use the current inferior instead. Don't return
1881 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1882 wait again.
1883 * sol-thread.c (sol_thread_target::wait): Don't reference
1884 inferior_ptid.
1885 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1886 (sol_update_thread_list_callback): Use the current inferior's pid
1887 instead of inferior_ptid.
1888
196535a6
RO
18892020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1890
1891 * procfs.c: Cleanup many comments.
1892
1893 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1894 (AFTER_WATCHFLAG): Replace by value.
1895
1896 (MAIN_PROC_NAME_FORMAT): Inline ...
1897 (create_procinfo): ... here.
1898
1899 (procfs_debug_inferior): Remove SYS_exec handling.
1900 (syscall_is_exec): Likewise.
1901 (procfs_set_exec_trap): Likewise.
1902
1903 (syscall_is_lwp_exit): Inline in callers.
1904 (syscall_is_exit): Likewise.
1905 (syscall_is_exec): Likewise.
1906 (syscall_is_lwp_create): Likewise.
1907
1908 (invalidate_cache): Remove #if 0 code.
1909
1910 (make_signal_thread_runnable): Remove.
1911 (procfs_target::resume): Remove #if 0 code.
1912
cf6f3e86
RO
19132020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1914
1915 PR gdb/25939
1916 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1917 call ...
1918 (procfs_target::create_inferior): ... here.
1919
48e9cc84
PW
19202020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1921
1922 * exec.c (validate_exec_file): Ensure the build-id is up to
1923 date by calling reopen_exec_file (that checks file timestamp
1924 to decide to re-read the file).
1925
3922b302
PA
19262020-06-18 Pedro Alves <palves@redhat.com>
1927
1928 PR gdb/25412
1929 * gdbthread.h (delete_thread, delete_thread_silent)
1930 (find_thread_ptid): Update comments.
1931 * thread.c (current_thread_): New global.
1932 (is_current_thread): Move higher, and reimplement.
1933 (inferior_thread): Reimplement.
1934 (set_thread_exited): Use bool. Add assertions.
1935 (add_thread_silent): Simplify thread-reuse handling by always
1936 calling delete_thread.
1937 (delete_thread): Remove intro comment.
1938 (find_thread_ptid): Skip exited threads.
1939 (switch_to_thread_no_regs): Write to current_thread_.
1940 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1941 INFERIOR_PTID. Clear current_thread_.
1942
6dbdab44
PA
19432020-06-18 Pedro Alves <palves@redhat.com>
1944
1945 * aix-thread.c (pd_update): Use switch_to_thread.
1946
2da4b788
PA
19472020-06-18 Pedro Alves <palves@redhat.com>
1948
1949 * ravenscar-thread.c (ravenscar_thread_target): Update.
1950 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1951 (ravenscar_thread_target::add_active_thread): ... this. Don't
1952 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1953 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1954
50838d1b
PA
19552020-06-18 Pedro Alves <palves@redhat.com>
1956
1957 * nat/windows-nat.c (current_windows_thread): Remove.
1958 * nat/windows-nat.h (current_windows_thread): Remove.
1959 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1960 Adjust.
1961 (display_selectors): Adjust to fetch the current
1962 windows_thread_info based on inferior_ptid.
1963 (fake_create_process): No longer write to current_windows_thread.
1964 (windows_nat_target::get_windows_debug_event):
1965 Don't set inferior_ptid or current_windows_thread.
1966 (windows_nat_target::wait): Adjust to not rely on
1967 current_windows_thread.
1968 (do_initial_windows_stuff): Now a method of windows_nat_target.
1969 Switch to the last_ptid thread.
1970 (windows_nat_target::attach): Adjust.
1971 (windows_nat_target::detach): Use switch_to_no_thread instead of
1972 writing to inferior_ptid directly.
1973 (windows_nat_target::create_inferior): Adjust.
1974
31ce04e9
PA
19752020-06-18 Pedro Alves <palves@redhat.com>
1976
1977 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1978
1ee1a363
PA
19792020-06-18 Pedro Alves <palves@redhat.com>
1980
1981 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1982 after creating it, instead of writing to inferior_ptid. Don't
1983 write to inferior_ptid.
1984
6d350754
PA
19852020-06-18 Pedro Alves <palves@redhat.com>
1986
1987 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1988
5d971d48
PA
19892020-06-18 Pedro Alves <palves@redhat.com>
1990
1991 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1992 it, instead of writing to inferior_ptid.
1993
86e57d1b
PA
19942020-06-18 Pedro Alves <palves@redhat.com>
1995
1996 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1997 to inferior_ptid.
1998
f2e1c129
PA
19992020-06-18 Pedro Alves <palves@redhat.com>
2000
2001 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2002 instead of writing to inferior_ptid directly.
2003
60db1b85
PA
20042020-06-18 Pedro Alves <palves@redhat.com>
2005
2006 * corelow.c (core_target::close): Use switch_to_no_thread instead
2007 of writing to inferior_ptid directly.
2008 (add_to_thread_list, core_target_open): Use switch_to_thread
2009 instead of writing to inferior_ptid directly.
2010
fe7d6a8d
PA
20112020-06-18 Pedro Alves <palves@redhat.com>
2012
2013 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2014 inferior_ptid.
2015 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2016 inferior_ptid.
2017 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2018 inferior_ptid directly.
2019 (darwin_nat_target::init_thread_list): Switch to thread, instead
2020 of writing to inferior_ptid.
2021 (darwin_nat_target::attach): Don't write to inferior_ptid.
2022 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2023
975f8708
PA
20242020-06-18 Pedro Alves <palves@redhat.com>
2025
2026 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2027 thread.
2028 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2029 Instead use switch_to_thread.
2030 (gnu_nat_target::detach): Use switch_to_no_thread
2031 instead of writing to inferior_ptid directly. Used passed-in
2032 inferior instead of looking up the inferior by pid.
2033
1a204730
PA
20342020-06-18 Pedro Alves <palves@redhat.com>
2035
2036 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2037 inferior_ptid.
2038
ebe84f23
PA
20392020-06-18 Pedro Alves <palves@redhat.com>
2040
2041 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2042 inferior_ptid.
2043 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2044 thread.
2045 (nto_procfs_target::detach): Avoid referencing
2046 inferior_ptid. Use switch_to_no_thread instead of writing to
2047 inferior_ptid directly.
2048 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2049 instead of writing to inferior_ptid directly.
2050 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2051 to thread.
2052
191f02e5
PA
20532020-06-18 Pedro Alves <palves@redhat.com>
2054
2055 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2056 after creating it, instead of writing to inferior_ptid.
2057 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2058 to inferior_ptid directly.
2059 (gdbsim_target::wait): Don't write to inferior_ptid.
2060
0ac55310
PA
20612020-06-18 Pedro Alves <palves@redhat.com>
2062
2063 * remote.c (remote_target::remote_notice_new_inferior): Use
2064 switch_to_thread instead of writing to inferior_ptid directly.
2065 (remote_target::add_current_inferior_and_thread): Use
2066 switch_to_no_thread instead of writing to inferior_ptid directly.
2067 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2068 and switch_to_thread instead of using set_current_inferior or
2069 writing to inferior_ptid directly.
2070
5233f39b
PA
20712020-06-18 Pedro Alves <palves@redhat.com>
2072
2073 * tracectf.c (ctf_target_open): Switch to added thread instead of
2074 writing to inferior_ptid directly.
2075 (ctf_target::close): Use switch_to_no_thread instead of writing to
2076 inferior_ptid directly.
2077
087e161b
PA
20782020-06-18 Pedro Alves <palves@redhat.com>
2079
2080 * tracefile-tfile.c (tfile_target_open): Don't write to
2081 inferior_ptid directly, instead switch to added thread.
2082 (tfile_target::close): Use switch_to_no_thread instead of writing
2083 to inferior_ptid directly.
2084
7fb43e53
PA
20852020-06-18 Pedro Alves <palves@redhat.com>
2086
2087 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2088 (procfs_target::detach): Use switch_to_no_thread
2089 instead of writing to inferior_ptid directly.
2090 (do_attach): Change return type to void. Switch to the added
2091 thread.
2092 (procfs_target::create_inferior): Switch to the added thread.
2093 (procfs_do_thread_registers): Don't write to inferior_ptid.
2094
18493a00
PA
20952020-06-18 Pedro Alves <palves@redhat.com>
2096
2097 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2098 of writing to inferior_ptid.
2099 (scoped_restore_exited_inferior): Delete.
2100 (handle_vfork_child_exec_or_exit): Simplify using
2101 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2102 instead of writing to inferior_ptid.
2103 (THREAD_STOPPED_BY): Delete.
2104 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2105 (thread_stopped_by_hw_breakpoint): Delete.
2106 (save_waitstatus): Use
2107 scoped_restore_current_thread+switch_to_thread, and call
2108 target_stopped_by_watchpoint instead of
2109 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2110 instead of thread_stopped_by_sw_breakpoint, and
2111 target_stopped_by_hw_breakpoint instead of
2112 thread_stopped_by_hw_breakpoint.
2113 (handle_inferior_event)
2114 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2115 inferior_ptid directly, nor
2116 set_current_inferior/set_current_program_space. Use
2117 switch_to_thread / switch_to_inferior_no_thread instead.
2118
a0776b13
PA
21192020-06-18 Pedro Alves <palves@redhat.com>
2120
2121 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2122 instead of writing to inferior_ptid.
2123
6155c136
PA
21242020-06-18 Pedro Alves <palves@redhat.com>
2125
2126 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2127 added thread.
2128 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2129 to the added thread.
2130 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2131 instead of writing to inferior_ptid.
2132
c5316fc6
PA
21332020-06-18 Pedro Alves <palves@redhat.com>
2134
2135 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2136 (register_to_value_test): Mock a program_space too. Heap-allocate
2137 the address space. Don't write to inferior_ptid. Use
2138 switch_to_thread instead.
2139
8df01799
PA
21402020-06-18 Pedro Alves <palves@redhat.com>
2141
2142 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2143 Delete.
2144 (find_signalled_thread()): New, factored out from
2145 linux_make_corefile_notes and adjusted to handle exited threads.
2146 (linux_make_corefile_notes): Adjust to use the new
2147 find_signalled_thread.
2148
41792d68
PA
21492020-06-18 Pedro Alves <palves@redhat.com>
2150
2151 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2152 of saving/restoring inferior_ptid.
2153
612f258a
TT
21542020-06-17 Tom Tromey <tom@tromey.com>
2155
2156 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2157 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2158 declare.
2159 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2160
efb763a5
SM
21612020-06-15 Simon Marchi <simon.marchi@efficios.com>
2162
2163 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2164 of partial symtabs.
2165
2951f6c0
SM
21662020-06-17 Simon Marchi <simon.marchi@efficios.com>
2167
2168 * regformats/reg-arm.dat: Remove.
2169 * regformats/reg-bfin.dat: Remove.
2170 * regformats/reg-cris.dat: Remove.
2171 * regformats/reg-crisv32.dat: Remove.
2172 * regformats/reg-m32r.dat: Remove.
2173 * regformats/reg-tilegx.dat: Remove.
2174 * regformats/reg-tilegx32.dat: Remove.
2175
7d458ea5
SM
21762020-06-17 Simon Marchi <simon.marchi@efficios.com>
2177
2178 * features/Makefile (WHICH): Remove arm files.
2179 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2180 * regformats/arm/arm-with-neon.dat: Remove.
2181 * regformats/arm/arm-with-vfpv2.dat: Remove.
2182 * regformats/arm/arm-with-vfpv3.dat: Remove.
2183
3af96c0d
SM
21842020-06-17 Simon Marchi <simon.marchi@efficios.com>
2185
2186 * features/Makefile (XMLTOC): Remove rx.xml.
2187
b25e22fd
PA
21882020-06-17 Pedro Alves <palves@redhat.com>
2189
2190 * gdbthread.h (thread_control_state) <trap_expected> Update
2191 comments.
2192
a78a19b1
AB
21932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2194
2195 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2196 ada_language::lookup_symbol_nonlocal.
2197 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2198 (ada_language::lookup_symbol_nonlocal): New member function,
2199 implementation from ada_lookup_symbol_nonlocal.
2200 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2201 initializer.
2202 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2203 initializer.
2204 (cplus_language::lookup_symbol_nonlocal): New member function.
2205 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2206 (minimal_language_data) Likewise.
2207 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2208 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2209 initializer.
2210 (d_language::lookup_symbol_nonlocal): New member function.
2211 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2212 initializer.
2213 (f_language::lookup_symbol_nonlocal): New member function.
2214 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2215 initializer.
2216 * language.c (unknown_language_data): Likewise.
2217 (auto_language_data): Likewise.
2218 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2219 field.
2220 (language_defn::lookup_symbol_nonlocal): New member function.
2221 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2222 initializer.
2223 * objc-lang.c (objc_language_data): Likewise.
2224 * opencl-lang.c (opencl_language_data): Likewise.
2225 * p-lang.c (pascal_language_data): Likewise.
2226 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2227 rust_language::lookup_symbol_nonlocal.
2228 (rust_language_data): Delete la_lookup_symbol_nonlocal
2229 initializer.
2230 (rust_language::lookup_symbol_nonlocal): New member function,
2231 implementation from rust_lookup_symbol_nonlocal.
2232 * symtab.c (lookup_symbol_aux): Update call to
2233 lookup_symbol_nonlocal.
2234 (basic_lookup_symbol_nonlocal): Rename to...
2235 (language_defn::lookup_symbol_nonlocal): ...this, and update
2236 header comment. Remove language_defn parameter, and replace with
2237 uses of `this'.
2238 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2239
ebe2334e
AB
22402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2241
2242 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2243 initializer.
2244 (ada_language::value_print_inner): New member function.
2245 * c-lang.c (c_language_data): Delete la_value_print_inner
2246 initializer.
2247 (cplus_language_data): Likewise.
2248 (asm_language_data): Likewise.
2249 (minimal_language_data): Likewise.
2250 * d-lang.c (d_language_data): Likewise.
2251 (d_language::value_print_inner): New member function.
2252 * f-lang.c (f_language_data): Delete la_value_print_inner
2253 initializer.
2254 (f_language::value_print_inner): New member function.
2255 * f-lang.h (f_value_print_innner): Rename to...
2256 (f_value_print_inner): ...this (note spelling of 'inner').
2257 * f-valprint.c (f_value_print_innner): Rename to...
2258 (f_value_print_inner): ...this (note spelling of 'inner').
2259 * go-lang.c (go_language_data): Delete la_value_print_inner
2260 initializer.
2261 (go_language::value_print_inner): New member function.
2262 * language.c (language_defn::value_print_inner): Define new member
2263 function.
2264 (unk_lang_value_print_inner): Delete.
2265 (unknown_language_data): Delete la_value_print_inner initializer.
2266 (unknown_language::value_print_inner): New member function.
2267 (auto_language_data): Delete la_value_print_inner initializer.
2268 (auto_language::value_print_inner): New member function.
2269 * language.h (language_data): Delete la_value_print_inner field.
2270 (language_defn::value_print_inner): Delcare new member function.
2271 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2272 initializer.
2273 (m2_language::value_print_inner): New member function.
2274 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2275 initializer.
2276 * opencl-lang.c (opencl_language_data): Likewise.
2277 * p-lang.c (pascal_language_data): Likewise.
2278 (pascal_language::value_print_inner): New member function.
2279 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2280 initializer.
2281 (rust_language::value_print_inner): New member function.
2282 * valprint.c (do_val_print): Update call to value_print_inner.
2283
a1d1fa3e
AB
22842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2285
2286 * ada-lang.c (ada_language_data): Delete la_value_print
2287 initializer.
2288 (ada_language::value_print): New member function.
2289 * c-lang.c (c_language_data): Delete la_value_print initializer.
2290 (cplus_language_data): Likewise.
2291 (asm_language_data): Likewise.
2292 (minimal_language_data): Likewise.
2293 * d-lang.c (d_language_data): Likewise.
2294 * f-lang.c (f_language_data): Likewise.
2295 * go-lang.c (go_language_data): Likewise.
2296 * language.c (unk_lang_value_print): Delete.
2297 (language_defn::value_print): Define new member function.
2298 (unknown_language_data): Delete la_value_print initializer.
2299 (unknown_language::value_print): New member function.
2300 (auto_language_data): Delete la_value_print initializer.
2301 (auto_language::value_print): New member function.
2302 * language.h (language_data): Delete la_value_print field.
2303 (language_defn::value_print): Declare new member function.
2304 (LA_VALUE_PRINT): Update call to value_print.
2305 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2306 * objc-lang.c (objc_language_data): Likewise.
2307 * opencl-lang.c (opencl_language_data): Likewise.
2308 * p-lang.c (pascal_language_data): Likewise.
2309 (pascal_language::value_print): New member function.
2310 * rust-lang.c (rust_language_data): Delete la_value_print
2311 initializer.
2312
f16a9f57
AB
23132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2314
2315 * ada-lang.c (ada_watch_location_expression): Rename to
2316 ada_language::watch_location_expression.
2317 (ada_language_data): Delete la_watch_location_expression
2318 initializer.
2319 (ada_language::watch_location_expression): New member function,
2320 implementation from ada_watch_location_expression.
2321 * breakpoint.c (watch_command_1): Update call to
2322 watch_location_expression.
2323 * c-lang.c (c_watch_location_expression): Rename to
2324 language_defn::watch_location_expression.
2325 (c_language_data): Delete la_watch_location_expression
2326 initializer.
2327 (cplus_language_data): Likewise.
2328 (asm_language_data): Likewise.
2329 (minimal_language_data): Likewise.
2330 * c-lang.h (c_watch_location_expression): Delete declaration.
2331 * d-lang.c (d_language_data): Delete la_watch_location_expression
2332 initializer.
2333 * f-lang.c (f_language_data): Likewise.
2334 * go-lang.c (go_language_data): Likewise.
2335 * language.c (language_defn::watch_location_expression): Member
2336 function implementation from c_watch_location_expression.
2337 (unknown_language_data): Delete la_watch_location_expression
2338 initializer.
2339 (auto_language_data): Likewise.
2340 * language.h (language_data): Delete la_watch_location_expression
2341 field.
2342 (language_defn::watch_location_expression): Declare new member
2343 function.
2344 * m2-lang.c (m2_language_data): Delete
2345 la_watch_location_expression initializer.
2346 * objc-lang.c (objc_language_data): Likewise.
2347 * opencl-lang.c (opencl_language_data): Likewise.
2348 * p-lang.c (pascal_language_data): Likewise.
2349 * rust-lang.c (rust_watch_location_expression): Rename to
2350 rust_language::watch_location_expression.
2351 (rust_language_data): Delete la_watch_location_expression
2352 initializer.
2353 (rust_language::watch_location_expression): New member function,
2354 implementation from rust_watch_location_expression.
2355
7e56227d
AB
23562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2357
2358 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2359 ada_language::collect_symbol_completion_matches.
2360 (ada_language_data): Delete la_collect_symbol_completion_matches
2361 initializer.
2362 (ada_language::collect_symbol_completion_matches): New member
2363 function, implementation from
2364 ada_collect_symbol_completion_matches.
2365 * c-lang.c (c_language_data): Delete
2366 la_collect_symbol_completion_matches initializer.
2367 (cplus_language_data): Likewise.
2368 (asm_language_data): Likewise.
2369 (minimal_language_data): Likewise.
2370 * d-lang.c (d_language_data): Likewise.
2371 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2372 f_language::collect_symbol_completion_matches.
2373 (f_language_data): Delete la_collect_symbol_completion_matches
2374 initializer.
2375 (f_language::collect_symbol_completion_matches) New member
2376 function, implementation from f_collect_symbol_completion_matches.
2377 * go-lang.c (go_language_data): Delete
2378 la_collect_symbol_completion_matches initializer.
2379 * language.c (unknown_language_data): Likewise.
2380 (auto_language_data): Likewise.
2381 * language.h (language_data): Delete
2382 la_collect_symbol_completion_matches field.
2383 (language_defn::collect_symbol_completion_matches): New member
2384 function.
2385 * m2-lang.c (m2_language_data): Delete
2386 la_collect_symbol_completion_matches initializer.
2387 * objc-lang.c (objc_language_data): Likewise.
2388 * opencl-lang.c (opencl_language_data): Likewise.
2389 * p-lang.c (pascal_language_data): Likewise.
2390 * rust-lang.c (rust_language_data): Likewise.
2391 * symtab.c (default_collect_symbol_completion_matches): Delete.
2392 (collect_symbol_completion_matches): Update call to
2393 collect_symbol_completion_matches.
2394 (collect_symbol_completion_matches_type): Likewise.
2395 * symtab.h (default_collect_symbol_completion_matches): Delete
2396 declaration.
2397
53fc67f8
AB
23982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2399
2400 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2401 (ada_language_data): Delete la_word_break_characters initializer.
2402 (ada_language::word_break_characters): New member function.
2403 * c-lang.c (c_language_data): Delete la_word_break_characters
2404 initializer.
2405 (cplus_language_data): Likewise.
2406 (asm_language_data): Likewise.
2407 (minimal_language_data): Likewise.
2408 * completer.c: Update global comment.
2409 (advance_to_expression_complete_word_point): Update call to
2410 word_break_characters.
2411 (complete_files_symbols): Likewise.
2412 (complete_line_internal_1): Likewise.
2413 (default_completer_handle_brkchars): Likewise.
2414 (skip_quoted_chars): Likewise.
2415 * d-lang.c (d_language_data): Delete la_word_break_characters
2416 initializer.
2417 * f-lang.c (f_word_break_characters): Delete.
2418 (f_language_data): Delete la_word_break_characters initializer.
2419 (f_language::word_break_characters): New member function.
2420 * go-lang.c (go_language_data): Delete la_word_break_characters
2421 initializer.
2422 * language.c (unknown_language_data): Likewise.
2423 (auto_language_data): Likewise.
2424 * language.h (default_word_break_characters): Move declaration to
2425 earlier in the file.
2426 (language_data): Delete la_word_break_characters field.
2427 (language_defn::word_break_characters): New member function.
2428 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2429 initializer.
2430 * objc-lang.c (objc_language_data): Likewise.
2431 * opencl-lang.c (opencl_language_data): Likewise.
2432 * p-lang.c (pascal_language_data): Likewise.
2433 * rust-lang.c (rust_language_data): Likewise.
2434
c9debfb9
AB
24352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2436
2437 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2438 (ada_language_data): Delete la_get_symbol_name_matcher
2439 initializer.
2440 (language_defn::get_symbol_name_matcher_inner): New member
2441 function.
2442 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2443 initializer.
2444 (cplus_language_data): Likewise.
2445 (cplus_language::get_symbol_name_matcher_inner): New member
2446 function.
2447 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2448 (minimal_language_data): Likewise.
2449 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2450 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2451 initializer.
2452 * dictionary.c (iter_match_first_hashed): Update call to
2453 get_symbol_name_matcher.
2454 (iter_match_next_hashed): Likewise.
2455 (iter_match_next_linear): Likewise.
2456 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2457 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2458 initializer.
2459 (f_language::get_symbol_name_matcher_inner): New member function.
2460 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2461 initializer.
2462 * language.c (default_symbol_name_matcher): Update header comment,
2463 make static.
2464 (language_defn::get_symbol_name_matcher): New definition.
2465 (language_defn::get_symbol_name_matcher_inner): Likewise.
2466 (get_symbol_name_matcher): Delete.
2467 (unknown_language_data): Delete la_get_symbol_name_matcher
2468 initializer.
2469 (auto_language_data): Likewise.
2470 * language.h (language_data): Delete la_get_symbol_name_matcher
2471 field.
2472 (language_defn::get_symbol_name_matcher): New member function.
2473 (language_defn::get_symbol_name_matcher_inner): Likewise.
2474 (default_symbol_name_matcher): Delete declaration.
2475 * linespec.c (find_methods): Update call to
2476 get_symbol_name_matcher.
2477 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2478 initializer.
2479 * minsyms.c (lookup_minimal_symbol): Update call to
2480 get_symbol_name_matcher.
2481 (iterate_over_minimal_symbols): Likewise.
2482 * objc-lang.c (objc_language_data): Delete
2483 la_get_symbol_name_matcher initializer.
2484 * opencl-lang.c (opencl_language_data): Likewise.
2485 * p-lang.c (pascal_language_data): Likewise.
2486 * psymtab.c (psymbol_name_matches): Update call to
2487 get_symbol_name_matcher.
2488 * rust-lang.c (rust_language_data): Delete
2489 la_get_symbol_name_matcher initializer.
2490 * symtab.c (symbol_matches_search_name): Update call to
2491 get_symbol_name_matcher.
2492 (compare_symbol_name): Likewise.
2493
9a49ad8c
AB
24942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2495
2496 * ada-lang.c (ada_language_data): Delete la_compute_program
2497 initializer.
2498 * c-lang.c (c_language_data): Likewise.
2499 (c_language::compute_program): New member function.
2500 (cplus_language_data): Delete la_compute_program initializer.
2501 (cplus_language::compute_program): New member function.
2502 (asm_language_data): Delete la_compute_program initializer.
2503 (minimal_language_data): Likewise.
2504 * c-lang.h (c_compute_program): Update comment.
2505 (cplus_compute_program): Likewise.
2506 * compile/compile-c-support.c (c_compute_program): Likewise.
2507 (cplus_compute_program): Likewise.
2508 * compile/compile.c (compile_to_object): Update call to
2509 la_compute_program.
2510 * d-lang.c (d_language_data): Delete la_compute_program
2511 initializer.
2512 * f-lang.c (f_language_data): Likewise.
2513 * go-lang.c (go_language_data): Likewise.
2514 * language.c (unknown_language_data): Likewise.
2515 (auto_language_data): Likewise.
2516 * language.h (language_data): Delete la_compute_program field.
2517 (language_defn::compute_program): New member function.
2518 * m2-lang.c (m2_language_data): Delete la_compute_program
2519 initializer.
2520 * objc-lang.c (objc_language_data): Likewise.
2521 * opencl-lang.c (opencl_language_data): Likewise.
2522 * p-lang.c (pascal_language_data): Likewise.
2523 * rust-lang.c (rust_language_data): Likewise.
2524
eff93b4d
AB
25252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2526
2527 * ada-lang.c (ada_language_data) Delete
2528 la_class_name_from_physname initializer.
2529 * c-lang.c (c_language_data): Likewise.
2530 (cplus_language_data): Likewise.
2531 (cplus_language::class_name_from_physname): New member function.
2532 (asm_language_data): Delete la_class_name_from_physname
2533 initializer.
2534 (minimal_language_data): Likewise.
2535 * d-lang.c (d_language_data): Likewise.
2536 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2537 method on language_defn class.
2538 (guess_full_die_structure_name): Likewise.
2539 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2540 initializer.
2541 * go-lang.c (go_language_data): Likewise.
2542 * language.c (language_class_name_from_physname): Delete.
2543 (unk_lang_class_name): Delete.
2544 (unknown_language_data): Delete la_class_name_from_physname
2545 initializer.
2546 (auto_language_data): Likewise.
2547 * language.h (language_data): Delete la_class_name_from_physname
2548 field.
2549 (language_defn::class_name_from_physname): New function.
2550 (language_class_name_from_physname): Delete declaration.
2551 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2552 initializer.
2553 * objc-lang.c (objc_language_data): Likewise.
2554 * opencl-lang.c (opencl_language_data): Likewise.
2555 * p-lang.c (pascal_language_data): Likewise.
2556 * rust-lang.c (rust_language_data): Likewise.
2557
de543742
TT
25582020-06-16 Tom Tromey <tom@tromey.com>
2559
2560 * tui/tui-data.h (STATUS_NAME): New macro.
2561 * tui/tui-layout.c (tui_remove_some_windows)
2562 (initialize_known_windows, tui_register_window)
2563 (tui_layout_split::remove_windows, initialize_layouts)
2564 (tui_new_layout_command): Don't use hard-coded window names.
2565
a350efd4
TT
25662020-06-16 Tom Tromey <tom@tromey.com>
2567
2568 PR tui/25348:
2569 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2570 tui_initialize_readline. Only run once. Call rl_initialize.
2571 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2572 tui_initialize_readline.
2573 * tui/tui-io.c (tui_setup_io): Call
2574 tui_ensure_readline_initialized.
2575 * tui/tui-interp.c (tui_interp::init): Update.
2576
39ec0490
TT
25772020-06-16 Tom Tromey <tom@tromey.com>
2578
2579 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2580 Also preserve the status window.
2581
d2d1ea20
TT
25822020-06-16 Tom Tromey <tom@tromey.com>
2583
2584 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2585 where m_window==nullptr.
2586
66920317
TT
25872020-06-15 Tom Tromey <tromey@adacore.com>
2588
2589 * windows-nat.c (windows_nat::handle_output_debug_string):
2590 Update.
2591 (windows_nat::handle_ms_vc_exception): Update.
2592 * target.h (target_read_string): Change API.
2593 * target.c (target_read_string): Change API.
2594 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2595 Update.
2596 * solib-frv.c (frv_current_sos): Update.
2597 * solib-dsbt.c (dsbt_current_sos): Update.
2598 * solib-darwin.c (darwin_current_sos): Update.
2599 * linux-thread-db.c (inferior_has_bug): Update.
2600 * expprint.c (print_subexp_standard): Update.
2601 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2602 (ada_exception_message_1): Update.
2603
a5d871dd
TT
26042020-06-15 Tom Tromey <tromey@adacore.com>
2605
2606 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2607
670e35fa
TT
26082020-06-15 Tom Tromey <tromey@adacore.com>
2609
2610 * valprint.c (read_string): Update comment.
2611 * target.c (MIN): Remove.
2612 (target_read_string): Rewrite.
2613
f5272a3b
TT
26142020-06-15 Tom Tromey <tromey@adacore.com>
2615
2616 * corefile.c (read_memory_string): Remove.
2617 * ada-valprint.c (ada_value_print_ptr): Update.
2618 * ada-lang.h (ada_tag_name): Change return type.
2619 * ada-lang.c (type_from_tag): Update.
2620 (ada_tag_name_from_tsd): Change return type. Use
2621 target_read_string.
2622 (ada_tag_name): Likewise.
2623 * gdbcore.h (read_memory_string): Don't declare.
2624
2c074f49
HD
26252020-06-14 Hannes Domani <ssbssa@yahoo.de>
2626
2627 * symtab.c (rbreak_command): Ignore Windows drive colon.
2628
6a17d503
SM
26292020-06-12 Simon Marchi <simon.marchi@efficios.com>
2630
2631 * NEWS: Mention removed GDBserver host support.
2632
453c733f
NC
26332020-06-12 Nelson Chu <nelson.chu@sifive.com>
2634
2635 * features/riscv/rebuild-csr-xml.sh: Updated.
2636
2b4e6a3f
TT
26372020-06-11 Tom Tromey <tom@tromey.com>
2638
2639 PR gdb/18318:
2640 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2641
4412332f
JG
26422020-06-09 Jonny Grant <jg@jguk.org>
26432020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2644
2645 * main.c (captured_main_1): Don't print new line after help.
2646 (print_gdb_help): add mailing list and IRC channel information
2647 to --help. Add new lines between items in the footer. Remove
2648 quotes around bug url.
2649
2f33032a
KS
26502020-06-11 Keith Seitz <keiths@redhat.com>
2651
2652 PR gdb/21356
2653 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2654 Resolve typedefs for type length calculations.
2655
7ab96794
TV
26562020-06-10 Tom de Vries <tdevries@suse.de>
2657
2658 PR ada/24713
2659 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2660 (write_psymbols): Enable .gdb_index for ada.
2661 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2662 ada.
2663
e5f3ece2
TV
26642020-06-10 Tom de Vries <tdevries@suse.de>
2665
2666 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2667 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2668 namei" instead of "const char *name" argument.
2669 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2670 dw2_symtab_iter_init.
2671
940da03e
SM
26722020-06-08 Simon Marchi <simon.marchi@efficios.com>
2673
2674 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2675 to use type::field and field::type instead.
2676
b6cdac4b
SM
26772020-06-08 Simon Marchi <simon.marchi@efficios.com>
2678
2679 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2680 to use field::type instead.
2681
5d14b6e5
SM
26822020-06-08 Simon Marchi <simon.marchi@efficios.com>
2683
2684 * gdbtypes.h (struct field) <type, set_type>: New methods.
2685 Rename `type` field to...
2686 <m_type>: ... this. Change references throughout to use type or
2687 set_type methods.
2688 (FIELD_TYPE): Use field::type. Change call sites that modify
2689 the field's type to use field::set_type instead.
2690
3d967001
SM
26912020-06-08 Simon Marchi <simon.marchi@efficios.com>
2692
2693 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2694 to use type::index_type instead.
2695
262abc0d
SM
26962020-06-08 Simon Marchi <simon.marchi@efficios.com>
2697
2698 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2699 methods.
2700 (TYPE_INDEX_TYPE): Use type::index_type.
2701 * gdbtypes.c (create_array_type_with_stride): Likewise.
2702
82836c92
TT
27032020-06-07 Tom Tromey <tom@tromey.com>
2704
2705 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2706 parameter.
2707 (generic_value_print): Update.
2708
940dace9
AB
27092020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2710
2711 Revert commit 982a38f60b0.
2712 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2713
982a38f6
AB
27142020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2715
2716 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2717 avoid use after free.
2718
82f06518
TV
27192020-06-05 Tom de Vries <tdevries@suse.de>
2720
2721 * NEWS: Fix typos.
2722
f8c41851
SM
27232020-06-04 Simon Marchi <simon.marchi@efficios.com>
2724
2725 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2726 the per_bfd object.
2727 (dwarf2_read_debug_names): Likewise.
2728 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2729 object when re-using a per_bfd object with an index.
2730
f9b5d5ea
TV
27312020-06-03 Tom de Vries <tdevries@suse.de>
2732
2733 PR symtab/26046
2734 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2735 children for C++.
2736 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2737 DW_TAG_subprogram.
2738
f6eee2d0
AB
27392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2740
2741 * ada-lang.c (ada_language_data): Delete skip_trampoline
2742 initializer.
2743 * c-lang.c (c_language_data): Likewise.
2744 (cplus_language_data): Likewise.
2745 (cplus_language::skip_trampoline): New member function.
2746 (asm_language_data): Delete skip_trampoline initializer.
2747 (minimal_language_data): Likewise.
2748 * d-lang.c (d_language_data): Likewise.
2749 * f-lang.c (f_language_data): Likewise.
2750 * go-lang.c (go_language_data): Likewise.
2751 * language.c (unk_lang_trampoline): Delete function.
2752 (skip_language_trampoline): Update.
2753 (unknown_language_data): Delete skip_trampoline initializer.
2754 (auto_language_data): Likewise.
2755 * language.h (language_data): Delete skip_trampoline field.
2756 (language_defn::skip_trampoline): New function.
2757 * m2-lang.c (m2_language_data): Delete skip_trampoline
2758 initializer.
2759 * objc-lang.c (objc_skip_trampoline): Delete function, move
2760 implementation to objc_language::skip_trampoline.
2761 (objc_language_data): Delete skip_trampoline initializer.
2762 (objc_language::skip_trampoline): New member function with
2763 implementation from objc_skip_trampoline.
2764 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2765 initializer.
2766 * p-lang.c (pascal_language_data): Likewise.
2767 * rust-lang.c (rust_language_data): Likewise.
2768
0a50df5d
AB
27692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2770
2771 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2772 (ada_language::demangle): New member function.
2773 * c-lang.c (c_language_data): Delete la_demangle initializer.
2774 (cplus_language_data): Delete la_demangle initializer.
2775 (cplus_language::demangle): New member function.
2776 (asm_language_data): Delete la_demangle initializer.
2777 (minimal_language_data): Delete la_demangle initializer.
2778 * d-lang.c (d_language_data): Delete la_demangle initializer.
2779 (d_language::demangle): New member function.
2780 * f-lang.c (f_language_data): Delete la_demangle initializer.
2781 (f_language::demangle): New member function.
2782 * go-lang.c (go_language_data): Delete la_demangle initializer.
2783 (go_language::demangle): New member function.
2784 * language.c (language_demangle): Update.
2785 (unk_lang_demangle): Delete.
2786 (unknown_language_data): Delete la_demangle initializer.
2787 (unknown_language::demangle): New member function.
2788 (auto_language_data): Delete la_demangle initializer.
2789 (auto_language::demangle): New member function.
2790 * language.h (language_data): Delete la_demangle field.
2791 (language_defn::demangle): New function.
2792 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2793 * objc-lang.c (objc_language_data): Delete la_demangle
2794 initializer.
2795 (objc_language::demangle): New member function.
2796 * opencl-lang.c (opencl_language_data): Delete la_demangle
2797 initializer.
2798 * p-lang.c (pascal_language_data): Likewise.
2799 * rust-lang.c (rust_language_data): Likewise.
2800 (rust_language::demangle): New member function.
2801
fbfb0a46
AB
28022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2803
2804 * ada-lang.c (ada_language_data): Delete la_print_type
2805 initializer.
2806 (ada_language::print_type): New member function.
2807 * c-lang.c (c_language_data): Delete la_print_type initializer.
2808 (c_language::print_type): New member function.
2809 (cplus_language_data): Delete la_print_type initializer.
2810 (cplus_language::print_type): New member function.
2811 (asm_language_data): Delete la_print_type initializer.
2812 (asm_language::print_type): New member function.
2813 (minimal_language_data): Delete la_print_type initializer.
2814 (minimal_language::print_type): New member function.
2815 * d-lang.c (d_language_data): Delete la_print_type initializer.
2816 (d_language::print_type): New member function.
2817 * f-lang.c (f_language_data): Delete la_print_type initializer.
2818 (f_language::print_type): New member function.
2819 * go-lang.c (go_language_data): Delete la_print_type initializer.
2820 (go_language::print_type): New member function.
2821 * language.c (unk_lang_print_type): Delete.
2822 (unknown_language_data): Delete la_print_type initializer.
2823 (unknown_language::print_type): New member function.
2824 (auto_language_data): Delete la_print_type initializer.
2825 (auto_language::print_type): New member function.
2826 * language.h (language_data): Delete la_print_type field.
2827 (language_defn::print_type): New function.
2828 (LA_PRINT_TYPE): Update.
2829 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2830 (m2_language::print_type): New member function.
2831 * objc-lang.c (objc_language_data): Delete la_print_type
2832 initializer.
2833 (objc_language::print_type): New member function.
2834 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2835 to opencl_language::print_type.
2836 (opencl_language_data): Delete la_print_type initializer.
2837 (opencl_language::print_type): New member function, implementation
2838 from opencl_print_type.
2839 * p-lang.c (pascal_language_data): Delete la_print_type
2840 initializer.
2841 (pascal_language::print_type): New member function.
2842 * rust-lang.c (rust_print_type): Delete, implementation moved to
2843 rust_language::print_type.
2844 (rust_language_data): Delete la_print_type initializer.
2845 (rust_language::print_type): New member function, implementation
2846 from rust_print_type.
2847
6f827019
AB
28482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2849
2850 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2851 implementation moves to...
2852 (ada_language::sniff_from_mangled_name): ...here. Update return
2853 type.
2854 (ada_language_data): Delete la_sniff_from_mangled_name
2855 initializer.
2856 * c-lang.c (c_language_data): Likewise.
2857 (cplus_language_data): Likewise.
2858 (cplus_language::sniff_from_mangled_name): New member function,
2859 implementation taken from gdb_sniff_from_mangled_name.
2860 (asm_language_data): Delete la_sniff_from_mangled_name
2861 initializer.
2862 (minimal_language_data): Likewise.
2863 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2864 implementation moves to cplus_language::sniff_from_mangled_name.
2865 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2866 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2867 moves to...
2868 (d_language::sniff_from_mangled_name): ...here.
2869 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2870 * f-lang.c (f_language_data): Likewise.
2871 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2872 moves to...
2873 (go_language::sniff_from_mangled_name): ...here.
2874 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2875 * language.c (language_sniff_from_mangled_name): Delete.
2876 (unknown_language_data): Delete la_sniff_from_mangled_name
2877 initializer.
2878 (auto_language_data): Likewise.
2879 * language.h (language_data): Delete la_sniff_from_mangled_name
2880 field.
2881 (language_defn::sniff_from_mangled_name): New function.
2882 (language_sniff_from_mangled_name): Delete declaration.
2883 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2884 field.
2885 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2886 implementation moves to...
2887 (objc_language::sniff_from_mangled_name): ...here.
2888 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2889 * opencl-lang.c (opencl_language_data): Likewise.
2890 * p-lang.c (pascal_language_data): Likewise.
2891 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2892 implementation moves to...
2893 (rust_language::sniff_from_mangled_name): ...here.
2894 (rust_language_data): Delete la_sniff_from_mangled_name
2895 initializer.
2896 * symtab.c (symbol_find_demangled_name): Call
2897 sniff_from_mangled_name member function.
2898
fb8006fd
AB
28992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2900
2901 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2902 initializer.
2903 * c-lang.c (c_language_data): Likewise.
2904 (cplus_language_data): Likewise.
2905 (cplus_language::search_name_hash): New member function.
2906 (asm_language_data): Delete la_search_name_hash initializer.
2907 (minimal_language_data): Likewise.
2908 * d-lang.c (d_language_data): Likewise.
2909 * dictionary.c (default_search_name_hash): Rename to...
2910 (language_defn::search_name_hash): ...this.
2911 * f-lang.c (f_language_data): Likewise.
2912 (f_language::search_name_hash): New member function.
2913 * go-lang.c (go_language_data): Delete la_search_name_hash
2914 initializer.
2915 * language.c (unknown_language_data): Likewise.
2916 (auto_language_data): Likewise.
2917 * language.h (struct language_data): Delete la_search_name_hash
2918 field.
2919 (language_defn::search_name_hash): Declare new member function.
2920 (default_search_name_hash): Delete declaration.
2921 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2922 initializer.
2923 * objc-lang.c (objc_language_data): Likewise.
2924 * opencl-lang.c (opencl_language_data): Likewise.
2925 * p-lang.c (pascal_language_data): Likewise.
2926 * rust-lang.c (rust_language_data): Likewise.
2927 * symtab.c (search_name_hash): Update call.
2928
8e25bafe
AB
29292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2930
2931 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2932 initializer.
2933 * c-lang.c (class compile_instance): Declare.
2934 (c_language_data): Delete la_get_compile_instance initializer.
2935 (c_language::get_compile_instance): New member function.
2936 (cplus_language_data): Delete la_get_compile_instance initializer.
2937 (cplus_language::get_compile_instance): New member function.
2938 (asm_language_data): Delete la_get_compile_instance initializer.
2939 (minimal_language_data): Likewise.
2940 * c-lang.h (c_get_compile_context): Update comment.
2941 (cplus_get_compile_context): Update comment.
2942 * compile/compile.c (compile_to_object): Update calls, don't rely
2943 on function pointer being NULL.
2944 * d-lang.c (d_language_data): Delete la_get_compile_instance
2945 initializer.
2946 * f-lang.c (f_language_data): Likewise.
2947 * go-lang.c (go_language_data): Likewise.
2948 * language.c (unknown_language_data): Likewise.
2949 (auto_language_data): Likewise.
2950 * language.h (language_data): Delete la_get_compile_instance field.
2951 (language_defn::get_compile_instance): New member function.
2952 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2953 initializer.
2954 * objc-lang.c (objc_language_data): Likewise.
2955 * opencl-lang.c (opencl_language_data): Likewise.
2956 * p-lang.c (pascal_language_data): Likewise.
2957 * rust-lang.c (rust_language_data): Likewise.
2958
4009ee92
AB
29592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2960
2961 * ada-lang.c (ada_add_all_symbols): Update comment.
2962 (ada_iterate_over_symbols): Delete, move implementation to...
2963 (ada_language::iterate_over_symbols): ...here, a new member
2964 function, rewrite to use range based for loop.
2965 (ada_language_data): Delete la_iterate_over_symbols initializer.
2966 * c-lang.c (c_language_data): Likewise.
2967 (cplus_language_data): Likewise.
2968 (asm_language_data): Likewise.
2969 (minimal_language_data): Likewise.
2970 * d-lang.c (d_language_data): Likewise.
2971 * f-lang.c (f_language_data): Likewise.
2972 * go-lang.c (go_language_data): Likewise.
2973 * language.c (unknown_language_data): Likewise.
2974 (auto_language_data): Likewise.
2975 * language.h (language_data): Delete la_iterate_over_symbols field.
2976 (language_defn::iterate_over_symbols): New member function.
2977 (LA_ITERATE_OVER_SYMBOLS): Update.
2978 * linespec.c (iterate_over_all_matching_symtabs): Update.
2979 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2980 initializer.
2981 * objc-lang.c (objc_language_data): Likewise.
2982 * opencl-lang.c (opencl_language_data): Likewise.
2983 * p-lang.c (pascal_language_data): Likewise.
2984 * rust-lang.c (rust_language_data): Likewise.
2985
54f4ca46
AB
29862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2987
2988 * ada-lang.c (ada_language_data): Delete
2989 la_lookup_transparent_type initializer.
2990 * c-lang.c (c_language_data): Likewise.
2991 (cplus_language_data): Likewise.
2992 (cplus_language::lookup_transparent_type): New member function.
2993 (asm_language_data): Delete la_lookup_transparent_type
2994 initializer.
2995 (minimal_language_data): Likewise.
2996 * d-lang.c (d_language_data): Likewise.
2997 * f-lang.c (f_language_data): Likewise.
2998 * go-lang.c (go_language_data): Likewise.
2999 * language.c (unknown_language_data): Likewise.
3000 (auto_language_data): Likewise.
3001 * language.h (struct language_data): Delete
3002 la_lookup_transparent_type field.
3003 (language_defn::lookup_transparent_type): New member function.
3004 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3005 initializer.
3006 * objc-lang.c (objc_language_data): Likewise.
3007 * opencl-lang.c (opencl_language_data): Likewise.
3008 * p-lang.c (pascal_language_data): Likewise.
3009 * rust-lang.c (rust_language_data): Likewise.
3010 * symtab.c (symbol_matches_domain): Update call.
3011
1fb314aa
AB
30122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3013
3014 * ada-lang.c (ada_language_arch_info): Delete function, move
3015 implementation to...
3016 (ada_language::language_arch_info): ...here, a new member
3017 function.
3018 (ada_language_data): Delete la_language_arch_info.
3019 * c-lang.c (c_language_data): Likewise.
3020 (c_language::language_arch_info): New member function.
3021 (cplus_language_arch_info): Delete function, move
3022 implementation to...
3023 (cplus_language::language_arch_info): ...here, a new member
3024 function.
3025 (cplus_language_data): Delete la_language_arch_info.
3026 (asm_language_data): Likewise.
3027 (asm_language::language_arch_info): New member function.
3028 (minimal_language_data): Delete la_language_arch_info.
3029 (minimal_language::language_arch_info): New member function.
3030 * d-lang.c (d_language_arch_info): Delete function, move
3031 implementation to...
3032 (d_language::language_arch_info): ...here, a new member
3033 function.
3034 (d_language_data): Delete la_language_arch_info.
3035 * f-lang.c (f_language_arch_info): Delete function, move
3036 implementation to...
3037 (f_language::language_arch_info): ...here, a new member
3038 function.
3039 (f_language_data): Delete la_language_arch_info.
3040 * go-lang.c (go_language_arch_info): Delete function, move
3041 implementation to...
3042 (go_language::language_arch_info): ...here, a new member
3043 function.
3044 (go_language_data): Delete la_language_arch_info.
3045 * language.c (unknown_language_data): Likewise.
3046 (unknown_language::language_arch_info): New member function.
3047 (auto_language_data): Delete la_language_arch_info.
3048 (auto_language::language_arch_info): New member function.
3049 (language_gdbarch_post_init): Update call to
3050 la_language_arch_info.
3051 * language.h (language_data): Delete la_language_arch_info
3052 function pointer.
3053 (language_defn::language_arch_info): New function.
3054 * m2-lang.c (m2_language_arch_info): Delete function, move
3055 implementation to...
3056 (m2_language::language_arch_info): ...here, a new member
3057 function.
3058 (m2_language_data): Delete la_language_arch_info.
3059 * objc-lang.c (objc_language_arch_info): Delete function, move
3060 implementation to...
3061 (objc_language::language_arch_info): ...here, a new member
3062 function.
3063 (objc_language_data): Delete la_language_arch_info.
3064 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3065 implementation to...
3066 (opencl_language::language_arch_info): ...here, a new member
3067 function.
3068 (opencl_language_data): Delete la_language_arch_info.
3069 * p-lang.c (pascal_language_arch_info): Delete function, move
3070 implementation to...
3071 (pascal_language::language_arch_info): ...here, a new member
3072 function.
3073 (pascal_language_data): Delete la_language_arch_info.
3074 * rust-lang.c (rust_language_arch_info): Delete function, move
3075 implementation to...
3076 (rust_language::language_arch_info): ...here, a new member
3077 function.
3078 (rust_language_data): Delete la_language_arch_info.
3079
48448202
AB
30802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3081
3082 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3083 initializer.
3084 * c-lang.c (c_language_data): Likewise.
3085 (cplus_language_data): Likewise.
3086 (cplus_language::pass_by_reference_info): New method.
3087 (asm_language_data): Delete la_pass_by_reference initializer.
3088 (minimal_language_data): Likewise.
3089 * cp-abi.c (cp_pass_by_reference): Remove use of
3090 default_pass_by_reference.
3091 * d-lang.c (d_language_data): Likewise.
3092 * f-lang.c (f_language_data): Likewise.
3093 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3094 default_pass_by_reference.
3095 * go-lang.c (go_language_data): Likewise.
3096 * language.c (language_pass_by_reference): Update.
3097 (default_pass_by_reference): Delete.
3098 (unknown_language_data): Delete la_pass_by_reference
3099 initializer.
3100 (auto_language_data): Likewise.
3101 * language.h (struct language_data): Delete la_pass_by_reference
3102 field.
3103 (language_defn::pass_by_reference_info): New member function.
3104 (default_pass_by_reference): Delete declaration.
3105 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3106 initializer.
3107 * objc-lang.c (objc_language_data): Likewise.
3108 * opencl-lang.c (opencl_language_data): Likewise.
3109 * p-lang.c (pascal_language_data): Likewise.
3110 * rust-lang.c (rust_language_data): Likewise.
3111
15e5fd35
AB
31122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3113
3114 * ada-lang.c (ada_read_var_value): Delete function, move
3115 implementation to...
3116 (ada_language::read_var_value): ...here.
3117 (ada_language_data): Delete la_read_var_value initializer.
3118 * c-lang.c (c_language_data): Likewise.
3119 (cplus_language_data): Likewise.
3120 (minimal_language_data): Likewise.
3121 * d-lang.c (d_language_data): Likewise.
3122 * f-lang.c (f_language_data): Likewise.
3123 * findvar.c (default_read_var_value): Rename to...
3124 (language_defn::read_var_value): ...this.
3125 * findvar.c (read_var_value): Update header comment, and change to
3126 call member function instead of function pointer.
3127 * go-lang.c (go_language_data): Likewise.
3128 * language.c (unknown_language_data): Delete la_read_var_value
3129 initializer.
3130 (auto_language_data): Likewise.
3131 * language.h (struct language_data): Delete la_read_var_value
3132 field.
3133 (language_defn::read_var_value): New member function.
3134 (default_read_var_value): Delete declaration.
3135 * m2-lang.c (m2_language_data): Delete la_read_var_value
3136 initializer.
3137 * objc-lang.c (objc_language_data): Likewise.
3138 * opencl-lang.c (opencl_language_data): Likewise.
3139 * p-lang.c (pascal_language_data): Likewise.
3140 * rust-lang.c (rust_language_data): Likewise.
3141 * value.h (default_read_var_value): Delete declaration.
3142
5bd40f2a
AB
31432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3144
3145 * ada-lang.c (ada_print_array_index): Delete function, move
3146 implementation to...
3147 (ada_language::print_array_index): ...here.
3148 (ada_language_data): Delete la_print_array_index initializer.
3149 * c-lang.c (c_language_data): Likewise.
3150 (cplus_language_data): Likewise.
3151 (minimal_language_data): Likewise.
3152 * d-lang.c (d_language_data): Likewise.
3153 * f-lang.c (f_language_data): Likewise.
3154 * go-lang.c (go_language_data): Likewise.
3155 * language.c (default_print_array_index): Delete function, move
3156 implementation to...
3157 (language_defn::print_array_index): ...here.
3158 (unknown_language_data): Delete la_print_array_index initializer.
3159 (auto_language_data): Likewise.
3160 * language.h (struct language_data): Delete la_print_array_index
3161 field.
3162 (language_defn::print_array_index): New member function.
3163 (LA_PRINT_ARRAY_INDEX): Update.
3164 (default_print_array_index): Delete declaration.
3165 * m2-lang.c (m2_language_data): Delete la_print_array_index
3166 initializer.
3167 * objc-lang.c (objc_language_data): Likewise.
3168 * opencl-lang.c (opencl_language_data): Likewise.
3169 * p-lang.c (pascal_language_data): Likewise.
3170 * rust-lang.c (rust_language_data): Likewise.
3171
0874fd07
AB
31722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3173
3174 * gdb/ada-lang.c (ada_language_defn): Convert to...
3175 (ada_language_data): ...this.
3176 (class ada_language): New class.
3177 (ada_language_defn): New static global.
3178 * gdb/c-lang.c (c_language_defn): Convert to...
3179 (c_language_data): ...this.
3180 (class c_language): New class.
3181 (c_language_defn): New static global.
3182 (cplus_language_defn): Convert to...
3183 (cplus_language_data): ...this.
3184 (class cplus_language): New class.
3185 (cplus_language_defn): New static global.
3186 (asm_language_defn): Convert to...
3187 (asm_language_data): ...this.
3188 (class asm_language): New class.
3189 (asm_language_defn): New static global.
3190 (minimal_language_defn): Convert to...
3191 (minimal_language_data): ...this.
3192 (class minimal_language): New class.
3193 (minimal_language_defn): New static global.
3194 * gdb/d-lang.c (d_language_defn): Convert to...
3195 (d_language_data): ...this.
3196 (class d_language): New class.
3197 (d_language_defn): New static global.
3198 * gdb/f-lang.c (f_language_defn): Convert to...
3199 (f_language_data): ...this.
3200 (class f_language): New class.
3201 (f_language_defn): New static global.
3202 * gdb/go-lang.c (go_language_defn): Convert to...
3203 (go_language_data): ...this.
3204 (class go_language): New class.
3205 (go_language_defn): New static global.
3206 * gdb/language.c (unknown_language_defn): Remove declaration.
3207 (current_language): Initialize to nullptr, real initialization is
3208 moved to _initialize_language.
3209 (languages): Delete global.
3210 (language_defn::languages): Define.
3211 (set_language_command): Use language_defn::languages.
3212 (set_language): Likewise.
3213 (range_error): Likewise.
3214 (language_enum): Likewise.
3215 (language_def): Likewise.
3216 (add_set_language_command): Use language_def::languages for the
3217 language list, and language_def to lookup language pointers.
3218 (skip_language_trampoline): Use language_defn::languages.
3219 (unknown_language_defn): Convert to...
3220 (unknown_language_data): ...this.
3221 (class unknown_language): New class.
3222 (unknown_language_defn): New static global.
3223 (auto_language_defn): Convert to...
3224 (auto_language_data): ...this.
3225 (class auto_language): New class.
3226 (auto_language_defn): New static global.
3227 (language_gdbarch_post_init): Use language_defn::languages.
3228 (_initialize_language): Initialize current_language.
3229 * gdb/language.h (struct language_defn): Rename to...
3230 (struct language_data): ...this.
3231 (struct language_defn): New.
3232 (auto_language_defn): Delete.
3233 (unknown_language_defn): Delete.
3234 (minimal_language_defn): Delete.
3235 (ada_language_defn): Delete.
3236 (asm_language_defn): Delete.
3237 (c_language_defn): Delete.
3238 (cplus_language_defn): Delete.
3239 (d_language_defn): Delete.
3240 (f_language_defn): Delete.
3241 (go_language_defn): Delete.
3242 (m2_language_defn): Delete.
3243 (objc_language_defn): Delete.
3244 (opencl_language_defn): Delete.
3245 (pascal_language_defn): Delete.
3246 (rust_language_defn): Delete.
3247 * gdb/m2-lang.c (m2_language_defn): Convert to...
3248 (m2_language_data): ...this.
3249 (class m2_language): New class.
3250 (m2_language_defn): New static global.
3251 * gdb/objc-lang.c (objc_language_defn): Convert to...
3252 (objc_language_data): ...this.
3253 (class objc_language): New class.
3254 (objc_language_defn): New static global.
3255 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3256 (opencl_language_data): ...this.
3257 (class opencl_language): New class.
3258 (opencl_language_defn): New static global.
3259 * gdb/p-lang.c (pascal_language_defn): Convert to...
3260 (pascal_language_data): ...this.
3261 (class pascal_language): New class.
3262 (pascal_language_defn): New static global.
3263 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3264 language pointer, update comment format.
3265 * gdb/rust-lang.c (rust_language_defn): Convert to...
3266 (rust_language_data): ...this.
3267 (class rust_language): New class.
3268 (rust_language_defn): New static global.
3269
1313c56e
AB
32702020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3271
3272 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3273 member variable.
3274 <m_stmt_at_address>: New member variable.
3275 (lnp_state_machine::record_line): Don't record some lines, update
3276 tracking of is_stmt at the same address.
3277 (lnp_state_machine::lnp_state_machine): Initialise new member
3278 variables.
3279
b7ed9f3d
ST
32802020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3281
3282 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3283 "-include gnu-nat-mig.h".
3284 * gnu-nat-mig.h: New file.
3285 * gnu-nat.c: Include "gnu-nat-mig.h".
3286 (exc_server, msg_reply_server, notify_server,
3287 process_reply_server): Remove declarations.
3288
14a8ad62
ST
32892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3290
3291 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3292 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3293 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3294 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3295 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3296 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3297 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3298 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3299 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3300 to gnu_nat_target class.
3301 * gnu-nat.c: Likewise.
3302 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3303 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3304 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3305 object.
3306 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3307 instead of `gnu_target'.
3308
0af5e106
ST
33092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3310
3311 * i386-gnu-tdep.c: Include "gdbcore.h"
3312 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3313 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3314 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3315 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3316 i386_gnu_sigcontext_addr): New functions
3317 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3318 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3319 tdep.
3320
078f2fc9
ST
33212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3322
3323 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3324 before fork_inferior call. Avoid calling it if target_is_pushed returns
3325 true.
3326
53dff92c
ST
33272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3328
3329 * gnu-nat.h (gnu_target): New variable declaration.
3330 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3331 gnu_target.
3332 * gnu-nat.c (gnu_target): New variable.
3333 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3334 add_thread_silent, and add_thread calls.
3335 (gnu_nat_target::create_inferior): Pass gnu_target to
3336 add_thread_silent, thread_change_ptid call.
3337 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3338 call.
3339
5a8b8627
ST
33402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3341
3342 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3343 (gnu_nat_target::find_memory_regions): Remove unused
3344 `old_address' variable.
3345
366f550a
ST
33462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3347
3348 * gnu-nat.c: Include "gdbarch.h".
3349
f14871bf
ST
33502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3351
3352 * reply_mig_hack.awk (Error return): Cast function through
3353 void *, to bypass compiler function call check.
3354
c6887cfb
ST
33552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3356
3357 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3358 $(srcdir)/reply_mig_hack.awk.
3359
6930bffe
ST
33602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3361
3362 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3363
112c22ed
JG
33642020-05-30 Jonny Grant <jg@jguk.org>
3365
3366 * configure.ac (ACX_BUGURL): change bug URL to https.
3367
f68f85b5
PA
33682020-05-30 Pedro Alves <palves@redhat.com>
3369
3370 * cp-support.c (replace_typedefs_template): New.
3371 (replace_typedefs_qualified_name): Handle
3372 DEMANGLE_COMPONENT_TEMPLATE.
3373
976ca316
SM
33742020-05-29 Simon Marchi <simon.marchi@efficios.com>
3375
3376 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3377 dwarf2/index-cache.h, dwarf2/index-write.c,
3378 dwarf2/index-write.h, dwarf2/line-header.c,
3379 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3380 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3381 variables and fields from `dwarf2_per_objfile` to just
3382 `per_objfile` throughout.
3383
989ade05
SM
33842020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3385
3386 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3387 <push_dwarf_reg_entry_value>: Add comment.
3388
c47bae85
KB
33892020-05-28 Kevin Buettner <kevinb@redhat.com>
3390 Keith Seitz <keiths@redhat.com>
3391
3392 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3393 instead of PyEval_ReleaseLock.
3394 (class gdbpy_gil): Move to earlier in file.
3395 (finalize_python): Set gdb_python_initialized.
3396 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3397 when not initialized.
3398
44486dcf
SM
33992020-05-28 Simon Marchi <simon.marchi@efficios.com>
3400
3401 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3402 <push_dwarf_reg_entry_value>: Remove assert. Override
3403 per_objfile with caller_per_objfile.
3404
f030440d
TV
34052020-05-28 Tom de Vries <tdevries@suse.de>
3406
3407 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3408 PR gold/15646 workaround to symbol kind "type".
3409
f0fbb768
TT
34102020-05-27 Tom Tromey <tromey@adacore.com>
3411
3412 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3413
af0b2a3e
TT
34142020-05-27 Tom Tromey <tromey@adacore.com>
3415
3416 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3417 Use htab_find_with_hash.
3418 <add_abbrev>: Remove "abbrev_number" parameter.
3419 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3420 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3421 (hash_abbrev): Add comment.
3422 (abbrev_table::lookup_abbrev): Move to header file.
3423 (abbrev_table::read): Update.
3424
7d00ffec
TT
34252020-05-27 Tom Tromey <tromey@adacore.com>
3426
3427 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3428 method.
3429 <canonical_name>: New member.
3430 <raw_name>: Rename from "name".
3431 (partial_die_info): Initialize canonical_name.
3432 (scan_partial_symbols): Check raw_name.
3433 (partial_die_parent_scope, partial_die_full_name)
3434 (add_partial_symbol, add_partial_subprogram)
3435 (add_partial_enumeration, load_partial_dies): Use "name" method.
3436 (partial_die_info::name): New method.
3437 (partial_die_info::read, guess_partial_die_structure_name)
3438 (partial_die_info::fixup): Update.
3439
697bba18
TT
34402020-05-27 Tom Tromey <tromey@adacore.com>
3441
3442 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3443 <get_ref_die_offset>: Inline.
3444 <get_ref_die_offset_complaint>: New method.
3445 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3446 (attribute::get_ref_die_offset_complaint): Rename from
3447 get_ref_die_offset. Just issue complaint.
3448
c17ace43
HD
34492020-05-27 Hannes Domani <ssbssa@yahoo.de>
3450
3451 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3452
96445f0b
HD
34532020-05-27 Hannes Domani <ssbssa@yahoo.de>
3454
3455 * exec.c (exec_file_attach): Use errno value of first openp failure.
3456
ac637ec3
HD
34572020-05-27 Hannes Domani <ssbssa@yahoo.de>
3458
3459 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3460 Don't close thread handle.
3461
17ee85fc
TT
34622020-05-27 Tom Tromey <tom@tromey.com>
3463 Simon Marchi <simon.marchi@efficios.com>
3464
3465 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3466 shared_ptr.
3467 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3468 member.
3469 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3470 dwarf2_per_bfd_objfile_data_key>: New globals.
3471 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3472 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3473 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3474 shared.
3475 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3476 short-circuit when sharing.
3477 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3478 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3479
39b16f87
SM
34802020-05-27 Simon Marchi <simon.marchi@efficios.com>
3481
3482 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3483 to...
3484 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3485 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3486
fcf23d5b
SM
34872020-05-27 Simon Marchi <simon.marchi@efficios.com>
3488
3489 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3490 build_name_components, find_name_components_bounds>:
3491 Add per_objfile parameter.
3492 (struct mapped_index) <symbol_name_at>: Likewise.
3493 (struct mapped_debug_names): Remove constructor.
3494 <dwarf2_per_objfile>: Remove field.
3495 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3496 (mapped_index_base::find_name_components_bounds,
3497 mapped_index_base::build_name_components,
3498 dw2_expand_symtabs_matching_symbol): Likewise.
3499 (class mock_mapped_index) <symbol_name_at>: Likewise.
3500 (check_match): Likewise.
3501 (check_find_bounds_finds): Likewise.
3502 (test_mapped_index_find_name_component_bounds): Update.
3503 (CHECK_MATCH): Update.
3504 (dw2_expand_symtabs_matching): Update.
3505 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3506 per_objfile parameter.
3507 <find_vec_in_debug_names>: Likewise.
3508 <m_per_objfile>: New field.
3509 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3510 parameter.
3511 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3512 (dw2_debug_names_iterator::next): Update.
3513 (dw2_debug_names_lookup_symbol): Update.
3514 (dw2_debug_names_expand_symtabs_for_function): Update.
3515 (dw2_debug_names_map_matching_symbols): Update.
3516 (dw2_debug_names_expand_symtabs_matching): Update.
3517 (dwarf2_read_debug_names): Update.
3518
7188ed02
SM
35192020-05-27 Simon Marchi <simon.marchi@efficios.com>
3520
3521 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3522 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3523 move to dwarf2_per_objfile.
3524 <read_in_chain>: Remove.
3525 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3526 remove_all_cus, age_comp_units>: New methods.
3527 <m_dwarf2_cus>: New member.
3528 (struct dwarf2_per_cu_data) <cu>: Remove.
3529 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3530 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3531 moved to methods of dwarf2_per_objfile.
3532 (dwarf2_clear_marks): Remove.
3533 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3534 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3535 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3536 (dwarf2_per_objfile::remove_all_cus): New.
3537 (class free_cached_comp_units) <~free_cached_comp_units>:
3538 Update.
3539 (load_cu): Update.
3540 (dw2_do_instantiate_symtab): Adjust.
3541 (fill_in_sig_entry_from_dwo_entry): Adjust.
3542 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3543 (cutu_reader::cutu_reader): Likewise.
3544 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3545 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3546 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3547 and dwarf2_per_objfile::age_comp_units.
3548 (load_partial_comp_unit): Update.
3549 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3550 (process_queue): Likewise.
3551 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3552 backlink.
3553 (dwarf2_read_addr_index): Likewise.
3554 (follow_die_offset): Likewise.
3555 (dwarf2_fetch_die_loc_sect_off): Likewise.
3556 (dwarf2_fetch_constant_bytes): Likewise.
3557 (dwarf2_fetch_die_type_sect_off): Likewise.
3558 (follow_die_sig_1): Likewise.
3559 (load_full_type_unit): Likewise.
3560 (read_signatured_type): Likewise.
3561 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3562 (dwarf2_cu::~dwarf2_cu): Remove.
3563 (dwarf2_per_objfile::get_cu): New.
3564 (dwarf2_per_objfile::set_cu): New.
3565 (age_cached_comp_units): Rename to...
3566 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3567 to std::unordered_map.
3568 (free_one_cached_comp_unit): Rename to...
3569 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3570 to std::unordered_map.
3571 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3572 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3573 a dwarf2_per_objfile in data.
3574 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3575 (dwarf2_clear_marks): Remove.
3576
2e671100
SM
35772020-05-27 Simon Marchi <simon.marchi@efficios.com>
3578
3579 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3580 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3581 (init_tu_and_read_dwo_dies): Likewise.
3582 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3583 (cutu_reader::cutu_reader): Likewise.
3584 (load_partial_comp_unit): Likewise.
3585 (process_psymtab_comp_unit): Update.
3586 (build_type_psymtabs_1): Update.
3587 (process_skeletonless_type_unit): Update.
3588 (load_full_comp_unit): Update.
3589 (find_partial_die): Update.
3590 (dwarf2_read_addr_index): Update.
3591 (read_signatured_type): Update.
3592
2e6a9f79
SM
35932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3594
3595 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3596 m_header_read_in>: New fields.
3597 <get_header>: New method.
3598 * dwarf2/read.c (per_cu_header_read_in): Remove.
3599 (dwarf2_per_cu_data::get_header): New.
3600 (dwarf2_per_cu_data::addr_size): Update.
3601 (dwarf2_per_cu_data::offset_size): Update.
3602 (dwarf2_per_cu_data::ref_addr_size): Update.
3603
1b555f17
SM
36042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3605
3606 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3607 (dw2_do_instantiate_symtab): Update.
3608 (queue_and_load_all_dwo_tus): Change parameter from
3609 dwarf2_per_cu_data to dwarf2_cu.
3610 (dwarf2_fetch_die_loc_sect_off): Update.
3611 (dwarf2_fetch_constant_bytes): Update.
3612 (dwarf2_fetch_die_type_sect_off): Update.
3613
8fc0b21d
SM
36142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3615
3616 * dwarf2/read.c (process_full_comp_unit,
3617 process_full_type_unit): Remove per_cu, per_objfile paramters.
3618 Add dwarf2_cu parameter.
3619 (process_queue): Update.
3620
168c9250
SM
36212020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3622
3623 * dwarf2/read.c (create_cu_from_index_list): Replace
3624 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3625 (create_cus_from_index_list): Likewise.
3626 (create_cus_from_index): Likewise.
3627 (create_signatured_type_table_from_index): Likewise.
3628 (create_cus_from_debug_names_list): Likewise.
3629 (create_cus_from_debug_names): Likewise.
3630 (dwarf2_read_gdb_index): Update.
3631 (dwarf2_read_debug_names): Update.
3632
e286671b
TT
36332020-05-27 Tom Tromey <tom@tromey.com>
3634 Simon Marchi <simon.marchi@efficios.com>
3635
3636 * dwarf2/read.h (struct dwarf2_per_objfile)
3637 <get_type_for_signatured_type, set_type_for_signatured_type>:
3638 New methods.
3639 <m_type_map>: New member.
3640 (struct signatured_type) <type>: Remove.
3641 * dwarf2/read.c
3642 (dwarf2_per_objfile::get_type_for_signatured_type,
3643 dwarf2_per_objfile::set_type_for_signatured_type): New.
3644 (get_signatured_type): Use new methods.
3645
8adb8487
TT
36462020-05-27 Tom Tromey <tom@tromey.com>
3647 Simon Marchi <simon.marchi@efficios.com>
3648
3649 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3650 (struct dwarf2_per_objfile) <type_units>: New member.
3651 <get_type_unit_group_unshareable>: New method.
3652 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3653 num_symtabs, symtabs>: Remove; move to
3654 type_unit_group_unshareable.
3655 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3656 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3657 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3658
127bbf4b
SM
36592020-05-27 Simon Marchi <simon.marchi@efficios.com>
3660
3661 * dwarf2/read.h (struct dwarf2_per_cu_data):
3662 <dwarf2_per_objfile>: Remove.
3663 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3664 dwarf2_per_objfile.
3665 (create_signatured_type_table_from_index): Likewise.
3666 (create_signatured_type_table_from_debug_names): Likewise.
3667 (create_debug_type_hash_table): Likewise.
3668 (fill_in_sig_entry_from_dwo_entry): Likewise.
3669 (create_type_unit_group): Likewise.
3670 (read_comp_units_from_section): Likewise.
3671 (create_cus_hash_table): Likewise.
3672
f6e649dd
SM
36732020-05-27 Simon Marchi <simon.marchi@efficios.com>
3674
3675 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3676 dwarf2_per_cu_data::dwarf2_per_objfile.
3677 (compute_compunit_symtab_includes): Likewise.
3678 (dwarf2_cu::start_symtab): Likewise.
3679
aa66c379
SM
36802020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3681
3682 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3683 parameter.
3684 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3685 (read_namespace_alias): Update.
3686 (lookup_die_type): Update.
3687 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3688 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3689 Update.
3690 (disassemble_dwarf_expression): Update.
3691
120ce1b5
SM
36922020-05-27 Simon Marchi <simon.marchi@efficios.com>
3693
3694 * dwarf2/read.h (struct dwarf2_queue_item): Add
3695 dwarf2_per_objfile parameter, assign new parameter.
3696 <per_objfile>: New field.
3697 * dwarf2/read.c (free_one_cached_comp_unit): Add
3698 dwarf2_per_objfile parameter.
3699 (queue_comp_unit): Likewise.
3700 (dw2_do_instantiate_symtab): Update.
3701 (process_psymtab_comp_unit): Update.
3702 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3703 (process_imported_unit_die): Update.
3704 (queue_and_load_dwo_tu): Update.
3705 (follow_die_offset): Update.
3706 (follow_die_sig_1): Update.
3707
9f47c707
SM
37082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3709
3710 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3711 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3712 (read_call_site_scope): Assign per_objfile.
3713 (dwarf2_per_cu_data::objfile): Remove.
3714 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3715 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3716 dwarf2_per_objfile parameter.
3717 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3718 dwarf2_per_objfile parameter.
3719 (dwarf_expr_reg_to_entry_parameter): Add output
3720 dwarf2_per_objfile parameter.
3721 (locexpr_get_frame_base): Update.
3722 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3723 <push_dwarf_reg_entry_value>: Update.
3724 <call_site_to_target_addr>: Update.
3725 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3726 parameter.
3727 (value_of_dwarf_reg_entry): Update.
3728 (rw_pieced_value): Update.
3729 (indirect_synthetic_pointer): Update.
3730 (dwarf2_evaluate_property): Update.
3731 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3732 parameter.
3733 (locexpr_read_variable): Update.
3734 (locexpr_get_symbol_read_needs): Update.
3735 (loclist_read_variable): Update.
3736
14095eb3
SM
37372020-05-27 Simon Marchi <simon.marchi@efficios.com>
3738
3739 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3740 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3741 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3742 parameter.
3743 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3744 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3745 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3746 parameter.
3747 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3748 sect_variable_value): Add dwarf2_per_objfile parameter.
3749 (class dwarf_evaluate_loc_desc) <dwarf_call,
3750 dwarf_variable_value>: Update.
3751 (fetch_const_value_from_synthetic_pointer): Add
3752 dwarf2_per_objfile parameter.
3753 (fetch_const_value_from_synthetic_pointer): Update.
3754 (coerced_pieced_ref): Update.
3755 (class symbol_needs_eval_context) <dwarf_call,
3756 dwarf_variable_value>: Update.
3757 (dwarf2_compile_expr_to_ax): Update.
3758
3c3cd3d4
SM
37592020-05-27 Simon Marchi <simon.marchi@efficios.com>
3760
3761 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3762 parameter.
3763 (dwarf2_evaluate_loc_desc_full): Update.
3764
82ca3f51
SM
37652020-05-27 Simon Marchi <simon.marchi@efficios.com>
3766
3767 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3768 parameter.
3769 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3770 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3771 dwarf2_per_objfile parameter.
3772 (decode_debug_loc_dwo_addresses): Likewise.
3773 (dwarf2_find_location_expression): Update.
3774 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3775 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3776 parameter.
3777 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3778 parameter.
3779 (locexpr_describe_location_1): Likewise.
3780 (locexpr_describe_location): Update.
3781
4b167ea1
SM
37822020-05-27 Simon Marchi <simon.marchi@efficios.com>
3783
3784 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3785 Remove.
3786 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3787 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3788 (dwarf2_compile_property_to_c): Update.
3789 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3790 use text offset from objfile.
3791 (locexpr_tracepoint_var_ref): Update.
3792 (locexpr_generate_c_location): Update.
3793 (loclist_describe_location): Update.
3794 (loclist_tracepoint_var_ref): Update.
3795 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3796 dwarf2_per_objfile parameter.
3797 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3798 use text offset from objfile.
3799 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3800
89b07335
SM
38012020-05-27 Simon Marchi <simon.marchi@efficios.com>
3802
3803 * dwarf2/expr.h (struct dwarf_expr_context)
3804 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3805 <offset>: Remove.
3806 <per_objfile>: New member.
3807 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3808 dwarf2_per_objfile parameter. Don't set offset, set
3809 per_objfile.
3810 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3811 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3812 a dwarf2_per_objfile object instead of an offset.
3813 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3814 constructor.
3815 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3816 to dwarf2_expr_executor constructor. Don't set offset.
3817 (dwarf2_fetch_cfa_info): Update.
3818 (struct dwarf2_frame_cache) <text_offset>: Remove.
3819 <per_objfile>: New field.
3820 (dwarf2_frame_cache): Update.
3821 (dwarf2_frame_prev_register): Update.
3822 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3823 <dwarf_evaluate_loc_desc>: Add constructor.
3824 (dwarf2_evaluate_loc_desc_full): Update.
3825 (dwarf2_locexpr_baton_eval): Update.
3826 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3827 Add constructor.
3828 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3829
293e7e51
SM
38302020-05-27 Simon Marchi <simon.marchi@efficios.com>
3831
3832 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3833 addr_sized_int_type>: Move to dwarf2_cu.
3834 <int_type>: Move to dwarf2_per_objfile.
3835 (struct dwarf2_per_objfile) <int_type>: Move here.
3836 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3837 addr_sized_int_type>: Move here.
3838 (read_func_scope): Update.
3839 (read_array_type): Update.
3840 (read_tag_string_type): Update.
3841 (attr_to_dynamic_prop): Update.
3842 (dwarf2_per_cu_data::int_type): Rename to...
3843 (dwarf2_per_objfile::int_type): ... this.
3844 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3845 (dwarf2_cu::addr_sized_int_type): ... this.
3846 (read_subrange_type): Update.
3847 (dwarf2_per_cu_data::addr_type): Rename to...
3848 (dwarf2_cu::addr_type): ... this.
3849 (set_die_type): Update.
3850
64874a40
SM
38512020-05-27 Simon Marchi <simon.marchi@efficios.com>
3852
3853 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3854 data through per_cu->cu.
3855
4ab09049
SM
38562020-05-27 Simon Marchi <simon.marchi@efficios.com>
3857
3858 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3859 dwarf2_per_cu_data parameter fo dwarf2_cu.
3860 (lookup_dwo_type_unit): Likewise.
3861 (read_cutu_die_from_dwo): Likewise.
3862 (lookup_dwo_unit): Likewise.
3863 (open_and_init_dwo_file): Likewise.
3864 (lookup_dwo_cutu): Likewise.
3865 (lookup_dwo_comp_unit): Likewise.
3866 (lookup_dwo_type_unit): Likewise.
3867 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3868 (cutu_reader::cutu_reader): Update.
3869
47b14e86
SM
38702020-05-27 Simon Marchi <simon.marchi@efficios.com>
3871
3872 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3873 parameter.
3874 (process_full_type_unit): Likewise.
3875 (process_queue): Update.
3876
43182c09
SM
38772020-05-27 Simon Marchi <simon.marchi@efficios.com>
3878
3879 * dwarf2/read.c (recursively_compute_inclusions): Add
3880 dwarf2_per_objfile parameter.
3881 (compute_compunit_symtab_includes): Likewise.
3882 (process_cu_includes): Update.
3883
7aa104c4
SM
38842020-05-27 Simon Marchi <simon.marchi@efficios.com>
3885
3886 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3887 parameter.
3888 (create_type_unit_group): Update.
3889 (process_psymtab_comp_unit_reader): Update.
3890 (build_type_psymtabs_reader): Update.
3891
e3beb21d
SM
38922020-05-27 Simon Marchi <simon.marchi@efficios.com>
3893
3894 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3895 object through m_this_cu->cu.
3896
d460f660
SM
38972020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3898
3899 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3900 the info parameter.
3901 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3902
ab432490
SM
39032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3904
3905 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3906 per_objfile parameter.
3907 (load_full_type_unit): Add per_objfile parameter.
3908 (read_signatured_type): Likewise.
3909 (load_full_comp_unit): Likewise.
3910 (load_cu): Likewise.
3911 (dw2_do_instantiate_symtab): Likewise.
3912 (dw2_get_file_names): Likewise.
3913 (dw2_map_symtabs_matching_filename): Update.
3914 (dw_expand_symtabs_matching_file_matcher): Update.
3915 (dw2_map_symbol_filenames): Update.
3916 (process_psymtab_comp_unit): Add per_objfile parameter.
3917 (build_type_psymtabs_1): Update.
3918 (process_skeletonless_type_unit): Update.
3919 (dwarf2_build_psymtabs_hard): Update.
3920 (load_partial_comp_unit): Add per_objfile parameter.
3921 (scan_partial_symbols): Update.
3922 (load_full_comp_unit): Add per_objfile parameter.
3923 (process_imported_unit_die): Update.
3924 (create_cus_hash_table): Update.
3925 (find_partial_die): Update.
3926 (dwarf2_read_addr_index): Update.
3927 (follow_die_offset): Update.
3928 (dwarf2_fetch_die_loc_sect_off): Update.
3929 (dwarf2_fetch_constant_bytes): Update.
3930 (dwarf2_fetch_die_type_sect_off): Update.
3931 (follow_die_sig_1): Update.
3932 (load_full_type_unit): Add per_objfile parameter.
3933 (read_signatured_type): Likewise.
3934
313bad1b
SM
39352020-05-27 Simon Marchi <simon.marchi@efficios.com>
3936
3937 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3938 of objfile_name.
3939
c3699833
SM
39402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3941
3942 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3943 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3944 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3945 field.
3946 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3947 (create_cus_from_index): Update.
3948 (dwarf2_read_gdb_index): Update.
3949 (create_cus_from_debug_names): Update.
3950 (dwarf2_read_debug_names): Update.
3951 (get_abbrev_section_for_cu): Update.
3952 (create_all_comp_units): Update.
3953 (read_attribute_value): Update.
3954 (get_debug_line_section): Update.
3955 * dwarf2/index-cache.c (index_cache::store): Update.
3956 * dwarf2/index-write.c (save_gdb_index_command): Update.
3957 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3958
1859c670
SM
39592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3960
3961 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3962 member.
3963 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3964 dwarf2_per_cu_data::per_bfd.
3965 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3966 (create_type_unit_group): Likewise.
3967 (queue_comp_unit): Remove reference to
3968 per_cu->dwarf2_per_objfile.
3969 (maybe_queue_comp_unit): Likewise.
3970 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3971 (create_cus_hash_table): Assign new field.
3972
5e22e966
SM
39732020-05-27 Simon Marchi <simon.marchi@efficios.com>
3974
3975 * dwarf2/read.c: Replace
3976 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3977 dwarf2_cu->per_objfile throughout.
3978
97a1449a
SM
39792020-05-27 Simon Marchi <simon.marchi@efficios.com>
3980
3981 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3982 parameter, don't use per_cu->dwarf2_per_objfile.
3983 (dw2_instantiate_symtab): Likewise.
3984 (dw2_find_last_source_symtab): Update.
3985 (dw2_map_expand_apply): Update.
3986 (dw2_lookup_symbol): Update.
3987 (dw2_expand_symtabs_for_function): Update.
3988 (dw2_expand_all_symtabs): Update.
3989 (dw2_expand_symtabs_with_fullname): Update.
3990 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3991 don't use per_cu->dwarf2_per_objfile.
3992 (dw2_expand_marked_cus): Update.
3993 (dw2_find_pc_sect_compunit_symtab): Update.
3994 (dw2_debug_names_lookup_symbol): Update.
3995 (dw2_debug_names_expand_symtabs_for_function): Update.
3996 (dw2_debug_names_map_matching_symbols): Update.
3997 (dwarf2_psymtab::expand_psymtab): Update.
3998
9e021579
SM
39992020-05-27 Simon Marchi <simon.marchi@efficios.com>
4000
4001 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4002 <per_objfile>: New member.
4003 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4004 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4005 call to dwarf2_cu.
4006 (cutu_reader::cutu_reader): Update.
4007 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4008
ae090bdb
SM
40092020-05-27 Simon Marchi <simon.marchi@efficios.com>
4010
4011 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4012 struct dwarf2_per_objfile.
4013 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4014 dwarf2_per_bfd.
4015 * dwarf2/read.c (set_die_type): Update.
4016 (get_die_type_at_offset): Update.
4017
af758d11
SM
40182020-05-27 Tom Tromey <tom@tromey.com>
4019 Simon Marchi <simon.marchi@efficios.com>
4020
4021 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4022 method.
4023 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4024 get_symtab, set_symtab>: New methods.
4025 <m_symtabs>: New field.
4026 (struct dwarf2_psymtab): Derive from partial_symtab.
4027 <readin_p, get_compunit_symtab>: Declare methods.
4028 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4029 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4030 New methods.
4031 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4032 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4033 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4034 (dw2_symtab_iter_next, dw2_print_stats)
4035 (dw2_expand_symtabs_with_fullname)
4036 (dw2_expand_symtabs_matching_one)
4037 (dw_expand_symtabs_matching_file_matcher)
4038 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4039 (dw2_debug_names_iterator::next)
4040 (dw2_debug_names_map_matching_symbols)
4041 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4042 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4043 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4044 New methods.
4045 (get_compunit_symtab, process_full_comp_unit)
4046 (process_full_type_unit): Update.
4047 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4048
5989a64e
SM
40492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4050
4051 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4052 then introduce a new dwarf2_per_objfile type.
4053 <read_line_string>: Move to the new dwarf2_per_objfile type.
4054 <objfile>: Likewise.
4055 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4056 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4057 dwarf2_per_objfile->per_bfd.
4058 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4059 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4060 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4061 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4062 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4063 (dwarf2_per_objfile::locate_sections): Rename to...
4064 (dwarf2_per_bfd::locate_sections): ... this.
4065 (dwarf2_per_objfile::get_cutu): Rename to...
4066 (dwarf2_per_bfd::get_cutu): ... this.
4067 (dwarf2_per_objfile::get_cu): Rename to...
4068 (dwarf2_per_bfd::get_cu): ... this.
4069 (dwarf2_per_objfile::get_tu): Rename to...
4070 (dwarf2_per_bfd::get_tu): ... this.
4071 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4072 (dwarf2_per_bfd::allocate_per_cu): ... this.
4073 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4074 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4075 (get_gdb_index_contents_ftype): Change parameter from
4076 dwarf2_per_objfile to dwarf2_per_bfd.
4077 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4078 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4079
a50264ba
TT
40802020-05-27 Tom Tromey <tom@tromey.com>
4081 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4084 (allocate_piece_closure): Set "per_objfile" member.
4085 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4086 (locexpr_describe_location, loclist_describe_location): Use new
4087 member.
4088 * dwarf2/read.c (read_call_site_scope)
4089 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4090 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4091 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4092 handle_data_member_location): Set per_objfile member.
4093 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4094 member.
4095 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4096
d3473f0c
TT
40972020-05-27 Tom Tromey <tom@tromey.com>
4098
4099 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4100 allocate_signatured_type>: Declare new methods.
4101 <m_num_psymtabs>: New member.
4102 (struct dwarf2_per_cu_data) <index>: New member.
4103 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4104 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4105 (create_cu_from_index_list): Use allocate_per_cu.
4106 (create_signatured_type_table_from_index)
4107 (create_signatured_type_table_from_debug_names)
4108 (create_debug_type_hash_table, add_type_unit)
4109 (read_comp_units_from_section): Use allocate_signatured_type.
4110
5717c425
TT
41112020-05-27 Tom Tromey <tom@tromey.com>
4112
4113 * psymtab.c (partial_map_expand_apply)
4114 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4115 (psym_lookup_global_symbol_language)
4116 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4117 (psym_print_stats, psym_expand_symtabs_for_function)
4118 (psym_map_symbol_filenames, psym_map_matching_symbols)
4119 (psym_expand_symtabs_matching)
4120 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4121 (maintenance_check_psymtabs): Update.
4122 * psympriv.h (struct partial_symtab) <readin_p,
4123 get_compunit_symtab>: Add objfile parameter.
4124 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4125 Likewise.
4126 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4127 get_compunit_symtab>: Likewise.
4128 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4129
45940949
TT
41302020-05-27 Tom Tromey <tom@tromey.com>
4131
4132 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4133 member.
4134 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4135 (create_cu_from_index_list)
4136 (create_signatured_type_table_from_index)
4137 (create_signatured_type_table_from_debug_names)
4138 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4139 (dwarf2_create_include_psymtab)
4140 (create_debug_type_hash_table, add_type_unit)
4141 (create_type_unit_group, read_comp_units_from_section)
4142 (dwarf2_compute_name, create_cus_hash_table)
4143 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4144 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4145 obstack.
4146 (dw2_get_real_path): Likewise. Change argument to
4147 dwarf2_per_objfile.
4148
f8c6d152
LM
41492020-05-27 Luis Machado <luis.machado@linaro.org>
4150
4151 PR tdep/26000
4152 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4153 for ldrd (immediate).
4154
e98d2e6d
PW
41552020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4156
4157 * command.h: Add comment giving the name of class_tui.
4158 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4159 create the fake command for the help for class_tui.
4160
53a47a3e
TT
41612020-05-26 Tom Tromey <tromey@adacore.com>
4162
4163 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4164 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4165 (val_atr): New function.
4166 (value_val_atr): Use it.
4167 * ada-valprint.c (print_optional_low_bound): Change low bound
4168 handling for enums.
4169 (val_print_packed_array_elements): Don't call discrete_position.
4170 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4171 discrete_position for enum types.
4172 * language.c (default_print_array_index): Change type.
4173 * language.h (struct language_defn) <la_print_array_index>: Add
4174 index_type parameter, change type of index_value.
4175 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4176 (default_print_array_index): Update.
4177 * valprint.c (maybe_print_array_index): Don't call
4178 value_from_longest. Update.
4179 (value_print_array_elements): Don't call discrete_position.
4180
0bc2354b
TT
41812020-05-26 Tom Tromey <tromey@adacore.com>
4182
4183 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4184 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4185
1218a4bf
CDA
41862020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4187
4188 PR gdb/13519
4189 * avr-tdep.c (avr_integer_to_address): Return data or code
4190 address accordingly to the second 'type' argument of the
4191 function.
4192
92651b1d
MW
41932020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4194
4195 * infcmd.c, inferior.h: (construct_inferior_arguments):
4196 Moved function from here to gdbsupport/common-inferior.{h,cc}
4197
0a4f5f8c
TT
41982020-05-23 Tom Tromey <tom@tromey.com>
4199
4200 Revert commit eca1f90c:
4201 * NEWS: Remove entry for completion styling.
4202 * completer.c (_rl_completion_prefix_display_length): Move
4203 declaration later.
4204 (gdb_fnprint): Revert.
4205 (gdb_display_match_list_1): Likewise.
4206 * cli/cli-style.c (completion_prefix_style)
4207 (completion_difference_style, completion_suffix_style): Remove.
4208 (_initialize_cli_style): Revert.
4209 * cli/cli-style.h (completion_prefix_style)
4210 (completion_difference_style, completion_suffix_style): Don't
4211 declare.
4212
e08bd6c5
PA
42132020-05-24 Pedro Alves <palves@redhat.com>
4214
4215 * symtab.c (completion_list_add_name): Return boolean indication
4216 of whether the symbol matched.
4217 (completion_list_add_symbol): Don't try to remove C++ aliases if
4218 the symbol didn't match in the first place.
4219 * symtab.h (completion_list_add_name): Return bool.
4220
ceacbf6e
SM
42212020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4222
4223 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4224 type::field.
4225
26f16254
JB
42262020-05-23 Joel Brobecker <brobecker@adacore.com>
4227
4228 GDB 9.2 released.
4229
eca1f90c
TT
42302020-05-23 Tom Tromey <tom@tromey.com>
4231
4232 * NEWS: Add entry for completion styling.
4233 * completer.c (_rl_completion_prefix_display_length): Move
4234 declaration earlier.
4235 (gdb_fnprint): Use completion_style.
4236 (gdb_display_match_list_1): Likewise.
4237 * cli/cli-style.c (completion_prefix_style)
4238 (completion_difference_style, completion_suffix_style): New
4239 globals.
4240 (_initialize_cli_style): Register new globals.
4241 * cli/cli-style.h (completion_prefix_style)
4242 (completion_difference_style, completion_suffix_style): Declare.
4243
51e2cfa2
PA
42442020-05-23 Pedro Alves <palves@redhat.com>
4245
4246 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4247 (parse_escape): Use ISDIGIT instead of isdigit.
4248 (puts_debug): Use gdb_isprint instead of isprint.
4249 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4250 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4251 ISSPACE instead of isspace.
4252 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4253 instead of isspace.
4254 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4255 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4256 instead of isxdigit and ISDIGIT instead of isdigit.
4257
80fc5e77
SM
42582020-05-22 Simon Marchi <simon.marchi@efficios.com>
4259
4260 * gdbtypes.h (struct type) <field>: New method.
4261 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4262 or type::field.
4263
3cabb6b0
SM
42642020-05-22 Simon Marchi <simon.marchi@efficios.com>
4265
4266 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4267 (TYPE_FIELDS): Use type::fields. Change all call sites that
4268 modify the propery to use type::set_fields instead.
4269
1f704f76
SM
42702020-05-22 Simon Marchi <simon.marchi@efficios.com>
4271
4272 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4273 type::num_fields instead.
4274
5e33d5f4
SM
42752020-05-22 Simon Marchi <simon.marchi@efficios.com>
4276
4277 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4278 methods.
4279 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4280 that modify the number of fields to use type::set_num_fields
4281 instead.
4282
9392ebb3
TT
42832020-05-22 Tom Tromey <tromey@adacore.com>
4284
4285 * compile/compile-object-load.h (munmap_list_free): Don't
4286 declare.
4287
7c13f4e8
AB
42882020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4289
4290 * annotate.c (annotate_source_line): Update return type, add call
4291 to update current symtab and line.
4292 * annotate.h (annotate_source_line): Update return type, and
4293 extend header comment.
4294 * source.c (info_line_command): Check annotation_level before
4295 calling annotate_source_line.
4296 * stack.c (print_frame_info): If calling annotate_source_line
4297 returns true, then don't print any other source line information.
4298
aa370940
SM
42992020-05-21 Simon Marchi <simon.marchi@efficios.com>
4300
4301 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4302
84d53fa9
SM
43032020-05-21 Simon Marchi <simon.marchi@efficios.com>
4304
4305 * coffread.c (patch_type): Remove NULL check before xfree.
4306 * corefile.c (set_gnutarget): Likewise.
4307 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4308 * exec.c (build_section_table): Likewise.
4309 * remote.c (remote_target::pass_signals): Likewise.
4310 * utils.c (n_spaces): Likewise.
4311 * cli/cli-script.c (document_command): Likewise.
4312 * i386-windows-tdep.c (core_process_module_section): Likewise.
4313 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4314
9d428aae
SM
43152020-05-20 Simon Marchi <simon.marchi@efficios.com>
4316
4317 * symfile.c (reread_symbols): Clear objfile's section_offsets
4318 vector and section indices, re-compute them by calling
4319 sym_offsets.
4320
250106a7
TT
43212020-05-20 Tom Tromey <tromey@adacore.com>
4322
4323 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4324 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4325
9a0bacfb
TV
43262020-05-20 Tom de Vries <tdevries@suse.de>
4327
4328 PR symtab/25833
4329 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4330
7b958a48
AM
43312020-05-20 Alan Modra <amodra@gmail.com>
4332
4333 PR 25993
4334 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4335 bfd_set_filename.
4336 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4337 passed to bfd_set_filename.
4338 * symfile-mem.c (add_vsyscall_page): Likewise for string
4339 passed to symbol_file_add_from_memory.
4340 (symbol_file_add_from_memory): Make name param a const char* and
4341 don't strdup.
4342
c7e97679
AM
43432020-05-20 Alan Modra <amodra@gmail.com>
4344
4345 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4346 rather than accessing bfd->filename directly.
4347 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4348 and use bfd_section_name.
4349 * dwarf2/frame.c (decode_frame_entry): Likewise.
4350 * exec.c (exec_set_section_address): Likewise.
4351 * solib-aix.c (solib_aix_bfd_open): Likewise.
4352 * stap-probe.c (get_stap_base_address): Likewise.
4353 * symfile.c (reread_symbols): Likewise.
4354
563c591b
TT
43552020-05-19 Tom Tromey <tromey@adacore.com>
4356
4357 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4358
f408d82c
SM
43592020-05-19 Simon Marchi <simon.marchi@efficios.com>
4360
4361 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4362
98c59b52
PA
43632020-05-19 Pedro Alves <palves@redhat.com>
4364
4365 * NEWS (set exec-file-mismatch): Adjust entry.
4366 * exec.c: Include "build-id.h".
4367 (validate_exec_file): Try to match build IDs instead of filenames.
4368 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4369 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4370 and pass down 'warn_if_slow'.
4371 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4372 gdb_bfd_open_closure to pass it down.
4373 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4374
4111f652
PA
43752020-05-19 Pedro Alves <palves@redhat.com>
4376
4377 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4378 * target.c (target_fileio_open_1): Rename to target_fileio_open
4379 and make extern. Use bool.
4380 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4381 (target_fileio_read_alloc_1): Adjust.
4382 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4383 (target_fileio_open_warn_if_slow): Delete declaration.
4384
ad80db5b
PA
43852020-05-19 Pedro Alves <palves@redhat.com>
4386
4387 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4388 Adjust all callers.
4389
1d6ce4d3
YS
43902020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4391
4392 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4393 whether disp is negative.
4394
9005fbbb
SM
43952020-05-19 Simon Marchi <simon.marchi@efficios.com>
4396
4397 * symfile.h (struct symfile_segment_data)
4398 <~symfile_segment_data>: Remove.
4399 <segment_info>: Change to std::vector.
4400 * symfile.c (default_symfile_segments): Update.
4401 * elfread.c (elf_symfile_segments): Update.
4402
68b888ff
SM
44032020-05-19 Simon Marchi <simon.marchi@efficios.com>
4404
4405 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4406 <segments>: New.
4407 <segment_bases, segment_sizes>: Remove.
4408 * symfile.c (default_symfile_segments): Update.
4409 * elfread.c (elf_symfile_segments): Update.
4410 * remote.c (remote_target::get_offsets): Update.
4411 * solib-target.c (solib_target_relocate_section_addresses):
4412 Update.
4413
62982abd
SM
44142020-05-19 Simon Marchi <simon.marchi@efficios.com>
4415
4416 * symfile.h (struct symfile_segment_data): Initialize fields.
4417 <~symfile_segment_data>: Add.
4418 (symfile_segment_data_up): New.
4419 (struct sym_fns) <sym_segments>: Return a
4420 symfile_segment_data_up.
4421 (default_symfile_segments): Return a symfile_segment_data_up.
4422 (free_symfile_segment_data): Remove.
4423 (get_symfile_segment_data): Return a symfile_segment_data_up.
4424 * symfile.c (default_symfile_segments): Likewise.
4425 (get_symfile_segment_data): Likewise.
4426 (free_symfile_segment_data): Remove.
4427 (symfile_find_segment_sections): Update.
4428 * elfread.c (elf_symfile_segments): Return a
4429 symfile_segment_data_up.
4430 * remote.c (remote_target::get_offsets): Update.
4431 * solib-target.c (solib_target_relocate_section_addresses):
4432 Update.
4433 * symfile-debug.c (debug_sym_segments): Return a
4434 symfile_segment_data_up.
4435
7f204339
RO
44362020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4437
e52a0f1b
RO
4438 PR build/25981
4439 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4440 Hardcode register numbers.
4441
7f204339
RO
4442 PR build/25981
4443 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4444 procfs_find_LDT_entry): Remove.
4445 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4446 procfs_find_LDT_entry): Remove.
4447 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4448 Remove.
4449
7f32a4d5
PA
44502020-05-17 Pedro Alves <palves@redhat.com>
4451 Andrew Burgess <andrew.burgess@embecosm.com>
4452 Keno Fischer <keno@juliacomputing.com>
4453
4454 PR gdb/25741
4455 * breakpoint.c (build_target_condition_list): Update comments.
4456 (build_target_command_list): Update comments and skip matching
4457 locations.
4458 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4459 a separate function. Simplify "set breakpoint auto-hw off"
4460 handling.
4461 (insert_breakpoints): Update comment.
4462 (tracepoint_locations_match): New parameter. For breakpoints,
4463 compare location types too, if the caller wants to.
4464 (handle_automatic_hardware_breakpoints): New functions.
4465 (bp_location_is_less_than): Also sort by location type and
4466 hardware breakpoint length.
4467 (update_global_location_list): Handle "set breakpoint auto-hw on"
4468 here.
4469 (update_breakpoint_locations): Ask breakpoint_locations_match to
4470 ignore location types.
4471
7d93a1e0
SM
44722020-05-16 Simon Marchi <simon.marchi@efficios.com>
4473
4474 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4475 type::name instead.
4476
d0e39ea2
SM
44772020-05-16 Simon Marchi <simon.marchi@efficios.com>
4478
4479 * gdbtypes.h (struct type) <name, set_name>: New methods.
4480 (TYPE_CODE): Use type::name. Change all call sites used to set
4481 the name to use type::set_name instead.
4482
2dab0c7b
TT
44832020-05-16 Tom Tromey <tom@tromey.com>
4484
4485 * top.c (quit_force): Update.
4486 * infrun.c (handle_no_resumed): Update.
4487 * top.h (all_uis): New function.
4488 (ALL_UIS): Remove.
4489
59f7bd8d
SM
44902020-05-16 Simon Marchi <simon.marchi@efficios.com>
4491
4492 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4493
9bf058f0
PA
44942020-05-16 Pedro Alves <palves@redhat.com>
4495
4496 * ia64-linux-nat.c
4497 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4498 Declare method.
4499 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4500
8f86ae1a
SM
45012020-05-15 Simon Marchi <simon.marchi@efficios.com>
4502
4503 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4504 (sparc64_adi_info): Likewise.
4505
d6bc0792
TT
45062020-05-15 Tom Tromey <tom@tromey.com>
4507
4508 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4509 block_objfile.
4510 (lookup_objfile_from_block): Remove.
4511 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4512 (lookup_global_symbol): Use block_objfile.
4513 * symtab.h (lookup_objfile_from_block): Don't declare.
4514 * printcmd.c (clear_dangling_display_expressions): Use
4515 block_objfile.
4516 * parse.c (operator_check_standard): Use block_objfile.
4517
8c14c3a3
TT
45182020-05-15 Tom Tromey <tom@tromey.com>
4519
4520 * language.c (language_alloc_type_symbol): Set
4521 SYMBOL_SECTION.
4522 * symtab.c (initialize_objfile_symbol): Remove.
4523 (allocate_symbol): Remove.
4524 (allocate_template_symbol): Remove.
4525 * dwarf2/read.c (fixup_go_packaging): Use "new".
4526 (new_symbol): Use "new".
4527 (read_variable): Don't call initialize_objfile_symbol. Use
4528 "new".
4529 (read_func_scope): Use "new".
4530 * xcoffread.c (process_xcoff_symbol): Don't call
4531 initialize_objfile_symbol.
4532 (SYMBOL_DUP): Remove.
4533 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4534 "new".
4535 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4536 (allocate_template_symbol): Don't declare.
4537 (struct symbol): Add copy constructor. Change defaults.
4538 * jit.c (finalize_symtab): Use "new".
4539 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4540 Use "new".
4541 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4542 (common_block_end): Use "new".
4543 * mdebugread.c (parse_symbol): Use "new".
4544 (new_symbol): Likewise.
4545
5b4a1a8d
PW
45462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4547
4548 * NEWS: Mention changes to help and apropos.
4549
57b4f16e
PW
45502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4551
4552 * command.h (enum command_class): Improve comments, document
4553 that class_alias is for user-defined aliases, give the class
4554 name for each class, remove unused class_xdb.
4555 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4556 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4557 by a precise class.
4558 * infcmd.c (_initialize_infcmd): Likewise.
4559 * reverse.c (_initialize_reverse): Likewise.
4560 * stack.c (_initialize_stack): Likewise.
4561 * symfile.c (_initialize_symfile): Likewise.
4562 * tracepoint.c (_initialize_tracepoint): Likewise.
4563
7c05caf7
PW
45642020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4565
4566 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4567 when their aliased command is traversed.
4568 (help_cmd): Add fput_command_names_styled call to
4569 output command name and aliases when command has an alias.
4570
3b3aaacb
PW
45712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4572
4573 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4574 * cli/cli-decode.c (help_cmd_list): Declare as static,
4575 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4576 a command together with the command.
4577 (fput_command_name_styled, fput_command_names_styled): New functions.
4578 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4579 fput_command_name_styled.
4580 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4581 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4582
7aa1b46f
PW
45832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4584
4585 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4586 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4587 * command.h (cmd_show_list): Likewise.
4588 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4589 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4590
89bcba74
PW
45912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4592
4593 * unittests/command-def-selftests.c (traverse_command_structure):
4594 Verify all commands of a list have the same prefix command and
4595 that only the top cmdlist commands have a null prefix.
4596
3f4d92eb
PW
45972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4598
4599 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4600 as prefix, not one of its aliases.
4601 (set_cmd_prefix): Remove.
4602 (do_add_cmd): Centralize the setting of the prefix of a command, when
4603 command is defined after its full chain of prefix commands.
4604 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4605 (add_setshow_cmd_full): Likewise.
4606 (update_prefix_field_of_prefixed_commands): New function.
4607 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4608 update_prefix_field_of_prefixed_commands.
4609 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4610 addresses of remote_set_cmdlist and remote_show_cmdlist given
4611 as argument, not the address of an argument.
4612 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4613 * gdb/remote.c (_initialize_remote): Likewise.
4614
0605465f
PW
46152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4616
4617 * cli/cli-cmds.c (alias_command): Check for an existing alias
4618 using lookup_cmd_composition, as valid_command_p is too strict
4619 and forbids aliases that are the prefix of an existing alias
4620 or command.
4621 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4622 command is properly recognised as a valid command.
4623
58e6ac70
PW
46242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4625
4626 * unittests/help-doc-selftests.c: Rename to
4627 unittests/command-def-selftests.c
4628 * unittests/command-def-selftests.c (help_doc_tests): Update some
4629 comments.
4630 (command_structure_tests, traverse_command_structure): New namespace
4631 and function.
4632 (command_structure_invariants_tests): New function.
4633 (_initialize_command_def_selftests) Renamed from
4634 _initialize_help_doc_selftests, register command_structure_invariants
4635 selftest.
4636
a7b9ceb8
PW
46372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4638
4639 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4640 an alias of 'show'.
4641
b2188a06
JB
46422020-05-15 Joel Brobecker <brobecker@adacore.com>
4643
4644 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4645 ada_is_fixed_point_type. Update all callers.
4646 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4647 all callers.
4648 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4649 Update all callers.
4650 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4651 print_fixed_point_type. Update all callers.
4652 * ada-valprint.c (ada_value_print_num): Replace call to
4653 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4654
a51951c2
KB
46552020-05-14 Kevin Buettner <kevinb@redhat.com>
4656
4657 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4658 processors.
4659 (cpu_supports_bts): Add CV_AMD case.
4660
29d6859f
LM
46612020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4662 Simon Marchi <simon.marchi@efficios.com>
4663
4664 * infrun.c (stop_all_threads): Collect multiple wait events at
4665 each pass.
4666
78134374
SM
46672020-05-14 Simon Marchi <simon.marchi@efficios.com>
4668
4669 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4670 type::code instead.
4671
67607e24
SM
46722020-05-14 Simon Marchi <simon.marchi@efficios.com>
4673
4674 * gdbtypes.h (struct type) <code, set_code>: New methods.
4675 (TYPE_CODE): Use type::code. Change all call sites used to set
4676 the code to use type::set_code instead.
4677
a05575d3
TBA
46782020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4679 Tom de Vries <tdevries@suse.de>
4680 Pedro Alves <palves@redhat.com>
4681
4682 PR threads/25478
4683 * infrun.c (stop_all_threads): Do NOT ignore
4684 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4685 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4686 received.
4687 (handle_no_resumed): Remove code handling a live inferior with no
4688 threads.
4689 * remote.c (has_single_non_exited_thread): New.
4690 (remote_target::update_thread_list): Do not delete a thread if is
4691 the last thread of the process.
4692 * thread.c (thread_select): Call delete_exited_threads instead of
4693 prune_threads.
4694
6ad82919
TBA
46952020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4696
4697 * infrun.c (stop_all_threads): Enable/disable thread events of all
4698 targets. Move a debug message denoting the end of the function
4699 into the SCOPED_EXIT block.
4700
d890404b
TBA
47012020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4702
4703 * process-stratum-target.h: Include <set>.
4704 (all_non_exited_process_targets, switch_to_target_no_thread): New
4705 function declarations.
4706 * process-stratum-target.c (all_non_exited_process_targets)
4707 (switch_to_target_no_thread): New function implementations.
4708
293b3ebc
TBA
47092020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4710
4711 * infrun.c (handle_inferior_event): Extract out a piece of code
4712 into...
4713 (mark_non_executing_threads): ...this new function.
4714
7ca9b62a
TBA
47152020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4716
4717 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4718 use.
4719
fc75c28b
TBA
47202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4721
4722 * regcache.c (regcache_read_pc_protected): New function
4723 implementation that returns 0 if the PC cannot read via
4724 'regcache_read_pc'.
4725 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4726 instead of 'regcache_read_pc'.
4727 (keep_going_pass_signal): Ditto.
4728
a89febbd
TT
47292020-05-13 Tom Tromey <tromey@adacore.com>
4730
4731 * ada-lang.c (align_value): Remove.
4732 (ada_template_to_fixed_record_type_1): Use align_up.
4733
f7e23710
TBA
47342020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4735
4736 * async-event.c: Update the copyright year.
4737 * async-event.h: Update the copyright year.
4738
02ff80c2
SM
47392020-05-12 Simon Marchi <simon.marchi@efficios.com>
4740
4741 * objfiles.h (is_addr_in_objfile,
4742 shared_objfile_contains_address_p): Return bool.
4743 * objfile.c (is_addr_in_objfile,
4744 shared_objfile_contains_address_p): Return bool.
4745
4fd6c7e8
TT
47462020-05-11 Tom Tromey <tromey@adacore.com>
4747
4748 * cli/cli-cmds.c (info_command): Restore.
4749 (_initialize_cli_cmds): Use add_prefix_command for "info".
4750 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4751
5eb68a39
TT
47522020-05-11 Tom Tromey <tromey@adacore.com>
4753
4754 * ada-lang.c (ada_value_primitive_field): Now public.
4755 * ada-lang.h (ada_value_primitive_field): Declare.
4756 * ada-valprint.c (print_field_values): Use
4757 ada_value_primitive_field for wrapper fields.
4758
7666722f
TV
47592020-05-11 Tom de Vries <tdevries@suse.de>
4760
4761 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4762 MODULE_DOMAIN.
4763
3ee6bb11
TV
47642020-05-11 Tom de Vries <tdevries@suse.de>
4765
4766 PR symtab/25941
4767 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4768 with length 0, if not gdb-produced.
4769 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4770
43434996
TV
47712020-05-09 Tom de Vries <tdevries@suse.de>
4772
4773 PR gdb/25955
4774 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4775 calculation.
4776
2f78cffc
TT
47772020-05-09 Tom Tromey <tom@tromey.com>
4778
4779 * top.c (server_command): Now bool.
4780 * top.h (server_command): Now bool.
4781
4f7bc5ed
TT
47822020-05-08 Tom Tromey <tromey@adacore.com>
4783
4784 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4785 already being processed.
4786
8be4b118
TT
47872020-05-08 Tom Tromey <tom@tromey.com>
4788
4789 * printcmd.c (struct display) <next>: Remove.
4790 <display>: New constructor.
4791 <exp_string>: Now a std::string.
4792 <enabled_p>: Now a bool.
4793 (display_number): Move definition earlier.
4794 (displays): Rename from display_chain. Now a std::vector.
4795 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4796 (display_command): Update.
4797 (do_one_display, disable_display)
4798 (enable_disable_display_command, do_enable_disable_display):
4799 Update.
4800 (free_display): Remove.
4801 (clear_displays): Rewrite.
4802 (delete_display): Update.
4803 (map_display_numbers): Use function_view. Remove "data"
4804 parameter. Update.
4805 (do_delete_display): Remove.
4806 (undisplay_command): Update.
4807 (do_one_display, do_displays, disable_display)
4808 (info_display_command): Update.
4809 (do_enable_disable_display): Remove.
4810 (enable_disable_display_command)
4811 (clear_dangling_display_expressions): Update.
4812
94c93c35
TT
48132020-05-08 Tom Tromey <tom@tromey.com>
4814
4815 * symtab.c (set_symbol_cache_size)
4816 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4817 (maintenance_print_symbol_cache_statistics): Update.
4818 * symmisc.c (print_symbol_bcache_statistics)
4819 (print_objfile_statistics, maintenance_print_objfiles)
4820 (maintenance_info_symtabs, maintenance_check_symtabs)
4821 (maintenance_expand_symtabs, maintenance_info_line_tables):
4822 Update.
4823 * symfile-debug.c (set_debug_symfile): Update.
4824 * source.c (forget_cached_source_info): Update.
4825 * python/python.c (gdbpy_progspaces): Update.
4826 * psymtab.c (maintenance_info_psymtabs): Update.
4827 * probe.c (parse_probes): Update.
4828 * linespec.c (iterate_over_all_matching_symtabs)
4829 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4830 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4831 * exec.c (exec_target::close): Update.
4832 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4833 * breakpoint.c (print_one_breakpoint_location)
4834 (create_longjmp_master_breakpoint)
4835 (create_std_terminate_master_breakpoint): Update.
4836 * progspace.c (program_spaces): Now a std::vector.
4837 (maybe_new_address_space): Update.
4838 (add_program_space): Remove.
4839 (program_space::program_space): Update.
4840 (remove_program_space): Update.
4841 (number_of_program_spaces): Remove.
4842 (print_program_space, update_address_spaces): Update.
4843 * progspace.h (program_spaces): Change type.
4844 (ALL_PSPACES): Remove.
4845 (number_of_program_spaces): Don't declare.
4846 (struct program_space) <next>: Remove.
4847
a1fd1ac9
TT
48482020-05-08 Tom Tromey <tom@tromey.com>
4849
4850 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4851 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4852 (enable_break): Update.
4853 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4854 (frv_fdpic_find_canonical_descriptor): Update.
4855 (frv_fetch_objfile_link_map): Update.
4856 * progspace.c (program_space::free_all_objfiles): Update.
4857 (program_space::solibs): New method.
4858 * progspace.h (struct program_space) <solibs>: New method.
4859 * solist.h (master_so_list): Don't declare.
4860 (ALL_SO_LIBS): Remove.
4861 * solib.h (so_list_head): Remove.
4862 (update_solib_list): Update comment.
4863 * solib.c (master_so_list): Remove.
4864 (solib_used, update_solib_list, solib_add)
4865 (info_sharedlibrary_command, clear_solib)
4866 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4867
38eae084
TT
48682020-05-08 Tom Tromey <tom@tromey.com>
4869
4870 * extension.c (extension_languages): Now a std::array.
4871 (ALL_EXTENSION_LANGUAGES): Remove.
4872 (get_ext_lang_defn, get_ext_lang_of_file)
4873 (eval_ext_lang_from_control_command): Update.
4874 (finish_ext_lang_initialization)
4875 (auto_load_ext_lang_scripts_for_objfile)
4876 (ext_lang_type_printers::ext_lang_type_printers)
4877 (apply_ext_lang_type_printers)
4878 (ext_lang_type_printers::~ext_lang_type_printers)
4879 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4880 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4881 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4882 (get_matching_xmethod_workers, ext_lang_colorize)
4883 (ext_lang_before_prompt): Update.
4884 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4885
596dc4ad
TT
48862020-05-08 Tom Tromey <tom@tromey.com>
4887
4888 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4889 overload.
4890 <swap_string, m_string>: Remove.
4891 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4892 Update.
4893 * stabsread.c (define_symbol, read_type): Update.
4894 * linespec.c (find_linespec_symbols): Update.
4895 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4896 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4897 * dbxread.c (read_dbx_symtab): Update.
4898 * cp-support.h (cp_canonicalize_string_full)
4899 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4900 Return unique_xmalloc_ptr.
4901 * cp-support.c (inspect_type): Update.
4902 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4903 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4904 Likewise.
4905 * c-typeprint.c (print_name_maybe_canonical): Update.
4906 * break-catch-throw.c (check_status_exception_catchpoint):
4907 Update.
4908
bf4cb9be
TV
49092020-05-08 Tom de Vries <tdevries@suse.de>
4910
4911 * infrun.c (follow_fork): Copy current_line and current_symtab to
4912 child thread.
4913
a1b68f28
SM
49142020-05-07 Simon Marchi <simon.marchi@efficios.com>
4915
4916 * async-event.c (struct async_signal_handler, struct
4917 async_event_handler): Reformat, remove typedef.
4918
98d48915
SM
49192020-05-07 Simon Marchi <simon.marchi@efficios.com>
4920
4921 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4922 access thistype->main_type->dyn_prop_list directly.
4923
7aa91313
SM
49242020-05-07 Simon Marchi <simon.marchi@efficios.com>
4925
4926 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4927 (remove_dyn_prop): Remove. Update all users to use
4928 type::remove_dyn_prop.
4929 * gdbtypes.c (remove_dyn_prop): Rename to...
4930 (type::remove_dyn_prop): ... this.
4931
5c54719c
SM
49322020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4933
4934 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4935 (add_dyn_prop): Remove. Update all users to use
4936 type::add_dyn_prop.
4937 * gdbtypes.c (add_dyn_prop): Rename to...
4938 (type::add_dyn_prop): ... this.
4939
24e99c6c
SM
49402020-05-07 Simon Marchi <simon.marchi@efficios.com>
4941
4942 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4943 (get_dyn_prop): Remove. Update all users to use
4944 type::dyn_prop.
4945 * gdbtypes.c (get_dyn_prop): Rename to...
4946 (type::dyn_prop): ... this.
4947
0d4bf016
SM
49482020-05-06 Simon Marchi <simon.marchi@efficios.com>
4949
4950 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4951
ac4a4f1c
SM
49522020-05-06 Simon Marchi <simon.marchi@efficios.com>
4953
4954 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4955 instruction, skip it if it's there.
4956
a3bbacc1
SM
49572020-05-05 Simon Marchi <simon.marchi@efficios.com>
4958
4959 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4960
c3236f84
SM
49612020-05-04 Simon Marchi <simon.marchi@efficios.com>
4962
4963 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4964 * gdbtypes.c (recursive_dump_type): Remove use of
4965 TYPE_INCOMPLETE.
4966
3b6acaee
TT
49672020-05-03 Tom Tromey <tom@tromey.com>
4968
4969 * breakpoint.c (catch_command, tcatch_command): Remove.
4970 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4971 add_show_prefix_cmd.
4972 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4973 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4974 Remove.
4975 (add_internal_problem_command): Use add_basic_prefix_cmd,
4976 add_show_prefix_cmd.
4977 * mips-tdep.c (set_mipsfpu_command): Remove.
4978 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4979 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4980 (_initialize_index_cache): Use add_basic_prefix_cmd.
4981 * memattr.c (dummy_cmd): Remove.
4982 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4983 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4984 (_initialize_tui_win): Use add_basic_prefix_cmd,
4985 add_show_prefix_cmd.
4986 * cli/cli-logging.c (set_logging_command): Remove.
4987 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4988 add_show_prefix_cmd.
4989 (show_logging_command): Remove.
4990 * target.c (target_command): Remove.
4991 (add_target): Use add_basic_prefix_cmd.
4992
a51119cd
HD
49932020-05-02 Hannes Domani <ssbssa@yahoo.de>
4994
4995 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4996
652fc23a 49972020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4998
652fc23a
PW
4999 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5000 info_command.
5001
117539e6
KR
50022020-04-30 Kamil Rytarowski <n54@gmx.com>
5003
5004 * nbsd-nat.c (nbsd_enable_proc_events)
5005 (nbsd_nat_target::post_startup_inferior): Add.
5006 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5007 (nbsd_nat_target::update_thread_list): Rewrite.
5008 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5009 "PTRACE_LWP_CREATE".
5010 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5011
102e38eb 50122020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5013
102e38eb
PW
5014 * stack.c (_initialize_stack): Remove duplicated creation
5015 of "frame" command and "f" alias.
5016
ee9d1e5f
HD
50172020-04-30 Hannes Domani <ssbssa@yahoo.de>
5018
5019 PR gdb/18706
5020 * gdbtypes.c (check_typedef): Calculate size of array of
5021 stubbed type.
5022
627c7fb8
HD
50232020-04-30 Hannes Domani <ssbssa@yahoo.de>
5024
5025 PR gdb/15559
5026 * i386-tdep.c (i386_push_dummy_call): Call
5027 i386_thiscall_push_dummy_call.
5028 (i386_thiscall_push_dummy_call): New function.
5029 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5030 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5031 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5032
ffc2844e
SM
50332020-04-29 Simon Marchi <simon.marchi@efficios.com>
5034
5035 * gdbarch.sh (do_read): Add shellcheck disable directive for
5036 warning SC2162.
5037
1207375d
SM
50382020-04-29 Simon Marchi <simon.marchi@efficios.com>
5039
5040 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5041 "referenced but not assigned" warning.
5042
9fdb2916
SM
50432020-04-29 Simon Marchi <simon.marchi@efficios.com>
5044
5045 * gdbarch.sh: Remove code that sets fallbackdefault.
5046
759cea5e
SM
50472020-04-29 Simon Marchi <simon.marchi@efficios.com>
5048
5049 * gdbarch.sh: Use shell operators && and || instead of
5050 -a and -o.
5051
cb02ab24
SM
50522020-04-29 Simon Marchi <simon.marchi@efficios.com>
5053
5054 * gdbarch.sh: Use $(...) instead of `...`.
5055
a6fc5ffc
SM
50562020-04-29 Simon Marchi <simon.marchi@efficios.com>
5057
5058 * gdbarch.sh: Use double quotes around variables.
5059
8d113d13
SM
50602020-04-29 Simon Marchi <simon.marchi@efficios.com>
5061
5062 * gdbarch.sh: Use %s with printf, instead of variables in the
5063 format string.
5064
ed6acedd
TT
50652020-04-29 Tom Tromey <tromey@adacore.com>
5066
5067 PR ada/25875:
5068 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5069 type fields here.
5070 (read_enumeration_type): Call
5071 update_enumeration_type_from_children later. Update comments.
5072 (process_enumeration_scope): Don't create type fields.
5073
b68b1b58
KR
50742020-04-29 Kamil Rytarowski <n54@gmx.com>
5075
5076 * nbsd-tdep.c: Include "xml-syscall.h".
5077 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5078
f94b2e03
KR
50792020-04-29 Kamil Rytarowski <n54@gmx.com>
5080
5081 * nbsd-nat.c: Include "sys/wait.h".
5082 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5083 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5084 (nbsd_nat_target::remove_exec_catchpoint)
5085 (nbsd_nat_target::set_syscall_catchpoint): Add.
5086 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5087 (nbsd_nat_target::insert_exec_catchpoint)
5088 (nbsd_nat_target::remove_exec_catchpoint)
5089 (nbsd_nat_target::set_syscall_catchpoint): Add.
5090 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5091 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5092 `nbsd_get_syscall_number'.
5093
fc49bc72
TT
50942020-04-29 Tom Tromey <tom@tromey.com>
5095
5096 * stack.c (print_block_frame_labels): Remove.
5097
d642b692
HD
50982020-04-29 Hannes Domani <ssbssa@yahoo.de>
5099
5100 PR gdb/17320
5101 * ada-valprint.c (val_print_packed_array_elements): Move array
5102 end bracket to new line.
5103 (ada_val_print_string): Remove extra spaces before first array
5104 element.
5105 * c-valprint.c (c_value_print_array): Likewise.
5106 * m2-valprint.c (m2_print_array_contents): Likewise.
5107 (m2_value_print_inner): Likewise.
5108 * p-valprint.c (pascal_value_print_inner): Likewise.
5109 * valprint.c (generic_val_print_array): Likewise.
5110 (value_print_array_elements): Move first array element and array
5111 end bracket to new line.
5112
ea90f227
TV
51132020-04-29 Tom de Vries <tdevries@suse.de>
5114
5115 PR symtab/25889
5116 * linespec.c (find_method): Fix ix calculation.
5117
4498ef4f
KR
51182020-04-28 Kamil Rytarowski <n54@gmx.com>
5119
5120 * syscalls/update-netbsd.sh: New file.
5121 * syscalls/netbsd.xml: Regenerate.
5122 * data-directory/Makefile.in: Register `netbsd.xml' in
5123 `SYSCALLS_FILES'.
5124
a55e30b5
SM
51252020-04-28 Simon Marchi <simon.marchi@efficios.com>
5126
5127 * syscalls/update-freebsd.sh: Add double quotes.
5128
2b2fbab8
TT
51292020-04-28 Tom Tromey <tom@tromey.com>
5130
5131 * NEWS: Update.
5132 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5133 (cmdpy_init): Allow class_tui.
5134
a65189c9
TV
51352020-04-28 Mark Williams <mark@myosotissp.com>
5136
5137 PR gdb/24480
5138 * dwarf2read.c: Add missing assingments to list_in_scope when
5139 start_symtab was already called.
5140
1b95cdb7
SM
51412020-04-28 Simon Marchi <simon.marchi@efficios.com>
5142
5143 PR gdb/25881
5144 * dwarf2/read.c (offset_map_type): Use
5145 gdb:hash_enum<sect_offset> as hash function.
5146
15cd93d0
TV
51472020-04-28 Tom de Vries <tdevries@suse.de>
5148
5149 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5150 with DW_AT_signature.
5151
1eb39914
SM
51522020-04-27 Simon Marchi <simon.marchi@efficios.com>
5153
5154 * configure.ac: Remove check for fs_base/gs_base in
5155 user_regs_struct.
5156 * configure: Re-generate.
5157 * config.in: Re-generate.
5158 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5159 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5160 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5161
991a3e2e
LM
51622020-04-27 Luis Machado <luis.machado@linaro.org>
5163
5164 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5165 problematic inline frame unwinding situation.
5166 * frame.c (frame_id_computed_p): New function.
5167 * frame.h (frame_id_computed_p): New prototype.
5168
361ba0e8
TT
51692020-04-26 Tom Tromey <tom@tromey.com>
5170
5171 * command.h (enum command_class) <class_pseudo>: Remove.
5172
bc3609fd
PW
51732020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5174
5175 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5176 and whitespace.
5177
b9771db7
KR
51782020-04-25 Kamil Rytarowski <n54@gmx.com>
5179
ec16513e
SM
5180 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5181 `PT_GET_PROCESS_STATE' block.
b9771db7 5182
7151c1af
TT
51832020-04-24 Tom Tromey <tom@tromey.com>
5184
5185 * symtab.h (symbol_get_demangled_name): Don't declare.
5186 * symtab.c (symbol_get_demangled_name): Remove.
5187 (general_symbol_info::natural_name)
5188 (general_symbol_info::demangled_name): Update.
5189
906bb4c5
TT
51902020-04-24 Tom Tromey <tom@tromey.com>
5191
5192 PR rust/25025:
5193 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5194
bcfe6157
TT
51952020-04-24 Tom Tromey <tom@tromey.com>
5196
5197 PR symtab/12707:
5198 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5199 exists.
5200 (new_symbol): Likewise.
5201 * compile/compile-object-load.c (get_out_value_type): Use
5202 symbol_matches_search_name.
5203
f049a313
TT
52042020-04-24 Tom Tromey <tom@tromey.com>
5205
5206 * dwarf2/read.c (add_partial_symbol): Do not call
5207 compute_and_set_names.
5208
76e288d1
TT
52092020-04-24 Tom Tromey <tom@tromey.com>
5210
5211 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5212 overload.
5213
2467f4f6
TT
52142020-04-24 Tom Tromey <tom@tromey.com>
5215
5216 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5217 (add_psymbol_to_list): New overload. Make old overload call new
5218 one.
5219 * psympriv.h (add_psymbol_to_list): New overload.
5220
e61108c9
TT
52212020-04-24 Tom Tromey <tom@tromey.com>
5222
5223 * dwarf2/read.c (partial_die_info::read) <case
5224 DW_AT_linkage_name>: Use value_as_string.
5225 (dwarf2_string_attr): Use value_as_string.
5226 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5227 method.
5228 * dwarf2/attribute.c (attribute::value_as_string): New method.
5229
8c87a452
TT
52302020-04-24 Tom Tromey <tom@tromey.com>
5231
5232 * symtab.c (general_symbol_info::natural_name)
5233 (general_symbol_info::demangled_name): Check for language_rust.
5234
787de330
TT
52352020-04-24 Tom Tromey <tom@tromey.com>
5236
5237 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5238 (dwarf2_physname): ... from here.
5239 (partial_die_info::read): Add Rust "{" hack.
5240
ff985671
TT
52412020-04-24 Tom Tromey <tom@tromey.com>
5242
5243 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5244 method.
5245 (symbol_set_demangled_name): Don't declare.
5246 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5247 symbol_set_demangled_name.
5248 (general_symbol_info::set_language)
5249 (general_symbol_info::compute_and_set_names): Update.
5250 * minsyms.c (minimal_symbol_reader::install): Update.
5251 * dwarf2/read.c (new_symbol): Update.
5252
1acda803
TT
52532020-04-24 Tom Tromey <tromey@adacore.com>
5254
5255 PR python/23662:
5256 * python/py-type.c (convert_field): Handle
5257 FIELD_LOC_KIND_DWARF_BLOCK.
5258 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5259 (typy_get_dynamic): Nw function.
5260 (type_object_getset): Add "dynamic".
5261 * NEWS: Add entry.
5262
d656f129
TT
52632020-04-24 Tom Tromey <tromey@adacore.com>
5264
5265 * ada-typeprint.c (print_choices, print_variant_part)
5266 (print_record_field_types_dynamic): New functions.
5267 (print_record_field_types): Use print_record_field_types_dynamic.
5268
7d79de9a
TT
52692020-04-24 Tom Tromey <tromey@adacore.com>
5270
5271 * dwarf2/read.c (handle_data_member_location): New overload.
5272 (dwarf2_add_field): Use it.
5273 (decode_locdesc): Add "computed" parameter. Update comment.
5274 * gdbtypes.c (is_dynamic_type_internal): Also look for
5275 FIELD_LOC_KIND_DWARF_BLOCK.
5276 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5277 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5278 virtual base classes.
5279 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5280 FIELD_LOC_KIND_DWARF_BLOCK.
5281
f8e89861
TT
52822020-04-24 Tom Tromey <tromey@adacore.com>
5283
5284 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5285 * gdbtypes.c (is_dynamic_type_internal): Check
5286 TYPE_HAS_DYNAMIC_LENGTH.
5287 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5288 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5289 New macros.
5290 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5291 constant.
5292
9c6a1327
TT
52932020-04-24 Tom Tromey <tromey@adacore.com>
5294
5295 * dwarf2/read.c (struct variant_field): Rewrite.
5296 (struct variant_part_builder): New.
5297 (struct nextfield): Remove "variant" field. Add "offset".
5298 (struct field_info): Add "current_variant_part" and
5299 "variant_parts".
5300 (alloc_discriminant_info): Remove.
5301 (alloc_rust_variant): New function.
5302 (quirk_rust_enum): Update.
5303 (dwarf2_add_field): Set "offset" member. Don't handle
5304 DW_TAG_variant_part.
5305 (offset_map_type): New typedef.
5306 (convert_variant_range, create_one_variant)
5307 (create_one_variant_part, create_variant_parts)
5308 (add_variant_property): New functions.
5309 (dwarf2_attach_fields_to_type): Call add_variant_property.
5310 (read_structure_type): Don't handle DW_TAG_variant_part.
5311 (handle_variant_part, handle_variant): New functions.
5312 (handle_struct_member_die): Use them.
5313 (process_structure_scope): Don't handle variant parts.
5314 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5315 (struct discriminant_info): Remove.
5316 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5317 (struct main_type) <flag_discriminated_union>: Remove.
5318 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5319 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5320 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5321 Update.
5322 * valops.c (value_union_variant): Remove.
5323 * value.h (value_union_variant): Don't declare.
5324
b249d2c2
TT
53252020-04-24 Tom Tromey <tromey@adacore.com>
5326
5327 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5328 (ada_value_primitive_packed_val): Update.
5329 * ada-valprint.c (ada_value_print_1): Update.
5330 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5331 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5332 just an address. Use evaluate_for_locexpr_baton.
5333 (dwarf2_evaluate_property): Update.
5334 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5335 array_view.
5336 * findvar.c (default_read_var_value): Update.
5337 * gdbtypes.c (compute_variant_fields_inner)
5338 (resolve_dynamic_type_internal): Update.
5339 (resolve_dynamic_type): Change type of valaddr parameter.
5340 * gdbtypes.h (resolve_dynamic_type): Update.
5341 * valarith.c (value_subscripted_rvalue): Update.
5342 * value.c (value_from_contents_and_address): Update.
5343
61122aa9
TT
53442020-04-24 Tom Tromey <tromey@adacore.com>
5345
5346 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5347 "push_initial_value" parameter.
5348 (dwarf2_evaluate_property): Likewise.
5349 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5350
ef83a141
TT
53512020-04-24 Tom Tromey <tromey@adacore.com>
5352
5353 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5354 (variant::matches, compute_variant_fields_recurse)
5355 (compute_variant_fields_inner, compute_variant_fields): New
5356 functions.
5357 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5358 Use resolved_type after type is made.
5359 (operator==): Add new cases.
5360 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5361 (struct discriminant_range, struct variant, struct variant_part):
5362 New.
5363 (union dynamic_prop_data) <variant_parts, original_type>: New
5364 members.
5365 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5366 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5367 constants.
5368 * value.c (unpack_bits_as_long): Now public.
5369 * value.h (unpack_bits_as_long): Declare.
5370
675127ec
TT
53712020-04-24 Tom Tromey <tromey@adacore.com>
5372
5373 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5374 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5375
9852ceef
HD
53762020-04-24 Hannes Domani <ssbssa@yahoo.de>
5377
5378 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5379
7632c6ce
KR
53802020-04-24 Kamil Rytarowski <n54@gmx.com>
5381
5382 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5383 (remove_fork_catchpoint, post_startup_inferior)
5384 (post_attach): Move...
5385 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5386 (remove_fork_catchpoint, post_startup_inferior)
5387 (post_attach): ...here.
5388 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5389 (remove_fork_catchpoint, post_startup_inferior)
5390 (post_attach): Move...
5391 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5392 (remove_fork_catchpoint, post_startup_inferior)
5393 (post_attach): ...here.
5394
7be2bb4f
TT
53952020-04-24 Tom Tromey <tromey@adacore.com>
5396
5397 * nat/windows-nat.h (struct windows_thread_info)
5398 <pc_adjusted>: New member.
5399 * windows-nat.c (windows_fetch_one_register): Check
5400 pc_adjusted.
5401 (windows_nat_target::get_windows_debug_event)
5402 (windows_nat_target::wait): Set pc_adjusted.
5403
f80cb3b4
TV
54042020-04-24 Tom de Vries <tdevries@suse.de>
5405
5406 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5407 Run gdb-add-index inside temp dir.
5408
29514b87
TT
54092020-04-23 Tom Tromey <tromey@adacore.com>
5410
5411 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5412 in loop.
5413
5939967b
LM
54142020-04-23 Luis Machado <luis.machado@linaro.org>
5415
5416 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5417 get_frame_register instead of gdbarch_unwind_pc.
5418
70bc38f5
TV
54192020-04-23 Tom de Vries <tdevries@suse.de>
5420
5421 * symtab.c (lookup_global_symbol): Prefer def over decl.
5422
de82891c
TV
54232020-04-23 Tom de Vries <tdevries@suse.de>
5424
5425 PR symtab/25807
5426 * block.c (best_symbol, better_symbol): Promote to external.
5427 * block.h (best_symbol, better_symbol): Declare.
5428 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5429 decl.
5430
ecc6c606
TT
54312020-04-23 Tom Tromey <tromey@adacore.com>
5432
5433 PR ada/25837:
5434 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5435 "const char *", not a "const std::string &".
5436 <name_and_matcher::operator==>: Update.
5437 * unittests/lookup_name_info-selftests.c: Change type of
5438 "result".
5439
740480b8
TT
54402020-04-23 Tom Tromey <tom@tromey.com>
5441
5442 * inferior.h (iterate_over_inferiors): Don't declare.
5443 * inferior.c (iterate_over_inferiors): Remove.
5444 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5445 Remove.
5446 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5447 use iterate_over_inferiors.
5448 (darwin_resume_inferior_it)
5449 (struct resume_inferior_threads_param)
5450 (darwin_resume_inferior_threads_it): Remove.
5451 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5452
ae3ab1f0
TV
54532020-04-23 Tom de Vries <tdevries@suse.de>
5454
5455 * blockframe.c (find_pc_partial_function): Use
5456 find_pc_sect_compunit_symtab rather than
5457 objfile->sf->qf->find_pc_sect_compunit_symtab.
5458
317d2668
TV
54592020-04-22 Tom de Vries <tdevries@suse.de>
5460
5461 PR symtab/25764
5462 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5463 in psymtabs.
5464
eea9e357
TV
54652020-04-22 Tom de Vries <tdevries@suse.de>
5466
5467 PR symtab/25801
5468 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5469 symtabs.
5470
3d5afab3
TV
54712020-04-22 Tom de Vries <tdevries@suse.de>
5472
5473 PR symtab/25700
5474 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5475 CU if already created.
5476
d43b7a2d
TBA
54772020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5478
5479 * infrun.c (displaced_step_fixup): Switch to the event_thread
5480 before calling displaced_step_restore, not after.
5481
d89edf9b
MM
54822020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5483
5484 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5485 its inferior is not recorded by us.
5486 (record_btrace_target_open): Replace call to
5487 all_non_exited_threads () with call to current_inferior
5488 ()->non_exited_threads ().
5489 (record_btrace_target::stop_recording): Likewise.
5490 (record_btrace_target::close): Likewise.
5491 (record_btrace_target::wait): Likewise.
5492 (record_btrace_target::record_stop_replaying): Likewise.
5493
5897fd49
MM
54942020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5495
5496 * btrace.c (btrace_enable): Throw an error on double enables and
5497 when enabling recording fails.
5498 (btrace_disable): Throw an error if the thread is not recorded.
5499
1a476b6d
MM
55002020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5501
5502 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5503 request if we do not have a thread_info.
5504
4778a5f8
TV
55052020-04-21 Tom de Vries <tdevries@suse.de>
5506
5507 PR gdb/25471
5508 * thread.c
5509 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5510 exception in get_frame_id.
5511
0fa7617d
TT
55122020-04-20 Tom Tromey <tromey@adacore.com>
5513
5514 * python/python.c (struct gdbpy_event): Mark move constructor as
5515 noexcept.
5516 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5517 constructor as noexcept.
5518 * completer.h (struct completion_result): Mark move constructor as
5519 noexcept.
5520 * completer.c (completion_result::completion_result): Use
5521 initialization style. Don't call reset_match_list.
5522
ad23bda0
MS
55232020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5524
5525 * MAINTAINERS (Write After Approval): Add myself.
5526
45e1f031
TT
55272020-04-18 Tom Tromey <tom@tromey.com>
5528
5529 * windows-tdep.c (init_w32_command_list)
5530 (w32_prefix_command_valid): Restore.
5531 (_initialize_windows_tdep): Call init_w32_command_list.
5532
08feed99
TT
55332020-04-18 Tom Tromey <tom@tromey.com>
5534
5535 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5536 * value.c (value_fn_field): Update.
5537 * valops.c (find_function_in_inferior)
5538 (value_allocate_space_in_inferior): Update.
5539 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5540 Update.
5541 * tui/tui-source.c (tui_source_window::set_contents): Update.
5542 * symtab.c (lookup_global_or_static_symbol)
5543 (find_function_start_sal_1, skip_prologue_sal)
5544 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5545 * symmisc.c (dump_msymbols, dump_symtab_1)
5546 (maintenance_print_one_line_table): Update.
5547 * symfile.c (init_entry_point_info, section_is_mapped)
5548 (list_overlays_command, simple_read_overlay_table)
5549 (simple_overlay_update_1): Update.
5550 * stap-probe.c (handle_stap_probe): Update.
5551 * stabsread.c (dbx_init_float_type, define_symbol)
5552 (read_one_struct_field, read_enum_type, read_range_type): Update.
5553 * source.c (info_line_command): Update.
5554 * python/python.c (gdbpy_source_objfile_script)
5555 (gdbpy_execute_objfile_script): Update.
5556 * python/py-type.c (save_objfile_types): Update.
5557 * python/py-objfile.c (py_free_objfile): Update.
5558 * python/py-inferior.c (python_new_objfile): Update.
5559 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5560 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5561 (maintenance_check_psymtabs): Update.
5562 * printcmd.c (info_address_command): Update.
5563 * objfiles.h (struct objfile) <arch>: New method, from
5564 get_objfile_arch.
5565 (get_objfile_arch): Don't declare.
5566 * objfiles.c (get_objfile_arch): Remove.
5567 (filter_overlapping_sections): Update.
5568 * minsyms.c (msymbol_is_function): Update.
5569 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5570 (output_nondebug_symbol): Update.
5571 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5572 (mdebug_expand_psymtab): Update.
5573 * machoread.c (macho_add_oso_symfile): Update.
5574 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5575 Update.
5576 * linux-fork.c (checkpoint_command): Update.
5577 * linespec.c (convert_linespec_to_sals): Update.
5578 * jit.c (finalize_symtab): Update.
5579 * infrun.c (insert_exception_resume_from_probe): Update.
5580 * ia64-tdep.c (ia64_find_unwind_table): Update.
5581 * hppa-tdep.c (internalize_unwinds): Update.
5582 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5583 Update.
5584 * gcore.c (call_target_sbrk): Update.
5585 * elfread.c (record_minimal_symbol, elf_symtab_read)
5586 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5587 (elf_gnu_ifunc_resolve_by_got): Update.
5588 * dwarf2/read.c (create_addrmap_from_index)
5589 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5590 (read_debug_names_from_section)
5591 (process_psymtab_comp_unit_reader, add_partial_symbol)
5592 (add_partial_subprogram, process_full_comp_unit)
5593 (read_file_scope, read_func_scope, read_lexical_block_scope)
5594 (read_call_site_scope, dwarf2_ranges_read)
5595 (dwarf2_record_block_ranges, dwarf2_add_field)
5596 (mark_common_block_symbol_computed, read_tag_pointer_type)
5597 (read_tag_string_type, dwarf2_init_float_type)
5598 (dwarf2_init_complex_target_type, read_base_type)
5599 (partial_die_info::read, partial_die_info::read)
5600 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5601 (dwarf2_fetch_die_loc_sect_off): Update.
5602 * dwarf2/loc.c (dwarf2_find_location_expression)
5603 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5604 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5605 (dwarf2_loc_desc_get_symbol_read_needs)
5606 (locexpr_describe_location_piece, locexpr_describe_location_1)
5607 (loclist_describe_location): Update.
5608 * dwarf2/index-write.c (write_debug_names): Update.
5609 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5610 * dtrace-probe.c (dtrace_process_dof): Update.
5611 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5612 (process_one_symbol): Update.
5613 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5614 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5615 (coff_read_enum_type): Update.
5616 * cli/cli-cmds.c (edit_command, list_command): Update.
5617 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5618 * breakpoint.c (create_overlay_event_breakpoint)
5619 (create_longjmp_master_breakpoint)
5620 (create_std_terminate_master_breakpoint)
5621 (create_exception_master_breakpoint, get_sal_arch): Update.
5622 * block.c (block_gdbarch): Update.
5623 * annotate.c (annotate_source_line): Update.
5624
0743fc83
TT
56252020-04-17 Tom Tromey <tromey@adacore.com>
5626
5627 * auto-load.c (show_auto_load_cmd): Remove.
5628 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5629 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5630 (maintenance_print_arc_command): Remove.
5631 * tui/tui-win.c (tui_command): Remove.
5632 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5633 * tui/tui-layout.c (tui_layout_command): Remove.
5634 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5635 * python/python.c (user_set_python, user_show_python): Remove.
5636 (_initialize_python): Use add_basic_prefix_cmd,
5637 add_show_prefix_cmd.
5638 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5639 (install_gdb_commands): Use add_basic_prefix_cmd,
5640 add_show_prefix_cmd.
5641 (info_guile_command): Remove.
5642 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5643 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5644 add_show_prefix_cmd.
5645 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5646 Remove do_set and do_show parameters.
5647 * cli/cli-style.c (set_style, show_style): Remove.
5648 (_initialize_cli_style): Use add_basic_prefix_cmd,
5649 add_show_prefix_cmd.
5650 (cli_style_option::add_setshow_commands): Remove do_set and
5651 do_show parameters.
5652 (cli_style_option::add_setshow_commands): Use
5653 add_basic_prefix_cmd, add_show_prefix_cmd.
5654 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5655 (set_style_name): Remove.
5656 * cli/cli-dump.c (dump_command, append_command): Remove.
5657 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5658 (tekhex_dump_command, binary_dump_command)
5659 (binary_append_command): Remove.
5660 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5661 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5662 (init_w32_command_list): Remove; move into ...
5663 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5664 * valprint.c (set_print, show_print, set_print_raw)
5665 (show_print_raw): Remove.
5666 (_initialize_valprint): Use add_basic_prefix_cmd,
5667 add_show_prefix_cmd.
5668 * typeprint.c (set_print_type, show_print_type): Remove.
5669 (_initialize_typeprint): Use add_basic_prefix_cmd,
5670 add_show_prefix_cmd.
5671 * record.c (set_record_command, show_record_command): Remove.
5672 (_initialize_record): Use add_basic_prefix_cmd,
5673 add_show_prefix_cmd.
5674 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5675 add_show_prefix_cmd.
5676 (info_command, show_command, set_debug, show_debug): Remove.
5677 * top.h (set_history, show_history): Don't declare.
5678 * top.c (set_history, show_history): Remove.
5679 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5680 (unset_tdesc_cmd): Remove.
5681 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5682 add_show_prefix_cmd.
5683 * symtab.c (info_module_command): Remove.
5684 (_initialize_symtab): Use add_basic_prefix_cmd.
5685 * symfile.c (overlay_command): Remove.
5686 (_initialize_symfile): Use add_basic_prefix_cmd.
5687 * sparc64-tdep.c (info_adi_command): Remove.
5688 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5689 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5690 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5691 add_show_prefix_cmd.
5692 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5693 (_initialize_serial): Use add_basic_prefix_cmd,
5694 add_show_prefix_cmd.
5695 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5696 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5697 add_show_prefix_cmd.
5698 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5699 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5700 add_show_prefix_cmd.
5701 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5702 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5703 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5704 add_show_prefix_cmd.
5705 * remote.c (remote_command, set_remote_cmd): Remove.
5706 (_initialize_remote): Use add_basic_prefix_cmd.
5707 * record-full.c (set_record_full_command)
5708 (show_record_full_command): Remove.
5709 (_initialize_record_full): Use add_basic_prefix_cmd,
5710 add_show_prefix_cmd.
5711 * record-btrace.c (cmd_set_record_btrace)
5712 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5713 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5714 (cmd_show_record_btrace_pt): Remove.
5715 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5716 add_show_prefix_cmd.
5717 * ravenscar-thread.c (set_ravenscar_command)
5718 (show_ravenscar_command): Remove.
5719 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5720 add_show_prefix_cmd.
5721 * mips-tdep.c (show_mips_command, set_mips_command)
5722 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5723 add_show_prefix_cmd.
5724 * maint.c (maintenance_command, maintenance_info_command)
5725 (maintenance_check_command, maintenance_print_command)
5726 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5727 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5728 add_show_prefix_cmd.
5729 (show_per_command_cmd): Remove.
5730 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5731 Remove.
5732 (maintenance_show_test_settings_cmd): Remove.
5733 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5734 add_show_prefix_cmd.
5735 * maint-test-options.c (maintenance_test_options_command):
5736 Remove.
5737 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5738 * macrocmd.c (macro_command): Remove
5739 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5740 * language.c (set_check, show_check): Remove.
5741 (_initialize_language): Use add_basic_prefix_cmd,
5742 add_show_prefix_cmd.
5743 * infcmd.c (unset_command): Remove.
5744 (_initialize_infcmd): Use add_basic_prefix_cmd.
5745 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5746 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5747 add_show_prefix_cmd.
5748 * go32-nat.c (go32_info_dos_command): Remove.
5749 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5750 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5751 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5752 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5753 (_initialize_frame): Use add_basic_prefix_cmd,
5754 add_show_prefix_cmd.
5755 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5756 (_initialize_dcache): Use add_basic_prefix_cmd,
5757 add_show_prefix_cmd.
5758 * cp-support.c (maint_cplus_command): Remove.
5759 (_initialize_cp_support): Use add_basic_prefix_cmd.
5760 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5761 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5762 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5763 add_basic_prefix_cmd, add_show_prefix_cmd.
5764 * breakpoint.c (save_command): Remove.
5765 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5766 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5767 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5768 add_show_prefix_cmd.
5769 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5770 (set_ada_command, show_ada_command): Remove.
5771 (_initialize_ada_language): Use add_basic_prefix_cmd,
5772 add_show_prefix_cmd.
5773 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5774
3557f442
KR
57752020-04-16 Kamil Rytarowski <n54@gmx.com>
5776
5777 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5778 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5779
16197208
SM
57802020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5781
5782 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5783 warning messages.
5784
00ac85d3
SM
57852020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5786
5787 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5788 import table is not at beginning of .idata section.
5789
381ce63f
PA
57902020-04-16 Pedro Alves <palves@redhat.com>
5791
5792 * inferior.c (delete_inferior): Use delete operator directly
5793 instead of delete_program_space.
5794 * progspace.c (add_program_space): New, factored out from
5795 program_space::program_space.
5796 (remove_program_space): New, factored out from
5797 delete_program_space.
5798 (program_space::program_space): Remove intro comment. Rewrite.
5799 (program_space::~program_space): Remove intro comment. Call
5800 remove_program_space.
5801 (delete_program_space): Delete.
5802 * progspace.h (program_space::program_space): Make explicit. Move
5803 intro comment here, adjusted.
5804 (program_space::~program_space): Move intro comment here,
5805 adjusted.
5806 (delete_program_space): Remove.
5807
a010605f
TT
58082020-04-16 Tom Tromey <tromey@adacore.com>
5809
5810 * windows-nat.c (windows_nat::handle_access_violation): New
5811 function.
5812 * nat/windows-nat.h (handle_access_violation): Declare.
5813 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5814 windows-nat.c. Call handle_access_violation.
5815
efba5c23
TV
58162020-04-16 Tom de Vries <tdevries@suse.de>
5817
5818 PR symtab/25791
5819 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5820 CUs without psymtab.
5821
97ed802d
KB
58222020-04-16 Kevin Buettner <kevinb@redhat.com>
5823
5824 * python/python.c (do_start_initialization): Don't call
5825 PyEval_InitThreads for Python 3.9 and beyond.
5826
c7d64809
KR
58272020-04-15 Kamil Rytarowski <n54@gmx.com>
5828
5829 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5830 thread functions.
5831 (obsd_nat_target::wait): Likewise.
5832
ce127a96
TT
58332020-04-15 Tom Tromey <tromey@adacore.com>
5834
5835 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5836 (DEBUG_EXCEPT): Use debug_printf.
5837
99f1bc6a
AB
58382020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5839
5840 * completer.c (class completion_tracker::completion_hash_entry)
5841 <hash_name>: New member function.
5842 (completion_tracker::discard_completions): New callback to hash a
5843 completion_hash_entry, pass this to htab_create_alloc.
5844
a0e9b532
JT
58452016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5846
5847 * windows-nat.c (windows_make_so): Warn rather than stopping with
5848 an error if realpath() fails.
5849
06ca5dd4
KR
58502020-04-14 Kamil Rytarowski <n54@gmx.com>
5851
5852 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5853 (nbsd_nat_target::info_proc): Add do_status.
5854
194d088f
TV
58552020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5856 Tom de Vries <tdevries@suse.de>
5857
5858 PR symtab/25718
5859 * psympriv.h (struct partial_symtab::read_symtab)
5860 (struct partial_symtab::expand_psymtab)
5861 (struct partial_symtab::read_dependencies): Update comments.
5862 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5863 read_symtab for includer.
5864 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5865 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5866 (struct dwarf2_include_psymtab::m_readin): Remove.
5867 (struct dwarf2_include_psymtab::includer): New member function.
5868 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5869
c1a66c06
TV
58702020-04-14 Tom de Vries <tdevries@suse.de>
5871
5872 PR symtab/25720
5873 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5874 with NULL symbol_matcher and lookup_name.
5875 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5876 and lookup_name.
5877 * dwarf2/read.c (dw2_expand_symtabs_matching)
5878 (dw2_debug_names_expand_symtabs_matching): Same.
5879 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5880 Make lookup_name a pointer. Update comment.
5881 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5882 lookup_name being a pointer.
5883 * symfile.c (expand_symtabs_matching): Same.
5884 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5885 * linespec.c (iterate_over_all_matching_symtabs): Same.
5886
400b5eca
TT
58872020-04-13 Tom Tromey <tom@tromey.com>
5888
5889 * run-on-main-thread.c: Update include.
5890 * unittests/main-thread-selftests.c: Update include.
5891 * tui/tui-win.c: Update include.
5892 * tui/tui-io.c: Update include.
5893 * tui/tui-interp.c: Update include.
5894 * tui/tui-hooks.c: Update include.
5895 * top.h: Update include.
5896 * top.c: Update include.
5897 * ser-base.c: Update include.
5898 * remote.c: Update include.
5899 * remote-notif.c: Update include.
5900 * remote-fileio.c: Update include.
5901 * record-full.c: Update include.
5902 * record-btrace.c: Update include.
5903 * python/python.c: Update include.
5904 * posix-hdep.c: Update include.
5905 * mingw-hdep.c: Update include.
5906 * mi/mi-main.c: Update include.
5907 * mi/mi-interp.c: Update include.
5908 * main.c: Update include.
5909 * linux-nat.c: Update include.
5910 * interps.c: Update include.
5911 * infrun.c: Update include.
5912 * inf-loop.c: Update include.
5913 * event-top.c: Update include.
5914 * event-loop.c: Move to ../gdbsupport/.
5915 * event-loop.h: Move to ../gdbsupport/.
5916 * async-event.h: Update include.
5917 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5918
93b54c8e
TT
59192020-04-13 Tom Tromey <tom@tromey.com>
5920
5921 * tui/tui-win.c: Include async-event.h.
5922 * remote.c: Include async-event.h.
5923 * remote-notif.c: Include async-event.h.
5924 * record-full.c: Include async-event.h.
5925 * record-btrace.c: Include async-event.h.
5926 * infrun.c: Include async-event.h.
5927 * event-top.c: Include async-event.h.
5928 * event-loop.h: Move some declarations to async-event.h.
5929 * event-loop.c: Don't include ser-event.h or top.h. Move some
5930 code to async-event.c.
5931 * async-event.h: New file.
5932 * async-event.c: New file.
5933 * Makefile.in (COMMON_SFILES): Add async-event.c.
5934 (HFILES_NO_SRCDIR): Add async-event.h.
5935
c1cd3163
TT
59362020-04-13 Tom Tromey <tom@tromey.com>
5937
5938 * utils.c (flush_streams): New function.
5939 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5940
29f2bf4f
TT
59412020-04-13 Tom Tromey <tom@tromey.com>
5942
5943 * event-loop.c (handle_file_event): Use warning, not
5944 printf_unfiltered.
5945
98029d02
TT
59462020-04-13 Tom Tromey <tom@tromey.com>
5947
5948 * event-loop.c: Include <chrono>.
5949
06cc9596
TT
59502020-04-13 Tom Tromey <tom@tromey.com>
5951
5952 * gdb_select.h: Move to ../gdbsupport/.
5953 * event-loop.c: Update include path.
5954 * top.c: Update include path.
5955 * ser-base.c: Update include path.
5956 * ui-file.c: Update include path.
5957 * ser-tcp.c: Update include path.
5958 * guile/scm-ports.c: Update include path.
5959 * posix-hdep.c: Update include path.
5960 * ser-unix.c: Update include path.
5961 * gdb_usleep.c: Update include path.
5962 * mingw-hdep.c: Update include path.
5963 * inflow.c: Update include path.
5964 * infrun.c: Update include path.
5965 * event-top.c: Update include path.
5966
8ae8e197
TT
59672020-04-13 Tom Tromey <tom@tromey.com>
5968
5969 * configure: Rebuild.
5970 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5971
58cf28e8
TT
59722020-04-13 Tom Tromey <tom@tromey.com>
5973
5974 * event-loop.h (start_event_loop): Don't declare.
5975 * event-loop.c (start_event_loop): Move...
5976 * main.c (start_event_loop): ...here. Now static.
5977
b7f999ae
SDJ
59782020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5979
5980 * MAINTAINERS: Update my email address.
5981
1085dfd4
KR
59822020-04-12 Kamil Rytarowski <n54@gmx.com>
5983
5984 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5985 IP_ALL.
5986
49d1d1f5
KR
59872020-04-12 Kamil Rytarowski <n54@gmx.com>
5988
5989 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5990 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5991
b4848d2a
KR
59922020-04-12 Kamil Rytarowski <n54@gmx.com>
5993
5994 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5995 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5996
51c133d5
KR
59972020-04-12 Kamil Rytarowski <n54@gmx.com>
5998
5999 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6000
54b8cbd0
KR
60012020-04-11 Kamil Rytarowski <n54@gmx.com>
6002
6003 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6004 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6005 (nbsd_nat_target::info_proc): New functions.
6006 * nbsd-nat.c (kinfo_get_vmmap): New function.
6007 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6008 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6009 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6010 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6011 functions.
6012 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6013 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6014 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6015 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6016 (KINFO_VME_FLAG_GROWS_DOWN): New.
6017
cf83625d
AS
60182020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6019
6020 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6021 bit shift.
6022
0c4311ab
TT
60232020-04-10 Tom Tromey <tromey@adacore.com>
6024
6025 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6026
3e65b3e9
TT
60272020-04-10 Tom Tromey <tromey@adacore.com>
6028
6029 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6030 separate debug files.
6031
13302e95
HD
60322020-04-10 Hannes Domani <ssbssa@yahoo.de>
6033
6034 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6035 Move to...
6036 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6037 ... here.
6038 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6039 Check for STATUS_WX86_BREAKPOINT.
6040 (windows_nat_target::wait): Same.
6041
bdfc1e8a
TV
60422020-04-10 Tom de Vries <tdevries@suse.de>
6043
6044 PR cli/25808
6045 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6046
f4460aec
SM
60472020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6048
6049 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6050 (Write After Approval): Remove Tom de Vries.
6051
a25198bb
BE
60522020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6053
6054 revert partially:
6055 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6056
aac66a4c
SM
6057 * buildsym.c (record_line): Fix undefined behavior and preserve
6058 lines at eof.
a25198bb 6059
206c98a6
KR
60602020-04-09 Kamil Rytarowski <n54@gmx.com>
6061
6062 * auxv.h (svr4_auxv_parse): New.
6063 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6064 and generic_auxv_parse.
6065 (svr4_auxv_parse): Add.
6066 * obsd-tdep.c: Include "auxv.h".
6067 (obsd_auxv_parse): Remove.
6068 (obsd_init_abi): Remove comment.
6069 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6070 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6071 * nbsd-tdep.c: Include "auxv.h".
6072 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6073
71fbdbaf
TT
60742020-04-08 Tom Tromey <tromey@adacore.com>
6075
6076 * nat/windows-nat.h (last_wait_event): Don't declare.
6077 (wait_for_debug_event): Update comment.
6078 * nat/windows-nat.c (last_wait_event): Now static.
6079
2c1d95e8
TT
60802020-04-08 Tom Tromey <tromey@adacore.com>
6081
6082 * windows-nat.c (wait_for_debug_event): Move to
6083 nat/windows-nat.c.
6084 * nat/windows-nat.h (wait_for_debug_event): Declare.
6085 * nat/windows-nat.c (wait_for_debug_event): Move from
6086 windows-nat.c. No longer static.
6087
d2977bc4
TT
60882020-04-08 Tom Tromey <tromey@adacore.com>
6089
6090 * windows-nat.c (get_windows_debug_event): Use
6091 fetch_pending_stop.
6092 * nat/windows-nat.h (fetch_pending_stop): Declare.
6093 * nat/windows-nat.c (fetch_pending_stop): New function.
6094
e758e19c
TT
60952020-04-08 Tom Tromey <tromey@adacore.com>
6096
6097 * windows-nat.c (windows_continue): Use matching_pending_stop and
6098 continue_last_debug_event.
6099 * nat/windows-nat.h (matching_pending_stop)
6100 (continue_last_debug_event): Declare.
6101 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6102 (matching_pending_stop, continue_last_debug_event): New
6103 functions.
6104
8d30e395
TT
61052020-04-08 Tom Tromey <tromey@adacore.com>
6106
6107 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6108 (handle_exception_result): Move to nat/windows-nat.h.
6109 (DEBUG_EXCEPTION_SIMPLE): Remove.
6110 (windows_nat::handle_ms_vc_exception): New function.
6111 (handle_exception): Move to nat/windows-nat.c.
6112 (get_windows_debug_event): Update.
6113 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6114 nat/windows-nat.c.
6115 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6116 (handle_exception_result): Move from windows-nat.c.
6117 (handle_exception): Declare.
6118 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6119 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6120 windows-nat.c.
6121
29de418d
TT
61222020-04-08 Tom Tromey <tromey@adacore.com>
6123
6124 * windows-nat.c (exception_count, event_count): Remove.
6125 (handle_exception, get_windows_debug_event)
6126 (do_initial_windows_stuff): Update.
6127
a816ba18
TT
61282020-04-08 Tom Tromey <tromey@adacore.com>
6129
6130 * windows-nat.c (windows_nat::handle_load_dll)
6131 (windows_nat::handle_unload_dll): Rename. No longer static.
6132 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6133 Declare.
6134
a00caa12
TT
61352020-04-08 Tom Tromey <tromey@adacore.com>
6136
6137 * complaints.h (stop_whining): Declare at top-level.
6138 (complaint): Don't declare stop_whining.
6139
d41b524f
TT
61402020-04-08 Tom Tromey <tromey@adacore.com>
6141
6142 * windows-nat.c (windows_nat::handle_output_debug_string):
6143 Rename. No longer static.
6144 * nat/windows-nat.h (handle_output_debug_string): Declare.
6145
3c76026d
TT
61462020-04-08 Tom Tromey <tromey@adacore.com>
6147
6148 * windows-nat.c (current_process_handle, current_process_id)
6149 (main_thread_id, last_sig, current_event, last_wait_event)
6150 (current_windows_thread, desired_stop_thread_id, pending_stops)
6151 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6152 (display_selectors, fake_create_process)
6153 (get_windows_debug_event): Update.
6154 * nat/windows-nat.h (current_process_handle, current_process_id)
6155 (main_thread_id, last_sig, current_event, last_wait_event)
6156 (current_windows_thread, desired_stop_thread_id, pending_stops)
6157 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6158 * nat/windows-nat.c (current_process_handle, current_process_id)
6159 (main_thread_id, last_sig, current_event, last_wait_event)
6160 (current_windows_thread, desired_stop_thread_id, pending_stops)
6161 (siginfo_er): New globals. Move from windows-nat.c.
6162
9d8679cc
TT
61632020-04-08 Tom Tromey <tromey@adacore.com>
6164
6165 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6166 (handle_load_dll): Update.
6167 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6168
28688adf
TT
61692020-04-08 Tom Tromey <tromey@adacore.com>
6170
6171 * windows-nat.c (enum thread_disposition_type): Move to
6172 nat/windows-nat.h.
6173 (windows_nat::thread_rec): Rename from thread_rec. No longer
6174 static.
6175 (windows_add_thread, windows_nat_target::fetch_registers)
6176 (windows_nat_target::store_registers, handle_exception)
6177 (windows_nat_target::resume, get_windows_debug_event)
6178 (windows_nat_target::get_tib_address)
6179 (windows_nat_target::thread_name)
6180 (windows_nat_target::thread_alive): Update.
6181 * nat/windows-nat.h (enum thread_disposition_type): Move from
6182 windows-nat.c.
6183 (thread_rec): Declare.
6184
4834dad0
TT
61852020-04-08 Tom Tromey <tromey@adacore.com>
6186
6187 * windows-nat.c: Add "using namespace".
6188 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6189 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6190
65bafd5b
TT
61912020-04-08 Tom Tromey <tromey@adacore.com>
6192
6193 * nat/windows-nat.h (struct windows_thread_info): Declare
6194 destructor.
6195 * nat/windows-nat.c (~windows_thread_info): New.
6196
0a4afda3
TT
61972020-04-08 Tom Tromey <tromey@adacore.com>
6198
6199 PR gdb/22992
6200 * windows-nat.c (current_event): Update comment.
6201 (last_wait_event, desired_stop_thread_id): New globals.
6202 (struct pending_stop): New.
6203 (pending_stops): New global.
6204 (windows_nat_target) <stopped_by_sw_breakpoint>
6205 <supports_stopped_by_sw_breakpoint>: New methods.
6206 (windows_fetch_one_register): Add assertions. Adjust PC.
6207 (windows_continue): Handle pending stops. Suspend other threads
6208 when stepping. Use last_wait_event
6209 (wait_for_debug_event): New function.
6210 (get_windows_debug_event): Use wait_for_debug_event. Handle
6211 pending stops. Queue spurious stops.
6212 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6213 (windows_nat_target::kill): Use wait_for_debug_event.
6214 * nat/windows-nat.h (struct windows_thread_info)
6215 <stopped_at_software_breakpoint>: New field.
6216 * nat/windows-nat.c (windows_thread_info::resume): Clear
6217 stopped_at_software_breakpoint.
6218
8e61ebec
TT
62192020-04-08 Tom Tromey <tromey@adacore.com>
6220
6221 * windows-nat.c (enum thread_disposition_type): New.
6222 (thread_rec): Replace "get_context" parameter with "disposition";
6223 change type.
6224 (windows_add_thread, windows_nat_target::fetch_registers)
6225 (windows_nat_target::store_registers, handle_exception)
6226 (windows_nat_target::resume, get_windows_debug_event)
6227 (windows_nat_target::get_tib_address)
6228 (windows_nat_target::thread_name)
6229 (windows_nat_target::thread_alive): Update.
6230
98a03287
TT
62312020-04-08 Tom Tromey <tromey@adacore.com>
6232
6233 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6234 (windows_continue): Use windows_continue::resume.
6235 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6236 resume>: Declare new methods.
6237 * nat/windows-nat.c: New file.
6238 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6239
7c7411bc
TT
62402020-04-08 Tom Tromey <tromey@adacore.com>
6241
6242 * windows-nat.c (windows_add_thread, windows_delete_thread)
6243 (windows_nat_target::fetch_registers)
6244 (windows_nat_target::store_registers, fake_create_process)
6245 (windows_nat_target::resume, windows_nat_target::resume)
6246 (get_windows_debug_event, windows_nat_target::wait)
6247 (windows_nat_target::pid_to_str)
6248 (windows_nat_target::get_tib_address)
6249 (windows_nat_target::get_ada_task_ptid)
6250 (windows_nat_target::thread_name)
6251 (windows_nat_target::thread_alive): Use lwp, not tid.
6252
2950fdf7
TT
62532020-04-08 Tom Tromey <tromey@adacore.com>
6254
6255 * windows-nat.c (handle_exception)
6256 (windows_nat_target::thread_name): Update.
6257 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6258 <name>: Now unique_xmalloc_ptr.
6259
62fe396b
TT
62602020-04-08 Tom Tromey <tromey@adacore.com>
6261
6262 * windows-nat.c (thread_rec)
6263 (windows_nat_target::fetch_registers): Update.
6264 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6265 Update comment.
6266 <debug_registers_changed, reload_context>: Now bool.
6267
e9534bd2
TT
62682020-04-08 Tom Tromey <tromey@adacore.com>
6269
6270 * windows-nat.c (windows_add_thread): Use new.
6271 (windows_init_thread_list, windows_delete_thread): Use delete.
6272 (get_windows_debug_event): Update.
6273 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6274 destructor, and initializers.
6275
ae1f8880
TT
62762020-04-08 Tom Tromey <tromey@adacore.com>
6277
6278 * windows-nat.c (struct windows_thread_info): Remove.
6279 * nat/windows-nat.h: New file.
6280
55a1e039
TT
62812020-04-08 Tom Tromey <tromey@adacore.com>
6282
6283 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6284 (thread_rec, windows_add_thread, windows_delete_thread)
6285 (windows_continue): Update.
6286
93366324
TT
62872020-04-08 Tom Tromey <tromey@adacore.com>
6288
6289 * windows-nat.c (struct windows_thread_info): Remove typedef.
6290 (thread_head): Remove.
6291 (thread_list): New global.
6292 (thread_rec, windows_add_thread, windows_init_thread_list)
6293 (windows_delete_thread, windows_continue): Update.
6294
0f2265e2
SM
62952020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6296
6297 * windows-tdep.h (windows_init_abi): Add comment.
6298 (cygwin_init_abi): New declaration.
6299 * windows-tdep.c: Split signal enumeration in two, one for
6300 Windows and one for Cygwin.
6301 (windows_gdb_signal_to_target): Only deal with signal of the
6302 Windows OS ABI.
6303 (cygwin_gdb_signal_to_target): New function.
6304 (windows_init_abi): Rename to windows_init_abi_common, don't set
6305 gdb_signal_to_target gdbarch method. Add new new function with
6306 this name.
6307 (cygwin_init_abi): New function.
6308 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6309 comment. Don't call windows_init_abi.
6310 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6311 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6312 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6313 i386_windows_init_abi_common, don't call windows_init_abi. Add
6314 a new function of this name.
6315 (i386_cygwin_init_abi): New function.
6316 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6317 OS ABI Cygwin.
6318
3810f182
SM
63192020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6320
6321 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6322 parameter.c.
6323 (dwarf2_read_gdb_index): Update.
6324
063f8e80
KR
63252020-04-07 Kamil Rytarowski <n54@gmx.com>
6326
6327 * nbsd-tdep.c: Include "objfiles.h".
6328 (nbsd_skip_solib_resolver): New.
6329 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6330
85a9510c 63312020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6332
6333 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6334 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6335 with DW_LLE_base_addressx are being emitted in DWARFv5.
6336 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6337 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6338 unsigned integer.
6339
9fc3eaae 63402020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6341
6342 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6343 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6344 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6345 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6346 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6347 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6348 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6349
6350
41144253 63512020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6352
6353 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6354 (read_loclist_index): New function definition.
6355 (lookup_loclist_base): New function definition.
6356 (read_loclist_header): New function definition.
6357 (dwarf2_cu): Add loclist_base and loclist_header field.
6358 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6359 (read_full_die_1): Read the value of DW_AT_loclists_base.
6360 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6361 (read_attribute_value): Handle DW_FORM_loclistx.
6362 (skip_one_die): Handle DW_FORM_loclistx.
6363 (loclist_header): New structure declaration.
6364 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6365
9f4e76a4
SM
63662020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6367
6368 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6369 constructor. Remove `addr` parameter from other constructor and
6370 add `per_cu` parameter.
6371 * dwarf2/read.c (create_partial_symtab): Update.
6372
25c11aca
TV
63732020-04-07 Tom de Vries <tdevries@suse.de>
6374
6375 PR symtab/25796
6376 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6377 (partial_die_info::fixup): Inherit has_const_value.
6378
5707e24b
TV
63792020-04-07 Tom de Vries <tdevries@suse.de>
6380
6381 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6382 symbols without address.
6383
05f00e22
KR
63842020-04-06 Kamil Rytarowski <n54@gmx.com>
6385
6386 * nbsd-nat.h (struct thread_info): Add forward declaration.
6387 (nbsd_nat_target::thread_alive): Add.
6388 (nbsd_nat_target::thread_name): Likewise.
6389 (nbsd_nat_target::update_thread_list): Likewise.
6390 (update_thread_list::post_attach): Likewise.
6391 (post_attach::pid_to_str): Likewise.
6392 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6393 (nbsd_thread_lister): Add.
6394 (nbsd_nat_target::thread_alive): Likewise.
6395 (nbsd_nat_target::thread_name): Likewise.
6396 (nbsd_add_threads): Likewise.
6397 (update_thread_list::post_attach): Likewise.
6398 (nbsd_nat_target::update_thread_list): Likewise.
6399 (post_attach::pid_to_str): Likewise.
6400
6ee448cc
TT
64012020-04-06 Tom Tromey <tromey@adacore.com>
6402
6403 * ada-valprint.c (print_variant_part): Extract the variant field.
6404 (print_field_values): Use the field as the outer value when
6405 recursing.
6406
dea34e8c
TT
64072020-04-06 Tom Tromey <tromey@adacore.com>
6408
6409 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6410 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6411 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6412 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6413 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6414
93689ce9
TT
64152020-04-06 Tom Tromey <tromey@adacore.com>
6416
6417 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6418 TYPE_CODE_ERROR.
6419
79743962
KR
64202020-04-06 Kamil Rytarowski <n54@gmx.com>
6421
6422 * nbsd-tdep.c: Include "gdbarch.h".
6423 Define enum with NetBSD signal numbers.
6424 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6425 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6426 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6427 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6428 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6429 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6430 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6431 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6432 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6433 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6434 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6435 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6436
9e7c9a03
HD
64372020-04-03 Hannes Domani <ssbssa@yahoo.de>
6438
6439 PR gdb/25325
6440 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6441
d9e49b61
TT
64422020-04-03 Tom Tromey <tromey@adacore.com>
6443
6444 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6445 Read constant block.
6446
e0fc5c3f
SM
64472020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6448
6449 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6450 (gdb_bfd_get_full_section_contents): New declaration.
6451 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6452 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6453 gdb_bfd_get_full_section_contents.
6454
e2ff18a0
SM
64552020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6456
6457 * exec.c (build_section_table): Replace internal_error with
6458 gdb_assert.
6459 (section_table_xfer_memory_partial): Likewise.
6460 * mdebugread.c (parse_partial_symbols): Likewise.
6461 * psymtab.c (lookup_partial_symbol): Likewise.
6462 * utils.c (wrap_here): Likewise.
6463
0830d301
TT
64642020-04-02 Tom Tromey <tromey@adacore.com>
6465
6466 * f-lang.c (build_fortran_types): Use arch_type to initialize
6467 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6468
e7da7f8f
TT
64692020-04-02 Tom Tromey <tromey@adacore.com>
6470
6471 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6472 of attributes.
6473
c90d28ac
AB
64742020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6475 Bernd Edlinger <bernd.edlinger@hotmail.de>
6476 Tom Tromey <tromey@adacore.com>
6477
6478 * buildsym.c (buildsym_compunit::record_line): Remove
6479 deduplication code.
6480
1aa98955
TV
64812020-04-02 Tom de Vries <tdevries@suse.de>
6482
6483 PR ada/24671
6484 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6485
d3214198
TV
64862020-04-02 Tom de Vries <tdevries@suse.de>
6487
6488 * dwarf2/read.c (dwarf2_gdb_index_functions,
6489 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6490 NULL.
6491 * psymtab.c (psym_lookup_global_symbol_language): New function.
6492 (psym_functions): Init psym_lookup_global_symbol_language with
6493 psym_lookup_global_symbol_language.
6494 * symfile-debug.c (debug_sym_quick_functions): Init
6495 lookup_global_symbol_language with NULL.
6496 * symfile.c (set_initial_language): Remove fixme comment.
6497 * symfile.h (struct quick_symbol_functions): Add
6498 lookup_global_symbol_language.
6499 * symtab.c (find_quick_global_symbol_language): New function.
6500 (find_main_name): Use find_quick_global_symbol_language.
6501
2836752f
SM
65022020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6503
6504 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6505
64dc2d4b
BE
65062020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6507
6508 * buildsym.c (record_line): Fix undefined behavior and preserve
6509 lines at eof.
6510
bbe3dc41
BE
65112020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6512
6513 * buildsym.c (record_line): Fix the resizing condition.
6514
6b4a335b
TT
65152020-04-01 Tom Tromey <tom@tromey.com>
6516
6517 * value.h (value_literal_complex): Add comment.
6518 * valops.c (value_literal_complex): Refer to value.h.
6519
3638a098
TT
65202020-04-01 Tom Tromey <tom@tromey.com>
6521
6522 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6523 (scalar_type): New rule, from typebase.
6524 (typebase): Use scalar_type. Recognize complex types.
6525 (field_name): Handle FLOAT_KEYWORD.
6526 (ident_tokens): Add _Complex and __complex__.
6527
c34e8714
TT
65282020-04-01 Tom Tromey <tom@tromey.com>
6529
6530 PR exp/25299:
6531 * valarith.c (promotion_type, complex_binop): New functions.
6532 (scalar_binop): Handle complex numbers. Use promotion_type.
6533 (value_pos, value_neg, value_complement): Handle complex numbers.
6534
fa649bb7
TT
65352020-04-01 Tom Tromey <tom@tromey.com>
6536
6537 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6538 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6539 (parse_number): Handle complex numbers.
6540
981c08ce
TT
65412020-04-01 Tom Tromey <tom@tromey.com>
6542
6543 * c-valprint.c (c_decorations): Change complex suffix to "i".
6544
4c99290d
TT
65452020-04-01 Tom Tromey <tom@tromey.com>
6546
6547 * valprint.c (generic_value_print_complex): Use accessors.
6548 * value.h (value_real_part, value_imaginary_part): Declare.
6549 * valops.c (value_real_part, value_imaginary_part): New
6550 functions.
6551 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6552
5b930b45
TT
65532020-04-01 Tom Tromey <tom@tromey.com>
6554
6555 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6556 (read_range_type): Update.
6557 * mdebugread.c (basic_type): Update.
6558 * go-lang.c (build_go_types): Use init_complex_type.
6559 * gdbtypes.h (struct main_type) <complex_type>: New member.
6560 (init_complex_type): Update.
6561 (arch_complex_type): Don't declare.
6562 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6563 Make name if none given. Use alloc_type_copy. Look for cached
6564 complex type.
6565 (arch_complex_type): Remove.
6566 (gdbtypes_post_init): Use init_complex_type.
6567 * f-lang.c (build_fortran_types): Use init_complex_type.
6568 * dwarf2/read.c (read_base_type): Update.
6569 * d-lang.c (build_d_types): Use init_complex_type.
6570 * ctfread.c (read_base_type): Update.
6571
53cccef1
TBA
65722020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6573
6574 * infrun.c (stop_all_threads): Update assertion, plus when
6575 stopping threads, take into account that we might be trying
6576 to stop an all-stop target.
6577 (stop_waiting): Call 'stop_all_threads' if there exists a
6578 non-stop target.
6579
a0714d30
TBA
65802020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6581
6582 * target.h (exists_non_stop_target): New function declaration.
6583 * target.c (exists_non_stop_target): New function.
6584
60e22c1e
HD
65852020-04-01 Hannes Domani <ssbssa@yahoo.de>
6586
6587 PR gdb/24789
6588 * eval.c (is_integral_or_integral_reference): New function.
6589 (evaluate_subexp_standard): Allow integer references in
6590 pointer arithmetic.
6591
e139a727
TBA
65922020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6593
6594 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6595 check for no ptid in the stop reply when the target is non-stop.
6596
e0802d59
TT
65972020-04-01 Tom Tromey <tromey@adacore.com>
6598
6599 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6600 "name" parameter to rvalue reference. Initialize m_name_holder.
6601 <lookup_name_info>: New overloads.
6602 <name>: Return gdb::string_view.
6603 <c_str>: New method.
6604 <make_ignore_params>: Update.
6605 <search_name_hash>: Update.
6606 <language_lookup_name>: Return const char *.
6607 <m_name>: Change type.
6608 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6609 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6610 (lookup_name_info::match_any): Update.
6611 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6612 Update.
6613 * minsyms.c (linkage_name_str): Update.
6614 * language.c (default_symbol_name_matcher): Update.
6615 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6616 Update.
6617 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6618 (ada_lookup_name_info::ada_lookup_name_info): Update.
6619 (literal_symbol_name_matcher): Update.
6620
8c072cb6
TT
66212020-04-01 Tom Tromey <tromey@adacore.com>
6622
6623 * psymtab.c (psymtab_search_name): Remove function.
6624 (psym_lookup_symbol): Create search name and lookup name here.
6625 (lookup_partial_symbol): Remove "name" parameter; add
6626 lookup_name.
6627 (psym_expand_symtabs_for_function): Update.
6628
6f29a534
TT
66292020-03-31 Joel Jones <joelkevinjones@gmail.com>
6630
6631 PR tui/25597:
6632 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6633
af62665e
TT
66342020-03-31 Tom Tromey <tromey@adacore.com>
6635
6636 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6637 memcpy.
6638
d1a89da5
NC
66392020-03-30 Nelson Chu <nelson.chu@sifive.com>
6640
6641 * features/riscv/32bit-csr.xml: Regenerated.
6642 * features/riscv/64bit-csr.xml: Regenerated.
6643
d8af9068
TT
66442020-03-30 Tom Tromey <tromey@adacore.com>
6645
6646 * ada-valprint.c (print_variant_part): Update.
6647 * ada-lang.h (ada_which_variant_applies): Update.
6648 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6649 outer_valaddr parameters; replace with "outer" value parameter.
6650 (to_fixed_variant_branch_type): Update.
6651
227c0bf4
PFC
66522020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6653
6654 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6655 <list>. Remove inclusion of observable.h.
6656 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6657 (struct arch_lwp_info): New struct.
6658 (class ppc_linux_dreg_interface): New class.
6659 (struct ppc_linux_process_info): New struct.
6660 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6661 <low_new_clone, low_forget_process, low_prepare_to_resume>
6662 <copy_thread_dreg_state, mark_thread_stale>
6663 <mark_debug_registers_changed, register_hw_breakpoint>
6664 <clear_hw_breakpoint, register_wp, clear_wp>
6665 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6666 <num_memory_accesses, get_trigger_type>
6667 <create_watchpoint_request, hwdebug_point_cmp>
6668 <init_arch_lwp_info, get_arch_lwp_info>
6669 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6670 methods.
6671 <struct ptid_hash>: New inner struct.
6672 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6673 members.
6674 (saved_dabr_value, hwdebug_info, max_slots_number)
6675 (struct hw_break_tuple, struct thread_points, ppc_threads)
6676 (have_ptrace_hwdebug_interface)
6677 (hwdebug_find_thread_points_by_tid)
6678 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6679 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6680 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6681 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6682 use m_dreg_interface.
6683 (hwdebug_point_cmp): Change to...
6684 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6685 reference arguments instead of pointers.
6686 (ppc_linux_nat_target::ranged_break_num_registers): Use
6687 m_dreg_interface.
6688 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6689 m_dreg_interface. Call register_hw_breakpoint.
6690 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6691 m_dreg_interface. Call clear_hw_breakpoint.
6692 (get_trigger_type): Change to...
6693 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6694 comment.
6695 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6696 use m_dreg_interface. Call register_hw_breakpoint.
6697 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6698 use m_dreg_interface. Call clear_hw_breakpoint.
6699 (can_use_watchpoint_cond_accel): Change to...
6700 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6701 method. Update comment, use m_dreg_interface and
6702 m_process_info.
6703 (calculate_dvc): Change to...
6704 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6705 m_dreg_interface.
6706 (num_memory_accesses): Change to...
6707 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6708 (check_condition): Change to...
6709 (ppc_linux_nat_target::check_condition): ...this method.
6710 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6711 comment, use m_dreg_interface.
6712 (create_watchpoint_request): Change to...
6713 (ppc_linux_nat_target::create_watchpoint_request): ...this
6714 method. Use m_dreg_interface.
6715 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6716 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6717 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6718 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6719 (ppc_linux_nat_target::low_forget_process)
6720 (ppc_linux_nat_target::low_new_fork)
6721 (ppc_linux_nat_target::low_new_clone)
6722 (ppc_linux_nat_target::low_delete_thread)
6723 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6724 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6725 only call mark_thread_stale.
6726 (ppc_linux_thread_exit): Remove.
6727 (ppc_linux_nat_target::stopped_data_address): Change to...
6728 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6729 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6730 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6731 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6732 comment. Call low_stopped_data_address.
6733 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6734 m_dreg_interface.
6735 (ppc_linux_nat_target::masked_watch_num_registers): Use
6736 m_dreg_interface.
6737 (ppc_linux_nat_target::copy_thread_dreg_state)
6738 (ppc_linux_nat_target::mark_thread_stale)
6739 (ppc_linux_nat_target::mark_debug_registers_changed)
6740 (ppc_linux_nat_target::register_hw_breakpoint)
6741 (ppc_linux_nat_target::clear_hw_breakpoint)
6742 (ppc_linux_nat_target::register_wp)
6743 (ppc_linux_nat_target::clear_wp)
6744 (ppc_linux_nat_target::init_arch_lwp_info)
6745 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6746 (_initialize_ppc_linux_nat): Remove observer callback.
6747
4db10d8f
PFC
67482020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6749
6750 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6751 (ppc_linux_nat_target::auxv_parse)
6752 (ppc_linux_nat_target::read_description)
6753 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6754 Move up.
6755
1310c1b0
PFC
67562020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6757
6758 * linux-nat.h (low_new_clone): New method.
6759 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6760
69b037c3
SM
67612020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6762
6763 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6764 (dbx_expand_psymtab): ... this.
6765 (start_psymtab): Update.
6766 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6767 (mdebug_expand_psymtab): ... this.
6768 (parse_partial_symbols): Update.
6769 (new_psymtab): Update.
6770 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6771 (xcoff_expand_psymtab): ... this.
6772 (xcoff_start_psymtab): Update.
6773
48993951
SM
67742020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6775
6776 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6777 <expand_dependencies>: ... this.
6778 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6779 (partial_symtab::expand_dependencies): ... this.
6780 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6781 Update.
6782 (dwarf2_psymtab::expand_psymtab): Update.
6783 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6784 * mdebugread.c (psymtab_to_symtab_1): Update.
6785 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6786
3ad83046
SM
67872020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6788
6789 * psympriv.h (discard_psymtab): Remove.
6790 * dbxread.c (dbx_end_psymtab): Update.
6791 * xcoffread.c (xcoff_end_psymtab): Update.
6792
4d1b9ab6
TT
67932020-03-28 Tom Tromey <tom@tromey.com>
6794
6795 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6796 comment.
6797
f1749218
TT
67982020-03-28 Tom Tromey <tom@tromey.com>
6799
6800 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6801
ebea7626
HD
68022020-03-27 Hannes Domani <ssbssa@yahoo.de>
6803
6804 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6805
a879b4d5
JB
68062020-03-26 John Baldwin <jhb@FreeBSD.org>
6807
6808 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6809
0826b30a
TT
68102020-03-26 Tom Tromey <tom@tromey.com>
6811
6812 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6813 (mark_common_block_symbol_computed, read_tag_string_type)
6814 (attr_to_dynamic_prop, read_subrange_type): Update.
6815 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6816 to be methods on struct attribute.
6817 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6818 (read_call_site_scope, partial_die_info::read)
6819 (partial_die_info::read, lookup_die_type, follow_die_ref):
6820 Update.
6821 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6822 from dwarf2_get_ref_die_offset.
6823 (attribute::constant_value): New method, from
6824 dwarf2_get_attr_constant_value.
6825 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6826 Declare method.
6827 <constant_value>: New method.
6828
2b2558bf
TT
68292020-03-26 Tom Tromey <tom@tromey.com>
6830
6831 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6832 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6833 (dwarf_type_encoding_name): Move to stringify.c.
6834 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6835 * dwarf2/stringify.c: New file.
6836 * dwarf2/stringify.h: New file.
6837
eeb64781
TT
68382020-03-26 Tom Tromey <tom@tromey.com>
6839
6840 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6841 Rewrite.
6842
a39fdb41
TT
68432020-03-26 Tom Tromey <tom@tromey.com>
6844
6845 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6846 methods.
6847 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6848 (lookup_ranges_base): Likewise.
6849 (read_cutu_die_from_dwo, read_full_die_1): Update.
6850
436c571c
TT
68512020-03-26 Tom Tromey <tom@tromey.com>
6852
6853 * dwarf2/read.c (read_import_statement, read_file_scope)
6854 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6855 (read_lexical_block_scope, read_call_site_scope)
6856 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6857 (handle_struct_member_die, process_structure_scope)
6858 (update_enumeration_type_from_children)
6859 (process_enumeration_scope, read_array_type, read_common_block)
6860 (read_namespace, read_module, read_subroutine_type): Update.
6861 (sibling_die): Remove.
6862
052c8bb8
TT
68632020-03-26 Tom Tromey <tom@tromey.com>
6864
6865 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6866 (build_type_psymtabs_reader, read_structure_type)
6867 (read_enumeration_type, read_full_die_1): Update.
6868 (dwarf2_attr_no_follow): Move to die.h.
6869 * dwarf2/die.h (struct die_info) <attr>: New method.
6870
2b24b6e4
TT
68712020-03-26 Tom Tromey <tom@tromey.com>
6872
6873 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6874 <base_address>: Now an optional.
6875 (dwarf2_find_base_address, dwarf2_rnglists_process)
6876 (dwarf2_ranges_process, fill_in_loclist_baton)
6877 (dwarf2_symbol_mark_computed): Update.
6878
c2d50fd0
TT
68792020-03-26 Tom Tromey <tom@tromey.com>
6880
6881 * dwarf2/read.c (struct die_info): Move to die.h.
6882 * dwarf2/die.h: New file.
6883
0df7ad3a
TT
68842020-03-26 Tom Tromey <tom@tromey.com>
6885
6886 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6887 * dwarf2/read.c
6888 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6889 Move to line-header.c.
6890 (read_checked_initial_length_and_offset, read_formatted_entries):
6891 Likewise.
6892 (dwarf_decode_line_header): Split into two.
6893 * dwarf2/line-header.c
6894 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6895 Move from read.c.
6896 (read_checked_initial_length_and_offset, read_formatted_entries):
6897 Likewise.
6898 (dwarf_decode_line_header): New function, split from read.c.
6899
86c0bb4c
TT
69002020-03-26 Tom Tromey <tom@tromey.com>
6901
6902 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6903 Declare method.
6904 * dwarf2/read.c (read_attribute_value): Update.
6905 (dwarf2_per_objfile::read_line_string): Rename from
6906 read_indirect_line_string.
6907 (read_formatted_entries): Update.
6908
2ef46c2f
TT
69092020-03-26 Tom Tromey <tom@tromey.com>
6910
6911 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6912 variable.
6913
4f9c1eda
TT
69142020-03-26 Tom Tromey <tom@tromey.com>
6915
6916 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6917 const.
6918 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6919 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6920 parameter const.
6921
5a0e026f
TT
69222020-03-26 Tom Tromey <tom@tromey.com>
6923
6924 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6925 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6926 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6927 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6928
8844c11b
TT
69292020-03-26 Tom Tromey <tom@tromey.com>
6930
6931 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6932 file_names_size, file_full_name, file_file_name>: Use const.
6933 <file_name_at, file_names>: Add const overload.
6934 * dwarf2/line-header.c (line_header::file_file_name)
6935 (line_header::file_full_name): Update.
6936
c90ec28a
TT
69372020-03-26 Tom Tromey <tom@tromey.com>
6938
6939 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6940 (macro_start_file, consume_improper_spaces)
6941 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6942 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6943 (dwarf_decode_macros): Move to macro.c.
6944 * dwarf2/macro.c: New file.
6945 * dwarf2/macro.h: New file.
6946 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6947
4f44ae6c
TT
69482020-03-26 Tom Tromey <tom@tromey.com>
6949
6950 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6951 method.
6952 * dwarf2/section.c: New method. From
6953 read_indirect_string_at_offset_from.
6954 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6955 (read_indirect_string_at_offset_from): Move to section.c.
6956 (read_indirect_string_at_offset): Rewrite.
6957 (read_indirect_line_string_at_offset): Remove.
6958 (read_indirect_string, read_indirect_line_string)
6959 (dwarf_decode_macro_bytes): Update.
6960
a0194fa8
TT
69612020-03-26 Tom Tromey <tom@tromey.com>
6962
6963 * dwarf2/section.h (struct dwarf2_section_info)
6964 <overload_complaint>: Declare.
6965 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6966 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6967 Rename from dwarf2_section_buffer_overflow_complaint.
6968 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6969 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6970
3d27bbdb
TT
69712020-03-26 Tom Tromey <tom@tromey.com>
6972
6973 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6974 Declare.
6975 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6976 Move from read.c.
6977 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6978 to section.c.
6979
9eac9650
TT
69802020-03-26 Tom Tromey <tom@tromey.com>
6981
6982 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6983
bf80d710
TT
69842020-03-26 Tom Tromey <tom@tromey.com>
6985
6986 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6987 "builder".
6988 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6989 parameter.
6990 (dwarf_decode_macros): Update.
6991
0314b390
TT
69922020-03-26 Tom Tromey <tom@tromey.com>
6993
6994 * dwarf2/read.c (read_attribute_value): Update.
6995 (read_indirect_string_from_dwz): Move to dwz.c; change into
6996 method.
6997 (dwarf_decode_macro_bytes): Update.
6998 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6999 * dwarf2/dwz.c: New file.
7000 * Makefile.in (COMMON_SFILES): Add dwz.c.
7001
9fda78b6
TT
70022020-03-26 Tom Tromey <tom@tromey.com>
7003
7004 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7005 * dwarf2/read.c: Add include.
7006 * dwarf2/index-write.c: Add include.
7007 * dwarf2/index-cache.c: Add include.
7008 * dwarf2/dwz.h: New file.
7009
33aa3c10
TT
70102020-03-25 Tom Tromey <tom@tromey.com>
7011
7012 * compile/compile-object-load.c (get_out_value_type): Mention
7013 correct symbol name in error message.
7014
d503b685
HD
70152020-03-25 Hannes Domani <ssbssa@yahoo.de>
7016
7017 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7018
7b1eff95
TV
70192020-03-25 Tom de Vries <tdevries@suse.de>
7020
7021 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7022 * symmisc.c (dump_symtab_1): Print user and includes fields.
7023 (maintenance_info_symtabs): Same.
7024
dd895392
AB
70252020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7026
7027 PR gdb/25534
7028 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7029 (riscv_regcache_cooked_write): New function.
7030 (riscv_push_dummy_call): Use new function.
7031 (riscv_return_value): Likewise.
7032
5ab2fbf1
SM
70332020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7034
7035 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7036 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7037 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7038 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7039 * infrun.c (follow_fork): Likewise.
7040 (follow_fork_inferior): Likewise.
7041 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7042 * linux-nat.h (class linux_nat_target): Likewise.
7043 * remote.c (class remote_target) <follow_fork>: Likewise.
7044 (remote_target::follow_fork): Likewise.
7045 * target-delegates.c: Re-generate.
7046 * target.c (default_follow_fork): Likewise.
7047 (target_follow_fork): Likewise.
7048 * target.h (struct target_ops) <follow_fork>: Likewise.
7049 (target_follow_fork): Likewise.
7050
a64fafb5
TV
70512020-03-24 Tom de Vries <tdevries@suse.de>
7052
7053 * psymtab.c (maintenance_info_psymtabs): Print user field.
7054
fe26d3a3
TT
70552020-03-20 Tom Tromey <tromey@adacore.com>
7056
7057 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7058 const.
7059 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7060 const.
7061
c884cc46
SM
70622020-03-20 Simon Marchi <simon.marchi@efficios.com>
7063
7064 * ptrace.m4: Don't check for ptrace declaration.
7065 * config.in: Re-generate.
7066 * configure: Re-generate.
7067 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7068 not defined.
7069
1ff700c2
KR
70702020-03-20 Kamil Rytarowski <n54@gmx.com>
7071
7072 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7073 `PTRACE_TYPE_RET'.
7074 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7075 * sparc-nat.c (gdb_ptrace): Likewise.
7076 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7077
f7d4f0b1
TT
70782020-03-20 Tom Tromey <tromey@adacore.com>
7079
7080 * c-exp.y (lex_one_token): Fix assert.
7081
f67210ff
TT
70822020-03-20 Tom Tromey <tromey@adacore.com>
7083
7084 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7085 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7086 strncpy call.
7087
1773be9e
TT
70882020-03-20 Tom Tromey <tromey@adacore.com>
7089
7090 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7091
70304be9
TT
70922020-03-20 Tom Tromey <tromey@adacore.com>
7093
7094 * ada-valprint.c (print_variant_part): Remove parameters; switch
7095 to value-based API.
7096 (print_field_values): Likewise.
7097 (ada_val_print_struct_union): Likewise.
7098 (ada_value_print_1): Update.
7099
9faa006d
KR
71002020-03-20 Kamil Rytarowski <n54@gmx.com>
7101
7102 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7103 nbsd_nat_target instead of inf_ptrace_target.
7104 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7105 nbsd_nat_target.
7106
4a90f062
KR
71072020-03-20 Kamil Rytarowski <n54@gmx.com>
7108
7109 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7110 it to the ptrace call.
7111 * (store_registers): Likewise.
7112
71132020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7114
7115 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7116 it to the ptrace call.
7117 * (store_registers): Likewise.
7118
2d07da27
LM
71192020-03-19 Luis Machado <luis.machado@linaro.org>
7120
7121 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7122 valid, fetch vg value from ptrace.
7123
f09db380
KR
71242020-03-19 Kamil Rytarowski <n54@gmx.com>
7125 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7126 * inf-ptrace.c: Likewise.
7127 * (gdb_ptrace): Add.
7128 * (inf_ptrace_target::resume): Update.
7129 * (inf_ptrace_target::xfer_partial): Likewise.
7130 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7131 * (inf_ptrace_peek_poke): Update.
7132
fcc7376e
KR
71332020-03-19 Kamil Rytarowski <n54@gmx.com>
7134
7135 * x86-bsd-nat.c (gdb_ptrace): New.
7136 * (x86bsd_dr_set): Add new argument `ptid'.
7137 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7138 x86bsd_dr_set_addr): Update.
7139
cada5fc9
AB
71402020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7141
7142 * remote.c (remote_target::process_stop_reply): Handle events for
7143 all threads differently.
7144
19a2740f
AB
71452020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7146
7147 * completer.c (completion_tracker::remove_completion): Define new
7148 function.
7149 * completer.h (completion_tracker::remove_completion): Declare new
7150 function.
7151 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7152 when adding a C++ function symbol.
7153
724fd9ba
AB
71542020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7155
7156 * completer.c (completion_tracker::completion_hash_entry): Define
7157 new class.
7158 (advance_to_filename_complete_word_point): Call
7159 recompute_lowest_common_denominator.
7160 (completion_tracker::completion_tracker): Call discard_completions
7161 to setup the hash table.
7162 (completion_tracker::discard_completions): Allow for being called
7163 from the constructor, pass new equal function, and element deleter
7164 when constructing the hash table. Initialise new class member
7165 variables.
7166 (completion_tracker::maybe_add_completion): Remove use of
7167 m_entries_vec, and store more information into m_entries_hash.
7168 (completion_tracker::recompute_lcd_visitor): New function, most
7169 content taken from...
7170 (completion_tracker::recompute_lowest_common_denominator):
7171 ...here, this now just visits each item in the hash calling the
7172 above visitor.
7173 (completion_tracker::build_completion_result): Remove use of
7174 m_entries_vec, call recompute_lowest_common_denominator.
7175 * completer.h (completion_tracker::have_completions): Remove use
7176 of m_entries_vec.
7177 (completion_tracker::completion_hash_entry): Declare new class.
7178 (completion_tracker::recompute_lowest_common_denominator): Change
7179 function signature.
7180 (completion_tracker::recompute_lcd_visitor): Declare new function.
7181 (completion_tracker::m_entries_vec): Delete.
7182 (completion_tracker::m_entries_hash): Initialize to NULL.
7183 (completion_tracker::m_lowest_common_denominator_valid): New
7184 member variable.
7185 (completion_tracker::m_lowest_common_denominator_max_length): New
7186 member variable.
7187
5a82b8a1
KR
71882020-03-17 Kamil Rytarowski <n54@gmx.com>
7189
7190 * regformats/regdef.h: Put reg in gdb namespace.
7191
fb516a69
KR
71922020-03-17 Kamil Rytarowski <n54@gmx.com>
7193
7194 * i386-bsd-nat.c (gdb_ptrace): New.
7195 * (i386bsd_fetch_inferior_registers,
7196 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7197 * (i386bsd_fetch_inferior_registers,
7198 i386bsd_store_inferior_registers) Use gdb_ptrace.
7199
1c0aa1fb
KR
72002020-03-17 Kamil Rytarowski <n54@gmx.com>
7201
7202 * amd64-bsd-nat.c (gdb_ptrace): New.
7203 * (amd64bsd_fetch_inferior_registers,
7204 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7205 * (amd64bsd_fetch_inferior_registers,
7206 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7207
5ccd2fb7
KR
72082020-03-17 Kamil Rytarowski <n54@gmx.com>
7209
7210 * user-regs.c (user_reg::read): Rename to...
7211 (user_reg::xread): ...this.
7212 * (append_user_reg): Rename argument `read' to `xread'.
7213 * (user_reg_add_builtin): Likewise.
7214 * (user_reg_add): Likewise.
7215 * (value_of_user_reg): Likewise.
7216
2108a63a
KR
72172020-03-17 Kamil Rytarowski <n54@gmx.com>
7218
7219 * sparc-nat.c (gdb_ptrace): New.
7220 * sparc-nat.c (sparc_fetch_inferior_registers)
7221 (sparc_store_inferior_registers) Remove obsolete comment.
7222 * sparc-nat.c (sparc_fetch_inferior_registers)
7223 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7224 * sparc-nat.c (sparc_fetch_inferior_registers)
7225 (sparc_store_inferior_registers) Use gdb_ptrace.
7226
a225c9a8
KR
72272020-03-17 Kamil Rytarowski <n54@gmx.com>
7228
7229 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7230 it to the ptrace call.
7231 * sh-nbsd-nat.c (store_registers): Likewise.
7232
98097623
KR
72332020-03-17 Kamil Rytarowski <n54@gmx.com>
7234
7235 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7236 nbsd_nat_target instead of inf_ptrace_target.
7237 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7238 nbsd_nat_target.
7239
9e38d619
KR
72402020-03-17 Kamil Rytarowski <n54@gmx.com>
7241
7242 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7243
a2ecbe9f
KR
72442020-03-17 Kamil Rytarowski <n54@gmx.com>
7245
7246 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7247 <sys/sysctl.h>.
7248 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7249
58990295
TV
72502020-03-17 Tom de Vries <tdevries@suse.de>
7251
7252 PR gdb/23710
7253 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7254 fields.
7255 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7256 fields.
7257 (process_imported_unit_die): Skip import of c++ CUs.
7258
771dd3a8
TT
72592020-03-16 Tom Tromey <tom@tromey.com>
7260
7261 * p-valprint.c (pascal_object_print_value): Initialize
7262 base_value.
7263
817a7585
AK
72642020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7265 Shahab Vahedi <shahab@synopsys.com>
7266
7267 * Makefile.in: Add arch/arc.o
7268 * configure.tgt: Likewise.
7269 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7270 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7271 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7272 * arc-tdep.h (arc_read_description): Add proto type.
7273 * arch/arc.c: New file.
7274 * arch/arc.h: Likewise.
7275 * features/Makefile: Replace old target descriptions with new.
7276 * features/arc-arcompact.c: Remove.
7277 * features/arc-arcompact.xml: Likewise.
7278 * features/arc-v2.c: Likewise
7279 * features/arc-v2.xml: Likewise
7280 * features/arc/aux-arcompact.xml: New file.
7281 * features/arc/aux-v2.xml: Likewise.
7282 * features/arc/core-arcompact.xml: Likewise.
7283 * features/arc/core-v2.xml: Likewise.
7284 * features/arc/aux-arcompact.c: Generate.
7285 * features/arc/aux-v2.c: Likewise.
7286 * features/arc/core-arcompact.c: Likewise.
7287 * features/arc/core-v2.c: Likewise.
7288 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7289
67430cd0
TT
72902020-03-16 Tom Tromey <tromey@adacore.com>
7291
7292 PR gdb/25663:
7293 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7294 putting value into bcache.
7295
30efb6c7
SM
72962020-03-16 Simon Marchi <simon.marchi@efficios.com>
7297
7298 PR gdb/21500
7299 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7300 to...
7301 (amd64_windows_init_abi_common): ... this. Don't set size of
7302 long type.
7303 (amd64_windows_init_abi): New function.
7304 (amd64_cygwin_init_abi): New function.
7305 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7306 the Cygwin OS ABI.
7307 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7308 comment.
7309
8db52437
SM
73102020-03-16 Simon Marchi <simon.marchi@efficios.com>
7311
7312 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7313 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7314 (pe_import_directory_entry): New struct type.
7315 (is_linked_with_cygwin_dll): New function.
7316 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7317 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7318 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7319
5982a56a
SM
73202020-03-16 Simon Marchi <simon.marchi@efficios.com>
7321
7322 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7323 i386_cygwin_core_osabi_sniffer.
7324
7a1998df
SM
73252020-03-16 Simon Marchi <simon.marchi@efficios.com>
7326
7327 * i386-cygwin-tdep.c: Rename to...
7328 * i386-windows-tdep.c: ... this.
7329 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7330 i386-windows-tdep.c.
7331 * configure.tgt: Likewise.
7332
053205cc
SM
73332020-03-16 Simon Marchi <simon.marchi@efficios.com>
7334
7335 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7336 * osabi.c (gdb_osabi_names): Add "Windows".
7337 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7338 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7339 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7340 i386_cygwin_osabi_sniffer.
7341 (_initialize_i386_cygwin_tdep): Register OS ABI
7342 GDB_OSABI_WINDOWS for i386.
7343 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7344 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7345 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7346 for x86-64.
7347 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7348 when the target matches '*-*-mingw*'.
7349
fe4b2ee6
SM
73502020-03-16 Simon Marchi <simon.marchi@efficios.com>
7351
7352 * defs.h (enum gdb_osabi): Move to...
7353 * osabi.h (enum gdb_osabi): ... here.
7354 * gdbarch.sh: Include osabi.h in gdbarch.h.
7355 * gdbarch.h: Re-generate.
7356
cb9b645d
SM
73572020-03-16 Simon Marchi <simon.marchi@efficios.com>
7358
7359 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7360 function.
7361 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7362
3293bbaf
TT
73632020-03-14 Tom Tromey <tom@tromey.com>
7364
7365 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7366 for C++.
7367 (c_type_print_modifier): Likewise. Add "language" parameter.
7368 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7369 (c_type_print_base_1): Update.
7370 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7371 constants.
7372 * type-stack.c (type_stack::insert): Handle tp_atomic and
7373 tp_restrict.
7374 (type_stack::follow_type_instance_flags): Likewise.
7375 (type_stack::follow_types): Likewise. Merge type-following code.
7376 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7377 (space_identifier, cv_with_space_id)
7378 (const_or_volatile_or_space_identifier_noopt)
7379 (const_or_volatile_or_space_identifier): Remove.
7380 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7381 rules.
7382 (ptr_operator, typebase): Update.
7383 (enum token_flag) <FLAG_C>: New constant.
7384 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7385 "_Atomic".
7386 (lex_one_token): Handle FLAG_C.
7387
154151a6
KR
73882020-03-14 Kamil Rytarowski <n54@gmx.com>
7389
7390 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7391 it to the ptrace call.
7392 * m68k-bsd-nat.c (store_registers): Likewise.
7393
bc107784
KR
73942020-03-14 Kamil Rytarowski <n54@gmx.com>
7395
7396 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7397 gdb_byte *.
7398 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7399 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7400 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7401
01a80117
KR
74022020-03-14 Kamil Rytarowski <n54@gmx.com>
7403
7404 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7405 nbsd_nat_target instead of inf_ptrace_target.
7406 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7407 nbsd_nat_target.
7408
f90280ca
KR
74092020-03-14 Kamil Rytarowski <n54@gmx.com>
7410
7411 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7412 register_t.
7413
6def66f1
KR
74142020-03-14 Kamil Rytarowski <n54@gmx.com>
7415
7416 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7417 it to the ptrace call.
7418 * alpha-bsd-nat.c (store_registers): Likewise.
7419
66eaca97
KR
74202020-03-14 Kamil Rytarowski <n54@gmx.com>
7421
7422 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7423 includes.
7424 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7425 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7426 fill_fpregset): Likewise.
7427
4fed520b
KR
74282020-03-14 Kamil Rytarowski <n54@gmx.com>
7429
7430 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7431 nbsd_nat_target instead of inf_ptrace_target.
7432 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7433 nbsd_nat_target.
7434
2190cf06
KR
74352020-03-14 Kamil Rytarowski <n54@gmx.com>
7436
7437 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7438 register_t.
7439
75c56d3d
KR
74402020-03-14 Kamil Rytarowski <n54@gmx.com>
7441
7442 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7443 it to the ptrace call.
7444 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7445 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7446 * arm-nbsd-nat.c (store_register): Likewise.
7447 * arm-nbsd-nat.c (store_regs): Likewise.
7448 * arm-nbsd-nat.c (store_fp_register): Likewise.
7449 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7450
6018d381
KR
74512020-03-14 Kamil Rytarowski <n54@gmx.com>
7452
7453 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7454 nbsd_nat_target instead of inf_ptrace_target.
7455 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7456 nbsd_nat_target.
7457
013f99f0
KR
74582020-03-14 Kamil Rytarowski <n54@gmx.com>
7459
7460 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7461 it to the ptrace call.
7462 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7463
12753073
KR
74642020-03-14 Kamil Rytarowski <n54@gmx.com>
7465
6227b330
KR
7466 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7467 it to the ptrace call.
7468 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7469
74702020-03-14 Kamil Rytarowski <n54@gmx.com>
7471
7472 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7473 gdb_byte *.
12753073
KR
7474 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7475
d5be5fa4
KR
74762020-03-14 Kamil Rytarowski <n54@gmx.com>
7477
7478 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7479 instead of inf_ptrace_target.
7480 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7481 nbsd_nat_target.
7482
8110f842
KR
74832020-03-14 Kamil Rytarowski <n54@gmx.com>
7484
7485 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7486 register_t.
7487
52feded7
KR
74882020-03-14 Kamil Rytarowski <n54@gmx.com>
7489
7490 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7491 register_t.
7492
25567eee
KR
74932020-03-14 Kamil Rytarowski <n54@gmx.com>
7494
7495 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7496 register_t.
7497
426a9c18
TT
74982020-03-13 Tom Tromey <tom@tromey.com>
7499
7500 * value.h (val_print): Don't declare.
7501 * valprint.h (val_print_array_elements)
7502 (val_print_scalar_formatted, generic_val_print): Don't declare.
7503 * valprint.c (generic_val_print_array): Take a struct value.
7504 (generic_val_print_ptr, generic_val_print_memberptr)
7505 (generic_val_print_bool, generic_val_print_int)
7506 (generic_val_print_char, generic_val_print_complex)
7507 (generic_val_print): Remove.
7508 (generic_value_print): Update.
7509 (do_val_print): Remove unused parameters. Don't call
7510 la_val_print.
7511 (val_print): Remove.
7512 (common_val_print): Update. Don't call value_check_printable.
7513 (val_print_scalar_formatted, val_print_array_elements): Remove.
7514 * rust-lang.c (rust_val_print): Remove.
7515 (rust_language_defn): Update.
7516 * p-valprint.c (pascal_val_print): Remove.
7517 (pascal_value_print_inner): Update.
7518 (pascal_object_print_val_fields, pascal_object_print_val):
7519 Remove.
7520 (pascal_object_print_static_field): Update.
7521 * p-lang.h (pascal_val_print): Don't declare.
7522 * p-lang.c (pascal_language_defn): Update.
7523 * opencl-lang.c (opencl_language_defn): Update.
7524 * objc-lang.c (objc_language_defn): Update.
7525 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7526 * m2-lang.h (m2_val_print): Don't declare.
7527 * m2-lang.c (m2_language_defn): Update.
7528 * language.h (struct language_defn) <la_val_print>: Remove.
7529 * language.c (unk_lang_value_print_inner): Rename. Change
7530 argument types.
7531 (unknown_language_defn, auto_language_defn): Update.
7532 * go-valprint.c (go_val_print): Remove.
7533 * go-lang.h (go_val_print): Don't declare.
7534 * go-lang.c (go_language_defn): Update.
7535 * f-valprint.c (f_val_print): Remove.
7536 * f-lang.h (f_value_print): Don't declare.
7537 * f-lang.c (f_language_defn): Update.
7538 * d-valprint.c (d_val_print): Remove.
7539 * d-lang.h (d_value_print): Don't declare.
7540 * d-lang.c (d_language_defn): Update.
7541 * cp-valprint.c (cp_print_value_fields)
7542 (cp_print_value_fields_rtti, cp_print_value): Remove.
7543 (cp_print_static_field): Update.
7544 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7545 (c_val_print_struct, c_val_print_union, c_val_print_int)
7546 (c_val_print_memberptr, c_val_print): Remove.
7547 * c-lang.h (c_val_print_array, cp_print_value_fields)
7548 (cp_print_value_fields_rtti): Don't declare.
7549 * c-lang.c (c_language_defn, cplus_language_defn)
7550 (asm_language_defn, minimal_language_defn): Update.
7551 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7552 (ada_val_print_enum): Take a struct value.
7553 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7554 (ada_val_print): Remove.
7555 (ada_value_print_1): Update.
7556 (printable_val_type): Remove.
7557 * ada-lang.h (ada_val_print): Don't declare.
7558 * ada-lang.c (ada_language_defn): Update.
7559
42331a1e
TT
75602020-03-13 Tom Tromey <tom@tromey.com>
7561
7562 * valprint.c (do_val_print): Update.
7563 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7564 a struct value.
7565 (value_to_value_object_no_release): Declare.
7566 * python/py-value.c (value_to_value_object_no_release): New
7567 function.
7568 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7569 struct value.
7570 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7571 function.
7572 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7573 a struct value.
7574 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7575 Declare.
7576 (gdbscm_apply_val_pretty_printer): Take a struct value.
7577 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7578 value.
7579 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7580 value.
7581 * extension-priv.h (struct extension_language_ops)
7582 <apply_val_pretty_printer>: Take a struct value.
7583 * cp-valprint.c (cp_print_value): Create a struct value.
7584 (cp_print_value): Update.
7585
3a916a97
TT
75862020-03-13 Tom Tromey <tom@tromey.com>
7587
7588 * ada-valprint.c (print_field_values): Call common_val_print.
7589
b59eac37
TT
75902020-03-13 Tom Tromey <tom@tromey.com>
7591
7592 * ada-valprint.c (val_print_packed_array_elements): Remove
7593 bitoffset and val parameters. Call common_val_print.
7594 (ada_val_print_string): Remove offset, address, and original_value
7595 parameters.
7596 (ada_val_print_array): Update.
7597 (ada_value_print_array): New function.
7598 (ada_value_print_1): Call it.
7599
03371129
TT
76002020-03-13 Tom Tromey <tom@tromey.com>
7601
7602 * ada-valprint.c (ada_value_print): Use common_val_print.
7603
2e088f8b
TT
76042020-03-13 Tom Tromey <tom@tromey.com>
7605
7606 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7607
39ef85a8
TT
76082020-03-13 Tom Tromey <tom@tromey.com>
7609
7610 * ada-valprint.c (ada_value_print_num): New function.
7611 (ada_value_print_1): Use it.
7612
b9fa6e07
TT
76132020-03-13 Tom Tromey <tom@tromey.com>
7614
7615 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7616
416595d6
TT
76172020-03-13 Tom Tromey <tom@tromey.com>
7618
7619 * ada-valprint.c (ada_value_print_ptr): New function.
7620 (ada_value_print_1): Use it.
7621
5b5e15ec
TT
76222020-03-13 Tom Tromey <tom@tromey.com>
7623
7624 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7625 call common_val_print.
7626 (ada_val_print_1): Update.
7627 (ada_value_print_1): New function.
7628 (ada_value_print_inner): Rewrite.
7629
fbf54e75
TT
76302020-03-13 Tom Tromey <tom@tromey.com>
7631
7632 * cp-valprint.c (cp_print_value_fields): Update.
7633 (cp_print_value): New function.
7634
64b653ca
TT
76352020-03-13 Tom Tromey <tom@tromey.com>
7636
7637 * m2-valprint.c (m2_value_print_inner): Use
7638 cp_print_value_fields.
7639 * cp-valprint.c (cp_print_value_fields): New function.
7640 * c-valprint.c (c_value_print_struct): New function.
7641 (c_value_print_inner): Use c_value_print_struct.
7642 * c-lang.h (cp_print_value_fields): Declare.
7643
6999f067
TT
76442020-03-13 Tom Tromey <tom@tromey.com>
7645
7646 * c-valprint.c (c_value_print_array): New function.
7647 (c_value_print_inner): Use it.
7648
ce80b8bd
TT
76492020-03-13 Tom Tromey <tom@tromey.com>
7650
7651 * c-valprint.c (c_value_print_memberptr): New function.
7652 (c_value_print_inner): Use it.
7653
2faac269
TT
76542020-03-13 Tom Tromey <tom@tromey.com>
7655
7656 * c-valprint.c (c_value_print_int): New function.
7657 (c_value_print_inner): Use it.
7658
da3e2c29
TT
76592020-03-13 Tom Tromey <tom@tromey.com>
7660
7661 * c-valprint.c (c_value_print_ptr): New function.
7662 (c_value_print_inner): Use it.
7663
50836231
TT
76642020-03-13 Tom Tromey <tom@tromey.com>
7665
7666 * c-valprint.c (c_value_print_inner): Rewrite.
7667
4f412b6e
TT
76682020-03-13 Tom Tromey <tom@tromey.com>
7669
7670 * valprint.c (generic_value_print_complex): New function.
7671 (generic_value_print): Use it.
7672
f5354008
TT
76732020-03-13 Tom Tromey <tom@tromey.com>
7674
7675 * valprint.c (generic_val_print_float): Don't call
7676 val_print_scalar_formatted.
7677 (generic_val_print, generic_value_print): Update.
7678
3eec3b05
TT
76792020-03-13 Tom Tromey <tom@tromey.com>
7680
7681 * valprint.c (generic_value_print_char): New function
7682 (generic_value_print): Use it.
7683
fdddfccb
TT
76842020-03-13 Tom Tromey <tom@tromey.com>
7685
7686 * valprint.c (generic_value_print_int): New function.
7687 (generic_value_print): Use it.
7688
6dde7521
TT
76892020-03-13 Tom Tromey <tom@tromey.com>
7690
7691 * valprint.c (generic_value_print_bool): New function.
7692 (generic_value_print): Use it.
7693
4112d2e6
TT
76942020-03-13 Tom Tromey <tom@tromey.com>
7695
7696 * valprint.c (generic_val_print_func): Simplify.
7697 (generic_val_print, generic_value_print): Update.
7698
65786af6
TT
76992020-03-13 Tom Tromey <tom@tromey.com>
7700
7701 * valprint.c (generic_val_print_flags): Remove.
7702 (generic_val_print, generic_value_print): Update.
7703 (val_print_type_code_flags): Add original_value parameter.
7704
40f3ce18
TT
77052020-03-13 Tom Tromey <tom@tromey.com>
7706
7707 * valprint.c (generic_val_print): Update.
7708 (generic_value_print): Update.
7709 * valprint.c (generic_val_print_enum): Don't call
7710 val_print_scalar_formatted.
7711
2a5b130b
TT
77122020-03-13 Tom Tromey <tom@tromey.com>
7713
7714 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7715 * valprint.c (generic_value_print_ptr): New function.
7716
abc66ce9
TT
77172020-03-13 Tom Tromey <tom@tromey.com>
7718
7719 * valprint.c (generic_value_print): Rewrite.
7720
07a32858
TT
77212020-03-13 Tom Tromey <tom@tromey.com>
7722
7723 * p-valprint.c (pascal_object_print_value_fields)
7724 (pascal_object_print_value): New functions.
7725
64d64d3a
TT
77262020-03-13 Tom Tromey <tom@tromey.com>
7727
7728 * p-valprint.c (pascal_value_print_inner): Rewrite.
7729
6a95a1f5
TT
77302020-03-13 Tom Tromey <tom@tromey.com>
7731
7732 * f-valprint.c (f_value_print_innner): Rewrite.
7733
59fcdac6
TT
77342020-03-13 Tom Tromey <tom@tromey.com>
7735
7736 * m2-valprint.c (m2_print_unbounded_array): New overload.
7737 (m2_print_unbounded_array): Update.
7738 (m2_print_array_contents): Take a struct value.
7739 (m2_value_print_inner): Rewrite.
7740
d133c3e1
TT
77412020-03-13 Tom Tromey <tom@tromey.com>
7742
7743 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7744 (d_value_print_inner): New function.
7745 * d-lang.h (d_value_print_inner): Declare.
7746 * d-lang.c (d_language_defn): Use d_value_print_inner.
7747
23b0f06b
TT
77482020-03-13 Tom Tromey <tom@tromey.com>
7749
7750 * go-valprint.c (go_value_print_inner): New function.
7751 * go-lang.h (go_value_print_inner): Declare.
7752 * go-lang.c (go_language_defn): Use go_value_print_inner.
7753
5f56f7cb
TT
77542020-03-13 Tom Tromey <tom@tromey.com>
7755
7756 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7757 API.
7758 (rust_val_print): Rewrite.
7759 (rust_value_print_inner): New function, from rust_val_print.
7760 (rust_language_defn): Use rust_value_print_inner.
7761
26792ee0
TT
77622020-03-13 Tom Tromey <tom@tromey.com>
7763
7764 * ada-valprint.c (ada_value_print_inner): New function.
7765 * ada-lang.h (ada_value_print_inner): Declare.
7766 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7767
24051bbe
TT
77682020-03-13 Tom Tromey <tom@tromey.com>
7769
7770 * f-valprint.c (f_value_print_innner): New function.
7771 * f-lang.h (f_value_print_innner): Declare.
7772 * f-lang.c (f_language_defn): Use f_value_print_innner.
7773
c0941be6
TT
77742020-03-13 Tom Tromey <tom@tromey.com>
7775
7776 * p-valprint.c (pascal_value_print_inner): New function.
7777 * p-lang.h (pascal_value_print_inner): Declare.
7778 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7779
62c4663d
TT
77802020-03-13 Tom Tromey <tom@tromey.com>
7781
7782 * m2-valprint.c (m2_value_print_inner): New function.
7783 * m2-lang.h (m2_value_print_inner): Declare.
7784 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7785
62182190
TT
77862020-03-13 Tom Tromey <tom@tromey.com>
7787
7788 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7789 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7790 * c-valprint.c (c_value_print_inner): New function.
7791 * c-lang.h (c_value_print_inner): Declare.
7792 * c-lang.c (c_language_defn, cplus_language_defn)
7793 (asm_language_defn, minimal_language_defn): Use
7794 c_value_print_inner.
7795
1e592a8a
TT
77962020-03-13 Tom Tromey <tom@tromey.com>
7797
7798 * p-valprint.c (pascal_object_print_value_fields): Now static.
7799 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7800
7fe471e9
TT
78012020-03-13 Tom Tromey <tom@tromey.com>
7802
7803 * c-valprint.c (c_val_print_array): Simplify.
7804
d121c6ce
TT
78052020-03-13 Tom Tromey <tom@tromey.com>
7806
7807 * valprint.c (value_print_array_elements): New function.
7808 * valprint.h (value_print_array_elements): Declare.
7809
4dba70ee
TT
78102020-03-13 Tom Tromey <tom@tromey.com>
7811
7812 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7813 * mips-tdep.c (mips_print_register): Use
7814 value_print_scalar_formatted.
7815
4f9ae810
TT
78162020-03-13 Tom Tromey <tom@tromey.com>
7817
7818 * valprint.h (value_print_scalar_formatted): Declare.
7819 * valprint.c (value_print_scalar_formatted): New function.
7820
156bfec9
TT
78212020-03-13 Tom Tromey <tom@tromey.com>
7822
7823 * valprint.h (generic_value_print): Declare.
7824 * valprint.c (generic_value_print): New function.
7825
2b4e573d
TT
78262020-03-13 Tom Tromey <tom@tromey.com>
7827
7828 * valprint.c (do_val_print): Call la_value_print_inner, if
7829 available.
7830 * rust-lang.c (rust_language_defn): Update.
7831 * p-lang.c (pascal_language_defn): Update.
7832 * opencl-lang.c (opencl_language_defn): Update.
7833 * objc-lang.c (objc_language_defn): Update.
7834 * m2-lang.c (m2_language_defn): Update.
7835 * language.h (struct language_defn) <la_value_print_inner>: New
7836 member.
7837 * language.c (unknown_language_defn, auto_language_defn): Update.
7838 * go-lang.c (go_language_defn): Update.
7839 * f-lang.c (f_language_defn): Update.
7840 * d-lang.c (d_language_defn): Update.
7841 * c-lang.c (c_language_defn, cplus_language_defn)
7842 (asm_language_defn, minimal_language_defn): Update.
7843 * ada-lang.c (ada_language_defn): Update.
7844
a1f6a07c
TT
78452020-03-13 Tom Tromey <tom@tromey.com>
7846
7847 * c-valprint.c (c_value_print): Use common_val_print.
7848
410cf315
TT
78492020-03-13 Tom Tromey <tom@tromey.com>
7850
7851 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7852
72a45c93
TT
78532020-03-13 Tom Tromey <tom@tromey.com>
7854
7855 * f-valprint.c (f77_print_array_1, f_val_print): Use
7856 common_val_print.
7857
040f66bd
TT
78582020-03-13 Tom Tromey <tom@tromey.com>
7859
7860 * riscv-tdep.c (riscv_print_one_register_info): Use
7861 common_val_print.
7862
a6e05a6c
TT
78632020-03-13 Tom Tromey <tom@tromey.com>
7864
7865 * mi/mi-main.c (output_register): Use common_val_print.
7866
3444c526
TT
78672020-03-13 Tom Tromey <tom@tromey.com>
7868
7869 * infcmd.c (default_print_one_register_info): Use
7870 common_val_print.
7871
c2a44efe
TT
78722020-03-13 Tom Tromey <tom@tromey.com>
7873
7874 * valprint.h (common_val_print_checked): Declare.
7875 * valprint.c (common_val_print_checked): New function.
7876 * stack.c (print_frame_arg): Use common_val_print_checked.
7877
b0c26e99
TT
78782020-03-13 Tom Tromey <tom@tromey.com>
7879
7880 * valprint.c (do_val_print): New function, from val_print.
7881 (val_print): Use do_val_print.
7882 (common_val_print): Use do_val_print.
7883
ce3acbe9
TT
78842020-03-13 Tom Tromey <tom@tromey.com>
7885
7886 * valprint.c (value_print): Use scoped_value_mark.
7887
96c7f873
TV
78882020-03-13 Tom de Vries <tdevries@suse.de>
7889
7890 PR symtab/25646
7891 * psymtab.c (partial_symtab::partial_symtab): Don't set
7892 globals_offset and statics_offset. Push element onto
7893 current_global_psymbols and current_static_psymbols stacks.
7894 (concat): New function.
7895 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7896 element from current_global_psymbols and current_static_psymbols
7897 stacks. Concat popped elements to global_psymbols and
7898 static_symbols.
7899 (add_psymbol_to_list): Use current_global_psymbols and
7900 current_static_psymbols stacks.
7901 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7902 current_static_psymbols fields.
7903
6ba0a321
CB
79042020-03-12 Christian Biesinger <cbiesinger@google.com>
7905
7906 * corelow.c (sniff_core_bfd): Remove.
7907 (class core_target) <m_core_vec>: Remove.
7908 (core_target::core_target): Update.
7909 (core_file_fns): Remove.
7910 (deprecated_add_core_fns): Remove.
7911 (default_core_sniffer): Remove.
7912 (sniff_core_bfd): Remove.
7913 (default_check_format): Remove.
7914 (gdb_check_format): Remove.
7915 (core_target_open): Update.
7916 (core_target::get_core_register_section): Update.
7917 (get_core_registers_cb): Update.
7918 (core_target::fetch_registers): Update.
7919 * gdbcore.h (struct core_fns): Remove.
7920 (deprecated_add_core_fns): Remove.
7921 (default_core_sniffer): Remove.
7922 (default_check_format): Remove.
7923
227031b2
TT
79242020-03-12 Tom Tromey <tom@tromey.com>
7925
7926 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7927 CORE_ADDR.
7928 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7929
53807e9f
TT
79302020-03-12 Tom Tromey <tom@tromey.com>
7931
7932 * remote.c (remote_target::download_tracepoint)
7933 (remote_target::enable_tracepoint)
7934 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7935 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7936 sprintf_vma.
7937
64f25102
TT
79382020-03-12 Tom Tromey <tom@tromey.com>
7939
7940 * symfile-mem.c: Update CORE_ADDR size assert.
7941
272cd5a3
SM
79422020-03-12 Simon Marchi <simon.marchi@efficios.com>
7943
7944 * selftest.m4: Move to gdbsupport/.
7945 * acinclude.m4: Update path to selftest.m4.
7946
74cd3f9d
SM
79472020-03-12 Simon Marchi <simon.marchi@efficios.com>
7948
7949 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7950 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7951 gdbarch-selfselftests.c and selftest-arch.c.
7952 (SUBDIR_UNITTESTS_OBS): Rename to...
7953 (SELFTESTS_OBS): ... this.
7954 (COMMON_SFILES): Remove disasm-selftests.c and
7955 gdbarch-selftests.c.
7956 * configure.ac: Don't add selftest-arch.{c,o} to
7957 CONFIG_{SRCS,OBS}.
7958 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7959 preprocessor conditions.
7960
db6878ac
SM
79612020-03-12 Simon Marchi <simon.marchi@efficios.com>
7962
7963 * configure.ac: Don't source bfd/development.sh.
7964 * selftest.m4: Modify comment.
7965 * configure: Re-generate.
7966
4d696a5c
SM
79672020-03-12 Simon Marchi <simon.marchi@efficios.com>
7968
7969 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7970 not "true" or "false".
7971 * configure: Re-generate.
7972
8dd8e1c7
CB
79732020-03-12 Christian Biesinger <cbiesinger@google.com>
7974
7975 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7976 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7977 renamed to arm_nbsd_supply_gregset.
7978 (fetch_register): Update to call arm_nbsd_supply_gregset.
7979 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7980 (arm_netbsd_nat_target::fetch_registers): Update.
7981 (fetch_elfcore_registers): Removed.
7982 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7983 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7984 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7985 not require NetBSD system headers.
7986 (arm_nbsd_regset): New struct.
7987 (arm_nbsd_iterate_over_regset_sections): New function.
7988 (arm_netbsd_init_abi_common): Updated to call
7989 set_gdbarch_iterate_over_regset_sections.
7990 * arm-nbsd-tdep.h: New file.
7991
dd69bf7a
KB
79922020-03-11 Kevin Buettner <kevinb@redhat.com>
7993
7994 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7995 recursion.
7996
a0761e34
SM
79972020-03-11 Simon Marchi <simon.marchi@efficios.com>
7998
7999 * configure: Re-generate.
8000
e7a82140
TT
80012020-03-11 Tom Tromey <tromey@adacore.com>
8002
8003 * ada-typeprint.c (print_choices): Fix comment.
8004
dcc050c8
AB
80052020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8006
8007 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8008 previous item in the list, when the list has no items.
8009
1c33af77
TV
80102020-03-11 Tom de Vries <tdevries@suse.de>
8011
8012 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8013 PROP_LOCLIST handling code.
8014
8c95582d
AB
80152020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8016
8017 * buildsym-legacy.c (record_line): Pass extra parameter to
8018 record_line.
8019 * buildsym.c (buildsym_compunit::record_line): Take an extra
8020 parameter, reduce duplication in the line table, and record the
8021 is_stmt flag in the line table.
8022 * buildsym.h (buildsym_compunit::record_line): Add extra
8023 parameter.
8024 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8025 non-statement lines.
8026 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8027 this to the symtab builder.
8028 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8029 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8030 through to dwarf_record_line_1.
8031 * infrun.c (process_event_stop_test): When stepping, don't stop at
8032 a non-statement instruction, and only refresh the step info when
8033 we land in the middle of a line's range. Also add an extra
8034 comment.
8035 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8036 field.
8037 * record-btrace.c (btrace_find_line_range): Only record lines
8038 marked as is-statement.
8039 * stack.c (frame_show_address): Show the frame address if we are
8040 in a non-statement sal.
8041 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8042 (maintenance_print_one_line_table): Print a header for the is_stmt
8043 column, and include is_stmt information in the output.
8044 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8045 preference to non-statements.
8046 (find_pcs_for_symtab_line): Prefer is-statement entries.
8047 (find_line_common): Likewise.
8048 * symtab.h (struct linetable_entry): Add is_stmt field.
8049 (struct symtab_and_line): Likewise.
8050 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8051 arranging the line table.
8052
e4003a34
TV
80532020-03-07 Tom de Vries <tdevries@suse.de>
8054
8055 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8056 DIE.
8057
e8932576
TT
80582020-03-07 Tom Tromey <tom@tromey.com>
8059
8060 * valops.c (value_literal_complex): Remove obsolete comment.
8061 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8062 comment.
8063
29734269
SM
80642020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8065
8066 * infrun.h: Forward-declare thread_info.
8067 (set_step_info): Add thread_info parameter, add doc.
8068 * infrun.c (set_step_info): Add thread_info parameter, move doc
8069 to header.
8070 * infrun.c (process_event_stop_test): Pass thread to
8071 set_step_info call.
8072 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8073 set_step_info.
8074 (prepare_one_step): Add thread_info parameter, pass it to
8075 set_step_frame and prepare_one_step (recursive) call.
8076 (step_1): Pass thread to prepare_one_step call.
8077 (step_command_fsm::should_stop): Pass thread to
8078 prepare_one_step.
8079 (until_next_fsm): Pass thread to set_step_frame call.
8080 (finish_command): Pass thread to set_step_info call.
8081
b7d64b29
HD
80822020-03-06 Hannes Domani <ssbssa@yahoo.de>
8083
8084 * windows-tdep.c (windows_solib_create_inferior_hook):
8085 Check if inferior is running.
8086
09f2921c
TV
80872020-03-06 Tom de Vries <tdevries@suse.de>
8088
8089 * NEWS: Fix "the the".
8090 * ctfread.c: Same.
8091
fd760e79
TV
80922020-03-06 Tom de Vries <tdevries@suse.de>
8093
8094 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8095
20ea4a60
AB
80962020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8097
8098 * .dir-locals.el: Add a comment referencing the other copies of
8099 this file.
8100
0afbabf0
JB
81012020-03-05 John Baldwin <jhb@FreeBSD.org>
8102
8103 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8104 psargs.
8105
842806cb
TBA
81062020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8107
8108 * .gitattributes: New file.
8109
be1e3d3e
TT
81102020-03-04 Tom Tromey <tom@tromey.com>
8111
8112 * symmisc.c (print_symbol_bcache_statistics)
8113 (print_objfile_statistics): Update.
8114 * symfile.c (allocate_symtab): Use intern.
8115 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8116 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8117 macro_cache>: Remove.
8118 <string_cache>: New member.
8119 (struct objfile) <intern>: New methods.
8120 * elfread.c (elf_symtab_read): Use intern.
8121 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8122 (dwarf2_compute_name, dwarf2_physname)
8123 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8124 names.
8125 (guess_partial_die_structure_name): Update.
8126 (partial_die_info::fixup): Intern name.
8127 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8128 name.
8129 (dwarf2_name): Intern name. Update.
8130 * buildsym.c (buildsym_compunit::get_macro_table): Use
8131 string_cache.
8132
4e7625fd
TT
81332020-03-04 Tom Tromey <tom@tromey.com>
8134
8135 * jit.c (bfd_open_from_target_memory): Make "target" const.
8136 * corefile.c (gnutarget): Now const.
8137 * gdbcore.h (gnutarget): Now const.
8138
46f9f931
HD
81392020-03-04 Hannes Domani <ssbssa@yahoo.de>
8140
8141 * NEWS: Mention support for WOW64 processes.
8142 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8143 (amd64_windows_segment_register_p): Remove static.
8144 (_initialize_amd64_windows_nat): Update.
8145 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8146 * i386-windows-nat.c (context_offset): Update.
8147 (i386_mappings): Rename and remove static.
8148 (i386_windows_segment_register_p): Remove static.
8149 (_initialize_i386_windows_nat): Update.
8150 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8151 (STATUS_WX86_SINGLE_STEP): New macro.
8152 (EnumProcessModulesEx): New macro.
8153 (Wow64SuspendThread): New macro.
8154 (Wow64GetThreadContext): New macro.
8155 (Wow64SetThreadContext): New macro.
8156 (Wow64GetThreadSelectorEntry): New macro.
8157 (windows_set_context_register_offsets): Add static.
8158 (windows_set_segment_register_p): Likewise.
8159 (windows_add_thread): Adapt for WOW64 processes.
8160 (windows_fetch_one_register): Likewise.
8161 (windows_nat_target::fetch_registers): Likewise.
8162 (windows_store_one_register): Likewise.
8163 (display_selector): Likewise.
8164 (display_selectors): Likewise.
8165 (handle_exception): Likewise.
8166 (windows_continue): Likewise.
8167 (windows_nat_target::resume): Likewise.
8168 (windows_add_all_dlls): Likewise.
8169 (do_initial_windows_stuff): Likewise.
8170 (windows_nat_target::attach): Likewise.
8171 (windows_get_exec_module_filename): Likewise.
8172 (windows_nat_target::create_inferior): Likewise.
8173 (windows_xfer_siginfo): Likewise.
8174 (_initialize_loadable): Initialize Wow64SuspendThread,
8175 Wow64GetThreadContext, Wow64SetThreadContext,
8176 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8177 * windows-nat.h (windows_set_context_register_offsets):
8178 Remove declaration.
8179 (windows_set_segment_register_p): Likewise.
8180 (i386_windows_segment_register_p): Add declaration.
8181 (amd64_windows_segment_register_p): Likewise.
8182
440cf44e
LM
81832020-03-04 Luis Machado <luis.machado@linaro.org>
8184
8185 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8186 in "info registers" for AArch64/ARM.
8187
8188 The change caused "info registers" to not print GPR's.
8189
8190 gdb/ChangeLog:
8191
8192 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8193
8194 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8195 when reg->group is empty and reggroup is not.
8196
1009d92f
TT
81972020-03-03 Tom Tromey <tromey@adacore.com>
8198
8199 * dwarf2/frame.c (struct dwarf2_frame_cache)
8200 <checked_tailcall_bottom, entry_cfa_sp_offset,
8201 entry_cfa_sp_offset_p>: Remove members.
8202 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8203 (dwarf2_frame_prev_register): Don't call
8204 dwarf2_tailcall_sniffer_first.
8205 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8206 * frame-unwind.c (add_unwinder): New fuction.
8207 (frame_unwind_init): Use it. Add tailcall unwinder.
8208
5e5d66b6
AB
82092020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8210 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8211
8212 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8213 value should be printed as true.
8214
584cf46d
HD
82152020-03-03 Hannes Domani <ssbssa@yahoo.de>
8216
8217 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8218 (windows_init_abi): Set and use windows_so_ops.
8219
7b973adc
SDJ
82202020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8221
8222 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8223 when verifying if dealing with a convenience variable.
8224
bb7b70ab
LM
82252020-03-03 Luis Machado <luis.machado@linaro.org>
8226
8227 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8228
9822cb57
SM
82292020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8230
8231 * infrun.c (gdbarch_supports_displaced_stepping): New.
8232 (use_displaced_stepping): Break up conditions in smaller pieces.
8233 Use gdbarch_supports_displaced_stepping.
8234 (displaced_step_prepare_throw): Use
8235 gdbarch_supports_displaced_stepping.
8236
63e163f2
AB
82372020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8238
8239 * NEWS: Mention new behaviour of the history filename.
8240 * top.c (write_history_p): Add comment.
8241 (show_write_history_p): Add header comment, give a different
8242 message when history writing is on, but the history filename is
8243 empty.
8244 (history_filename): Add comment.
8245 (history_filename_empty): New function.
8246 (show_history_filename): Add header comment, give a different
8247 message when the filename is empty.
8248 (init_history): Compare history_filename against nullptr, and only
8249 read history if the filename is not empty.
8250 (set_history_filename): Add header comment, and only make
8251 non-empty filenames absolute.
8252 (init_main): Make the filename argument to 'set history filename'
8253 optional.
8254
81b86b97
CB
82552020-03-02 Christian Biesinger <cbiesinger@google.com>
8256
8257 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8258 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8259 (fetch_fp_register): Update.
8260 (fetch_fp_regs): Update.
8261 (store_fp_register): Update.
8262 (store_fp_regs): Update.
8263 (arm_netbsd_nat_target::read_description): New function.
8264 (fetch_elfcore_registers): Update.
8265
24ed6739
AB
82662020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8267
8268 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8269 general_thread if the stop reply is missing a thread-id.
8270 (remote_target::process_stop_reply): Use the first non-exited
8271 thread if the target didn't pass a thread-id.
8272 * infrun.c (do_target_wait): Move call to
8273 switch_to_inferior_no_thread to ....
8274 (do_target_wait_1): ... here.
8275
a84bb2a0
JT
82762020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8277
8278 * debuginfod-support.c: Include defs.h first.
8279
658dadf0
TV
82802020-02-28 Tom de Vries <tdevries@suse.de>
8281
8282 * symfile.c (set_initial_language): Use default language for lookup.
8283
4ebe4877
SM
82842020-02-28 Simon Marchi <simon.marchi@efficios.com>
8285
8286 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8287 reader variable, pass `this` to read_cutu_die_from_dwo.
8288
e5da1139
AM
82892020-02-27 Aaron Merey <amerey@redhat.com>
8290
8291 * source.c (open_source_file): Check for nullptr when computing
8292 srcpath.
8293
317f7127
TT
82942020-02-27 Tom Tromey <tromey@adacore.com>
8295
8296 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8297 member.
8298 (dwarf2_add_field): Don't update nfields.
8299 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8300
3104d9ee
AB
83012020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8302
8303 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8304 abs.
8305
b83470bf
TT
83062020-02-26 Tom Tromey <tom@tromey.com>
8307
8308 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8309 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8310 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8311 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8312 per_cu_data.
8313
edfe0a0c
TT
83142020-02-26 Tom Tromey <tom@tromey.com>
8315
8316 * dwarf2/index-write.c (psym_index_map): Change type.
8317 (add_address_entry_worker, write_one_signatured_type)
8318 (recursively_count_psymbols, recursively_write_psymbols)
8319 (class debug_names, psyms_seen_size, write_gdbindex)
8320 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8321
0d79cdc4
AM
83222020-02-26 Aaron Merey <amerey@redhat.com>
8323
8324 * Makefile.in: Handle optional debuginfod support.
8325 * NEWS: Update.
8326 * README: Add --with-debuginfod summary.
8327 * config.in: Regenerate.
8328 * configure: Regenerate.
8329 * configure.ac: Handle optional debuginfod support.
8330 * debuginfod-support.c: debuginfod helper functions.
8331 * debuginfod-support.h: Ditto.
8332 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8333 summary.
8334 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8335 when a dwz file cannot be found.
8336 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8337 debuginfo file cannot be found.
8338 * source.c (open_source_file): Query debuginfod servers when a
8339 source file cannot be found.
8340 * top.c (print_gdb_configuration): Include
8341 --{with,without}-debuginfod in the output.
8342
b65ce565
JG
83432020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8344
8345 * thread.c (thr_try_catch_cmd): Print thread name.
8346
d4c9a4f8
SM
83472020-02-26 Simon Marchi <simon.marchi@efficios.com>
8348
8349 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8350 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8351 dwarf2_fetch_die_type_sect_off): Move to...
8352 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8353 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8354 dwarf2_fetch_die_type_sect_off): ... here.
8355 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8356 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8357 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8358
0dce4280
TV
83592020-02-26 Tom de Vries <tdevries@suse.de>
8360
8361 PR gdb/25603
8362 * symfile.c (set_initial_language): Exit-early if
8363 language_mode == language_mode_manual.
8364
450a1bfc
SM
83652020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8366
8367 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8368 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8369 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8370
9e80cfa1
AB
83712020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8372
8373 * gdbtypes.c (create_array_type_with_stride): Handle negative
8374 array strides.
8375 * valarith.c (value_subscripted_rvalue): Likewise.
8376
09624f1f
LM
83772020-02-25 Luis Machado <luis.machado@linaro.org>
8378
8379 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8380
8cb5117c
SM
83812020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8382
8383 * loc.h (dwarf2_get_die_type): Move to...
8384 * read.h (dwarf2_get_die_type): ... here.
8385 * read.c (dwarf2_get_die_type): Move doc to header.
8386
c325c44e
JB
83872020-02-25 Joel Brobecker <brobecker@adacore.com>
8388
8389 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8390 'gnulib/Makefile.in' to the list.
8391
4ac93832
TT
83922020-02-24 Tom Tromey <tom@tromey.com>
8393
8394 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8395 Remove.
8396 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8397 XOBNEWVEC.
8398
197400e8
TT
83992020-02-24 Tom Tromey <tom@tromey.com>
8400
8401 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8402 New method.
8403 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8404 (dw2_do_instantiate_symtab, dw2_get_file_names)
8405 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8406
76935768
TT
84072020-02-24 Tom Tromey <tom@tromey.com>
8408
8409 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8410 make_scoped_restore.
8411 (dwarf2_psymtab::read_symtab): Don't clear
8412 reading_partial_symbols.
8413
a88ef40d
TV
84142020-02-24 Tom de Vries <tdevries@suse.de>
8415
8416 PR gdb/25592
8417 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8418
c9af6521
TV
84192020-02-24 Tom de Vries <tdevries@suse.de>
8420
8421 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8422 commands layout next/prev/regs.
8423
5707a07a
TT
84242020-02-22 Tom Tromey <tom@tromey.com>
8425
8426 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8427 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8428
3b0fb49e
TT
84292020-02-22 Tom Tromey <tom@tromey.com>
8430
8431 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8432
283be8bf
TT
84332020-02-22 Tom Tromey <tom@tromey.com>
8434
8435 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8436 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8437 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8438 * tui/tui.c (_initialize_tui): Add usage text.
8439
ca793b96
TT
84402020-02-22 Tom Tromey <tom@tromey.com>
8441
8442 * tui/tui-win.c (tui_set_focus_command)
8443 (tui_set_win_height_command): Use error_no_arg.
8444 (_initialize_tui_win): Update help text.
8445 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8446
432b5c40
TT
84472020-02-22 Tom Tromey <tom@tromey.com>
8448
8449 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8450 * tui/tui-disasm.h (struct tui_disasm_window)
8451 <display_start_addr>: Declare.
8452 * tui/tui-source.h (struct tui_source_window)
8453 <display_start_addr>: Declare.
8454 * tui/tui-winsource.h (struct tui_source_window_base)
8455 <show_source_line, display_start_addr>: New methods.
8456 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8457 Rename and move to protected section.
8458 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8459 (tui_source_window_base::do_erase_source_content): Update.
8460 (tui_source_window_base::show_source_line): Now a method.
8461 (tui_source_window_base::show_source_content)
8462 (tui_source_window_base::tui_source_window_base)
8463 (tui_source_window_base::rerender)
8464 (tui_source_window_base::refill)
8465 (tui_source_window_base::do_scroll_horizontal)
8466 (tui_source_window_base::set_is_exec_point_at)
8467 (tui_source_window_base::update_breakpoint_info)
8468 (tui_source_window_base::update_exec_info): Update.
8469 * tui/tui-source.c (tui_source_window::set_contents)
8470 (tui_source_window::showing_source_p)
8471 (tui_source_window::do_scroll_vertical)
8472 (tui_source_window::location_matches_p)
8473 (tui_source_window::line_is_displayed): Update.
8474 (tui_source_window::display_start_addr): New method.
8475 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8476 (tui_disasm_window::do_scroll_vertical)
8477 (tui_disasm_window::location_matches_p): Update.
8478 (tui_disasm_window::display_start_addr): New method.
8479
01b1af32
TT
84802020-02-22 Tom Tromey <tom@tromey.com>
8481
8482 * NEWS: Add entry for gdb.register_window_type.
8483 * tui/tui-layout.h (window_factory): New typedef.
8484 (tui_register_window): Declare.
8485 * tui/tui-layout.c (saved_tui_windows): New global.
8486 (tui_apply_current_layout): Use it.
8487 (tui_register_window): New function.
8488 * python/python.c (do_start_initialization): Call
8489 gdbpy_initialize_tui.
8490 (python_GdbMethods): Add "register_window_type" function.
8491 * python/python-internal.h (gdbpy_register_tui_window)
8492 (gdbpy_initialize_tui): Declare.
8493 * python/py-tui.c: New file.
8494 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8495
fc96d20b
TT
84962020-02-22 Tom Tromey <tom@tromey.com>
8497
8498 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8499
935c78c0
TT
85002020-02-22 Tom Tromey <tom@tromey.com>
8501
8502 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8503 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8504 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8505 (tui_set_win_focus_to): Move from tui-win.c.
8506
0240c8f1
TT
85072020-02-22 Tom Tromey <tom@tromey.com>
8508
8509 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8510 functions.
8511 (known_window_types): New global.
8512 (tui_get_window_by_name): Reimplement.
8513 (initialize_known_windows): New function.
8514 (validate_window_name): Rewrite.
8515 (_initialize_tui_layout): Call initialize_known_windows.
8516
fdb01f0c
TT
85172020-02-22 Tom Tromey <tom@tromey.com>
8518
8519 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8520 Remove constants.
8521 * tui/tui-winsource.h (struct tui_source_window_base)
8522 <tui_source_window_base>: Remove parameter.
8523 * tui/tui-winsource.c
8524 (tui_source_window_base::tui_source_window_base): Remove
8525 parameter.
8526 (tui_source_window_base::refill): Update.
8527 * tui/tui-stack.h (struct tui_locator_window)
8528 <tui_locator_window>: Update.
8529 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8530 Default the constructor.
8531 * tui/tui-regs.h (struct tui_data_item_window)
8532 <tui_data_item_window>: Default the constructor.
8533 (struct tui_data_window) <tui_data_window>: Likewise.
8534 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8535 Default the constructor.
8536 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8537 Default the constructor.
8538 <type>: Remove.
8539 (struct tui_win_info) <tui_win_info>: Default the constructor.
8540 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8541 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8542 Default the constructor.
8543
865a5aec
TT
85442020-02-22 Tom Tromey <tom@tromey.com>
8545
8546 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8547 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8548 * tui/tui-win.c (tui_resize_all): Don't call
8549 tui_delete_invisible_windows.
8550 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8551 done.
8552 (tui_set_layout): Update.
8553 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8554 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8555 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8556
e098d18c
TT
85572020-02-22 Tom Tromey <tom@tromey.com>
8558
8559 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8560 correctly.
8561
eb9c8874
TT
85622020-02-22 Tom Tromey <tom@tromey.com>
8563
8564 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8565
7eed1a8e
TT
85662020-02-22 Tom Tromey <tom@tromey.com>
8567
8568 * tui/tui-winsource.h (struct tui_source_window_iterator)
8569 <inner_iterator>: New etytypedef.
8570 <tui_source_window_iterator>: Take "end" parameter.
8571 <tui_source_window_iterator>: Take iterator.
8572 <operator*, advance>: Update.
8573 <m_iter>: Change type.
8574 <m_end>: New field.
8575 (struct tui_source_windows) <begin, end>: Update.
8576 * tui/tui-layout.c (tui_windows): New global.
8577 (tui_apply_current_layout): Clear tui_windows.
8578 (tui_layout_window::apply): Update tui_windows.
8579 * tui/tui-data.h (tui_windows): Declare.
8580 (all_tui_windows): Now inline function.
8581 (class tui_window_iterator, struct all_tui_windows): Remove.
8582
7c043ba6
TT
85832020-02-22 Tom Tromey <tom@tromey.com>
8584
8585 PR tui/17850:
8586 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8587 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8588 "height" argument.
8589 (class tui_layout_window) <get_sizes>: Likewise.
8590 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8591 argument.
8592 <get_sizes>: Add "height" argument.
8593 <m_vertical>: New field.
8594 * tui/tui-layout.c (tui_layout_split::clone): Update.
8595 (tui_layout_split::get_sizes): Add "height" argument.
8596 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8597 (tui_new_layout_command): Parse "-horizontal".
8598 (_initialize_tui_layout): Update help string.
8599 (tui_layout_split::specification): Add "-horizontal" when needed.
8600 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8601 argument.
8602 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8603 New methods.
8604
6bc56648
TT
86052020-02-22 Tom Tromey <tom@tromey.com>
8606
8607 * tui/tui-layout.h (enum tui_adjust_result): New.
8608 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8609 (class tui_layout_window) <adjust_size>: Return
8610 tui_adjust_result. Rewrite.
8611 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8612 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8613
c22fef7e
TT
86142020-02-22 Tom Tromey <tom@tromey.com>
8615
8616 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8617 parameter and return types.
8618 (class tui_layout_base) <specification>: Add "depth".
8619 (class tui_layout_window) <specification>: Add "depth".
8620 (class tui_layout_split) <specification>: Add "depth".
8621 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8622 and return types.
8623 (tui_new_layout_command): Parse sub-layouts.
8624 (_initialize_tui_layout): Update help string.
8625 (tui_layout_window::specification): Add "depth".
8626 (add_layout_command): Update.
8627
ee325b61
TT
86282020-02-22 Tom Tromey <tom@tromey.com>
8629
8630 * NEWS: Add "tui new-layout" item.
8631 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8632 Add new-layout command to help text.
8633 (validate_window_name): New function.
8634 (tui_new_layout_command): New function.
8635 (_initialize_tui_layout): Register "new-layout".
8636 (tui_layout_window::specification): New method.
8637 (tui_layout_window::specification): New method.
8638 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8639 method.
8640 (class tui_layout_window) <specification>: New method.
8641 (class tui_layout_split) <specification>: New method.
8642
416eb92d
TT
86432020-02-22 Tom Tromey <tom@tromey.com>
8644
8645 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8646 * tui/tui-win.c (window_name_completer): Update comment.
8647 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8648 Declare method.
8649 (class tui_layout_window) <replace_window>: Likewise.
8650 (class tui_layout_split) <replace_window>: Likewise.
8651 (tui_set_layout): Don't declare.
8652 (tui_set_initial_layout): Declare function.
8653 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8654 (asm_regs_layout): New globals.
8655 (tui_current_layout, show_layout): Remove.
8656 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8657 (find_layout, tui_apply_layout): New function.
8658 (layout_completer): Remove.
8659 (tui_next_layout): Reimplement.
8660 (tui_next_layout_command): New function.
8661 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8662 (tui_regs_layout): Reimplement.
8663 (tui_regs_layout_command): New function.
8664 (extract_display_start_addr): Rewrite.
8665 (next_layout, prev_layout): Remove.
8666 (tui_layout_window::replace_window): New method.
8667 (tui_layout_split::replace_window): New method.
8668 (destroy_layout): New function.
8669 (layout_list): New global.
8670 (add_layout_command): New function.
8671 (initialize_layouts): Update.
8672 (tui_layout_command): New function.
8673 (_initialize_tui_layout): Install "layout" commands.
8674 * tui/tui-data.h (enum tui_layout_type): Remove.
8675 (tui_current_layout): Don't declare.
8676
0dbc2fc7
TT
86772020-02-22 Tom Tromey <tom@tromey.com>
8678
8679 * tui/tui-regs.c (tui_reg_layout): Remove.
8680 (tui_reg_command): Use tui_regs_layout.
8681 * tui/tui-layout.h (tui_reg_command): Declare.
8682 * tui/tui-layout.c (tui_reg_command): New function.
8683
5afe342e
TT
86842020-02-22 Tom Tromey <tom@tromey.com>
8685
8686 * tui/tui.c (tui_rl_delete_other_windows): Call
8687 tui_remove_some_windows.
8688 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8689 Declare method.
8690 (class tui_layout_window) <remove_windows>: New method.
8691 (class tui_layout_split) <remove_windows>: Declare.
8692 (tui_remove_some_windows): Declare.
8693 * tui/tui-layout.c (tui_remove_some_windows): New function.
8694 (tui_layout_split::remove_windows): New method.
8695
427326a8
TT
86962020-02-22 Tom Tromey <tom@tromey.com>
8697
8698 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8699 * tui/tui-layout.h (tui_next_layout): Declare.
8700 * tui/tui-layout.c (tui_next_layout): New function.
8701
3fe12b6d
TT
87022020-02-22 Tom Tromey <tom@tromey.com>
8703
8704 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8705 correct coordinates.
8706
59b8b5d2
TT
87072020-02-22 Tom Tromey <tom@tromey.com>
8708
8709 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8710 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8711 DATA_WIN case.
8712
2a3d458b
TT
87132020-02-22 Tom Tromey <tom@tromey.com>
8714
8715 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8716 TUI_DISASM_WIN, not tui_win_list.
8717
3f0cbb04
TT
87182020-02-22 Tom Tromey <tom@tromey.com>
8719
8720 * valprint.c (generic_val_print_enum_1)
8721 (val_print_type_code_flags): Style member names.
8722 * rust-lang.c (val_print_struct, rust_print_enum)
8723 (rust_print_struct_def, rust_internal_print_type): Style member
8724 names.
8725 * p-valprint.c (pascal_object_print_value_fields): Style member
8726 names. Only call fprintf_symbol_filtered for static members.
8727 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8728 * f-valprint.c (f_val_print): Style member names.
8729 * f-typeprint.c (f_type_print_base): Style member names.
8730 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8731 call fprintf_symbol_filtered for static members.
8732 (cp_print_class_member): Style member names.
8733 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8734 member names.
8735 * ada-valprint.c (ada_print_scalar): Style enum names.
8736 (ada_val_print_enum): Likewise.
8737 * ada-typeprint.c (print_enum_type): Style enum names.
8738
d4d947ae
TT
87392020-02-21 Tom Tromey <tom@tromey.com>
8740
8741 * psympriv.h (struct partial_symtab): Update comment.
8742
e94e944b
TT
87432020-02-21 Tom Tromey <tromey@adacore.com>
8744
8745 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8746 type is CORE_ADDR.
8747
1eb73179
TV
87482020-02-21 Tom de Vries <tdevries@suse.de>
8749
8750 PR gdb/25534
8751 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8752 if dependencies[i]->user != NULL.
8753
4f180d53
AT
87542020-02-21 Ali Tamur <tamur@google.com>
8755
8756 * dwarf2/read.c (dwarf2_name): Add null check.
8757
22b6cd70
TT
87582020-02-20 Tom Tromey <tom@tromey.com>
8759
8760 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8761 ">=", in binary search.
8762 (dwarf2_find_containing_comp_unit): New overload.
8763 (run_test): New self-test.
8764 (_initialize_dwarf2_read): Register new test.
8765
bd0cf5a6
NC
87662020-02-20 Nelson Chu <nelson.chu@sifive.com>
8767
8768 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8769 * riscv-tdep.h: Likewise.
8770 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8771 rv32-only CSR.
8772 * features/riscv/64bit-csr.xml: Regenerated.
8773
3f702acd
SDJ
87742020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8775 Tom Tromey <tom@tromey.com>
8776
8777 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8778 of 'fputc_unfiltered'.
8779 (putchar_unfiltered): Call 'fputc_unfiltered'.
8780 (fputc_unfiltered): Call 'fputs_unfiltered'.
8781
d13c7322
AB
87822020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8783
8784 * config.in: Regenerate.
8785 * configure: Regenerate.
8786 * configure.ac: Add --with-python-libdir option.
8787 * main.c: Use WITH_PYTHON_LIBDIR.
8788
869d8950
TT
87892020-02-19 Tom Tromey <tom@tromey.com>
8790
8791 * symtab.c (general_symbol_info::compute_and_set_names): Use
8792 obstack_strndup. Simplify call to symbol_set_demangled_name.
8793
298e9637
SM
87942020-02-19 Simon Marchi <simon.marchi@efficios.com>
8795
8796 * dwarf2/read.c (allocate_signatured_type_table,
8797 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8798 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8799 Remove objfile parameter, update all callers.
8800
08410482
DE
88012020-02-19 Doug Evans <dje@google.com>
8802
8803 PR rust/25535
8804 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8805 rust_enum_variant calculation.
8806
dfdeeca1
TT
88072020-02-19 Tom Tromey <tromey@adacore.com>
8808
8809 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8810
2ef5453b
TT
88112020-02-19 Tom Tromey <tromey@adacore.com>
8812
8813 * ada-lang.c (cache_symbol): Use obstack_strdup.
8814
9f1528a1
AB
88152020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8816
8817 * configure: Regenerate.
8818
d3c22fa8
TT
88192020-02-19 Tom Tromey <tromey@adacore.com>
8820
8821 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8822 NULL check.
8823
bf84f706
MR
88242020-02-19 Maciej W. Rozycki <macro@wdc.com>
8825
8826 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8827
d1c9b20f
AB
88282020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8829
8830 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8831 if GDBSERVER is not defined.
8832 (riscv_tdesc_cache): Likewise, also store const target_desc.
8833 (STATIC_IN_GDB): Define.
8834 (riscv_create_target_description): Update declaration with
8835 STATIC_IN_GDB.
8836 (riscv_lookup_target_description): New function, only define if
8837 GDBSERVER is not defined.
8838 * arch/riscv.h (riscv_create_target_description): Declare only
8839 when GDBSERVER is defined.
8840 (riscv_lookup_target_description): New declaration when GDBSERVER
8841 is not defined.
8842 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8843 (riscv_linux_read_features): ...this, and return
8844 riscv_gdbarch_features instead of target_desc.
8845 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8846 (riscv_linux_read_description): Rename to...
8847 (riscv_linux_read_features): ...this.
8848 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8849 Update to use riscv_gdbarch_features and
8850 riscv_lookup_target_description.
8851 * riscv-tdep.c (riscv_find_default_target_description): Use
8852 riscv_lookup_target_description instead of
8853 riscv_create_target_description.
8854
373d7ac0
SM
88552020-02-18 Simon Marchi <simon.marchi@efficios.com>
8856
8857 * valprint.c (generic_val_print_enum_1): When printing a flag
8858 enum with value 0 and there is no enumerator with value 0, print
8859 just "0" instead of "(unknown: 0x0)".
8860
b29a2df0
SM
88612020-02-18 Simon Marchi <simon.marchi@efficios.com>
8862
8863 * valprint.c (generic_val_print_enum_1): Print unknown part of
8864 flag enum in hex.
8865
6740f0cc
SM
88662020-02-18 Simon Marchi <simon.marchi@efficios.com>
8867
8868 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8869 flag enums to contain duplicate enumerators.
8870 * valprint.c (generic_val_print_enum_1): Update comment.
8871
edd45eb0
SM
88722020-02-18 Simon Marchi <simon.marchi@efficios.com>
8873
8874 * dwarf2/read.c: Include "count-one-bits.h".
8875 (update_enumeration_type_from_children): If an enumerator has
8876 multiple bits set, don't treat the enumeration as a "flag enum".
8877 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8878 of flag enums have 0 or 1 bit set.
8879
6d0cf446
BE
88802020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8881
8882 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8883 conversion.
8884 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8885 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8886 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8887 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8888 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8889
7001c1b7
SM
88902020-02-18 Simon Marchi <simon.marchi@efficios.com>
8891
8892 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8893
fdb61c6c
SM
88942020-02-14 Simon Marchi <simon.marchi@efficios.com>
8895
8896 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8897 displaced_step_closure_up.
8898 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8899 (struct displaced_step_closure_up):
8900 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8901 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8902 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8903 Likewise.
8904 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8905 * gdbarch.c, gdbarch.h: Re-generate.
8906 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8907 displaced_step_closure_up.
8908 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8909 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8910 * infrun.h (displaced_step_closure_up): New type alias.
8911 (struct displaced_step_inferior_state) <step_closure>: Change
8912 type to displaced_step_closure_up.
8913 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8914 displaced_step_closure_up.
8915 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8916
a4a38eb4
TT
89172020-02-14 Tom Tromey <tom@tromey.com>
8918
8919 * minidebug.c (gnu_debug_key): New global.
8920 (find_separate_debug_file_in_section): Use it.
8921
e8217e61
SM
89222020-02-14 Simon Marchi <simon.marchi@efficios.com>
8923
8924 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8925 std::unique_ptr.
8926 * gdbarch.c: Re-generate.
8927 * gdbarch.h: Re-generate.
8928 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8929 change.
8930 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8931 type to std::unique_ptr.
8932 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8933 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8934 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8935 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8936 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8937 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8938 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8939 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8940 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8941
d8d83535
SM
89422020-02-14 Simon Marchi <simon.marchi@efficios.com>
8943
8944 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8945 std::unique_ptr.
8946 (displaced_step_clear): Rename to...
8947 (displaced_step_reset): ... this. Just call displaced->reset ().
8948 (displaced_step_clear_cleanup): Rename to...
8949 (displaced_step_reset_cleanup): ... this.
8950 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8951 (displaced_step_fixup): Likewise.
8952 (resume_1): Likewise.
8953 (handle_inferior_event): Restore child's memory before calling
8954 displaced_step_fixup on the parent.
8955 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8956 to std::unique_ptr.
8957 <step_closure>: Change type to std::unique_ptr.
8958
5f661e03
SM
89592020-02-14 Simon Marchi <simon.marchi@efficios.com>
8960
8961 * arm-tdep.c: Include count-one-bits.h.
8962 (cleanup_block_store_pc): Use count_one_bits.
8963 (cleanup_block_load_pc): Use count_one_bits.
8964 (arm_copy_block_xfer): Use count_one_bits.
8965 (thumb2_copy_block_xfer): Use count_one_bits.
8966 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8967 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8968 (thumb_get_next_pcs_raw): Use count_one_bits.
8969 (arm_get_next_pcs_raw): Use count_one_bits_l.
8970 * arch/arm.c (bitcount): Remove.
8971 * arch/arm.h (bitcount): Remove.
8972
8084e579
TT
89732020-02-14 Tom Tromey <tromey@adacore.com>
8974
8975 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8976 Update.
8977 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8978 * dwarf2/loc.c (call_site_find_chain_1): Return
8979 unique_xmalloc_ptr.
8980 (call_site_find_chain): Likewise.
8981
258bf0ee
RB
89822020-02-14 Richard Biener <rguenther@suse.de>
8983
8984 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8985 on expression with division operators.
8986
f98a8458
AKS
89872020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8988
8989 * MAINTAINERS (Write After Approval): Adding myself.
8990
d1437c0e
TT
89912020-02-12 Tom Tromey <tom@tromey.com>
8992
8993 * event-loop.c (event_data, gdb_event, event_handler_func):
8994 Remove.
8995
3d4560f7
TT
89962020-02-12 Tom Tromey <tom@tromey.com>
8997
8998 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8999 (dwarf2_frame_objfile_data): Add comment.
9000 (find_comp_unit, set_comp_unit): New functions.
9001 (dwarf2_frame_find_fde): Use find_comp_unit.
9002 (dwarf2_build_frame_info): Use set_comp_unit.
9003
21982304
TT
90042020-02-12 Tom Tromey <tom@tromey.com>
9005
9006 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9007 (comp_unit): Don't initialize objfile.
9008 (execute_cfa_program): Add text_offset parameter.
9009 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9010 (dwarf2_frame_cache): Update.
9011 (dwarf2_build_frame_info): Don't set "objfile" member.
9012
4debb237
TT
90132020-02-12 Tom Tromey <tom@tromey.com>
9014
9015 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9016 (decode_frame_entry): Likewise.
9017 (dwarf2_build_frame_info): Update.
9018
0d404d44
TT
90192020-02-12 Tom Tromey <tom@tromey.com>
9020
9021 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9022 (decode_frame_entry_1): Use the comp_unit obstack.
9023
a7a3ae5c
TT
90242020-02-12 Tom Tromey <tom@tromey.com>
9025
9026 * dwarf2/frame.c (struct comp_unit): Add initializers and
9027 constructor.
9028 (dwarf2_frame_objfile_data): Store a comp_unit.
9029 (dwarf2_frame_find_fde): Update.
9030 (dwarf2_build_frame_info): Use "new".
9031
a9d65418
TT
90322020-02-12 Tom Tromey <tom@tromey.com>
9033
9034 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9035 (dwarf2_fde_table): Typedef for std::vector.
9036 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9037 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9038 (decode_frame_entry): Update.
9039 (dwarf2_build_frame_info): Use "new".
9040
7559c217
CB
90412020-02-12 Christian Biesinger <cbiesinger@google.com>
9042
9043 * arm-tdep.c (arm_gdbarch_init): Update.
9044 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9045 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9046 have_neon, is_m>: Change to bool.
9047
aeefc73c
CB
90482020-02-12 Christian Biesinger <cbiesinger@google.com>
9049
9050 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9051
d27b8e5f
TT
90522020-02-12 Tom Tromey <tom@tromey.com>
9053
9054 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9055
cd5900f3
HD
90562020-02-12 Hannes Domani <ssbssa@yahoo.de>
9057
9058 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9059 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9060
f056b22b
TT
90612020-02-11 Tom Tromey <tom@tromey.com>
9062
9063 * psymtab.h: Update comment.
9064
f92ff6b5
TT
90652020-02-11 Tom Tromey <tom@tromey.com>
9066
9067 * gdb_obstack.h (struct auto_obstack): Use
9068 DISABLE_COPY_AND_ASSIGN.
9069
3fd6912b
TT
90702020-02-11 Tom Tromey <tom@tromey.com>
9071
9072 * dwarf2/frame.h (struct objfile): Don't forward declare.
9073
69ed9b74
CB
90742020-02-11 Christian Biesinger <cbiesinger@google.com>
9075
9076 * cris-tdep.c (cris_supply_gregset): Change signature to match
9077 what struct regset expects.
9078 (cris_regset): New struct.
9079 (fetch_core_registers): Remove.
9080 (cris_iterate_over_regset_sections): New function.
9081 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9082 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9083
bda874f6
CB
90842020-02-11 Christian Biesinger <cbiesinger@google.com>
9085
9086 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9087 registers.
9088
754e1564
CB
90892020-02-11 Christian Biesinger <cbiesinger@google.com>
9090
9091 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9092
8ddd8e0e
SM
90932020-02-11 Simon Marchi <simon.marchi@efficios.com>
9094
9095 * configure: Re-generate.
9096
898e7f60
SM
90972020-02-11 Simon Marchi <simon.marchi@efficios.com>
9098
9099 * configure: Re-generate.
9100
58df732b
SM
91012020-02-11 Simon Marchi <simon.marchi@efficios.com>
9102
9103 * acinclude: Update warning.m4 path.
9104 * warning.m4: Move to gdbsupport.
9105
da5bd37e
TT
91062020-02-11 Tom Tromey <tromey@adacore.com>
9107
9108 * remote.c (remote_console_output): Update.
9109 * printcmd.c (printf_command): Update.
9110 * event-loop.c (gdb_wait_for_event): Update.
9111 * linux-nat.c (sigchld_handler): Update.
9112 * remote-sim.c (gdb_os_write_stdout): Update.
9113 (gdb_os_flush_stdout): Update.
9114 (gdb_os_flush_stderr): Update.
9115 (gdb_os_write_stderr): Update.
9116 * exceptions.c (print_exception): Update.
9117 * remote-fileio.c (remote_fileio_func_read): Update.
9118 (remote_fileio_func_write): Update.
9119 * tui/tui.c (tui_enable): Update.
9120 * tui/tui-interp.c (tui_interp::init): Update.
9121 * utils.c (init_page_info): Update.
9122 (putchar_unfiltered, fputc_unfiltered): Update.
9123 (gdb_flush): Update.
9124 (emit_style_escape): Update.
9125 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9126 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9127 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9128 (stderr_file::write): Update.
9129 (stderr_file::puts): Update.
9130 * ui-file.h (ui_file_isatty, ui_file_write)
9131 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9132 (ui_file_puts): Don't declare.
9133
85f0dd3c
TV
91342020-02-10 Tom de Vries <tdevries@suse.de>
9135
9136 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9137 sentinel to char *.
9138
2e927613
TV
91392020-02-09 Tom de Vries <tdevries@suse.de>
9140
9141 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9142 filename if it matches "<artificial>".
9143
6bafc845
HD
91442020-02-09 Hannes Domani <ssbssa@yahoo.de>
9145
9146 * windows-tdep.c (struct enum_value_name): New struct.
9147 (create_enum): New function.
9148 (windows_get_siginfo_type): Create and use enum types.
9149
7928d571
HD
91502020-02-09 Hannes Domani <ssbssa@yahoo.de>
9151
9152 * NEWS: Mention $_siginfo support for Windows.
9153 * windows-nat.c (handle_exception): Set siginfo_er.
9154 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9155 (windows_xfer_siginfo): New function.
9156 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9157 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9158 (init_windows_gdbarch_data): New function.
9159 (get_windows_gdbarch_data): New function.
9160 (windows_get_siginfo_type): New function.
9161 (windows_init_abi): Register windows_get_siginfo_type.
9162 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9163
6751ebae
TT
91642020-02-08 Tom Tromey <tom@tromey.com>
9165
9166 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9167 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9168 <keep>: Declare method.
9169 <m_keep>: Remove member.
9170 <~cutu_reader>: Remove.
9171 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9172 (cutu_reader::cutu_reader): Update.
9173 (cutu_reader::keep): Rename from ~cutu_reader.
9174 (process_psymtab_comp_unit, build_type_psymtabs_1)
9175 (process_skeletonless_type_unit, load_partial_comp_unit)
9176 (load_full_comp_unit, dwarf2_read_addr_index)
9177 (read_signatured_type): Update.
9178
135f5437
TT
91792020-02-08 Tom Tromey <tom@tromey.com>
9180
9181 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9182 "want_partial_unit" parameter.
9183 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9184 Inline check for DW_TAG_partial_unit.
9185 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9186
9f66ff1c
TT
91872020-02-08 Tom Tromey <tom@tromey.com>
9188
9189 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9190 read.c.
9191 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9192 read.c.
9193
c8a7a66f
TT
91942020-02-08 Tom Tromey <tom@tromey.com>
9195
9196 * dwarf2/read.c (read_address): Move to comp-unit.c.
9197 (dwarf2_rnglists_process, dwarf2_ranges_process)
9198 (read_attribute_value, dwarf_decode_lines_1)
9199 (var_decode_location, decode_locdesc): Update.
9200 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9201 read.c. Remove "cu" parameter.
9202 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9203 method.
9204
8266302d
TT
92052020-02-08 Tom Tromey <tom@tromey.com>
9206
9207 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9208 (read_indirect_line_string): Update.
9209 * dwarf2/comp-unit.c (read_offset): Remove.
9210 (read_comp_unit_head): Update.
9211 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9212 method.
9213 (read_offset): Don't declare.
9214
4057dfde
TT
92152020-02-08 Tom Tromey <tom@tromey.com>
9216
9217 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9218 * dwarf2/read.c (struct comp_unit_head): Move to
9219 dwarf2/comp-unit.h.
9220 (enum class rcuh_kind): Move to comp-unit.h.
9221 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9222 (read_comp_unit_head, error_check_comp_unit_head)
9223 (read_and_check_comp_unit_head): Move to comp-unit.c.
9224 (read_offset, dwarf_unit_type_name): Likewise.
9225 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9226 (cutu_reader::cutu_reader, read_call_site_scope)
9227 (find_partial_die, follow_die_offset): Update.
9228 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9229
24aa364d
TT
92302020-02-08 Tom Tromey <tom@tromey.com>
9231
9232 * dwarf2/read.c (read_offset_1): Move to leb.c.
9233 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9234 (dwarf_decode_macro_bytes): Update.
9235 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9236 * dwarf2/leb.h (read_offset): Declare.
9237
2c7d5afc
TT
92382020-02-08 Tom Tromey <tom@tromey.com>
9239
9240 * dwarf2/read.c (dwarf2_section_size): Remove.
9241 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9242 Update.
9243 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9244
4075cb26
TT
92452020-02-08 Tom Tromey <tom@tromey.com>
9246
9247 * dwarf2/read.c (read_initial_length): Move to leb.c.
9248 * dwarf2/leb.h (read_initial_length): Declare.
9249 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9250 handle_nonstd parameter.
9251 * dwarf2/frame.c (read_initial_length): Remove.
9252 (decode_frame_entry_1): Update.
9253
09ba997f
TT
92542020-02-08 Tom Tromey <tom@tromey.com>
9255
9256 * dwarf2/loc.c (dwarf2_find_location_expression)
9257 (dwarf_evaluate_loc_desc::get_tls_address)
9258 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9259 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9260 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9261 (dwarf2_compile_property_to_c)
9262 (dwarf2_loc_desc_get_symbol_read_needs)
9263 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9264 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9265 (loclist_describe_location, loclist_tracepoint_var_ref)
9266 (loclist_generate_c_location): Update.
9267 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9268 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9269 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9270 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9271 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9272 (dwarf2_per_cu_data::addr_size)
9273 (dwarf2_per_cu_data::ref_addr_size)
9274 (dwarf2_per_cu_data::text_offset)
9275 (dwarf2_per_cu_data::addr_type): Now methods.
9276 (per_cu_header_read_in): Make per_cu "const".
9277 (dwarf2_version): Remove.
9278 (dwarf2_per_cu_data::int_type): Now a method.
9279 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9280 (set_die_type, read_array_type, read_subrange_index_type)
9281 (read_tag_string_type, read_subrange_type): Update.
9282 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9283 offset_size, ref_addr_size, text_offset, addr_type, version,
9284 objfile, int_type, addr_sized_int_type>: Declare methods.
9285
96c738c0
TT
92862020-02-08 Tom Tromey <tom@tromey.com>
9287
9288 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9289 Move earlier.
9290
8fdd972c
TT
92912020-02-08 Tom Tromey <tom@tromey.com>
9292
9293 * dwarf2/read.h (dwarf_line_debug): Declare.
9294 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9295 * dwarf2/read.c: Move line_header code to new files.
9296 (dwarf_line_debug): No longer static.
9297 * dwarf2/line-header.c: New file.
9298 * dwarf2/line-header.h: New file.
9299
03075812
TT
93002020-02-08 Tom Tromey <tom@tromey.com>
9301
9302 * dwarf2/read.c (struct line_header) <file_full_name,
9303 file_file_name>: Return unique_xmalloc_ptr.
9304 (line_header::file_file_name): Update.
9305 (line_header::file_full_name): Update.
9306 (dw2_get_file_names_reader): Update.
9307 (macro_start_file): Update.
9308
bb822404
TT
93092020-02-08 Tom Tromey <tom@tromey.com>
9310
9311 * dwarf2/read.c (struct line_header) <file_full_name,
9312 file_file_name>: Declare methods.
9313 (dw2_get_file_names_reader): Update.
9314 (file_file_name): Now a method.
9315 (file_full_name): Likewise.
9316 (macro_start_file): Update.
9317
009b64fc
TT
93182020-02-08 Tom Tromey <tom@tromey.com>
9319
9320 * dwarf2/read.c (dwarf_always_disassemble)
9321 (show_dwarf_always_disassemble): Move to loc.c.
9322 (_initialize_dwarf2_read): Move "always-disassemble" registration
9323 to loc.c.
9324 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9325 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9326 static.
9327 (show_dwarf_always_disassemble): Move from read.c.
9328 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9329
5895093f
TT
93302020-02-08 Tom Tromey <tom@tromey.com>
9331
9332 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9333 (create_quick_file_names_table): Return htab_up.
9334 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9335 Update.
9336 * dwarf2/read.h (struct dwarf2_per_objfile)
9337 <quick_file_names_table>: Now htab_up.
9338
b3b32279
TT
93392020-02-08 Tom Tromey <tom@tromey.com>
9340
9341 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9342
1d33d811
TT
93432020-02-08 Tom Tromey <tom@tromey.com>
9344
9345 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9346 Rewrite.
9347 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9348 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9349 (abbrev_table::abbrev_table): No longer inline.
9350 (ABBREV_HASH_SIZE): Remove.
9351 (abbrev_table::m_abbrevs): Now an htab_up.
9352
86de1d91
TT
93532020-02-08 Tom Tromey <tom@tromey.com>
9354
9355 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9356 (cutu_reader): Update.
9357 (build_type_psymtabs_1): Update.
9358 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9359 (abbrev_table::alloc_abbrev): Update.
9360 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9361 (abbrev_table::read): New static method, renamed from
9362 abbrev_table_read_table.
9363 (abbrev_table::alloc_abbrev)
9364 (abbrev_table::add_abbrev): Now private.
9365 (abbrev_table::abbrev_table): Now private.
9366 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9367
0335378b
TT
93682020-02-08 Tom Tromey <tom@tromey.com>
9369
9370 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9371 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9372 htab_up.
9373
48b490f2
TT
93742020-02-08 Tom Tromey <tom@tromey.com>
9375
9376 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9377 htab_up.
9378 (lookup_dwo_unit_in_dwp): Update.
9379 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9380 on obstack.
9381
bc68fb19
TT
93822020-02-08 Tom Tromey <tom@tromey.com>
9383
9384 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9385 obstack.
9386
d15acc42
TT
93872020-02-08 Tom Tromey <tom@tromey.com>
9388
9389 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9390 line_header_hash.
9391 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9392 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9393 Change type to htab_up.
9394
eaa5fa8b
TT
93952020-02-08 Tom Tromey <tom@tromey.com>
9396
9397 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9398 htab_up. Don't allocate on obstack.
9399 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9400 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9401 Change type to htab_up.
9402
b0b6a987
TT
94032020-02-08 Tom Tromey <tom@tromey.com>
9404
9405 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9406 Change type to htab_up.
9407 * dwarf2/read.c (create_signatured_type_table_from_index)
9408 (create_signatured_type_table_from_debug_names)
9409 (create_all_type_units, add_type_unit)
9410 (lookup_dwo_signatured_type, lookup_signatured_type)
9411 (process_skeletonless_type_unit): Update.
9412 (create_debug_type_hash_table, create_debug_types_hash_table):
9413 Change type of types_htab.
9414 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9415 htab_up. Don't allocate on obstack.
9416 (create_cus_hash_table): Change type of cus_htab parameter.
9417 (struct dwo_file) <cus, tus>: Now htab_up.
9418 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9419 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9420 (queue_and_load_all_dwo_tus): Update.
9421 * dwarf2/index-write.c (write_gdbindex): Update.
9422 (write_debug_names): Update.
9423
39856def
TT
94242020-02-08 Tom Tromey <tom@tromey.com>
9425
9426 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9427 dwarf2/read.c. Remove "next" member. Add constructor ntad
9428 destructor.
9429 (struct dwarf2_per_objfile) <queue>: New member.
9430 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9431 dwarf2/read.h.
9432 (dwarf2_queue, dwarf2_queue_tail): Remove.
9433 (class dwarf2_queue_guard): Add parameter to constructor. Use
9434 DISABLE_COPY_AND_ASSIGN.
9435 <m_per_objfile>: New member.
9436 <~dwarf2_queue_guard>: Rewrite.
9437 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9438 Update.
9439 (~dwarf2_queue_item): New.
9440
3e225074
TT
94412020-02-08 Tom Tromey <tom@tromey.com>
9442
9443 * dwarf2/read.c (struct die_info) <has_children>: New member.
9444 (dw2_get_file_names_reader): Remove has_children.
9445 (dw2_get_file_names): Update.
9446 (read_cutu_die_from_dwo): Remove has_children.
9447 (cutu_reader::init_tu_and_read_dwo_dies)
9448 (cutu_reader::cutu_reader): Update.
9449 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9450 Remove has_children.
9451 (build_type_psymtabs_1, process_skeletonless_type_unit)
9452 (load_partial_comp_unit, load_full_comp_unit): Update.
9453 (create_dwo_cu_reader): Remove has_children.
9454 (create_cus_hash_table, read_die_and_children): Update.
9455 (read_full_die_1,read_full_die): Remove has_children.
9456 (read_signatured_type): Update.
9457 (class cutu_reader) <has_children>: Remove.
9458
82ca8957
TT
94592020-02-08 Tom Tromey <tom@tromey.com>
9460
9461 * dwarf2/expr.c: Rename from dwarf2expr.c.
9462 * dwarf2/expr.h: Rename from dwarf2expr.h.
9463 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9464 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9465 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9466 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9467 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9468 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9469 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9470 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9471 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9472 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9473 * dwarf2/loc.c: Rename from dwarf2loc.c.
9474 * dwarf2/loc.h: Rename from dwarf2loc.h.
9475 * dwarf2/read.c: Rename from dwarf2read.c.
9476 * dwarf2/read.h: Rename from dwarf2read.h.
9477 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9478 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9479 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9480 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9481 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9482 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9483 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9484 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9485 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9486 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9487 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9488 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9489 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9490 Update.
9491 * Makefile.in (COMMON_SFILES): Update.
9492 (HFILES_NO_SRCDIR): Update.
9493
9e35d499
TT
94942020-02-08 Tom Tromey <tom@tromey.com>
9495
9496 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9497 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9498
1eba2311
TT
94992020-02-08 Tom Tromey <tom@tromey.com>
9500
9501 * dwarf2read.h (struct die_info): Don't declare.
9502
e41c2da2
TT
95032020-02-08 Tom Tromey <tom@tromey.com>
9504
9505 * dwarf2read.h (die_info_ptr): Remove typedef.
9506
4fc6c0d5
TT
95072020-02-08 Tom Tromey <tom@tromey.com>
9508
9509 * dwarf2read.c (read_call_site_scope)
9510 (handle_data_member_location, dwarf2_add_member_fn)
9511 (mark_common_block_symbol_computed, read_common_block)
9512 (attr_to_dynamic_prop, partial_die_info::read)
9513 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9514 (dwarf2_symbol_mark_computed, set_die_type): Update.
9515 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9516 method.
9517 (attr_form_is_block): Don't declare.
9518 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9519
cd6c91b4
TT
95202020-02-08 Tom Tromey <tom@tromey.com>
9521
9522 * dwarf2read.c (dwarf2_find_base_address, )
9523 (read_call_site_scope, rust_containing_type)
9524 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9525 (handle_data_member_location, dwarf2_add_member_fn)
9526 (get_alignment, read_structure_type, process_structure_scope)
9527 (mark_common_block_symbol_computed, read_common_block)
9528 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9529 (partial_die_info::read, read_attribute_value, new_symbol)
9530 (lookup_die_type, dwarf2_get_ref_die_offset)
9531 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9532 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9533 (dwarf2_symbol_mark_computed): Update.
9534 * dwarf2/attribute.h (struct attribute) <value_as_address,
9535 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9536 methods.
9537 (value_as_address, attr_form_is_section_offset)
9538 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9539 * dwarf2/attribute.c (attribute::value_as_address)
9540 (attribute::form_is_section_offset, attribute::form_is_constant)
9541 (attribute::form_is_ref): Now methods.
9542
162dce55
TT
95432020-02-08 Tom Tromey <tom@tromey.com>
9544
9545 * dwarf2read.c (struct attribute, DW_STRING)
9546 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9547 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9548 (attr_form_is_block, attr_form_is_section_offset)
9549 (attr_form_is_constant, attr_form_is_ref): Move.
9550 * dwarf2/attribute.h: New file.
9551 * dwarf2/attribute.c: New file, from dwarf2read.c.
9552 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9553
3054dd54
TT
95542020-02-08 Tom Tromey <tom@tromey.com>
9555
9556 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9557 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9558 Move.
9559 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9560 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9561 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9562 abbrev.c.
9563 * dwarf2/abbrev.h: New file.
9564 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9565 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9566
96b79293
TT
95672020-02-08 Tom Tromey <tom@tromey.com>
9568
9569 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9570 (dwarf2_section_size, dwarf2_get_section_info)
9571 (create_signatured_type_table_from_debug_names)
9572 (create_addrmap_from_aranges, read_debug_names_from_section)
9573 (get_gdb_index_contents_from_section, read_comp_unit_head)
9574 (error_check_comp_unit_head, read_abbrev_offset)
9575 (create_debug_type_hash_table, init_cu_die_reader)
9576 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9577 (read_comp_units_from_section, create_cus_hash_table)
9578 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9579 (create_dwp_v2_section, dwarf2_rnglists_process)
9580 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9581 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9582 (read_indirect_string_from_dwz, read_addr_index_1)
9583 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9584 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9585 (fill_in_loclist_baton): Update.
9586 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9587 get_containing_section, get_bfd_owner, get_bfd_section,
9588 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9589 (dwarf2_read_section, get_section_name, get_section_file_name)
9590 (get_containing_section, get_section_bfd_owner)
9591 (get_section_bfd_section, get_section_name, get_section_file_name)
9592 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9593 declare.
9594 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9595 (dwarf2_section_info::get_bfd_owner)
9596 (dwarf2_section_info::get_bfd_section)
9597 (dwarf2_section_info::get_name)
9598 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9599 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9600 (dwarf2_section_info::read): Now methods.
9601 * dwarf-index-write.c (class debug_names): Update.
9602
2c86cff9
TT
96032020-02-08 Tom Tromey <tom@tromey.com>
9604
9605 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9606 Move to dwarf2/section.h.
9607 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9608 (get_section_bfd_section, get_section_name)
9609 (get_section_file_name, get_section_id, get_section_flags)
9610 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9611 dwarf2/section.c.
9612 * dwarf2/section.h: New file.
9613 * dwarf2/section.c: New file, from dwarf2read.c.
9614 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9615
f4382c45
TT
96162020-02-08 Tom Tromey <tom@tromey.com>
9617
9618 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9619 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9620 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9621 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9622 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9623 * dwarf2/leb.h: New file, from dwarf2read.c.
9624 * dwarf2/leb.c: New file, from dwarf2read.c.
9625 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9626 Remove.
9627 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9628 (COMMON_SFILES): Add dwarf2/leb.c.
9629
01840b7a
JB
96302020-02-08 Joel Brobecker <brobecker@adacore.com>
9631
9632 GDB 9.1 released.
9633
dfcb27e4
IB
96342020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9635
9636 PR gdb/25190:
aac66a4c
SM
9637 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9638 * gdb/remote.c (remote_console_output): Update.
9639 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9640 (ui_file_puts): ...this.
9641 * gdb/ui-file.h (ui_file_puts): Add declaration.
9642 * gdb/utils.c (emit_style_escape): Update.
9643 (flush_wrap_buffer): Update.
9644 (fputs_maybe_filtered): Update.
9645 (fputs_unfiltered): Add function.
dfcb27e4 9646
faa17681
IB
96472020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9648
aac66a4c
SM
9649 * gdb/event-loop.c (gdb_wait_for_event): Update.
9650 * gdb/printcmd.c (printf_command): Update.
9651 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9652 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9653 (gdb_os_flush_stderr): Update.
9654 * gdb/remote.c (remote_console_output): Update.
9655 * gdb/ui-file.c (gdb_flush): Rename to...
9656 (ui_file_flush): ...this.
9657 (stderr_file::write): Update.
9658 (stderr_file::puts): Update.
9659 * gdb/ui-file.h (gdb_flush): Rename to...
9660 (ui_file_flush): ...this.
9661 * gdb/utils.c (gdb_flush): Add function.
9662 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9663
5abbbe1d
TT
96642020-02-07 Tom Tromey <tromey@adacore.com>
9665
9666 PR breakpoints/24915:
9667 * source.c (find_and_open_source): Do not check basenames_may_differ.
9668
919adfe8
TT
96692020-02-07 Tom Tromey <tom@tromey.com>
9670
9671 * README: Update gdbserver documentation.
9672 * gdbserver: Move to top level.
9673 * configure.tgt (build_gdbserver): Remove.
9674 * configure.ac: Remove --enable-gdbserver.
9675 * configure: Rebuild.
9676 * Makefile.in (distclean): Don't mention gdbserver.
9677
1d5d29e7
SV
96782020-02-06 Shahab Vahedi <shahab@synopsys.com>
9679
9680 * source-cache.c (source_cache::ensure): Surround
9681 get_plain_source_lines with a try/catch.
9682 (source_cache::get_line_charpos): Get rid of try/catch
9683 and only check for the return value of "ensure".
9684 * tui/tui-source.c (tui_source_window::set_contents):
9685 Simplify "nlines" calculation.
9686
6eb1129c
SV
96872020-02-06 Shahab Vahedi <shahab@synopsys.com>
9688
9689 * MAINTAINERS (Write After Approval): Add myself.
9690
c6a42d11
CB
96912020-02-05 Christian Biesinger <cbiesinger@google.com>
9692
9693 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9694 function call.
9695
c8ecdda6
CB
96962020-02-05 Christian Biesinger <cbiesinger@google.com>
9697
9698 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9699
f6480e70
MR
97002020-02-05 Maciej W. Rozycki <macro@wdc.com>
9701
9702 * nat/riscv-linux-tdesc.h: New file.
9703 * nat/riscv-linux-tdesc.c: New file, taking code from...
9704 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9705 ... here.
9706 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9707 NATDEPFILES.
9708
dcc9fbc6
AB
97092020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9710
9711 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9712 we don't set the fake simulator ptid to the null_ptid.
9713
719546c4
SM
97142020-02-03 Simon Marchi <simon.marchi@efficios.com>
9715
9716 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9717 * gdbthread.h (class thread_info) <resumed>: Likewise.
9718 * infrun.c (resume_1): Likewise.
9719 (proceed): Likewise.
9720 (infrun_thread_stop_requested): Likewise.
9721 (stop_all_threads): Likewise.
9722 (handle_inferior_event): Likewise.
9723 (restart_threads): Likewise.
9724 (finish_step_over): Likewise.
9725 (keep_going_stepped_thread): Likewise.
9726 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9727 (linux_handle_extended_wait): Likewise.
9728 * record-btrace.c (get_thread_current_frame_id): Likewise.
9729 * record-full.c (record_full_wait_1): Likewise.
9730 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9731 * target.c (target_resume): Likewise.
9732 * thread.c (set_running_thread): Likewise.
9733
e409c542
AKS
97342020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9735
9736 * f-valprint.c (f77_print_array_1): Changed datatype of index
9737 variable to LONGEST from int to enable it to contain bound
9738 values correctly.
9739
ee98c0da
MR
97402020-02-03 Maciej W. Rozycki <macro@wdc.com>
9741
9742 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9743 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9744 offsets according to FLEN determined.
9745 (riscv_linux_nat_target::read_description): Determine FLEN
9746 dynamically.
9747 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9748 according to FLEN determined.
9749 (riscv_linux_nat_target::store_registers): Likewise.
9750
aa66aac4
SV
97512020-02-01 Shahab Vahedi <shahab@synopsys.com>
9752
9753 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9754 when reg->group is empty and reggroup is not.
9755
fd9faca8
TT
97562020-01-31 Tom Tromey <tromey@adacore.com>
9757
9758 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9759 Call beneath target's mourn_inferior after unpushing.
9760
42330a68
AB
97612020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9762
9763 PR tui/9765
9764 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9765 have enough lines to fill the screen, still return the lowest
9766 address we found.
9767
7a27a45b
AB
97682020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9769
9770 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9771 '-', '<', and '>' commands.
9772
c47f70e2
PA
97732020-01-29 Pedro Alves <palves@redhat.com>
9774 Sergio Durigan Junior <sergiodj@redhat.com>
9775
9776 * infcmd.c (construct_inferior_arguments): Assert that
9777 'argc' is greater than 0.
9778
5133a315
LM
97792020-01-29 Luis Machado <luis.machado@linaro.org>
9780
9781 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9782 (BRK_INSN_MASK): Define to 0xd4200000.
9783 (aarch64_program_breakpoint_here_p): New function.
9784 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9785 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9786 breakpoint.c.
9787 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9788 breakpoint.h
9789 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9790 call gdbarch_program_breakpoint_here_p.
9791 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9792 default_program_breakpoint_here_p, changed return type to bool and
9793 simplified.
9794 * breakpoint.h (program_breakpoint_here): Moved prototype to
9795 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9796 return type to bool.
9797 * gdbarch.c: Regenerate.
9798 * gdbarch.h: Regenerate.
9799 * gdbarch.sh (program_breakpoint_here_p): New method.
9800 * infrun.c (handle_signal_stop): Call
9801 gdbarch_program_breakpoint_here_p.
9802
168f8c6b
TT
98032020-01-26 Tom Tromey <tom@tromey.com>
9804
9805 * ctfread.c (struct ctf_fp_info): Reindent.
9806 (_initialize_ctfread): Remove.
9807
128a391f
TT
98082020-01-26 Tom Tromey <tom@tromey.com>
9809
9810 * psymtab.c (partial_map_expand_apply)
9811 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9812 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9813 (psym_print_stats, psym_expand_symtabs_for_function)
9814 (psym_map_symbol_filenames, psym_map_matching_symbols)
9815 (psym_expand_symtabs_matching)
9816 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9817 (maintenance_check_psymtabs): Use new methods.
9818 * psympriv.h (struct partial_symtab) <readin_p,
9819 get_compunit_symtab>: New methods.
9820 <readin, compunit_symtab>: Remove members.
9821 (struct standard_psymtab): New.
9822 (struct legacy_psymtab): Derive from standard_psymtab.
9823 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9824 standard_psymtab.
9825 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9826
0494dbec
TT
98272020-01-26 Tom Tromey <tom@tromey.com>
9828
9829 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9830 read_dependencies. Add assert.
9831 * psymtab.c (partial_symtab::read_dependencies): New method.
9832 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9833 method.
9834 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9835 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9836 read_dependencies.
9837 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9838 Add assert.
9839
8566b89b
TT
98402020-01-26 Tom Tromey <tom@tromey.com>
9841
9842 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9843 Call expand_psymtab.
9844 (xcoff_read_symtab): Call expand_psymtab.
9845 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9846 legacy_expand_psymtab.
9847 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9848 method.
9849 (struct legacy_psymtab) <expand_psymtab>: Implement.
9850 <legacy_expand_psymtab>: New member.
9851 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9852 (parse_partial_symbols): Set legacy_expand_psymtab.
9853 (psymtab_to_symtab_1): Change argument order. Call
9854 expand_psymtab.
9855 (new_psymtab): Set legacy_expand_psymtab.
9856 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9857 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9858 expand_psymtab.
9859 (dwarf2_psymtab::expand_psymtab): Rename from
9860 psymtab_to_symtab_1. Call expand_psymtab.
9861 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9862 (dbx_end_psymtab): Likewise.
9863 (dbx_psymtab_to_symtab_1): Change argument order. Call
9864 expand_psymtab.
9865 (dbx_read_symtab): Call expand_psymtab.
9866 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9867 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9868 (ctf_psymtab::read_symtab): Call expand_psymtab.
9869
077cbab2
TT
98702020-01-26 Tom Tromey <tom@tromey.com>
9871
9872 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9873 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9874 messages.
9875 * mdebugread.c (mdebug_read_symtab): Remove prints.
9876 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9877 assert.
9878 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9879
891813be
TT
98802020-01-26 Tom Tromey <tom@tromey.com>
9881
9882 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9883 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9884 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9885 legacy_symtab.
9886 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9887 * psymtab.c (psymtab_to_symtab): Call method.
9888 (dump_psymtab): Update.
9889 * psympriv.h (struct partial_symtab): Add virtual destructor.
9890 <read_symtab>: New method.
9891 (struct legacy_symtab): New.
9892 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9893 (struct pst_map) <pst>: Now a legacy_psymtab.
9894 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9895 (new_psymtab): Use legacy_psymtab.
9896 * dwarf2read.h (struct dwarf2_psymtab): New.
9897 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9898 * dwarf2read.c (dwarf2_create_include_psymtab)
9899 (dwarf2_build_include_psymtabs, create_type_unit_group)
9900 (create_partial_symtab, process_psymtab_comp_unit_reader)
9901 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9902 (set_partial_user): Use dwarf2_psymtab.
9903 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9904 (psymtab_to_symtab_1, process_full_comp_unit)
9905 (process_full_type_unit, dwarf2_ranges_read)
9906 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9907 (dwarf_decode_lines): Use dwarf2_psymtab.
9908 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9909 (add_address_entry_worker, write_one_signatured_type)
9910 (recursively_count_psymbols, recursively_write_psymbols)
9911 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9912 (write_debug_names): Likewise.
9913 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9914 <pst>: Now a legacy_psymtab.
9915 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9916 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9917 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9918 * ctfread.c (struct ctf_psymtab): New.
9919 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9920 ctf_psymtab.
9921 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9922 (create_partial_symtab): Return a ctf_psymtab.
9923 (scan_partial_symbols): Update.
9924
c3693a1d
TT
99252020-01-26 Tom Tromey <tom@tromey.com>
9926
9927 * xcoffread.c (xcoff_start_psymtab): Use new.
9928 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9929 renamed from start_psymtab_common.
9930 * psympriv.h (struct partial_symtab): Add new constructor.
9931 (start_psymtab_common): Don't declare.
9932 * mdebugread.c (parse_partial_symbols): Use new.
9933 * dwarf2read.c (create_partial_symtab): Use new.
9934 * dbxread.c (start_psymtab): Use new.
9935 * ctfread.c (create_partial_symtab): Use new.
9936
32caafd0
TT
99372020-01-26 Tom Tromey <tom@tromey.com>
9938
9939 * xcoffread.c (xcoff_end_psymtab): Use new.
9940 * psymtab.c (start_psymtab_common): Use new.
9941 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9942 Update.
9943 * psympriv.h (struct partial_symtab): Add parameters to
9944 constructor. Don't inline.
9945 (allocate_psymtab): Don't declare.
9946 * mdebugread.c (new_psymtab): Use new.
9947 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9948 * dbxread.c (dbx_end_psymtab): Use new.
9949
abaa2f23
TT
99502020-01-26 Tom Tromey <tom@tromey.com>
9951
9952 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9953 allocate_psymtab. Update documentation.
9954 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9955 allocate_psymtab. Do not use new.
9956 (allocate_psymtab): Use new. Update.
9957
6d94535f
TT
99582020-01-26 Tom Tromey <tom@tromey.com>
9959
9960 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9961 * psymtab.c (psym_print_stats): Update.
9962 * psympriv.h (struct partial_symtab) <readin,
9963 psymtabs_addrmap_supported, anonymous>: Now bool.
9964 * mdebugread.c (psymtab_to_symtab_1): Update.
9965 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9966 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9967 (process_full_comp_unit, process_full_type_unit): Update.
9968 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9969 * ctfread.c (psymtab_to_symtab): Update.
9970
6f17252b
TT
99712020-01-26 Tom Tromey <tom@tromey.com>
9972
9973 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9974 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9975 * psymtab.c (psymtab_storage): Delete psymtabs.
9976 (psymtab_storage::allocate_psymtab): Use new.
9977 (psymtab_storage::discard_psymtab): Use delete.
9978 * psympriv.h (struct partial_symtab): Add constructor and
9979 initializers.
9980
f6f1cebc
TT
99812020-01-26 Tom Tromey <tom@tromey.com>
9982
9983 * machoread.c: Do not include psympriv.h.
9984
e47e48f6
PW
99852020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9986
9987 * NEWS: Mention the new option and the set/show commands.
9988
a2fedca9
PW
99892020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9990
9991 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9992 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9993 (validate_exec_file): New variables, enums, functions.
9994 (exec_file_locate_attach, print_section_info): Style the filenames.
9995 (_initialize_exec): Install show_exec_file_mismatch_command and
9996 set_exec_file_mismatch_command.
9997 * gdbcore.h (validate_exec_file): Declare.
9998 * infcmd.c (attach_command): Call validate_exec_file.
9999 * remote.c ( remote_target::remote_add_inferior): Likewise.
10000
7ffa82e1
AB
100012020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10002
10003 * frame.c (find_frame_sal): Move call to get_next_frame into more
10004 inner scope.
10005 * inline-frame.c (inilne_state) <inline_state>: Update argument
10006 types.
10007 (inilne_state) <skipped_symbol>: Rename to...
10008 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10009 (skip_inline_frames): Build vector of skipped symbols and use this
10010 to reate the inline_state.
10011 (inline_skipped_symbol): Add a comment and some assertions, fetch
10012 skipped symbol from the list.
10013
3d92a3e3
AB
100142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10015
10016 * buildsym.c (lte_is_less_than): Delete.
10017 (buildsym_compunit::end_symtab_with_blockvector): Create local
10018 lambda function to sort line table entries, and use
10019 std::stable_sort instead of std::sort.
10020 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10021 markers when looking for a previous line.
10022
94a72be7
AB
100232020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10024
10025 * dwarf2read.c (lnp_state_machine::record_line): Include
10026 end_sequence parameter in debug print out. Record the line if we
10027 are at an end_sequence marker even if it's not the start of a
10028 statement.
10029 * symmisc.c (maintenance_print_one_line_table): Print end of
10030 sequence markers with 'END' not '0'.
10031
53af73bf
PA
100322020-01-24 Pedro Alves <palves@redhat.com>
10033
10034 PR gdb/25410
10035 * thread.c (scoped_restore_current_thread::restore): Use
10036 switch_to_inferior_no_thread.
10037 * exec.c: Include "progspace-and-thread.h".
10038 (add_target_sections, remove_target_sections):
10039 scoped_restore_current_pspace_and_thread instead of
10040 scoped_restore_current_thread.
10041 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10042 and aspace to the inferior before calling clone_program_space.
10043 Remove stale comment.
10044
3050c6f4
CB
100452020-01-24 Christian Biesinger <cbiesinger@google.com>
10046
10047 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10048 (arm_netbsd_nat_target::fetch_registers): ...this.
10049 (arm_nbsd_nat_target::store_registers): Rename to...
10050 (arm_netbsd_nat_target::store_registers): ...this.
10051
73685c7e
CB
100522020-01-24 Christian Biesinger <cbiesinger@google.com>
10053
10054 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10055 register_t.
10056
89203d40
CB
100572020-01-24 Christian Biesinger <cbiesinger@google.com>
10058
10059 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10060 Update comment.
10061 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10062 Likewise.
10063 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10064 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10065 the correct replacement (iterate_over_regset_sections).
10066 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10067 Update comment.
10068
1ba1ac88
AB
100692020-01-24 Graham Markall <graham.markall@embecosm.com>
10070
10071 PR gdb/23718
10072 * gdb/python/python.c (execute_gdb_command): Call
10073 async_enable_stdin in catch block.
10074
f3364a6d
AB
100752020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10076
10077 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10078 SWITCH_THRU_ALL_UIS.
10079
733d0a67
AB
100802020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10081
10082 PR tui/9765
10083 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10084 comment, add extra parameter, and update to store previous symbol
10085 when appropriate.
10086 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10087 add extra parameter.
10088 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10089 remove unneeded parameter, add try/catch around gdb_print_insn,
10090 rewrite to add items to asm_lines vector.
10091 (tui_find_backward_disassembly_start_address): New function.
10092 (tui_find_disassembly_address): Updated throughout.
10093 (tui_disasm_window::set_contents): Update for changes to
10094 tui_disassemble.
10095 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10096 number of lines to scroll.
10097
b3b3bada
SM
100982020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10099
10100 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10101 (SECT_OFF_DATA): Likewise.
10102 (SECT_OFF_RODATA): Likewise.
10103 (SECT_OFF_TEXT): Likewise.
10104 (SECT_OFF_BSS): Likewise.
10105 (struct objfile) <text_section_offset, data_section_offset>: New
10106 methods.
10107 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10108 objfile::text_section_offset.
10109 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10110 * coffread.c (coff_symtab_read): Likewise.
10111 (enter_linenos): Likewise.
10112 (process_coff_symbol): Likewise.
10113 * ctfread.c (get_objfile_text_range): Likewise.
10114 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10115 Use objfile::data_section_offset.
10116 * dwarf2-frame.c (execute_cfa_program): Use
10117 objfile::text_section_offset.
10118 (dwarf2_frame_find_fde): Likewise.
10119 * dwarf2read.c (create_addrmap_from_index): Likewise.
10120 (create_addrmap_from_aranges): Likewise.
10121 (dw2_find_pc_sect_compunit_symtab): Likewise.
10122 (process_psymtab_comp_unit_reader): Likewise.
10123 (add_partial_symbol): Likewise.
10124 (add_partial_subprogram): Likewise.
10125 (process_full_comp_unit): Likewise.
10126 (read_file_scope): Likewise.
10127 (read_func_scope): Likewise.
10128 (read_lexical_block_scope): Likewise.
10129 (read_call_site_scope): Likewise.
10130 (dwarf2_rnglists_process): Likewise.
10131 (dwarf2_ranges_process): Likewise.
10132 (dwarf2_ranges_read): Likewise.
10133 (dwarf_decode_lines_1): Likewise.
10134 (new_symbol): Likewise.
10135 (dwarf2_fetch_die_loc_sect_off): Likewise.
10136 (dwarf2_per_cu_text_offset): Likewise.
10137 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10138 * hppa-tdep.c (read_unwind_info): Likewise.
10139 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10140 * psympriv.h (struct partial_symtab): Likewise.
10141 * psymtab.c (find_pc_sect_psymtab): Likewise.
10142 * solib-svr4.c (enable_break): Likewise.
10143 * stap-probe.c (relocate_address): Use
10144 objfile::data_section_offset.
10145 * xcoffread.c (enter_line_range): Use
10146 objfile::text_section_offset.
10147 (read_xcoff_symtab): Likewise.
10148
ab53f382
SM
101492020-01-23 Simon Marchi <simon.marchi@efficios.com>
10150
10151 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10152 declaration to narrower scopes.
10153
e7eee665
SM
101542020-01-23 Simon Marchi <simon.marchi@efficios.com>
10155
10156 * darwin-nat.h (struct darwin_exception_msg, enum
10157 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10158 Move up.
10159 (class darwin_nat_target) <wait_1, check_new_threads,
10160 decode_exception_message, decode_message, stop_inferior,
10161 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10162 * darwin-nat.c (darwin_check_new_threads): Rename to...
10163 (darwin_nat_target::check_new_threads): ... this.
10164 (darwin_suspend_inferior_it): Remove.
10165 (darwin_decode_exception_message): Rename to...
10166 (darwin_nat_target::decode_exception_message): ... this.
10167 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10168 (darwin_decode_message): Rename to...
10169 (darwin_nat_target::decode_message): ... this.
10170 (cancel_breakpoint): Rename to...
10171 (darwin_nat_target::cancel_breakpoint): ... this.
10172 (darwin_wait): Rename to...
10173 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10174 instead of iterate_over_inferiors.
10175 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10176 (darwin_stop_inferior): Rename to...
10177 (darwin_nat_target::stop_inferior): ... this.
10178 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10179 (darwin_init_thread_list): Rename to...
10180 (darwin_nat_target::init_thread_list): ... this.
10181 (darwin_ptrace_him): Rename to...
10182 (darwin_nat_target::ptrace_him): ... this.
10183 (darwin_nat_target::create_inferior): Pass lambda function to
10184 fork_inferior.
10185 (darwin_nat_target::detach): Call stop_inferior instead of
10186 darwin_stop_inferior.
10187 * fork-inferior.h (fork_inferior): Change init_trace_fun
10188 parameter to gdb::function_view.
10189 * fork-inferior.c (fork_inferior): Likewise.
10190
c162ed3e
HD
101912020-01-23 Hannes Domani <ssbssa@yahoo.de>
10192
10193 * i386-cygwin-tdep.c (core_process_module_section): Update.
10194 * windows-nat.c (struct lm_info_windows): Add text_offset.
10195 (windows_xfer_shared_libraries): Update.
10196 * windows-tdep.c (windows_xfer_shared_library):
10197 Add text_offset_cached argument.
10198 * windows-tdep.h (windows_xfer_shared_library): Update.
10199
a1237872
SM
102002020-01-21 Simon Marchi <simon.marchi@efficios.com>
10201
10202 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10203
b3ee6dd9
SM
102042020-01-21 Simon Marchi <simon.marchi@efficios.com>
10205
10206 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10207 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10208 replace with range-based for.
10209 (gdbsim_interrupt_inferior): Remove.
10210 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10211 with a range-based for. Inline code from
10212 gdbsim_interrupt_inferior.
10213
f9fac3c8
SM
102142020-01-21 Simon Marchi <simon.marchi@efficios.com>
10215
10216 * infrun.c (proceed): Fix indentation.
10217
f6474de9
TT
102182020-01-21 Tom Tromey <tromey@adacore.com>
10219
10220 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10221 * python/python.c (python_extension_ops): Update.
10222 (gdbpy_colorize): New function.
10223 * python/lib/gdb/__init__.py (colorize): New function.
10224 * extension.h (ext_lang_colorize): Declare.
10225 * extension.c (ext_lang_colorize): New function.
10226 * extension-priv.h (struct extension_language_ops) <colorize>: New
10227 member.
10228 * cli/cli-style.c (_initialize_cli_style): Update help text.
10229
f0c702d4
LM
102302020-01-21 Luis Machado <luis.machado@linaro.org>
10231
10232 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10233 <cond>: Change type to bool.
10234 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10235 (aarch64_displaced_step_cb): Likewise.
10236 (aarch64_displaced_step_tb): Likewise.
10237
1ab139e5
LM
102382020-01-21 Luis Machado <luis.machado@linaro.org>
10239
10240 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10241 output.
10242
0c271889
LM
102432020-01-21 Luis Machado <luis.machado@linaro.org>
10244
10245 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10246 <pc_adjust>: Adjust the documentation.
10247 (aarch64_displaced_step_fixup): Check if PC really moved before
10248 adjusting it.
10249
4d89c1c7
TT
102502020-01-19 Tom Tromey <tom@tromey.com>
10251
10252 * disasm.c (~gdb_disassembler): New destructor.
10253 (gdb_buffered_insn_length): Call disassemble_free_target.
10254 * disasm.h (class gdb_disassembler): Declare destructor. Use
10255 DISABLE_COPY_AND_ASSIGN.
10256
c0ab21c2
TT
102572020-01-19 Tom Tromey <tom@tromey.com>
10258
10259 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10260 (die_reader_func_ftype): Remove.
10261 (cutu_reader): New class.
10262 (dw2_get_file_names_reader): Remove "data" parameter.
10263 (dw2_get_file_names): Use cutu_reader.
10264 (create_debug_type_hash_table): Update.
10265 (read_cutu_die_from_dwo): Update comment.
10266 (lookup_dwo_unit): Add dwo_name parameter.
10267 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10268 die_reader_func_ftype and data parameters.
10269 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10270 Remove die_reader_func_ftype and data parameters.
10271 (~cutu_reader): New; from init_cutu_and_read_dies.
10272 (cutu_reader::cutu_reader): Rename from
10273 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10274 and data parameters.
10275 (init_cutu_and_read_dies_simple): Remove.
10276 (struct process_psymtab_comp_unit_data): Remove.
10277 (process_psymtab_comp_unit_reader): Remove data parameter; add
10278 want_partial_unit and pretend_language parameters.
10279 (process_psymtab_comp_unit): Use cutu_reader.
10280 (build_type_psymtabs_reader): Remove data parameter.
10281 (build_type_psymtabs_1): Use cutu_reader.
10282 (process_skeletonless_type_unit): Likewise.
10283 (load_partial_comp_unit_reader): Remove.
10284 (load_partial_comp_unit): Use cutu_reader.
10285 (load_full_comp_unit_reader): Remove.
10286 (load_full_comp_unit): Use cutu_reader.
10287 (struct create_dwo_cu_data): Remove.
10288 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10289 dwo_unit parameters.
10290 (create_cus_hash_table): Use cutu_reader.
10291 (struct dwarf2_read_addr_index_data): Remove.
10292 (dwarf2_read_addr_index_reader): Remove.
10293 (dwarf2_read_addr_index): Use cutu_reader.
10294 (read_signatured_type_reader): Remove.
10295 (read_signatured_type): Use cutu_reader.
10296
45bbae5c
TT
102972020-01-19 Tom Tromey <tom@tromey.com>
10298
10299 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10300 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10301 (tui_wrefresh): Declare.
10302 * tui/tui-wingeneral.c (suppress_output): New global.
10303 (tui_suppress_output, ~tui_suppress_output): New constructor and
10304 destructor.
10305 (tui_wrefresh): New function.
10306 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10307 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10308 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10309 method.
10310 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10311 tui_wrefresh.
10312 (tui_data_window::no_refresh): New method.
10313 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10314 (tui_reg_command): Use tui_suppress_output
10315 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10316 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10317 method.
10318 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10319
4f13c1c0
TT
103202020-01-19 Tom Tromey <tom@tromey.com>
10321
10322 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10323 Handle case where symtab is null.
10324
fa47e446
SM
103252020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10326
10327 * linux-fork.c (one_fork_p): Simplify.
10328
26f42329
SM
103292020-01-17 Simon Marchi <simon.marchi@efficios.com>
10330
10331 * top.c (struct qt_args): Remove.
10332 (kill_or_detach): Change return type to void, replace `void *`
10333 parameter with a proper one.
10334 (print_inferior_quit_action): Likewise.
10335 (quit_confirm): Use range-based for loop to iterate over inferiors.
10336 (quit_force): Likewise.
10337
a9ac81b1
SM
103382020-01-17 Simon Marchi <simon.marchi@efficios.com>
10339
10340 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10341 `void *` parameter with proper parameters.
10342 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10343 (print_one_inferior): Change return type to void, replace `void *`
10344 parameter with proper parameters.
10345 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10346 inferiors.
10347 (get_other_inferior): Remove.
10348 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10349 inferiors.
10350
788eca49
SM
103512020-01-17 Simon Marchi <simon.marchi@efficios.com>
10352
10353 * mi/mi-interp.c (report_initial_inferior): Remove.
10354 (mi_interp::init): Use range-based for to iterate over inferiors.
10355
d9bc85b6
SM
103562020-01-17 Simon Marchi <simon.marchi@efficios.com>
10357
10358 * python/py-inferior.c (build_inferior_list): Remove.
10359 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10360
40c94099
CB
103612020-01-16 Christian Biesinger <cbiesinger@google.com>
10362
10363 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10364 (btrace_stitch_trace): Likewise.
10365 * charset.c (intermediate_encoding): Likewise (vaild).
10366 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10367 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10368 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10369
e0cdfe3c
HD
103702020-01-16 Hannes Domani <ssbssa@yahoo.de>
10371
10372 * windows-tdep.c (windows_get_tlb_type):
10373 Add rtl_user_process_parameters type.
10374
790f1718 103752020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10376 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10377
10378 PR build/24805
10379 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10380 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10381 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10382 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10383 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10384 (ps_plog): Redeclare exported functions with default visibility.
10385
3112ed97
NA
103862020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10387
10388 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10389 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10390
8dc3273e
SM
103912020-01-15 Simon Marchi <simon.marchi@efficios.com>
10392
10393 * infcmd.c (post_create_inferior): Use get_thread_regcache
10394 instead of get_current_regcache.
10395
ff47f4f0
TT
103962020-01-14 Tom Tromey <tom@tromey.com>
10397
10398 PR symtab/12535:
10399 * python/python.c (gdbpy_decode_line): Treat empty string the same
10400 as no argument.
10401
975f45b7
TT
104022020-01-14 Tom Tromey <tom@tromey.com>
10403
10404 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10405
25e57356
TT
104062020-01-14 Tom Tromey <tom@tromey.com>
10407
10408 * nat/linux-btrace.c: Don't include <config.h>.
10409 * nat/linux-ptrace.c: Don't include <config.h>.
10410 * nat/x86-linux-dregs.c: Don't include <config.h>.
10411
05ea2a05
TT
104122020-01-14 Tom Tromey <tom@tromey.com>
10413
10414 * configure: Rebuild.
10415 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10416
01027315
TT
104172020-01-14 Tom Tromey <tom@tromey.com>
10418
10419 * nat/x86-linux-dregs.c: Include configh.h.
10420 * nat/linux-ptrace.c: Include configh.h.
10421 * nat/linux-btrace.c: Include configh.h.
10422 * defs.h: Include config.h, bfd.h.
10423 * configure.ac: Don't source common.host.
10424 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10425 * configure: Rebuild.
10426 * acinclude.m4: Update path.
10427 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10428 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10429 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10430 (CLIBS): Add LIBSUPPORT.
10431 (CDEPS): Likewise.
10432 (COMMON_SFILES): Remove gdbsupport files.
10433 (HFILES_NO_SRCDIR): Likewise.
10434 (stamp-version): Update path to create-version.sh.
10435 (ALLDEPFILES): Remove gdbsupport files.
10436
b2ceabe8
TT
104372020-01-14 Tom Tromey <tom@tromey.com>
10438
10439 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10440 USE_WIN32API when needed.
10441 * configure.ac (USE_WIN32API): Don't define.
10442 (WIN32LIBS): Use WIN32APILIBS.
10443 * configure: Rebuild.
10444
25c51f71
TT
104452020-01-14 Tom Tromey <tom@tromey.com>
10446
10447 * configure: Rebuild.
10448 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10449
717c684d
BE
104502020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10451
10452 * skip.c (skip_function_command): Make skip w/o arguments use the
10453 name of the inlined function if pc is inside any inlined function.
10454
7da6a5b9
LM
104552020-01-14 Luis Machado <luis.machado@linaro.org>
10456
10457 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10458 * infrun.c (resume_1): Likewise.
10459 (handle_inferior_event): Remove stale comment.
10460 * linux-nat.c (linux_nat_target::resume): Update comments.
10461 (save_stop_reason): Likewise.
10462 (linux_nat_filter_event): Likewise.
10463 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10464
44e4c775
AB
104652020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10466
10467 * elfread.c (record_minimal_symbol): Set section index to 0 for
10468 non-allocatable sections.
10469
18a8505e
AT
10470
104712020-01-13 Ali Tamur <tamur@google.com>
10472
10473 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10474 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10475 to gdb::optional. Update comments.
10476 (dwo_file): Update comments.
10477 (read_attribute): Update API to take an additional out parameter,
10478 need_reprocess. This is used to mark attributes that need other
10479 attributes (e.g. str_offsets_base) for correct computation which may not
10480 have been read yet.
10481 (read_attribute_reprocess): New function declaration.
10482 (read_addr_index): Likewise.
10483 (read_dwo_str_index): Likewise.
10484 (read_stub_str_index): Likewise.
10485 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10486 (lookup_addr_base): New function definition.
10487 (lookup_ranges_base): Likewise.
10488 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10489 lookup_ranges_base.
10490 (init_cutu_and_read_dies): Update comments.
10491 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10492 unit. This is used to inherit parent's str_offsets_base and addr_base.
10493 Update comments.
10494 (init_cutu_and_read_dies_simple): Reflect API changes.
10495 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10496 (create_cus_hash_table): Change API to take parent compile unit.
10497 Reflect API changes.
10498 (open_and_init_dwo_file): Reflect API changes.
10499 (dwarf2_get_pc_bounds): Update comments.
10500 (dwarf2_record_block_ranges): Likewise.
10501 (read_full_die_1): Change implementation to reprocess attributes that
10502 need str_offsets_base and addr_base.
10503 (partial_die_info::read): Likewise.
10504 (read_attribute_reprocess): New function definition.
10505 (read_attribute_value): Change API to take an additional out parameter,
10506 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10507 when a non-dwo compile unit has index based attributes.
10508 (read_attribute): Reflect API changes.
10509 (read_addr_index_1): Reflect API changes. Update comments.
10510 (dwarf2_read_addr_index_data): Reflect API changes.
10511 (dwarf2_read_addr_index): Likewise.
10512 (read_str_index): Change API and implementation. This becomes a helper
10513 to be used by the new string index related methods. Update error
10514 message and comments.
10515 (read_dwo_str_index): New function definition.
10516 (read_stub_str_index): Likewise.
10517 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10518 * symfile.h (dwarf2_debug_sections): Likewise.
10519 * xcoffread.c (dwarf2_debug_sections): Likewise.
10520
0cac9354
SM
105212020-01-13 Simon Marchi <simon.marchi@efficios.com>
10522
10523 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10524 core_reg_sect type to gdb_byte *.
10525 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10526 * cris-tdep.c (fetch_core_registers): Likewise.
10527 * corelow.c (core_target::get_core_register_section): Change
10528 type of `contents` to gdb::byte_vector.
10529
9a6d629c
AB
105302020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10531
10532 * tui/tui-wingeneral.c (box_win): Position the title in the center
10533 of the border.
10534
d8b2f9e3
SM
105352020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10536
10537 * corelow.c (core_target::get_core_register_section): Use
10538 std::vector instead of alloca.
10539
bb564c58
SM
105402020-01-13 Simon Marchi <simon.marchi@efficios.com>
10541
10542 * warning.m4: Add -Wmissing-declarations to build_warnings.
10543 * configure: Re-generate.
10544
6b366111
SM
105452020-01-13 Simon Marchi <simon.marchi@efficios.com>
10546
10547 * python/python.c (init__gdb_module): Add declaration.
10548
6c265988
SM
105492020-01-13 Simon Marchi <simon.marchi@efficios.com>
10550
10551 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10552 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10553 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10554 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10555 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10556 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10557 * ada-exp.y (_initialize_ada_exp): Add declaration.
10558 * ada-lang.c (_initialize_ada_language): Add declaration.
10559 * ada-tasks.c (_initialize_tasks): Add declaration.
10560 * agent.c (_initialize_agent): Add declaration.
10561 * aix-thread.c (_initialize_aix_thread): Add declaration.
10562 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10563 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10564 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10565 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10566 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10567 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10568 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10569 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10570 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10571 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10572 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10573 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10574 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10575 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10576 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10577 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10578 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10579 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10580 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10581 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10582 * annotate.c (_initialize_annotate): Add declaration.
10583 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10584 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10585 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10586 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10587 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10588 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10589 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10590 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10591 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10592 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10593 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10594 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10595 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10596 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10597 * auto-load.c (_initialize_auto_load): Add declaration.
10598 * auxv.c (_initialize_auxv): Add declaration.
10599 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10600 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10601 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10602 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10603 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10604 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10605 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10606 * breakpoint.c (_initialize_breakpoint): Add declaration.
10607 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10608 * btrace.c (_initialize_btrace): Add declaration.
10609 * charset.c (_initialize_charset): Add declaration.
10610 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10611 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10612 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10613 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10614 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10615 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10616 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10617 * coffread.c (_initialize_coffread): Add declaration.
10618 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10619 * compile/compile.c (_initialize_compile): Add declaration.
10620 * complaints.c (_initialize_complaints): Add declaration.
10621 * completer.c (_initialize_completer): Add declaration.
10622 * copying.c (_initialize_copying): Add declaration.
10623 * corefile.c (_initialize_core): Add declaration.
10624 * corelow.c (_initialize_corelow): Add declaration.
10625 * cp-abi.c (_initialize_cp_abi): Add declaration.
10626 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10627 * cp-support.c (_initialize_cp_support): Add declaration.
10628 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10629 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10630 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10631 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10632 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10633 * ctfread.c (_initialize_ctfread): Add declaration.
10634 * d-lang.c (_initialize_d_language): Add declaration.
10635 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10636 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10637 * dbxread.c (_initialize_dbxread): Add declaration.
10638 * dcache.c (_initialize_dcache): Add declaration.
10639 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10640 * disasm.c (_initialize_disasm): Add declaration.
10641 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10642 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10643 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10644 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10645 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10646 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10647 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10648 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10649 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10650 * elfread.c (_initialize_elfread): Add declaration.
10651 * exec.c (_initialize_exec): Add declaration.
10652 * extension.c (_initialize_extension): Add declaration.
10653 * f-lang.c (_initialize_f_language): Add declaration.
10654 * f-valprint.c (_initialize_f_valprint): Add declaration.
10655 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10656 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10657 * filesystem.c (_initialize_filesystem): Add declaration.
10658 * findcmd.c (_initialize_mem_search): Add declaration.
10659 * findvar.c (_initialize_findvar): Add declaration.
10660 * fork-child.c (_initialize_fork_child): Add declaration.
10661 * frame-base.c (_initialize_frame_base): Add declaration.
10662 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10663 * frame.c (_initialize_frame): Add declaration.
10664 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10665 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10666 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10667 * gcore.c (_initialize_gcore): Add declaration.
10668 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10669 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10670 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10671 * gdbarch.c (_initialize_gdbarch): Add declaration.
10672 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10673 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10674 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10675 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10676 * go-lang.c (_initialize_go_language): Add declaration.
10677 * go32-nat.c (_initialize_go32_nat): Add declaration.
10678 * guile/guile.c (_initialize_guile): Add declaration.
10679 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10680 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10681 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10682 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10683 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10684 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10685 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10686 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10687 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10688 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10689 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10690 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10691 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10692 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10693 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10694 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10695 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10696 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10697 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10698 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10699 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10700 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10701 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10702 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10703 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10704 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10705 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10706 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10707 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10708 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10709 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10710 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10711 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10712 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10713 * infcall.c (_initialize_infcall): Add declaration.
10714 * infcmd.c (_initialize_infcmd): Add declaration.
10715 * inflow.c (_initialize_inflow): Add declaration.
10716 * infrun.c (_initialize_infrun): Add declaration.
10717 * interps.c (_initialize_interpreter): Add declaration.
10718 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10719 * jit.c (_initialize_jit): Add declaration.
10720 * language.c (_initialize_language): Add declaration.
10721 * linux-fork.c (_initialize_linux_fork): Add declaration.
10722 * linux-nat.c (_initialize_linux_nat): Add declaration.
10723 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10724 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10725 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10726 * m2-lang.c (_initialize_m2_language): Add declaration.
10727 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10728 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10729 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10730 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10731 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10732 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10733 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10734 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10735 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10736 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10737 * machoread.c (_initialize_machoread): Add declaration.
10738 * macrocmd.c (_initialize_macrocmd): Add declaration.
10739 * macroscope.c (_initialize_macroscope): Add declaration.
10740 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10741 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10742 * maint.c (_initialize_maint_cmds): Add declaration.
10743 * mdebugread.c (_initialize_mdebugread): Add declaration.
10744 * memattr.c (_initialize_mem): Add declaration.
10745 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10746 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10747 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10748 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10749 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10750 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10751 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10752 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10753 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10754 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10755 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10756 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10757 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10758 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10759 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10760 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10761 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10762 * mipsread.c (_initialize_mipsread): Add declaration.
10763 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10764 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10765 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10766 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10767 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10768 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10769 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10770 * nto-procfs.c (_initialize_procfs): Add declaration.
10771 * objc-lang.c (_initialize_objc_language): Add declaration.
10772 * observable.c (_initialize_observer): Add declaration.
10773 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10774 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10775 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10776 * osabi.c (_initialize_gdb_osabi): Add declaration.
10777 * osdata.c (_initialize_osdata): Add declaration.
10778 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10779 * parse.c (_initialize_parse): Add declaration.
10780 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10781 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10782 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10783 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10784 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10785 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10786 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10787 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10788 * printcmd.c (_initialize_printcmd): Add declaration.
10789 * probe.c (_initialize_probe): Add declaration.
10790 * proc-api.c (_initialize_proc_api): Add declaration.
10791 * proc-events.c (_initialize_proc_events): Add declaration.
10792 * proc-service.c (_initialize_proc_service): Add declaration.
10793 * procfs.c (_initialize_procfs): Add declaration.
10794 * producer.c (_initialize_producer): Add declaration.
10795 * psymtab.c (_initialize_psymtab): Add declaration.
10796 * python/python.c (_initialize_python): Add declaration.
10797 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10798 * record-btrace.c (_initialize_record_btrace): Add declaration.
10799 * record-full.c (_initialize_record_full): Add declaration.
10800 * record.c (_initialize_record): Add declaration.
10801 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10802 * regcache.c (_initialize_regcache): Add declaration.
10803 * reggroups.c (_initialize_reggroup): Add declaration.
10804 * remote-notif.c (_initialize_notif): Add declaration.
10805 * remote-sim.c (_initialize_remote_sim): Add declaration.
10806 * remote.c (_initialize_remote): Add declaration.
10807 * reverse.c (_initialize_reverse): Add declaration.
10808 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10809 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10810 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10811 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10812 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10813 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10814 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10815 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10816 Add declaration.
10817 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10818 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10819 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10820 * rust-exp.y (_initialize_rust_exp): Add declaration.
10821 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10822 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10823 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10824 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10825 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10826 * score-tdep.c (_initialize_score_tdep): Add declaration.
10827 * ser-go32.c (_initialize_ser_dos): Add declaration.
10828 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10829 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10830 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10831 * ser-uds.c (_initialize_ser_socket): Add declaration.
10832 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10833 * serial.c (_initialize_serial): Add declaration.
10834 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10835 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10836 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10837 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10838 * skip.c (_initialize_step_skip): Add declaration.
10839 * sol-thread.c (_initialize_sol_thread): Add declaration.
10840 * solib-aix.c (_initialize_solib_aix): Add declaration.
10841 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10842 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10843 * solib-frv.c (_initialize_frv_solib): Add declaration.
10844 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10845 * solib-target.c (_initialize_solib_target): Add declaration.
10846 * solib.c (_initialize_solib): Add declaration.
10847 * source-cache.c (_initialize_source_cache): Add declaration.
10848 * source.c (_initialize_source): Add declaration.
10849 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10850 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10851 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10852 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10853 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10854 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10855 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10856 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10857 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10858 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10859 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10860 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10861 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10862 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10863 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10864 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10865 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10866 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10867 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10868 * stabsread.c (_initialize_stabsread): Add declaration.
10869 * stack.c (_initialize_stack): Add declaration.
10870 * stap-probe.c (_initialize_stap_probe): Add declaration.
10871 * std-regs.c (_initialize_frame_reg): Add declaration.
10872 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10873 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10874 * symfile.c (_initialize_symfile): Add declaration.
10875 * symmisc.c (_initialize_symmisc): Add declaration.
10876 * symtab.c (_initialize_symtab): Add declaration.
10877 * target.c (_initialize_target): Add declaration.
10878 * target-connection.c (_initialize_target_connection): Add
10879 declaration.
10880 * target-dcache.c (_initialize_target_dcache): Add declaration.
10881 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10882 * thread.c (_initialize_thread): Add declaration.
10883 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10884 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10885 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10886 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10887 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10888 * tracectf.c (_initialize_ctf): Add declaration.
10889 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10890 * tracefile.c (_initialize_tracefile): Add declaration.
10891 * tracepoint.c (_initialize_tracepoint): Add declaration.
10892 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10893 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10894 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10895 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10896 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10897 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10898 * tui/tui.c (_initialize_tui): Add declaration.
10899 * typeprint.c (_initialize_typeprint): Add declaration.
10900 * ui-style.c (_initialize_ui_style): Add declaration.
10901 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10902 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10903 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10904 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10905 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10906 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10907 * unittests/filtered_iterator-selftests.c
10908 (_initialize_filtered_iterator_selftests): Add declaration.
10909 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10910 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10911 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10912 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10913 * unittests/main-thread-selftests.c
10914 (_initialize_main_thread_selftests): Add declaration.
10915 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10916 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10917 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10918 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10919 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10920 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10921 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10922 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10923 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10924 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10925 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10926 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10927 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10928 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10929 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10930 declaration.
10931 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10932 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10933 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10934 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10935 * user-regs.c (_initialize_user_regs): Add declaration.
10936 * utils.c (_initialize_utils): Add declaration.
10937 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10938 * valops.c (_initialize_valops): Add declaration.
10939 * valprint.c (_initialize_valprint): Add declaration.
10940 * value.c (_initialize_values): Add declaration.
10941 * varobj.c (_initialize_varobj): Add declaration.
10942 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10943 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10944 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10945 * windows-nat.c (_initialize_windows_nat): Add declaration.
10946 (_initialize_check_for_gdb_ini): Add declaration.
10947 (_initialize_loadable): Add declaration.
10948 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10949 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10950 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10951 * xcoffread.c (_initialize_xcoffread): Add declaration.
10952 * xml-support.c (_initialize_xml_support): Add declaration.
10953 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10954 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10955 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10956 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10957
e2de1eec
SM
109582020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10959
10960 * regformats/regdat.sh: Generate declaration for init function.
10961
e0037b4c
SM
109622020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10963
10964 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10965 up.
10966 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10967 close_one_inferior>: New methods.
10968 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10969 pass down target to find_inferior_pid.
10970 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10971 Pass down target to find_inferior_ptid.
10972 (gdbsim_target::create_inferior): Pass down target to
10973 add_thread_silent.
10974 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10975 target down to find_inferior_ptid and switch_to_thread.
10976 (gdbsim_target::close): Update to call close_one_inferior.
10977 (struct resume_data): Remove.
10978 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10979 directly, rather than through a void pointer.
10980 (gdbsim_target::resume): Update to call resume_one_inferior.
10981
58920b5b
SM
109822020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10983
10984 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10985
4ec89149
PA
109862020-01-12 Pedro Alves <palves@redhat.com>
10987
10988 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10989 directly for the current inferior instead of
10990 discard_all_inferiors.
10991 (discard_all_inferiors): Delete.
10992
7c392d1d
TT
109932020-01-11 Tom Tromey <tom@tromey.com>
10994
10995 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10996 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10997 deprecated_safe_get_selected_frame.
10998
d9ebdab7
TBA
109992020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11000
11001 * inferior.c (print_inferior): Switch inferior before printing it.
11002
f3c469b9
PA
110032020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11004 Pedro Alves <palves@redhat.com>
11005
11006 * progspace-and-thread.c (switch_to_program_space_and_thread):
11007 Assert there's an inferior for PSPACE. Use
11008 switch_to_inferior_no_thread to switch the inferior too.
11009 * progspace.c (program_space::~program_space): Call
11010 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11011 (program_space::free_all_objfiles): Don't call clear_symtab_users
11012 here.
11013 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11014
65c574f6
PA
110152020-01-10 Pedro Alves <palves@redhat.com>
11016
11017 * NEWS: Mention multi-target debugging, "info connections", and
11018 "add-inferior -no-connection".
11019
2f4fcf00
PA
110202020-01-10 Pedro Alves <palves@redhat.com>
11021
11022 * infrun.c: Include "target-connection.h".
11023 (check_multi_target_resumption): New.
11024 (proceed): Call it.
11025 * target-connection.c (make_target_connection_string): Make
11026 extern.
11027 * target-connection.h (make_target_connection_string): Declare.
11028
121b3efd
PA
110292020-01-10 Pedro Alves <palves@redhat.com>
11030
11031 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11032 * inferior.c (uiout_field_connection): New function.
11033 (print_inferior): Add new "connection-id" column.
11034 (add_inferior_command): Show connection number/string of added
11035 inferior.
11036 * process-stratum-target.h
11037 (process_stratum_target::connection_string): New virtual method.
11038 (process_stratum_target::connection_number): New field.
11039 * remote.c (remote_target::connection_string): New override.
11040 * target-connection.c: New file.
11041 * target-connection.h: New file.
11042 * target.c (decref_target): Remove process_stratum targets from
11043 the connection list.
11044 (target_stack::push): Add process_stratum targets to the
11045 connection list.
11046
4f837581
PA
110472020-01-10 Pedro Alves <palves@redhat.com>
11048
11049 Revert:
11050 2016-04-12 Pedro Alves <palves@redhat.com>
11051 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11052 Remove references to name.
11053 * serial.h (struct serial) <name>: Delete.
11054
f4ec508e
PA
110552020-01-10 Pedro Alves <palves@redhat.com>
11056
11057 * gdbarch-selftests.c (register_to_value_test): Remove "target
11058 already pushed" check.
11059
5b6d1e4f
PA
110602020-01-10 Pedro Alves <palves@redhat.com>
11061 John Baldwin <jhb@FreeBSD.org>
11062
11063 * aarch64-linux-nat.c
11064 (aarch64_linux_nat_target::thread_architecture): Adjust.
11065 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11066 (task_command_1): Likewise.
11067 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11068 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11069 (aix_thread_target::store_registers)
11070 (aix_thread_target::thread_alive): Adjust.
11071 * amd64-fbsd-tdep.c: Include "inferior.h".
11072 (amd64fbsd_get_thread_local_address): Pass down target.
11073 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11074 thread's gdbarch instead of target_gdbarch.
11075 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11076 get_last_target_status.
11077 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11078 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11079 inferiors.
11080 (update_inserted_breakpoint_locations): Skip if inferiors with no
11081 execution.
11082 (update_global_location_list): When handling moribund locations,
11083 find representative inferior for location's pspace, and use thread
11084 count of its process_stratum target.
11085 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11086 * bsd-uthread.c (bsd_uthread_target::wait): Use
11087 as_process_stratum_target and adjust thread_change_ptid and
11088 add_thread calls.
11089 (bsd_uthread_target::update_thread_list): Use
11090 as_process_stratum_target and adjust find_thread_ptid,
11091 thread_change_ptid and add_thread calls.
11092 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11093 find_thread_ptid call.
11094 * corelow.c (add_to_thread_list): Adjust add_thread call.
11095 (core_target_open): Adjust add_thread_silent and thread_count
11096 calls.
11097 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11098 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11099 * event-top.c (async_disconnect): Pop targets from all inferiors.
11100 * exec.c (add_target_sections): Push exec target on all inferiors
11101 sharing the program space.
11102 (remove_target_sections): Remove the exec target from all
11103 inferiors sharing the program space.
11104 (exec_on_vfork): New.
11105 * exec.h (exec_on_vfork): Declare.
11106 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11107 Pass it down.
11108 (fbsd_nat_target::update_thread_list): Adjust.
11109 (fbsd_nat_target::resume): Adjust.
11110 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11111 down.
11112 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11113 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11114 get_thread_arch_regcache call.
11115 * fork-child.c (gdb_startup_inferior): Pass target down to
11116 startup_inferior and set_executing.
11117 * gdbthread.h (struct process_stratum_target): Forward declare.
11118 (add_thread, add_thread_silent, add_thread_with_info)
11119 (in_thread_list): Add process_stratum_target parameter.
11120 (find_thread_ptid(inferior*, ptid_t)): New overload.
11121 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11122 parameter.
11123 (all_threads()): Delete overload.
11124 (all_threads, all_non_exited_threads): Add process_stratum_target
11125 parameter.
11126 (all_threads_safe): Use brace initialization.
11127 (thread_count): Add process_stratum_target parameter.
11128 (set_resumed, set_running, set_stop_requested, set_executing)
11129 (threads_are_executing, finish_thread_state): Add
11130 process_stratum_target parameter.
11131 (switch_to_thread): Use is_current_thread.
11132 * i386-fbsd-tdep.c: Include "inferior.h".
11133 (i386fbsd_get_thread_local_address): Pass down target.
11134 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11135 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11136 have_inferiors check.
11137 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11138 (inf_ptrace_target::attach): Adjust.
11139 * infcall.c (run_inferior_call): Adjust.
11140 * infcmd.c (run_command_1): Pass target to
11141 scoped_finish_thread_state.
11142 (proceed_thread_callback): Skip inferiors with no execution.
11143 (continue_command): Rename 'all_threads' local to avoid hiding
11144 'all_threads' function. Adjust get_last_target_status call.
11145 (prepare_one_step): Adjust set_running call.
11146 (signal_command): Use user_visible_resume_target. Compare thread
11147 pointers instead of inferior_ptid.
11148 (info_program_command): Adjust to pass down target.
11149 (attach_command): Mark target's 'thread_executing' flag.
11150 (stop_current_target_threads_ns): New, factored out from ...
11151 (interrupt_target_1): ... this. Switch inferior before making
11152 target calls.
11153 * inferior-iter.h
11154 (struct all_inferiors_iterator, struct all_inferiors_range)
11155 (struct all_inferiors_safe_range)
11156 (struct all_non_exited_inferiors_range): Filter on
11157 process_stratum_target too. Remove explicit.
11158 * inferior.c (inferior::inferior): Push dummy target on target
11159 stack.
11160 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11161 Add process_stratum_target parameter, and pass it down.
11162 (have_live_inferiors): Adjust.
11163 (switch_to_inferior_and_push_target): New.
11164 (add_inferior_command, clone_inferior_command): Handle
11165 "-no-connection" parameter. Use
11166 switch_to_inferior_and_push_target.
11167 (_initialize_inferior): Mention "-no-connection" option in
11168 the help of "add-inferior" and "clone-inferior" commands.
11169 * inferior.h: Include "process-stratum-target.h".
11170 (interrupt_target_1): Use bool.
11171 (struct inferior) <push_target, unpush_target, target_is_pushed,
11172 find_target_beneath, top_target, process_target, target_at,
11173 m_stack>: New.
11174 (discard_all_inferiors): Delete.
11175 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11176 (all_inferiors, all_non_exited_inferiors): Add
11177 process_stratum_target parameter.
11178 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11179 (target_last_proc_target): New global.
11180 (follow_fork_inferior): Push target on new inferior. Pass target
11181 to add_thread_silent. Call exec_on_vfork. Handle target's
11182 reference count.
11183 (follow_fork): Adjust get_last_target_status call. Also consider
11184 target.
11185 (follow_exec): Push target on new inferior.
11186 (struct execution_control_state) <target>: New field.
11187 (user_visible_resume_target): New.
11188 (do_target_resume): Call target_async.
11189 (resume_1): Set target's threads_executing flag. Consider resume
11190 target.
11191 (commit_resume_all_targets): New.
11192 (proceed): Also consider resume target. Skip threads of inferiors
11193 with no execution. Commit resumtion in all targets.
11194 (start_remote): Pass current inferior to wait_for_inferior.
11195 (infrun_thread_stop_requested): Consider target as well. Pass
11196 thread_info pointer to clear_inline_frame_state instead of ptid.
11197 (infrun_thread_thread_exit): Consider target as well.
11198 (random_pending_event_thread): New inferior parameter. Use it.
11199 (do_target_wait): Rename to ...
11200 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11201 down.
11202 (threads_are_resumed_pending_p, do_target_wait): New.
11203 (prepare_for_detach): Adjust calls.
11204 (wait_for_inferior): New inferior parameter. Handle it. Use
11205 do_target_wait_1 instead of do_target_wait.
11206 (fetch_inferior_event): Adjust. Switch to representative
11207 inferior. Pass target down.
11208 (set_last_target_status): Add process_stratum_target parameter.
11209 Save target in global.
11210 (get_last_target_status): Add process_stratum_target parameter and
11211 handle it.
11212 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11213 (context_switch): Check inferior_ptid == null_ptid before calling
11214 inferior_thread().
11215 (get_inferior_stop_soon): Pass down target.
11216 (wait_one): Rename to ...
11217 (poll_one_curr_target): ... this.
11218 (struct wait_one_event): New.
11219 (wait_one): New.
11220 (stop_all_threads): Adjust.
11221 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11222 event's target.
11223 (switch_back_to_stepped_thread): Also consider target.
11224 (print_stop_event): Update.
11225 (normal_stop): Update. Also consider the resume target.
11226 * infrun.h (wait_for_inferior): Remove declaration.
11227 (user_visible_resume_target): New declaration.
11228 (get_last_target_status, set_last_target_status): New
11229 process_stratum_target parameter.
11230 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11231 process_stratum_target parameter, and use it.
11232 (clear_inline_frame_state (thread_info*)): New.
11233 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11234 process_stratum_target parameter.
11235 (clear_inline_frame_state (thread_info*)): Declare.
11236 * linux-fork.c (delete_checkpoint_command): Pass target down to
11237 find_thread_ptid.
11238 (checkpoint_command): Adjust.
11239 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11240 instead of just tweaking inferior_ptid.
11241 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11242 (exit_lwp): Pass target down to find_thread_ptid.
11243 (attach_proc_task_lwp_callback): Pass target down to
11244 add_thread/set_running/set_executing.
11245 (linux_nat_target::attach): Pass target down to
11246 thread_change_ptid.
11247 (get_detach_signal): Pass target down to find_thread_ptid.
11248 Consider last target status's target.
11249 (linux_resume_one_lwp_throw, resume_lwp)
11250 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11251 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11252 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11253 (linux_nat_target::async_wait_fd): New.
11254 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11255 target down.
11256 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11257 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11258 * linux-thread-db.c (struct thread_db_info::process_target): New
11259 field.
11260 (add_thread_db_info): Save target.
11261 (get_thread_db_info): New process_stratum_target parameter. Also
11262 match target.
11263 (delete_thread_db_info): New process_stratum_target parameter.
11264 Also match target.
11265 (thread_from_lwp): Adjust to pass down target.
11266 (thread_db_notice_clone): Pass down target.
11267 (check_thread_db_callback): Pass down target.
11268 (try_thread_db_load_1): Always push the thread_db target.
11269 (try_thread_db_load, record_thread): Pass target down.
11270 (thread_db_target::detach): Pass target down. Always unpush the
11271 thread_db target.
11272 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11273 target down. Always unpush the thread_db target.
11274 (find_new_threads_callback, thread_db_find_new_threads_2)
11275 (thread_db_target::update_thread_list): Pass target down.
11276 (thread_db_target::pid_to_str): Pass current inferior down.
11277 (thread_db_target::get_thread_local_address): Pass target down.
11278 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11279 target down.
11280 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11281 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11282 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11283 (procfs_init_inferior): Rename to ...
11284 (procfs_target::procfs_init_inferior): ... this and adjust.
11285 (procfs_target::create_inferior, procfs_notice_thread)
11286 (procfs_do_thread_registers): Adjust.
11287 * ppc-fbsd-tdep.c: Include "inferior.h".
11288 (ppcfbsd_get_thread_local_address): Pass down target.
11289 * proc-service.c (ps_xfer_memory): Switch current inferior and
11290 program space as well.
11291 (get_ps_regcache): Pass target down.
11292 * process-stratum-target.c
11293 (process_stratum_target::thread_address_space)
11294 (process_stratum_target::thread_architecture): Pass target down.
11295 * process-stratum-target.h
11296 (process_stratum_target::threads_executing): New field.
11297 (as_process_stratum_target): New.
11298 * ravenscar-thread.c
11299 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11300 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11301 down.
11302 * record-btrace.c (record_btrace_target::info_record): Adjust.
11303 (record_btrace_target::record_method)
11304 (record_btrace_target::record_is_replaying)
11305 (record_btrace_target::fetch_registers)
11306 (get_thread_current_frame_id, record_btrace_target::resume)
11307 (record_btrace_target::wait, record_btrace_target::stop): Pass
11308 target down.
11309 * record-full.c (record_full_wait_1): Switch to event thread.
11310 Pass target down.
11311 * regcache.c (regcache::regcache)
11312 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11313 process_stratum_target parameter and handle it.
11314 (current_thread_target): New global.
11315 (get_thread_regcache): Add process_stratum_target parameter and
11316 handle it. Switch inferior before calling target method.
11317 (get_thread_regcache): Pass target down.
11318 (get_thread_regcache_for_ptid): Pass target down.
11319 (registers_changed_ptid): Add process_stratum_target parameter and
11320 handle it.
11321 (registers_changed_thread, registers_changed): Pass target down.
11322 (test_get_thread_arch_aspace_regcache): New.
11323 (current_regcache_test): Define a couple local test_target_ops
11324 instances and use them for testing.
11325 (readwrite_regcache): Pass process_stratum_target parameter.
11326 (cooked_read_test, cooked_write_test): Pass mock_target down.
11327 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11328 (get_thread_arch_aspace_regcache): Add process_stratum_target
11329 parameter.
11330 (regcache::target): New method.
11331 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11332 (regcache::registers_changed_ptid): Add process_stratum_target
11333 parameter.
11334 (regcache::m_target): New field.
11335 (registers_changed_ptid): Add process_stratum_target parameter.
11336 * remote.c (remote_state::supports_vCont_probed): New field.
11337 (remote_target::async_wait_fd): New method.
11338 (remote_unpush_and_throw): Add remote_target parameter.
11339 (get_current_remote_target): Adjust.
11340 (remote_target::remote_add_inferior): Push target.
11341 (remote_target::remote_add_thread)
11342 (remote_target::remote_notice_new_inferior)
11343 (get_remote_thread_info): Pass target down.
11344 (remote_target::update_thread_list): Skip threads of inferiors
11345 bound to other targets. (remote_target::close): Don't discard
11346 inferiors. (remote_target::add_current_inferior_and_thread)
11347 (remote_target::process_initial_stop_replies)
11348 (remote_target::start_remote)
11349 (remote_target::remote_serial_quit_handler): Pass down target.
11350 (remote_target::remote_unpush_target): New remote_target
11351 parameter. Unpush the target from all inferiors.
11352 (remote_target::remote_unpush_and_throw): New remote_target
11353 parameter. Pass it down.
11354 (remote_target::open_1): Check whether the current inferior has
11355 execution instead of checking whether any inferior is live. Pass
11356 target down.
11357 (remote_target::remote_detach_1): Pass down target. Use
11358 remote_unpush_target.
11359 (extended_remote_target::attach): Pass down target.
11360 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11361 (remote_target::append_resumption): Pass down target.
11362 (remote_target::append_pending_thread_resumptions)
11363 (remote_target::remote_resume_with_hc, remote_target::resume)
11364 (remote_target::commit_resume): Pass down target.
11365 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11366 (remote_target::interrupt_query)
11367 (remote_target::remove_new_fork_children)
11368 (remote_target::check_pending_events_prevent_wildcard_vcont)
11369 (remote_target::remote_parse_stop_reply)
11370 (remote_target::process_stop_reply): Pass down target.
11371 (first_remote_resumed_thread): New remote_target parameter. Pass
11372 it down.
11373 (remote_target::wait_as): Pass down target.
11374 (unpush_and_perror): New remote_target parameter. Pass it down.
11375 (remote_target::readchar, remote_target::remote_serial_write)
11376 (remote_target::getpkt_or_notif_sane_1)
11377 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11378 down target.
11379 (remote_target::mourn_inferior): Pass down target. Use
11380 remote_unpush_target.
11381 (remote_target::core_of_thread)
11382 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11383 (remote_target::pid_to_exec_file)
11384 (remote_target::thread_handle_to_thread_info): Pass down target.
11385 (remote_target::async_wait_fd): New.
11386 * riscv-fbsd-tdep.c: Include "inferior.h".
11387 (riscv_fbsd_get_thread_local_address): Pass down target.
11388 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11389 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11390 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11391 Adjust.
11392 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11393 * solib-svr4.c (enable_break): Pass down target.
11394 * spu-multiarch.c (parse_spufs_run): Pass down target.
11395 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11396 * target-delegates.c: Regenerate.
11397 * target.c (g_target_stack): Delete.
11398 (current_top_target): Return the current inferior's top target.
11399 (target_has_execution_1): Refer to the passed-in inferior's top
11400 target.
11401 (target_supports_terminal_ours): Check whether the initial
11402 inferior was already created.
11403 (decref_target): New.
11404 (target_stack::push): Incref/decref the target.
11405 (push_target, push_target, unpush_target): Adjust.
11406 (target_stack::unpush): Defref target.
11407 (target_is_pushed): Return bool. Adjust to refer to the current
11408 inferior's target stack.
11409 (dispose_inferior): Delete, and inline parts ...
11410 (target_preopen): ... here. Only dispose of the current inferior.
11411 (target_detach): Hold strong target reference while detaching.
11412 Pass target down.
11413 (target_thread_name): Add assertion.
11414 (target_resume): Pass down target.
11415 (target_ops::beneath, find_target_at): Adjust to refer to the
11416 current inferior's target stack.
11417 (get_dummy_target): New.
11418 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11419 has a thread running.
11420 (initialize_targets): Rename to ...
11421 (_initialize_target): ... this.
11422 * target.h: Include "gdbsupport/refcounted-object.h".
11423 (struct target_ops): Inherit refcounted_object.
11424 (target_ops::shortname, target_ops::longname): Make const.
11425 (target_ops::async_wait_fd): New method.
11426 (decref_target): Declare.
11427 (struct target_ops_ref_policy): New.
11428 (target_ops_ref): New typedef.
11429 (get_dummy_target): Declare function.
11430 (target_is_pushed): Return bool.
11431 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11432 (all_matching_threads_iterator::all_matching_threads_iterator):
11433 Handle filter target.
11434 * thread-iter.h (struct all_matching_threads_iterator, struct
11435 all_matching_threads_range, class all_non_exited_threads_range):
11436 Filter by target too. Remove explicit.
11437 * thread.c (threads_executing): Delete.
11438 (inferior_thread): Pass down current inferior.
11439 (clear_thread_inferior_resources): Pass down thread pointer
11440 instead of ptid_t.
11441 (add_thread_silent, add_thread_with_info, add_thread): Add
11442 process_stratum_target parameter. Use it for thread and inferior
11443 searches.
11444 (is_current_thread): New.
11445 (thread_info::deletable): Use it.
11446 (find_thread_ptid, thread_count, in_thread_list)
11447 (thread_change_ptid, set_resumed, set_running): New
11448 process_stratum_target parameter. Pass it down.
11449 (set_executing): New process_stratum_target parameter. Pass it
11450 down. Adjust reference to 'threads_executing'.
11451 (threads_are_executing): New process_stratum_target parameter.
11452 Adjust reference to 'threads_executing'.
11453 (set_stop_requested, finish_thread_state): New
11454 process_stratum_target parameter. Pass it down.
11455 (switch_to_thread): Also match inferior.
11456 (switch_to_thread): New process_stratum_target parameter. Pass it
11457 down.
11458 (update_threads_executing): Reimplement.
11459 * top.c (quit_force): Pop targets from all inferior.
11460 (gdb_init): Don't call initialize_targets.
11461 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11462 Declare.
11463 (windows_add_thread, windows_delete_thread): Adjust.
11464 (get_windows_debug_event): Rename to ...
11465 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11466 * tracefile-tfile.c (tfile_target_open): Pass down target.
11467 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11468 Forward declare.
11469 (switch_to_thread): Add process_stratum_target parameter.
11470 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11471 parameter. Use it.
11472 (mi_on_resume): Pass target down.
11473 * nat/fork-inferior.c (startup_inferior): Add
11474 process_stratum_target parameter. Pass it down.
11475 * nat/fork-inferior.h (startup_inferior): Add
11476 process_stratum_target parameter.
11477 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11478
75c6c844
PA
114792020-01-10 Pedro Alves <palves@redhat.com>
11480
11481 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11482 directly. Instead find the first thread in the thread list and
11483 use switch_to_thread.
11484
78f2c40a
PA
114852020-01-10 Pedro Alves <palves@redhat.com>
11486
11487 * remote.c (remote_target::remote_add_inferior): Don't bind a
11488 process to the current inferior if the current inferior is already
11489 bound to a process.
11490
e7af6c70
TBA
114912020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11492 Pedro Alves <palves@redhat.com>
11493
11494 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11495 If no process is specified, return null_ptid instead of
11496 inferior_ptid.
11497 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11498 TARGET_WAITKIND_SIGNALLED with no pid.
11499
31ba933e
PA
115002020-01-10 Pedro Alves <palves@redhat.com>
11501
11502 * remote.c (first_remote_resumed_thread): New.
11503 (remote_target::wait_as): Use it as default event_ptid instead of
11504 inferior_ptid.
11505
735fc2ca
PA
115062020-01-10 Pedro Alves <palves@redhat.com>
11507
11508 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11509
c17e02e1
PA
115102020-01-10 Pedro Alves <palves@redhat.com>
11511
11512 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11513 not -1.
11514
ab1ddbcf
PA
115152020-01-10 Pedro Alves <palves@redhat.com>
11516
11517 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11518 ptid to get_last_target_status.
11519 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11520 ptid to get_last_target_status.
11521 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11522 get_last_target_status.
11523 (info_program_command): Don't pass a target_waitstatus to
11524 get_last_target_status.
11525 * infrun.c (init_wait_for_inferior): Use
11526 nullify_last_target_wait_ptid.
11527 (get_last_target_status): Handle nullptr arguments.
11528 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11529 (print_stop_event): Don't pass a ptid to get_last_target_status.
11530 (normal_stop): Don't pass a ptid to get_last_target_status.
11531 * infrun.h (get_last_target_status, set_last_target_status): Move
11532 comments here and update.
11533 (nullify_last_target_wait_ptid): Declare.
11534 * linux-fork.c (fork_load_infrun_state): Remove local extern
11535 declaration of nullify_last_target_wait_ptid.
11536 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11537 to get_last_target_status.
11538
f3f8ece4
PA
115392020-01-10 Pedro Alves <palves@redhat.com>
11540
11541 * gdbthread.h (scoped_restore_current_thread)
11542 <dont_restore, restore, m_dont_restore>: Declare.
11543 * thread.c (thread_alive): Add assertion. Return bool.
11544 (switch_to_thread_if_alive): New.
11545 (prune_threads): Switch inferior/thread.
11546 (print_thread_info_1): Switch thread before calling target methods.
11547 (scoped_restore_current_thread::restore): New, factored out from
11548 ...
11549 (scoped_restore_current_thread::~scoped_restore_current_thread):
11550 ... this.
11551 (scoped_restore_current_thread::scoped_restore_current_thread):
11552 Add assertion.
11553 (thread_apply_all_command, thread_select): Use
11554 switch_to_thread_if_alive.
11555 * infrun.c (proceed, restart_threads, handle_signal_stop)
11556 (switch_back_to_stepped_thread): Switch current thread before
11557 calling target methods.
11558
db2d40f7
PA
115592020-01-10 Pedro Alves <palves@redhat.com>
11560
11561 * inferior.c (switch_to_inferior_no_thread): New function,
11562 factored out from ...
11563 (inferior_command): ... here.
11564 * inferior.h (switch_to_inferior_no_thread): Declare.
11565 * mi/mi-main.c (run_one_inferior): Use
11566 switch_to_inferior_no_thread.
11567
bd420a2d
PA
115682020-01-10 Pedro Alves <palves@redhat.com>
11569
11570 * infcmd.c (kill_command): Remove dead code.
11571
ddf5db90
PA
115722020-01-10 Pedro Alves <palves@redhat.com>
11573
11574 * remote.c (remote_target::mourn_inferior): No longer check
11575 whether the target is running.
11576
5018ce90
PA
115772020-01-10 Pedro Alves <palves@redhat.com>
11578
11579 * corelow.c (core_target::has_execution): Change parameter type to
11580 inferior pointer.
11581 * inferior.c (number_of_live_inferiors): Use
11582 inferior::has_execution instead of target_has_execution_1.
11583 * inferior.h (inferior::has_execution): New.
11584 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11585 inferior::has_execution instead of target_has_execution_1.
11586 * process-stratum-target.c
11587 (process_stratum_target::has_execution): Change parameter type to
11588 inferior pointer. Check the inferior's PID instead of
11589 inferior_ptid.
11590 * process-stratum-target.h
11591 (process_stratum_target::has_execution): Change parameter type to
11592 inferior pointer.
11593 * record-full.c (record_full_core_target::has_execution): Change
11594 parameter type to inferior pointer.
11595 * target.c (target_has_execution_1): Change parameter type to
11596 inferior pointer.
11597 (target_has_execution_current): Adjust.
11598 * target.h (target_ops::has_execution): Change parameter type to
11599 inferior pointer.
11600 (target_has_execution_1): Change parameter type to inferior
11601 pointer. Change return type to bool.
11602 * tracefile.h (tracefile_target::has_execution): Change parameter
11603 type to inferior pointer.
11604
74375d18
PA
116052020-01-10 Pedro Alves <palves@redhat.com>
11606
11607 * exceptions.c (print_flush): Remove current_top_target() check.
11608
acdf84a6
PA
116092020-01-10 Pedro Alves <palves@redhat.com>
11610
11611 * remote.c (show_remote_exec_file): Show the current inferior's
11612 exec-file instead of the command variable's value.
11613
ec506636
PA
116142020-01-10 Pedro Alves <palves@redhat.com>
11615
11616 * record-full.c (record_full_resume_ptid): New global.
11617 (record_full_target::resume): Set it.
11618 (record_full_wait_1): Use record_full_resume_ptid instead of
11619 inferior_ptid.
11620
873657b9
PA
116212020-01-10 Pedro Alves <palves@redhat.com>
11622
11623 * gdbthread.h (scoped_restore_current_thread)
11624 <dont_restore, restore, m_dont_restore>: Declare.
11625 * thread.c (thread_alive): Add assertion. Return bool.
11626 (switch_to_thread_if_alive): New.
11627 (prune_threads): Switch inferior/thread.
11628 (print_thread_info_1): Switch thread before calling target methods.
11629 (scoped_restore_current_thread::restore): New, factored out from
11630 ...
11631 (scoped_restore_current_thread::~scoped_restore_current_thread):
11632 ... this.
11633 (scoped_restore_current_thread::scoped_restore_current_thread):
11634 Add assertion.
11635 (thread_apply_all_command, thread_select): Use
11636 switch_to_thread_if_alive.
11637
7f0ae84c
GB
116382020-01-10 George Barrett <bob@bob131.so>
11639
11640 * stap-probe.c (stap_modify_semaphore): Don't check for null
11641 semaphores.
11642 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11643 for null semaphores.
11644
f5a7c406
AB
116452020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11646
11647 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11648 all source windows, and maintain horizontal scroll status while
11649 doing so.
11650
9ae6bf64
TT
116512020-01-09 Tom Tromey <tom@tromey.com>
11652
11653 PR tui/18932:
11654 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11655 update_source_window, not print_source_lines.
11656
b2efe70c
AB
116572020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11658
11659 * tui/tui.c (tui_enable): Register tui hooks after calling
11660 tui_display_main.
11661
5f23a082
CB
116622020-01-09 Christian Biesinger <cbiesinger@google.com>
11663
11664 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11665
3061113b
SM
116662020-01-08 Simon Marchi <simon.marchi@efficios.com>
11667
11668 * thread.c (print_thread_info_1): Fix indentation.
11669
57d75002
CB
116702020-01-09 Christian Biesinger <cbiesinger@google.com>
11671
11672 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11673 unique_xmalloc_ptr outside the if to always free the demangled name.
11674
6a053cb1
TT
116752020-01-08 Tom Tromey <tromey@adacore.com>
11676
11677 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11678 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11679 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11680 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11681 Remove.
11682 (section_offsets): New typedef.
11683 * symtab.c (fixup_section, get_msymbol_address): Update.
11684 * symmisc.c (dump_msymbols): Update.
11685 * symfile.h (relative_addr_info_to_section_offsets)
11686 (symfile_map_offsets_to_segments): Update.
11687 * symfile.c (build_section_addr_info_from_objfile)
11688 (init_objfile_sect_indices): Update.
11689 (struct place_section_arg): Change type of "offsets".
11690 (place_section): Update.
11691 (relative_addr_info_to_section_offsets): Change type of
11692 "section_offsets". Remove "num_sections" parameter.
11693 (default_symfile_offsets, syms_from_objfile_1)
11694 (set_objfile_default_section_offset): Update.
11695 (reread_symbols): No need to preserve section offsets by hand.
11696 (symfile_map_offsets_to_segments): Change type of "offsets".
11697 * stap-probe.c (relocate_address): Update.
11698 * stabsread.h (process_one_symbol): Update.
11699 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11700 (solib_target_relocate_section_addresses): Update.
11701 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11702 Update.
11703 * solib-frv.c (frv_relocate_main_executable): Update.
11704 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11705 * solib-aix.c (solib_aix_get_section_offsets): Change return
11706 type.
11707 (solib_aix_solib_create_inferior_hook): Update.
11708 * remote.c (remote_target::get_offsets): Update.
11709 * psymtab.c (find_pc_sect_psymtab): Update.
11710 * psympriv.h (struct partial_symbol) <address, text_low,
11711 text_high>: Update.
11712 * objfiles.h (obj_section_offset): Update.
11713 (struct objfile) <section_offsets>: Change type.
11714 <num_sections>: Remove.
11715 (objfile_relocate): Update.
11716 * objfiles.c (entry_point_address_query): Update
11717 (relocate_one_symbol): Change type of "section_offsets".
11718 (objfile_relocate1, objfile_relocate1): Change type of
11719 "new_offsets".
11720 (objfile_rebase1): Update.
11721 * mipsread.c (mipscoff_symfile_read): Update.
11722 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11723 parameter.
11724 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11725 (parse_external, psymtab_to_symtab_1): Update.
11726 * machoread.c (macho_symfile_offsets): Update.
11727 * ia64-tdep.c (ia64_find_unwind_table): Update.
11728 * hppa-tdep.c (read_unwind_info): Update.
11729 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11730 * dwarf2read.c (create_addrmap_from_index)
11731 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11732 (process_psymtab_comp_unit_reader, add_partial_symbol)
11733 (add_partial_subprogram, process_full_comp_unit)
11734 (read_file_scope, read_func_scope, read_lexical_block_scope)
11735 (read_call_site_scope, dwarf2_rnglists_process)
11736 (dwarf2_ranges_process, dwarf2_ranges_read)
11737 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11738 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11739 Update.
11740 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11741 Update.
11742 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11743 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11744 (process_one_symbol): Change type of "section_offsets".
11745 * ctfread.c (get_objfile_text_range): Update.
11746 * coffread.c (coff_symtab_read, enter_linenos)
11747 (process_coff_symbol): Update.
11748 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11749 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11750
456e800a
TT
117512020-01-08 Tom Tromey <tromey@adacore.com>
11752
11753 * dwarf2read.c (parse_macro_definition): Use std::string.
11754 (parse_macro_definition): Likewise.
11755
6dfa2fc2
TT
117562020-01-08 Tom Tromey <tromey@adacore.com>
11757
11758 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11759 (ATTR_ALLOC_CHUNK): Remove.
11760
421d1616
TT
117612020-01-08 Tom Tromey <tromey@adacore.com>
11762
11763 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11764
43816ebc
TT
117652020-01-08 Tom Tromey <tromey@adacore.com>
11766
11767 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11768 (dwarf2_compute_name, open_dwo_file): Likewise.
11769 (process_enumeration_scope): Use std::vector.
11770 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11771 (partial_die_info::fixup, dwarf2_start_subfile)
11772 (guess_full_die_structure_name, dwarf2_name): Likewise.
11773 (determine_prefix): Update.
11774 (guess_full_die_structure_name): Make return type const.
11775 (partial_die_full_name): Return unique_xmalloc_ptr.
11776 (DW_FIELD_ALLOC_CHUNK): Remove.
11777
4212d509
TT
117782020-01-07 Tom Tromey <tromey@adacore.com>
11779
11780 PR build/24937:
11781 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11782
06a6207a
JT
117832020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11784
11785 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11786
153d79c4
AB
117872020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11788
11789 * stack.c (print_frame_info): Move disassemble_next_line code
11790 inside source_print block.
11791
66182876
EZ
117922020-01-06 Eli Zaretskii <eliz@gnu.org>
11793
11794 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11795 gdb/signals.h, as we are now using native signal symbols.
11796
cbfa8581
SV
117972020-01-06 Shahab Vahedi <shahab@synopsys.com>
11798
11799 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11800 overflow by an early check of content vs threshold.
aac66a4c 11801 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11802 Likewise.
11803
3f602821
EZ
118042020-01-06 Eli Zaretskii <eliz@gnu.org>
11805
11806 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11807
a08c904d
JT
118082020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11809
11810 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11811 export table if no section contains it's RVA.
11812
89a65580
EZ
118132020-01-06 Eli Zaretskii <eliz@gnu.org>
11814
11815 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11816
8b7fcda2
HD
118172020-01-06 Hannes Domani <ssbssa@yahoo.de>
11818
11819 * source.c (print_source_lines_base): Set last_line_listed.
11820
a61b4f69
SV
118212020-01-06 Shahab Vahedi <shahab@synopsys.com>
11822
11823 * tui/tui-disasm.c: Remove trailing spaces.
11824
559e7e50
EZ
118252020-01-06 Eli Zaretskii <eliz@gnu.org>
11826 Pedro Alves <palves@redhat.com>
11827
11828 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11829 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11830 (windows_gdb_signal_to_target): New function, uses the above
11831 enumeration to convert GDB internal signal codes to equivalent
11832 Windows codes.
11833 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11834 * windows-nat.c: Include "gdb_wait.h".
11835 (get_windows_debug_event): Extract the fatal exception from the
11836 exit status and convert to the equivalent Posix signal number.
11837 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11838 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11839 * gdbsupport/gdb_wait.c: New file, implements
11840 windows_status_to_termsig.
11841 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11842 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11843
f2302a34
AB
118442020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11845
11846 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11847 show_layout.
11848
6a5206eb
LM
118492020-01-05 Luis Machado <luis.machado@linaro.org>
11850
11851 * aarch64-linux-nat.c
11852 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11853 and bfd_mach_aarch64.
11854
6ec1d75e
PW
118552020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11856
11857 * ui-file.c (stdio_file::can_emit_style_escape)
11858 (tee_file::can_emit_style_escape): Ensure style is used also on
11859 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11860 to gdb_stdout.
11861 * main.c (set_gdb_data_directory): Use file style to output the
11862 warning that the given pathname is not a directory.
11863 * top.c (show_history_filename, gdb_safe_append_history)
11864 (show_gdb_datadir): Use file style.
11865
44f81a76
HD
118662020-01-03 Hannes Domani <ssbssa@yahoo.de>
11867
11868 * solib-target.c (struct lm_info_target):
11869 Change offsets to be a unique_xmalloc_ptr.
11870 (solib_target_relocate_section_addresses): Update.
11871
25057eb0
HD
118722020-01-03 Hannes Domani <ssbssa@yahoo.de>
11873
11874 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11875
6e2118f5
BE
118762020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11877
11878 * MAINTAINERS (Write After Approval): Add myself.
11879
8133c7dc
LM
118802020-01-02 Luis Machado <luis.machado@linaro.org>
11881
11882 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11883 Cell BE architecture.
11884 * target.h (struct target_ops) <thread_architecture>: Likewise.
11885
48189bec
HD
118862020-01-01 Hannes Domani <ssbssa@yahoo.de>
11887
11888 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11889
ead1063b
HD
118902020-01-01 Hannes Domani <ssbssa@yahoo.de>
11891
11892 * MAINTAINERS (Write After Approval): Add myself.
11893
e5d78223
JB
118942020-01-01 Joel Brobecker <brobecker@adacore.com>
11895
11896 * gdbarch.sh: Update copyright year range of generated files.
11897
b811d2c2
JB
118982020-01-01 Joel Brobecker <brobecker@adacore.com>
11899
11900 Update copyright year range in all GDB files.
11901
5f4def5c
JB
119022020-01-01 Joel Brobecker <brobecker@adacore.com>
11903
11904 * copyright.py: Convert to Python 3.
11905
51fd4002
JB
119062020-01-01 Joel Brobecker <brobecker@adacore.com>
11907
11908 * copyright.py: Adapt after move of gnulib directory from gdb
11909 directory to toplevel directory.
11910
5fb651f2
JB
119112020-01-01 Joel Brobecker <brobecker@adacore.com>
11912
11913 * copyright.py (main): Exit if run from the wrong directory.
11914
5dd8bf88
JB
119152020-01-01 Joel Brobecker <brobecker@adacore.com>
11916
11917 * top.c (print_gdb_version): Change copyright year to 2020.
11918
9f71dacb 119192020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11920
9f71dacb 11921 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11922
9f71dacb 11923For older changes see ChangeLog-2019.
c906108c
SS
11924\f
11925Local Variables:
11926mode: change-log
11927left-margin: 8
11928fill-column: 74
11929version-control: never
57da7796 11930coding: utf-8
c906108c 11931End: