]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fetch registers from correct thread in ravenscar-thread.c
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
592f9bd7
TT
12020-08-07 Tom Tromey <tromey@adacore.com>
2
3 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4 update_inferior_ptid before update_thread_list.
5 (temporarily_change_regcache_ptid): New class.
6 (ravenscar_thread_target::fetch_registers)
7 (ravenscar_thread_target::store_registers)
8 (ravenscar_thread_target::prepare_to_store): Use base thread when
9 forwarding operation.
10
39e2018a
TT
112020-08-07 Tom Tromey <tromey@adacore.com>
12
13 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
14 "is_pid" case.
15
2080266b
TT
162020-08-07 Tom Tromey <tromey@adacore.com>
17
18 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
19 New methods.
20 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
21 first.
22 (ravenscar_thread_target::add_thread): Rename from
23 ravenscar_add_thread.
24 (ravenscar_thread_target::update_thread_list): Use a lambda.
25 (ravenscar_thread_target::xfer_partial): New method.
26
78c02f21
TT
272020-08-07 Tom Tromey <tromey@adacore.com>
28
29 * ada-lang.h (ada_task_list_iterator_ftype): Now a
30 gdb::function_view.
31 (iterate_over_live_ada_tasks): Change type of argument.
32 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
33 of argument.
34
d5d833af
TT
352020-08-07 Tom Tromey <tromey@adacore.com>
36
37 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
38 Remove.
39 (ravenscar_thread_target::extra_thread_info): Remove.
40 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
41 defer to target beneath for non-Ravenscar threads.
42
a8ac85bb
TT
432020-08-07 Tom Tromey <tromey@adacore.com>
44
45 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
46 get_base_thread_from_ravenscar_task>: Now methods.
47 <m_cpu_map>: New member.
48 (ravenscar_thread_target::get_thread_base_cpu): Rename from
49 ravenscar_get_thread_base_cpu. Check m_cpu_map.
50 (ravenscar_thread_target::task_is_currently_active): Update.
51 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
52 Now a method.
53 (ravenscar_thread_target::add_active_thread): Put initial thread
54 into the m_cpu_map.
55
550ab58d
TT
562020-08-07 Tom Tromey <tromey@adacore.com>
57
58 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
59 event_ptid.
60
e9546579
TT
612020-08-07 Tom Tromey <tromey@adacore.com>
62
63 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
64 runtime_initialized.
65
3d4470e5
TT
662020-08-07 Tom Tromey <tromey@adacore.com>
67
68 * ravenscar-thread.c (ravenscar_thread_target): Don't call
69 add_active_thread.
70 (ravenscar_thread_target::add_active_thread): Now public.
71 (ravenscar_inferior_created): Call add_active_thread after pushing
72 the target.
73
888bdb2b
SM
742020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
75
76 * regcache.c (ptid_regcache_map): New type.
77 (target_ptid_regcache_map): New type.
78 (regcaches): Change type to target_ptid_regcache_map.
79 (get_thread_arch_aspace_regcache): Update to regcaches' new
80 type.
81 (regcache_thread_ptid_changed): Likewise.
82 (registers_changed_ptid): Likewise.
83 (regcaches_size): Likewise.
84 (regcaches_test): Update.
85 (regcache_thread_ptid_changed): Update.
86 * regcache.h (regcache_up): New type.
87 * gdbsupport/ptid.h (hash_ptid): New struct.
88
b161a60d
SM
892020-08-07 Simon Marchi <simon.marchi@efficios.com>
90
91 * observable.h (thread_ptid_changed): Add parameter
92 `process_stratum_target *`.
93 * infrun.c (infrun_thread_ptid_changed): Add parameter
94 `process_stratum_target *` and use it.
95 (selftests): New namespace.
96 (infrun_thread_ptid_changed): New function.
97 (_initialize_infrun): Register selftest.
98 * regcache.c (regcache_thread_ptid_changed): Add parameter
99 `process_stratum_target *` and use it.
100 (regcache_thread_ptid_changed): New function.
101 (_initialize_regcache): Register selftest.
102 * thread.c (thread_change_ptid): Pass target to
103 thread_ptid_changed observable.
104
d2854d8d
CT
1052020-08-06 Caroline Tice <cmtice@google.com>
106
107 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
108 (struct dwp_sections): Update field comments. Add loclists and
109 rnglists fields.
110 (struct virtual_v2_dwo_sections): Rename struct to
111 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
112 size & offset fields for loclists and rnglists.
113 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
114 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
115 skipping dummy type units.
116 (create_dwp_hash_table): Update the large comment above the function to
117 discuss Version 5 DWP files as well, with references. Update all the
118 version checks in the function to check for version 5 as well. Add new
119 section at the end to create dwp hash table for version 5.
120 (create_dwp_v2_section): Rename function to
121 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
122 Add V5 to error message text.
123 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
124 into calls to create_dwp_v2_or_v5_section.
125 (create_dwo_unit_in_dwp_v5): New function.
126 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
127 check for version2; add else clause to handle version 5.
128 (open_and_init_dwo_file): Add code to check dwarf version & only call
129 create_debug_types_hash_table (with sections.types) if version is not 5;
130 else call create_debug_type_hash_table, with sections.info.
131 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
132 version 5.
133 (dwarf2_locate_v5_dwp_sections): New function.
134 (open_and_init_dwp_file): Add else-if clause for version 5 to call
135 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
136
159ed7d9
SM
1372020-08-06 Simon Marchi <simon.marchi@efficios.com>
138
139 * regcache.h (class regcache): Remove friend
140 registers_changed_ptid.
141 <regcache_thread_ptid_changed>: Remove.
142 <regcaches>: Remove.
143 * regcache.c (regcache::regcaches): Rename to...
144 (regcaches): ... this. Make static.
145 (get_thread_arch_aspace_regcache): Update.
146 (regcache::regcache_thread_ptid_changed): Rename to...
147 (regcache_thread_ptid_changed): ... this. Update.
148 (class regcache_access): Remove.
149 (regcaches_test): Update.
150 (_initialize_regcache): Update.
151 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
152 <forward_list>.
153
174981ae
SM
1542020-08-06 Simon Marchi <simon.marchi@efficios.com>
155
156 * regcache.h (class regcache) <current_regcache>: Rename to...
157 <regcaches>: ... this. Move doc here.
158 * regcache.c (regcache::current_regcache) Rename to...
159 (regcache::regcaches): ... this. Move doc to header.
160 (get_thread_arch_aspace_regcache): Update.
161 (regcache::regcache_thread_ptid_changed): Update.
162 (registers_changed_ptid): Update.
163 (class regcache_access) <current_regcache_size>: Rename to...
164 <regcaches_size>: ... this.
165 (current_regcache_test): Rename to...
166 (regcaches_test): ... this.
167 (_initialize_regcache): Update.
168
ed908db6
VC
1692020-08-06 Victor Collod <vcollod@nvidia.com>
170
171 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
172
b5582ab7
KB
1732020-08-05 Kevin Buettner <kevinb@redhat.com>
174
175 * corelow.c (core_target::build_file_mappings): Don't output
176 null pathname in warning.
177
ea946b86
SM
1782020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
179
180 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
181 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
182 gdb.dwarf2/dw2-single-line-discriminators.exp,
183 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
184
57d02173
TT
1852020-08-05 Tom Tromey <tromey@adacore.com>
186
187 PR rust/26197:
188 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
189 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
190 Fix off-by-one and type size errors in ordinary case.
191
5555c86d
TV
1922020-08-05 Tom de Vries <tdevries@suse.de>
193
194 * gdbtypes.c (type_not_allocated, type_not_associated): Use
195 "prop->const_val () == 0" instead of "prop->const_val () != 0".
196
97916bfe
SM
1972020-08-04 Simon Marchi <simon.marchi@efficios.com>
198
199 * frame.h (frame_id_p): Return bool.
200 (frame_id_artificial_p): Return bool.
201 (frame_id_eq): Return bool.
202 (has_stack_frames): Return bool.
203 (get_selected_frame): Fix typo in comment.
204 (get_frame_pc_if_available): Return bool.
205 (get_frame_address_in_block_if_available): Return bool.
206 (get_frame_func_if_available): Return bool.
207 (read_frame_register_unsigned): Return bool.
208 (get_frame_register_bytes): Return bool.
209 (safe_frame_unwind_memory): Return bool.
210 (deprecated_frame_register_read): Return bool.
211 (frame_unwinder_is): Return bool.
212 * frame.c (struct frame_info) <prev_arch::p>: Change type to
213 bool.
214 <this_id::p>: Likewise.
215 <prev_p>: Likewise.
216 (frame_stash_add): Return bool.
217 (get_frame_id): Use bool.
218 (frame_id_build_special) Use bool.
219 (frame_id_build_unavailable_stack): Use bool.
220 (frame_id_build): Use bool.
221 (frame_id_p): Return bool, use true/false instead of 1/0.
222 (frame_id_artificial_p): Likewise.
223 (frame_id_eq): Likewise.
224 (frame_id_inner): Likewise.
225 (get_frame_func_if_available): Likewise.
226 (read_frame_register_unsigned): Likewise.
227 (deprecated_frame_register_read): Likewise.
228 (get_frame_register_bytes): Likewise.
229 (has_stack_frames): Likewise.
230 (inside_main_func): Likewise.
231 (inside_entry_func): Likewise.
232 (get_frame_pc_if_available): Likewise.
233 (get_frame_address_in_block_if_available): Likewise.
234 (frame_unwinder_is): Likewise.
235 (safe_frame_unwind_memory): Likewise.
236 (frame_unwind_arch): Likewise.
237
fedfee88
SM
2382020-08-04 Simon Marchi <simon.marchi@efficios.com>
239
240 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
241 type to cached_copy_status.
242 (fprintf_frame): Adjust.
243 (get_frame_func_if_available): Adjust.
244 (frame_cleanup_after_sniffer): Adjust.
245
6cfa9b59
MW
2462020-08-04 Mark Wielaard <mark@klomp.org>
247
248 * MAINTAINERS (Write After Approval): Update email address.
249
66d6346b
SM
2502020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
251
252 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
253 dynamic_prop::const_val.
254
8a6d5e35
SM
2552020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
256
257 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
258 dynamic_prop::kind.
259
51d6067d
SM
2602020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
261
262 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
263
b26e2ae7
JM
2642020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
265
266 * configure.tgt: Set gdb_sim for bpf-*-* targets.
267
39791af2
JM
2682020-08-04 Weimin Pan <weimin.pan@oracle.com>
269 Jose E. Marchesi <jose.marchesi@oracle.com>
270
271 * configure.tgt: Add entry for bpf-*-*.
272 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
273 (ALLDEPFILES): Add bpf-tdep.c.
274 * bpf-tdep.c: New file.
275 * MAINTAINERS: Add bpf target and maintainer.
276 * NEWS: Mention the support for the new target.
277
521894aa
TV
2782020-08-04 Tom de Vries <tdevries@suse.de>
279
280 PR symtab/23270
281 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
282 Error.
283
5d6356e9
JB
2842020-08-03 John Baldwin <jhb@FreeBSD.org>
285
286 * syscalls/freebsd.xml: Regenerate.
287
0cf82b81
JB
2882020-08-03 John Baldwin <jhb@FreeBSD.org>
289
290 * syscalls/update-freebsd.sh: Fix usage and year range.
291
8f34b746
TV
2922020-08-03 Tom de Vries <tdevries@suse.de>
293
294 PR symtab/26333
295 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
296 DW_LNE_lo_user/DW_LNE_hi_user range.
297
5e500d33
SM
2982020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
299
300 PR ada/26318
301 * ada-lang.c (ada_modulus): Return 0 if property is not of const
302 kind.
303
78319c15
TBA
3042020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
305
306 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
307
4c55e970
TBA
3082020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
309
310 * breakpoint.c (set_breakpoint_condition): Update the condition
311 expressions after checking that the input condition string parses
312 successfully and does not contain junk at the end.
313
1e620590
TBA
3142020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
315
316 * breakpoint.c (set_breakpoint_condition): Update the
317 condition string after parsing the new condition successfully.
318
c8693053
RO
3192020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
320
321 * proc-api.c (_STRUCTURED_PROC): Don't define.
322 * proc-events.c: Likewise.
323 * proc-flags.c: Likewise.
324 * proc-why.c: Likewise.
325 * procfs.c: Likewise.
326
327 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
328 * configure, config.in: Regenerate.
329
5a99adb8
TV
3302020-07-30 Tom de Vries <tdevries@suse.de>
331
332 PR build/26320
333 * ui-style.h (struct ui_file_style::color): Wrap m_value and
334 m_red/m_green/m_blue in a union.
335
8ba83e91
TV
3362020-07-29 Tom de Vries <tdevries@suse.de>
337
338 PR tdep/26280
339 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
340
f75a0693
AB
3412020-07-28 Tom Tromey <tromey@adacore.com>
342
343 PR symtab/26270:
344 * symtab.h (find_pc_partial_function_sym): Declare.
345 * cli/cli-cmds.c (disassemble_command): Use
346 find_pc_partial_function_sym. Check asm_demangle.
347 * blockframe.c (cache_pc_function_sym): New global.
348 (cache_pc_function_name): Remove.
349 (clear_pc_function_cache): Update.
350 (find_pc_partial_function_sym): New function, from
351 find_pc_partial_function.
352 (find_pc_partial_function): Rewrite using
353 find_pc_partial_function_sym.
354
16f3242c
TT
3552020-07-28 Tom Tromey <tromey@adacore.com>
356
357 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
358 help. Add usage.
359
4888741a
TT
3602020-07-28 Tom Tromey <tromey@adacore.com>
361
362 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
363 <DW_OP_GNU_variable_value>: Cast to address type.
364
4d46f402
KR
3652020-07-28 Kamil Rytarowski <n54@gmx.com>
366
367 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
368 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
369 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
370 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
371 (nbsd_get_siginfo_type): New.
372 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
373 (_initialize_nbsd_tdep): New.
374
d70f978b
L
3752020-07-28 H.J. Lu <hongjiu.lu@intel.com>
376
377 PR binutils/26301
378 * configure: Regenerated.
379
377170fa
L
3802020-07-28 H.J. Lu <hongjiu.lu@intel.com>
381
382 PR binutils/26301
383 * configure: Regenerated.
384
43d5901d
AB
3852020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
386
387 * python/py-frame.c: Remove 'user-regs.h' include.
388 (frapy_read_register): Rewrite to make use of
389 gdbpy_parse_register_id.
390 * python/py-registers.c (gdbpy_parse_register_id): New function,
391 moved here from python/py-unwind.c. Updated the return type, and
392 also accepts register descriptor objects.
393 * python/py-unwind.c: Remove 'user-regs.h' include.
394 (pyuw_parse_register_id): Moved to python/py-registers.c.
395 (unwind_infopy_add_saved_register): Update to use
396 gdbpy_parse_register_id.
397 (pending_framepy_read_register): Likewise.
398 * python/python-internal.h (gdbpy_parse_register_id): Declare.
399
14fa8fb3
AB
4002020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
401
402 * python/py-registers.c: Add 'user-regs.h' include.
403 (register_descriptor_iter_find): New function.
404 (register_descriptor_iterator_object_methods): New static global
405 methods array.
406 (register_descriptor_iterator_object_type): Add pointer to methods
407 array.
408
ddce1758
JB
4092020-07-27 John Baldwin <jhb@FreeBSD.org>
410
411 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
412 for all architectures on FreeBSD 11.3 and later.
413
a4089f52
TT
4142020-07-27 Tom Tromey <tromey@adacore.com>
415
416 * gcore.h (load_corefile): Don't declare.
417
95420d30
TV
4182020-07-27 Tom de Vries <tdevries@suse.de>
419
420 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
421 * config.in: Regenerate.
422 * configure: Regenerate.
423
05a6b8c2
EZ
4242020-07-26 Eli Zaretskii <eliz@gnu.org>
425
426 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
427 ws2tcpip.h. When checking whether socklen_t type is defined, use
428 ws2tcpip.h if it is available and sys/socket.h isn't.
429 * configure: Regenerate.
430 * config.in: Regenerate.
431
e79eb02f
AB
4322020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
433
434 PR fortran/23051
435 PR fortran/26139
436 * valops.c (value_ind): Pass address to
437 readjust_indirect_value_type.
438 * value.c (readjust_indirect_value_type): Make parameter
439 non-const, and add extra address parameter. Resolve original type
440 before using it.
441 * value.h (readjust_indirect_value_type): Update function
442 signature and comment.
443
876518dd
TV
4442020-07-25 Tom de Vries <tdevries@suse.de>
445
446 PR symtab/26243
447 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
448 entries.
449
f6720b1c
AM
4502020-07-24 Aaron Merey <amerey@redhat.com>
451
452 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
453 * configure: Rebuild.
454
513487e1
KB
4552020-07-23 Kevin Buettner <kevinb@redhat.com>
456
457 PR corefiles/26294
458 * corelow.c (_initialize_corelow): Add period to help text
459 for "maintenance print core-file-backed-mappings".
460
e7bc9db8
PA
4612020-07-23 Pedro Alves <pedro@palves.net>
462
463 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
464 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
465 meanwhile.
466 * frame.c (frame_cache_generation, get_frame_cache_generation):
467 New.
468 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
469 (get_prev_frame_if_no_cycle): On exception, don't touch
470 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
471 * frame.h (get_frame_cache_generation): Declare.
472
90fcc466
TV
4732020-07-23 Tom de Vries <tdevries@suse.de>
474
475 PR tui/26282
476 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
477 New default constructor.
478
78344df7
AB
4792020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
480
481 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
482 exclude non-statement entries.
483
b089853a
KB
4842020-07-22 Kevin Buettner <kevinb@redhat.com>
485
486 * NEWS (New commands): Mention new command
487 "maintenance print core-file-backed-mappings".
488
09c2f5d4
KB
4892020-07-22 Kevin Buettner <kevinb@redhat.com>
490
491 * corelow.c (gdbcmd.h): Include.
492 (core_target::info_proc_mappings): New method.
493 (get_current_core_target): New function.
494 (maintenance_print_core_file_backed_mappings): New function.
495 (_initialize_corelow): Add core-file-backed-mappings to
496 "maint print" commands.
497
9c5ec5c2
KB
4982020-07-22 Kevin Buettner <kevinb@redhat.com>
499
500 * linux-tdep.c (dump_note_entry_p): New function.
501 (linux_dump_mapping_p_ftype): New typedef.
502 (linux_find_memory_regions_full): Add new parameter,
503 should_dump_mapping_p.
504 (linux_find_memory_regions): Adjust call to
505 linux_find_memory_regions_full.
506 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
507 call to linux_find_memory_regions_full.
508
db082f59
KB
5092020-07-22 Kevin Buettner <kevinb@redhat.com>
510
511 * corelow.c (solist.h, unordered_map): Include.
512 (class core_target): Add field m_core_file_mappings and
513 method build_file_mappings.
514 (core_target::core_target): Call build_file_mappings.
515 (core_target::~core_target): Free memory associated with
516 m_core_file_mappings.
517 (core_target::build_file_mappings): New method.
518 (core_target::xfer_partial): Use m_core_file_mappings
519 for memory transfers.
520 * linux-tdep.c (linux_read_core_file_mappings): New
521 function.
522 (linux_core_info_proc_mappings): Rewrite to use
523 linux_read_core_file_mappings.
524 (linux_init_abi): Register linux_read_core_file_mappings.
525
7e183d27
KB
5262020-07-22 Kevin Buettner <kevinb@redhat.com>
527
528 * arch-utils.c (default_read_core_file_mappings): New function.
529 * arch-utils.c (default_read_core_file_mappings): Declare.
530 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
531 * gdbarch.h, gdbarch.c: Regenerate.
532
2735d421
KB
5332020-07-22 Kevin Buettner <kevinb@redhat.com>
534
535 PR corefiles/25631
536 * corelow.c (core_target:xfer_partial): Revise
537 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
538 case after first checking the stratum beneath the core
539 target.
540 (has_all_memory): Return true.
541 * target.c (raw_memory_xfer_partial): Revise comment
542 regarding use of has_all_memory.
543
e56cb451
KB
5442020-07-22 Kevin Buettner <kevinb@redhat.com>
545
546 * exec.h (section_table_xfer_memory): Revise declaration,
547 replacing section name parameter with an optional callback
548 predicate.
549 * exec.c (section_table_xfer_memory): Likewise.
550 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
551 of section_table_xfer_memory.
552
32fa152e
TT
5532020-07-22 Tom Tromey <tromey@adacore.com>
554
555 * mi/mi-cmd-stack.c (list_args_or_locals): Use
556 lookup_symbol_search_name.
557
a67a1c41
AB
5582020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
559
560 * python/py-registers.c (gdbpy_register_object_data_init): Remove
561 redundant local variable.
562 (gdbpy_get_register_descriptor): Extract descriptor vector as a
563 reference, not pointer, update code accordingly.
564
a7b4ff4f
SM
5652020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
566 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
567
568 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
569 * jit.c (jit_breakpoint_re_set_internal): Use the
570 `skip_jit_symbol_lookup` field.
571
2340e834
SM
5722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
573 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
574
575 * jit.c (jit_read_descriptor): Define the descriptor address once,
576 use twice.
577 (jit_breakpoint_deleted): Move the declaration of the loop variable
578 `iter` into the loop header.
579 (jit_breakpoint_re_set_internal): Move the declaration of the local
580 variable `objf_data` to the first point of definition.
581 (jit_event_handler): Move the declaration of local variables
582 `code_entry`, `entry_addr`, and `objf` to their first point of use.
583 Rename `objf` to `jited`.
584
c1072906
SM
5852020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
586
587 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
588 Remove.
589 * jit.c (get_jiter_objfile_data): Update.
590
c8474dc3
TBA
5912020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
592 Simon Marchi <simon.marchi@polymtl.ca>
593
594 * jit.c (struct jit_program_space_data): Remove.
595 (jit_program_space_key): Remove.
596 (jiter_objfile_data::~jiter_objfile_data): Remove program space
597 stuff.
598 (get_jit_program_space_data): Remove.
599 (jit_breakpoint_deleted): Iterate on all of the program space's
600 objfiles.
601 (jit_inferior_init): Likewise.
602 (jit_breakpoint_re_set_internal): Likewise. Also change return
603 type to void.
604 (jit_breakpoint_re_set): Pass current_program_space to
605 jit_breakpoint_re_set_internal.
606
77208eb7
SM
6072020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
608
609 * jit.h (struct jiter_objfile_data) <cached_code_address,
610 jit_breakpoint>: Move to here from ...
611 * jit.c (jit_program_space_data): ... here.
612 (jiter_objfile_data::~jiter_objfile_data): Update.
613 (jit_breakpoint_deleted): Update.
614 (jit_breakpoint_re_set_internal): Update.
615
8c1c720f
SM
6162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
617
618 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
619 checks.
620 (jit_read_descriptor): Remove NULL check.
621 (jit_event_handler): Add an assertion.
622
0e74a041
SM
6232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
624
625 * jit.h (struct jit_objfile_data): Split into...
626 (struct jiter_objfile_data): ... this ...
627 (struct jited_objfile_data): ... and this.
628 * objfiles.h (struct objfile) <jit_data>: Remove.
629 <jiter_data, jited_data>: New fields.
630 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
631 (jiter_objfile_data::~jiter_objfile_data): ... this.
632 (get_jit_objfile_data): Rename to ...
633 (get_jiter_objfile_data): ... this.
634 (add_objfile_entry): Update.
635 (jit_read_descriptor): Use get_jiter_objfile_data.
636 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
637 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
638 (jit_inferior_exit_hook): Use objfile's jited_data field.
639
238b5c9f
SM
6402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
641
642 * jit.h: Forward-declare `struct minimal_symbol`.
643 (struct jit_objfile_data): Migrate to here from jit.c; also add a
644 constructor, destructor, and an objfile* field.
645 * jit.c (jit_objfile_data): Remove.
646 (struct jit_objfile_data): Migrate from here to jit.h.
647 (jit_objfile_data::~jit_objfile_data): New destructor
648 implementation with code moved from free_objfile_data.
649 (free_objfile_data): Delete.
650 (get_jit_objfile_data): Update to use the jit_data field of objfile.
651 (jit_find_objf_with_entry_addr): Ditto.
652 (jit_inferior_exit_hook): Ditto.
653 (_initialize_jit): Remove the call to
654 register_objfile_data_with_cleanup.
655 * objfiles.h (struct objfile) <jit_data>: New field.
656
fe053b9e
TBA
6572020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
658
659 * jit.h: Forward-declare `struct objfile`.
660 (jit_event_handler): Add a second parameter, the JITer objfile.
661 * jit.c (jit_read_descriptor): Change the signature to take the
662 JITer objfile as an argument instead of the jit_program_space_data.
663 (jit_inferior_init): Update the call to jit_read_descriptor.
664 (jit_event_handler): Use the new JITer objfile argument when calling
665 jit_read_descriptor.
666 * breakpoint.c (handle_jit_event): Update the call to
667 jit_event_handler to pass the JITer objfile.
668
4cec0c66
JB
6692020-07-21 John Baldwin <jhb@FreeBSD.org>
670
671 * gdbarch.c: Regenerate.
672 * gdbarch.h: Regenerate.
673 * gdbarch.sh (handle_segmentation_fault): Remove method.
674 * infrun.c (handle_segmentation_fault): Remove.
675 (print_signal_received_reason): Remove call to
676 handle_segmentation_fault.
677
0e42f66a
JB
6782020-07-21 John Baldwin <jhb@FreeBSD.org>
679
680 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
681 Rename to sparc64_linux_report_signal_info and add siggnal
682 argument.
683 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
684 instead of sparc64_linux_handle_segmentation_fault.
685
77bdfeb2
JB
6862020-07-21 John Baldwin <jhb@FreeBSD.org>
687
688 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
689 i386_linux_report_signal_info instead of
690 i386_linux_handle_segmentation_fault.
691 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
692 to i386_linux_report_signal_info and add siggnal argument.
693 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
694 of i386_linux_handle_segmentation_fault.
695 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
696 to i386_linux_report_signal_info and add siggnal argument.
697
ad97bfc5
JB
6982020-07-21 John Baldwin <jhb@FreeBSD.org>
699
700 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
701 hook if present.
702
272bb05c
JB
7032020-07-21 John Baldwin <jhb@FreeBSD.org>
704
705 * gdbarch.c: Regenerate.
706 * gdbarch.h: Regenerate.
707 * gdbarch.sh (report_signal_info): New method.
708 * infrun.c (print_signal_received_reason): Invoke gdbarch
709 report_signal_info hook if present.
710
baf8791e
AB
7112020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
712
713 * python/py-registers.c : Add 'unordered_map' include.
714 (gdbpy_new_reggroup): Renamed to...
715 (gdbpy_get_reggroup): ...this. Update to only create register
716 group descriptors when needed.
717 (gdbpy_reggroup_iter_next): Update.
718
f7306dac
AB
7192020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
720
721 * python/py-registers.c (gdbpy_register_object_data): New static
722 global.
723 (gdbpy_register_object_data_init): New function.
724 (gdbpy_new_register_descriptor): Renamed to...
725 (gdbpy_get_register_descriptor): ...this, and update to reuse
726 existing register descriptors where possible.
727 (gdbpy_register_descriptor_iter_next): Update.
728 (gdbpy_initialize_registers): Register new gdbarch data.
729
05c309a8
SM
7302020-07-21 Simon Marchi <simon.marchi@efficios.com>
731
732 * linux-nat.c (stopped_pids): Make static.
733
d1fd641e
SM
7342020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
735
736 PR ada/26235
737 * gdbtypes.c (ada_discrete_type_low_bound,
738 ada_discrete_type_high_bound): Handle undefined bounds.
739
1de14d77
KR
7402020-07-21 Kamil Rytarowski <n54@gmx.com>
741
742 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
743 declaration.
744 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
745 function.
746
ed810cc7
JB
7472020-07-20 John Baldwin <jhb@FreeBSD.org>
748
749 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
750 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
751 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
752 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
753 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
754 method.
755
ae5369e7
LC
7562020-07-20 Ludovic Courtès <ludo@gnu.org>
757
758 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
759 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
760 which are deprecated in Guile 3.0.
761 * configure.ac (try_guile_versions): Add "guile-3.0".
762 * configure (try_guile_versions): Regenerate.
763 * NEWS: Update entry.
764
68cf161c
LC
7652020-07-20 Ludovic Courtès <ludo@gnu.org>
766 Doug Evans <dje@google.com>
767
768 PR gdb/21104
769 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
770 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
771 USING_GUILE_BEFORE_2_2.
772 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
773 Change type to 'scm_t_port_type *'.
774 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
775 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
776 parameter and honor it. Update callers.
777 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
778 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
779 functions.
780 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
781 USING_GUILE_BEFORE_2_2.
782 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
783 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
784 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
785 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
786 and 'SCM_PORT_TYPE'.
787 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
788 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
789 (gdbscm_memory_port_read, gdbscm_memory_port_write)
790 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
791 [!USING_GUILE_BEFORE_2_2]: New functions.
792 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
793 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
794 'gdbscm_memory_port_read'.
795 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
796 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
797 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
798 function.
799 (ioscm_init_memory_port): Remove.
800 (ioscm_init_memory_port_stream): New function
801 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
802 function.
803 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
804 Return scm_from_uint (0).
805 (gdbscm_set_memory_port_read_buffer_size_x)
806 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
807 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
808 Return scm_from_uint (0).
809 (gdbscm_set_memory_port_write_buffer_size_x)
810 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
811 * configure.ac (try_guile_versions): Add "guile-2.2".
812 * configure: Regenerate.
813 * NEWS: Add entry.
814
aee91db3
TT
8152020-07-18 Tom Tromey <tom@tromey.com>
816
817 * linux-nat.c (linux_multi_process): Remove.
818 (linux_nat_target::supports_multi_process): Return true.
819
0e267416
AB
8202020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
821
822 * arch/riscv.c (riscv_tdesc_cache): Change map type.
823 (riscv_lookup_target_description): Return pointer out of
824 unique_ptr.
825 * target-descriptions.c (allocate_target_description): Add
826 comment.
827 (target_desc_deleter::operator()): Likewise.
828 * target-descriptions.h (struct target_desc_deleter): Moved to
829 gdbsupport/tdesc.h.
830 (target_desc_up): Likewise.
831
f80c8ec4
TT
8322020-07-17 Tom Tromey <tromey@adacore.com>
833
834 * linux-nat.c (linux_nat_target::supports_non_stop)
835 (linux_nat_target::always_non_stop_p): Use "true".
836 (linux_nat_target::supports_disable_randomization): Use "true" and
837 "false".
838
d0ce17d8
CT
8392020-07-16 Caroline Tice <cmtice@google.com>
840
841 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
842 (RNGLIST_HEADER_SIZE64): New constant definition.
843 (struct dwop_section_names): Add rnglists_dwo.
844 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
845 (struct loclist_header): Rename to 'loclists_rnglists_header'.
846 (struct dwo_sections): Add rnglists field.
847 (read_attribut_reprocess): Add tag parameter.
848 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
849 (cu_debug_rnglists_section): New function (decl & definition).
850 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
851 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
852 die whose range is being checked; get rnglist section from
853 cu_debug_rnglists_section, to get from either objfile or dwo file as
854 appropriate. Add cases for DW_RLE_base_addressx,
855 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
856 the base address to DW_RLE_offset_pairs (not to all ranges), moving
857 test inside if-condition and updating complaint message.
858 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
859 dwarf2_rnglists_process.
860 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
861 dwarf2_ranges_process.
862 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
863 need_ranges_base and update comment appropriately. Also pass die tag
864 to dwarf2_ranges_read.
865 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
866 need_ranges_base and update comment appropriately. Also pass die tag
867 to dwarf2_ranges_process.
868 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
869 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
870 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
871 need_ranges_base and update comment appropriately. Also pass die tag
872 to read_attribute_reprocess and dwarf2_ranges_read.
873 (read_loclist_header): Rename function to read_loclists_rnglists_header,
874 and update function comment appropriately.
875 (read_loclist_index): Call read_loclists_rnglists_header instead of
876 read_loclist_header.
877 (read_rnglist_index): New function.
878 (read_attribute_reprocess): Add tag parameter. Add code for
879 DW_FORM_rnglistx, passing tag to read_rnglist_index.
880 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
881
3dcc261c
AB
8822020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
883
884 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
885 being resolved.
886
ccb9eba6
AB
8872020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
888
889 * arch-utils.c (show_architecture): Update formatting of messages.
890
cf88be68
SM
8912020-07-12 Simon Marchi <simon.marchi@efficios.com>
892
893 * gdbtypes.h (struct type) <bounds>: Handle array and string
894 types.
895 * ada-lang.c (assign_aggregate): Use type::bounds on
896 array/string type.
897 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
898 * c-varobj.c (c_number_of_children): Likewise.
899 (c_describe_child): Likewise.
900 * eval.c (evaluate_subexp_for_sizeof): Likewise.
901 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
902 (f_type_print_base): Likewise.
903 * f-valprint.c (f77_array_offset_tbl): Likewise.
904 (f77_get_upperbound): Likewise.
905 (f77_print_array_1): Likewise.
906 * guile/scm-type.c (gdbscm_type_range): Likewise.
907 * m2-typeprint.c (m2_array): Likewise.
908 (m2_is_long_set_of_type): Likewise.
909 * m2-valprint.c (get_long_set_bounds): Likewise.
910 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
911 * python/py-type.c (typy_range): Likewise.
912 * rust-lang.c (rust_internal_print_type): Likewise.
913 * type-stack.c (type_stack::follow_types): Likewise.
914 * valarith.c (value_subscripted_rvalue): Likewise.
915 * valops.c (value_cast): Likewise.
916
509971ae
SM
9172020-07-12 Simon Marchi <simon.marchi@efficios.com>
918
919 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
920 callers to use the equivalent accessor methods.
921
107406b7
SM
9222020-07-12 Simon Marchi <simon.marchi@efficios.com>
923
924 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
925 (struct type) <bit_stride>: New method.
926 (TYPE_BIT_STRIDE): Remove.
927 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
928
bb789949
SM
9292020-07-12 Simon Marchi <simon.marchi@efficios.com>
930
931 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
932 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
933 callers to use the equivalent accessor methods instead.
934
39498edb
SM
9352020-07-12 Simon Marchi <simon.marchi@efficios.com>
936
937 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
938 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
939 callers to use the equivalent accessor methods instead.
940
3b606f38
SM
9412020-07-12 Simon Marchi <simon.marchi@efficios.com>
942
943 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
944 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
945 to use dynamic_prop::kind.
946
064d9cb9
SM
9472020-07-12 Simon Marchi <simon.marchi@efficios.com>
948
949 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
950 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
951 to get the bound property's kind and check against
952 PROP_UNDEFINED.
953
5537ddd0
SM
9542020-07-12 Simon Marchi <simon.marchi@efficios.com>
955
956 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
957 all callers to use type::range_bounds followed by
958 dynamic_prop::{low,high}.
959
8c2e4e06
SM
9602020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
961
962 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
963 const_val, set_const_val, baton, set_locexpr, set_loclist,
964 set_addr_offset, variant_parts, set_variant_parts,
965 original_type, set_original_type>: New methods.
966 <kind>: Rename to...
967 <m_kind>: ... this. Update all users to use the new methods
968 instead.
969 <data>: Rename to...
970 <m_data>: ... this. Update all users to use the new methods
971 instead.
972
7c6f2712
SM
9732020-07-12 Simon Marchi <simon.marchi@efficios.com>
974
975 * gdbtypes.c (get_discrete_bounds): Return failure if
976 the range type's bounds are not both defined and constant
977 values.
978 (get_array_bounds): Update comment. Remove undefined bound check.
979
599088e3
SM
9802020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
981
982 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
983 the type::bounds method directly.
984
c4dfcb36
SM
9852020-07-12 Simon Marchi <simon.marchi@efficios.com>
986
987 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
988 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
989 are used to set the range type's bounds to use set_bounds.
990
0a278aa7
PW
9912020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
992
993 * exec.c (_initialize_exec): Update exec-file-mismatch help.
994
cce20f10
PA
9952020-07-10 Pedro Alves <pedro@palves.net>
996
997 * gdbthread.h (inferior_ref): Define.
998 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
999 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1000 * thread.c
1001 (scoped_restore_current_thread::restore):
1002 Adjust to gdb::ref_ptr.
1003 (scoped_restore_current_thread::~scoped_restore_current_thread):
1004 Remove manual decref handling.
1005 (scoped_restore_current_thread::scoped_restore_current_thread):
1006 Adjust to use
1007 inferior_ref::new_reference/thread_info_ref::new_reference.
1008 Incref the thread before calling get_frame_id instead of after.
1009 Let TARGET_CLOSE_ERROR propagate.
1010
6d7aa592
PA
10112020-07-10 Pedro Alves <pedro@palves.net>
1012
1013 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1014 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1015 NOT_AVAILABLE_ERROR.
1016 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1017 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1018
b3e3a4c1
SM
10192020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1020 Pedro Alves <pedro@palves.net>
1021
1022 PR gdb/26199
1023 * infrun.c (threads_are_resumed_pending_p): Delete.
1024 (do_target_wait): Remove threads_are_executing and
1025 threads_are_resumed_pending_p checks from the inferior_matches
1026 lambda. Update comments.
1027
d6cc5d98
PA
10282020-07-10 Pedro Alves <pedro@palves.net>
1029
1030 PR gdb/26199
1031 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1032 executing threads.
1033
7d3badc6
PA
10342020-07-10 Pedro Alves <pedro@palves.net>
1035
1036 PR gdb/26199
1037 * infrun.c (handle_no_resumed): Handle multiple targets.
1038
42bd97a6
PA
10392020-07-10 Pedro Alves <pedro@palves.net>
1040
1041 PR gdb/26199
1042 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1043 target_is_async_p.
1044
43667cc6
PA
10452020-07-10 Pedro Alves <pedro@palves.net>
1046
1047 PR gdb/26199
1048 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1049 threads, not all threads.
1050
96118d11
PA
10512020-07-10 Pedro Alves <pedro@palves.net>
1052
1053 PR gdb/26199
1054 * remote.c (remote_target::open_1): Pass remote target pointer as
1055 data to create_async_event_handler.
1056 (remote_async_inferior_event_handler): Mark async event handler
1057 before returning if the remote target still has either pending
1058 events or unacknowledged notifications.
1059
54904d81
JB
10602020-07-10 John Baldwin <jhb@FreeBSD.org>
1061
1062 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1063 declaration.
1064 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1065 function.
1066
f37e5866
JB
10672020-07-09 John Baldwin <jhb@FreeBSD.org>
1068
1069 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1070 inferior_ptid.
1071
fc238d4a
JB
10722020-07-09 John Baldwin <jhb@FreeBSD.org>
1073
1074 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1075 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1076 AT_FREEBSD_PS_STRINGS.
1077
6e2469ff
HD
10782020-07-08 Hannes Domani <ssbssa@yahoo.de>
1079
1080 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1081 of debugfile path on Windows.
1082
d1076c41
JB
10832020-07-08 John Baldwin <jhb@FreeBSD.org>
1084
1085 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1086 argument to 'data'.
1087
15f3b077
TT
10882020-07-08 Tom Tromey <tromey@adacore.com>
1089
1090 * ada-lang.c (ada_exception_message_1): Use read_memory.
1091
9fc501fd
AB
10922020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1093
1094 PR python/22748
1095 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1096 special handling for inline frames.
1097 * findvar.c (value_of_register_lazy): Skip inline frames when
1098 creating lazy register values.
1099 * frame.c (frame_id_computed_p): Delete definition.
1100 * frame.h (frame_id_computed_p): Delete declaration.
1101
64cb3757
AB
11022020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1103
1104 * NEWS: Mention additions to Python API.
1105 * python/py-arch.c (archpy_register_groups): New function.
1106 (arch_object_methods): Add 'register_groups' method.
1107 * python/py-registers.c (reggroup_iterator_object): New struct.
1108 (reggroup_object): New struct.
1109 (gdbpy_new_reggroup): New function.
1110 (gdbpy_reggroup_to_string): New function.
1111 (gdbpy_reggroup_name): New function.
1112 (gdbpy_reggroup_iter): New function.
1113 (gdbpy_reggroup_iter_next): New function.
1114 (gdbpy_new_reggroup_iterator): New function
1115 (gdbpy_initialize_registers): Register new types.
1116 (reggroup_iterator_object_type): Define new Python type.
1117 (gdbpy_reggroup_getset): New static global.
1118 (reggroup_object_type): Define new Python type.
1119 * python/python-internal.h
1120
0f767f94
AB
11212020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1122
1123 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1124 * python/py-arch.c (archpy_registers): New function.
1125 (arch_object_methods): Add 'registers' method.
1126 * python/py-registers.c: New file.
1127 * python/python-internal.h
1128 (gdbpy_new_register_descriptor_iterator): Declare.
1129 (gdbpy_initialize_registers): Declare.
1130 * python/python.c (do_start_initialization): Call
1131 gdbpy_initialize_registers.
1132 * NEWS: Mention additions to the Python API.
1133
87dbc774
AB
11342020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1135
1136 * NEWS: Mention new Python API method.
1137 * python/py-unwind.c (pending_framepy_architecture): New function.
1138 (pending_frame_object_methods): Add architecture method.
1139
3bc98c0c
AB
11402020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1141
1142 * gdbarch.c: Regenerate.
1143 * gdbarch.h: Regenerate.
1144 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1145 (gdbarch_data): Use internal_error for the case where
1146 deprecated_set_gdbarch_data was originally needed.
1147 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1148 and use passed in obstack.
1149 (libunwind_frame_set_descr): Should no longer get back NULL from
1150 gdbarch_data.
1151 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1152 type.
1153 * user-regs.c (user_regs_init): Update parameters, and use passed
1154 in obstack.
1155 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1156 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1157
d8cc8af6
TV
11582020-07-06 Tom de Vries <tdevries@suse.de>
1159
1160 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1161 End-Of-Sequence in lte_is_less_than.
1162 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1163 "gdb: Don't reorder line table entries too much when sorting".
1164
947f7597
TV
11652020-07-06 Tom de Vries <tdevries@suse.de>
1166
1167 PR tui/26205
1168 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1169
1e7c1b22
TV
11702020-07-05 Tom de Vries <tdevries@suse.de>
1171
1172 PR build/26187
1173 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1174 std::uncaught_exceptions instead of deprecated
1175 std::uncaught_exception.
1176
a36158ec
SM
11772020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1178
1179 * macroexp.h (macro_stringify): Return
1180 gdb::unique_xmalloc_ptr<char>.
1181 * macroexp.c (macro_stringify): Likewise.
1182 * macrotab.c (fixup_definition): Update.
1183
14d960c8
SM
11842020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1185
1186 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1187 (lex_one_token): Update.
1188 * macroexp.c (struct macro_buffer) <release>: Return
1189 gdb::unique_xmalloc_ptr<char>.
1190 (macro_stringify): Update.
1191 (macro_expand): Update.
1192 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1193 * macroexp.h (macro_expand_next): Likewise.
1194
211d5b1c
SM
11952020-07-02 Simon Marchi <simon.marchi@efficios.com>
1196
1197 * macroexp.h (macro_lookup_ftype): Remove.
1198 (macro_expand, macro_expand_once, macro_expand_next): Remove
1199 lookup function parameters, add scope parameter.
1200 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1201 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1202 * macroscope.h (standard_macro_lookup): Change parameter type
1203 to macro_scope.
1204 * macroscope.c (standard_macro_lookup): Likewise.
1205 * c-exp.y (lex_one_token): Update.
1206 * macrocmd.c (macro_expand_command): Likewise.
1207 (macro_expand_once_command): Likewise.
1208
b1a35af2
SM
12092020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1210
1211 * inf-loop.c (inferior_event_handler): Remove client_data param.
1212 * inf-loop.h (inferior_event_handler): Likewise.
1213 * infcmd.c (step_1): Adjust.
1214 * infrun.c (proceed): Adjust.
1215 (fetch_inferior_event): Remove client_data param.
1216 (infrun_async_inferior_event_handler): Adjust.
1217 * infrun.h (fetch_inferior_event): Remove `void *` param.
1218 * linux-nat.c (handle_target_event): Adjust.
1219 * record-btrace.c (record_btrace_handle_async_inferior_event):
1220 Adjust.
1221 * record-full.c (record_full_async_inferior_event_handler):
1222 Adjust.
1223 * remote.c (remote_async_inferior_event_handler): Adjust.
1224
1cdf9e33
TT
12252020-07-01 Tom Tromey <tom@tromey.com>
1226
1227 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1228 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1229
32c1e210
TT
12302020-07-01 Tom Tromey <tom@tromey.com>
1231
1232 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1233 tui_gen_win_info.
1234 (tui_win_info::make_window): Merge with
1235 tui_gen_win_info::make_window.
1236 (tui_win_info::make_visible): Move from tui_gen_win_info.
1237 * tui/tui-win.c (tui_win_info::max_width): Move from
1238 tui_gen_win_info.
1239 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1240 type.
1241 <window_factory>: Likewise.
1242 * tui/tui-layout.c (tui_win_info::resize): Move from
1243 tui_gen_win_info.
1244 (make_standard_window): Change return type.
1245 (get_locator_window, tui_get_window_by_name): Likewise.
1246 (tui_layout_window::apply): Remove a cast.
1247 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1248 (struct tui_win_info): Merge with tui_gen_win_info.
1249 (struct tui_gen_win_info): Remove.
1250
a30cb6da
TT
12512020-07-01 Tom Tromey <tom@tromey.com>
1252
1253 * tui/tui-stack.h (struct tui_locator_window): Derive from
1254 tui_win_info.
1255 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1256 <can_box>: New method.
1257
1eb2161f
TT
12582020-07-01 Tom Tromey <tom@tromey.com>
1259
1260 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1261
7134f2eb
TT
12622020-07-01 Tom Tromey <tom@tromey.com>
1263
1264 * tui/tui-regs.c (tui_data_window::display_registers_from)
1265 (tui_data_window::display_registers_from)
1266 (tui_data_window::first_data_item_displayed)
1267 (tui_data_window::delete_data_content_windows): Update.
1268 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1269 Remove.
1270 (tui_data_window::check_register_values): Update.
1271 (tui_data_item_window::rerender): Add parameters. Update.
1272 (tui_data_item_window::refresh_window): Remove.
1273 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1274 virtual.
1275 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1276 tui_gen_win_info.
1277 <refresh_window, max_height, min_height>: Remove.
1278 <rerender>: Add parameters.
1279 <x, y, visible>: New members.
1280 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1281 <m_item_width>: New member.
1282
22b7b041
TT
12832020-07-01 Tom Tromey <tom@tromey.com>
1284
1285 * tui/tui-regs.c (tui_data_window::show_register_group)
1286 (tui_data_window::check_register_values): Update.
1287 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1288 from item_no.
1289
c9753adb
TT
12902020-07-01 Tom Tromey <tom@tromey.com>
1291
1292 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1293 useless "if".
1294
9ab26b4a
TT
12952020-07-01 Tom Tromey <tom@tromey.com>
1296
1297 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1298 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1299
e555083f
TT
13002020-07-01 Tom Tromey <tom@tromey.com>
1301
1302 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1303 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1304 (struct tui_line_or_address): Move from tui-data.h.
1305 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1306 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1307 (tui_cmd_window, tui_source_window_base, tui_source_window)
1308 (tui_disasm_window): Don't declare.
1309 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1310 to tui-winsource.h.
1311 (SINGLE_KEY): Move to tui-stack.c.
1312
7a02bab7
TT
13132020-07-01 Tom Tromey <tom@tromey.com>
1314
1315 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1316 std::string.
1317 * tui/tui-regs.c (class tab_expansion_file): New.
1318 (tab_expansion_file::write): New method.
1319 (tui_register_format): Change return type. Use
1320 tab_expansion_file.
1321 (tui_get_register, tui_data_window::display_registers_from)
1322 (tui_data_item_window::rerender): Update.
1323 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1324 * tui/tui-io.c (tui_expand_tabs): Remove.
1325
ea68593b
TT
13262020-07-01 Tom Tromey <tom@tromey.com>
1327
1328 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1329
a8caed5d
FS
13302020-07-01 Fangrui Song <maskray@google.com>
1331
1332 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1333
9cdf9820
AKS
13342020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1335
1336 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1337 forms for DW_AT_associated and DW_AT_allocated attributes,
1338 which is already checked in function attr_to_dynamic_prop.
1339
a1520ad8
TT
13402020-06-30 Tom Tromey <tromey@adacore.com>
1341
1342 * dwarf2/read.c (quirk_rust_enum): Correctly call
1343 alloc_rust_variant for default-less enum.
1344
5ac58899
TT
13452020-06-30 Tom Tromey <tromey@adacore.com>
1346
1347 PR build/26183:
1348 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1349 gdb::to_string.
1350
19b187a9
SM
13512020-06-29 Simon Marchi <simon.marchi@efficios.com>
1352
1353 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1354 * gdbarch.h: Re-generate.
1355
cd4c4c07
TT
13562020-06-28 Tom Tromey <tom@tromey.com>
1357
1358 * command.h (cmd_types): Remove.
1359 (cmd_type): Don't declare.
1360 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1361 typedef.
1362 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1363 * cli/cli-decode.c (cmd_type): Remove.
1364
05779d57
PA
13652020-06-27 Pedro Alves <palves@redhat.com>
1366
1367 * fork-child.c (prefork_hook): Adjust.
1368 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1369 Delete.
1370 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1371 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1372 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1373 Remove declarations.
1374 (struct inferior) <set_tty, tty>: New methods.
1375 (struct inferior) <terminal>: Rename to ...
1376 (struct inferior) <m_terminal>: ... this and make private.
1377 * main.c (captured_main_1): Adjust.
1378 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1379 (mi_cmd_inferior_tty_show): Adjust.
1380 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1381 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1382
1776e3e5
NA
13832020-06-26 Nick Alcock <nick.alcock@oracle.com>
1384
1385 * configure.ac: Add --enable-libctf: handle --disable-static
1386 properly.
1387 * acinclude.m4: sinclude ../config/enable.m4.
1388 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1389 (LIBCTF): Substitute in.
1390 (CTF_DEPS): New, likewise.
1391 (CLIBS): libctf needs symbols from libbfd: move earlier.
1392 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1393 flags.
1394 * ctfread.c: Surround in ENABLE_LIBCTF.
1395 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1396 * configure: Regenerate.
1397 * config.in: Likewise.
1398
58373b80
SM
13992020-06-25 Simon Marchi <simon.marchi@efficios.com>
1400
1401 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1402
277474ee
SM
14032020-06-25 Simon Marchi <simon.marchi@efficios.com>
1404
1405 * inferior.h (struct inferior) <terminal>: Change type to
1406 gdb::unique_xmalloc_ptr<char>.
1407 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1408 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1409 field, adjust to unique pointer.
1410 (get_inferior_io_terminal): Adjust to unique pointer.
1411
6d74da72
AB
14122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1413
1414 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1415 registers, not just the known core set of registers.
1416
2e52d038
AB
14172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1418
1419 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1420 fflags, frm, and fcsr registers.
1421 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1422 restore groups.
1423 (riscv_tdesc_unknown_reg): New function.
1424 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1425 tdesc_use_registers.
1426 * riscv-tdep.h (struct gdbarch_tdep): Add
1427 unknown_csrs_first_regnum, unknown_csrs_count,
1428 duplicate_fflags_regnum, duplicate_frm_regnum, and
1429 duplicate_fcsr_regnum fields.
1430
be64fd07
AB
14312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1432
1433 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1434 callback, use the callback (when not null) to help number unknown
1435 registers.
1436 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1437 (tdesc_use_registers): Add extra parameter to declaration.
1438
3b9fce96
AB
14392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1440
1441 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1442 in the file.
1443 (class riscv_pending_register_alias): Likewise.
1444 (riscv_register_feature::register_info): Change 'required_p' field
1445 to 'required', and change its type. Add 'check' member function.
1446 (riscv_register_feature::register_info::check): Define new member
1447 function.
1448 (riscv_xreg_feature): Change initialisation of 'required' field.
1449 (riscv_freg_feature): Likewise.
1450 (riscv_virtual_feature): Likewise.
1451 (riscv_csr_feature): Likewise.
1452 (riscv_check_tdesc_feature): Take extra parameter, the csr
1453 tdesc_feature, rewrite the function to use the new
1454 riscv_register_feature::register_info::check function.
1455 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1456
865bad26
AB
14572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1458
1459 * features/Makefile: Remove all references to the deleted files
1460 below.
1461 * features/riscv/32bit-csr.c: Deleted.
1462 * features/riscv/32bit-csr.xml: Deleted.
1463 * features/riscv/64bit-csr.c: Deleted.
1464 * features/riscv/64bit-csr.xml: Deleted.
1465 * features/riscv/rebuild-csr-xml.sh: Deleted.
1466
ed69cbc8
AB
14672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1468
1469 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1470 whitespace error for declaration of names member variable.
1471 (struct riscv_register_feature): Add new prefer_first_name member
1472 variable, and fix whitespace error in declaration of registers.
1473 (riscv_xreg_feature): Initialize prefer_first_name field.
1474 (riscv_freg_feature): Likewise.
1475 (riscv_virtual_feature): Likewise.
1476 (riscv_csr_feature): Likewise.
1477 (riscv_register_name): Expand on comments. Remove register name
1478 modifications for CSR and virtual registers.
1479
4445e8f5
AB
14802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1481
1482 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1483 errors.
1484
767a879e
AB
14852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1486
1487 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1488 riscv-opc.h.
1489 (class riscv_pending_register_alias): New class.
1490 (riscv_check_tdesc_feature): Take vector of pending aliases and
1491 populate it as appropriate.
1492 (riscv_setup_register_aliases): Delete.
1493 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1494 to riscv_check_tdesc_feature in all cases. Use the vector to
1495 create the register aliases.
1496
bb6e55f3
RO
14972020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1498
1499 * sol2-tdep.c (sol2_static_transform_name): Remove.
1500 (sol2_init_abi): Don't register it.
1501 * gdbarch.sh (static_transform_name): Remove.
1502 * gdbarch.c, gdbarch.h: Regenerate.
1503
1504 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1505 gdbarch_static_transform_name.
1506 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1507 * stabsread.c (define_symbol) <'X'>: Remove.
1508 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1509 handling.
1510 <'V'>: Likewise.
1511 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1512 <'S'>: Remove call to gdbarch_static_transform_name.
1513
c6d36836
RO
15142020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1515
1516 * procfs.c (procfs_pre_trace): New function.
1517 (procfs_target::create_inferior): Pass it to fork_inferior.
1518
a7e6196b
RO
15192020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1520
1521 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1522 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1523 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1524 sol2-tdep.o, sparc-sol2-tdep.o.
1525 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1526 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1527 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1528 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1529
d412e696
RO
15302020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1531
1532 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1533 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1534 Call sol2_init_abi.
1535 Remove calls to set_gdbarch_skip_solib_resolver,
1536 set_gdbarch_core_pid_to_str.
1537 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1538 (i386_sol2_static_transform_name): Remove.
1539 (i386_sol2_init_abi): Call sol2_init_abi.
1540 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1541 set_gdbarch_static_transform_name,
1542 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1543 Use sol2_sigtramp_p.
1544 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1545 (sol2_sigtramp_p): New function.
1546 (sol2_static_transform_name): New function.
1547 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1548 (sol2_init_abi): New function.
1549 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1550 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1551 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1552 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1553 (sparc_sol2_static_transform_name): Remove.
1554 (sparc32_sol2_init_abi): Call sol2_init_abi.
1555 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1556 set_gdbarch_static_transform_name,
1557 set_gdbarch_skip_solib_resolver,
1558 set_gdbarch_core_pid_to_str.
1559 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1560 (sparc_sol2_static_transform_name): Remove
1561 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1562 call sol2_sigtramp_p.
1563 (sparc64_sol2_init_abi): Call sol2_init_abi.
1564 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1565 set_gdbarch_static_transform_name,
1566 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1567
a8654e7d
PW
15682020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1569
1570 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1571 * exec.c (validate_exec_file): If from_tty, set both
1572 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1573 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1574 and from_tty, unconditionally ask a confirmation.
1575
caa7fd04
AB
15762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1577
1578 * target-descriptions.c (tdesc_architecture_name): Protect against
1579 NULL pointer dereference.
1580 (maint_print_xml_tdesc_cmd): New function.
1581 (_initialize_target_descriptions): Register new 'maint print
1582 xml-tdesc' command and give it the filename completer.
1583 * NEWS: Mention new 'maint print xml-tdesc' command.
1584
fbf42f4e
AB
15852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1586
1587 * target-descriptions.c (class tdesc_compatible_info): New class.
1588 (struct target_desc): Change type of compatible vector.
1589 (tdesc_compatible_p): Update for change in type of
1590 target_desc::compatible.
1591 (tdesc_compatible_info_list): New function.
1592 (tdesc_compatible_info_arch_name): New function.
1593 (tdesc_add_compatible): Update for change in type of
1594 target_desc::compatible.
1595 (print_c_tdesc::visit_pre): Likewise.
1596
20821f4e
AB
15972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1598
1599 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1600 whitespace to underscore.
1601 (maint_print_c_tdesc_cmd): Use fake filename for target
1602 descriptions that came from the target.
1603 (_initialize_target_descriptions): Add filename command completion
1604 for 'maint print c-tdesc'.
1605
1fb5ee62
SM
16062020-06-23 Simon Marchi <simon.marchi@efficios.com>
1607
1608 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1609 lines.
1610
fc3ecb3e
SM
16112020-06-23 Simon Marchi <simon.marchi@efficios.com>
1612
1613 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1614 lines.
1615 (dwarf2_find_location_expression): Likewise.
1616 (call_site_parameter_matches): Likewise.
1617 (dwarf2_compile_expr_to_ax): Likewise.
1618 (disassemble_dwarf_expression): Likewise.
1619 (loclist_describe_location): Likewise.
1620
236ef034
PA
16212020-06-23 Pedro Alves <palves@redhat.com>
1622
1623 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1624 progspace-and-thread.h. Include scoped-mock-context.h instead.
1625 (register_to_value_test): Use scoped_mock_context.
1626 * regcache.c: Include "scoped-mock-context.h".
1627 (cooked_read_test): Don't error out if a target is already pushed.
1628 Use scoped_mock_context. Adjust.
1629 * scoped-mock-context.h: New file.
1630
39e7ecca
AB
16312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1632
1633 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1634 initializer.
1635 (ada_language::is_string_type_p): New member function.
1636 * c-lang.c (c_language_data): Delete la_is_string_type_p
1637 initializer.
1638 (cplus_language_data): Likewise.
1639 (asm_language_data): Likewise.
1640 (minimal_language_data): Likewise.
1641 * d-lang.c (d_language_data): Likewise.
1642 * f-lang.c (f_is_string_type_p): Delete function, implementation
1643 moved to f_language::is_string_type_p.
1644 (f_language_data): Delete la_is_string_type_p initializer.
1645 (f_language::is_string_type_p): New member function,
1646 implementation from f_is_string_type_p.
1647 * go-lang.c (go_is_string_type_p): Delete function, implementation
1648 moved to go_language::is_string_type_p.
1649 (go_language_data): Delete la_is_string_type_p initializer.
1650 (go_language::is_string_type_p): New member function,
1651 implementation from go_is_string_type_p.
1652 * language.c (language_defn::is_string_type_p): Define new member
1653 function.
1654 (default_is_string_type_p): Make static, add comment copied from
1655 header file.
1656 (unknown_language_data): Delete la_is_string_type_p initializer.
1657 (unknown_language::is_string_type_p): New member function.
1658 (auto_language_data): Delete la_is_string_type_p initializer.
1659 (auto_language::is_string_type_p): New member function.
1660 * language.h (language_data): Delete la_is_string_type_p field.
1661 (language_defn::is_string_type_p): Declare new function.
1662 (default_is_string_type_p): Delete desclaration, move comment to
1663 definition.
1664 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1665 moved to m2_language::is_string_type_p.
1666 (m2_language_data): Delete la_is_string_type_p initializer.
1667 (m2_language::is_string_type_p): New member function,
1668 implementation from m2_is_string_type_p.
1669 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1670 initializer.
1671 * opencl-lang.c (opencl_language_data): Likewise.
1672 * p-lang.c (pascal_is_string_type_p): Delete function,
1673 implementation moved to pascal_language::is_string_type_p.
1674 (pascal_language_data): Delete la_is_string_type_p initializer.
1675 (pascal_language::is_string_type_p): New member function,
1676 implementation from pascal_is_string_type_p.
1677 * rust-lang.c (rust_is_string_type_p): Delete function,
1678 implementation moved to rust_language::is_string_type_p.
1679 (rust_language_data): Delete la_is_string_type_p initializer.
1680 (rust_language::is_string_type_p): New member function,
1681 implementation from rust_is_string_type_p.
1682 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1683 is_string_type_p.
1684
4ffc13fb
AB
16852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1686
1687 * ada-lang.c (ada_language_data): Delete la_print_typedef
1688 initializer.
1689 (ada_language::print_typedef): New member function.
1690 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1691 (cplus_language_data): Likewise.
1692 (asm_language_data): Likewise.
1693 (minimal_language_data): Likewise.
1694 * d-lang.c (d_language_data): Likewise.
1695 * f-lang.c (f_language_data): Likewise.
1696 (f_language::print_typedef): New member function.
1697 * go-lang.c (go_language_data): Delete la_print_typedef
1698 initializer.
1699 * language.c (language_defn::print_typedef): Define member
1700 function.
1701 (unknown_language_data): Delete la_print_typedef initializer.
1702 (unknown_language::print_typedef): New member function.
1703 (auto_language_data): Delete la_print_typedef initializer.
1704 (auto_language::print_typedef): New member function.
1705 * language.h (language_data): Delete la_print_typedef field.
1706 (language_defn::print_typedef): Declare new member function.
1707 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1708 (default_print_typedef): Delete declaration.
1709 * m2-lang.c (m2_language_data): Delete la_print_typedef
1710 initializer.
1711 (m2_language::print_typedef): New member function.
1712 * objc-lang.c (objc_language_data): Delete la_print_typedef
1713 initializer.
1714 * opencl-lang.c (opencl_language_data): Likewise.
1715 * p-lang.c (pascal_language_data): Likewise.
1716 (pascal_language::print_typedef): New member function.
1717 * rust-lang.c (rust_print_typedef): Delete function,
1718 implementation moved to rust_language::print_typedef.
1719 (rust_language): Delete la_print_typedef initializer.
1720 (rust_language::print_typedef): New member function,
1721 implementation from rust_print_typedef.
1722 * typeprint.c (default_print_typedef): Delete.
1723
d711ee67
AB
17242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1725
1726 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1727 (ada_language::printstr): New member function.
1728 * c-lang.c (c_language_data): Delete la_printstr initializer.
1729 (cplus_language_data): Likewise.
1730 (asm_language_data): Likewise.
1731 (minimal_language_data): Likewise.
1732 * d-lang.c (d_language_data): Likewise.
1733 * f-lang.c (f_printstr): Rename to f_language::printstr.
1734 (f_language_data): Delete la_printstr initializer.
1735 (f_language::printstr): New member function, implementation from
1736 f_printstr.
1737 * go-lang.c (go_language_data): Delete la_printstr initializer.
1738 * language.c (language_defn::printstr): Define new member
1739 function.
1740 (unk_lang_printstr): Delete.
1741 (unknown_language_data): Delete la_printstr initializer.
1742 (unknown_language::printstr): New member function.
1743 (auto_language_data): Delete la_printstr initializer.
1744 (auto_language::printstr): New member function.
1745 * language.h (language_data): Delete la_printstr field.
1746 (language_defn::printstr): Declare new member function.
1747 (LA_PRINT_STRING): Update call to printstr.
1748 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1749 (m2_language_data): Delete la_printstr initializer.
1750 (m2_language::printstr): New member function, implementation from
1751 m2_printstr.
1752 * objc-lang.c (objc_language_data): Delete la_printstr
1753 initializer.
1754 * opencl-lang.c (opencl_language_data): Likewise.
1755 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1756 (pascal_language_data): Delete la_printstr initializer.
1757 (pascal_language::printstr): New member function, implementation
1758 from pascal_printstr.
1759 * p-lang.h (pascal_printstr): Delete declaration.
1760 * rust-lang.c (rust_printstr): Update header comment.
1761 (rust_language_data): Delete la_printstr initializer.
1762 (rust_language::printstr): New member function.
1763
52b50f2c
AB
17642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1765
1766 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1767 (ada_language::printchar): New member function.
1768 * c-lang.c (c_language_data): Delete la_printchar initializer.
1769 (cplus_language_data): Likewise.
1770 (asm_language_data): Likewise.
1771 (minimal_language_data): Likewise.
1772 * d-lang.c (d_language_data): Likewise.
1773 * f-lang.c (f_printchar): Rename to f_language::printchar.
1774 (f_language_data): Delete la_printchar initializer.
1775 (f_language::printchar): New member function, implementation from
1776 f_printchar.
1777 * go-lang.c (go_language_data): Delete la_printchar initializer.
1778 * language.c (unk_lang_printchar): Delete.
1779 (language_defn::printchar): Define new member function.
1780 (unknown_language_data): Delete la_printchar initializer.
1781 (unknown_language::printchar): New member function.
1782 (auto_language_data): Delete la_printchar initializer.
1783 (auto_language::printchar): New member function.
1784 * language.h (language_data): Delete la_printchar field.
1785 (language_defn::printchar): Declare new member function.
1786 (LA_PRINT_CHAR): Update call to printchar.
1787 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1788 (m2_language::printchar): New member function.
1789 * objc-lang.c (objc_language_data): Delete la_printchar
1790 initializer.
1791 * opencl-lang.c (opencl_language_data): Likewise.
1792 * p-lang.c (pascal_language_data): Delete la_printchar
1793 initializer.
1794 (pascal_language::printchar): New member function.
1795 * rust-lang.c (rust_printchar): Rename to
1796 rust_language::printchar.
1797 (rust_language_data): Delete la_printchar initializer.
1798 (rust_language::printchar): New member function, implementation
1799 from rust_printchar.
1800
ec8cec5b
AB
18012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1802
1803 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1804 (ada_language_data): Delete la_emitchar initializer.
1805 (ada_language::emitchar): New member function, implementation from
1806 emit_char.
1807 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1808 (cplus_language_data): Likewise.
1809 (asm_language_data): Likewise.
1810 (minimal_language_data): Likewise.
1811 * d-lang.c (d_language_data): Likewise.
1812 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1813 (f_language_data): Delete la_emitchar initializer.
1814 (f_language::emitchar): New member function, implementation from
1815 f_emit_char.
1816 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1817 * language.c (unk_lang_emit_char): Delete.
1818 (language_defn::emitchar): New member function definition.
1819 (unknown_language_data): Delete la_emitchar initializer.
1820 (unknown_language::emitchar): New member function.
1821 (auto_language_data): Delete la_emitchar initializer.
1822 (auto_language::emitchar): New member function.
1823 * language.h (language_data): Delete la_emitchar field.
1824 (language_defn::emitchar): New member field declaration.
1825 (LA_EMIT_CHAR): Update call to emitchar.
1826 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1827 (m2_language_data): Delete la_emitchar initializer.
1828 (m2_language::emitchar): New member function, implementation from
1829 m2_emit_char.
1830 * objc-lang.c (objc_language_data): Delete la_emitchar
1831 initializer.
1832 * opencl-lang.c (opencl_language_data): Likewise.
1833 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1834 (pascal_language_data): Delete la_emitchar initializer.
1835 (pascal_language::emitchar): New member function, implementation
1836 from pascal_emit_char.
1837 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1838 (rust_language_data): Delete la_emitchar initializer.
1839 (rust_language::emitchar): New member function, implementation
1840 from rust_emitchar.
1841
1bf9c363
AB
18422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1843
1844 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1845 (ada_language_data): Delete la_post_parser initializer.
1846 (ada_language::post_parser): New member function.
1847 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1848 (cplus_language_data): Likewise.
1849 (asm_language_data): Likewise.
1850 (minimal_language_data): Likewise.
1851 * d-lang.c (d_language_data): Likewise.
1852 * f-lang.c (f_language_data): Likewise.
1853 * go-lang.c (go_language_data): Likewise.
1854 * language.c (unknown_language_data): Likewise.
1855 (auto_language_data): Likewise.
1856 * language.h (language_data): Delete la_post_parser field.
1857 (language_defn::post_parser): New member function.
1858 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1859 * objc-lang.c (objc_language_data): Likewise.
1860 * opencl-lang.c (opencl_language_data): Likewise.
1861 * p-lang.c (pascal_language_data): Likewise.
1862 * parse.c (parse_exp_in_context): Update call to post_parser.
1863 (null_post_parser): Delete definition.
1864 * parser-defs.h (null_post_parser): Delete declaration.
1865 * rust-lang.c (rust_language_data): Delete la_post_parser
1866 initializer.
1867
87afa652
AB
18682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1869
1870 * ada-lang.c (parse): Rename to ada_language::parser.
1871 (ada_language_data): Delete la_parser initializer.
1872 (ada_language::parser): New member function, implementation from
1873 parse.
1874 * c-lang.c (c_language_data): Delete la_parser initializer.
1875 (cplus_language_data): Likewise.
1876 (asm_language_data): Likewise.
1877 (minimal_language_data): Likewise.
1878 * d-lang.c (d_language_data): Likewise.
1879 (d_language::parser): New member function.
1880 * f-lang.c (f_language_data): Delete la_parser initializer.
1881 (f_language::parser): New member function.
1882 * go-lang.c (go_language_data): Delete la_parser initializer.
1883 (go_language::parser): New member function.
1884 * language.c (unk_lang_parser): Delete.
1885 (language_defn::parser): Define new member function.
1886 (unknown_language_data): Delete la_parser initializer.
1887 (unknown_language::parser): New member function.
1888 (auto_language_data): Delete la_parser initializer.
1889 (auto_language::parser): New member function.
1890 * language.h (language_data): Delete la_parser field.
1891 (language_defn::parser): Declare new member function.
1892 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1893 (m2_language::parser): New member function.
1894 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1895 * opencl-lang.c (opencl_language_data): Likewise.
1896 * p-lang.c (pascal_language_data): Likewise.
1897 (pascal_language::parser): New member function.
1898 * parse.c (parse_exp_in_context): Update call to parser.
1899 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1900 (rust_language::parser): New member function.
1901
37825800
AB
19022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1903
1904 * top.c (print_gdb_configuration): Print --with-python-libdir
1905 configuration value.
1906
5b860c93
PW
19072020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1908
1909 * NEWS: Mention change to the alias command.
1910
cf00cd6f
PW
19112020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1912
1913 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1914 (alias_command_completer)
1915 (make_alias_options_def_group): New functions.
1916 (alias_opts, alias_option_defs): New struct and array.
1917 (alias_usage_error): Update usage.
1918 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1919 Use option framework.
1920 (_initialize_cli_cmds): Update alias command help.
1921 Update aliases command help.
1922 (show_user):
1923 Add NULL for new default_args lookup_cmd argument.
1924 (valid_command_p): Rename to validate_aliased_command.
1925 Add NULL for new default_args lookup_cmd argument. Verify that the
1926 aliased_command has no default args.
1927 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1928 (lookup_cmd_1, lookup_cmd): New argument default_args.
1929 (add_alias_cmd):
1930 Add NULL for new default_args lookup_cmd argument.
1931 (print_help_for_command): Show default args under the layout
1932 alias some_alias = some_aliased_cmd some_alias_default_arg.
1933 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1934 xfree default_args in destructor.
1935 * cli/cli-script.c (process_next_line, do_define_command):
1936 Add NULL for new default_args lookup_cmd argument.
1937 * command.h: Declare new default_args argument in lookup_cmd
1938 and lookup_cmd_1.
1939 * completer.c (complete_line_internal_1):
1940 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1941 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1942 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1943 Likewise.
1944 * infcmd.c (_initialize_infcmd): Likewise.
1945 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1946 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1947 * python/py-param.c (add_setshow_generic): Likewise.
1948 * remote.c (_initialize_remote): Likewise.
1949 * top.c (execute_command): Prepend default_args if command has some.
1950 (set_verbose):
1951 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1952 * tracepoint.c (validate_actionline, encode_actions_1):
1953 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1954
bd920864
TBA
19552020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1956
1957 * jit.c (jit_read_descriptor): Use bool as the return type.
1958 (jit_breakpoint_re_set_internal): Use bool as the return type.
1959 Invert the return value logic; return true if the jit breakpoint
1960 has been successfully initialized.
1961 (jit_inferior_init): Update the call to
1962 jit_breakpoint_re_set_internal.
1963
f8098322
PA
19642020-06-22 Pedro Alves <palves@redhat.com>
1965
1966 PR gdb/25939
1967 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1968 Use the current inferior instead. Don't return
1969 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1970 wait again.
1971 * sol-thread.c (sol_thread_target::wait): Don't reference
1972 inferior_ptid.
1973 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1974 (sol_update_thread_list_callback): Use the current inferior's pid
1975 instead of inferior_ptid.
1976
196535a6
RO
19772020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1978
1979 * procfs.c: Cleanup many comments.
1980
1981 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1982 (AFTER_WATCHFLAG): Replace by value.
1983
1984 (MAIN_PROC_NAME_FORMAT): Inline ...
1985 (create_procinfo): ... here.
1986
1987 (procfs_debug_inferior): Remove SYS_exec handling.
1988 (syscall_is_exec): Likewise.
1989 (procfs_set_exec_trap): Likewise.
1990
1991 (syscall_is_lwp_exit): Inline in callers.
1992 (syscall_is_exit): Likewise.
1993 (syscall_is_exec): Likewise.
1994 (syscall_is_lwp_create): Likewise.
1995
1996 (invalidate_cache): Remove #if 0 code.
1997
1998 (make_signal_thread_runnable): Remove.
1999 (procfs_target::resume): Remove #if 0 code.
2000
cf6f3e86
RO
20012020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2002
2003 PR gdb/25939
2004 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2005 call ...
2006 (procfs_target::create_inferior): ... here.
2007
48e9cc84
PW
20082020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2009
2010 * exec.c (validate_exec_file): Ensure the build-id is up to
2011 date by calling reopen_exec_file (that checks file timestamp
2012 to decide to re-read the file).
2013
3922b302
PA
20142020-06-18 Pedro Alves <palves@redhat.com>
2015
2016 PR gdb/25412
2017 * gdbthread.h (delete_thread, delete_thread_silent)
2018 (find_thread_ptid): Update comments.
2019 * thread.c (current_thread_): New global.
2020 (is_current_thread): Move higher, and reimplement.
2021 (inferior_thread): Reimplement.
2022 (set_thread_exited): Use bool. Add assertions.
2023 (add_thread_silent): Simplify thread-reuse handling by always
2024 calling delete_thread.
2025 (delete_thread): Remove intro comment.
2026 (find_thread_ptid): Skip exited threads.
2027 (switch_to_thread_no_regs): Write to current_thread_.
2028 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2029 INFERIOR_PTID. Clear current_thread_.
2030
6dbdab44
PA
20312020-06-18 Pedro Alves <palves@redhat.com>
2032
2033 * aix-thread.c (pd_update): Use switch_to_thread.
2034
2da4b788
PA
20352020-06-18 Pedro Alves <palves@redhat.com>
2036
2037 * ravenscar-thread.c (ravenscar_thread_target): Update.
2038 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2039 (ravenscar_thread_target::add_active_thread): ... this. Don't
2040 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2041 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2042
50838d1b
PA
20432020-06-18 Pedro Alves <palves@redhat.com>
2044
2045 * nat/windows-nat.c (current_windows_thread): Remove.
2046 * nat/windows-nat.h (current_windows_thread): Remove.
2047 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2048 Adjust.
2049 (display_selectors): Adjust to fetch the current
2050 windows_thread_info based on inferior_ptid.
2051 (fake_create_process): No longer write to current_windows_thread.
2052 (windows_nat_target::get_windows_debug_event):
2053 Don't set inferior_ptid or current_windows_thread.
2054 (windows_nat_target::wait): Adjust to not rely on
2055 current_windows_thread.
2056 (do_initial_windows_stuff): Now a method of windows_nat_target.
2057 Switch to the last_ptid thread.
2058 (windows_nat_target::attach): Adjust.
2059 (windows_nat_target::detach): Use switch_to_no_thread instead of
2060 writing to inferior_ptid directly.
2061 (windows_nat_target::create_inferior): Adjust.
2062
31ce04e9
PA
20632020-06-18 Pedro Alves <palves@redhat.com>
2064
2065 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2066
1ee1a363
PA
20672020-06-18 Pedro Alves <palves@redhat.com>
2068
2069 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2070 after creating it, instead of writing to inferior_ptid. Don't
2071 write to inferior_ptid.
2072
6d350754
PA
20732020-06-18 Pedro Alves <palves@redhat.com>
2074
2075 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2076
5d971d48
PA
20772020-06-18 Pedro Alves <palves@redhat.com>
2078
2079 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2080 it, instead of writing to inferior_ptid.
2081
86e57d1b
PA
20822020-06-18 Pedro Alves <palves@redhat.com>
2083
2084 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2085 to inferior_ptid.
2086
f2e1c129
PA
20872020-06-18 Pedro Alves <palves@redhat.com>
2088
2089 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2090 instead of writing to inferior_ptid directly.
2091
60db1b85
PA
20922020-06-18 Pedro Alves <palves@redhat.com>
2093
2094 * corelow.c (core_target::close): Use switch_to_no_thread instead
2095 of writing to inferior_ptid directly.
2096 (add_to_thread_list, core_target_open): Use switch_to_thread
2097 instead of writing to inferior_ptid directly.
2098
fe7d6a8d
PA
20992020-06-18 Pedro Alves <palves@redhat.com>
2100
2101 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2102 inferior_ptid.
2103 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2104 inferior_ptid.
2105 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2106 inferior_ptid directly.
2107 (darwin_nat_target::init_thread_list): Switch to thread, instead
2108 of writing to inferior_ptid.
2109 (darwin_nat_target::attach): Don't write to inferior_ptid.
2110 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2111
975f8708
PA
21122020-06-18 Pedro Alves <palves@redhat.com>
2113
2114 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2115 thread.
2116 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2117 Instead use switch_to_thread.
2118 (gnu_nat_target::detach): Use switch_to_no_thread
2119 instead of writing to inferior_ptid directly. Used passed-in
2120 inferior instead of looking up the inferior by pid.
2121
1a204730
PA
21222020-06-18 Pedro Alves <palves@redhat.com>
2123
2124 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2125 inferior_ptid.
2126
ebe84f23
PA
21272020-06-18 Pedro Alves <palves@redhat.com>
2128
2129 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2130 inferior_ptid.
2131 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2132 thread.
2133 (nto_procfs_target::detach): Avoid referencing
2134 inferior_ptid. Use switch_to_no_thread instead of writing to
2135 inferior_ptid directly.
2136 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2137 instead of writing to inferior_ptid directly.
2138 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2139 to thread.
2140
191f02e5
PA
21412020-06-18 Pedro Alves <palves@redhat.com>
2142
2143 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2144 after creating it, instead of writing to inferior_ptid.
2145 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2146 to inferior_ptid directly.
2147 (gdbsim_target::wait): Don't write to inferior_ptid.
2148
0ac55310
PA
21492020-06-18 Pedro Alves <palves@redhat.com>
2150
2151 * remote.c (remote_target::remote_notice_new_inferior): Use
2152 switch_to_thread instead of writing to inferior_ptid directly.
2153 (remote_target::add_current_inferior_and_thread): Use
2154 switch_to_no_thread instead of writing to inferior_ptid directly.
2155 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2156 and switch_to_thread instead of using set_current_inferior or
2157 writing to inferior_ptid directly.
2158
5233f39b
PA
21592020-06-18 Pedro Alves <palves@redhat.com>
2160
2161 * tracectf.c (ctf_target_open): Switch to added thread instead of
2162 writing to inferior_ptid directly.
2163 (ctf_target::close): Use switch_to_no_thread instead of writing to
2164 inferior_ptid directly.
2165
087e161b
PA
21662020-06-18 Pedro Alves <palves@redhat.com>
2167
2168 * tracefile-tfile.c (tfile_target_open): Don't write to
2169 inferior_ptid directly, instead switch to added thread.
2170 (tfile_target::close): Use switch_to_no_thread instead of writing
2171 to inferior_ptid directly.
2172
7fb43e53
PA
21732020-06-18 Pedro Alves <palves@redhat.com>
2174
2175 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2176 (procfs_target::detach): Use switch_to_no_thread
2177 instead of writing to inferior_ptid directly.
2178 (do_attach): Change return type to void. Switch to the added
2179 thread.
2180 (procfs_target::create_inferior): Switch to the added thread.
2181 (procfs_do_thread_registers): Don't write to inferior_ptid.
2182
18493a00
PA
21832020-06-18 Pedro Alves <palves@redhat.com>
2184
2185 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2186 of writing to inferior_ptid.
2187 (scoped_restore_exited_inferior): Delete.
2188 (handle_vfork_child_exec_or_exit): Simplify using
2189 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2190 instead of writing to inferior_ptid.
2191 (THREAD_STOPPED_BY): Delete.
2192 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2193 (thread_stopped_by_hw_breakpoint): Delete.
2194 (save_waitstatus): Use
2195 scoped_restore_current_thread+switch_to_thread, and call
2196 target_stopped_by_watchpoint instead of
2197 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2198 instead of thread_stopped_by_sw_breakpoint, and
2199 target_stopped_by_hw_breakpoint instead of
2200 thread_stopped_by_hw_breakpoint.
2201 (handle_inferior_event)
2202 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2203 inferior_ptid directly, nor
2204 set_current_inferior/set_current_program_space. Use
2205 switch_to_thread / switch_to_inferior_no_thread instead.
2206
a0776b13
PA
22072020-06-18 Pedro Alves <palves@redhat.com>
2208
2209 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2210 instead of writing to inferior_ptid.
2211
6155c136
PA
22122020-06-18 Pedro Alves <palves@redhat.com>
2213
2214 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2215 added thread.
2216 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2217 to the added thread.
2218 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2219 instead of writing to inferior_ptid.
2220
c5316fc6
PA
22212020-06-18 Pedro Alves <palves@redhat.com>
2222
2223 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2224 (register_to_value_test): Mock a program_space too. Heap-allocate
2225 the address space. Don't write to inferior_ptid. Use
2226 switch_to_thread instead.
2227
8df01799
PA
22282020-06-18 Pedro Alves <palves@redhat.com>
2229
2230 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2231 Delete.
2232 (find_signalled_thread()): New, factored out from
2233 linux_make_corefile_notes and adjusted to handle exited threads.
2234 (linux_make_corefile_notes): Adjust to use the new
2235 find_signalled_thread.
2236
41792d68
PA
22372020-06-18 Pedro Alves <palves@redhat.com>
2238
2239 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2240 of saving/restoring inferior_ptid.
2241
612f258a
TT
22422020-06-17 Tom Tromey <tom@tromey.com>
2243
2244 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2245 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2246 declare.
2247 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2248
efb763a5
SM
22492020-06-15 Simon Marchi <simon.marchi@efficios.com>
2250
2251 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2252 of partial symtabs.
2253
2951f6c0
SM
22542020-06-17 Simon Marchi <simon.marchi@efficios.com>
2255
2256 * regformats/reg-arm.dat: Remove.
2257 * regformats/reg-bfin.dat: Remove.
2258 * regformats/reg-cris.dat: Remove.
2259 * regformats/reg-crisv32.dat: Remove.
2260 * regformats/reg-m32r.dat: Remove.
2261 * regformats/reg-tilegx.dat: Remove.
2262 * regformats/reg-tilegx32.dat: Remove.
2263
7d458ea5
SM
22642020-06-17 Simon Marchi <simon.marchi@efficios.com>
2265
2266 * features/Makefile (WHICH): Remove arm files.
2267 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2268 * regformats/arm/arm-with-neon.dat: Remove.
2269 * regformats/arm/arm-with-vfpv2.dat: Remove.
2270 * regformats/arm/arm-with-vfpv3.dat: Remove.
2271
3af96c0d
SM
22722020-06-17 Simon Marchi <simon.marchi@efficios.com>
2273
2274 * features/Makefile (XMLTOC): Remove rx.xml.
2275
b25e22fd
PA
22762020-06-17 Pedro Alves <palves@redhat.com>
2277
2278 * gdbthread.h (thread_control_state) <trap_expected> Update
2279 comments.
2280
a78a19b1
AB
22812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2282
2283 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2284 ada_language::lookup_symbol_nonlocal.
2285 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2286 (ada_language::lookup_symbol_nonlocal): New member function,
2287 implementation from ada_lookup_symbol_nonlocal.
2288 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2289 initializer.
2290 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2291 initializer.
2292 (cplus_language::lookup_symbol_nonlocal): New member function.
2293 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2294 (minimal_language_data) Likewise.
2295 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2296 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2297 initializer.
2298 (d_language::lookup_symbol_nonlocal): New member function.
2299 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2300 initializer.
2301 (f_language::lookup_symbol_nonlocal): New member function.
2302 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2303 initializer.
2304 * language.c (unknown_language_data): Likewise.
2305 (auto_language_data): Likewise.
2306 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2307 field.
2308 (language_defn::lookup_symbol_nonlocal): New member function.
2309 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2310 initializer.
2311 * objc-lang.c (objc_language_data): Likewise.
2312 * opencl-lang.c (opencl_language_data): Likewise.
2313 * p-lang.c (pascal_language_data): Likewise.
2314 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2315 rust_language::lookup_symbol_nonlocal.
2316 (rust_language_data): Delete la_lookup_symbol_nonlocal
2317 initializer.
2318 (rust_language::lookup_symbol_nonlocal): New member function,
2319 implementation from rust_lookup_symbol_nonlocal.
2320 * symtab.c (lookup_symbol_aux): Update call to
2321 lookup_symbol_nonlocal.
2322 (basic_lookup_symbol_nonlocal): Rename to...
2323 (language_defn::lookup_symbol_nonlocal): ...this, and update
2324 header comment. Remove language_defn parameter, and replace with
2325 uses of `this'.
2326 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2327
ebe2334e
AB
23282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2329
2330 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2331 initializer.
2332 (ada_language::value_print_inner): New member function.
2333 * c-lang.c (c_language_data): Delete la_value_print_inner
2334 initializer.
2335 (cplus_language_data): Likewise.
2336 (asm_language_data): Likewise.
2337 (minimal_language_data): Likewise.
2338 * d-lang.c (d_language_data): Likewise.
2339 (d_language::value_print_inner): New member function.
2340 * f-lang.c (f_language_data): Delete la_value_print_inner
2341 initializer.
2342 (f_language::value_print_inner): New member function.
2343 * f-lang.h (f_value_print_innner): Rename to...
2344 (f_value_print_inner): ...this (note spelling of 'inner').
2345 * f-valprint.c (f_value_print_innner): Rename to...
2346 (f_value_print_inner): ...this (note spelling of 'inner').
2347 * go-lang.c (go_language_data): Delete la_value_print_inner
2348 initializer.
2349 (go_language::value_print_inner): New member function.
2350 * language.c (language_defn::value_print_inner): Define new member
2351 function.
2352 (unk_lang_value_print_inner): Delete.
2353 (unknown_language_data): Delete la_value_print_inner initializer.
2354 (unknown_language::value_print_inner): New member function.
2355 (auto_language_data): Delete la_value_print_inner initializer.
2356 (auto_language::value_print_inner): New member function.
2357 * language.h (language_data): Delete la_value_print_inner field.
2358 (language_defn::value_print_inner): Delcare new member function.
2359 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2360 initializer.
2361 (m2_language::value_print_inner): New member function.
2362 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2363 initializer.
2364 * opencl-lang.c (opencl_language_data): Likewise.
2365 * p-lang.c (pascal_language_data): Likewise.
2366 (pascal_language::value_print_inner): New member function.
2367 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2368 initializer.
2369 (rust_language::value_print_inner): New member function.
2370 * valprint.c (do_val_print): Update call to value_print_inner.
2371
a1d1fa3e
AB
23722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2373
2374 * ada-lang.c (ada_language_data): Delete la_value_print
2375 initializer.
2376 (ada_language::value_print): New member function.
2377 * c-lang.c (c_language_data): Delete la_value_print initializer.
2378 (cplus_language_data): Likewise.
2379 (asm_language_data): Likewise.
2380 (minimal_language_data): Likewise.
2381 * d-lang.c (d_language_data): Likewise.
2382 * f-lang.c (f_language_data): Likewise.
2383 * go-lang.c (go_language_data): Likewise.
2384 * language.c (unk_lang_value_print): Delete.
2385 (language_defn::value_print): Define new member function.
2386 (unknown_language_data): Delete la_value_print initializer.
2387 (unknown_language::value_print): New member function.
2388 (auto_language_data): Delete la_value_print initializer.
2389 (auto_language::value_print): New member function.
2390 * language.h (language_data): Delete la_value_print field.
2391 (language_defn::value_print): Declare new member function.
2392 (LA_VALUE_PRINT): Update call to value_print.
2393 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2394 * objc-lang.c (objc_language_data): Likewise.
2395 * opencl-lang.c (opencl_language_data): Likewise.
2396 * p-lang.c (pascal_language_data): Likewise.
2397 (pascal_language::value_print): New member function.
2398 * rust-lang.c (rust_language_data): Delete la_value_print
2399 initializer.
2400
f16a9f57
AB
24012020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2402
2403 * ada-lang.c (ada_watch_location_expression): Rename to
2404 ada_language::watch_location_expression.
2405 (ada_language_data): Delete la_watch_location_expression
2406 initializer.
2407 (ada_language::watch_location_expression): New member function,
2408 implementation from ada_watch_location_expression.
2409 * breakpoint.c (watch_command_1): Update call to
2410 watch_location_expression.
2411 * c-lang.c (c_watch_location_expression): Rename to
2412 language_defn::watch_location_expression.
2413 (c_language_data): Delete la_watch_location_expression
2414 initializer.
2415 (cplus_language_data): Likewise.
2416 (asm_language_data): Likewise.
2417 (minimal_language_data): Likewise.
2418 * c-lang.h (c_watch_location_expression): Delete declaration.
2419 * d-lang.c (d_language_data): Delete la_watch_location_expression
2420 initializer.
2421 * f-lang.c (f_language_data): Likewise.
2422 * go-lang.c (go_language_data): Likewise.
2423 * language.c (language_defn::watch_location_expression): Member
2424 function implementation from c_watch_location_expression.
2425 (unknown_language_data): Delete la_watch_location_expression
2426 initializer.
2427 (auto_language_data): Likewise.
2428 * language.h (language_data): Delete la_watch_location_expression
2429 field.
2430 (language_defn::watch_location_expression): Declare new member
2431 function.
2432 * m2-lang.c (m2_language_data): Delete
2433 la_watch_location_expression initializer.
2434 * objc-lang.c (objc_language_data): Likewise.
2435 * opencl-lang.c (opencl_language_data): Likewise.
2436 * p-lang.c (pascal_language_data): Likewise.
2437 * rust-lang.c (rust_watch_location_expression): Rename to
2438 rust_language::watch_location_expression.
2439 (rust_language_data): Delete la_watch_location_expression
2440 initializer.
2441 (rust_language::watch_location_expression): New member function,
2442 implementation from rust_watch_location_expression.
2443
7e56227d
AB
24442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2445
2446 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2447 ada_language::collect_symbol_completion_matches.
2448 (ada_language_data): Delete la_collect_symbol_completion_matches
2449 initializer.
2450 (ada_language::collect_symbol_completion_matches): New member
2451 function, implementation from
2452 ada_collect_symbol_completion_matches.
2453 * c-lang.c (c_language_data): Delete
2454 la_collect_symbol_completion_matches initializer.
2455 (cplus_language_data): Likewise.
2456 (asm_language_data): Likewise.
2457 (minimal_language_data): Likewise.
2458 * d-lang.c (d_language_data): Likewise.
2459 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2460 f_language::collect_symbol_completion_matches.
2461 (f_language_data): Delete la_collect_symbol_completion_matches
2462 initializer.
2463 (f_language::collect_symbol_completion_matches) New member
2464 function, implementation from f_collect_symbol_completion_matches.
2465 * go-lang.c (go_language_data): Delete
2466 la_collect_symbol_completion_matches initializer.
2467 * language.c (unknown_language_data): Likewise.
2468 (auto_language_data): Likewise.
2469 * language.h (language_data): Delete
2470 la_collect_symbol_completion_matches field.
2471 (language_defn::collect_symbol_completion_matches): New member
2472 function.
2473 * m2-lang.c (m2_language_data): Delete
2474 la_collect_symbol_completion_matches initializer.
2475 * objc-lang.c (objc_language_data): Likewise.
2476 * opencl-lang.c (opencl_language_data): Likewise.
2477 * p-lang.c (pascal_language_data): Likewise.
2478 * rust-lang.c (rust_language_data): Likewise.
2479 * symtab.c (default_collect_symbol_completion_matches): Delete.
2480 (collect_symbol_completion_matches): Update call to
2481 collect_symbol_completion_matches.
2482 (collect_symbol_completion_matches_type): Likewise.
2483 * symtab.h (default_collect_symbol_completion_matches): Delete
2484 declaration.
2485
53fc67f8
AB
24862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2487
2488 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2489 (ada_language_data): Delete la_word_break_characters initializer.
2490 (ada_language::word_break_characters): New member function.
2491 * c-lang.c (c_language_data): Delete la_word_break_characters
2492 initializer.
2493 (cplus_language_data): Likewise.
2494 (asm_language_data): Likewise.
2495 (minimal_language_data): Likewise.
2496 * completer.c: Update global comment.
2497 (advance_to_expression_complete_word_point): Update call to
2498 word_break_characters.
2499 (complete_files_symbols): Likewise.
2500 (complete_line_internal_1): Likewise.
2501 (default_completer_handle_brkchars): Likewise.
2502 (skip_quoted_chars): Likewise.
2503 * d-lang.c (d_language_data): Delete la_word_break_characters
2504 initializer.
2505 * f-lang.c (f_word_break_characters): Delete.
2506 (f_language_data): Delete la_word_break_characters initializer.
2507 (f_language::word_break_characters): New member function.
2508 * go-lang.c (go_language_data): Delete la_word_break_characters
2509 initializer.
2510 * language.c (unknown_language_data): Likewise.
2511 (auto_language_data): Likewise.
2512 * language.h (default_word_break_characters): Move declaration to
2513 earlier in the file.
2514 (language_data): Delete la_word_break_characters field.
2515 (language_defn::word_break_characters): New member function.
2516 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2517 initializer.
2518 * objc-lang.c (objc_language_data): Likewise.
2519 * opencl-lang.c (opencl_language_data): Likewise.
2520 * p-lang.c (pascal_language_data): Likewise.
2521 * rust-lang.c (rust_language_data): Likewise.
2522
c9debfb9
AB
25232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2524
2525 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2526 (ada_language_data): Delete la_get_symbol_name_matcher
2527 initializer.
2528 (language_defn::get_symbol_name_matcher_inner): New member
2529 function.
2530 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2531 initializer.
2532 (cplus_language_data): Likewise.
2533 (cplus_language::get_symbol_name_matcher_inner): New member
2534 function.
2535 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2536 (minimal_language_data): Likewise.
2537 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2538 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2539 initializer.
2540 * dictionary.c (iter_match_first_hashed): Update call to
2541 get_symbol_name_matcher.
2542 (iter_match_next_hashed): Likewise.
2543 (iter_match_next_linear): Likewise.
2544 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2545 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2546 initializer.
2547 (f_language::get_symbol_name_matcher_inner): New member function.
2548 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2549 initializer.
2550 * language.c (default_symbol_name_matcher): Update header comment,
2551 make static.
2552 (language_defn::get_symbol_name_matcher): New definition.
2553 (language_defn::get_symbol_name_matcher_inner): Likewise.
2554 (get_symbol_name_matcher): Delete.
2555 (unknown_language_data): Delete la_get_symbol_name_matcher
2556 initializer.
2557 (auto_language_data): Likewise.
2558 * language.h (language_data): Delete la_get_symbol_name_matcher
2559 field.
2560 (language_defn::get_symbol_name_matcher): New member function.
2561 (language_defn::get_symbol_name_matcher_inner): Likewise.
2562 (default_symbol_name_matcher): Delete declaration.
2563 * linespec.c (find_methods): Update call to
2564 get_symbol_name_matcher.
2565 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2566 initializer.
2567 * minsyms.c (lookup_minimal_symbol): Update call to
2568 get_symbol_name_matcher.
2569 (iterate_over_minimal_symbols): Likewise.
2570 * objc-lang.c (objc_language_data): Delete
2571 la_get_symbol_name_matcher initializer.
2572 * opencl-lang.c (opencl_language_data): Likewise.
2573 * p-lang.c (pascal_language_data): Likewise.
2574 * psymtab.c (psymbol_name_matches): Update call to
2575 get_symbol_name_matcher.
2576 * rust-lang.c (rust_language_data): Delete
2577 la_get_symbol_name_matcher initializer.
2578 * symtab.c (symbol_matches_search_name): Update call to
2579 get_symbol_name_matcher.
2580 (compare_symbol_name): Likewise.
2581
9a49ad8c
AB
25822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2583
2584 * ada-lang.c (ada_language_data): Delete la_compute_program
2585 initializer.
2586 * c-lang.c (c_language_data): Likewise.
2587 (c_language::compute_program): New member function.
2588 (cplus_language_data): Delete la_compute_program initializer.
2589 (cplus_language::compute_program): New member function.
2590 (asm_language_data): Delete la_compute_program initializer.
2591 (minimal_language_data): Likewise.
2592 * c-lang.h (c_compute_program): Update comment.
2593 (cplus_compute_program): Likewise.
2594 * compile/compile-c-support.c (c_compute_program): Likewise.
2595 (cplus_compute_program): Likewise.
2596 * compile/compile.c (compile_to_object): Update call to
2597 la_compute_program.
2598 * d-lang.c (d_language_data): Delete la_compute_program
2599 initializer.
2600 * f-lang.c (f_language_data): Likewise.
2601 * go-lang.c (go_language_data): Likewise.
2602 * language.c (unknown_language_data): Likewise.
2603 (auto_language_data): Likewise.
2604 * language.h (language_data): Delete la_compute_program field.
2605 (language_defn::compute_program): New member function.
2606 * m2-lang.c (m2_language_data): Delete la_compute_program
2607 initializer.
2608 * objc-lang.c (objc_language_data): Likewise.
2609 * opencl-lang.c (opencl_language_data): Likewise.
2610 * p-lang.c (pascal_language_data): Likewise.
2611 * rust-lang.c (rust_language_data): Likewise.
2612
eff93b4d
AB
26132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2614
2615 * ada-lang.c (ada_language_data) Delete
2616 la_class_name_from_physname initializer.
2617 * c-lang.c (c_language_data): Likewise.
2618 (cplus_language_data): Likewise.
2619 (cplus_language::class_name_from_physname): New member function.
2620 (asm_language_data): Delete la_class_name_from_physname
2621 initializer.
2622 (minimal_language_data): Likewise.
2623 * d-lang.c (d_language_data): Likewise.
2624 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2625 method on language_defn class.
2626 (guess_full_die_structure_name): Likewise.
2627 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2628 initializer.
2629 * go-lang.c (go_language_data): Likewise.
2630 * language.c (language_class_name_from_physname): Delete.
2631 (unk_lang_class_name): Delete.
2632 (unknown_language_data): Delete la_class_name_from_physname
2633 initializer.
2634 (auto_language_data): Likewise.
2635 * language.h (language_data): Delete la_class_name_from_physname
2636 field.
2637 (language_defn::class_name_from_physname): New function.
2638 (language_class_name_from_physname): Delete declaration.
2639 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2640 initializer.
2641 * objc-lang.c (objc_language_data): Likewise.
2642 * opencl-lang.c (opencl_language_data): Likewise.
2643 * p-lang.c (pascal_language_data): Likewise.
2644 * rust-lang.c (rust_language_data): Likewise.
2645
de543742
TT
26462020-06-16 Tom Tromey <tom@tromey.com>
2647
2648 * tui/tui-data.h (STATUS_NAME): New macro.
2649 * tui/tui-layout.c (tui_remove_some_windows)
2650 (initialize_known_windows, tui_register_window)
2651 (tui_layout_split::remove_windows, initialize_layouts)
2652 (tui_new_layout_command): Don't use hard-coded window names.
2653
a350efd4
TT
26542020-06-16 Tom Tromey <tom@tromey.com>
2655
2656 PR tui/25348:
2657 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2658 tui_initialize_readline. Only run once. Call rl_initialize.
2659 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2660 tui_initialize_readline.
2661 * tui/tui-io.c (tui_setup_io): Call
2662 tui_ensure_readline_initialized.
2663 * tui/tui-interp.c (tui_interp::init): Update.
2664
39ec0490
TT
26652020-06-16 Tom Tromey <tom@tromey.com>
2666
2667 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2668 Also preserve the status window.
2669
d2d1ea20
TT
26702020-06-16 Tom Tromey <tom@tromey.com>
2671
2672 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2673 where m_window==nullptr.
2674
66920317
TT
26752020-06-15 Tom Tromey <tromey@adacore.com>
2676
2677 * windows-nat.c (windows_nat::handle_output_debug_string):
2678 Update.
2679 (windows_nat::handle_ms_vc_exception): Update.
2680 * target.h (target_read_string): Change API.
2681 * target.c (target_read_string): Change API.
2682 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2683 Update.
2684 * solib-frv.c (frv_current_sos): Update.
2685 * solib-dsbt.c (dsbt_current_sos): Update.
2686 * solib-darwin.c (darwin_current_sos): Update.
2687 * linux-thread-db.c (inferior_has_bug): Update.
2688 * expprint.c (print_subexp_standard): Update.
2689 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2690 (ada_exception_message_1): Update.
2691
a5d871dd
TT
26922020-06-15 Tom Tromey <tromey@adacore.com>
2693
2694 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2695
670e35fa
TT
26962020-06-15 Tom Tromey <tromey@adacore.com>
2697
2698 * valprint.c (read_string): Update comment.
2699 * target.c (MIN): Remove.
2700 (target_read_string): Rewrite.
2701
f5272a3b
TT
27022020-06-15 Tom Tromey <tromey@adacore.com>
2703
2704 * corefile.c (read_memory_string): Remove.
2705 * ada-valprint.c (ada_value_print_ptr): Update.
2706 * ada-lang.h (ada_tag_name): Change return type.
2707 * ada-lang.c (type_from_tag): Update.
2708 (ada_tag_name_from_tsd): Change return type. Use
2709 target_read_string.
2710 (ada_tag_name): Likewise.
2711 * gdbcore.h (read_memory_string): Don't declare.
2712
2c074f49
HD
27132020-06-14 Hannes Domani <ssbssa@yahoo.de>
2714
2715 * symtab.c (rbreak_command): Ignore Windows drive colon.
2716
6a17d503
SM
27172020-06-12 Simon Marchi <simon.marchi@efficios.com>
2718
2719 * NEWS: Mention removed GDBserver host support.
2720
453c733f
NC
27212020-06-12 Nelson Chu <nelson.chu@sifive.com>
2722
2723 * features/riscv/rebuild-csr-xml.sh: Updated.
2724
2b4e6a3f
TT
27252020-06-11 Tom Tromey <tom@tromey.com>
2726
2727 PR gdb/18318:
2728 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2729
4412332f
JG
27302020-06-09 Jonny Grant <jg@jguk.org>
27312020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2732
2733 * main.c (captured_main_1): Don't print new line after help.
2734 (print_gdb_help): add mailing list and IRC channel information
2735 to --help. Add new lines between items in the footer. Remove
2736 quotes around bug url.
2737
2f33032a
KS
27382020-06-11 Keith Seitz <keiths@redhat.com>
2739
2740 PR gdb/21356
2741 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2742 Resolve typedefs for type length calculations.
2743
7ab96794
TV
27442020-06-10 Tom de Vries <tdevries@suse.de>
2745
2746 PR ada/24713
2747 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2748 (write_psymbols): Enable .gdb_index for ada.
2749 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2750 ada.
2751
e5f3ece2
TV
27522020-06-10 Tom de Vries <tdevries@suse.de>
2753
2754 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2755 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2756 namei" instead of "const char *name" argument.
2757 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2758 dw2_symtab_iter_init.
2759
940da03e
SM
27602020-06-08 Simon Marchi <simon.marchi@efficios.com>
2761
2762 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2763 to use type::field and field::type instead.
2764
b6cdac4b
SM
27652020-06-08 Simon Marchi <simon.marchi@efficios.com>
2766
2767 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2768 to use field::type instead.
2769
5d14b6e5
SM
27702020-06-08 Simon Marchi <simon.marchi@efficios.com>
2771
2772 * gdbtypes.h (struct field) <type, set_type>: New methods.
2773 Rename `type` field to...
2774 <m_type>: ... this. Change references throughout to use type or
2775 set_type methods.
2776 (FIELD_TYPE): Use field::type. Change call sites that modify
2777 the field's type to use field::set_type instead.
2778
3d967001
SM
27792020-06-08 Simon Marchi <simon.marchi@efficios.com>
2780
2781 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2782 to use type::index_type instead.
2783
262abc0d
SM
27842020-06-08 Simon Marchi <simon.marchi@efficios.com>
2785
2786 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2787 methods.
2788 (TYPE_INDEX_TYPE): Use type::index_type.
2789 * gdbtypes.c (create_array_type_with_stride): Likewise.
2790
82836c92
TT
27912020-06-07 Tom Tromey <tom@tromey.com>
2792
2793 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2794 parameter.
2795 (generic_value_print): Update.
2796
940dace9
AB
27972020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2798
2799 Revert commit 982a38f60b0.
2800 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2801
982a38f6
AB
28022020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2803
2804 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2805 avoid use after free.
2806
82f06518
TV
28072020-06-05 Tom de Vries <tdevries@suse.de>
2808
2809 * NEWS: Fix typos.
2810
f8c41851
SM
28112020-06-04 Simon Marchi <simon.marchi@efficios.com>
2812
2813 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2814 the per_bfd object.
2815 (dwarf2_read_debug_names): Likewise.
2816 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2817 object when re-using a per_bfd object with an index.
2818
f9b5d5ea
TV
28192020-06-03 Tom de Vries <tdevries@suse.de>
2820
2821 PR symtab/26046
2822 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2823 children for C++.
2824 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2825 DW_TAG_subprogram.
2826
f6eee2d0
AB
28272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2828
2829 * ada-lang.c (ada_language_data): Delete skip_trampoline
2830 initializer.
2831 * c-lang.c (c_language_data): Likewise.
2832 (cplus_language_data): Likewise.
2833 (cplus_language::skip_trampoline): New member function.
2834 (asm_language_data): Delete skip_trampoline initializer.
2835 (minimal_language_data): Likewise.
2836 * d-lang.c (d_language_data): Likewise.
2837 * f-lang.c (f_language_data): Likewise.
2838 * go-lang.c (go_language_data): Likewise.
2839 * language.c (unk_lang_trampoline): Delete function.
2840 (skip_language_trampoline): Update.
2841 (unknown_language_data): Delete skip_trampoline initializer.
2842 (auto_language_data): Likewise.
2843 * language.h (language_data): Delete skip_trampoline field.
2844 (language_defn::skip_trampoline): New function.
2845 * m2-lang.c (m2_language_data): Delete skip_trampoline
2846 initializer.
2847 * objc-lang.c (objc_skip_trampoline): Delete function, move
2848 implementation to objc_language::skip_trampoline.
2849 (objc_language_data): Delete skip_trampoline initializer.
2850 (objc_language::skip_trampoline): New member function with
2851 implementation from objc_skip_trampoline.
2852 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2853 initializer.
2854 * p-lang.c (pascal_language_data): Likewise.
2855 * rust-lang.c (rust_language_data): Likewise.
2856
0a50df5d
AB
28572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2858
2859 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2860 (ada_language::demangle): New member function.
2861 * c-lang.c (c_language_data): Delete la_demangle initializer.
2862 (cplus_language_data): Delete la_demangle initializer.
2863 (cplus_language::demangle): New member function.
2864 (asm_language_data): Delete la_demangle initializer.
2865 (minimal_language_data): Delete la_demangle initializer.
2866 * d-lang.c (d_language_data): Delete la_demangle initializer.
2867 (d_language::demangle): New member function.
2868 * f-lang.c (f_language_data): Delete la_demangle initializer.
2869 (f_language::demangle): New member function.
2870 * go-lang.c (go_language_data): Delete la_demangle initializer.
2871 (go_language::demangle): New member function.
2872 * language.c (language_demangle): Update.
2873 (unk_lang_demangle): Delete.
2874 (unknown_language_data): Delete la_demangle initializer.
2875 (unknown_language::demangle): New member function.
2876 (auto_language_data): Delete la_demangle initializer.
2877 (auto_language::demangle): New member function.
2878 * language.h (language_data): Delete la_demangle field.
2879 (language_defn::demangle): New function.
2880 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2881 * objc-lang.c (objc_language_data): Delete la_demangle
2882 initializer.
2883 (objc_language::demangle): New member function.
2884 * opencl-lang.c (opencl_language_data): Delete la_demangle
2885 initializer.
2886 * p-lang.c (pascal_language_data): Likewise.
2887 * rust-lang.c (rust_language_data): Likewise.
2888 (rust_language::demangle): New member function.
2889
fbfb0a46
AB
28902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2891
2892 * ada-lang.c (ada_language_data): Delete la_print_type
2893 initializer.
2894 (ada_language::print_type): New member function.
2895 * c-lang.c (c_language_data): Delete la_print_type initializer.
2896 (c_language::print_type): New member function.
2897 (cplus_language_data): Delete la_print_type initializer.
2898 (cplus_language::print_type): New member function.
2899 (asm_language_data): Delete la_print_type initializer.
2900 (asm_language::print_type): New member function.
2901 (minimal_language_data): Delete la_print_type initializer.
2902 (minimal_language::print_type): New member function.
2903 * d-lang.c (d_language_data): Delete la_print_type initializer.
2904 (d_language::print_type): New member function.
2905 * f-lang.c (f_language_data): Delete la_print_type initializer.
2906 (f_language::print_type): New member function.
2907 * go-lang.c (go_language_data): Delete la_print_type initializer.
2908 (go_language::print_type): New member function.
2909 * language.c (unk_lang_print_type): Delete.
2910 (unknown_language_data): Delete la_print_type initializer.
2911 (unknown_language::print_type): New member function.
2912 (auto_language_data): Delete la_print_type initializer.
2913 (auto_language::print_type): New member function.
2914 * language.h (language_data): Delete la_print_type field.
2915 (language_defn::print_type): New function.
2916 (LA_PRINT_TYPE): Update.
2917 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2918 (m2_language::print_type): New member function.
2919 * objc-lang.c (objc_language_data): Delete la_print_type
2920 initializer.
2921 (objc_language::print_type): New member function.
2922 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2923 to opencl_language::print_type.
2924 (opencl_language_data): Delete la_print_type initializer.
2925 (opencl_language::print_type): New member function, implementation
2926 from opencl_print_type.
2927 * p-lang.c (pascal_language_data): Delete la_print_type
2928 initializer.
2929 (pascal_language::print_type): New member function.
2930 * rust-lang.c (rust_print_type): Delete, implementation moved to
2931 rust_language::print_type.
2932 (rust_language_data): Delete la_print_type initializer.
2933 (rust_language::print_type): New member function, implementation
2934 from rust_print_type.
2935
6f827019
AB
29362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2937
2938 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2939 implementation moves to...
2940 (ada_language::sniff_from_mangled_name): ...here. Update return
2941 type.
2942 (ada_language_data): Delete la_sniff_from_mangled_name
2943 initializer.
2944 * c-lang.c (c_language_data): Likewise.
2945 (cplus_language_data): Likewise.
2946 (cplus_language::sniff_from_mangled_name): New member function,
2947 implementation taken from gdb_sniff_from_mangled_name.
2948 (asm_language_data): Delete la_sniff_from_mangled_name
2949 initializer.
2950 (minimal_language_data): Likewise.
2951 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2952 implementation moves to cplus_language::sniff_from_mangled_name.
2953 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2954 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2955 moves to...
2956 (d_language::sniff_from_mangled_name): ...here.
2957 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2958 * f-lang.c (f_language_data): Likewise.
2959 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2960 moves to...
2961 (go_language::sniff_from_mangled_name): ...here.
2962 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2963 * language.c (language_sniff_from_mangled_name): Delete.
2964 (unknown_language_data): Delete la_sniff_from_mangled_name
2965 initializer.
2966 (auto_language_data): Likewise.
2967 * language.h (language_data): Delete la_sniff_from_mangled_name
2968 field.
2969 (language_defn::sniff_from_mangled_name): New function.
2970 (language_sniff_from_mangled_name): Delete declaration.
2971 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2972 field.
2973 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2974 implementation moves to...
2975 (objc_language::sniff_from_mangled_name): ...here.
2976 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2977 * opencl-lang.c (opencl_language_data): Likewise.
2978 * p-lang.c (pascal_language_data): Likewise.
2979 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2980 implementation moves to...
2981 (rust_language::sniff_from_mangled_name): ...here.
2982 (rust_language_data): Delete la_sniff_from_mangled_name
2983 initializer.
2984 * symtab.c (symbol_find_demangled_name): Call
2985 sniff_from_mangled_name member function.
2986
fb8006fd
AB
29872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2988
2989 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2990 initializer.
2991 * c-lang.c (c_language_data): Likewise.
2992 (cplus_language_data): Likewise.
2993 (cplus_language::search_name_hash): New member function.
2994 (asm_language_data): Delete la_search_name_hash initializer.
2995 (minimal_language_data): Likewise.
2996 * d-lang.c (d_language_data): Likewise.
2997 * dictionary.c (default_search_name_hash): Rename to...
2998 (language_defn::search_name_hash): ...this.
2999 * f-lang.c (f_language_data): Likewise.
3000 (f_language::search_name_hash): New member function.
3001 * go-lang.c (go_language_data): Delete la_search_name_hash
3002 initializer.
3003 * language.c (unknown_language_data): Likewise.
3004 (auto_language_data): Likewise.
3005 * language.h (struct language_data): Delete la_search_name_hash
3006 field.
3007 (language_defn::search_name_hash): Declare new member function.
3008 (default_search_name_hash): Delete declaration.
3009 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3010 initializer.
3011 * objc-lang.c (objc_language_data): Likewise.
3012 * opencl-lang.c (opencl_language_data): Likewise.
3013 * p-lang.c (pascal_language_data): Likewise.
3014 * rust-lang.c (rust_language_data): Likewise.
3015 * symtab.c (search_name_hash): Update call.
3016
8e25bafe
AB
30172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3018
3019 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3020 initializer.
3021 * c-lang.c (class compile_instance): Declare.
3022 (c_language_data): Delete la_get_compile_instance initializer.
3023 (c_language::get_compile_instance): New member function.
3024 (cplus_language_data): Delete la_get_compile_instance initializer.
3025 (cplus_language::get_compile_instance): New member function.
3026 (asm_language_data): Delete la_get_compile_instance initializer.
3027 (minimal_language_data): Likewise.
3028 * c-lang.h (c_get_compile_context): Update comment.
3029 (cplus_get_compile_context): Update comment.
3030 * compile/compile.c (compile_to_object): Update calls, don't rely
3031 on function pointer being NULL.
3032 * d-lang.c (d_language_data): Delete la_get_compile_instance
3033 initializer.
3034 * f-lang.c (f_language_data): Likewise.
3035 * go-lang.c (go_language_data): Likewise.
3036 * language.c (unknown_language_data): Likewise.
3037 (auto_language_data): Likewise.
3038 * language.h (language_data): Delete la_get_compile_instance field.
3039 (language_defn::get_compile_instance): New member function.
3040 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3041 initializer.
3042 * objc-lang.c (objc_language_data): Likewise.
3043 * opencl-lang.c (opencl_language_data): Likewise.
3044 * p-lang.c (pascal_language_data): Likewise.
3045 * rust-lang.c (rust_language_data): Likewise.
3046
4009ee92
AB
30472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3048
3049 * ada-lang.c (ada_add_all_symbols): Update comment.
3050 (ada_iterate_over_symbols): Delete, move implementation to...
3051 (ada_language::iterate_over_symbols): ...here, a new member
3052 function, rewrite to use range based for loop.
3053 (ada_language_data): Delete la_iterate_over_symbols initializer.
3054 * c-lang.c (c_language_data): Likewise.
3055 (cplus_language_data): Likewise.
3056 (asm_language_data): Likewise.
3057 (minimal_language_data): Likewise.
3058 * d-lang.c (d_language_data): Likewise.
3059 * f-lang.c (f_language_data): Likewise.
3060 * go-lang.c (go_language_data): Likewise.
3061 * language.c (unknown_language_data): Likewise.
3062 (auto_language_data): Likewise.
3063 * language.h (language_data): Delete la_iterate_over_symbols field.
3064 (language_defn::iterate_over_symbols): New member function.
3065 (LA_ITERATE_OVER_SYMBOLS): Update.
3066 * linespec.c (iterate_over_all_matching_symtabs): Update.
3067 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3068 initializer.
3069 * objc-lang.c (objc_language_data): Likewise.
3070 * opencl-lang.c (opencl_language_data): Likewise.
3071 * p-lang.c (pascal_language_data): Likewise.
3072 * rust-lang.c (rust_language_data): Likewise.
3073
54f4ca46
AB
30742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3075
3076 * ada-lang.c (ada_language_data): Delete
3077 la_lookup_transparent_type initializer.
3078 * c-lang.c (c_language_data): Likewise.
3079 (cplus_language_data): Likewise.
3080 (cplus_language::lookup_transparent_type): New member function.
3081 (asm_language_data): Delete la_lookup_transparent_type
3082 initializer.
3083 (minimal_language_data): Likewise.
3084 * d-lang.c (d_language_data): Likewise.
3085 * f-lang.c (f_language_data): Likewise.
3086 * go-lang.c (go_language_data): Likewise.
3087 * language.c (unknown_language_data): Likewise.
3088 (auto_language_data): Likewise.
3089 * language.h (struct language_data): Delete
3090 la_lookup_transparent_type field.
3091 (language_defn::lookup_transparent_type): New member function.
3092 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3093 initializer.
3094 * objc-lang.c (objc_language_data): Likewise.
3095 * opencl-lang.c (opencl_language_data): Likewise.
3096 * p-lang.c (pascal_language_data): Likewise.
3097 * rust-lang.c (rust_language_data): Likewise.
3098 * symtab.c (symbol_matches_domain): Update call.
3099
1fb314aa
AB
31002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3101
3102 * ada-lang.c (ada_language_arch_info): Delete function, move
3103 implementation to...
3104 (ada_language::language_arch_info): ...here, a new member
3105 function.
3106 (ada_language_data): Delete la_language_arch_info.
3107 * c-lang.c (c_language_data): Likewise.
3108 (c_language::language_arch_info): New member function.
3109 (cplus_language_arch_info): Delete function, move
3110 implementation to...
3111 (cplus_language::language_arch_info): ...here, a new member
3112 function.
3113 (cplus_language_data): Delete la_language_arch_info.
3114 (asm_language_data): Likewise.
3115 (asm_language::language_arch_info): New member function.
3116 (minimal_language_data): Delete la_language_arch_info.
3117 (minimal_language::language_arch_info): New member function.
3118 * d-lang.c (d_language_arch_info): Delete function, move
3119 implementation to...
3120 (d_language::language_arch_info): ...here, a new member
3121 function.
3122 (d_language_data): Delete la_language_arch_info.
3123 * f-lang.c (f_language_arch_info): Delete function, move
3124 implementation to...
3125 (f_language::language_arch_info): ...here, a new member
3126 function.
3127 (f_language_data): Delete la_language_arch_info.
3128 * go-lang.c (go_language_arch_info): Delete function, move
3129 implementation to...
3130 (go_language::language_arch_info): ...here, a new member
3131 function.
3132 (go_language_data): Delete la_language_arch_info.
3133 * language.c (unknown_language_data): Likewise.
3134 (unknown_language::language_arch_info): New member function.
3135 (auto_language_data): Delete la_language_arch_info.
3136 (auto_language::language_arch_info): New member function.
3137 (language_gdbarch_post_init): Update call to
3138 la_language_arch_info.
3139 * language.h (language_data): Delete la_language_arch_info
3140 function pointer.
3141 (language_defn::language_arch_info): New function.
3142 * m2-lang.c (m2_language_arch_info): Delete function, move
3143 implementation to...
3144 (m2_language::language_arch_info): ...here, a new member
3145 function.
3146 (m2_language_data): Delete la_language_arch_info.
3147 * objc-lang.c (objc_language_arch_info): Delete function, move
3148 implementation to...
3149 (objc_language::language_arch_info): ...here, a new member
3150 function.
3151 (objc_language_data): Delete la_language_arch_info.
3152 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3153 implementation to...
3154 (opencl_language::language_arch_info): ...here, a new member
3155 function.
3156 (opencl_language_data): Delete la_language_arch_info.
3157 * p-lang.c (pascal_language_arch_info): Delete function, move
3158 implementation to...
3159 (pascal_language::language_arch_info): ...here, a new member
3160 function.
3161 (pascal_language_data): Delete la_language_arch_info.
3162 * rust-lang.c (rust_language_arch_info): Delete function, move
3163 implementation to...
3164 (rust_language::language_arch_info): ...here, a new member
3165 function.
3166 (rust_language_data): Delete la_language_arch_info.
3167
48448202
AB
31682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3169
3170 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3171 initializer.
3172 * c-lang.c (c_language_data): Likewise.
3173 (cplus_language_data): Likewise.
3174 (cplus_language::pass_by_reference_info): New method.
3175 (asm_language_data): Delete la_pass_by_reference initializer.
3176 (minimal_language_data): Likewise.
3177 * cp-abi.c (cp_pass_by_reference): Remove use of
3178 default_pass_by_reference.
3179 * d-lang.c (d_language_data): Likewise.
3180 * f-lang.c (f_language_data): Likewise.
3181 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3182 default_pass_by_reference.
3183 * go-lang.c (go_language_data): Likewise.
3184 * language.c (language_pass_by_reference): Update.
3185 (default_pass_by_reference): Delete.
3186 (unknown_language_data): Delete la_pass_by_reference
3187 initializer.
3188 (auto_language_data): Likewise.
3189 * language.h (struct language_data): Delete la_pass_by_reference
3190 field.
3191 (language_defn::pass_by_reference_info): New member function.
3192 (default_pass_by_reference): Delete declaration.
3193 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3194 initializer.
3195 * objc-lang.c (objc_language_data): Likewise.
3196 * opencl-lang.c (opencl_language_data): Likewise.
3197 * p-lang.c (pascal_language_data): Likewise.
3198 * rust-lang.c (rust_language_data): Likewise.
3199
15e5fd35
AB
32002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3201
3202 * ada-lang.c (ada_read_var_value): Delete function, move
3203 implementation to...
3204 (ada_language::read_var_value): ...here.
3205 (ada_language_data): Delete la_read_var_value initializer.
3206 * c-lang.c (c_language_data): Likewise.
3207 (cplus_language_data): Likewise.
3208 (minimal_language_data): Likewise.
3209 * d-lang.c (d_language_data): Likewise.
3210 * f-lang.c (f_language_data): Likewise.
3211 * findvar.c (default_read_var_value): Rename to...
3212 (language_defn::read_var_value): ...this.
3213 * findvar.c (read_var_value): Update header comment, and change to
3214 call member function instead of function pointer.
3215 * go-lang.c (go_language_data): Likewise.
3216 * language.c (unknown_language_data): Delete la_read_var_value
3217 initializer.
3218 (auto_language_data): Likewise.
3219 * language.h (struct language_data): Delete la_read_var_value
3220 field.
3221 (language_defn::read_var_value): New member function.
3222 (default_read_var_value): Delete declaration.
3223 * m2-lang.c (m2_language_data): Delete la_read_var_value
3224 initializer.
3225 * objc-lang.c (objc_language_data): Likewise.
3226 * opencl-lang.c (opencl_language_data): Likewise.
3227 * p-lang.c (pascal_language_data): Likewise.
3228 * rust-lang.c (rust_language_data): Likewise.
3229 * value.h (default_read_var_value): Delete declaration.
3230
5bd40f2a
AB
32312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3232
3233 * ada-lang.c (ada_print_array_index): Delete function, move
3234 implementation to...
3235 (ada_language::print_array_index): ...here.
3236 (ada_language_data): Delete la_print_array_index initializer.
3237 * c-lang.c (c_language_data): Likewise.
3238 (cplus_language_data): Likewise.
3239 (minimal_language_data): Likewise.
3240 * d-lang.c (d_language_data): Likewise.
3241 * f-lang.c (f_language_data): Likewise.
3242 * go-lang.c (go_language_data): Likewise.
3243 * language.c (default_print_array_index): Delete function, move
3244 implementation to...
3245 (language_defn::print_array_index): ...here.
3246 (unknown_language_data): Delete la_print_array_index initializer.
3247 (auto_language_data): Likewise.
3248 * language.h (struct language_data): Delete la_print_array_index
3249 field.
3250 (language_defn::print_array_index): New member function.
3251 (LA_PRINT_ARRAY_INDEX): Update.
3252 (default_print_array_index): Delete declaration.
3253 * m2-lang.c (m2_language_data): Delete la_print_array_index
3254 initializer.
3255 * objc-lang.c (objc_language_data): Likewise.
3256 * opencl-lang.c (opencl_language_data): Likewise.
3257 * p-lang.c (pascal_language_data): Likewise.
3258 * rust-lang.c (rust_language_data): Likewise.
3259
0874fd07
AB
32602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3261
3262 * gdb/ada-lang.c (ada_language_defn): Convert to...
3263 (ada_language_data): ...this.
3264 (class ada_language): New class.
3265 (ada_language_defn): New static global.
3266 * gdb/c-lang.c (c_language_defn): Convert to...
3267 (c_language_data): ...this.
3268 (class c_language): New class.
3269 (c_language_defn): New static global.
3270 (cplus_language_defn): Convert to...
3271 (cplus_language_data): ...this.
3272 (class cplus_language): New class.
3273 (cplus_language_defn): New static global.
3274 (asm_language_defn): Convert to...
3275 (asm_language_data): ...this.
3276 (class asm_language): New class.
3277 (asm_language_defn): New static global.
3278 (minimal_language_defn): Convert to...
3279 (minimal_language_data): ...this.
3280 (class minimal_language): New class.
3281 (minimal_language_defn): New static global.
3282 * gdb/d-lang.c (d_language_defn): Convert to...
3283 (d_language_data): ...this.
3284 (class d_language): New class.
3285 (d_language_defn): New static global.
3286 * gdb/f-lang.c (f_language_defn): Convert to...
3287 (f_language_data): ...this.
3288 (class f_language): New class.
3289 (f_language_defn): New static global.
3290 * gdb/go-lang.c (go_language_defn): Convert to...
3291 (go_language_data): ...this.
3292 (class go_language): New class.
3293 (go_language_defn): New static global.
3294 * gdb/language.c (unknown_language_defn): Remove declaration.
3295 (current_language): Initialize to nullptr, real initialization is
3296 moved to _initialize_language.
3297 (languages): Delete global.
3298 (language_defn::languages): Define.
3299 (set_language_command): Use language_defn::languages.
3300 (set_language): Likewise.
3301 (range_error): Likewise.
3302 (language_enum): Likewise.
3303 (language_def): Likewise.
3304 (add_set_language_command): Use language_def::languages for the
3305 language list, and language_def to lookup language pointers.
3306 (skip_language_trampoline): Use language_defn::languages.
3307 (unknown_language_defn): Convert to...
3308 (unknown_language_data): ...this.
3309 (class unknown_language): New class.
3310 (unknown_language_defn): New static global.
3311 (auto_language_defn): Convert to...
3312 (auto_language_data): ...this.
3313 (class auto_language): New class.
3314 (auto_language_defn): New static global.
3315 (language_gdbarch_post_init): Use language_defn::languages.
3316 (_initialize_language): Initialize current_language.
3317 * gdb/language.h (struct language_defn): Rename to...
3318 (struct language_data): ...this.
3319 (struct language_defn): New.
3320 (auto_language_defn): Delete.
3321 (unknown_language_defn): Delete.
3322 (minimal_language_defn): Delete.
3323 (ada_language_defn): Delete.
3324 (asm_language_defn): Delete.
3325 (c_language_defn): Delete.
3326 (cplus_language_defn): Delete.
3327 (d_language_defn): Delete.
3328 (f_language_defn): Delete.
3329 (go_language_defn): Delete.
3330 (m2_language_defn): Delete.
3331 (objc_language_defn): Delete.
3332 (opencl_language_defn): Delete.
3333 (pascal_language_defn): Delete.
3334 (rust_language_defn): Delete.
3335 * gdb/m2-lang.c (m2_language_defn): Convert to...
3336 (m2_language_data): ...this.
3337 (class m2_language): New class.
3338 (m2_language_defn): New static global.
3339 * gdb/objc-lang.c (objc_language_defn): Convert to...
3340 (objc_language_data): ...this.
3341 (class objc_language): New class.
3342 (objc_language_defn): New static global.
3343 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3344 (opencl_language_data): ...this.
3345 (class opencl_language): New class.
3346 (opencl_language_defn): New static global.
3347 * gdb/p-lang.c (pascal_language_defn): Convert to...
3348 (pascal_language_data): ...this.
3349 (class pascal_language): New class.
3350 (pascal_language_defn): New static global.
3351 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3352 language pointer, update comment format.
3353 * gdb/rust-lang.c (rust_language_defn): Convert to...
3354 (rust_language_data): ...this.
3355 (class rust_language): New class.
3356 (rust_language_defn): New static global.
3357
1313c56e
AB
33582020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3359
3360 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3361 member variable.
3362 <m_stmt_at_address>: New member variable.
3363 (lnp_state_machine::record_line): Don't record some lines, update
3364 tracking of is_stmt at the same address.
3365 (lnp_state_machine::lnp_state_machine): Initialise new member
3366 variables.
3367
b7ed9f3d
ST
33682020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3369
3370 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3371 "-include gnu-nat-mig.h".
3372 * gnu-nat-mig.h: New file.
3373 * gnu-nat.c: Include "gnu-nat-mig.h".
3374 (exc_server, msg_reply_server, notify_server,
3375 process_reply_server): Remove declarations.
3376
14a8ad62
ST
33772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3378
3379 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3380 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3381 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3382 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3383 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3384 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3385 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3386 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3387 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3388 to gnu_nat_target class.
3389 * gnu-nat.c: Likewise.
3390 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3391 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3392 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3393 object.
3394 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3395 instead of `gnu_target'.
3396
0af5e106
ST
33972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3398
3399 * i386-gnu-tdep.c: Include "gdbcore.h"
3400 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3401 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3402 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3403 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3404 i386_gnu_sigcontext_addr): New functions
3405 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3406 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3407 tdep.
3408
078f2fc9
ST
34092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3410
3411 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3412 before fork_inferior call. Avoid calling it if target_is_pushed returns
3413 true.
3414
53dff92c
ST
34152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3416
3417 * gnu-nat.h (gnu_target): New variable declaration.
3418 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3419 gnu_target.
3420 * gnu-nat.c (gnu_target): New variable.
3421 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3422 add_thread_silent, and add_thread calls.
3423 (gnu_nat_target::create_inferior): Pass gnu_target to
3424 add_thread_silent, thread_change_ptid call.
3425 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3426 call.
3427
5a8b8627
ST
34282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3429
3430 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3431 (gnu_nat_target::find_memory_regions): Remove unused
3432 `old_address' variable.
3433
366f550a
ST
34342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3435
3436 * gnu-nat.c: Include "gdbarch.h".
3437
f14871bf
ST
34382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3439
3440 * reply_mig_hack.awk (Error return): Cast function through
3441 void *, to bypass compiler function call check.
3442
c6887cfb
ST
34432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3444
3445 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3446 $(srcdir)/reply_mig_hack.awk.
3447
6930bffe
ST
34482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3449
3450 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3451
112c22ed
JG
34522020-05-30 Jonny Grant <jg@jguk.org>
3453
3454 * configure.ac (ACX_BUGURL): change bug URL to https.
3455
f68f85b5
PA
34562020-05-30 Pedro Alves <palves@redhat.com>
3457
3458 * cp-support.c (replace_typedefs_template): New.
3459 (replace_typedefs_qualified_name): Handle
3460 DEMANGLE_COMPONENT_TEMPLATE.
3461
976ca316
SM
34622020-05-29 Simon Marchi <simon.marchi@efficios.com>
3463
3464 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3465 dwarf2/index-cache.h, dwarf2/index-write.c,
3466 dwarf2/index-write.h, dwarf2/line-header.c,
3467 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3468 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3469 variables and fields from `dwarf2_per_objfile` to just
3470 `per_objfile` throughout.
3471
989ade05
SM
34722020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3473
3474 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3475 <push_dwarf_reg_entry_value>: Add comment.
3476
c47bae85
KB
34772020-05-28 Kevin Buettner <kevinb@redhat.com>
3478 Keith Seitz <keiths@redhat.com>
3479
3480 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3481 instead of PyEval_ReleaseLock.
3482 (class gdbpy_gil): Move to earlier in file.
3483 (finalize_python): Set gdb_python_initialized.
3484 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3485 when not initialized.
3486
44486dcf
SM
34872020-05-28 Simon Marchi <simon.marchi@efficios.com>
3488
3489 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3490 <push_dwarf_reg_entry_value>: Remove assert. Override
3491 per_objfile with caller_per_objfile.
3492
f030440d
TV
34932020-05-28 Tom de Vries <tdevries@suse.de>
3494
3495 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3496 PR gold/15646 workaround to symbol kind "type".
3497
f0fbb768
TT
34982020-05-27 Tom Tromey <tromey@adacore.com>
3499
3500 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3501
af0b2a3e
TT
35022020-05-27 Tom Tromey <tromey@adacore.com>
3503
3504 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3505 Use htab_find_with_hash.
3506 <add_abbrev>: Remove "abbrev_number" parameter.
3507 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3508 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3509 (hash_abbrev): Add comment.
3510 (abbrev_table::lookup_abbrev): Move to header file.
3511 (abbrev_table::read): Update.
3512
7d00ffec
TT
35132020-05-27 Tom Tromey <tromey@adacore.com>
3514
3515 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3516 method.
3517 <canonical_name>: New member.
3518 <raw_name>: Rename from "name".
3519 (partial_die_info): Initialize canonical_name.
3520 (scan_partial_symbols): Check raw_name.
3521 (partial_die_parent_scope, partial_die_full_name)
3522 (add_partial_symbol, add_partial_subprogram)
3523 (add_partial_enumeration, load_partial_dies): Use "name" method.
3524 (partial_die_info::name): New method.
3525 (partial_die_info::read, guess_partial_die_structure_name)
3526 (partial_die_info::fixup): Update.
3527
697bba18
TT
35282020-05-27 Tom Tromey <tromey@adacore.com>
3529
3530 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3531 <get_ref_die_offset>: Inline.
3532 <get_ref_die_offset_complaint>: New method.
3533 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3534 (attribute::get_ref_die_offset_complaint): Rename from
3535 get_ref_die_offset. Just issue complaint.
3536
c17ace43
HD
35372020-05-27 Hannes Domani <ssbssa@yahoo.de>
3538
3539 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3540
96445f0b
HD
35412020-05-27 Hannes Domani <ssbssa@yahoo.de>
3542
3543 * exec.c (exec_file_attach): Use errno value of first openp failure.
3544
ac637ec3
HD
35452020-05-27 Hannes Domani <ssbssa@yahoo.de>
3546
3547 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3548 Don't close thread handle.
3549
17ee85fc
TT
35502020-05-27 Tom Tromey <tom@tromey.com>
3551 Simon Marchi <simon.marchi@efficios.com>
3552
3553 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3554 shared_ptr.
3555 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3556 member.
3557 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3558 dwarf2_per_bfd_objfile_data_key>: New globals.
3559 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3560 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3561 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3562 shared.
3563 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3564 short-circuit when sharing.
3565 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3566 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3567
39b16f87
SM
35682020-05-27 Simon Marchi <simon.marchi@efficios.com>
3569
3570 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3571 to...
3572 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3573 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3574
fcf23d5b
SM
35752020-05-27 Simon Marchi <simon.marchi@efficios.com>
3576
3577 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3578 build_name_components, find_name_components_bounds>:
3579 Add per_objfile parameter.
3580 (struct mapped_index) <symbol_name_at>: Likewise.
3581 (struct mapped_debug_names): Remove constructor.
3582 <dwarf2_per_objfile>: Remove field.
3583 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3584 (mapped_index_base::find_name_components_bounds,
3585 mapped_index_base::build_name_components,
3586 dw2_expand_symtabs_matching_symbol): Likewise.
3587 (class mock_mapped_index) <symbol_name_at>: Likewise.
3588 (check_match): Likewise.
3589 (check_find_bounds_finds): Likewise.
3590 (test_mapped_index_find_name_component_bounds): Update.
3591 (CHECK_MATCH): Update.
3592 (dw2_expand_symtabs_matching): Update.
3593 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3594 per_objfile parameter.
3595 <find_vec_in_debug_names>: Likewise.
3596 <m_per_objfile>: New field.
3597 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3598 parameter.
3599 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3600 (dw2_debug_names_iterator::next): Update.
3601 (dw2_debug_names_lookup_symbol): Update.
3602 (dw2_debug_names_expand_symtabs_for_function): Update.
3603 (dw2_debug_names_map_matching_symbols): Update.
3604 (dw2_debug_names_expand_symtabs_matching): Update.
3605 (dwarf2_read_debug_names): Update.
3606
7188ed02
SM
36072020-05-27 Simon Marchi <simon.marchi@efficios.com>
3608
3609 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3610 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3611 move to dwarf2_per_objfile.
3612 <read_in_chain>: Remove.
3613 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3614 remove_all_cus, age_comp_units>: New methods.
3615 <m_dwarf2_cus>: New member.
3616 (struct dwarf2_per_cu_data) <cu>: Remove.
3617 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3618 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3619 moved to methods of dwarf2_per_objfile.
3620 (dwarf2_clear_marks): Remove.
3621 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3622 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3623 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3624 (dwarf2_per_objfile::remove_all_cus): New.
3625 (class free_cached_comp_units) <~free_cached_comp_units>:
3626 Update.
3627 (load_cu): Update.
3628 (dw2_do_instantiate_symtab): Adjust.
3629 (fill_in_sig_entry_from_dwo_entry): Adjust.
3630 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3631 (cutu_reader::cutu_reader): Likewise.
3632 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3633 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3634 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3635 and dwarf2_per_objfile::age_comp_units.
3636 (load_partial_comp_unit): Update.
3637 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3638 (process_queue): Likewise.
3639 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3640 backlink.
3641 (dwarf2_read_addr_index): Likewise.
3642 (follow_die_offset): Likewise.
3643 (dwarf2_fetch_die_loc_sect_off): Likewise.
3644 (dwarf2_fetch_constant_bytes): Likewise.
3645 (dwarf2_fetch_die_type_sect_off): Likewise.
3646 (follow_die_sig_1): Likewise.
3647 (load_full_type_unit): Likewise.
3648 (read_signatured_type): Likewise.
3649 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3650 (dwarf2_cu::~dwarf2_cu): Remove.
3651 (dwarf2_per_objfile::get_cu): New.
3652 (dwarf2_per_objfile::set_cu): New.
3653 (age_cached_comp_units): Rename to...
3654 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3655 to std::unordered_map.
3656 (free_one_cached_comp_unit): Rename to...
3657 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3658 to std::unordered_map.
3659 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3660 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3661 a dwarf2_per_objfile in data.
3662 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3663 (dwarf2_clear_marks): Remove.
3664
2e671100
SM
36652020-05-27 Simon Marchi <simon.marchi@efficios.com>
3666
3667 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3668 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3669 (init_tu_and_read_dwo_dies): Likewise.
3670 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3671 (cutu_reader::cutu_reader): Likewise.
3672 (load_partial_comp_unit): Likewise.
3673 (process_psymtab_comp_unit): Update.
3674 (build_type_psymtabs_1): Update.
3675 (process_skeletonless_type_unit): Update.
3676 (load_full_comp_unit): Update.
3677 (find_partial_die): Update.
3678 (dwarf2_read_addr_index): Update.
3679 (read_signatured_type): Update.
3680
2e6a9f79
SM
36812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3682
3683 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3684 m_header_read_in>: New fields.
3685 <get_header>: New method.
3686 * dwarf2/read.c (per_cu_header_read_in): Remove.
3687 (dwarf2_per_cu_data::get_header): New.
3688 (dwarf2_per_cu_data::addr_size): Update.
3689 (dwarf2_per_cu_data::offset_size): Update.
3690 (dwarf2_per_cu_data::ref_addr_size): Update.
3691
1b555f17
SM
36922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3693
3694 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3695 (dw2_do_instantiate_symtab): Update.
3696 (queue_and_load_all_dwo_tus): Change parameter from
3697 dwarf2_per_cu_data to dwarf2_cu.
3698 (dwarf2_fetch_die_loc_sect_off): Update.
3699 (dwarf2_fetch_constant_bytes): Update.
3700 (dwarf2_fetch_die_type_sect_off): Update.
3701
8fc0b21d
SM
37022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3703
3704 * dwarf2/read.c (process_full_comp_unit,
3705 process_full_type_unit): Remove per_cu, per_objfile paramters.
3706 Add dwarf2_cu parameter.
3707 (process_queue): Update.
3708
168c9250
SM
37092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3710
3711 * dwarf2/read.c (create_cu_from_index_list): Replace
3712 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3713 (create_cus_from_index_list): Likewise.
3714 (create_cus_from_index): Likewise.
3715 (create_signatured_type_table_from_index): Likewise.
3716 (create_cus_from_debug_names_list): Likewise.
3717 (create_cus_from_debug_names): Likewise.
3718 (dwarf2_read_gdb_index): Update.
3719 (dwarf2_read_debug_names): Update.
3720
e286671b
TT
37212020-05-27 Tom Tromey <tom@tromey.com>
3722 Simon Marchi <simon.marchi@efficios.com>
3723
3724 * dwarf2/read.h (struct dwarf2_per_objfile)
3725 <get_type_for_signatured_type, set_type_for_signatured_type>:
3726 New methods.
3727 <m_type_map>: New member.
3728 (struct signatured_type) <type>: Remove.
3729 * dwarf2/read.c
3730 (dwarf2_per_objfile::get_type_for_signatured_type,
3731 dwarf2_per_objfile::set_type_for_signatured_type): New.
3732 (get_signatured_type): Use new methods.
3733
8adb8487
TT
37342020-05-27 Tom Tromey <tom@tromey.com>
3735 Simon Marchi <simon.marchi@efficios.com>
3736
3737 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3738 (struct dwarf2_per_objfile) <type_units>: New member.
3739 <get_type_unit_group_unshareable>: New method.
3740 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3741 num_symtabs, symtabs>: Remove; move to
3742 type_unit_group_unshareable.
3743 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3744 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3745 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3746
127bbf4b
SM
37472020-05-27 Simon Marchi <simon.marchi@efficios.com>
3748
3749 * dwarf2/read.h (struct dwarf2_per_cu_data):
3750 <dwarf2_per_objfile>: Remove.
3751 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3752 dwarf2_per_objfile.
3753 (create_signatured_type_table_from_index): Likewise.
3754 (create_signatured_type_table_from_debug_names): Likewise.
3755 (create_debug_type_hash_table): Likewise.
3756 (fill_in_sig_entry_from_dwo_entry): Likewise.
3757 (create_type_unit_group): Likewise.
3758 (read_comp_units_from_section): Likewise.
3759 (create_cus_hash_table): Likewise.
3760
f6e649dd
SM
37612020-05-27 Simon Marchi <simon.marchi@efficios.com>
3762
3763 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3764 dwarf2_per_cu_data::dwarf2_per_objfile.
3765 (compute_compunit_symtab_includes): Likewise.
3766 (dwarf2_cu::start_symtab): Likewise.
3767
aa66c379
SM
37682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3769
3770 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3771 parameter.
3772 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3773 (read_namespace_alias): Update.
3774 (lookup_die_type): Update.
3775 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3776 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3777 Update.
3778 (disassemble_dwarf_expression): Update.
3779
120ce1b5
SM
37802020-05-27 Simon Marchi <simon.marchi@efficios.com>
3781
3782 * dwarf2/read.h (struct dwarf2_queue_item): Add
3783 dwarf2_per_objfile parameter, assign new parameter.
3784 <per_objfile>: New field.
3785 * dwarf2/read.c (free_one_cached_comp_unit): Add
3786 dwarf2_per_objfile parameter.
3787 (queue_comp_unit): Likewise.
3788 (dw2_do_instantiate_symtab): Update.
3789 (process_psymtab_comp_unit): Update.
3790 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3791 (process_imported_unit_die): Update.
3792 (queue_and_load_dwo_tu): Update.
3793 (follow_die_offset): Update.
3794 (follow_die_sig_1): Update.
3795
9f47c707
SM
37962020-05-27 Simon Marchi <simon.marchi@efficios.com>
3797
3798 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3799 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3800 (read_call_site_scope): Assign per_objfile.
3801 (dwarf2_per_cu_data::objfile): Remove.
3802 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3803 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3804 dwarf2_per_objfile parameter.
3805 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3806 dwarf2_per_objfile parameter.
3807 (dwarf_expr_reg_to_entry_parameter): Add output
3808 dwarf2_per_objfile parameter.
3809 (locexpr_get_frame_base): Update.
3810 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3811 <push_dwarf_reg_entry_value>: Update.
3812 <call_site_to_target_addr>: Update.
3813 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3814 parameter.
3815 (value_of_dwarf_reg_entry): Update.
3816 (rw_pieced_value): Update.
3817 (indirect_synthetic_pointer): Update.
3818 (dwarf2_evaluate_property): Update.
3819 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3820 parameter.
3821 (locexpr_read_variable): Update.
3822 (locexpr_get_symbol_read_needs): Update.
3823 (loclist_read_variable): Update.
3824
14095eb3
SM
38252020-05-27 Simon Marchi <simon.marchi@efficios.com>
3826
3827 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3828 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3829 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3830 parameter.
3831 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3832 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3833 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3834 parameter.
3835 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3836 sect_variable_value): Add dwarf2_per_objfile parameter.
3837 (class dwarf_evaluate_loc_desc) <dwarf_call,
3838 dwarf_variable_value>: Update.
3839 (fetch_const_value_from_synthetic_pointer): Add
3840 dwarf2_per_objfile parameter.
3841 (fetch_const_value_from_synthetic_pointer): Update.
3842 (coerced_pieced_ref): Update.
3843 (class symbol_needs_eval_context) <dwarf_call,
3844 dwarf_variable_value>: Update.
3845 (dwarf2_compile_expr_to_ax): Update.
3846
3c3cd3d4
SM
38472020-05-27 Simon Marchi <simon.marchi@efficios.com>
3848
3849 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3850 parameter.
3851 (dwarf2_evaluate_loc_desc_full): Update.
3852
82ca3f51
SM
38532020-05-27 Simon Marchi <simon.marchi@efficios.com>
3854
3855 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3856 parameter.
3857 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3858 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3859 dwarf2_per_objfile parameter.
3860 (decode_debug_loc_dwo_addresses): Likewise.
3861 (dwarf2_find_location_expression): Update.
3862 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3863 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3864 parameter.
3865 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3866 parameter.
3867 (locexpr_describe_location_1): Likewise.
3868 (locexpr_describe_location): Update.
3869
4b167ea1
SM
38702020-05-27 Simon Marchi <simon.marchi@efficios.com>
3871
3872 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3873 Remove.
3874 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3875 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3876 (dwarf2_compile_property_to_c): Update.
3877 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3878 use text offset from objfile.
3879 (locexpr_tracepoint_var_ref): Update.
3880 (locexpr_generate_c_location): Update.
3881 (loclist_describe_location): Update.
3882 (loclist_tracepoint_var_ref): Update.
3883 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3884 dwarf2_per_objfile parameter.
3885 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3886 use text offset from objfile.
3887 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3888
89b07335
SM
38892020-05-27 Simon Marchi <simon.marchi@efficios.com>
3890
3891 * dwarf2/expr.h (struct dwarf_expr_context)
3892 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3893 <offset>: Remove.
3894 <per_objfile>: New member.
3895 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3896 dwarf2_per_objfile parameter. Don't set offset, set
3897 per_objfile.
3898 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3899 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3900 a dwarf2_per_objfile object instead of an offset.
3901 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3902 constructor.
3903 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3904 to dwarf2_expr_executor constructor. Don't set offset.
3905 (dwarf2_fetch_cfa_info): Update.
3906 (struct dwarf2_frame_cache) <text_offset>: Remove.
3907 <per_objfile>: New field.
3908 (dwarf2_frame_cache): Update.
3909 (dwarf2_frame_prev_register): Update.
3910 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3911 <dwarf_evaluate_loc_desc>: Add constructor.
3912 (dwarf2_evaluate_loc_desc_full): Update.
3913 (dwarf2_locexpr_baton_eval): Update.
3914 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3915 Add constructor.
3916 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3917
293e7e51
SM
39182020-05-27 Simon Marchi <simon.marchi@efficios.com>
3919
3920 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3921 addr_sized_int_type>: Move to dwarf2_cu.
3922 <int_type>: Move to dwarf2_per_objfile.
3923 (struct dwarf2_per_objfile) <int_type>: Move here.
3924 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3925 addr_sized_int_type>: Move here.
3926 (read_func_scope): Update.
3927 (read_array_type): Update.
3928 (read_tag_string_type): Update.
3929 (attr_to_dynamic_prop): Update.
3930 (dwarf2_per_cu_data::int_type): Rename to...
3931 (dwarf2_per_objfile::int_type): ... this.
3932 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3933 (dwarf2_cu::addr_sized_int_type): ... this.
3934 (read_subrange_type): Update.
3935 (dwarf2_per_cu_data::addr_type): Rename to...
3936 (dwarf2_cu::addr_type): ... this.
3937 (set_die_type): Update.
3938
64874a40
SM
39392020-05-27 Simon Marchi <simon.marchi@efficios.com>
3940
3941 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3942 data through per_cu->cu.
3943
4ab09049
SM
39442020-05-27 Simon Marchi <simon.marchi@efficios.com>
3945
3946 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3947 dwarf2_per_cu_data parameter fo dwarf2_cu.
3948 (lookup_dwo_type_unit): Likewise.
3949 (read_cutu_die_from_dwo): Likewise.
3950 (lookup_dwo_unit): Likewise.
3951 (open_and_init_dwo_file): Likewise.
3952 (lookup_dwo_cutu): Likewise.
3953 (lookup_dwo_comp_unit): Likewise.
3954 (lookup_dwo_type_unit): Likewise.
3955 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3956 (cutu_reader::cutu_reader): Update.
3957
47b14e86
SM
39582020-05-27 Simon Marchi <simon.marchi@efficios.com>
3959
3960 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3961 parameter.
3962 (process_full_type_unit): Likewise.
3963 (process_queue): Update.
3964
43182c09
SM
39652020-05-27 Simon Marchi <simon.marchi@efficios.com>
3966
3967 * dwarf2/read.c (recursively_compute_inclusions): Add
3968 dwarf2_per_objfile parameter.
3969 (compute_compunit_symtab_includes): Likewise.
3970 (process_cu_includes): Update.
3971
7aa104c4
SM
39722020-05-27 Simon Marchi <simon.marchi@efficios.com>
3973
3974 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3975 parameter.
3976 (create_type_unit_group): Update.
3977 (process_psymtab_comp_unit_reader): Update.
3978 (build_type_psymtabs_reader): Update.
3979
e3beb21d
SM
39802020-05-27 Simon Marchi <simon.marchi@efficios.com>
3981
3982 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3983 object through m_this_cu->cu.
3984
d460f660
SM
39852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3986
3987 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3988 the info parameter.
3989 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3990
ab432490
SM
39912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3992
3993 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3994 per_objfile parameter.
3995 (load_full_type_unit): Add per_objfile parameter.
3996 (read_signatured_type): Likewise.
3997 (load_full_comp_unit): Likewise.
3998 (load_cu): Likewise.
3999 (dw2_do_instantiate_symtab): Likewise.
4000 (dw2_get_file_names): Likewise.
4001 (dw2_map_symtabs_matching_filename): Update.
4002 (dw_expand_symtabs_matching_file_matcher): Update.
4003 (dw2_map_symbol_filenames): Update.
4004 (process_psymtab_comp_unit): Add per_objfile parameter.
4005 (build_type_psymtabs_1): Update.
4006 (process_skeletonless_type_unit): Update.
4007 (dwarf2_build_psymtabs_hard): Update.
4008 (load_partial_comp_unit): Add per_objfile parameter.
4009 (scan_partial_symbols): Update.
4010 (load_full_comp_unit): Add per_objfile parameter.
4011 (process_imported_unit_die): Update.
4012 (create_cus_hash_table): Update.
4013 (find_partial_die): Update.
4014 (dwarf2_read_addr_index): Update.
4015 (follow_die_offset): Update.
4016 (dwarf2_fetch_die_loc_sect_off): Update.
4017 (dwarf2_fetch_constant_bytes): Update.
4018 (dwarf2_fetch_die_type_sect_off): Update.
4019 (follow_die_sig_1): Update.
4020 (load_full_type_unit): Add per_objfile parameter.
4021 (read_signatured_type): Likewise.
4022
313bad1b
SM
40232020-05-27 Simon Marchi <simon.marchi@efficios.com>
4024
4025 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4026 of objfile_name.
4027
c3699833
SM
40282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4029
4030 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4031 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4032 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4033 field.
4034 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4035 (create_cus_from_index): Update.
4036 (dwarf2_read_gdb_index): Update.
4037 (create_cus_from_debug_names): Update.
4038 (dwarf2_read_debug_names): Update.
4039 (get_abbrev_section_for_cu): Update.
4040 (create_all_comp_units): Update.
4041 (read_attribute_value): Update.
4042 (get_debug_line_section): Update.
4043 * dwarf2/index-cache.c (index_cache::store): Update.
4044 * dwarf2/index-write.c (save_gdb_index_command): Update.
4045 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4046
1859c670
SM
40472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4048
4049 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4050 member.
4051 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4052 dwarf2_per_cu_data::per_bfd.
4053 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4054 (create_type_unit_group): Likewise.
4055 (queue_comp_unit): Remove reference to
4056 per_cu->dwarf2_per_objfile.
4057 (maybe_queue_comp_unit): Likewise.
4058 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4059 (create_cus_hash_table): Assign new field.
4060
5e22e966
SM
40612020-05-27 Simon Marchi <simon.marchi@efficios.com>
4062
4063 * dwarf2/read.c: Replace
4064 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4065 dwarf2_cu->per_objfile throughout.
4066
97a1449a
SM
40672020-05-27 Simon Marchi <simon.marchi@efficios.com>
4068
4069 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4070 parameter, don't use per_cu->dwarf2_per_objfile.
4071 (dw2_instantiate_symtab): Likewise.
4072 (dw2_find_last_source_symtab): Update.
4073 (dw2_map_expand_apply): Update.
4074 (dw2_lookup_symbol): Update.
4075 (dw2_expand_symtabs_for_function): Update.
4076 (dw2_expand_all_symtabs): Update.
4077 (dw2_expand_symtabs_with_fullname): Update.
4078 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4079 don't use per_cu->dwarf2_per_objfile.
4080 (dw2_expand_marked_cus): Update.
4081 (dw2_find_pc_sect_compunit_symtab): Update.
4082 (dw2_debug_names_lookup_symbol): Update.
4083 (dw2_debug_names_expand_symtabs_for_function): Update.
4084 (dw2_debug_names_map_matching_symbols): Update.
4085 (dwarf2_psymtab::expand_psymtab): Update.
4086
9e021579
SM
40872020-05-27 Simon Marchi <simon.marchi@efficios.com>
4088
4089 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4090 <per_objfile>: New member.
4091 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4092 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4093 call to dwarf2_cu.
4094 (cutu_reader::cutu_reader): Update.
4095 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4096
ae090bdb
SM
40972020-05-27 Simon Marchi <simon.marchi@efficios.com>
4098
4099 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4100 struct dwarf2_per_objfile.
4101 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4102 dwarf2_per_bfd.
4103 * dwarf2/read.c (set_die_type): Update.
4104 (get_die_type_at_offset): Update.
4105
af758d11
SM
41062020-05-27 Tom Tromey <tom@tromey.com>
4107 Simon Marchi <simon.marchi@efficios.com>
4108
4109 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4110 method.
4111 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4112 get_symtab, set_symtab>: New methods.
4113 <m_symtabs>: New field.
4114 (struct dwarf2_psymtab): Derive from partial_symtab.
4115 <readin_p, get_compunit_symtab>: Declare methods.
4116 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4117 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4118 New methods.
4119 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4120 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4121 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4122 (dw2_symtab_iter_next, dw2_print_stats)
4123 (dw2_expand_symtabs_with_fullname)
4124 (dw2_expand_symtabs_matching_one)
4125 (dw_expand_symtabs_matching_file_matcher)
4126 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4127 (dw2_debug_names_iterator::next)
4128 (dw2_debug_names_map_matching_symbols)
4129 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4130 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4131 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4132 New methods.
4133 (get_compunit_symtab, process_full_comp_unit)
4134 (process_full_type_unit): Update.
4135 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4136
5989a64e
SM
41372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4138
4139 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4140 then introduce a new dwarf2_per_objfile type.
4141 <read_line_string>: Move to the new dwarf2_per_objfile type.
4142 <objfile>: Likewise.
4143 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4144 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4145 dwarf2_per_objfile->per_bfd.
4146 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4147 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4148 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4149 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4150 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4151 (dwarf2_per_objfile::locate_sections): Rename to...
4152 (dwarf2_per_bfd::locate_sections): ... this.
4153 (dwarf2_per_objfile::get_cutu): Rename to...
4154 (dwarf2_per_bfd::get_cutu): ... this.
4155 (dwarf2_per_objfile::get_cu): Rename to...
4156 (dwarf2_per_bfd::get_cu): ... this.
4157 (dwarf2_per_objfile::get_tu): Rename to...
4158 (dwarf2_per_bfd::get_tu): ... this.
4159 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4160 (dwarf2_per_bfd::allocate_per_cu): ... this.
4161 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4162 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4163 (get_gdb_index_contents_ftype): Change parameter from
4164 dwarf2_per_objfile to dwarf2_per_bfd.
4165 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4166 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4167
a50264ba
TT
41682020-05-27 Tom Tromey <tom@tromey.com>
4169 Simon Marchi <simon.marchi@efficios.com>
4170
4171 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4172 (allocate_piece_closure): Set "per_objfile" member.
4173 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4174 (locexpr_describe_location, loclist_describe_location): Use new
4175 member.
4176 * dwarf2/read.c (read_call_site_scope)
4177 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4178 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4179 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4180 handle_data_member_location): Set per_objfile member.
4181 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4182 member.
4183 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4184
d3473f0c
TT
41852020-05-27 Tom Tromey <tom@tromey.com>
4186
4187 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4188 allocate_signatured_type>: Declare new methods.
4189 <m_num_psymtabs>: New member.
4190 (struct dwarf2_per_cu_data) <index>: New member.
4191 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4192 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4193 (create_cu_from_index_list): Use allocate_per_cu.
4194 (create_signatured_type_table_from_index)
4195 (create_signatured_type_table_from_debug_names)
4196 (create_debug_type_hash_table, add_type_unit)
4197 (read_comp_units_from_section): Use allocate_signatured_type.
4198
5717c425
TT
41992020-05-27 Tom Tromey <tom@tromey.com>
4200
4201 * psymtab.c (partial_map_expand_apply)
4202 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4203 (psym_lookup_global_symbol_language)
4204 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4205 (psym_print_stats, psym_expand_symtabs_for_function)
4206 (psym_map_symbol_filenames, psym_map_matching_symbols)
4207 (psym_expand_symtabs_matching)
4208 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4209 (maintenance_check_psymtabs): Update.
4210 * psympriv.h (struct partial_symtab) <readin_p,
4211 get_compunit_symtab>: Add objfile parameter.
4212 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4213 Likewise.
4214 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4215 get_compunit_symtab>: Likewise.
4216 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4217
45940949
TT
42182020-05-27 Tom Tromey <tom@tromey.com>
4219
4220 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4221 member.
4222 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4223 (create_cu_from_index_list)
4224 (create_signatured_type_table_from_index)
4225 (create_signatured_type_table_from_debug_names)
4226 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4227 (dwarf2_create_include_psymtab)
4228 (create_debug_type_hash_table, add_type_unit)
4229 (create_type_unit_group, read_comp_units_from_section)
4230 (dwarf2_compute_name, create_cus_hash_table)
4231 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4232 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4233 obstack.
4234 (dw2_get_real_path): Likewise. Change argument to
4235 dwarf2_per_objfile.
4236
f8c6d152
LM
42372020-05-27 Luis Machado <luis.machado@linaro.org>
4238
4239 PR tdep/26000
4240 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4241 for ldrd (immediate).
4242
e98d2e6d
PW
42432020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4244
4245 * command.h: Add comment giving the name of class_tui.
4246 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4247 create the fake command for the help for class_tui.
4248
53a47a3e
TT
42492020-05-26 Tom Tromey <tromey@adacore.com>
4250
4251 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4252 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4253 (val_atr): New function.
4254 (value_val_atr): Use it.
4255 * ada-valprint.c (print_optional_low_bound): Change low bound
4256 handling for enums.
4257 (val_print_packed_array_elements): Don't call discrete_position.
4258 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4259 discrete_position for enum types.
4260 * language.c (default_print_array_index): Change type.
4261 * language.h (struct language_defn) <la_print_array_index>: Add
4262 index_type parameter, change type of index_value.
4263 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4264 (default_print_array_index): Update.
4265 * valprint.c (maybe_print_array_index): Don't call
4266 value_from_longest. Update.
4267 (value_print_array_elements): Don't call discrete_position.
4268
0bc2354b
TT
42692020-05-26 Tom Tromey <tromey@adacore.com>
4270
4271 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4272 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4273
1218a4bf
CDA
42742020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4275
4276 PR gdb/13519
4277 * avr-tdep.c (avr_integer_to_address): Return data or code
4278 address accordingly to the second 'type' argument of the
4279 function.
4280
92651b1d
MW
42812020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4282
4283 * infcmd.c, inferior.h: (construct_inferior_arguments):
4284 Moved function from here to gdbsupport/common-inferior.{h,cc}
4285
0a4f5f8c
TT
42862020-05-23 Tom Tromey <tom@tromey.com>
4287
4288 Revert commit eca1f90c:
4289 * NEWS: Remove entry for completion styling.
4290 * completer.c (_rl_completion_prefix_display_length): Move
4291 declaration later.
4292 (gdb_fnprint): Revert.
4293 (gdb_display_match_list_1): Likewise.
4294 * cli/cli-style.c (completion_prefix_style)
4295 (completion_difference_style, completion_suffix_style): Remove.
4296 (_initialize_cli_style): Revert.
4297 * cli/cli-style.h (completion_prefix_style)
4298 (completion_difference_style, completion_suffix_style): Don't
4299 declare.
4300
e08bd6c5
PA
43012020-05-24 Pedro Alves <palves@redhat.com>
4302
4303 * symtab.c (completion_list_add_name): Return boolean indication
4304 of whether the symbol matched.
4305 (completion_list_add_symbol): Don't try to remove C++ aliases if
4306 the symbol didn't match in the first place.
4307 * symtab.h (completion_list_add_name): Return bool.
4308
ceacbf6e
SM
43092020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4310
4311 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4312 type::field.
4313
26f16254
JB
43142020-05-23 Joel Brobecker <brobecker@adacore.com>
4315
4316 GDB 9.2 released.
4317
eca1f90c
TT
43182020-05-23 Tom Tromey <tom@tromey.com>
4319
4320 * NEWS: Add entry for completion styling.
4321 * completer.c (_rl_completion_prefix_display_length): Move
4322 declaration earlier.
4323 (gdb_fnprint): Use completion_style.
4324 (gdb_display_match_list_1): Likewise.
4325 * cli/cli-style.c (completion_prefix_style)
4326 (completion_difference_style, completion_suffix_style): New
4327 globals.
4328 (_initialize_cli_style): Register new globals.
4329 * cli/cli-style.h (completion_prefix_style)
4330 (completion_difference_style, completion_suffix_style): Declare.
4331
51e2cfa2
PA
43322020-05-23 Pedro Alves <palves@redhat.com>
4333
4334 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4335 (parse_escape): Use ISDIGIT instead of isdigit.
4336 (puts_debug): Use gdb_isprint instead of isprint.
4337 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4338 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4339 ISSPACE instead of isspace.
4340 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4341 instead of isspace.
4342 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4343 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4344 instead of isxdigit and ISDIGIT instead of isdigit.
4345
80fc5e77
SM
43462020-05-22 Simon Marchi <simon.marchi@efficios.com>
4347
4348 * gdbtypes.h (struct type) <field>: New method.
4349 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4350 or type::field.
4351
3cabb6b0
SM
43522020-05-22 Simon Marchi <simon.marchi@efficios.com>
4353
4354 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4355 (TYPE_FIELDS): Use type::fields. Change all call sites that
4356 modify the propery to use type::set_fields instead.
4357
1f704f76
SM
43582020-05-22 Simon Marchi <simon.marchi@efficios.com>
4359
4360 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4361 type::num_fields instead.
4362
5e33d5f4
SM
43632020-05-22 Simon Marchi <simon.marchi@efficios.com>
4364
4365 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4366 methods.
4367 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4368 that modify the number of fields to use type::set_num_fields
4369 instead.
4370
9392ebb3
TT
43712020-05-22 Tom Tromey <tromey@adacore.com>
4372
4373 * compile/compile-object-load.h (munmap_list_free): Don't
4374 declare.
4375
7c13f4e8
AB
43762020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4377
4378 * annotate.c (annotate_source_line): Update return type, add call
4379 to update current symtab and line.
4380 * annotate.h (annotate_source_line): Update return type, and
4381 extend header comment.
4382 * source.c (info_line_command): Check annotation_level before
4383 calling annotate_source_line.
4384 * stack.c (print_frame_info): If calling annotate_source_line
4385 returns true, then don't print any other source line information.
4386
aa370940
SM
43872020-05-21 Simon Marchi <simon.marchi@efficios.com>
4388
4389 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4390
84d53fa9
SM
43912020-05-21 Simon Marchi <simon.marchi@efficios.com>
4392
4393 * coffread.c (patch_type): Remove NULL check before xfree.
4394 * corefile.c (set_gnutarget): Likewise.
4395 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4396 * exec.c (build_section_table): Likewise.
4397 * remote.c (remote_target::pass_signals): Likewise.
4398 * utils.c (n_spaces): Likewise.
4399 * cli/cli-script.c (document_command): Likewise.
4400 * i386-windows-tdep.c (core_process_module_section): Likewise.
4401 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4402
9d428aae
SM
44032020-05-20 Simon Marchi <simon.marchi@efficios.com>
4404
4405 * symfile.c (reread_symbols): Clear objfile's section_offsets
4406 vector and section indices, re-compute them by calling
4407 sym_offsets.
4408
250106a7
TT
44092020-05-20 Tom Tromey <tromey@adacore.com>
4410
4411 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4412 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4413
9a0bacfb
TV
44142020-05-20 Tom de Vries <tdevries@suse.de>
4415
4416 PR symtab/25833
4417 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4418
7b958a48
AM
44192020-05-20 Alan Modra <amodra@gmail.com>
4420
4421 PR 25993
4422 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4423 bfd_set_filename.
4424 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4425 passed to bfd_set_filename.
4426 * symfile-mem.c (add_vsyscall_page): Likewise for string
4427 passed to symbol_file_add_from_memory.
4428 (symbol_file_add_from_memory): Make name param a const char* and
4429 don't strdup.
4430
c7e97679
AM
44312020-05-20 Alan Modra <amodra@gmail.com>
4432
4433 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4434 rather than accessing bfd->filename directly.
4435 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4436 and use bfd_section_name.
4437 * dwarf2/frame.c (decode_frame_entry): Likewise.
4438 * exec.c (exec_set_section_address): Likewise.
4439 * solib-aix.c (solib_aix_bfd_open): Likewise.
4440 * stap-probe.c (get_stap_base_address): Likewise.
4441 * symfile.c (reread_symbols): Likewise.
4442
563c591b
TT
44432020-05-19 Tom Tromey <tromey@adacore.com>
4444
4445 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4446
f408d82c
SM
44472020-05-19 Simon Marchi <simon.marchi@efficios.com>
4448
4449 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4450
98c59b52
PA
44512020-05-19 Pedro Alves <palves@redhat.com>
4452
4453 * NEWS (set exec-file-mismatch): Adjust entry.
4454 * exec.c: Include "build-id.h".
4455 (validate_exec_file): Try to match build IDs instead of filenames.
4456 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4457 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4458 and pass down 'warn_if_slow'.
4459 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4460 gdb_bfd_open_closure to pass it down.
4461 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4462
4111f652
PA
44632020-05-19 Pedro Alves <palves@redhat.com>
4464
4465 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4466 * target.c (target_fileio_open_1): Rename to target_fileio_open
4467 and make extern. Use bool.
4468 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4469 (target_fileio_read_alloc_1): Adjust.
4470 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4471 (target_fileio_open_warn_if_slow): Delete declaration.
4472
ad80db5b
PA
44732020-05-19 Pedro Alves <palves@redhat.com>
4474
4475 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4476 Adjust all callers.
4477
1d6ce4d3
YS
44782020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4479
4480 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4481 whether disp is negative.
4482
9005fbbb
SM
44832020-05-19 Simon Marchi <simon.marchi@efficios.com>
4484
4485 * symfile.h (struct symfile_segment_data)
4486 <~symfile_segment_data>: Remove.
4487 <segment_info>: Change to std::vector.
4488 * symfile.c (default_symfile_segments): Update.
4489 * elfread.c (elf_symfile_segments): Update.
4490
68b888ff
SM
44912020-05-19 Simon Marchi <simon.marchi@efficios.com>
4492
4493 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4494 <segments>: New.
4495 <segment_bases, segment_sizes>: Remove.
4496 * symfile.c (default_symfile_segments): Update.
4497 * elfread.c (elf_symfile_segments): Update.
4498 * remote.c (remote_target::get_offsets): Update.
4499 * solib-target.c (solib_target_relocate_section_addresses):
4500 Update.
4501
62982abd
SM
45022020-05-19 Simon Marchi <simon.marchi@efficios.com>
4503
4504 * symfile.h (struct symfile_segment_data): Initialize fields.
4505 <~symfile_segment_data>: Add.
4506 (symfile_segment_data_up): New.
4507 (struct sym_fns) <sym_segments>: Return a
4508 symfile_segment_data_up.
4509 (default_symfile_segments): Return a symfile_segment_data_up.
4510 (free_symfile_segment_data): Remove.
4511 (get_symfile_segment_data): Return a symfile_segment_data_up.
4512 * symfile.c (default_symfile_segments): Likewise.
4513 (get_symfile_segment_data): Likewise.
4514 (free_symfile_segment_data): Remove.
4515 (symfile_find_segment_sections): Update.
4516 * elfread.c (elf_symfile_segments): Return a
4517 symfile_segment_data_up.
4518 * remote.c (remote_target::get_offsets): Update.
4519 * solib-target.c (solib_target_relocate_section_addresses):
4520 Update.
4521 * symfile-debug.c (debug_sym_segments): Return a
4522 symfile_segment_data_up.
4523
7f204339
RO
45242020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4525
e52a0f1b
RO
4526 PR build/25981
4527 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4528 Hardcode register numbers.
4529
7f204339
RO
4530 PR build/25981
4531 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4532 procfs_find_LDT_entry): Remove.
4533 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4534 procfs_find_LDT_entry): Remove.
4535 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4536 Remove.
4537
7f32a4d5
PA
45382020-05-17 Pedro Alves <palves@redhat.com>
4539 Andrew Burgess <andrew.burgess@embecosm.com>
4540 Keno Fischer <keno@juliacomputing.com>
4541
4542 PR gdb/25741
4543 * breakpoint.c (build_target_condition_list): Update comments.
4544 (build_target_command_list): Update comments and skip matching
4545 locations.
4546 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4547 a separate function. Simplify "set breakpoint auto-hw off"
4548 handling.
4549 (insert_breakpoints): Update comment.
4550 (tracepoint_locations_match): New parameter. For breakpoints,
4551 compare location types too, if the caller wants to.
4552 (handle_automatic_hardware_breakpoints): New functions.
4553 (bp_location_is_less_than): Also sort by location type and
4554 hardware breakpoint length.
4555 (update_global_location_list): Handle "set breakpoint auto-hw on"
4556 here.
4557 (update_breakpoint_locations): Ask breakpoint_locations_match to
4558 ignore location types.
4559
7d93a1e0
SM
45602020-05-16 Simon Marchi <simon.marchi@efficios.com>
4561
4562 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4563 type::name instead.
4564
d0e39ea2
SM
45652020-05-16 Simon Marchi <simon.marchi@efficios.com>
4566
4567 * gdbtypes.h (struct type) <name, set_name>: New methods.
4568 (TYPE_CODE): Use type::name. Change all call sites used to set
4569 the name to use type::set_name instead.
4570
2dab0c7b
TT
45712020-05-16 Tom Tromey <tom@tromey.com>
4572
4573 * top.c (quit_force): Update.
4574 * infrun.c (handle_no_resumed): Update.
4575 * top.h (all_uis): New function.
4576 (ALL_UIS): Remove.
4577
59f7bd8d
SM
45782020-05-16 Simon Marchi <simon.marchi@efficios.com>
4579
4580 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4581
9bf058f0
PA
45822020-05-16 Pedro Alves <palves@redhat.com>
4583
4584 * ia64-linux-nat.c
4585 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4586 Declare method.
4587 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4588
8f86ae1a
SM
45892020-05-15 Simon Marchi <simon.marchi@efficios.com>
4590
4591 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4592 (sparc64_adi_info): Likewise.
4593
d6bc0792
TT
45942020-05-15 Tom Tromey <tom@tromey.com>
4595
4596 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4597 block_objfile.
4598 (lookup_objfile_from_block): Remove.
4599 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4600 (lookup_global_symbol): Use block_objfile.
4601 * symtab.h (lookup_objfile_from_block): Don't declare.
4602 * printcmd.c (clear_dangling_display_expressions): Use
4603 block_objfile.
4604 * parse.c (operator_check_standard): Use block_objfile.
4605
8c14c3a3
TT
46062020-05-15 Tom Tromey <tom@tromey.com>
4607
4608 * language.c (language_alloc_type_symbol): Set
4609 SYMBOL_SECTION.
4610 * symtab.c (initialize_objfile_symbol): Remove.
4611 (allocate_symbol): Remove.
4612 (allocate_template_symbol): Remove.
4613 * dwarf2/read.c (fixup_go_packaging): Use "new".
4614 (new_symbol): Use "new".
4615 (read_variable): Don't call initialize_objfile_symbol. Use
4616 "new".
4617 (read_func_scope): Use "new".
4618 * xcoffread.c (process_xcoff_symbol): Don't call
4619 initialize_objfile_symbol.
4620 (SYMBOL_DUP): Remove.
4621 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4622 "new".
4623 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4624 (allocate_template_symbol): Don't declare.
4625 (struct symbol): Add copy constructor. Change defaults.
4626 * jit.c (finalize_symtab): Use "new".
4627 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4628 Use "new".
4629 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4630 (common_block_end): Use "new".
4631 * mdebugread.c (parse_symbol): Use "new".
4632 (new_symbol): Likewise.
4633
5b4a1a8d
PW
46342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4635
4636 * NEWS: Mention changes to help and apropos.
4637
57b4f16e
PW
46382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4639
4640 * command.h (enum command_class): Improve comments, document
4641 that class_alias is for user-defined aliases, give the class
4642 name for each class, remove unused class_xdb.
4643 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4644 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4645 by a precise class.
4646 * infcmd.c (_initialize_infcmd): Likewise.
4647 * reverse.c (_initialize_reverse): Likewise.
4648 * stack.c (_initialize_stack): Likewise.
4649 * symfile.c (_initialize_symfile): Likewise.
4650 * tracepoint.c (_initialize_tracepoint): Likewise.
4651
7c05caf7
PW
46522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4653
4654 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4655 when their aliased command is traversed.
4656 (help_cmd): Add fput_command_names_styled call to
4657 output command name and aliases when command has an alias.
4658
3b3aaacb
PW
46592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4660
4661 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4662 * cli/cli-decode.c (help_cmd_list): Declare as static,
4663 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4664 a command together with the command.
4665 (fput_command_name_styled, fput_command_names_styled): New functions.
4666 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4667 fput_command_name_styled.
4668 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4669 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4670
7aa1b46f
PW
46712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4672
4673 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4674 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4675 * command.h (cmd_show_list): Likewise.
4676 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4677 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4678
89bcba74
PW
46792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4680
4681 * unittests/command-def-selftests.c (traverse_command_structure):
4682 Verify all commands of a list have the same prefix command and
4683 that only the top cmdlist commands have a null prefix.
4684
3f4d92eb
PW
46852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4686
4687 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4688 as prefix, not one of its aliases.
4689 (set_cmd_prefix): Remove.
4690 (do_add_cmd): Centralize the setting of the prefix of a command, when
4691 command is defined after its full chain of prefix commands.
4692 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4693 (add_setshow_cmd_full): Likewise.
4694 (update_prefix_field_of_prefixed_commands): New function.
4695 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4696 update_prefix_field_of_prefixed_commands.
4697 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4698 addresses of remote_set_cmdlist and remote_show_cmdlist given
4699 as argument, not the address of an argument.
4700 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4701 * gdb/remote.c (_initialize_remote): Likewise.
4702
0605465f
PW
47032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4704
4705 * cli/cli-cmds.c (alias_command): Check for an existing alias
4706 using lookup_cmd_composition, as valid_command_p is too strict
4707 and forbids aliases that are the prefix of an existing alias
4708 or command.
4709 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4710 command is properly recognised as a valid command.
4711
58e6ac70
PW
47122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4713
4714 * unittests/help-doc-selftests.c: Rename to
4715 unittests/command-def-selftests.c
4716 * unittests/command-def-selftests.c (help_doc_tests): Update some
4717 comments.
4718 (command_structure_tests, traverse_command_structure): New namespace
4719 and function.
4720 (command_structure_invariants_tests): New function.
4721 (_initialize_command_def_selftests) Renamed from
4722 _initialize_help_doc_selftests, register command_structure_invariants
4723 selftest.
4724
a7b9ceb8
PW
47252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4726
4727 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4728 an alias of 'show'.
4729
b2188a06
JB
47302020-05-15 Joel Brobecker <brobecker@adacore.com>
4731
4732 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4733 ada_is_fixed_point_type. Update all callers.
4734 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4735 all callers.
4736 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4737 Update all callers.
4738 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4739 print_fixed_point_type. Update all callers.
4740 * ada-valprint.c (ada_value_print_num): Replace call to
4741 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4742
a51951c2
KB
47432020-05-14 Kevin Buettner <kevinb@redhat.com>
4744
4745 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4746 processors.
4747 (cpu_supports_bts): Add CV_AMD case.
4748
29d6859f
LM
47492020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4750 Simon Marchi <simon.marchi@efficios.com>
4751
4752 * infrun.c (stop_all_threads): Collect multiple wait events at
4753 each pass.
4754
78134374
SM
47552020-05-14 Simon Marchi <simon.marchi@efficios.com>
4756
4757 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4758 type::code instead.
4759
67607e24
SM
47602020-05-14 Simon Marchi <simon.marchi@efficios.com>
4761
4762 * gdbtypes.h (struct type) <code, set_code>: New methods.
4763 (TYPE_CODE): Use type::code. Change all call sites used to set
4764 the code to use type::set_code instead.
4765
a05575d3
TBA
47662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4767 Tom de Vries <tdevries@suse.de>
4768 Pedro Alves <palves@redhat.com>
4769
4770 PR threads/25478
4771 * infrun.c (stop_all_threads): Do NOT ignore
4772 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4773 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4774 received.
4775 (handle_no_resumed): Remove code handling a live inferior with no
4776 threads.
4777 * remote.c (has_single_non_exited_thread): New.
4778 (remote_target::update_thread_list): Do not delete a thread if is
4779 the last thread of the process.
4780 * thread.c (thread_select): Call delete_exited_threads instead of
4781 prune_threads.
4782
6ad82919
TBA
47832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4784
4785 * infrun.c (stop_all_threads): Enable/disable thread events of all
4786 targets. Move a debug message denoting the end of the function
4787 into the SCOPED_EXIT block.
4788
d890404b
TBA
47892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4790
4791 * process-stratum-target.h: Include <set>.
4792 (all_non_exited_process_targets, switch_to_target_no_thread): New
4793 function declarations.
4794 * process-stratum-target.c (all_non_exited_process_targets)
4795 (switch_to_target_no_thread): New function implementations.
4796
293b3ebc
TBA
47972020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4798
4799 * infrun.c (handle_inferior_event): Extract out a piece of code
4800 into...
4801 (mark_non_executing_threads): ...this new function.
4802
7ca9b62a
TBA
48032020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4804
4805 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4806 use.
4807
fc75c28b
TBA
48082020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4809
4810 * regcache.c (regcache_read_pc_protected): New function
4811 implementation that returns 0 if the PC cannot read via
4812 'regcache_read_pc'.
4813 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4814 instead of 'regcache_read_pc'.
4815 (keep_going_pass_signal): Ditto.
4816
a89febbd
TT
48172020-05-13 Tom Tromey <tromey@adacore.com>
4818
4819 * ada-lang.c (align_value): Remove.
4820 (ada_template_to_fixed_record_type_1): Use align_up.
4821
f7e23710
TBA
48222020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4823
4824 * async-event.c: Update the copyright year.
4825 * async-event.h: Update the copyright year.
4826
02ff80c2
SM
48272020-05-12 Simon Marchi <simon.marchi@efficios.com>
4828
4829 * objfiles.h (is_addr_in_objfile,
4830 shared_objfile_contains_address_p): Return bool.
4831 * objfile.c (is_addr_in_objfile,
4832 shared_objfile_contains_address_p): Return bool.
4833
4fd6c7e8
TT
48342020-05-11 Tom Tromey <tromey@adacore.com>
4835
4836 * cli/cli-cmds.c (info_command): Restore.
4837 (_initialize_cli_cmds): Use add_prefix_command for "info".
4838 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4839
5eb68a39
TT
48402020-05-11 Tom Tromey <tromey@adacore.com>
4841
4842 * ada-lang.c (ada_value_primitive_field): Now public.
4843 * ada-lang.h (ada_value_primitive_field): Declare.
4844 * ada-valprint.c (print_field_values): Use
4845 ada_value_primitive_field for wrapper fields.
4846
7666722f
TV
48472020-05-11 Tom de Vries <tdevries@suse.de>
4848
4849 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4850 MODULE_DOMAIN.
4851
3ee6bb11
TV
48522020-05-11 Tom de Vries <tdevries@suse.de>
4853
4854 PR symtab/25941
4855 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4856 with length 0, if not gdb-produced.
4857 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4858
43434996
TV
48592020-05-09 Tom de Vries <tdevries@suse.de>
4860
4861 PR gdb/25955
4862 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4863 calculation.
4864
2f78cffc
TT
48652020-05-09 Tom Tromey <tom@tromey.com>
4866
4867 * top.c (server_command): Now bool.
4868 * top.h (server_command): Now bool.
4869
4f7bc5ed
TT
48702020-05-08 Tom Tromey <tromey@adacore.com>
4871
4872 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4873 already being processed.
4874
8be4b118
TT
48752020-05-08 Tom Tromey <tom@tromey.com>
4876
4877 * printcmd.c (struct display) <next>: Remove.
4878 <display>: New constructor.
4879 <exp_string>: Now a std::string.
4880 <enabled_p>: Now a bool.
4881 (display_number): Move definition earlier.
4882 (displays): Rename from display_chain. Now a std::vector.
4883 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4884 (display_command): Update.
4885 (do_one_display, disable_display)
4886 (enable_disable_display_command, do_enable_disable_display):
4887 Update.
4888 (free_display): Remove.
4889 (clear_displays): Rewrite.
4890 (delete_display): Update.
4891 (map_display_numbers): Use function_view. Remove "data"
4892 parameter. Update.
4893 (do_delete_display): Remove.
4894 (undisplay_command): Update.
4895 (do_one_display, do_displays, disable_display)
4896 (info_display_command): Update.
4897 (do_enable_disable_display): Remove.
4898 (enable_disable_display_command)
4899 (clear_dangling_display_expressions): Update.
4900
94c93c35
TT
49012020-05-08 Tom Tromey <tom@tromey.com>
4902
4903 * symtab.c (set_symbol_cache_size)
4904 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4905 (maintenance_print_symbol_cache_statistics): Update.
4906 * symmisc.c (print_symbol_bcache_statistics)
4907 (print_objfile_statistics, maintenance_print_objfiles)
4908 (maintenance_info_symtabs, maintenance_check_symtabs)
4909 (maintenance_expand_symtabs, maintenance_info_line_tables):
4910 Update.
4911 * symfile-debug.c (set_debug_symfile): Update.
4912 * source.c (forget_cached_source_info): Update.
4913 * python/python.c (gdbpy_progspaces): Update.
4914 * psymtab.c (maintenance_info_psymtabs): Update.
4915 * probe.c (parse_probes): Update.
4916 * linespec.c (iterate_over_all_matching_symtabs)
4917 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4918 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4919 * exec.c (exec_target::close): Update.
4920 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4921 * breakpoint.c (print_one_breakpoint_location)
4922 (create_longjmp_master_breakpoint)
4923 (create_std_terminate_master_breakpoint): Update.
4924 * progspace.c (program_spaces): Now a std::vector.
4925 (maybe_new_address_space): Update.
4926 (add_program_space): Remove.
4927 (program_space::program_space): Update.
4928 (remove_program_space): Update.
4929 (number_of_program_spaces): Remove.
4930 (print_program_space, update_address_spaces): Update.
4931 * progspace.h (program_spaces): Change type.
4932 (ALL_PSPACES): Remove.
4933 (number_of_program_spaces): Don't declare.
4934 (struct program_space) <next>: Remove.
4935
a1fd1ac9
TT
49362020-05-08 Tom Tromey <tom@tromey.com>
4937
4938 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4939 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4940 (enable_break): Update.
4941 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4942 (frv_fdpic_find_canonical_descriptor): Update.
4943 (frv_fetch_objfile_link_map): Update.
4944 * progspace.c (program_space::free_all_objfiles): Update.
4945 (program_space::solibs): New method.
4946 * progspace.h (struct program_space) <solibs>: New method.
4947 * solist.h (master_so_list): Don't declare.
4948 (ALL_SO_LIBS): Remove.
4949 * solib.h (so_list_head): Remove.
4950 (update_solib_list): Update comment.
4951 * solib.c (master_so_list): Remove.
4952 (solib_used, update_solib_list, solib_add)
4953 (info_sharedlibrary_command, clear_solib)
4954 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4955
38eae084
TT
49562020-05-08 Tom Tromey <tom@tromey.com>
4957
4958 * extension.c (extension_languages): Now a std::array.
4959 (ALL_EXTENSION_LANGUAGES): Remove.
4960 (get_ext_lang_defn, get_ext_lang_of_file)
4961 (eval_ext_lang_from_control_command): Update.
4962 (finish_ext_lang_initialization)
4963 (auto_load_ext_lang_scripts_for_objfile)
4964 (ext_lang_type_printers::ext_lang_type_printers)
4965 (apply_ext_lang_type_printers)
4966 (ext_lang_type_printers::~ext_lang_type_printers)
4967 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4968 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4969 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4970 (get_matching_xmethod_workers, ext_lang_colorize)
4971 (ext_lang_before_prompt): Update.
4972 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4973
596dc4ad
TT
49742020-05-08 Tom Tromey <tom@tromey.com>
4975
4976 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4977 overload.
4978 <swap_string, m_string>: Remove.
4979 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4980 Update.
4981 * stabsread.c (define_symbol, read_type): Update.
4982 * linespec.c (find_linespec_symbols): Update.
4983 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4984 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4985 * dbxread.c (read_dbx_symtab): Update.
4986 * cp-support.h (cp_canonicalize_string_full)
4987 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4988 Return unique_xmalloc_ptr.
4989 * cp-support.c (inspect_type): Update.
4990 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4991 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4992 Likewise.
4993 * c-typeprint.c (print_name_maybe_canonical): Update.
4994 * break-catch-throw.c (check_status_exception_catchpoint):
4995 Update.
4996
bf4cb9be
TV
49972020-05-08 Tom de Vries <tdevries@suse.de>
4998
4999 * infrun.c (follow_fork): Copy current_line and current_symtab to
5000 child thread.
5001
a1b68f28
SM
50022020-05-07 Simon Marchi <simon.marchi@efficios.com>
5003
5004 * async-event.c (struct async_signal_handler, struct
5005 async_event_handler): Reformat, remove typedef.
5006
98d48915
SM
50072020-05-07 Simon Marchi <simon.marchi@efficios.com>
5008
5009 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5010 access thistype->main_type->dyn_prop_list directly.
5011
7aa91313
SM
50122020-05-07 Simon Marchi <simon.marchi@efficios.com>
5013
5014 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5015 (remove_dyn_prop): Remove. Update all users to use
5016 type::remove_dyn_prop.
5017 * gdbtypes.c (remove_dyn_prop): Rename to...
5018 (type::remove_dyn_prop): ... this.
5019
5c54719c
SM
50202020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5021
5022 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5023 (add_dyn_prop): Remove. Update all users to use
5024 type::add_dyn_prop.
5025 * gdbtypes.c (add_dyn_prop): Rename to...
5026 (type::add_dyn_prop): ... this.
5027
24e99c6c
SM
50282020-05-07 Simon Marchi <simon.marchi@efficios.com>
5029
5030 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5031 (get_dyn_prop): Remove. Update all users to use
5032 type::dyn_prop.
5033 * gdbtypes.c (get_dyn_prop): Rename to...
5034 (type::dyn_prop): ... this.
5035
0d4bf016
SM
50362020-05-06 Simon Marchi <simon.marchi@efficios.com>
5037
5038 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5039
ac4a4f1c
SM
50402020-05-06 Simon Marchi <simon.marchi@efficios.com>
5041
5042 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5043 instruction, skip it if it's there.
5044
a3bbacc1
SM
50452020-05-05 Simon Marchi <simon.marchi@efficios.com>
5046
5047 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5048
c3236f84
SM
50492020-05-04 Simon Marchi <simon.marchi@efficios.com>
5050
5051 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5052 * gdbtypes.c (recursive_dump_type): Remove use of
5053 TYPE_INCOMPLETE.
5054
3b6acaee
TT
50552020-05-03 Tom Tromey <tom@tromey.com>
5056
5057 * breakpoint.c (catch_command, tcatch_command): Remove.
5058 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5059 add_show_prefix_cmd.
5060 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5061 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5062 Remove.
5063 (add_internal_problem_command): Use add_basic_prefix_cmd,
5064 add_show_prefix_cmd.
5065 * mips-tdep.c (set_mipsfpu_command): Remove.
5066 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5067 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5068 (_initialize_index_cache): Use add_basic_prefix_cmd.
5069 * memattr.c (dummy_cmd): Remove.
5070 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5071 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5072 (_initialize_tui_win): Use add_basic_prefix_cmd,
5073 add_show_prefix_cmd.
5074 * cli/cli-logging.c (set_logging_command): Remove.
5075 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5076 add_show_prefix_cmd.
5077 (show_logging_command): Remove.
5078 * target.c (target_command): Remove.
5079 (add_target): Use add_basic_prefix_cmd.
5080
a51119cd
HD
50812020-05-02 Hannes Domani <ssbssa@yahoo.de>
5082
5083 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5084
652fc23a 50852020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5086
652fc23a
PW
5087 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5088 info_command.
5089
117539e6
KR
50902020-04-30 Kamil Rytarowski <n54@gmx.com>
5091
5092 * nbsd-nat.c (nbsd_enable_proc_events)
5093 (nbsd_nat_target::post_startup_inferior): Add.
5094 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5095 (nbsd_nat_target::update_thread_list): Rewrite.
5096 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5097 "PTRACE_LWP_CREATE".
5098 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5099
102e38eb 51002020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5101
102e38eb
PW
5102 * stack.c (_initialize_stack): Remove duplicated creation
5103 of "frame" command and "f" alias.
5104
ee9d1e5f
HD
51052020-04-30 Hannes Domani <ssbssa@yahoo.de>
5106
5107 PR gdb/18706
5108 * gdbtypes.c (check_typedef): Calculate size of array of
5109 stubbed type.
5110
627c7fb8
HD
51112020-04-30 Hannes Domani <ssbssa@yahoo.de>
5112
5113 PR gdb/15559
5114 * i386-tdep.c (i386_push_dummy_call): Call
5115 i386_thiscall_push_dummy_call.
5116 (i386_thiscall_push_dummy_call): New function.
5117 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5118 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5119 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5120
ffc2844e
SM
51212020-04-29 Simon Marchi <simon.marchi@efficios.com>
5122
5123 * gdbarch.sh (do_read): Add shellcheck disable directive for
5124 warning SC2162.
5125
1207375d
SM
51262020-04-29 Simon Marchi <simon.marchi@efficios.com>
5127
5128 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5129 "referenced but not assigned" warning.
5130
9fdb2916
SM
51312020-04-29 Simon Marchi <simon.marchi@efficios.com>
5132
5133 * gdbarch.sh: Remove code that sets fallbackdefault.
5134
759cea5e
SM
51352020-04-29 Simon Marchi <simon.marchi@efficios.com>
5136
5137 * gdbarch.sh: Use shell operators && and || instead of
5138 -a and -o.
5139
cb02ab24
SM
51402020-04-29 Simon Marchi <simon.marchi@efficios.com>
5141
5142 * gdbarch.sh: Use $(...) instead of `...`.
5143
a6fc5ffc
SM
51442020-04-29 Simon Marchi <simon.marchi@efficios.com>
5145
5146 * gdbarch.sh: Use double quotes around variables.
5147
8d113d13
SM
51482020-04-29 Simon Marchi <simon.marchi@efficios.com>
5149
5150 * gdbarch.sh: Use %s with printf, instead of variables in the
5151 format string.
5152
ed6acedd
TT
51532020-04-29 Tom Tromey <tromey@adacore.com>
5154
5155 PR ada/25875:
5156 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5157 type fields here.
5158 (read_enumeration_type): Call
5159 update_enumeration_type_from_children later. Update comments.
5160 (process_enumeration_scope): Don't create type fields.
5161
b68b1b58
KR
51622020-04-29 Kamil Rytarowski <n54@gmx.com>
5163
5164 * nbsd-tdep.c: Include "xml-syscall.h".
5165 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5166
f94b2e03
KR
51672020-04-29 Kamil Rytarowski <n54@gmx.com>
5168
5169 * nbsd-nat.c: Include "sys/wait.h".
5170 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5171 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5172 (nbsd_nat_target::remove_exec_catchpoint)
5173 (nbsd_nat_target::set_syscall_catchpoint): Add.
5174 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5175 (nbsd_nat_target::insert_exec_catchpoint)
5176 (nbsd_nat_target::remove_exec_catchpoint)
5177 (nbsd_nat_target::set_syscall_catchpoint): Add.
5178 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5179 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5180 `nbsd_get_syscall_number'.
5181
fc49bc72
TT
51822020-04-29 Tom Tromey <tom@tromey.com>
5183
5184 * stack.c (print_block_frame_labels): Remove.
5185
d642b692
HD
51862020-04-29 Hannes Domani <ssbssa@yahoo.de>
5187
5188 PR gdb/17320
5189 * ada-valprint.c (val_print_packed_array_elements): Move array
5190 end bracket to new line.
5191 (ada_val_print_string): Remove extra spaces before first array
5192 element.
5193 * c-valprint.c (c_value_print_array): Likewise.
5194 * m2-valprint.c (m2_print_array_contents): Likewise.
5195 (m2_value_print_inner): Likewise.
5196 * p-valprint.c (pascal_value_print_inner): Likewise.
5197 * valprint.c (generic_val_print_array): Likewise.
5198 (value_print_array_elements): Move first array element and array
5199 end bracket to new line.
5200
ea90f227
TV
52012020-04-29 Tom de Vries <tdevries@suse.de>
5202
5203 PR symtab/25889
5204 * linespec.c (find_method): Fix ix calculation.
5205
4498ef4f
KR
52062020-04-28 Kamil Rytarowski <n54@gmx.com>
5207
5208 * syscalls/update-netbsd.sh: New file.
5209 * syscalls/netbsd.xml: Regenerate.
5210 * data-directory/Makefile.in: Register `netbsd.xml' in
5211 `SYSCALLS_FILES'.
5212
a55e30b5
SM
52132020-04-28 Simon Marchi <simon.marchi@efficios.com>
5214
5215 * syscalls/update-freebsd.sh: Add double quotes.
5216
2b2fbab8
TT
52172020-04-28 Tom Tromey <tom@tromey.com>
5218
5219 * NEWS: Update.
5220 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5221 (cmdpy_init): Allow class_tui.
5222
a65189c9
TV
52232020-04-28 Mark Williams <mark@myosotissp.com>
5224
5225 PR gdb/24480
5226 * dwarf2read.c: Add missing assingments to list_in_scope when
5227 start_symtab was already called.
5228
1b95cdb7
SM
52292020-04-28 Simon Marchi <simon.marchi@efficios.com>
5230
5231 PR gdb/25881
5232 * dwarf2/read.c (offset_map_type): Use
5233 gdb:hash_enum<sect_offset> as hash function.
5234
15cd93d0
TV
52352020-04-28 Tom de Vries <tdevries@suse.de>
5236
5237 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5238 with DW_AT_signature.
5239
1eb39914
SM
52402020-04-27 Simon Marchi <simon.marchi@efficios.com>
5241
5242 * configure.ac: Remove check for fs_base/gs_base in
5243 user_regs_struct.
5244 * configure: Re-generate.
5245 * config.in: Re-generate.
5246 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5247 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5248 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5249
991a3e2e
LM
52502020-04-27 Luis Machado <luis.machado@linaro.org>
5251
5252 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5253 problematic inline frame unwinding situation.
5254 * frame.c (frame_id_computed_p): New function.
5255 * frame.h (frame_id_computed_p): New prototype.
5256
361ba0e8
TT
52572020-04-26 Tom Tromey <tom@tromey.com>
5258
5259 * command.h (enum command_class) <class_pseudo>: Remove.
5260
bc3609fd
PW
52612020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5262
5263 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5264 and whitespace.
5265
b9771db7
KR
52662020-04-25 Kamil Rytarowski <n54@gmx.com>
5267
ec16513e
SM
5268 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5269 `PT_GET_PROCESS_STATE' block.
b9771db7 5270
7151c1af
TT
52712020-04-24 Tom Tromey <tom@tromey.com>
5272
5273 * symtab.h (symbol_get_demangled_name): Don't declare.
5274 * symtab.c (symbol_get_demangled_name): Remove.
5275 (general_symbol_info::natural_name)
5276 (general_symbol_info::demangled_name): Update.
5277
906bb4c5
TT
52782020-04-24 Tom Tromey <tom@tromey.com>
5279
5280 PR rust/25025:
5281 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5282
bcfe6157
TT
52832020-04-24 Tom Tromey <tom@tromey.com>
5284
5285 PR symtab/12707:
5286 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5287 exists.
5288 (new_symbol): Likewise.
5289 * compile/compile-object-load.c (get_out_value_type): Use
5290 symbol_matches_search_name.
5291
f049a313
TT
52922020-04-24 Tom Tromey <tom@tromey.com>
5293
5294 * dwarf2/read.c (add_partial_symbol): Do not call
5295 compute_and_set_names.
5296
76e288d1
TT
52972020-04-24 Tom Tromey <tom@tromey.com>
5298
5299 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5300 overload.
5301
2467f4f6
TT
53022020-04-24 Tom Tromey <tom@tromey.com>
5303
5304 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5305 (add_psymbol_to_list): New overload. Make old overload call new
5306 one.
5307 * psympriv.h (add_psymbol_to_list): New overload.
5308
e61108c9
TT
53092020-04-24 Tom Tromey <tom@tromey.com>
5310
5311 * dwarf2/read.c (partial_die_info::read) <case
5312 DW_AT_linkage_name>: Use value_as_string.
5313 (dwarf2_string_attr): Use value_as_string.
5314 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5315 method.
5316 * dwarf2/attribute.c (attribute::value_as_string): New method.
5317
8c87a452
TT
53182020-04-24 Tom Tromey <tom@tromey.com>
5319
5320 * symtab.c (general_symbol_info::natural_name)
5321 (general_symbol_info::demangled_name): Check for language_rust.
5322
787de330
TT
53232020-04-24 Tom Tromey <tom@tromey.com>
5324
5325 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5326 (dwarf2_physname): ... from here.
5327 (partial_die_info::read): Add Rust "{" hack.
5328
ff985671
TT
53292020-04-24 Tom Tromey <tom@tromey.com>
5330
5331 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5332 method.
5333 (symbol_set_demangled_name): Don't declare.
5334 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5335 symbol_set_demangled_name.
5336 (general_symbol_info::set_language)
5337 (general_symbol_info::compute_and_set_names): Update.
5338 * minsyms.c (minimal_symbol_reader::install): Update.
5339 * dwarf2/read.c (new_symbol): Update.
5340
1acda803
TT
53412020-04-24 Tom Tromey <tromey@adacore.com>
5342
5343 PR python/23662:
5344 * python/py-type.c (convert_field): Handle
5345 FIELD_LOC_KIND_DWARF_BLOCK.
5346 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5347 (typy_get_dynamic): Nw function.
5348 (type_object_getset): Add "dynamic".
5349 * NEWS: Add entry.
5350
d656f129
TT
53512020-04-24 Tom Tromey <tromey@adacore.com>
5352
5353 * ada-typeprint.c (print_choices, print_variant_part)
5354 (print_record_field_types_dynamic): New functions.
5355 (print_record_field_types): Use print_record_field_types_dynamic.
5356
7d79de9a
TT
53572020-04-24 Tom Tromey <tromey@adacore.com>
5358
5359 * dwarf2/read.c (handle_data_member_location): New overload.
5360 (dwarf2_add_field): Use it.
5361 (decode_locdesc): Add "computed" parameter. Update comment.
5362 * gdbtypes.c (is_dynamic_type_internal): Also look for
5363 FIELD_LOC_KIND_DWARF_BLOCK.
5364 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5365 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5366 virtual base classes.
5367 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5368 FIELD_LOC_KIND_DWARF_BLOCK.
5369
f8e89861
TT
53702020-04-24 Tom Tromey <tromey@adacore.com>
5371
5372 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5373 * gdbtypes.c (is_dynamic_type_internal): Check
5374 TYPE_HAS_DYNAMIC_LENGTH.
5375 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5376 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5377 New macros.
5378 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5379 constant.
5380
9c6a1327
TT
53812020-04-24 Tom Tromey <tromey@adacore.com>
5382
5383 * dwarf2/read.c (struct variant_field): Rewrite.
5384 (struct variant_part_builder): New.
5385 (struct nextfield): Remove "variant" field. Add "offset".
5386 (struct field_info): Add "current_variant_part" and
5387 "variant_parts".
5388 (alloc_discriminant_info): Remove.
5389 (alloc_rust_variant): New function.
5390 (quirk_rust_enum): Update.
5391 (dwarf2_add_field): Set "offset" member. Don't handle
5392 DW_TAG_variant_part.
5393 (offset_map_type): New typedef.
5394 (convert_variant_range, create_one_variant)
5395 (create_one_variant_part, create_variant_parts)
5396 (add_variant_property): New functions.
5397 (dwarf2_attach_fields_to_type): Call add_variant_property.
5398 (read_structure_type): Don't handle DW_TAG_variant_part.
5399 (handle_variant_part, handle_variant): New functions.
5400 (handle_struct_member_die): Use them.
5401 (process_structure_scope): Don't handle variant parts.
5402 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5403 (struct discriminant_info): Remove.
5404 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5405 (struct main_type) <flag_discriminated_union>: Remove.
5406 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5407 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5408 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5409 Update.
5410 * valops.c (value_union_variant): Remove.
5411 * value.h (value_union_variant): Don't declare.
5412
b249d2c2
TT
54132020-04-24 Tom Tromey <tromey@adacore.com>
5414
5415 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5416 (ada_value_primitive_packed_val): Update.
5417 * ada-valprint.c (ada_value_print_1): Update.
5418 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5419 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5420 just an address. Use evaluate_for_locexpr_baton.
5421 (dwarf2_evaluate_property): Update.
5422 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5423 array_view.
5424 * findvar.c (default_read_var_value): Update.
5425 * gdbtypes.c (compute_variant_fields_inner)
5426 (resolve_dynamic_type_internal): Update.
5427 (resolve_dynamic_type): Change type of valaddr parameter.
5428 * gdbtypes.h (resolve_dynamic_type): Update.
5429 * valarith.c (value_subscripted_rvalue): Update.
5430 * value.c (value_from_contents_and_address): Update.
5431
61122aa9
TT
54322020-04-24 Tom Tromey <tromey@adacore.com>
5433
5434 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5435 "push_initial_value" parameter.
5436 (dwarf2_evaluate_property): Likewise.
5437 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5438
ef83a141
TT
54392020-04-24 Tom Tromey <tromey@adacore.com>
5440
5441 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5442 (variant::matches, compute_variant_fields_recurse)
5443 (compute_variant_fields_inner, compute_variant_fields): New
5444 functions.
5445 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5446 Use resolved_type after type is made.
5447 (operator==): Add new cases.
5448 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5449 (struct discriminant_range, struct variant, struct variant_part):
5450 New.
5451 (union dynamic_prop_data) <variant_parts, original_type>: New
5452 members.
5453 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5454 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5455 constants.
5456 * value.c (unpack_bits_as_long): Now public.
5457 * value.h (unpack_bits_as_long): Declare.
5458
675127ec
TT
54592020-04-24 Tom Tromey <tromey@adacore.com>
5460
5461 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5462 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5463
9852ceef
HD
54642020-04-24 Hannes Domani <ssbssa@yahoo.de>
5465
5466 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5467
7632c6ce
KR
54682020-04-24 Kamil Rytarowski <n54@gmx.com>
5469
5470 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5471 (remove_fork_catchpoint, post_startup_inferior)
5472 (post_attach): Move...
5473 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5474 (remove_fork_catchpoint, post_startup_inferior)
5475 (post_attach): ...here.
5476 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5477 (remove_fork_catchpoint, post_startup_inferior)
5478 (post_attach): Move...
5479 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5480 (remove_fork_catchpoint, post_startup_inferior)
5481 (post_attach): ...here.
5482
7be2bb4f
TT
54832020-04-24 Tom Tromey <tromey@adacore.com>
5484
5485 * nat/windows-nat.h (struct windows_thread_info)
5486 <pc_adjusted>: New member.
5487 * windows-nat.c (windows_fetch_one_register): Check
5488 pc_adjusted.
5489 (windows_nat_target::get_windows_debug_event)
5490 (windows_nat_target::wait): Set pc_adjusted.
5491
f80cb3b4
TV
54922020-04-24 Tom de Vries <tdevries@suse.de>
5493
5494 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5495 Run gdb-add-index inside temp dir.
5496
29514b87
TT
54972020-04-23 Tom Tromey <tromey@adacore.com>
5498
5499 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5500 in loop.
5501
5939967b
LM
55022020-04-23 Luis Machado <luis.machado@linaro.org>
5503
5504 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5505 get_frame_register instead of gdbarch_unwind_pc.
5506
70bc38f5
TV
55072020-04-23 Tom de Vries <tdevries@suse.de>
5508
5509 * symtab.c (lookup_global_symbol): Prefer def over decl.
5510
de82891c
TV
55112020-04-23 Tom de Vries <tdevries@suse.de>
5512
5513 PR symtab/25807
5514 * block.c (best_symbol, better_symbol): Promote to external.
5515 * block.h (best_symbol, better_symbol): Declare.
5516 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5517 decl.
5518
ecc6c606
TT
55192020-04-23 Tom Tromey <tromey@adacore.com>
5520
5521 PR ada/25837:
5522 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5523 "const char *", not a "const std::string &".
5524 <name_and_matcher::operator==>: Update.
5525 * unittests/lookup_name_info-selftests.c: Change type of
5526 "result".
5527
740480b8
TT
55282020-04-23 Tom Tromey <tom@tromey.com>
5529
5530 * inferior.h (iterate_over_inferiors): Don't declare.
5531 * inferior.c (iterate_over_inferiors): Remove.
5532 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5533 Remove.
5534 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5535 use iterate_over_inferiors.
5536 (darwin_resume_inferior_it)
5537 (struct resume_inferior_threads_param)
5538 (darwin_resume_inferior_threads_it): Remove.
5539 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5540
ae3ab1f0
TV
55412020-04-23 Tom de Vries <tdevries@suse.de>
5542
5543 * blockframe.c (find_pc_partial_function): Use
5544 find_pc_sect_compunit_symtab rather than
5545 objfile->sf->qf->find_pc_sect_compunit_symtab.
5546
317d2668
TV
55472020-04-22 Tom de Vries <tdevries@suse.de>
5548
5549 PR symtab/25764
5550 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5551 in psymtabs.
5552
eea9e357
TV
55532020-04-22 Tom de Vries <tdevries@suse.de>
5554
5555 PR symtab/25801
5556 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5557 symtabs.
5558
3d5afab3
TV
55592020-04-22 Tom de Vries <tdevries@suse.de>
5560
5561 PR symtab/25700
5562 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5563 CU if already created.
5564
d43b7a2d
TBA
55652020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5566
5567 * infrun.c (displaced_step_fixup): Switch to the event_thread
5568 before calling displaced_step_restore, not after.
5569
d89edf9b
MM
55702020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5571
5572 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5573 its inferior is not recorded by us.
5574 (record_btrace_target_open): Replace call to
5575 all_non_exited_threads () with call to current_inferior
5576 ()->non_exited_threads ().
5577 (record_btrace_target::stop_recording): Likewise.
5578 (record_btrace_target::close): Likewise.
5579 (record_btrace_target::wait): Likewise.
5580 (record_btrace_target::record_stop_replaying): Likewise.
5581
5897fd49
MM
55822020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5583
5584 * btrace.c (btrace_enable): Throw an error on double enables and
5585 when enabling recording fails.
5586 (btrace_disable): Throw an error if the thread is not recorded.
5587
1a476b6d
MM
55882020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5589
5590 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5591 request if we do not have a thread_info.
5592
4778a5f8
TV
55932020-04-21 Tom de Vries <tdevries@suse.de>
5594
5595 PR gdb/25471
5596 * thread.c
5597 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5598 exception in get_frame_id.
5599
0fa7617d
TT
56002020-04-20 Tom Tromey <tromey@adacore.com>
5601
5602 * python/python.c (struct gdbpy_event): Mark move constructor as
5603 noexcept.
5604 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5605 constructor as noexcept.
5606 * completer.h (struct completion_result): Mark move constructor as
5607 noexcept.
5608 * completer.c (completion_result::completion_result): Use
5609 initialization style. Don't call reset_match_list.
5610
ad23bda0
MS
56112020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5612
5613 * MAINTAINERS (Write After Approval): Add myself.
5614
45e1f031
TT
56152020-04-18 Tom Tromey <tom@tromey.com>
5616
5617 * windows-tdep.c (init_w32_command_list)
5618 (w32_prefix_command_valid): Restore.
5619 (_initialize_windows_tdep): Call init_w32_command_list.
5620
08feed99
TT
56212020-04-18 Tom Tromey <tom@tromey.com>
5622
5623 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5624 * value.c (value_fn_field): Update.
5625 * valops.c (find_function_in_inferior)
5626 (value_allocate_space_in_inferior): Update.
5627 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5628 Update.
5629 * tui/tui-source.c (tui_source_window::set_contents): Update.
5630 * symtab.c (lookup_global_or_static_symbol)
5631 (find_function_start_sal_1, skip_prologue_sal)
5632 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5633 * symmisc.c (dump_msymbols, dump_symtab_1)
5634 (maintenance_print_one_line_table): Update.
5635 * symfile.c (init_entry_point_info, section_is_mapped)
5636 (list_overlays_command, simple_read_overlay_table)
5637 (simple_overlay_update_1): Update.
5638 * stap-probe.c (handle_stap_probe): Update.
5639 * stabsread.c (dbx_init_float_type, define_symbol)
5640 (read_one_struct_field, read_enum_type, read_range_type): Update.
5641 * source.c (info_line_command): Update.
5642 * python/python.c (gdbpy_source_objfile_script)
5643 (gdbpy_execute_objfile_script): Update.
5644 * python/py-type.c (save_objfile_types): Update.
5645 * python/py-objfile.c (py_free_objfile): Update.
5646 * python/py-inferior.c (python_new_objfile): Update.
5647 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5648 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5649 (maintenance_check_psymtabs): Update.
5650 * printcmd.c (info_address_command): Update.
5651 * objfiles.h (struct objfile) <arch>: New method, from
5652 get_objfile_arch.
5653 (get_objfile_arch): Don't declare.
5654 * objfiles.c (get_objfile_arch): Remove.
5655 (filter_overlapping_sections): Update.
5656 * minsyms.c (msymbol_is_function): Update.
5657 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5658 (output_nondebug_symbol): Update.
5659 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5660 (mdebug_expand_psymtab): Update.
5661 * machoread.c (macho_add_oso_symfile): Update.
5662 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5663 Update.
5664 * linux-fork.c (checkpoint_command): Update.
5665 * linespec.c (convert_linespec_to_sals): Update.
5666 * jit.c (finalize_symtab): Update.
5667 * infrun.c (insert_exception_resume_from_probe): Update.
5668 * ia64-tdep.c (ia64_find_unwind_table): Update.
5669 * hppa-tdep.c (internalize_unwinds): Update.
5670 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5671 Update.
5672 * gcore.c (call_target_sbrk): Update.
5673 * elfread.c (record_minimal_symbol, elf_symtab_read)
5674 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5675 (elf_gnu_ifunc_resolve_by_got): Update.
5676 * dwarf2/read.c (create_addrmap_from_index)
5677 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5678 (read_debug_names_from_section)
5679 (process_psymtab_comp_unit_reader, add_partial_symbol)
5680 (add_partial_subprogram, process_full_comp_unit)
5681 (read_file_scope, read_func_scope, read_lexical_block_scope)
5682 (read_call_site_scope, dwarf2_ranges_read)
5683 (dwarf2_record_block_ranges, dwarf2_add_field)
5684 (mark_common_block_symbol_computed, read_tag_pointer_type)
5685 (read_tag_string_type, dwarf2_init_float_type)
5686 (dwarf2_init_complex_target_type, read_base_type)
5687 (partial_die_info::read, partial_die_info::read)
5688 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5689 (dwarf2_fetch_die_loc_sect_off): Update.
5690 * dwarf2/loc.c (dwarf2_find_location_expression)
5691 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5692 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5693 (dwarf2_loc_desc_get_symbol_read_needs)
5694 (locexpr_describe_location_piece, locexpr_describe_location_1)
5695 (loclist_describe_location): Update.
5696 * dwarf2/index-write.c (write_debug_names): Update.
5697 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5698 * dtrace-probe.c (dtrace_process_dof): Update.
5699 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5700 (process_one_symbol): Update.
5701 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5702 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5703 (coff_read_enum_type): Update.
5704 * cli/cli-cmds.c (edit_command, list_command): Update.
5705 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5706 * breakpoint.c (create_overlay_event_breakpoint)
5707 (create_longjmp_master_breakpoint)
5708 (create_std_terminate_master_breakpoint)
5709 (create_exception_master_breakpoint, get_sal_arch): Update.
5710 * block.c (block_gdbarch): Update.
5711 * annotate.c (annotate_source_line): Update.
5712
0743fc83
TT
57132020-04-17 Tom Tromey <tromey@adacore.com>
5714
5715 * auto-load.c (show_auto_load_cmd): Remove.
5716 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5717 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5718 (maintenance_print_arc_command): Remove.
5719 * tui/tui-win.c (tui_command): Remove.
5720 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5721 * tui/tui-layout.c (tui_layout_command): Remove.
5722 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5723 * python/python.c (user_set_python, user_show_python): Remove.
5724 (_initialize_python): Use add_basic_prefix_cmd,
5725 add_show_prefix_cmd.
5726 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5727 (install_gdb_commands): Use add_basic_prefix_cmd,
5728 add_show_prefix_cmd.
5729 (info_guile_command): Remove.
5730 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5731 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5732 add_show_prefix_cmd.
5733 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5734 Remove do_set and do_show parameters.
5735 * cli/cli-style.c (set_style, show_style): Remove.
5736 (_initialize_cli_style): Use add_basic_prefix_cmd,
5737 add_show_prefix_cmd.
5738 (cli_style_option::add_setshow_commands): Remove do_set and
5739 do_show parameters.
5740 (cli_style_option::add_setshow_commands): Use
5741 add_basic_prefix_cmd, add_show_prefix_cmd.
5742 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5743 (set_style_name): Remove.
5744 * cli/cli-dump.c (dump_command, append_command): Remove.
5745 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5746 (tekhex_dump_command, binary_dump_command)
5747 (binary_append_command): Remove.
5748 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5749 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5750 (init_w32_command_list): Remove; move into ...
5751 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5752 * valprint.c (set_print, show_print, set_print_raw)
5753 (show_print_raw): Remove.
5754 (_initialize_valprint): Use add_basic_prefix_cmd,
5755 add_show_prefix_cmd.
5756 * typeprint.c (set_print_type, show_print_type): Remove.
5757 (_initialize_typeprint): Use add_basic_prefix_cmd,
5758 add_show_prefix_cmd.
5759 * record.c (set_record_command, show_record_command): Remove.
5760 (_initialize_record): Use add_basic_prefix_cmd,
5761 add_show_prefix_cmd.
5762 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5763 add_show_prefix_cmd.
5764 (info_command, show_command, set_debug, show_debug): Remove.
5765 * top.h (set_history, show_history): Don't declare.
5766 * top.c (set_history, show_history): Remove.
5767 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5768 (unset_tdesc_cmd): Remove.
5769 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5770 add_show_prefix_cmd.
5771 * symtab.c (info_module_command): Remove.
5772 (_initialize_symtab): Use add_basic_prefix_cmd.
5773 * symfile.c (overlay_command): Remove.
5774 (_initialize_symfile): Use add_basic_prefix_cmd.
5775 * sparc64-tdep.c (info_adi_command): Remove.
5776 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5777 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5778 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5779 add_show_prefix_cmd.
5780 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5781 (_initialize_serial): Use add_basic_prefix_cmd,
5782 add_show_prefix_cmd.
5783 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5784 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5785 add_show_prefix_cmd.
5786 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5787 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5788 add_show_prefix_cmd.
5789 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5790 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5791 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5792 add_show_prefix_cmd.
5793 * remote.c (remote_command, set_remote_cmd): Remove.
5794 (_initialize_remote): Use add_basic_prefix_cmd.
5795 * record-full.c (set_record_full_command)
5796 (show_record_full_command): Remove.
5797 (_initialize_record_full): Use add_basic_prefix_cmd,
5798 add_show_prefix_cmd.
5799 * record-btrace.c (cmd_set_record_btrace)
5800 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5801 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5802 (cmd_show_record_btrace_pt): Remove.
5803 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5804 add_show_prefix_cmd.
5805 * ravenscar-thread.c (set_ravenscar_command)
5806 (show_ravenscar_command): Remove.
5807 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5808 add_show_prefix_cmd.
5809 * mips-tdep.c (show_mips_command, set_mips_command)
5810 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5811 add_show_prefix_cmd.
5812 * maint.c (maintenance_command, maintenance_info_command)
5813 (maintenance_check_command, maintenance_print_command)
5814 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5815 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5816 add_show_prefix_cmd.
5817 (show_per_command_cmd): Remove.
5818 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5819 Remove.
5820 (maintenance_show_test_settings_cmd): Remove.
5821 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5822 add_show_prefix_cmd.
5823 * maint-test-options.c (maintenance_test_options_command):
5824 Remove.
5825 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5826 * macrocmd.c (macro_command): Remove
5827 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5828 * language.c (set_check, show_check): Remove.
5829 (_initialize_language): Use add_basic_prefix_cmd,
5830 add_show_prefix_cmd.
5831 * infcmd.c (unset_command): Remove.
5832 (_initialize_infcmd): Use add_basic_prefix_cmd.
5833 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5834 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5835 add_show_prefix_cmd.
5836 * go32-nat.c (go32_info_dos_command): Remove.
5837 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5838 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5839 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5840 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5841 (_initialize_frame): Use add_basic_prefix_cmd,
5842 add_show_prefix_cmd.
5843 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5844 (_initialize_dcache): Use add_basic_prefix_cmd,
5845 add_show_prefix_cmd.
5846 * cp-support.c (maint_cplus_command): Remove.
5847 (_initialize_cp_support): Use add_basic_prefix_cmd.
5848 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5849 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5850 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5851 add_basic_prefix_cmd, add_show_prefix_cmd.
5852 * breakpoint.c (save_command): Remove.
5853 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5854 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5855 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5856 add_show_prefix_cmd.
5857 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5858 (set_ada_command, show_ada_command): Remove.
5859 (_initialize_ada_language): Use add_basic_prefix_cmd,
5860 add_show_prefix_cmd.
5861 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5862
3557f442
KR
58632020-04-16 Kamil Rytarowski <n54@gmx.com>
5864
5865 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5866 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5867
16197208
SM
58682020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5869
5870 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5871 warning messages.
5872
00ac85d3
SM
58732020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5874
5875 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5876 import table is not at beginning of .idata section.
5877
381ce63f
PA
58782020-04-16 Pedro Alves <palves@redhat.com>
5879
5880 * inferior.c (delete_inferior): Use delete operator directly
5881 instead of delete_program_space.
5882 * progspace.c (add_program_space): New, factored out from
5883 program_space::program_space.
5884 (remove_program_space): New, factored out from
5885 delete_program_space.
5886 (program_space::program_space): Remove intro comment. Rewrite.
5887 (program_space::~program_space): Remove intro comment. Call
5888 remove_program_space.
5889 (delete_program_space): Delete.
5890 * progspace.h (program_space::program_space): Make explicit. Move
5891 intro comment here, adjusted.
5892 (program_space::~program_space): Move intro comment here,
5893 adjusted.
5894 (delete_program_space): Remove.
5895
a010605f
TT
58962020-04-16 Tom Tromey <tromey@adacore.com>
5897
5898 * windows-nat.c (windows_nat::handle_access_violation): New
5899 function.
5900 * nat/windows-nat.h (handle_access_violation): Declare.
5901 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5902 windows-nat.c. Call handle_access_violation.
5903
efba5c23
TV
59042020-04-16 Tom de Vries <tdevries@suse.de>
5905
5906 PR symtab/25791
5907 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5908 CUs without psymtab.
5909
97ed802d
KB
59102020-04-16 Kevin Buettner <kevinb@redhat.com>
5911
5912 * python/python.c (do_start_initialization): Don't call
5913 PyEval_InitThreads for Python 3.9 and beyond.
5914
c7d64809
KR
59152020-04-15 Kamil Rytarowski <n54@gmx.com>
5916
5917 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5918 thread functions.
5919 (obsd_nat_target::wait): Likewise.
5920
ce127a96
TT
59212020-04-15 Tom Tromey <tromey@adacore.com>
5922
5923 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5924 (DEBUG_EXCEPT): Use debug_printf.
5925
99f1bc6a
AB
59262020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5927
5928 * completer.c (class completion_tracker::completion_hash_entry)
5929 <hash_name>: New member function.
5930 (completion_tracker::discard_completions): New callback to hash a
5931 completion_hash_entry, pass this to htab_create_alloc.
5932
a0e9b532
JT
59332016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5934
5935 * windows-nat.c (windows_make_so): Warn rather than stopping with
5936 an error if realpath() fails.
5937
06ca5dd4
KR
59382020-04-14 Kamil Rytarowski <n54@gmx.com>
5939
5940 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5941 (nbsd_nat_target::info_proc): Add do_status.
5942
194d088f
TV
59432020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5944 Tom de Vries <tdevries@suse.de>
5945
5946 PR symtab/25718
5947 * psympriv.h (struct partial_symtab::read_symtab)
5948 (struct partial_symtab::expand_psymtab)
5949 (struct partial_symtab::read_dependencies): Update comments.
5950 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5951 read_symtab for includer.
5952 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5953 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5954 (struct dwarf2_include_psymtab::m_readin): Remove.
5955 (struct dwarf2_include_psymtab::includer): New member function.
5956 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5957
c1a66c06
TV
59582020-04-14 Tom de Vries <tdevries@suse.de>
5959
5960 PR symtab/25720
5961 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5962 with NULL symbol_matcher and lookup_name.
5963 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5964 and lookup_name.
5965 * dwarf2/read.c (dw2_expand_symtabs_matching)
5966 (dw2_debug_names_expand_symtabs_matching): Same.
5967 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5968 Make lookup_name a pointer. Update comment.
5969 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5970 lookup_name being a pointer.
5971 * symfile.c (expand_symtabs_matching): Same.
5972 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5973 * linespec.c (iterate_over_all_matching_symtabs): Same.
5974
400b5eca
TT
59752020-04-13 Tom Tromey <tom@tromey.com>
5976
5977 * run-on-main-thread.c: Update include.
5978 * unittests/main-thread-selftests.c: Update include.
5979 * tui/tui-win.c: Update include.
5980 * tui/tui-io.c: Update include.
5981 * tui/tui-interp.c: Update include.
5982 * tui/tui-hooks.c: Update include.
5983 * top.h: Update include.
5984 * top.c: Update include.
5985 * ser-base.c: Update include.
5986 * remote.c: Update include.
5987 * remote-notif.c: Update include.
5988 * remote-fileio.c: Update include.
5989 * record-full.c: Update include.
5990 * record-btrace.c: Update include.
5991 * python/python.c: Update include.
5992 * posix-hdep.c: Update include.
5993 * mingw-hdep.c: Update include.
5994 * mi/mi-main.c: Update include.
5995 * mi/mi-interp.c: Update include.
5996 * main.c: Update include.
5997 * linux-nat.c: Update include.
5998 * interps.c: Update include.
5999 * infrun.c: Update include.
6000 * inf-loop.c: Update include.
6001 * event-top.c: Update include.
6002 * event-loop.c: Move to ../gdbsupport/.
6003 * event-loop.h: Move to ../gdbsupport/.
6004 * async-event.h: Update include.
6005 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6006
93b54c8e
TT
60072020-04-13 Tom Tromey <tom@tromey.com>
6008
6009 * tui/tui-win.c: Include async-event.h.
6010 * remote.c: Include async-event.h.
6011 * remote-notif.c: Include async-event.h.
6012 * record-full.c: Include async-event.h.
6013 * record-btrace.c: Include async-event.h.
6014 * infrun.c: Include async-event.h.
6015 * event-top.c: Include async-event.h.
6016 * event-loop.h: Move some declarations to async-event.h.
6017 * event-loop.c: Don't include ser-event.h or top.h. Move some
6018 code to async-event.c.
6019 * async-event.h: New file.
6020 * async-event.c: New file.
6021 * Makefile.in (COMMON_SFILES): Add async-event.c.
6022 (HFILES_NO_SRCDIR): Add async-event.h.
6023
c1cd3163
TT
60242020-04-13 Tom Tromey <tom@tromey.com>
6025
6026 * utils.c (flush_streams): New function.
6027 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6028
29f2bf4f
TT
60292020-04-13 Tom Tromey <tom@tromey.com>
6030
6031 * event-loop.c (handle_file_event): Use warning, not
6032 printf_unfiltered.
6033
98029d02
TT
60342020-04-13 Tom Tromey <tom@tromey.com>
6035
6036 * event-loop.c: Include <chrono>.
6037
06cc9596
TT
60382020-04-13 Tom Tromey <tom@tromey.com>
6039
6040 * gdb_select.h: Move to ../gdbsupport/.
6041 * event-loop.c: Update include path.
6042 * top.c: Update include path.
6043 * ser-base.c: Update include path.
6044 * ui-file.c: Update include path.
6045 * ser-tcp.c: Update include path.
6046 * guile/scm-ports.c: Update include path.
6047 * posix-hdep.c: Update include path.
6048 * ser-unix.c: Update include path.
6049 * gdb_usleep.c: Update include path.
6050 * mingw-hdep.c: Update include path.
6051 * inflow.c: Update include path.
6052 * infrun.c: Update include path.
6053 * event-top.c: Update include path.
6054
8ae8e197
TT
60552020-04-13 Tom Tromey <tom@tromey.com>
6056
6057 * configure: Rebuild.
6058 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6059
58cf28e8
TT
60602020-04-13 Tom Tromey <tom@tromey.com>
6061
6062 * event-loop.h (start_event_loop): Don't declare.
6063 * event-loop.c (start_event_loop): Move...
6064 * main.c (start_event_loop): ...here. Now static.
6065
b7f999ae
SDJ
60662020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6067
6068 * MAINTAINERS: Update my email address.
6069
1085dfd4
KR
60702020-04-12 Kamil Rytarowski <n54@gmx.com>
6071
6072 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6073 IP_ALL.
6074
49d1d1f5
KR
60752020-04-12 Kamil Rytarowski <n54@gmx.com>
6076
6077 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6078 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6079
b4848d2a
KR
60802020-04-12 Kamil Rytarowski <n54@gmx.com>
6081
6082 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6083 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6084
51c133d5
KR
60852020-04-12 Kamil Rytarowski <n54@gmx.com>
6086
6087 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6088
54b8cbd0
KR
60892020-04-11 Kamil Rytarowski <n54@gmx.com>
6090
6091 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6092 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6093 (nbsd_nat_target::info_proc): New functions.
6094 * nbsd-nat.c (kinfo_get_vmmap): New function.
6095 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6096 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6097 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6098 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6099 functions.
6100 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6101 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6102 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6103 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6104 (KINFO_VME_FLAG_GROWS_DOWN): New.
6105
cf83625d
AS
61062020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6107
6108 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6109 bit shift.
6110
0c4311ab
TT
61112020-04-10 Tom Tromey <tromey@adacore.com>
6112
6113 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6114
3e65b3e9
TT
61152020-04-10 Tom Tromey <tromey@adacore.com>
6116
6117 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6118 separate debug files.
6119
13302e95
HD
61202020-04-10 Hannes Domani <ssbssa@yahoo.de>
6121
6122 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6123 Move to...
6124 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6125 ... here.
6126 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6127 Check for STATUS_WX86_BREAKPOINT.
6128 (windows_nat_target::wait): Same.
6129
bdfc1e8a
TV
61302020-04-10 Tom de Vries <tdevries@suse.de>
6131
6132 PR cli/25808
6133 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6134
f4460aec
SM
61352020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6136
6137 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6138 (Write After Approval): Remove Tom de Vries.
6139
a25198bb
BE
61402020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6141
6142 revert partially:
6143 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6144
aac66a4c
SM
6145 * buildsym.c (record_line): Fix undefined behavior and preserve
6146 lines at eof.
a25198bb 6147
206c98a6
KR
61482020-04-09 Kamil Rytarowski <n54@gmx.com>
6149
6150 * auxv.h (svr4_auxv_parse): New.
6151 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6152 and generic_auxv_parse.
6153 (svr4_auxv_parse): Add.
6154 * obsd-tdep.c: Include "auxv.h".
6155 (obsd_auxv_parse): Remove.
6156 (obsd_init_abi): Remove comment.
6157 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6158 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6159 * nbsd-tdep.c: Include "auxv.h".
6160 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6161
71fbdbaf
TT
61622020-04-08 Tom Tromey <tromey@adacore.com>
6163
6164 * nat/windows-nat.h (last_wait_event): Don't declare.
6165 (wait_for_debug_event): Update comment.
6166 * nat/windows-nat.c (last_wait_event): Now static.
6167
2c1d95e8
TT
61682020-04-08 Tom Tromey <tromey@adacore.com>
6169
6170 * windows-nat.c (wait_for_debug_event): Move to
6171 nat/windows-nat.c.
6172 * nat/windows-nat.h (wait_for_debug_event): Declare.
6173 * nat/windows-nat.c (wait_for_debug_event): Move from
6174 windows-nat.c. No longer static.
6175
d2977bc4
TT
61762020-04-08 Tom Tromey <tromey@adacore.com>
6177
6178 * windows-nat.c (get_windows_debug_event): Use
6179 fetch_pending_stop.
6180 * nat/windows-nat.h (fetch_pending_stop): Declare.
6181 * nat/windows-nat.c (fetch_pending_stop): New function.
6182
e758e19c
TT
61832020-04-08 Tom Tromey <tromey@adacore.com>
6184
6185 * windows-nat.c (windows_continue): Use matching_pending_stop and
6186 continue_last_debug_event.
6187 * nat/windows-nat.h (matching_pending_stop)
6188 (continue_last_debug_event): Declare.
6189 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6190 (matching_pending_stop, continue_last_debug_event): New
6191 functions.
6192
8d30e395
TT
61932020-04-08 Tom Tromey <tromey@adacore.com>
6194
6195 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6196 (handle_exception_result): Move to nat/windows-nat.h.
6197 (DEBUG_EXCEPTION_SIMPLE): Remove.
6198 (windows_nat::handle_ms_vc_exception): New function.
6199 (handle_exception): Move to nat/windows-nat.c.
6200 (get_windows_debug_event): Update.
6201 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6202 nat/windows-nat.c.
6203 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6204 (handle_exception_result): Move from windows-nat.c.
6205 (handle_exception): Declare.
6206 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6207 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6208 windows-nat.c.
6209
29de418d
TT
62102020-04-08 Tom Tromey <tromey@adacore.com>
6211
6212 * windows-nat.c (exception_count, event_count): Remove.
6213 (handle_exception, get_windows_debug_event)
6214 (do_initial_windows_stuff): Update.
6215
a816ba18
TT
62162020-04-08 Tom Tromey <tromey@adacore.com>
6217
6218 * windows-nat.c (windows_nat::handle_load_dll)
6219 (windows_nat::handle_unload_dll): Rename. No longer static.
6220 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6221 Declare.
6222
a00caa12
TT
62232020-04-08 Tom Tromey <tromey@adacore.com>
6224
6225 * complaints.h (stop_whining): Declare at top-level.
6226 (complaint): Don't declare stop_whining.
6227
d41b524f
TT
62282020-04-08 Tom Tromey <tromey@adacore.com>
6229
6230 * windows-nat.c (windows_nat::handle_output_debug_string):
6231 Rename. No longer static.
6232 * nat/windows-nat.h (handle_output_debug_string): Declare.
6233
3c76026d
TT
62342020-04-08 Tom Tromey <tromey@adacore.com>
6235
6236 * windows-nat.c (current_process_handle, current_process_id)
6237 (main_thread_id, last_sig, current_event, last_wait_event)
6238 (current_windows_thread, desired_stop_thread_id, pending_stops)
6239 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6240 (display_selectors, fake_create_process)
6241 (get_windows_debug_event): Update.
6242 * nat/windows-nat.h (current_process_handle, current_process_id)
6243 (main_thread_id, last_sig, current_event, last_wait_event)
6244 (current_windows_thread, desired_stop_thread_id, pending_stops)
6245 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6246 * nat/windows-nat.c (current_process_handle, current_process_id)
6247 (main_thread_id, last_sig, current_event, last_wait_event)
6248 (current_windows_thread, desired_stop_thread_id, pending_stops)
6249 (siginfo_er): New globals. Move from windows-nat.c.
6250
9d8679cc
TT
62512020-04-08 Tom Tromey <tromey@adacore.com>
6252
6253 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6254 (handle_load_dll): Update.
6255 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6256
28688adf
TT
62572020-04-08 Tom Tromey <tromey@adacore.com>
6258
6259 * windows-nat.c (enum thread_disposition_type): Move to
6260 nat/windows-nat.h.
6261 (windows_nat::thread_rec): Rename from thread_rec. No longer
6262 static.
6263 (windows_add_thread, windows_nat_target::fetch_registers)
6264 (windows_nat_target::store_registers, handle_exception)
6265 (windows_nat_target::resume, get_windows_debug_event)
6266 (windows_nat_target::get_tib_address)
6267 (windows_nat_target::thread_name)
6268 (windows_nat_target::thread_alive): Update.
6269 * nat/windows-nat.h (enum thread_disposition_type): Move from
6270 windows-nat.c.
6271 (thread_rec): Declare.
6272
4834dad0
TT
62732020-04-08 Tom Tromey <tromey@adacore.com>
6274
6275 * windows-nat.c: Add "using namespace".
6276 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6277 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6278
65bafd5b
TT
62792020-04-08 Tom Tromey <tromey@adacore.com>
6280
6281 * nat/windows-nat.h (struct windows_thread_info): Declare
6282 destructor.
6283 * nat/windows-nat.c (~windows_thread_info): New.
6284
0a4afda3
TT
62852020-04-08 Tom Tromey <tromey@adacore.com>
6286
6287 PR gdb/22992
6288 * windows-nat.c (current_event): Update comment.
6289 (last_wait_event, desired_stop_thread_id): New globals.
6290 (struct pending_stop): New.
6291 (pending_stops): New global.
6292 (windows_nat_target) <stopped_by_sw_breakpoint>
6293 <supports_stopped_by_sw_breakpoint>: New methods.
6294 (windows_fetch_one_register): Add assertions. Adjust PC.
6295 (windows_continue): Handle pending stops. Suspend other threads
6296 when stepping. Use last_wait_event
6297 (wait_for_debug_event): New function.
6298 (get_windows_debug_event): Use wait_for_debug_event. Handle
6299 pending stops. Queue spurious stops.
6300 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6301 (windows_nat_target::kill): Use wait_for_debug_event.
6302 * nat/windows-nat.h (struct windows_thread_info)
6303 <stopped_at_software_breakpoint>: New field.
6304 * nat/windows-nat.c (windows_thread_info::resume): Clear
6305 stopped_at_software_breakpoint.
6306
8e61ebec
TT
63072020-04-08 Tom Tromey <tromey@adacore.com>
6308
6309 * windows-nat.c (enum thread_disposition_type): New.
6310 (thread_rec): Replace "get_context" parameter with "disposition";
6311 change type.
6312 (windows_add_thread, windows_nat_target::fetch_registers)
6313 (windows_nat_target::store_registers, handle_exception)
6314 (windows_nat_target::resume, get_windows_debug_event)
6315 (windows_nat_target::get_tib_address)
6316 (windows_nat_target::thread_name)
6317 (windows_nat_target::thread_alive): Update.
6318
98a03287
TT
63192020-04-08 Tom Tromey <tromey@adacore.com>
6320
6321 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6322 (windows_continue): Use windows_continue::resume.
6323 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6324 resume>: Declare new methods.
6325 * nat/windows-nat.c: New file.
6326 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6327
7c7411bc
TT
63282020-04-08 Tom Tromey <tromey@adacore.com>
6329
6330 * windows-nat.c (windows_add_thread, windows_delete_thread)
6331 (windows_nat_target::fetch_registers)
6332 (windows_nat_target::store_registers, fake_create_process)
6333 (windows_nat_target::resume, windows_nat_target::resume)
6334 (get_windows_debug_event, windows_nat_target::wait)
6335 (windows_nat_target::pid_to_str)
6336 (windows_nat_target::get_tib_address)
6337 (windows_nat_target::get_ada_task_ptid)
6338 (windows_nat_target::thread_name)
6339 (windows_nat_target::thread_alive): Use lwp, not tid.
6340
2950fdf7
TT
63412020-04-08 Tom Tromey <tromey@adacore.com>
6342
6343 * windows-nat.c (handle_exception)
6344 (windows_nat_target::thread_name): Update.
6345 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6346 <name>: Now unique_xmalloc_ptr.
6347
62fe396b
TT
63482020-04-08 Tom Tromey <tromey@adacore.com>
6349
6350 * windows-nat.c (thread_rec)
6351 (windows_nat_target::fetch_registers): Update.
6352 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6353 Update comment.
6354 <debug_registers_changed, reload_context>: Now bool.
6355
e9534bd2
TT
63562020-04-08 Tom Tromey <tromey@adacore.com>
6357
6358 * windows-nat.c (windows_add_thread): Use new.
6359 (windows_init_thread_list, windows_delete_thread): Use delete.
6360 (get_windows_debug_event): Update.
6361 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6362 destructor, and initializers.
6363
ae1f8880
TT
63642020-04-08 Tom Tromey <tromey@adacore.com>
6365
6366 * windows-nat.c (struct windows_thread_info): Remove.
6367 * nat/windows-nat.h: New file.
6368
55a1e039
TT
63692020-04-08 Tom Tromey <tromey@adacore.com>
6370
6371 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6372 (thread_rec, windows_add_thread, windows_delete_thread)
6373 (windows_continue): Update.
6374
93366324
TT
63752020-04-08 Tom Tromey <tromey@adacore.com>
6376
6377 * windows-nat.c (struct windows_thread_info): Remove typedef.
6378 (thread_head): Remove.
6379 (thread_list): New global.
6380 (thread_rec, windows_add_thread, windows_init_thread_list)
6381 (windows_delete_thread, windows_continue): Update.
6382
0f2265e2
SM
63832020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6384
6385 * windows-tdep.h (windows_init_abi): Add comment.
6386 (cygwin_init_abi): New declaration.
6387 * windows-tdep.c: Split signal enumeration in two, one for
6388 Windows and one for Cygwin.
6389 (windows_gdb_signal_to_target): Only deal with signal of the
6390 Windows OS ABI.
6391 (cygwin_gdb_signal_to_target): New function.
6392 (windows_init_abi): Rename to windows_init_abi_common, don't set
6393 gdb_signal_to_target gdbarch method. Add new new function with
6394 this name.
6395 (cygwin_init_abi): New function.
6396 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6397 comment. Don't call windows_init_abi.
6398 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6399 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6400 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6401 i386_windows_init_abi_common, don't call windows_init_abi. Add
6402 a new function of this name.
6403 (i386_cygwin_init_abi): New function.
6404 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6405 OS ABI Cygwin.
6406
3810f182
SM
64072020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6408
6409 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6410 parameter.c.
6411 (dwarf2_read_gdb_index): Update.
6412
063f8e80
KR
64132020-04-07 Kamil Rytarowski <n54@gmx.com>
6414
6415 * nbsd-tdep.c: Include "objfiles.h".
6416 (nbsd_skip_solib_resolver): New.
6417 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6418
85a9510c 64192020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6420
6421 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6422 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6423 with DW_LLE_base_addressx are being emitted in DWARFv5.
6424 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6425 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6426 unsigned integer.
6427
9fc3eaae 64282020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6429
6430 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6431 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6432 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6433 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6434 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6435 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6436 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6437
6438
41144253 64392020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6440
6441 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6442 (read_loclist_index): New function definition.
6443 (lookup_loclist_base): New function definition.
6444 (read_loclist_header): New function definition.
6445 (dwarf2_cu): Add loclist_base and loclist_header field.
6446 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6447 (read_full_die_1): Read the value of DW_AT_loclists_base.
6448 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6449 (read_attribute_value): Handle DW_FORM_loclistx.
6450 (skip_one_die): Handle DW_FORM_loclistx.
6451 (loclist_header): New structure declaration.
6452 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6453
9f4e76a4
SM
64542020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6455
6456 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6457 constructor. Remove `addr` parameter from other constructor and
6458 add `per_cu` parameter.
6459 * dwarf2/read.c (create_partial_symtab): Update.
6460
25c11aca
TV
64612020-04-07 Tom de Vries <tdevries@suse.de>
6462
6463 PR symtab/25796
6464 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6465 (partial_die_info::fixup): Inherit has_const_value.
6466
5707e24b
TV
64672020-04-07 Tom de Vries <tdevries@suse.de>
6468
6469 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6470 symbols without address.
6471
05f00e22
KR
64722020-04-06 Kamil Rytarowski <n54@gmx.com>
6473
6474 * nbsd-nat.h (struct thread_info): Add forward declaration.
6475 (nbsd_nat_target::thread_alive): Add.
6476 (nbsd_nat_target::thread_name): Likewise.
6477 (nbsd_nat_target::update_thread_list): Likewise.
6478 (update_thread_list::post_attach): Likewise.
6479 (post_attach::pid_to_str): Likewise.
6480 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6481 (nbsd_thread_lister): Add.
6482 (nbsd_nat_target::thread_alive): Likewise.
6483 (nbsd_nat_target::thread_name): Likewise.
6484 (nbsd_add_threads): Likewise.
6485 (update_thread_list::post_attach): Likewise.
6486 (nbsd_nat_target::update_thread_list): Likewise.
6487 (post_attach::pid_to_str): Likewise.
6488
6ee448cc
TT
64892020-04-06 Tom Tromey <tromey@adacore.com>
6490
6491 * ada-valprint.c (print_variant_part): Extract the variant field.
6492 (print_field_values): Use the field as the outer value when
6493 recursing.
6494
dea34e8c
TT
64952020-04-06 Tom Tromey <tromey@adacore.com>
6496
6497 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6498 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6499 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6500 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6501 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6502
93689ce9
TT
65032020-04-06 Tom Tromey <tromey@adacore.com>
6504
6505 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6506 TYPE_CODE_ERROR.
6507
79743962
KR
65082020-04-06 Kamil Rytarowski <n54@gmx.com>
6509
6510 * nbsd-tdep.c: Include "gdbarch.h".
6511 Define enum with NetBSD signal numbers.
6512 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6513 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6514 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6515 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6516 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6517 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6518 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6519 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6520 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6521 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6522 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6523 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6524
9e7c9a03
HD
65252020-04-03 Hannes Domani <ssbssa@yahoo.de>
6526
6527 PR gdb/25325
6528 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6529
d9e49b61
TT
65302020-04-03 Tom Tromey <tromey@adacore.com>
6531
6532 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6533 Read constant block.
6534
e0fc5c3f
SM
65352020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6536
6537 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6538 (gdb_bfd_get_full_section_contents): New declaration.
6539 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6540 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6541 gdb_bfd_get_full_section_contents.
6542
e2ff18a0
SM
65432020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6544
6545 * exec.c (build_section_table): Replace internal_error with
6546 gdb_assert.
6547 (section_table_xfer_memory_partial): Likewise.
6548 * mdebugread.c (parse_partial_symbols): Likewise.
6549 * psymtab.c (lookup_partial_symbol): Likewise.
6550 * utils.c (wrap_here): Likewise.
6551
0830d301
TT
65522020-04-02 Tom Tromey <tromey@adacore.com>
6553
6554 * f-lang.c (build_fortran_types): Use arch_type to initialize
6555 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6556
e7da7f8f
TT
65572020-04-02 Tom Tromey <tromey@adacore.com>
6558
6559 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6560 of attributes.
6561
c90d28ac
AB
65622020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6563 Bernd Edlinger <bernd.edlinger@hotmail.de>
6564 Tom Tromey <tromey@adacore.com>
6565
6566 * buildsym.c (buildsym_compunit::record_line): Remove
6567 deduplication code.
6568
1aa98955
TV
65692020-04-02 Tom de Vries <tdevries@suse.de>
6570
6571 PR ada/24671
6572 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6573
d3214198
TV
65742020-04-02 Tom de Vries <tdevries@suse.de>
6575
6576 * dwarf2/read.c (dwarf2_gdb_index_functions,
6577 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6578 NULL.
6579 * psymtab.c (psym_lookup_global_symbol_language): New function.
6580 (psym_functions): Init psym_lookup_global_symbol_language with
6581 psym_lookup_global_symbol_language.
6582 * symfile-debug.c (debug_sym_quick_functions): Init
6583 lookup_global_symbol_language with NULL.
6584 * symfile.c (set_initial_language): Remove fixme comment.
6585 * symfile.h (struct quick_symbol_functions): Add
6586 lookup_global_symbol_language.
6587 * symtab.c (find_quick_global_symbol_language): New function.
6588 (find_main_name): Use find_quick_global_symbol_language.
6589
2836752f
SM
65902020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6591
6592 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6593
64dc2d4b
BE
65942020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6595
6596 * buildsym.c (record_line): Fix undefined behavior and preserve
6597 lines at eof.
6598
bbe3dc41
BE
65992020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6600
6601 * buildsym.c (record_line): Fix the resizing condition.
6602
6b4a335b
TT
66032020-04-01 Tom Tromey <tom@tromey.com>
6604
6605 * value.h (value_literal_complex): Add comment.
6606 * valops.c (value_literal_complex): Refer to value.h.
6607
3638a098
TT
66082020-04-01 Tom Tromey <tom@tromey.com>
6609
6610 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6611 (scalar_type): New rule, from typebase.
6612 (typebase): Use scalar_type. Recognize complex types.
6613 (field_name): Handle FLOAT_KEYWORD.
6614 (ident_tokens): Add _Complex and __complex__.
6615
c34e8714
TT
66162020-04-01 Tom Tromey <tom@tromey.com>
6617
6618 PR exp/25299:
6619 * valarith.c (promotion_type, complex_binop): New functions.
6620 (scalar_binop): Handle complex numbers. Use promotion_type.
6621 (value_pos, value_neg, value_complement): Handle complex numbers.
6622
fa649bb7
TT
66232020-04-01 Tom Tromey <tom@tromey.com>
6624
6625 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6626 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6627 (parse_number): Handle complex numbers.
6628
981c08ce
TT
66292020-04-01 Tom Tromey <tom@tromey.com>
6630
6631 * c-valprint.c (c_decorations): Change complex suffix to "i".
6632
4c99290d
TT
66332020-04-01 Tom Tromey <tom@tromey.com>
6634
6635 * valprint.c (generic_value_print_complex): Use accessors.
6636 * value.h (value_real_part, value_imaginary_part): Declare.
6637 * valops.c (value_real_part, value_imaginary_part): New
6638 functions.
6639 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6640
5b930b45
TT
66412020-04-01 Tom Tromey <tom@tromey.com>
6642
6643 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6644 (read_range_type): Update.
6645 * mdebugread.c (basic_type): Update.
6646 * go-lang.c (build_go_types): Use init_complex_type.
6647 * gdbtypes.h (struct main_type) <complex_type>: New member.
6648 (init_complex_type): Update.
6649 (arch_complex_type): Don't declare.
6650 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6651 Make name if none given. Use alloc_type_copy. Look for cached
6652 complex type.
6653 (arch_complex_type): Remove.
6654 (gdbtypes_post_init): Use init_complex_type.
6655 * f-lang.c (build_fortran_types): Use init_complex_type.
6656 * dwarf2/read.c (read_base_type): Update.
6657 * d-lang.c (build_d_types): Use init_complex_type.
6658 * ctfread.c (read_base_type): Update.
6659
53cccef1
TBA
66602020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6661
6662 * infrun.c (stop_all_threads): Update assertion, plus when
6663 stopping threads, take into account that we might be trying
6664 to stop an all-stop target.
6665 (stop_waiting): Call 'stop_all_threads' if there exists a
6666 non-stop target.
6667
a0714d30
TBA
66682020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6669
6670 * target.h (exists_non_stop_target): New function declaration.
6671 * target.c (exists_non_stop_target): New function.
6672
60e22c1e
HD
66732020-04-01 Hannes Domani <ssbssa@yahoo.de>
6674
6675 PR gdb/24789
6676 * eval.c (is_integral_or_integral_reference): New function.
6677 (evaluate_subexp_standard): Allow integer references in
6678 pointer arithmetic.
6679
e139a727
TBA
66802020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6681
6682 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6683 check for no ptid in the stop reply when the target is non-stop.
6684
e0802d59
TT
66852020-04-01 Tom Tromey <tromey@adacore.com>
6686
6687 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6688 "name" parameter to rvalue reference. Initialize m_name_holder.
6689 <lookup_name_info>: New overloads.
6690 <name>: Return gdb::string_view.
6691 <c_str>: New method.
6692 <make_ignore_params>: Update.
6693 <search_name_hash>: Update.
6694 <language_lookup_name>: Return const char *.
6695 <m_name>: Change type.
6696 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6697 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6698 (lookup_name_info::match_any): Update.
6699 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6700 Update.
6701 * minsyms.c (linkage_name_str): Update.
6702 * language.c (default_symbol_name_matcher): Update.
6703 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6704 Update.
6705 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6706 (ada_lookup_name_info::ada_lookup_name_info): Update.
6707 (literal_symbol_name_matcher): Update.
6708
8c072cb6
TT
67092020-04-01 Tom Tromey <tromey@adacore.com>
6710
6711 * psymtab.c (psymtab_search_name): Remove function.
6712 (psym_lookup_symbol): Create search name and lookup name here.
6713 (lookup_partial_symbol): Remove "name" parameter; add
6714 lookup_name.
6715 (psym_expand_symtabs_for_function): Update.
6716
6f29a534
TT
67172020-03-31 Joel Jones <joelkevinjones@gmail.com>
6718
6719 PR tui/25597:
6720 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6721
af62665e
TT
67222020-03-31 Tom Tromey <tromey@adacore.com>
6723
6724 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6725 memcpy.
6726
d1a89da5
NC
67272020-03-30 Nelson Chu <nelson.chu@sifive.com>
6728
6729 * features/riscv/32bit-csr.xml: Regenerated.
6730 * features/riscv/64bit-csr.xml: Regenerated.
6731
d8af9068
TT
67322020-03-30 Tom Tromey <tromey@adacore.com>
6733
6734 * ada-valprint.c (print_variant_part): Update.
6735 * ada-lang.h (ada_which_variant_applies): Update.
6736 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6737 outer_valaddr parameters; replace with "outer" value parameter.
6738 (to_fixed_variant_branch_type): Update.
6739
227c0bf4
PFC
67402020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6741
6742 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6743 <list>. Remove inclusion of observable.h.
6744 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6745 (struct arch_lwp_info): New struct.
6746 (class ppc_linux_dreg_interface): New class.
6747 (struct ppc_linux_process_info): New struct.
6748 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6749 <low_new_clone, low_forget_process, low_prepare_to_resume>
6750 <copy_thread_dreg_state, mark_thread_stale>
6751 <mark_debug_registers_changed, register_hw_breakpoint>
6752 <clear_hw_breakpoint, register_wp, clear_wp>
6753 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6754 <num_memory_accesses, get_trigger_type>
6755 <create_watchpoint_request, hwdebug_point_cmp>
6756 <init_arch_lwp_info, get_arch_lwp_info>
6757 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6758 methods.
6759 <struct ptid_hash>: New inner struct.
6760 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6761 members.
6762 (saved_dabr_value, hwdebug_info, max_slots_number)
6763 (struct hw_break_tuple, struct thread_points, ppc_threads)
6764 (have_ptrace_hwdebug_interface)
6765 (hwdebug_find_thread_points_by_tid)
6766 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6767 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6768 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6769 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6770 use m_dreg_interface.
6771 (hwdebug_point_cmp): Change to...
6772 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6773 reference arguments instead of pointers.
6774 (ppc_linux_nat_target::ranged_break_num_registers): Use
6775 m_dreg_interface.
6776 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6777 m_dreg_interface. Call register_hw_breakpoint.
6778 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6779 m_dreg_interface. Call clear_hw_breakpoint.
6780 (get_trigger_type): Change to...
6781 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6782 comment.
6783 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6784 use m_dreg_interface. Call register_hw_breakpoint.
6785 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6786 use m_dreg_interface. Call clear_hw_breakpoint.
6787 (can_use_watchpoint_cond_accel): Change to...
6788 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6789 method. Update comment, use m_dreg_interface and
6790 m_process_info.
6791 (calculate_dvc): Change to...
6792 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6793 m_dreg_interface.
6794 (num_memory_accesses): Change to...
6795 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6796 (check_condition): Change to...
6797 (ppc_linux_nat_target::check_condition): ...this method.
6798 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6799 comment, use m_dreg_interface.
6800 (create_watchpoint_request): Change to...
6801 (ppc_linux_nat_target::create_watchpoint_request): ...this
6802 method. Use m_dreg_interface.
6803 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6804 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6805 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6806 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6807 (ppc_linux_nat_target::low_forget_process)
6808 (ppc_linux_nat_target::low_new_fork)
6809 (ppc_linux_nat_target::low_new_clone)
6810 (ppc_linux_nat_target::low_delete_thread)
6811 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6812 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6813 only call mark_thread_stale.
6814 (ppc_linux_thread_exit): Remove.
6815 (ppc_linux_nat_target::stopped_data_address): Change to...
6816 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6817 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6818 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6819 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6820 comment. Call low_stopped_data_address.
6821 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6822 m_dreg_interface.
6823 (ppc_linux_nat_target::masked_watch_num_registers): Use
6824 m_dreg_interface.
6825 (ppc_linux_nat_target::copy_thread_dreg_state)
6826 (ppc_linux_nat_target::mark_thread_stale)
6827 (ppc_linux_nat_target::mark_debug_registers_changed)
6828 (ppc_linux_nat_target::register_hw_breakpoint)
6829 (ppc_linux_nat_target::clear_hw_breakpoint)
6830 (ppc_linux_nat_target::register_wp)
6831 (ppc_linux_nat_target::clear_wp)
6832 (ppc_linux_nat_target::init_arch_lwp_info)
6833 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6834 (_initialize_ppc_linux_nat): Remove observer callback.
6835
4db10d8f
PFC
68362020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6837
6838 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6839 (ppc_linux_nat_target::auxv_parse)
6840 (ppc_linux_nat_target::read_description)
6841 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6842 Move up.
6843
1310c1b0
PFC
68442020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6845
6846 * linux-nat.h (low_new_clone): New method.
6847 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6848
69b037c3
SM
68492020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6850
6851 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6852 (dbx_expand_psymtab): ... this.
6853 (start_psymtab): Update.
6854 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6855 (mdebug_expand_psymtab): ... this.
6856 (parse_partial_symbols): Update.
6857 (new_psymtab): Update.
6858 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6859 (xcoff_expand_psymtab): ... this.
6860 (xcoff_start_psymtab): Update.
6861
48993951
SM
68622020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6863
6864 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6865 <expand_dependencies>: ... this.
6866 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6867 (partial_symtab::expand_dependencies): ... this.
6868 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6869 Update.
6870 (dwarf2_psymtab::expand_psymtab): Update.
6871 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6872 * mdebugread.c (psymtab_to_symtab_1): Update.
6873 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6874
3ad83046
SM
68752020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6876
6877 * psympriv.h (discard_psymtab): Remove.
6878 * dbxread.c (dbx_end_psymtab): Update.
6879 * xcoffread.c (xcoff_end_psymtab): Update.
6880
4d1b9ab6
TT
68812020-03-28 Tom Tromey <tom@tromey.com>
6882
6883 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6884 comment.
6885
f1749218
TT
68862020-03-28 Tom Tromey <tom@tromey.com>
6887
6888 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6889
ebea7626
HD
68902020-03-27 Hannes Domani <ssbssa@yahoo.de>
6891
6892 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6893
a879b4d5
JB
68942020-03-26 John Baldwin <jhb@FreeBSD.org>
6895
6896 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6897
0826b30a
TT
68982020-03-26 Tom Tromey <tom@tromey.com>
6899
6900 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6901 (mark_common_block_symbol_computed, read_tag_string_type)
6902 (attr_to_dynamic_prop, read_subrange_type): Update.
6903 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6904 to be methods on struct attribute.
6905 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6906 (read_call_site_scope, partial_die_info::read)
6907 (partial_die_info::read, lookup_die_type, follow_die_ref):
6908 Update.
6909 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6910 from dwarf2_get_ref_die_offset.
6911 (attribute::constant_value): New method, from
6912 dwarf2_get_attr_constant_value.
6913 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6914 Declare method.
6915 <constant_value>: New method.
6916
2b2558bf
TT
69172020-03-26 Tom Tromey <tom@tromey.com>
6918
6919 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6920 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6921 (dwarf_type_encoding_name): Move to stringify.c.
6922 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6923 * dwarf2/stringify.c: New file.
6924 * dwarf2/stringify.h: New file.
6925
eeb64781
TT
69262020-03-26 Tom Tromey <tom@tromey.com>
6927
6928 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6929 Rewrite.
6930
a39fdb41
TT
69312020-03-26 Tom Tromey <tom@tromey.com>
6932
6933 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6934 methods.
6935 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6936 (lookup_ranges_base): Likewise.
6937 (read_cutu_die_from_dwo, read_full_die_1): Update.
6938
436c571c
TT
69392020-03-26 Tom Tromey <tom@tromey.com>
6940
6941 * dwarf2/read.c (read_import_statement, read_file_scope)
6942 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6943 (read_lexical_block_scope, read_call_site_scope)
6944 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6945 (handle_struct_member_die, process_structure_scope)
6946 (update_enumeration_type_from_children)
6947 (process_enumeration_scope, read_array_type, read_common_block)
6948 (read_namespace, read_module, read_subroutine_type): Update.
6949 (sibling_die): Remove.
6950
052c8bb8
TT
69512020-03-26 Tom Tromey <tom@tromey.com>
6952
6953 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6954 (build_type_psymtabs_reader, read_structure_type)
6955 (read_enumeration_type, read_full_die_1): Update.
6956 (dwarf2_attr_no_follow): Move to die.h.
6957 * dwarf2/die.h (struct die_info) <attr>: New method.
6958
2b24b6e4
TT
69592020-03-26 Tom Tromey <tom@tromey.com>
6960
6961 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6962 <base_address>: Now an optional.
6963 (dwarf2_find_base_address, dwarf2_rnglists_process)
6964 (dwarf2_ranges_process, fill_in_loclist_baton)
6965 (dwarf2_symbol_mark_computed): Update.
6966
c2d50fd0
TT
69672020-03-26 Tom Tromey <tom@tromey.com>
6968
6969 * dwarf2/read.c (struct die_info): Move to die.h.
6970 * dwarf2/die.h: New file.
6971
0df7ad3a
TT
69722020-03-26 Tom Tromey <tom@tromey.com>
6973
6974 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6975 * dwarf2/read.c
6976 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6977 Move to line-header.c.
6978 (read_checked_initial_length_and_offset, read_formatted_entries):
6979 Likewise.
6980 (dwarf_decode_line_header): Split into two.
6981 * dwarf2/line-header.c
6982 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6983 Move from read.c.
6984 (read_checked_initial_length_and_offset, read_formatted_entries):
6985 Likewise.
6986 (dwarf_decode_line_header): New function, split from read.c.
6987
86c0bb4c
TT
69882020-03-26 Tom Tromey <tom@tromey.com>
6989
6990 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6991 Declare method.
6992 * dwarf2/read.c (read_attribute_value): Update.
6993 (dwarf2_per_objfile::read_line_string): Rename from
6994 read_indirect_line_string.
6995 (read_formatted_entries): Update.
6996
2ef46c2f
TT
69972020-03-26 Tom Tromey <tom@tromey.com>
6998
6999 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7000 variable.
7001
4f9c1eda
TT
70022020-03-26 Tom Tromey <tom@tromey.com>
7003
7004 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7005 const.
7006 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7007 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7008 parameter const.
7009
5a0e026f
TT
70102020-03-26 Tom Tromey <tom@tromey.com>
7011
7012 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7013 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7014 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7015 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7016
8844c11b
TT
70172020-03-26 Tom Tromey <tom@tromey.com>
7018
7019 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7020 file_names_size, file_full_name, file_file_name>: Use const.
7021 <file_name_at, file_names>: Add const overload.
7022 * dwarf2/line-header.c (line_header::file_file_name)
7023 (line_header::file_full_name): Update.
7024
c90ec28a
TT
70252020-03-26 Tom Tromey <tom@tromey.com>
7026
7027 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7028 (macro_start_file, consume_improper_spaces)
7029 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7030 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7031 (dwarf_decode_macros): Move to macro.c.
7032 * dwarf2/macro.c: New file.
7033 * dwarf2/macro.h: New file.
7034 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7035
4f44ae6c
TT
70362020-03-26 Tom Tromey <tom@tromey.com>
7037
7038 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7039 method.
7040 * dwarf2/section.c: New method. From
7041 read_indirect_string_at_offset_from.
7042 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7043 (read_indirect_string_at_offset_from): Move to section.c.
7044 (read_indirect_string_at_offset): Rewrite.
7045 (read_indirect_line_string_at_offset): Remove.
7046 (read_indirect_string, read_indirect_line_string)
7047 (dwarf_decode_macro_bytes): Update.
7048
a0194fa8
TT
70492020-03-26 Tom Tromey <tom@tromey.com>
7050
7051 * dwarf2/section.h (struct dwarf2_section_info)
7052 <overload_complaint>: Declare.
7053 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7054 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7055 Rename from dwarf2_section_buffer_overflow_complaint.
7056 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7057 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7058
3d27bbdb
TT
70592020-03-26 Tom Tromey <tom@tromey.com>
7060
7061 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7062 Declare.
7063 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7064 Move from read.c.
7065 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7066 to section.c.
7067
9eac9650
TT
70682020-03-26 Tom Tromey <tom@tromey.com>
7069
7070 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7071
bf80d710
TT
70722020-03-26 Tom Tromey <tom@tromey.com>
7073
7074 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7075 "builder".
7076 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7077 parameter.
7078 (dwarf_decode_macros): Update.
7079
0314b390
TT
70802020-03-26 Tom Tromey <tom@tromey.com>
7081
7082 * dwarf2/read.c (read_attribute_value): Update.
7083 (read_indirect_string_from_dwz): Move to dwz.c; change into
7084 method.
7085 (dwarf_decode_macro_bytes): Update.
7086 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7087 * dwarf2/dwz.c: New file.
7088 * Makefile.in (COMMON_SFILES): Add dwz.c.
7089
9fda78b6
TT
70902020-03-26 Tom Tromey <tom@tromey.com>
7091
7092 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7093 * dwarf2/read.c: Add include.
7094 * dwarf2/index-write.c: Add include.
7095 * dwarf2/index-cache.c: Add include.
7096 * dwarf2/dwz.h: New file.
7097
33aa3c10
TT
70982020-03-25 Tom Tromey <tom@tromey.com>
7099
7100 * compile/compile-object-load.c (get_out_value_type): Mention
7101 correct symbol name in error message.
7102
d503b685
HD
71032020-03-25 Hannes Domani <ssbssa@yahoo.de>
7104
7105 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7106
7b1eff95
TV
71072020-03-25 Tom de Vries <tdevries@suse.de>
7108
7109 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7110 * symmisc.c (dump_symtab_1): Print user and includes fields.
7111 (maintenance_info_symtabs): Same.
7112
dd895392
AB
71132020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7114
7115 PR gdb/25534
7116 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7117 (riscv_regcache_cooked_write): New function.
7118 (riscv_push_dummy_call): Use new function.
7119 (riscv_return_value): Likewise.
7120
5ab2fbf1
SM
71212020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7122
7123 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7124 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7125 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7126 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7127 * infrun.c (follow_fork): Likewise.
7128 (follow_fork_inferior): Likewise.
7129 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7130 * linux-nat.h (class linux_nat_target): Likewise.
7131 * remote.c (class remote_target) <follow_fork>: Likewise.
7132 (remote_target::follow_fork): Likewise.
7133 * target-delegates.c: Re-generate.
7134 * target.c (default_follow_fork): Likewise.
7135 (target_follow_fork): Likewise.
7136 * target.h (struct target_ops) <follow_fork>: Likewise.
7137 (target_follow_fork): Likewise.
7138
a64fafb5
TV
71392020-03-24 Tom de Vries <tdevries@suse.de>
7140
7141 * psymtab.c (maintenance_info_psymtabs): Print user field.
7142
fe26d3a3
TT
71432020-03-20 Tom Tromey <tromey@adacore.com>
7144
7145 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7146 const.
7147 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7148 const.
7149
c884cc46
SM
71502020-03-20 Simon Marchi <simon.marchi@efficios.com>
7151
7152 * ptrace.m4: Don't check for ptrace declaration.
7153 * config.in: Re-generate.
7154 * configure: Re-generate.
7155 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7156 not defined.
7157
1ff700c2
KR
71582020-03-20 Kamil Rytarowski <n54@gmx.com>
7159
7160 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7161 `PTRACE_TYPE_RET'.
7162 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7163 * sparc-nat.c (gdb_ptrace): Likewise.
7164 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7165
f7d4f0b1
TT
71662020-03-20 Tom Tromey <tromey@adacore.com>
7167
7168 * c-exp.y (lex_one_token): Fix assert.
7169
f67210ff
TT
71702020-03-20 Tom Tromey <tromey@adacore.com>
7171
7172 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7173 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7174 strncpy call.
7175
1773be9e
TT
71762020-03-20 Tom Tromey <tromey@adacore.com>
7177
7178 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7179
70304be9
TT
71802020-03-20 Tom Tromey <tromey@adacore.com>
7181
7182 * ada-valprint.c (print_variant_part): Remove parameters; switch
7183 to value-based API.
7184 (print_field_values): Likewise.
7185 (ada_val_print_struct_union): Likewise.
7186 (ada_value_print_1): Update.
7187
9faa006d
KR
71882020-03-20 Kamil Rytarowski <n54@gmx.com>
7189
7190 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7191 nbsd_nat_target instead of inf_ptrace_target.
7192 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7193 nbsd_nat_target.
7194
4a90f062
KR
71952020-03-20 Kamil Rytarowski <n54@gmx.com>
7196
7197 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7198 it to the ptrace call.
7199 * (store_registers): Likewise.
7200
72012020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7202
7203 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7204 it to the ptrace call.
7205 * (store_registers): Likewise.
7206
2d07da27
LM
72072020-03-19 Luis Machado <luis.machado@linaro.org>
7208
7209 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7210 valid, fetch vg value from ptrace.
7211
f09db380
KR
72122020-03-19 Kamil Rytarowski <n54@gmx.com>
7213 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7214 * inf-ptrace.c: Likewise.
7215 * (gdb_ptrace): Add.
7216 * (inf_ptrace_target::resume): Update.
7217 * (inf_ptrace_target::xfer_partial): Likewise.
7218 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7219 * (inf_ptrace_peek_poke): Update.
7220
fcc7376e
KR
72212020-03-19 Kamil Rytarowski <n54@gmx.com>
7222
7223 * x86-bsd-nat.c (gdb_ptrace): New.
7224 * (x86bsd_dr_set): Add new argument `ptid'.
7225 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7226 x86bsd_dr_set_addr): Update.
7227
cada5fc9
AB
72282020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7229
7230 * remote.c (remote_target::process_stop_reply): Handle events for
7231 all threads differently.
7232
19a2740f
AB
72332020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7234
7235 * completer.c (completion_tracker::remove_completion): Define new
7236 function.
7237 * completer.h (completion_tracker::remove_completion): Declare new
7238 function.
7239 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7240 when adding a C++ function symbol.
7241
724fd9ba
AB
72422020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7243
7244 * completer.c (completion_tracker::completion_hash_entry): Define
7245 new class.
7246 (advance_to_filename_complete_word_point): Call
7247 recompute_lowest_common_denominator.
7248 (completion_tracker::completion_tracker): Call discard_completions
7249 to setup the hash table.
7250 (completion_tracker::discard_completions): Allow for being called
7251 from the constructor, pass new equal function, and element deleter
7252 when constructing the hash table. Initialise new class member
7253 variables.
7254 (completion_tracker::maybe_add_completion): Remove use of
7255 m_entries_vec, and store more information into m_entries_hash.
7256 (completion_tracker::recompute_lcd_visitor): New function, most
7257 content taken from...
7258 (completion_tracker::recompute_lowest_common_denominator):
7259 ...here, this now just visits each item in the hash calling the
7260 above visitor.
7261 (completion_tracker::build_completion_result): Remove use of
7262 m_entries_vec, call recompute_lowest_common_denominator.
7263 * completer.h (completion_tracker::have_completions): Remove use
7264 of m_entries_vec.
7265 (completion_tracker::completion_hash_entry): Declare new class.
7266 (completion_tracker::recompute_lowest_common_denominator): Change
7267 function signature.
7268 (completion_tracker::recompute_lcd_visitor): Declare new function.
7269 (completion_tracker::m_entries_vec): Delete.
7270 (completion_tracker::m_entries_hash): Initialize to NULL.
7271 (completion_tracker::m_lowest_common_denominator_valid): New
7272 member variable.
7273 (completion_tracker::m_lowest_common_denominator_max_length): New
7274 member variable.
7275
5a82b8a1
KR
72762020-03-17 Kamil Rytarowski <n54@gmx.com>
7277
7278 * regformats/regdef.h: Put reg in gdb namespace.
7279
fb516a69
KR
72802020-03-17 Kamil Rytarowski <n54@gmx.com>
7281
7282 * i386-bsd-nat.c (gdb_ptrace): New.
7283 * (i386bsd_fetch_inferior_registers,
7284 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7285 * (i386bsd_fetch_inferior_registers,
7286 i386bsd_store_inferior_registers) Use gdb_ptrace.
7287
1c0aa1fb
KR
72882020-03-17 Kamil Rytarowski <n54@gmx.com>
7289
7290 * amd64-bsd-nat.c (gdb_ptrace): New.
7291 * (amd64bsd_fetch_inferior_registers,
7292 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7293 * (amd64bsd_fetch_inferior_registers,
7294 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7295
5ccd2fb7
KR
72962020-03-17 Kamil Rytarowski <n54@gmx.com>
7297
7298 * user-regs.c (user_reg::read): Rename to...
7299 (user_reg::xread): ...this.
7300 * (append_user_reg): Rename argument `read' to `xread'.
7301 * (user_reg_add_builtin): Likewise.
7302 * (user_reg_add): Likewise.
7303 * (value_of_user_reg): Likewise.
7304
2108a63a
KR
73052020-03-17 Kamil Rytarowski <n54@gmx.com>
7306
7307 * sparc-nat.c (gdb_ptrace): New.
7308 * sparc-nat.c (sparc_fetch_inferior_registers)
7309 (sparc_store_inferior_registers) Remove obsolete comment.
7310 * sparc-nat.c (sparc_fetch_inferior_registers)
7311 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7312 * sparc-nat.c (sparc_fetch_inferior_registers)
7313 (sparc_store_inferior_registers) Use gdb_ptrace.
7314
a225c9a8
KR
73152020-03-17 Kamil Rytarowski <n54@gmx.com>
7316
7317 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7318 it to the ptrace call.
7319 * sh-nbsd-nat.c (store_registers): Likewise.
7320
98097623
KR
73212020-03-17 Kamil Rytarowski <n54@gmx.com>
7322
7323 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7324 nbsd_nat_target instead of inf_ptrace_target.
7325 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7326 nbsd_nat_target.
7327
9e38d619
KR
73282020-03-17 Kamil Rytarowski <n54@gmx.com>
7329
7330 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7331
a2ecbe9f
KR
73322020-03-17 Kamil Rytarowski <n54@gmx.com>
7333
7334 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7335 <sys/sysctl.h>.
7336 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7337
58990295
TV
73382020-03-17 Tom de Vries <tdevries@suse.de>
7339
7340 PR gdb/23710
7341 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7342 fields.
7343 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7344 fields.
7345 (process_imported_unit_die): Skip import of c++ CUs.
7346
771dd3a8
TT
73472020-03-16 Tom Tromey <tom@tromey.com>
7348
7349 * p-valprint.c (pascal_object_print_value): Initialize
7350 base_value.
7351
817a7585
AK
73522020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7353 Shahab Vahedi <shahab@synopsys.com>
7354
7355 * Makefile.in: Add arch/arc.o
7356 * configure.tgt: Likewise.
7357 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7358 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7359 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7360 * arc-tdep.h (arc_read_description): Add proto type.
7361 * arch/arc.c: New file.
7362 * arch/arc.h: Likewise.
7363 * features/Makefile: Replace old target descriptions with new.
7364 * features/arc-arcompact.c: Remove.
7365 * features/arc-arcompact.xml: Likewise.
7366 * features/arc-v2.c: Likewise
7367 * features/arc-v2.xml: Likewise
7368 * features/arc/aux-arcompact.xml: New file.
7369 * features/arc/aux-v2.xml: Likewise.
7370 * features/arc/core-arcompact.xml: Likewise.
7371 * features/arc/core-v2.xml: Likewise.
7372 * features/arc/aux-arcompact.c: Generate.
7373 * features/arc/aux-v2.c: Likewise.
7374 * features/arc/core-arcompact.c: Likewise.
7375 * features/arc/core-v2.c: Likewise.
7376 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7377
67430cd0
TT
73782020-03-16 Tom Tromey <tromey@adacore.com>
7379
7380 PR gdb/25663:
7381 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7382 putting value into bcache.
7383
30efb6c7
SM
73842020-03-16 Simon Marchi <simon.marchi@efficios.com>
7385
7386 PR gdb/21500
7387 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7388 to...
7389 (amd64_windows_init_abi_common): ... this. Don't set size of
7390 long type.
7391 (amd64_windows_init_abi): New function.
7392 (amd64_cygwin_init_abi): New function.
7393 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7394 the Cygwin OS ABI.
7395 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7396 comment.
7397
8db52437
SM
73982020-03-16 Simon Marchi <simon.marchi@efficios.com>
7399
7400 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7401 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7402 (pe_import_directory_entry): New struct type.
7403 (is_linked_with_cygwin_dll): New function.
7404 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7405 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7406 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7407
5982a56a
SM
74082020-03-16 Simon Marchi <simon.marchi@efficios.com>
7409
7410 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7411 i386_cygwin_core_osabi_sniffer.
7412
7a1998df
SM
74132020-03-16 Simon Marchi <simon.marchi@efficios.com>
7414
7415 * i386-cygwin-tdep.c: Rename to...
7416 * i386-windows-tdep.c: ... this.
7417 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7418 i386-windows-tdep.c.
7419 * configure.tgt: Likewise.
7420
053205cc
SM
74212020-03-16 Simon Marchi <simon.marchi@efficios.com>
7422
7423 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7424 * osabi.c (gdb_osabi_names): Add "Windows".
7425 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7426 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7427 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7428 i386_cygwin_osabi_sniffer.
7429 (_initialize_i386_cygwin_tdep): Register OS ABI
7430 GDB_OSABI_WINDOWS for i386.
7431 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7432 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7433 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7434 for x86-64.
7435 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7436 when the target matches '*-*-mingw*'.
7437
fe4b2ee6
SM
74382020-03-16 Simon Marchi <simon.marchi@efficios.com>
7439
7440 * defs.h (enum gdb_osabi): Move to...
7441 * osabi.h (enum gdb_osabi): ... here.
7442 * gdbarch.sh: Include osabi.h in gdbarch.h.
7443 * gdbarch.h: Re-generate.
7444
cb9b645d
SM
74452020-03-16 Simon Marchi <simon.marchi@efficios.com>
7446
7447 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7448 function.
7449 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7450
3293bbaf
TT
74512020-03-14 Tom Tromey <tom@tromey.com>
7452
7453 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7454 for C++.
7455 (c_type_print_modifier): Likewise. Add "language" parameter.
7456 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7457 (c_type_print_base_1): Update.
7458 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7459 constants.
7460 * type-stack.c (type_stack::insert): Handle tp_atomic and
7461 tp_restrict.
7462 (type_stack::follow_type_instance_flags): Likewise.
7463 (type_stack::follow_types): Likewise. Merge type-following code.
7464 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7465 (space_identifier, cv_with_space_id)
7466 (const_or_volatile_or_space_identifier_noopt)
7467 (const_or_volatile_or_space_identifier): Remove.
7468 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7469 rules.
7470 (ptr_operator, typebase): Update.
7471 (enum token_flag) <FLAG_C>: New constant.
7472 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7473 "_Atomic".
7474 (lex_one_token): Handle FLAG_C.
7475
154151a6
KR
74762020-03-14 Kamil Rytarowski <n54@gmx.com>
7477
7478 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7479 it to the ptrace call.
7480 * m68k-bsd-nat.c (store_registers): Likewise.
7481
bc107784
KR
74822020-03-14 Kamil Rytarowski <n54@gmx.com>
7483
7484 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7485 gdb_byte *.
7486 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7487 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7488 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7489
01a80117
KR
74902020-03-14 Kamil Rytarowski <n54@gmx.com>
7491
7492 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7493 nbsd_nat_target instead of inf_ptrace_target.
7494 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7495 nbsd_nat_target.
7496
f90280ca
KR
74972020-03-14 Kamil Rytarowski <n54@gmx.com>
7498
7499 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7500 register_t.
7501
6def66f1
KR
75022020-03-14 Kamil Rytarowski <n54@gmx.com>
7503
7504 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7505 it to the ptrace call.
7506 * alpha-bsd-nat.c (store_registers): Likewise.
7507
66eaca97
KR
75082020-03-14 Kamil Rytarowski <n54@gmx.com>
7509
7510 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7511 includes.
7512 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7513 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7514 fill_fpregset): Likewise.
7515
4fed520b
KR
75162020-03-14 Kamil Rytarowski <n54@gmx.com>
7517
7518 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7519 nbsd_nat_target instead of inf_ptrace_target.
7520 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7521 nbsd_nat_target.
7522
2190cf06
KR
75232020-03-14 Kamil Rytarowski <n54@gmx.com>
7524
7525 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7526 register_t.
7527
75c56d3d
KR
75282020-03-14 Kamil Rytarowski <n54@gmx.com>
7529
7530 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7531 it to the ptrace call.
7532 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7533 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7534 * arm-nbsd-nat.c (store_register): Likewise.
7535 * arm-nbsd-nat.c (store_regs): Likewise.
7536 * arm-nbsd-nat.c (store_fp_register): Likewise.
7537 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7538
6018d381
KR
75392020-03-14 Kamil Rytarowski <n54@gmx.com>
7540
7541 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7542 nbsd_nat_target instead of inf_ptrace_target.
7543 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7544 nbsd_nat_target.
7545
013f99f0
KR
75462020-03-14 Kamil Rytarowski <n54@gmx.com>
7547
7548 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7549 it to the ptrace call.
7550 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7551
12753073
KR
75522020-03-14 Kamil Rytarowski <n54@gmx.com>
7553
6227b330
KR
7554 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7555 it to the ptrace call.
7556 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7557
75582020-03-14 Kamil Rytarowski <n54@gmx.com>
7559
7560 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7561 gdb_byte *.
12753073
KR
7562 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7563
d5be5fa4
KR
75642020-03-14 Kamil Rytarowski <n54@gmx.com>
7565
7566 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7567 instead of inf_ptrace_target.
7568 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7569 nbsd_nat_target.
7570
8110f842
KR
75712020-03-14 Kamil Rytarowski <n54@gmx.com>
7572
7573 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7574 register_t.
7575
52feded7
KR
75762020-03-14 Kamil Rytarowski <n54@gmx.com>
7577
7578 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7579 register_t.
7580
25567eee
KR
75812020-03-14 Kamil Rytarowski <n54@gmx.com>
7582
7583 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7584 register_t.
7585
426a9c18
TT
75862020-03-13 Tom Tromey <tom@tromey.com>
7587
7588 * value.h (val_print): Don't declare.
7589 * valprint.h (val_print_array_elements)
7590 (val_print_scalar_formatted, generic_val_print): Don't declare.
7591 * valprint.c (generic_val_print_array): Take a struct value.
7592 (generic_val_print_ptr, generic_val_print_memberptr)
7593 (generic_val_print_bool, generic_val_print_int)
7594 (generic_val_print_char, generic_val_print_complex)
7595 (generic_val_print): Remove.
7596 (generic_value_print): Update.
7597 (do_val_print): Remove unused parameters. Don't call
7598 la_val_print.
7599 (val_print): Remove.
7600 (common_val_print): Update. Don't call value_check_printable.
7601 (val_print_scalar_formatted, val_print_array_elements): Remove.
7602 * rust-lang.c (rust_val_print): Remove.
7603 (rust_language_defn): Update.
7604 * p-valprint.c (pascal_val_print): Remove.
7605 (pascal_value_print_inner): Update.
7606 (pascal_object_print_val_fields, pascal_object_print_val):
7607 Remove.
7608 (pascal_object_print_static_field): Update.
7609 * p-lang.h (pascal_val_print): Don't declare.
7610 * p-lang.c (pascal_language_defn): Update.
7611 * opencl-lang.c (opencl_language_defn): Update.
7612 * objc-lang.c (objc_language_defn): Update.
7613 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7614 * m2-lang.h (m2_val_print): Don't declare.
7615 * m2-lang.c (m2_language_defn): Update.
7616 * language.h (struct language_defn) <la_val_print>: Remove.
7617 * language.c (unk_lang_value_print_inner): Rename. Change
7618 argument types.
7619 (unknown_language_defn, auto_language_defn): Update.
7620 * go-valprint.c (go_val_print): Remove.
7621 * go-lang.h (go_val_print): Don't declare.
7622 * go-lang.c (go_language_defn): Update.
7623 * f-valprint.c (f_val_print): Remove.
7624 * f-lang.h (f_value_print): Don't declare.
7625 * f-lang.c (f_language_defn): Update.
7626 * d-valprint.c (d_val_print): Remove.
7627 * d-lang.h (d_value_print): Don't declare.
7628 * d-lang.c (d_language_defn): Update.
7629 * cp-valprint.c (cp_print_value_fields)
7630 (cp_print_value_fields_rtti, cp_print_value): Remove.
7631 (cp_print_static_field): Update.
7632 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7633 (c_val_print_struct, c_val_print_union, c_val_print_int)
7634 (c_val_print_memberptr, c_val_print): Remove.
7635 * c-lang.h (c_val_print_array, cp_print_value_fields)
7636 (cp_print_value_fields_rtti): Don't declare.
7637 * c-lang.c (c_language_defn, cplus_language_defn)
7638 (asm_language_defn, minimal_language_defn): Update.
7639 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7640 (ada_val_print_enum): Take a struct value.
7641 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7642 (ada_val_print): Remove.
7643 (ada_value_print_1): Update.
7644 (printable_val_type): Remove.
7645 * ada-lang.h (ada_val_print): Don't declare.
7646 * ada-lang.c (ada_language_defn): Update.
7647
42331a1e
TT
76482020-03-13 Tom Tromey <tom@tromey.com>
7649
7650 * valprint.c (do_val_print): Update.
7651 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7652 a struct value.
7653 (value_to_value_object_no_release): Declare.
7654 * python/py-value.c (value_to_value_object_no_release): New
7655 function.
7656 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7657 struct value.
7658 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7659 function.
7660 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7661 a struct value.
7662 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7663 Declare.
7664 (gdbscm_apply_val_pretty_printer): Take a struct value.
7665 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7666 value.
7667 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7668 value.
7669 * extension-priv.h (struct extension_language_ops)
7670 <apply_val_pretty_printer>: Take a struct value.
7671 * cp-valprint.c (cp_print_value): Create a struct value.
7672 (cp_print_value): Update.
7673
3a916a97
TT
76742020-03-13 Tom Tromey <tom@tromey.com>
7675
7676 * ada-valprint.c (print_field_values): Call common_val_print.
7677
b59eac37
TT
76782020-03-13 Tom Tromey <tom@tromey.com>
7679
7680 * ada-valprint.c (val_print_packed_array_elements): Remove
7681 bitoffset and val parameters. Call common_val_print.
7682 (ada_val_print_string): Remove offset, address, and original_value
7683 parameters.
7684 (ada_val_print_array): Update.
7685 (ada_value_print_array): New function.
7686 (ada_value_print_1): Call it.
7687
03371129
TT
76882020-03-13 Tom Tromey <tom@tromey.com>
7689
7690 * ada-valprint.c (ada_value_print): Use common_val_print.
7691
2e088f8b
TT
76922020-03-13 Tom Tromey <tom@tromey.com>
7693
7694 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7695
39ef85a8
TT
76962020-03-13 Tom Tromey <tom@tromey.com>
7697
7698 * ada-valprint.c (ada_value_print_num): New function.
7699 (ada_value_print_1): Use it.
7700
b9fa6e07
TT
77012020-03-13 Tom Tromey <tom@tromey.com>
7702
7703 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7704
416595d6
TT
77052020-03-13 Tom Tromey <tom@tromey.com>
7706
7707 * ada-valprint.c (ada_value_print_ptr): New function.
7708 (ada_value_print_1): Use it.
7709
5b5e15ec
TT
77102020-03-13 Tom Tromey <tom@tromey.com>
7711
7712 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7713 call common_val_print.
7714 (ada_val_print_1): Update.
7715 (ada_value_print_1): New function.
7716 (ada_value_print_inner): Rewrite.
7717
fbf54e75
TT
77182020-03-13 Tom Tromey <tom@tromey.com>
7719
7720 * cp-valprint.c (cp_print_value_fields): Update.
7721 (cp_print_value): New function.
7722
64b653ca
TT
77232020-03-13 Tom Tromey <tom@tromey.com>
7724
7725 * m2-valprint.c (m2_value_print_inner): Use
7726 cp_print_value_fields.
7727 * cp-valprint.c (cp_print_value_fields): New function.
7728 * c-valprint.c (c_value_print_struct): New function.
7729 (c_value_print_inner): Use c_value_print_struct.
7730 * c-lang.h (cp_print_value_fields): Declare.
7731
6999f067
TT
77322020-03-13 Tom Tromey <tom@tromey.com>
7733
7734 * c-valprint.c (c_value_print_array): New function.
7735 (c_value_print_inner): Use it.
7736
ce80b8bd
TT
77372020-03-13 Tom Tromey <tom@tromey.com>
7738
7739 * c-valprint.c (c_value_print_memberptr): New function.
7740 (c_value_print_inner): Use it.
7741
2faac269
TT
77422020-03-13 Tom Tromey <tom@tromey.com>
7743
7744 * c-valprint.c (c_value_print_int): New function.
7745 (c_value_print_inner): Use it.
7746
da3e2c29
TT
77472020-03-13 Tom Tromey <tom@tromey.com>
7748
7749 * c-valprint.c (c_value_print_ptr): New function.
7750 (c_value_print_inner): Use it.
7751
50836231
TT
77522020-03-13 Tom Tromey <tom@tromey.com>
7753
7754 * c-valprint.c (c_value_print_inner): Rewrite.
7755
4f412b6e
TT
77562020-03-13 Tom Tromey <tom@tromey.com>
7757
7758 * valprint.c (generic_value_print_complex): New function.
7759 (generic_value_print): Use it.
7760
f5354008
TT
77612020-03-13 Tom Tromey <tom@tromey.com>
7762
7763 * valprint.c (generic_val_print_float): Don't call
7764 val_print_scalar_formatted.
7765 (generic_val_print, generic_value_print): Update.
7766
3eec3b05
TT
77672020-03-13 Tom Tromey <tom@tromey.com>
7768
7769 * valprint.c (generic_value_print_char): New function
7770 (generic_value_print): Use it.
7771
fdddfccb
TT
77722020-03-13 Tom Tromey <tom@tromey.com>
7773
7774 * valprint.c (generic_value_print_int): New function.
7775 (generic_value_print): Use it.
7776
6dde7521
TT
77772020-03-13 Tom Tromey <tom@tromey.com>
7778
7779 * valprint.c (generic_value_print_bool): New function.
7780 (generic_value_print): Use it.
7781
4112d2e6
TT
77822020-03-13 Tom Tromey <tom@tromey.com>
7783
7784 * valprint.c (generic_val_print_func): Simplify.
7785 (generic_val_print, generic_value_print): Update.
7786
65786af6
TT
77872020-03-13 Tom Tromey <tom@tromey.com>
7788
7789 * valprint.c (generic_val_print_flags): Remove.
7790 (generic_val_print, generic_value_print): Update.
7791 (val_print_type_code_flags): Add original_value parameter.
7792
40f3ce18
TT
77932020-03-13 Tom Tromey <tom@tromey.com>
7794
7795 * valprint.c (generic_val_print): Update.
7796 (generic_value_print): Update.
7797 * valprint.c (generic_val_print_enum): Don't call
7798 val_print_scalar_formatted.
7799
2a5b130b
TT
78002020-03-13 Tom Tromey <tom@tromey.com>
7801
7802 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7803 * valprint.c (generic_value_print_ptr): New function.
7804
abc66ce9
TT
78052020-03-13 Tom Tromey <tom@tromey.com>
7806
7807 * valprint.c (generic_value_print): Rewrite.
7808
07a32858
TT
78092020-03-13 Tom Tromey <tom@tromey.com>
7810
7811 * p-valprint.c (pascal_object_print_value_fields)
7812 (pascal_object_print_value): New functions.
7813
64d64d3a
TT
78142020-03-13 Tom Tromey <tom@tromey.com>
7815
7816 * p-valprint.c (pascal_value_print_inner): Rewrite.
7817
6a95a1f5
TT
78182020-03-13 Tom Tromey <tom@tromey.com>
7819
7820 * f-valprint.c (f_value_print_innner): Rewrite.
7821
59fcdac6
TT
78222020-03-13 Tom Tromey <tom@tromey.com>
7823
7824 * m2-valprint.c (m2_print_unbounded_array): New overload.
7825 (m2_print_unbounded_array): Update.
7826 (m2_print_array_contents): Take a struct value.
7827 (m2_value_print_inner): Rewrite.
7828
d133c3e1
TT
78292020-03-13 Tom Tromey <tom@tromey.com>
7830
7831 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7832 (d_value_print_inner): New function.
7833 * d-lang.h (d_value_print_inner): Declare.
7834 * d-lang.c (d_language_defn): Use d_value_print_inner.
7835
23b0f06b
TT
78362020-03-13 Tom Tromey <tom@tromey.com>
7837
7838 * go-valprint.c (go_value_print_inner): New function.
7839 * go-lang.h (go_value_print_inner): Declare.
7840 * go-lang.c (go_language_defn): Use go_value_print_inner.
7841
5f56f7cb
TT
78422020-03-13 Tom Tromey <tom@tromey.com>
7843
7844 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7845 API.
7846 (rust_val_print): Rewrite.
7847 (rust_value_print_inner): New function, from rust_val_print.
7848 (rust_language_defn): Use rust_value_print_inner.
7849
26792ee0
TT
78502020-03-13 Tom Tromey <tom@tromey.com>
7851
7852 * ada-valprint.c (ada_value_print_inner): New function.
7853 * ada-lang.h (ada_value_print_inner): Declare.
7854 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7855
24051bbe
TT
78562020-03-13 Tom Tromey <tom@tromey.com>
7857
7858 * f-valprint.c (f_value_print_innner): New function.
7859 * f-lang.h (f_value_print_innner): Declare.
7860 * f-lang.c (f_language_defn): Use f_value_print_innner.
7861
c0941be6
TT
78622020-03-13 Tom Tromey <tom@tromey.com>
7863
7864 * p-valprint.c (pascal_value_print_inner): New function.
7865 * p-lang.h (pascal_value_print_inner): Declare.
7866 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7867
62c4663d
TT
78682020-03-13 Tom Tromey <tom@tromey.com>
7869
7870 * m2-valprint.c (m2_value_print_inner): New function.
7871 * m2-lang.h (m2_value_print_inner): Declare.
7872 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7873
62182190
TT
78742020-03-13 Tom Tromey <tom@tromey.com>
7875
7876 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7877 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7878 * c-valprint.c (c_value_print_inner): New function.
7879 * c-lang.h (c_value_print_inner): Declare.
7880 * c-lang.c (c_language_defn, cplus_language_defn)
7881 (asm_language_defn, minimal_language_defn): Use
7882 c_value_print_inner.
7883
1e592a8a
TT
78842020-03-13 Tom Tromey <tom@tromey.com>
7885
7886 * p-valprint.c (pascal_object_print_value_fields): Now static.
7887 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7888
7fe471e9
TT
78892020-03-13 Tom Tromey <tom@tromey.com>
7890
7891 * c-valprint.c (c_val_print_array): Simplify.
7892
d121c6ce
TT
78932020-03-13 Tom Tromey <tom@tromey.com>
7894
7895 * valprint.c (value_print_array_elements): New function.
7896 * valprint.h (value_print_array_elements): Declare.
7897
4dba70ee
TT
78982020-03-13 Tom Tromey <tom@tromey.com>
7899
7900 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7901 * mips-tdep.c (mips_print_register): Use
7902 value_print_scalar_formatted.
7903
4f9ae810
TT
79042020-03-13 Tom Tromey <tom@tromey.com>
7905
7906 * valprint.h (value_print_scalar_formatted): Declare.
7907 * valprint.c (value_print_scalar_formatted): New function.
7908
156bfec9
TT
79092020-03-13 Tom Tromey <tom@tromey.com>
7910
7911 * valprint.h (generic_value_print): Declare.
7912 * valprint.c (generic_value_print): New function.
7913
2b4e573d
TT
79142020-03-13 Tom Tromey <tom@tromey.com>
7915
7916 * valprint.c (do_val_print): Call la_value_print_inner, if
7917 available.
7918 * rust-lang.c (rust_language_defn): Update.
7919 * p-lang.c (pascal_language_defn): Update.
7920 * opencl-lang.c (opencl_language_defn): Update.
7921 * objc-lang.c (objc_language_defn): Update.
7922 * m2-lang.c (m2_language_defn): Update.
7923 * language.h (struct language_defn) <la_value_print_inner>: New
7924 member.
7925 * language.c (unknown_language_defn, auto_language_defn): Update.
7926 * go-lang.c (go_language_defn): Update.
7927 * f-lang.c (f_language_defn): Update.
7928 * d-lang.c (d_language_defn): Update.
7929 * c-lang.c (c_language_defn, cplus_language_defn)
7930 (asm_language_defn, minimal_language_defn): Update.
7931 * ada-lang.c (ada_language_defn): Update.
7932
a1f6a07c
TT
79332020-03-13 Tom Tromey <tom@tromey.com>
7934
7935 * c-valprint.c (c_value_print): Use common_val_print.
7936
410cf315
TT
79372020-03-13 Tom Tromey <tom@tromey.com>
7938
7939 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7940
72a45c93
TT
79412020-03-13 Tom Tromey <tom@tromey.com>
7942
7943 * f-valprint.c (f77_print_array_1, f_val_print): Use
7944 common_val_print.
7945
040f66bd
TT
79462020-03-13 Tom Tromey <tom@tromey.com>
7947
7948 * riscv-tdep.c (riscv_print_one_register_info): Use
7949 common_val_print.
7950
a6e05a6c
TT
79512020-03-13 Tom Tromey <tom@tromey.com>
7952
7953 * mi/mi-main.c (output_register): Use common_val_print.
7954
3444c526
TT
79552020-03-13 Tom Tromey <tom@tromey.com>
7956
7957 * infcmd.c (default_print_one_register_info): Use
7958 common_val_print.
7959
c2a44efe
TT
79602020-03-13 Tom Tromey <tom@tromey.com>
7961
7962 * valprint.h (common_val_print_checked): Declare.
7963 * valprint.c (common_val_print_checked): New function.
7964 * stack.c (print_frame_arg): Use common_val_print_checked.
7965
b0c26e99
TT
79662020-03-13 Tom Tromey <tom@tromey.com>
7967
7968 * valprint.c (do_val_print): New function, from val_print.
7969 (val_print): Use do_val_print.
7970 (common_val_print): Use do_val_print.
7971
ce3acbe9
TT
79722020-03-13 Tom Tromey <tom@tromey.com>
7973
7974 * valprint.c (value_print): Use scoped_value_mark.
7975
96c7f873
TV
79762020-03-13 Tom de Vries <tdevries@suse.de>
7977
7978 PR symtab/25646
7979 * psymtab.c (partial_symtab::partial_symtab): Don't set
7980 globals_offset and statics_offset. Push element onto
7981 current_global_psymbols and current_static_psymbols stacks.
7982 (concat): New function.
7983 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7984 element from current_global_psymbols and current_static_psymbols
7985 stacks. Concat popped elements to global_psymbols and
7986 static_symbols.
7987 (add_psymbol_to_list): Use current_global_psymbols and
7988 current_static_psymbols stacks.
7989 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7990 current_static_psymbols fields.
7991
6ba0a321
CB
79922020-03-12 Christian Biesinger <cbiesinger@google.com>
7993
7994 * corelow.c (sniff_core_bfd): Remove.
7995 (class core_target) <m_core_vec>: Remove.
7996 (core_target::core_target): Update.
7997 (core_file_fns): Remove.
7998 (deprecated_add_core_fns): Remove.
7999 (default_core_sniffer): Remove.
8000 (sniff_core_bfd): Remove.
8001 (default_check_format): Remove.
8002 (gdb_check_format): Remove.
8003 (core_target_open): Update.
8004 (core_target::get_core_register_section): Update.
8005 (get_core_registers_cb): Update.
8006 (core_target::fetch_registers): Update.
8007 * gdbcore.h (struct core_fns): Remove.
8008 (deprecated_add_core_fns): Remove.
8009 (default_core_sniffer): Remove.
8010 (default_check_format): Remove.
8011
227031b2
TT
80122020-03-12 Tom Tromey <tom@tromey.com>
8013
8014 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8015 CORE_ADDR.
8016 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8017
53807e9f
TT
80182020-03-12 Tom Tromey <tom@tromey.com>
8019
8020 * remote.c (remote_target::download_tracepoint)
8021 (remote_target::enable_tracepoint)
8022 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8023 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8024 sprintf_vma.
8025
64f25102
TT
80262020-03-12 Tom Tromey <tom@tromey.com>
8027
8028 * symfile-mem.c: Update CORE_ADDR size assert.
8029
272cd5a3
SM
80302020-03-12 Simon Marchi <simon.marchi@efficios.com>
8031
8032 * selftest.m4: Move to gdbsupport/.
8033 * acinclude.m4: Update path to selftest.m4.
8034
74cd3f9d
SM
80352020-03-12 Simon Marchi <simon.marchi@efficios.com>
8036
8037 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8038 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8039 gdbarch-selfselftests.c and selftest-arch.c.
8040 (SUBDIR_UNITTESTS_OBS): Rename to...
8041 (SELFTESTS_OBS): ... this.
8042 (COMMON_SFILES): Remove disasm-selftests.c and
8043 gdbarch-selftests.c.
8044 * configure.ac: Don't add selftest-arch.{c,o} to
8045 CONFIG_{SRCS,OBS}.
8046 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8047 preprocessor conditions.
8048
db6878ac
SM
80492020-03-12 Simon Marchi <simon.marchi@efficios.com>
8050
8051 * configure.ac: Don't source bfd/development.sh.
8052 * selftest.m4: Modify comment.
8053 * configure: Re-generate.
8054
4d696a5c
SM
80552020-03-12 Simon Marchi <simon.marchi@efficios.com>
8056
8057 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8058 not "true" or "false".
8059 * configure: Re-generate.
8060
8dd8e1c7
CB
80612020-03-12 Christian Biesinger <cbiesinger@google.com>
8062
8063 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8064 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8065 renamed to arm_nbsd_supply_gregset.
8066 (fetch_register): Update to call arm_nbsd_supply_gregset.
8067 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8068 (arm_netbsd_nat_target::fetch_registers): Update.
8069 (fetch_elfcore_registers): Removed.
8070 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8071 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8072 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8073 not require NetBSD system headers.
8074 (arm_nbsd_regset): New struct.
8075 (arm_nbsd_iterate_over_regset_sections): New function.
8076 (arm_netbsd_init_abi_common): Updated to call
8077 set_gdbarch_iterate_over_regset_sections.
8078 * arm-nbsd-tdep.h: New file.
8079
dd69bf7a
KB
80802020-03-11 Kevin Buettner <kevinb@redhat.com>
8081
8082 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8083 recursion.
8084
a0761e34
SM
80852020-03-11 Simon Marchi <simon.marchi@efficios.com>
8086
8087 * configure: Re-generate.
8088
e7a82140
TT
80892020-03-11 Tom Tromey <tromey@adacore.com>
8090
8091 * ada-typeprint.c (print_choices): Fix comment.
8092
dcc050c8
AB
80932020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8094
8095 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8096 previous item in the list, when the list has no items.
8097
1c33af77
TV
80982020-03-11 Tom de Vries <tdevries@suse.de>
8099
8100 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8101 PROP_LOCLIST handling code.
8102
8c95582d
AB
81032020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8104
8105 * buildsym-legacy.c (record_line): Pass extra parameter to
8106 record_line.
8107 * buildsym.c (buildsym_compunit::record_line): Take an extra
8108 parameter, reduce duplication in the line table, and record the
8109 is_stmt flag in the line table.
8110 * buildsym.h (buildsym_compunit::record_line): Add extra
8111 parameter.
8112 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8113 non-statement lines.
8114 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8115 this to the symtab builder.
8116 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8117 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8118 through to dwarf_record_line_1.
8119 * infrun.c (process_event_stop_test): When stepping, don't stop at
8120 a non-statement instruction, and only refresh the step info when
8121 we land in the middle of a line's range. Also add an extra
8122 comment.
8123 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8124 field.
8125 * record-btrace.c (btrace_find_line_range): Only record lines
8126 marked as is-statement.
8127 * stack.c (frame_show_address): Show the frame address if we are
8128 in a non-statement sal.
8129 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8130 (maintenance_print_one_line_table): Print a header for the is_stmt
8131 column, and include is_stmt information in the output.
8132 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8133 preference to non-statements.
8134 (find_pcs_for_symtab_line): Prefer is-statement entries.
8135 (find_line_common): Likewise.
8136 * symtab.h (struct linetable_entry): Add is_stmt field.
8137 (struct symtab_and_line): Likewise.
8138 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8139 arranging the line table.
8140
e4003a34
TV
81412020-03-07 Tom de Vries <tdevries@suse.de>
8142
8143 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8144 DIE.
8145
e8932576
TT
81462020-03-07 Tom Tromey <tom@tromey.com>
8147
8148 * valops.c (value_literal_complex): Remove obsolete comment.
8149 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8150 comment.
8151
29734269
SM
81522020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8153
8154 * infrun.h: Forward-declare thread_info.
8155 (set_step_info): Add thread_info parameter, add doc.
8156 * infrun.c (set_step_info): Add thread_info parameter, move doc
8157 to header.
8158 * infrun.c (process_event_stop_test): Pass thread to
8159 set_step_info call.
8160 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8161 set_step_info.
8162 (prepare_one_step): Add thread_info parameter, pass it to
8163 set_step_frame and prepare_one_step (recursive) call.
8164 (step_1): Pass thread to prepare_one_step call.
8165 (step_command_fsm::should_stop): Pass thread to
8166 prepare_one_step.
8167 (until_next_fsm): Pass thread to set_step_frame call.
8168 (finish_command): Pass thread to set_step_info call.
8169
b7d64b29
HD
81702020-03-06 Hannes Domani <ssbssa@yahoo.de>
8171
8172 * windows-tdep.c (windows_solib_create_inferior_hook):
8173 Check if inferior is running.
8174
09f2921c
TV
81752020-03-06 Tom de Vries <tdevries@suse.de>
8176
8177 * NEWS: Fix "the the".
8178 * ctfread.c: Same.
8179
fd760e79
TV
81802020-03-06 Tom de Vries <tdevries@suse.de>
8181
8182 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8183
20ea4a60
AB
81842020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8185
8186 * .dir-locals.el: Add a comment referencing the other copies of
8187 this file.
8188
0afbabf0
JB
81892020-03-05 John Baldwin <jhb@FreeBSD.org>
8190
8191 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8192 psargs.
8193
842806cb
TBA
81942020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8195
8196 * .gitattributes: New file.
8197
be1e3d3e
TT
81982020-03-04 Tom Tromey <tom@tromey.com>
8199
8200 * symmisc.c (print_symbol_bcache_statistics)
8201 (print_objfile_statistics): Update.
8202 * symfile.c (allocate_symtab): Use intern.
8203 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8204 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8205 macro_cache>: Remove.
8206 <string_cache>: New member.
8207 (struct objfile) <intern>: New methods.
8208 * elfread.c (elf_symtab_read): Use intern.
8209 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8210 (dwarf2_compute_name, dwarf2_physname)
8211 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8212 names.
8213 (guess_partial_die_structure_name): Update.
8214 (partial_die_info::fixup): Intern name.
8215 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8216 name.
8217 (dwarf2_name): Intern name. Update.
8218 * buildsym.c (buildsym_compunit::get_macro_table): Use
8219 string_cache.
8220
4e7625fd
TT
82212020-03-04 Tom Tromey <tom@tromey.com>
8222
8223 * jit.c (bfd_open_from_target_memory): Make "target" const.
8224 * corefile.c (gnutarget): Now const.
8225 * gdbcore.h (gnutarget): Now const.
8226
46f9f931
HD
82272020-03-04 Hannes Domani <ssbssa@yahoo.de>
8228
8229 * NEWS: Mention support for WOW64 processes.
8230 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8231 (amd64_windows_segment_register_p): Remove static.
8232 (_initialize_amd64_windows_nat): Update.
8233 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8234 * i386-windows-nat.c (context_offset): Update.
8235 (i386_mappings): Rename and remove static.
8236 (i386_windows_segment_register_p): Remove static.
8237 (_initialize_i386_windows_nat): Update.
8238 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8239 (STATUS_WX86_SINGLE_STEP): New macro.
8240 (EnumProcessModulesEx): New macro.
8241 (Wow64SuspendThread): New macro.
8242 (Wow64GetThreadContext): New macro.
8243 (Wow64SetThreadContext): New macro.
8244 (Wow64GetThreadSelectorEntry): New macro.
8245 (windows_set_context_register_offsets): Add static.
8246 (windows_set_segment_register_p): Likewise.
8247 (windows_add_thread): Adapt for WOW64 processes.
8248 (windows_fetch_one_register): Likewise.
8249 (windows_nat_target::fetch_registers): Likewise.
8250 (windows_store_one_register): Likewise.
8251 (display_selector): Likewise.
8252 (display_selectors): Likewise.
8253 (handle_exception): Likewise.
8254 (windows_continue): Likewise.
8255 (windows_nat_target::resume): Likewise.
8256 (windows_add_all_dlls): Likewise.
8257 (do_initial_windows_stuff): Likewise.
8258 (windows_nat_target::attach): Likewise.
8259 (windows_get_exec_module_filename): Likewise.
8260 (windows_nat_target::create_inferior): Likewise.
8261 (windows_xfer_siginfo): Likewise.
8262 (_initialize_loadable): Initialize Wow64SuspendThread,
8263 Wow64GetThreadContext, Wow64SetThreadContext,
8264 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8265 * windows-nat.h (windows_set_context_register_offsets):
8266 Remove declaration.
8267 (windows_set_segment_register_p): Likewise.
8268 (i386_windows_segment_register_p): Add declaration.
8269 (amd64_windows_segment_register_p): Likewise.
8270
440cf44e
LM
82712020-03-04 Luis Machado <luis.machado@linaro.org>
8272
8273 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8274 in "info registers" for AArch64/ARM.
8275
8276 The change caused "info registers" to not print GPR's.
8277
8278 gdb/ChangeLog:
8279
8280 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8281
8282 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8283 when reg->group is empty and reggroup is not.
8284
1009d92f
TT
82852020-03-03 Tom Tromey <tromey@adacore.com>
8286
8287 * dwarf2/frame.c (struct dwarf2_frame_cache)
8288 <checked_tailcall_bottom, entry_cfa_sp_offset,
8289 entry_cfa_sp_offset_p>: Remove members.
8290 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8291 (dwarf2_frame_prev_register): Don't call
8292 dwarf2_tailcall_sniffer_first.
8293 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8294 * frame-unwind.c (add_unwinder): New fuction.
8295 (frame_unwind_init): Use it. Add tailcall unwinder.
8296
5e5d66b6
AB
82972020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8298 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8299
8300 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8301 value should be printed as true.
8302
584cf46d
HD
83032020-03-03 Hannes Domani <ssbssa@yahoo.de>
8304
8305 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8306 (windows_init_abi): Set and use windows_so_ops.
8307
7b973adc
SDJ
83082020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8309
8310 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8311 when verifying if dealing with a convenience variable.
8312
bb7b70ab
LM
83132020-03-03 Luis Machado <luis.machado@linaro.org>
8314
8315 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8316
9822cb57
SM
83172020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8318
8319 * infrun.c (gdbarch_supports_displaced_stepping): New.
8320 (use_displaced_stepping): Break up conditions in smaller pieces.
8321 Use gdbarch_supports_displaced_stepping.
8322 (displaced_step_prepare_throw): Use
8323 gdbarch_supports_displaced_stepping.
8324
63e163f2
AB
83252020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8326
8327 * NEWS: Mention new behaviour of the history filename.
8328 * top.c (write_history_p): Add comment.
8329 (show_write_history_p): Add header comment, give a different
8330 message when history writing is on, but the history filename is
8331 empty.
8332 (history_filename): Add comment.
8333 (history_filename_empty): New function.
8334 (show_history_filename): Add header comment, give a different
8335 message when the filename is empty.
8336 (init_history): Compare history_filename against nullptr, and only
8337 read history if the filename is not empty.
8338 (set_history_filename): Add header comment, and only make
8339 non-empty filenames absolute.
8340 (init_main): Make the filename argument to 'set history filename'
8341 optional.
8342
81b86b97
CB
83432020-03-02 Christian Biesinger <cbiesinger@google.com>
8344
8345 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8346 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8347 (fetch_fp_register): Update.
8348 (fetch_fp_regs): Update.
8349 (store_fp_register): Update.
8350 (store_fp_regs): Update.
8351 (arm_netbsd_nat_target::read_description): New function.
8352 (fetch_elfcore_registers): Update.
8353
24ed6739
AB
83542020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8355
8356 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8357 general_thread if the stop reply is missing a thread-id.
8358 (remote_target::process_stop_reply): Use the first non-exited
8359 thread if the target didn't pass a thread-id.
8360 * infrun.c (do_target_wait): Move call to
8361 switch_to_inferior_no_thread to ....
8362 (do_target_wait_1): ... here.
8363
a84bb2a0
JT
83642020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8365
8366 * debuginfod-support.c: Include defs.h first.
8367
658dadf0
TV
83682020-02-28 Tom de Vries <tdevries@suse.de>
8369
8370 * symfile.c (set_initial_language): Use default language for lookup.
8371
4ebe4877
SM
83722020-02-28 Simon Marchi <simon.marchi@efficios.com>
8373
8374 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8375 reader variable, pass `this` to read_cutu_die_from_dwo.
8376
e5da1139
AM
83772020-02-27 Aaron Merey <amerey@redhat.com>
8378
8379 * source.c (open_source_file): Check for nullptr when computing
8380 srcpath.
8381
317f7127
TT
83822020-02-27 Tom Tromey <tromey@adacore.com>
8383
8384 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8385 member.
8386 (dwarf2_add_field): Don't update nfields.
8387 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8388
3104d9ee
AB
83892020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8390
8391 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8392 abs.
8393
b83470bf
TT
83942020-02-26 Tom Tromey <tom@tromey.com>
8395
8396 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8397 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8398 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8399 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8400 per_cu_data.
8401
edfe0a0c
TT
84022020-02-26 Tom Tromey <tom@tromey.com>
8403
8404 * dwarf2/index-write.c (psym_index_map): Change type.
8405 (add_address_entry_worker, write_one_signatured_type)
8406 (recursively_count_psymbols, recursively_write_psymbols)
8407 (class debug_names, psyms_seen_size, write_gdbindex)
8408 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8409
0d79cdc4
AM
84102020-02-26 Aaron Merey <amerey@redhat.com>
8411
8412 * Makefile.in: Handle optional debuginfod support.
8413 * NEWS: Update.
8414 * README: Add --with-debuginfod summary.
8415 * config.in: Regenerate.
8416 * configure: Regenerate.
8417 * configure.ac: Handle optional debuginfod support.
8418 * debuginfod-support.c: debuginfod helper functions.
8419 * debuginfod-support.h: Ditto.
8420 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8421 summary.
8422 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8423 when a dwz file cannot be found.
8424 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8425 debuginfo file cannot be found.
8426 * source.c (open_source_file): Query debuginfod servers when a
8427 source file cannot be found.
8428 * top.c (print_gdb_configuration): Include
8429 --{with,without}-debuginfod in the output.
8430
b65ce565
JG
84312020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8432
8433 * thread.c (thr_try_catch_cmd): Print thread name.
8434
d4c9a4f8
SM
84352020-02-26 Simon Marchi <simon.marchi@efficios.com>
8436
8437 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8438 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8439 dwarf2_fetch_die_type_sect_off): Move to...
8440 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8441 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8442 dwarf2_fetch_die_type_sect_off): ... here.
8443 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8444 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8445 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8446
0dce4280
TV
84472020-02-26 Tom de Vries <tdevries@suse.de>
8448
8449 PR gdb/25603
8450 * symfile.c (set_initial_language): Exit-early if
8451 language_mode == language_mode_manual.
8452
450a1bfc
SM
84532020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8454
8455 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8456 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8457 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8458
9e80cfa1
AB
84592020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8460
8461 * gdbtypes.c (create_array_type_with_stride): Handle negative
8462 array strides.
8463 * valarith.c (value_subscripted_rvalue): Likewise.
8464
09624f1f
LM
84652020-02-25 Luis Machado <luis.machado@linaro.org>
8466
8467 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8468
8cb5117c
SM
84692020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8470
8471 * loc.h (dwarf2_get_die_type): Move to...
8472 * read.h (dwarf2_get_die_type): ... here.
8473 * read.c (dwarf2_get_die_type): Move doc to header.
8474
c325c44e
JB
84752020-02-25 Joel Brobecker <brobecker@adacore.com>
8476
8477 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8478 'gnulib/Makefile.in' to the list.
8479
4ac93832
TT
84802020-02-24 Tom Tromey <tom@tromey.com>
8481
8482 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8483 Remove.
8484 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8485 XOBNEWVEC.
8486
197400e8
TT
84872020-02-24 Tom Tromey <tom@tromey.com>
8488
8489 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8490 New method.
8491 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8492 (dw2_do_instantiate_symtab, dw2_get_file_names)
8493 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8494
76935768
TT
84952020-02-24 Tom Tromey <tom@tromey.com>
8496
8497 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8498 make_scoped_restore.
8499 (dwarf2_psymtab::read_symtab): Don't clear
8500 reading_partial_symbols.
8501
a88ef40d
TV
85022020-02-24 Tom de Vries <tdevries@suse.de>
8503
8504 PR gdb/25592
8505 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8506
c9af6521
TV
85072020-02-24 Tom de Vries <tdevries@suse.de>
8508
8509 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8510 commands layout next/prev/regs.
8511
5707a07a
TT
85122020-02-22 Tom Tromey <tom@tromey.com>
8513
8514 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8515 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8516
3b0fb49e
TT
85172020-02-22 Tom Tromey <tom@tromey.com>
8518
8519 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8520
283be8bf
TT
85212020-02-22 Tom Tromey <tom@tromey.com>
8522
8523 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8524 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8525 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8526 * tui/tui.c (_initialize_tui): Add usage text.
8527
ca793b96
TT
85282020-02-22 Tom Tromey <tom@tromey.com>
8529
8530 * tui/tui-win.c (tui_set_focus_command)
8531 (tui_set_win_height_command): Use error_no_arg.
8532 (_initialize_tui_win): Update help text.
8533 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8534
432b5c40
TT
85352020-02-22 Tom Tromey <tom@tromey.com>
8536
8537 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8538 * tui/tui-disasm.h (struct tui_disasm_window)
8539 <display_start_addr>: Declare.
8540 * tui/tui-source.h (struct tui_source_window)
8541 <display_start_addr>: Declare.
8542 * tui/tui-winsource.h (struct tui_source_window_base)
8543 <show_source_line, display_start_addr>: New methods.
8544 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8545 Rename and move to protected section.
8546 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8547 (tui_source_window_base::do_erase_source_content): Update.
8548 (tui_source_window_base::show_source_line): Now a method.
8549 (tui_source_window_base::show_source_content)
8550 (tui_source_window_base::tui_source_window_base)
8551 (tui_source_window_base::rerender)
8552 (tui_source_window_base::refill)
8553 (tui_source_window_base::do_scroll_horizontal)
8554 (tui_source_window_base::set_is_exec_point_at)
8555 (tui_source_window_base::update_breakpoint_info)
8556 (tui_source_window_base::update_exec_info): Update.
8557 * tui/tui-source.c (tui_source_window::set_contents)
8558 (tui_source_window::showing_source_p)
8559 (tui_source_window::do_scroll_vertical)
8560 (tui_source_window::location_matches_p)
8561 (tui_source_window::line_is_displayed): Update.
8562 (tui_source_window::display_start_addr): New method.
8563 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8564 (tui_disasm_window::do_scroll_vertical)
8565 (tui_disasm_window::location_matches_p): Update.
8566 (tui_disasm_window::display_start_addr): New method.
8567
01b1af32
TT
85682020-02-22 Tom Tromey <tom@tromey.com>
8569
8570 * NEWS: Add entry for gdb.register_window_type.
8571 * tui/tui-layout.h (window_factory): New typedef.
8572 (tui_register_window): Declare.
8573 * tui/tui-layout.c (saved_tui_windows): New global.
8574 (tui_apply_current_layout): Use it.
8575 (tui_register_window): New function.
8576 * python/python.c (do_start_initialization): Call
8577 gdbpy_initialize_tui.
8578 (python_GdbMethods): Add "register_window_type" function.
8579 * python/python-internal.h (gdbpy_register_tui_window)
8580 (gdbpy_initialize_tui): Declare.
8581 * python/py-tui.c: New file.
8582 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8583
fc96d20b
TT
85842020-02-22 Tom Tromey <tom@tromey.com>
8585
8586 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8587
935c78c0
TT
85882020-02-22 Tom Tromey <tom@tromey.com>
8589
8590 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8591 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8592 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8593 (tui_set_win_focus_to): Move from tui-win.c.
8594
0240c8f1
TT
85952020-02-22 Tom Tromey <tom@tromey.com>
8596
8597 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8598 functions.
8599 (known_window_types): New global.
8600 (tui_get_window_by_name): Reimplement.
8601 (initialize_known_windows): New function.
8602 (validate_window_name): Rewrite.
8603 (_initialize_tui_layout): Call initialize_known_windows.
8604
fdb01f0c
TT
86052020-02-22 Tom Tromey <tom@tromey.com>
8606
8607 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8608 Remove constants.
8609 * tui/tui-winsource.h (struct tui_source_window_base)
8610 <tui_source_window_base>: Remove parameter.
8611 * tui/tui-winsource.c
8612 (tui_source_window_base::tui_source_window_base): Remove
8613 parameter.
8614 (tui_source_window_base::refill): Update.
8615 * tui/tui-stack.h (struct tui_locator_window)
8616 <tui_locator_window>: Update.
8617 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8618 Default the constructor.
8619 * tui/tui-regs.h (struct tui_data_item_window)
8620 <tui_data_item_window>: Default the constructor.
8621 (struct tui_data_window) <tui_data_window>: Likewise.
8622 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8623 Default the constructor.
8624 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8625 Default the constructor.
8626 <type>: Remove.
8627 (struct tui_win_info) <tui_win_info>: Default the constructor.
8628 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8629 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8630 Default the constructor.
8631
865a5aec
TT
86322020-02-22 Tom Tromey <tom@tromey.com>
8633
8634 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8635 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8636 * tui/tui-win.c (tui_resize_all): Don't call
8637 tui_delete_invisible_windows.
8638 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8639 done.
8640 (tui_set_layout): Update.
8641 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8642 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8643 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8644
e098d18c
TT
86452020-02-22 Tom Tromey <tom@tromey.com>
8646
8647 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8648 correctly.
8649
eb9c8874
TT
86502020-02-22 Tom Tromey <tom@tromey.com>
8651
8652 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8653
7eed1a8e
TT
86542020-02-22 Tom Tromey <tom@tromey.com>
8655
8656 * tui/tui-winsource.h (struct tui_source_window_iterator)
8657 <inner_iterator>: New etytypedef.
8658 <tui_source_window_iterator>: Take "end" parameter.
8659 <tui_source_window_iterator>: Take iterator.
8660 <operator*, advance>: Update.
8661 <m_iter>: Change type.
8662 <m_end>: New field.
8663 (struct tui_source_windows) <begin, end>: Update.
8664 * tui/tui-layout.c (tui_windows): New global.
8665 (tui_apply_current_layout): Clear tui_windows.
8666 (tui_layout_window::apply): Update tui_windows.
8667 * tui/tui-data.h (tui_windows): Declare.
8668 (all_tui_windows): Now inline function.
8669 (class tui_window_iterator, struct all_tui_windows): Remove.
8670
7c043ba6
TT
86712020-02-22 Tom Tromey <tom@tromey.com>
8672
8673 PR tui/17850:
8674 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8675 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8676 "height" argument.
8677 (class tui_layout_window) <get_sizes>: Likewise.
8678 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8679 argument.
8680 <get_sizes>: Add "height" argument.
8681 <m_vertical>: New field.
8682 * tui/tui-layout.c (tui_layout_split::clone): Update.
8683 (tui_layout_split::get_sizes): Add "height" argument.
8684 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8685 (tui_new_layout_command): Parse "-horizontal".
8686 (_initialize_tui_layout): Update help string.
8687 (tui_layout_split::specification): Add "-horizontal" when needed.
8688 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8689 argument.
8690 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8691 New methods.
8692
6bc56648
TT
86932020-02-22 Tom Tromey <tom@tromey.com>
8694
8695 * tui/tui-layout.h (enum tui_adjust_result): New.
8696 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8697 (class tui_layout_window) <adjust_size>: Return
8698 tui_adjust_result. Rewrite.
8699 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8700 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8701
c22fef7e
TT
87022020-02-22 Tom Tromey <tom@tromey.com>
8703
8704 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8705 parameter and return types.
8706 (class tui_layout_base) <specification>: Add "depth".
8707 (class tui_layout_window) <specification>: Add "depth".
8708 (class tui_layout_split) <specification>: Add "depth".
8709 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8710 and return types.
8711 (tui_new_layout_command): Parse sub-layouts.
8712 (_initialize_tui_layout): Update help string.
8713 (tui_layout_window::specification): Add "depth".
8714 (add_layout_command): Update.
8715
ee325b61
TT
87162020-02-22 Tom Tromey <tom@tromey.com>
8717
8718 * NEWS: Add "tui new-layout" item.
8719 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8720 Add new-layout command to help text.
8721 (validate_window_name): New function.
8722 (tui_new_layout_command): New function.
8723 (_initialize_tui_layout): Register "new-layout".
8724 (tui_layout_window::specification): New method.
8725 (tui_layout_window::specification): New method.
8726 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8727 method.
8728 (class tui_layout_window) <specification>: New method.
8729 (class tui_layout_split) <specification>: New method.
8730
416eb92d
TT
87312020-02-22 Tom Tromey <tom@tromey.com>
8732
8733 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8734 * tui/tui-win.c (window_name_completer): Update comment.
8735 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8736 Declare method.
8737 (class tui_layout_window) <replace_window>: Likewise.
8738 (class tui_layout_split) <replace_window>: Likewise.
8739 (tui_set_layout): Don't declare.
8740 (tui_set_initial_layout): Declare function.
8741 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8742 (asm_regs_layout): New globals.
8743 (tui_current_layout, show_layout): Remove.
8744 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8745 (find_layout, tui_apply_layout): New function.
8746 (layout_completer): Remove.
8747 (tui_next_layout): Reimplement.
8748 (tui_next_layout_command): New function.
8749 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8750 (tui_regs_layout): Reimplement.
8751 (tui_regs_layout_command): New function.
8752 (extract_display_start_addr): Rewrite.
8753 (next_layout, prev_layout): Remove.
8754 (tui_layout_window::replace_window): New method.
8755 (tui_layout_split::replace_window): New method.
8756 (destroy_layout): New function.
8757 (layout_list): New global.
8758 (add_layout_command): New function.
8759 (initialize_layouts): Update.
8760 (tui_layout_command): New function.
8761 (_initialize_tui_layout): Install "layout" commands.
8762 * tui/tui-data.h (enum tui_layout_type): Remove.
8763 (tui_current_layout): Don't declare.
8764
0dbc2fc7
TT
87652020-02-22 Tom Tromey <tom@tromey.com>
8766
8767 * tui/tui-regs.c (tui_reg_layout): Remove.
8768 (tui_reg_command): Use tui_regs_layout.
8769 * tui/tui-layout.h (tui_reg_command): Declare.
8770 * tui/tui-layout.c (tui_reg_command): New function.
8771
5afe342e
TT
87722020-02-22 Tom Tromey <tom@tromey.com>
8773
8774 * tui/tui.c (tui_rl_delete_other_windows): Call
8775 tui_remove_some_windows.
8776 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8777 Declare method.
8778 (class tui_layout_window) <remove_windows>: New method.
8779 (class tui_layout_split) <remove_windows>: Declare.
8780 (tui_remove_some_windows): Declare.
8781 * tui/tui-layout.c (tui_remove_some_windows): New function.
8782 (tui_layout_split::remove_windows): New method.
8783
427326a8
TT
87842020-02-22 Tom Tromey <tom@tromey.com>
8785
8786 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8787 * tui/tui-layout.h (tui_next_layout): Declare.
8788 * tui/tui-layout.c (tui_next_layout): New function.
8789
3fe12b6d
TT
87902020-02-22 Tom Tromey <tom@tromey.com>
8791
8792 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8793 correct coordinates.
8794
59b8b5d2
TT
87952020-02-22 Tom Tromey <tom@tromey.com>
8796
8797 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8798 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8799 DATA_WIN case.
8800
2a3d458b
TT
88012020-02-22 Tom Tromey <tom@tromey.com>
8802
8803 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8804 TUI_DISASM_WIN, not tui_win_list.
8805
3f0cbb04
TT
88062020-02-22 Tom Tromey <tom@tromey.com>
8807
8808 * valprint.c (generic_val_print_enum_1)
8809 (val_print_type_code_flags): Style member names.
8810 * rust-lang.c (val_print_struct, rust_print_enum)
8811 (rust_print_struct_def, rust_internal_print_type): Style member
8812 names.
8813 * p-valprint.c (pascal_object_print_value_fields): Style member
8814 names. Only call fprintf_symbol_filtered for static members.
8815 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8816 * f-valprint.c (f_val_print): Style member names.
8817 * f-typeprint.c (f_type_print_base): Style member names.
8818 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8819 call fprintf_symbol_filtered for static members.
8820 (cp_print_class_member): Style member names.
8821 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8822 member names.
8823 * ada-valprint.c (ada_print_scalar): Style enum names.
8824 (ada_val_print_enum): Likewise.
8825 * ada-typeprint.c (print_enum_type): Style enum names.
8826
d4d947ae
TT
88272020-02-21 Tom Tromey <tom@tromey.com>
8828
8829 * psympriv.h (struct partial_symtab): Update comment.
8830
e94e944b
TT
88312020-02-21 Tom Tromey <tromey@adacore.com>
8832
8833 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8834 type is CORE_ADDR.
8835
1eb73179
TV
88362020-02-21 Tom de Vries <tdevries@suse.de>
8837
8838 PR gdb/25534
8839 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8840 if dependencies[i]->user != NULL.
8841
4f180d53
AT
88422020-02-21 Ali Tamur <tamur@google.com>
8843
8844 * dwarf2/read.c (dwarf2_name): Add null check.
8845
22b6cd70
TT
88462020-02-20 Tom Tromey <tom@tromey.com>
8847
8848 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8849 ">=", in binary search.
8850 (dwarf2_find_containing_comp_unit): New overload.
8851 (run_test): New self-test.
8852 (_initialize_dwarf2_read): Register new test.
8853
bd0cf5a6
NC
88542020-02-20 Nelson Chu <nelson.chu@sifive.com>
8855
8856 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8857 * riscv-tdep.h: Likewise.
8858 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8859 rv32-only CSR.
8860 * features/riscv/64bit-csr.xml: Regenerated.
8861
3f702acd
SDJ
88622020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8863 Tom Tromey <tom@tromey.com>
8864
8865 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8866 of 'fputc_unfiltered'.
8867 (putchar_unfiltered): Call 'fputc_unfiltered'.
8868 (fputc_unfiltered): Call 'fputs_unfiltered'.
8869
d13c7322
AB
88702020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8871
8872 * config.in: Regenerate.
8873 * configure: Regenerate.
8874 * configure.ac: Add --with-python-libdir option.
8875 * main.c: Use WITH_PYTHON_LIBDIR.
8876
869d8950
TT
88772020-02-19 Tom Tromey <tom@tromey.com>
8878
8879 * symtab.c (general_symbol_info::compute_and_set_names): Use
8880 obstack_strndup. Simplify call to symbol_set_demangled_name.
8881
298e9637
SM
88822020-02-19 Simon Marchi <simon.marchi@efficios.com>
8883
8884 * dwarf2/read.c (allocate_signatured_type_table,
8885 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8886 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8887 Remove objfile parameter, update all callers.
8888
08410482
DE
88892020-02-19 Doug Evans <dje@google.com>
8890
8891 PR rust/25535
8892 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8893 rust_enum_variant calculation.
8894
dfdeeca1
TT
88952020-02-19 Tom Tromey <tromey@adacore.com>
8896
8897 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8898
2ef5453b
TT
88992020-02-19 Tom Tromey <tromey@adacore.com>
8900
8901 * ada-lang.c (cache_symbol): Use obstack_strdup.
8902
9f1528a1
AB
89032020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8904
8905 * configure: Regenerate.
8906
d3c22fa8
TT
89072020-02-19 Tom Tromey <tromey@adacore.com>
8908
8909 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8910 NULL check.
8911
bf84f706
MR
89122020-02-19 Maciej W. Rozycki <macro@wdc.com>
8913
8914 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8915
d1c9b20f
AB
89162020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8917
8918 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8919 if GDBSERVER is not defined.
8920 (riscv_tdesc_cache): Likewise, also store const target_desc.
8921 (STATIC_IN_GDB): Define.
8922 (riscv_create_target_description): Update declaration with
8923 STATIC_IN_GDB.
8924 (riscv_lookup_target_description): New function, only define if
8925 GDBSERVER is not defined.
8926 * arch/riscv.h (riscv_create_target_description): Declare only
8927 when GDBSERVER is defined.
8928 (riscv_lookup_target_description): New declaration when GDBSERVER
8929 is not defined.
8930 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8931 (riscv_linux_read_features): ...this, and return
8932 riscv_gdbarch_features instead of target_desc.
8933 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8934 (riscv_linux_read_description): Rename to...
8935 (riscv_linux_read_features): ...this.
8936 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8937 Update to use riscv_gdbarch_features and
8938 riscv_lookup_target_description.
8939 * riscv-tdep.c (riscv_find_default_target_description): Use
8940 riscv_lookup_target_description instead of
8941 riscv_create_target_description.
8942
373d7ac0
SM
89432020-02-18 Simon Marchi <simon.marchi@efficios.com>
8944
8945 * valprint.c (generic_val_print_enum_1): When printing a flag
8946 enum with value 0 and there is no enumerator with value 0, print
8947 just "0" instead of "(unknown: 0x0)".
8948
b29a2df0
SM
89492020-02-18 Simon Marchi <simon.marchi@efficios.com>
8950
8951 * valprint.c (generic_val_print_enum_1): Print unknown part of
8952 flag enum in hex.
8953
6740f0cc
SM
89542020-02-18 Simon Marchi <simon.marchi@efficios.com>
8955
8956 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8957 flag enums to contain duplicate enumerators.
8958 * valprint.c (generic_val_print_enum_1): Update comment.
8959
edd45eb0
SM
89602020-02-18 Simon Marchi <simon.marchi@efficios.com>
8961
8962 * dwarf2/read.c: Include "count-one-bits.h".
8963 (update_enumeration_type_from_children): If an enumerator has
8964 multiple bits set, don't treat the enumeration as a "flag enum".
8965 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8966 of flag enums have 0 or 1 bit set.
8967
6d0cf446
BE
89682020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8969
8970 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8971 conversion.
8972 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8973 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8974 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8975 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8976 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8977
7001c1b7
SM
89782020-02-18 Simon Marchi <simon.marchi@efficios.com>
8979
8980 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8981
fdb61c6c
SM
89822020-02-14 Simon Marchi <simon.marchi@efficios.com>
8983
8984 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8985 displaced_step_closure_up.
8986 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8987 (struct displaced_step_closure_up):
8988 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8989 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8990 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8991 Likewise.
8992 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8993 * gdbarch.c, gdbarch.h: Re-generate.
8994 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8995 displaced_step_closure_up.
8996 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8997 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8998 * infrun.h (displaced_step_closure_up): New type alias.
8999 (struct displaced_step_inferior_state) <step_closure>: Change
9000 type to displaced_step_closure_up.
9001 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9002 displaced_step_closure_up.
9003 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9004
a4a38eb4
TT
90052020-02-14 Tom Tromey <tom@tromey.com>
9006
9007 * minidebug.c (gnu_debug_key): New global.
9008 (find_separate_debug_file_in_section): Use it.
9009
e8217e61
SM
90102020-02-14 Simon Marchi <simon.marchi@efficios.com>
9011
9012 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9013 std::unique_ptr.
9014 * gdbarch.c: Re-generate.
9015 * gdbarch.h: Re-generate.
9016 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9017 change.
9018 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9019 type to std::unique_ptr.
9020 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9021 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9022 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9023 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9024 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9025 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9026 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9027 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9028 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9029
d8d83535
SM
90302020-02-14 Simon Marchi <simon.marchi@efficios.com>
9031
9032 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9033 std::unique_ptr.
9034 (displaced_step_clear): Rename to...
9035 (displaced_step_reset): ... this. Just call displaced->reset ().
9036 (displaced_step_clear_cleanup): Rename to...
9037 (displaced_step_reset_cleanup): ... this.
9038 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9039 (displaced_step_fixup): Likewise.
9040 (resume_1): Likewise.
9041 (handle_inferior_event): Restore child's memory before calling
9042 displaced_step_fixup on the parent.
9043 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9044 to std::unique_ptr.
9045 <step_closure>: Change type to std::unique_ptr.
9046
5f661e03
SM
90472020-02-14 Simon Marchi <simon.marchi@efficios.com>
9048
9049 * arm-tdep.c: Include count-one-bits.h.
9050 (cleanup_block_store_pc): Use count_one_bits.
9051 (cleanup_block_load_pc): Use count_one_bits.
9052 (arm_copy_block_xfer): Use count_one_bits.
9053 (thumb2_copy_block_xfer): Use count_one_bits.
9054 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9055 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9056 (thumb_get_next_pcs_raw): Use count_one_bits.
9057 (arm_get_next_pcs_raw): Use count_one_bits_l.
9058 * arch/arm.c (bitcount): Remove.
9059 * arch/arm.h (bitcount): Remove.
9060
8084e579
TT
90612020-02-14 Tom Tromey <tromey@adacore.com>
9062
9063 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9064 Update.
9065 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9066 * dwarf2/loc.c (call_site_find_chain_1): Return
9067 unique_xmalloc_ptr.
9068 (call_site_find_chain): Likewise.
9069
258bf0ee
RB
90702020-02-14 Richard Biener <rguenther@suse.de>
9071
9072 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9073 on expression with division operators.
9074
f98a8458
AKS
90752020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9076
9077 * MAINTAINERS (Write After Approval): Adding myself.
9078
d1437c0e
TT
90792020-02-12 Tom Tromey <tom@tromey.com>
9080
9081 * event-loop.c (event_data, gdb_event, event_handler_func):
9082 Remove.
9083
3d4560f7
TT
90842020-02-12 Tom Tromey <tom@tromey.com>
9085
9086 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9087 (dwarf2_frame_objfile_data): Add comment.
9088 (find_comp_unit, set_comp_unit): New functions.
9089 (dwarf2_frame_find_fde): Use find_comp_unit.
9090 (dwarf2_build_frame_info): Use set_comp_unit.
9091
21982304
TT
90922020-02-12 Tom Tromey <tom@tromey.com>
9093
9094 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9095 (comp_unit): Don't initialize objfile.
9096 (execute_cfa_program): Add text_offset parameter.
9097 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9098 (dwarf2_frame_cache): Update.
9099 (dwarf2_build_frame_info): Don't set "objfile" member.
9100
4debb237
TT
91012020-02-12 Tom Tromey <tom@tromey.com>
9102
9103 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9104 (decode_frame_entry): Likewise.
9105 (dwarf2_build_frame_info): Update.
9106
0d404d44
TT
91072020-02-12 Tom Tromey <tom@tromey.com>
9108
9109 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9110 (decode_frame_entry_1): Use the comp_unit obstack.
9111
a7a3ae5c
TT
91122020-02-12 Tom Tromey <tom@tromey.com>
9113
9114 * dwarf2/frame.c (struct comp_unit): Add initializers and
9115 constructor.
9116 (dwarf2_frame_objfile_data): Store a comp_unit.
9117 (dwarf2_frame_find_fde): Update.
9118 (dwarf2_build_frame_info): Use "new".
9119
a9d65418
TT
91202020-02-12 Tom Tromey <tom@tromey.com>
9121
9122 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9123 (dwarf2_fde_table): Typedef for std::vector.
9124 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9125 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9126 (decode_frame_entry): Update.
9127 (dwarf2_build_frame_info): Use "new".
9128
7559c217
CB
91292020-02-12 Christian Biesinger <cbiesinger@google.com>
9130
9131 * arm-tdep.c (arm_gdbarch_init): Update.
9132 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9133 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9134 have_neon, is_m>: Change to bool.
9135
aeefc73c
CB
91362020-02-12 Christian Biesinger <cbiesinger@google.com>
9137
9138 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9139
d27b8e5f
TT
91402020-02-12 Tom Tromey <tom@tromey.com>
9141
9142 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9143
cd5900f3
HD
91442020-02-12 Hannes Domani <ssbssa@yahoo.de>
9145
9146 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9147 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9148
f056b22b
TT
91492020-02-11 Tom Tromey <tom@tromey.com>
9150
9151 * psymtab.h: Update comment.
9152
f92ff6b5
TT
91532020-02-11 Tom Tromey <tom@tromey.com>
9154
9155 * gdb_obstack.h (struct auto_obstack): Use
9156 DISABLE_COPY_AND_ASSIGN.
9157
3fd6912b
TT
91582020-02-11 Tom Tromey <tom@tromey.com>
9159
9160 * dwarf2/frame.h (struct objfile): Don't forward declare.
9161
69ed9b74
CB
91622020-02-11 Christian Biesinger <cbiesinger@google.com>
9163
9164 * cris-tdep.c (cris_supply_gregset): Change signature to match
9165 what struct regset expects.
9166 (cris_regset): New struct.
9167 (fetch_core_registers): Remove.
9168 (cris_iterate_over_regset_sections): New function.
9169 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9170 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9171
bda874f6
CB
91722020-02-11 Christian Biesinger <cbiesinger@google.com>
9173
9174 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9175 registers.
9176
754e1564
CB
91772020-02-11 Christian Biesinger <cbiesinger@google.com>
9178
9179 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9180
8ddd8e0e
SM
91812020-02-11 Simon Marchi <simon.marchi@efficios.com>
9182
9183 * configure: Re-generate.
9184
898e7f60
SM
91852020-02-11 Simon Marchi <simon.marchi@efficios.com>
9186
9187 * configure: Re-generate.
9188
58df732b
SM
91892020-02-11 Simon Marchi <simon.marchi@efficios.com>
9190
9191 * acinclude: Update warning.m4 path.
9192 * warning.m4: Move to gdbsupport.
9193
da5bd37e
TT
91942020-02-11 Tom Tromey <tromey@adacore.com>
9195
9196 * remote.c (remote_console_output): Update.
9197 * printcmd.c (printf_command): Update.
9198 * event-loop.c (gdb_wait_for_event): Update.
9199 * linux-nat.c (sigchld_handler): Update.
9200 * remote-sim.c (gdb_os_write_stdout): Update.
9201 (gdb_os_flush_stdout): Update.
9202 (gdb_os_flush_stderr): Update.
9203 (gdb_os_write_stderr): Update.
9204 * exceptions.c (print_exception): Update.
9205 * remote-fileio.c (remote_fileio_func_read): Update.
9206 (remote_fileio_func_write): Update.
9207 * tui/tui.c (tui_enable): Update.
9208 * tui/tui-interp.c (tui_interp::init): Update.
9209 * utils.c (init_page_info): Update.
9210 (putchar_unfiltered, fputc_unfiltered): Update.
9211 (gdb_flush): Update.
9212 (emit_style_escape): Update.
9213 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9214 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9215 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9216 (stderr_file::write): Update.
9217 (stderr_file::puts): Update.
9218 * ui-file.h (ui_file_isatty, ui_file_write)
9219 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9220 (ui_file_puts): Don't declare.
9221
85f0dd3c
TV
92222020-02-10 Tom de Vries <tdevries@suse.de>
9223
9224 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9225 sentinel to char *.
9226
2e927613
TV
92272020-02-09 Tom de Vries <tdevries@suse.de>
9228
9229 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9230 filename if it matches "<artificial>".
9231
6bafc845
HD
92322020-02-09 Hannes Domani <ssbssa@yahoo.de>
9233
9234 * windows-tdep.c (struct enum_value_name): New struct.
9235 (create_enum): New function.
9236 (windows_get_siginfo_type): Create and use enum types.
9237
7928d571
HD
92382020-02-09 Hannes Domani <ssbssa@yahoo.de>
9239
9240 * NEWS: Mention $_siginfo support for Windows.
9241 * windows-nat.c (handle_exception): Set siginfo_er.
9242 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9243 (windows_xfer_siginfo): New function.
9244 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9245 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9246 (init_windows_gdbarch_data): New function.
9247 (get_windows_gdbarch_data): New function.
9248 (windows_get_siginfo_type): New function.
9249 (windows_init_abi): Register windows_get_siginfo_type.
9250 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9251
6751ebae
TT
92522020-02-08 Tom Tromey <tom@tromey.com>
9253
9254 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9255 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9256 <keep>: Declare method.
9257 <m_keep>: Remove member.
9258 <~cutu_reader>: Remove.
9259 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9260 (cutu_reader::cutu_reader): Update.
9261 (cutu_reader::keep): Rename from ~cutu_reader.
9262 (process_psymtab_comp_unit, build_type_psymtabs_1)
9263 (process_skeletonless_type_unit, load_partial_comp_unit)
9264 (load_full_comp_unit, dwarf2_read_addr_index)
9265 (read_signatured_type): Update.
9266
135f5437
TT
92672020-02-08 Tom Tromey <tom@tromey.com>
9268
9269 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9270 "want_partial_unit" parameter.
9271 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9272 Inline check for DW_TAG_partial_unit.
9273 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9274
9f66ff1c
TT
92752020-02-08 Tom Tromey <tom@tromey.com>
9276
9277 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9278 read.c.
9279 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9280 read.c.
9281
c8a7a66f
TT
92822020-02-08 Tom Tromey <tom@tromey.com>
9283
9284 * dwarf2/read.c (read_address): Move to comp-unit.c.
9285 (dwarf2_rnglists_process, dwarf2_ranges_process)
9286 (read_attribute_value, dwarf_decode_lines_1)
9287 (var_decode_location, decode_locdesc): Update.
9288 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9289 read.c. Remove "cu" parameter.
9290 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9291 method.
9292
8266302d
TT
92932020-02-08 Tom Tromey <tom@tromey.com>
9294
9295 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9296 (read_indirect_line_string): Update.
9297 * dwarf2/comp-unit.c (read_offset): Remove.
9298 (read_comp_unit_head): Update.
9299 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9300 method.
9301 (read_offset): Don't declare.
9302
4057dfde
TT
93032020-02-08 Tom Tromey <tom@tromey.com>
9304
9305 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9306 * dwarf2/read.c (struct comp_unit_head): Move to
9307 dwarf2/comp-unit.h.
9308 (enum class rcuh_kind): Move to comp-unit.h.
9309 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9310 (read_comp_unit_head, error_check_comp_unit_head)
9311 (read_and_check_comp_unit_head): Move to comp-unit.c.
9312 (read_offset, dwarf_unit_type_name): Likewise.
9313 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9314 (cutu_reader::cutu_reader, read_call_site_scope)
9315 (find_partial_die, follow_die_offset): Update.
9316 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9317
24aa364d
TT
93182020-02-08 Tom Tromey <tom@tromey.com>
9319
9320 * dwarf2/read.c (read_offset_1): Move to leb.c.
9321 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9322 (dwarf_decode_macro_bytes): Update.
9323 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9324 * dwarf2/leb.h (read_offset): Declare.
9325
2c7d5afc
TT
93262020-02-08 Tom Tromey <tom@tromey.com>
9327
9328 * dwarf2/read.c (dwarf2_section_size): Remove.
9329 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9330 Update.
9331 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9332
4075cb26
TT
93332020-02-08 Tom Tromey <tom@tromey.com>
9334
9335 * dwarf2/read.c (read_initial_length): Move to leb.c.
9336 * dwarf2/leb.h (read_initial_length): Declare.
9337 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9338 handle_nonstd parameter.
9339 * dwarf2/frame.c (read_initial_length): Remove.
9340 (decode_frame_entry_1): Update.
9341
09ba997f
TT
93422020-02-08 Tom Tromey <tom@tromey.com>
9343
9344 * dwarf2/loc.c (dwarf2_find_location_expression)
9345 (dwarf_evaluate_loc_desc::get_tls_address)
9346 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9347 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9348 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9349 (dwarf2_compile_property_to_c)
9350 (dwarf2_loc_desc_get_symbol_read_needs)
9351 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9352 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9353 (loclist_describe_location, loclist_tracepoint_var_ref)
9354 (loclist_generate_c_location): Update.
9355 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9356 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9357 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9358 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9359 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9360 (dwarf2_per_cu_data::addr_size)
9361 (dwarf2_per_cu_data::ref_addr_size)
9362 (dwarf2_per_cu_data::text_offset)
9363 (dwarf2_per_cu_data::addr_type): Now methods.
9364 (per_cu_header_read_in): Make per_cu "const".
9365 (dwarf2_version): Remove.
9366 (dwarf2_per_cu_data::int_type): Now a method.
9367 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9368 (set_die_type, read_array_type, read_subrange_index_type)
9369 (read_tag_string_type, read_subrange_type): Update.
9370 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9371 offset_size, ref_addr_size, text_offset, addr_type, version,
9372 objfile, int_type, addr_sized_int_type>: Declare methods.
9373
96c738c0
TT
93742020-02-08 Tom Tromey <tom@tromey.com>
9375
9376 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9377 Move earlier.
9378
8fdd972c
TT
93792020-02-08 Tom Tromey <tom@tromey.com>
9380
9381 * dwarf2/read.h (dwarf_line_debug): Declare.
9382 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9383 * dwarf2/read.c: Move line_header code to new files.
9384 (dwarf_line_debug): No longer static.
9385 * dwarf2/line-header.c: New file.
9386 * dwarf2/line-header.h: New file.
9387
03075812
TT
93882020-02-08 Tom Tromey <tom@tromey.com>
9389
9390 * dwarf2/read.c (struct line_header) <file_full_name,
9391 file_file_name>: Return unique_xmalloc_ptr.
9392 (line_header::file_file_name): Update.
9393 (line_header::file_full_name): Update.
9394 (dw2_get_file_names_reader): Update.
9395 (macro_start_file): Update.
9396
bb822404
TT
93972020-02-08 Tom Tromey <tom@tromey.com>
9398
9399 * dwarf2/read.c (struct line_header) <file_full_name,
9400 file_file_name>: Declare methods.
9401 (dw2_get_file_names_reader): Update.
9402 (file_file_name): Now a method.
9403 (file_full_name): Likewise.
9404 (macro_start_file): Update.
9405
009b64fc
TT
94062020-02-08 Tom Tromey <tom@tromey.com>
9407
9408 * dwarf2/read.c (dwarf_always_disassemble)
9409 (show_dwarf_always_disassemble): Move to loc.c.
9410 (_initialize_dwarf2_read): Move "always-disassemble" registration
9411 to loc.c.
9412 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9413 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9414 static.
9415 (show_dwarf_always_disassemble): Move from read.c.
9416 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9417
5895093f
TT
94182020-02-08 Tom Tromey <tom@tromey.com>
9419
9420 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9421 (create_quick_file_names_table): Return htab_up.
9422 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9423 Update.
9424 * dwarf2/read.h (struct dwarf2_per_objfile)
9425 <quick_file_names_table>: Now htab_up.
9426
b3b32279
TT
94272020-02-08 Tom Tromey <tom@tromey.com>
9428
9429 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9430
1d33d811
TT
94312020-02-08 Tom Tromey <tom@tromey.com>
9432
9433 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9434 Rewrite.
9435 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9436 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9437 (abbrev_table::abbrev_table): No longer inline.
9438 (ABBREV_HASH_SIZE): Remove.
9439 (abbrev_table::m_abbrevs): Now an htab_up.
9440
86de1d91
TT
94412020-02-08 Tom Tromey <tom@tromey.com>
9442
9443 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9444 (cutu_reader): Update.
9445 (build_type_psymtabs_1): Update.
9446 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9447 (abbrev_table::alloc_abbrev): Update.
9448 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9449 (abbrev_table::read): New static method, renamed from
9450 abbrev_table_read_table.
9451 (abbrev_table::alloc_abbrev)
9452 (abbrev_table::add_abbrev): Now private.
9453 (abbrev_table::abbrev_table): Now private.
9454 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9455
0335378b
TT
94562020-02-08 Tom Tromey <tom@tromey.com>
9457
9458 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9459 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9460 htab_up.
9461
48b490f2
TT
94622020-02-08 Tom Tromey <tom@tromey.com>
9463
9464 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9465 htab_up.
9466 (lookup_dwo_unit_in_dwp): Update.
9467 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9468 on obstack.
9469
bc68fb19
TT
94702020-02-08 Tom Tromey <tom@tromey.com>
9471
9472 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9473 obstack.
9474
d15acc42
TT
94752020-02-08 Tom Tromey <tom@tromey.com>
9476
9477 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9478 line_header_hash.
9479 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9480 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9481 Change type to htab_up.
9482
eaa5fa8b
TT
94832020-02-08 Tom Tromey <tom@tromey.com>
9484
9485 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9486 htab_up. Don't allocate on obstack.
9487 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9488 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9489 Change type to htab_up.
9490
b0b6a987
TT
94912020-02-08 Tom Tromey <tom@tromey.com>
9492
9493 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9494 Change type to htab_up.
9495 * dwarf2/read.c (create_signatured_type_table_from_index)
9496 (create_signatured_type_table_from_debug_names)
9497 (create_all_type_units, add_type_unit)
9498 (lookup_dwo_signatured_type, lookup_signatured_type)
9499 (process_skeletonless_type_unit): Update.
9500 (create_debug_type_hash_table, create_debug_types_hash_table):
9501 Change type of types_htab.
9502 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9503 htab_up. Don't allocate on obstack.
9504 (create_cus_hash_table): Change type of cus_htab parameter.
9505 (struct dwo_file) <cus, tus>: Now htab_up.
9506 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9507 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9508 (queue_and_load_all_dwo_tus): Update.
9509 * dwarf2/index-write.c (write_gdbindex): Update.
9510 (write_debug_names): Update.
9511
39856def
TT
95122020-02-08 Tom Tromey <tom@tromey.com>
9513
9514 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9515 dwarf2/read.c. Remove "next" member. Add constructor ntad
9516 destructor.
9517 (struct dwarf2_per_objfile) <queue>: New member.
9518 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9519 dwarf2/read.h.
9520 (dwarf2_queue, dwarf2_queue_tail): Remove.
9521 (class dwarf2_queue_guard): Add parameter to constructor. Use
9522 DISABLE_COPY_AND_ASSIGN.
9523 <m_per_objfile>: New member.
9524 <~dwarf2_queue_guard>: Rewrite.
9525 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9526 Update.
9527 (~dwarf2_queue_item): New.
9528
3e225074
TT
95292020-02-08 Tom Tromey <tom@tromey.com>
9530
9531 * dwarf2/read.c (struct die_info) <has_children>: New member.
9532 (dw2_get_file_names_reader): Remove has_children.
9533 (dw2_get_file_names): Update.
9534 (read_cutu_die_from_dwo): Remove has_children.
9535 (cutu_reader::init_tu_and_read_dwo_dies)
9536 (cutu_reader::cutu_reader): Update.
9537 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9538 Remove has_children.
9539 (build_type_psymtabs_1, process_skeletonless_type_unit)
9540 (load_partial_comp_unit, load_full_comp_unit): Update.
9541 (create_dwo_cu_reader): Remove has_children.
9542 (create_cus_hash_table, read_die_and_children): Update.
9543 (read_full_die_1,read_full_die): Remove has_children.
9544 (read_signatured_type): Update.
9545 (class cutu_reader) <has_children>: Remove.
9546
82ca8957
TT
95472020-02-08 Tom Tromey <tom@tromey.com>
9548
9549 * dwarf2/expr.c: Rename from dwarf2expr.c.
9550 * dwarf2/expr.h: Rename from dwarf2expr.h.
9551 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9552 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9553 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9554 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9555 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9556 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9557 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9558 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9559 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9560 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9561 * dwarf2/loc.c: Rename from dwarf2loc.c.
9562 * dwarf2/loc.h: Rename from dwarf2loc.h.
9563 * dwarf2/read.c: Rename from dwarf2read.c.
9564 * dwarf2/read.h: Rename from dwarf2read.h.
9565 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9566 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9567 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9568 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9569 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9570 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9571 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9572 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9573 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9574 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9575 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9576 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9577 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9578 Update.
9579 * Makefile.in (COMMON_SFILES): Update.
9580 (HFILES_NO_SRCDIR): Update.
9581
9e35d499
TT
95822020-02-08 Tom Tromey <tom@tromey.com>
9583
9584 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9585 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9586
1eba2311
TT
95872020-02-08 Tom Tromey <tom@tromey.com>
9588
9589 * dwarf2read.h (struct die_info): Don't declare.
9590
e41c2da2
TT
95912020-02-08 Tom Tromey <tom@tromey.com>
9592
9593 * dwarf2read.h (die_info_ptr): Remove typedef.
9594
4fc6c0d5
TT
95952020-02-08 Tom Tromey <tom@tromey.com>
9596
9597 * dwarf2read.c (read_call_site_scope)
9598 (handle_data_member_location, dwarf2_add_member_fn)
9599 (mark_common_block_symbol_computed, read_common_block)
9600 (attr_to_dynamic_prop, partial_die_info::read)
9601 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9602 (dwarf2_symbol_mark_computed, set_die_type): Update.
9603 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9604 method.
9605 (attr_form_is_block): Don't declare.
9606 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9607
cd6c91b4
TT
96082020-02-08 Tom Tromey <tom@tromey.com>
9609
9610 * dwarf2read.c (dwarf2_find_base_address, )
9611 (read_call_site_scope, rust_containing_type)
9612 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9613 (handle_data_member_location, dwarf2_add_member_fn)
9614 (get_alignment, read_structure_type, process_structure_scope)
9615 (mark_common_block_symbol_computed, read_common_block)
9616 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9617 (partial_die_info::read, read_attribute_value, new_symbol)
9618 (lookup_die_type, dwarf2_get_ref_die_offset)
9619 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9620 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9621 (dwarf2_symbol_mark_computed): Update.
9622 * dwarf2/attribute.h (struct attribute) <value_as_address,
9623 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9624 methods.
9625 (value_as_address, attr_form_is_section_offset)
9626 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9627 * dwarf2/attribute.c (attribute::value_as_address)
9628 (attribute::form_is_section_offset, attribute::form_is_constant)
9629 (attribute::form_is_ref): Now methods.
9630
162dce55
TT
96312020-02-08 Tom Tromey <tom@tromey.com>
9632
9633 * dwarf2read.c (struct attribute, DW_STRING)
9634 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9635 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9636 (attr_form_is_block, attr_form_is_section_offset)
9637 (attr_form_is_constant, attr_form_is_ref): Move.
9638 * dwarf2/attribute.h: New file.
9639 * dwarf2/attribute.c: New file, from dwarf2read.c.
9640 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9641
3054dd54
TT
96422020-02-08 Tom Tromey <tom@tromey.com>
9643
9644 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9645 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9646 Move.
9647 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9648 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9649 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9650 abbrev.c.
9651 * dwarf2/abbrev.h: New file.
9652 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9653 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9654
96b79293
TT
96552020-02-08 Tom Tromey <tom@tromey.com>
9656
9657 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9658 (dwarf2_section_size, dwarf2_get_section_info)
9659 (create_signatured_type_table_from_debug_names)
9660 (create_addrmap_from_aranges, read_debug_names_from_section)
9661 (get_gdb_index_contents_from_section, read_comp_unit_head)
9662 (error_check_comp_unit_head, read_abbrev_offset)
9663 (create_debug_type_hash_table, init_cu_die_reader)
9664 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9665 (read_comp_units_from_section, create_cus_hash_table)
9666 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9667 (create_dwp_v2_section, dwarf2_rnglists_process)
9668 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9669 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9670 (read_indirect_string_from_dwz, read_addr_index_1)
9671 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9672 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9673 (fill_in_loclist_baton): Update.
9674 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9675 get_containing_section, get_bfd_owner, get_bfd_section,
9676 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9677 (dwarf2_read_section, get_section_name, get_section_file_name)
9678 (get_containing_section, get_section_bfd_owner)
9679 (get_section_bfd_section, get_section_name, get_section_file_name)
9680 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9681 declare.
9682 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9683 (dwarf2_section_info::get_bfd_owner)
9684 (dwarf2_section_info::get_bfd_section)
9685 (dwarf2_section_info::get_name)
9686 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9687 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9688 (dwarf2_section_info::read): Now methods.
9689 * dwarf-index-write.c (class debug_names): Update.
9690
2c86cff9
TT
96912020-02-08 Tom Tromey <tom@tromey.com>
9692
9693 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9694 Move to dwarf2/section.h.
9695 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9696 (get_section_bfd_section, get_section_name)
9697 (get_section_file_name, get_section_id, get_section_flags)
9698 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9699 dwarf2/section.c.
9700 * dwarf2/section.h: New file.
9701 * dwarf2/section.c: New file, from dwarf2read.c.
9702 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9703
f4382c45
TT
97042020-02-08 Tom Tromey <tom@tromey.com>
9705
9706 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9707 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9708 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9709 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9710 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9711 * dwarf2/leb.h: New file, from dwarf2read.c.
9712 * dwarf2/leb.c: New file, from dwarf2read.c.
9713 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9714 Remove.
9715 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9716 (COMMON_SFILES): Add dwarf2/leb.c.
9717
01840b7a
JB
97182020-02-08 Joel Brobecker <brobecker@adacore.com>
9719
9720 GDB 9.1 released.
9721
dfcb27e4
IB
97222020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9723
9724 PR gdb/25190:
aac66a4c
SM
9725 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9726 * gdb/remote.c (remote_console_output): Update.
9727 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9728 (ui_file_puts): ...this.
9729 * gdb/ui-file.h (ui_file_puts): Add declaration.
9730 * gdb/utils.c (emit_style_escape): Update.
9731 (flush_wrap_buffer): Update.
9732 (fputs_maybe_filtered): Update.
9733 (fputs_unfiltered): Add function.
dfcb27e4 9734
faa17681
IB
97352020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9736
aac66a4c
SM
9737 * gdb/event-loop.c (gdb_wait_for_event): Update.
9738 * gdb/printcmd.c (printf_command): Update.
9739 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9740 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9741 (gdb_os_flush_stderr): Update.
9742 * gdb/remote.c (remote_console_output): Update.
9743 * gdb/ui-file.c (gdb_flush): Rename to...
9744 (ui_file_flush): ...this.
9745 (stderr_file::write): Update.
9746 (stderr_file::puts): Update.
9747 * gdb/ui-file.h (gdb_flush): Rename to...
9748 (ui_file_flush): ...this.
9749 * gdb/utils.c (gdb_flush): Add function.
9750 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9751
5abbbe1d
TT
97522020-02-07 Tom Tromey <tromey@adacore.com>
9753
9754 PR breakpoints/24915:
9755 * source.c (find_and_open_source): Do not check basenames_may_differ.
9756
919adfe8
TT
97572020-02-07 Tom Tromey <tom@tromey.com>
9758
9759 * README: Update gdbserver documentation.
9760 * gdbserver: Move to top level.
9761 * configure.tgt (build_gdbserver): Remove.
9762 * configure.ac: Remove --enable-gdbserver.
9763 * configure: Rebuild.
9764 * Makefile.in (distclean): Don't mention gdbserver.
9765
1d5d29e7
SV
97662020-02-06 Shahab Vahedi <shahab@synopsys.com>
9767
9768 * source-cache.c (source_cache::ensure): Surround
9769 get_plain_source_lines with a try/catch.
9770 (source_cache::get_line_charpos): Get rid of try/catch
9771 and only check for the return value of "ensure".
9772 * tui/tui-source.c (tui_source_window::set_contents):
9773 Simplify "nlines" calculation.
9774
6eb1129c
SV
97752020-02-06 Shahab Vahedi <shahab@synopsys.com>
9776
9777 * MAINTAINERS (Write After Approval): Add myself.
9778
c6a42d11
CB
97792020-02-05 Christian Biesinger <cbiesinger@google.com>
9780
9781 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9782 function call.
9783
c8ecdda6
CB
97842020-02-05 Christian Biesinger <cbiesinger@google.com>
9785
9786 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9787
f6480e70
MR
97882020-02-05 Maciej W. Rozycki <macro@wdc.com>
9789
9790 * nat/riscv-linux-tdesc.h: New file.
9791 * nat/riscv-linux-tdesc.c: New file, taking code from...
9792 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9793 ... here.
9794 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9795 NATDEPFILES.
9796
dcc9fbc6
AB
97972020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9798
9799 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9800 we don't set the fake simulator ptid to the null_ptid.
9801
719546c4
SM
98022020-02-03 Simon Marchi <simon.marchi@efficios.com>
9803
9804 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9805 * gdbthread.h (class thread_info) <resumed>: Likewise.
9806 * infrun.c (resume_1): Likewise.
9807 (proceed): Likewise.
9808 (infrun_thread_stop_requested): Likewise.
9809 (stop_all_threads): Likewise.
9810 (handle_inferior_event): Likewise.
9811 (restart_threads): Likewise.
9812 (finish_step_over): Likewise.
9813 (keep_going_stepped_thread): Likewise.
9814 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9815 (linux_handle_extended_wait): Likewise.
9816 * record-btrace.c (get_thread_current_frame_id): Likewise.
9817 * record-full.c (record_full_wait_1): Likewise.
9818 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9819 * target.c (target_resume): Likewise.
9820 * thread.c (set_running_thread): Likewise.
9821
e409c542
AKS
98222020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9823
9824 * f-valprint.c (f77_print_array_1): Changed datatype of index
9825 variable to LONGEST from int to enable it to contain bound
9826 values correctly.
9827
ee98c0da
MR
98282020-02-03 Maciej W. Rozycki <macro@wdc.com>
9829
9830 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9831 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9832 offsets according to FLEN determined.
9833 (riscv_linux_nat_target::read_description): Determine FLEN
9834 dynamically.
9835 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9836 according to FLEN determined.
9837 (riscv_linux_nat_target::store_registers): Likewise.
9838
aa66aac4
SV
98392020-02-01 Shahab Vahedi <shahab@synopsys.com>
9840
9841 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9842 when reg->group is empty and reggroup is not.
9843
fd9faca8
TT
98442020-01-31 Tom Tromey <tromey@adacore.com>
9845
9846 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9847 Call beneath target's mourn_inferior after unpushing.
9848
42330a68
AB
98492020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9850
9851 PR tui/9765
9852 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9853 have enough lines to fill the screen, still return the lowest
9854 address we found.
9855
7a27a45b
AB
98562020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9857
9858 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9859 '-', '<', and '>' commands.
9860
c47f70e2
PA
98612020-01-29 Pedro Alves <palves@redhat.com>
9862 Sergio Durigan Junior <sergiodj@redhat.com>
9863
9864 * infcmd.c (construct_inferior_arguments): Assert that
9865 'argc' is greater than 0.
9866
5133a315
LM
98672020-01-29 Luis Machado <luis.machado@linaro.org>
9868
9869 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9870 (BRK_INSN_MASK): Define to 0xd4200000.
9871 (aarch64_program_breakpoint_here_p): New function.
9872 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9873 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9874 breakpoint.c.
9875 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9876 breakpoint.h
9877 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9878 call gdbarch_program_breakpoint_here_p.
9879 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9880 default_program_breakpoint_here_p, changed return type to bool and
9881 simplified.
9882 * breakpoint.h (program_breakpoint_here): Moved prototype to
9883 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9884 return type to bool.
9885 * gdbarch.c: Regenerate.
9886 * gdbarch.h: Regenerate.
9887 * gdbarch.sh (program_breakpoint_here_p): New method.
9888 * infrun.c (handle_signal_stop): Call
9889 gdbarch_program_breakpoint_here_p.
9890
168f8c6b
TT
98912020-01-26 Tom Tromey <tom@tromey.com>
9892
9893 * ctfread.c (struct ctf_fp_info): Reindent.
9894 (_initialize_ctfread): Remove.
9895
128a391f
TT
98962020-01-26 Tom Tromey <tom@tromey.com>
9897
9898 * psymtab.c (partial_map_expand_apply)
9899 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9900 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9901 (psym_print_stats, psym_expand_symtabs_for_function)
9902 (psym_map_symbol_filenames, psym_map_matching_symbols)
9903 (psym_expand_symtabs_matching)
9904 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9905 (maintenance_check_psymtabs): Use new methods.
9906 * psympriv.h (struct partial_symtab) <readin_p,
9907 get_compunit_symtab>: New methods.
9908 <readin, compunit_symtab>: Remove members.
9909 (struct standard_psymtab): New.
9910 (struct legacy_psymtab): Derive from standard_psymtab.
9911 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9912 standard_psymtab.
9913 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9914
0494dbec
TT
99152020-01-26 Tom Tromey <tom@tromey.com>
9916
9917 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9918 read_dependencies. Add assert.
9919 * psymtab.c (partial_symtab::read_dependencies): New method.
9920 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9921 method.
9922 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9923 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9924 read_dependencies.
9925 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9926 Add assert.
9927
8566b89b
TT
99282020-01-26 Tom Tromey <tom@tromey.com>
9929
9930 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9931 Call expand_psymtab.
9932 (xcoff_read_symtab): Call expand_psymtab.
9933 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9934 legacy_expand_psymtab.
9935 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9936 method.
9937 (struct legacy_psymtab) <expand_psymtab>: Implement.
9938 <legacy_expand_psymtab>: New member.
9939 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9940 (parse_partial_symbols): Set legacy_expand_psymtab.
9941 (psymtab_to_symtab_1): Change argument order. Call
9942 expand_psymtab.
9943 (new_psymtab): Set legacy_expand_psymtab.
9944 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9945 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9946 expand_psymtab.
9947 (dwarf2_psymtab::expand_psymtab): Rename from
9948 psymtab_to_symtab_1. Call expand_psymtab.
9949 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9950 (dbx_end_psymtab): Likewise.
9951 (dbx_psymtab_to_symtab_1): Change argument order. Call
9952 expand_psymtab.
9953 (dbx_read_symtab): Call expand_psymtab.
9954 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9955 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9956 (ctf_psymtab::read_symtab): Call expand_psymtab.
9957
077cbab2
TT
99582020-01-26 Tom Tromey <tom@tromey.com>
9959
9960 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9961 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9962 messages.
9963 * mdebugread.c (mdebug_read_symtab): Remove prints.
9964 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9965 assert.
9966 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9967
891813be
TT
99682020-01-26 Tom Tromey <tom@tromey.com>
9969
9970 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9971 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9972 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9973 legacy_symtab.
9974 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9975 * psymtab.c (psymtab_to_symtab): Call method.
9976 (dump_psymtab): Update.
9977 * psympriv.h (struct partial_symtab): Add virtual destructor.
9978 <read_symtab>: New method.
9979 (struct legacy_symtab): New.
9980 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9981 (struct pst_map) <pst>: Now a legacy_psymtab.
9982 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9983 (new_psymtab): Use legacy_psymtab.
9984 * dwarf2read.h (struct dwarf2_psymtab): New.
9985 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9986 * dwarf2read.c (dwarf2_create_include_psymtab)
9987 (dwarf2_build_include_psymtabs, create_type_unit_group)
9988 (create_partial_symtab, process_psymtab_comp_unit_reader)
9989 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9990 (set_partial_user): Use dwarf2_psymtab.
9991 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9992 (psymtab_to_symtab_1, process_full_comp_unit)
9993 (process_full_type_unit, dwarf2_ranges_read)
9994 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9995 (dwarf_decode_lines): Use dwarf2_psymtab.
9996 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9997 (add_address_entry_worker, write_one_signatured_type)
9998 (recursively_count_psymbols, recursively_write_psymbols)
9999 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10000 (write_debug_names): Likewise.
10001 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10002 <pst>: Now a legacy_psymtab.
10003 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10004 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10005 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10006 * ctfread.c (struct ctf_psymtab): New.
10007 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10008 ctf_psymtab.
10009 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10010 (create_partial_symtab): Return a ctf_psymtab.
10011 (scan_partial_symbols): Update.
10012
c3693a1d
TT
100132020-01-26 Tom Tromey <tom@tromey.com>
10014
10015 * xcoffread.c (xcoff_start_psymtab): Use new.
10016 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10017 renamed from start_psymtab_common.
10018 * psympriv.h (struct partial_symtab): Add new constructor.
10019 (start_psymtab_common): Don't declare.
10020 * mdebugread.c (parse_partial_symbols): Use new.
10021 * dwarf2read.c (create_partial_symtab): Use new.
10022 * dbxread.c (start_psymtab): Use new.
10023 * ctfread.c (create_partial_symtab): Use new.
10024
32caafd0
TT
100252020-01-26 Tom Tromey <tom@tromey.com>
10026
10027 * xcoffread.c (xcoff_end_psymtab): Use new.
10028 * psymtab.c (start_psymtab_common): Use new.
10029 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10030 Update.
10031 * psympriv.h (struct partial_symtab): Add parameters to
10032 constructor. Don't inline.
10033 (allocate_psymtab): Don't declare.
10034 * mdebugread.c (new_psymtab): Use new.
10035 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10036 * dbxread.c (dbx_end_psymtab): Use new.
10037
abaa2f23
TT
100382020-01-26 Tom Tromey <tom@tromey.com>
10039
10040 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10041 allocate_psymtab. Update documentation.
10042 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10043 allocate_psymtab. Do not use new.
10044 (allocate_psymtab): Use new. Update.
10045
6d94535f
TT
100462020-01-26 Tom Tromey <tom@tromey.com>
10047
10048 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10049 * psymtab.c (psym_print_stats): Update.
10050 * psympriv.h (struct partial_symtab) <readin,
10051 psymtabs_addrmap_supported, anonymous>: Now bool.
10052 * mdebugread.c (psymtab_to_symtab_1): Update.
10053 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10054 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10055 (process_full_comp_unit, process_full_type_unit): Update.
10056 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10057 * ctfread.c (psymtab_to_symtab): Update.
10058
6f17252b
TT
100592020-01-26 Tom Tromey <tom@tromey.com>
10060
10061 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10062 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10063 * psymtab.c (psymtab_storage): Delete psymtabs.
10064 (psymtab_storage::allocate_psymtab): Use new.
10065 (psymtab_storage::discard_psymtab): Use delete.
10066 * psympriv.h (struct partial_symtab): Add constructor and
10067 initializers.
10068
f6f1cebc
TT
100692020-01-26 Tom Tromey <tom@tromey.com>
10070
10071 * machoread.c: Do not include psympriv.h.
10072
e47e48f6
PW
100732020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10074
10075 * NEWS: Mention the new option and the set/show commands.
10076
a2fedca9
PW
100772020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10078
10079 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10080 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10081 (validate_exec_file): New variables, enums, functions.
10082 (exec_file_locate_attach, print_section_info): Style the filenames.
10083 (_initialize_exec): Install show_exec_file_mismatch_command and
10084 set_exec_file_mismatch_command.
10085 * gdbcore.h (validate_exec_file): Declare.
10086 * infcmd.c (attach_command): Call validate_exec_file.
10087 * remote.c ( remote_target::remote_add_inferior): Likewise.
10088
7ffa82e1
AB
100892020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10090
10091 * frame.c (find_frame_sal): Move call to get_next_frame into more
10092 inner scope.
10093 * inline-frame.c (inilne_state) <inline_state>: Update argument
10094 types.
10095 (inilne_state) <skipped_symbol>: Rename to...
10096 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10097 (skip_inline_frames): Build vector of skipped symbols and use this
10098 to reate the inline_state.
10099 (inline_skipped_symbol): Add a comment and some assertions, fetch
10100 skipped symbol from the list.
10101
3d92a3e3
AB
101022020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10103
10104 * buildsym.c (lte_is_less_than): Delete.
10105 (buildsym_compunit::end_symtab_with_blockvector): Create local
10106 lambda function to sort line table entries, and use
10107 std::stable_sort instead of std::sort.
10108 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10109 markers when looking for a previous line.
10110
94a72be7
AB
101112020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10112
10113 * dwarf2read.c (lnp_state_machine::record_line): Include
10114 end_sequence parameter in debug print out. Record the line if we
10115 are at an end_sequence marker even if it's not the start of a
10116 statement.
10117 * symmisc.c (maintenance_print_one_line_table): Print end of
10118 sequence markers with 'END' not '0'.
10119
53af73bf
PA
101202020-01-24 Pedro Alves <palves@redhat.com>
10121
10122 PR gdb/25410
10123 * thread.c (scoped_restore_current_thread::restore): Use
10124 switch_to_inferior_no_thread.
10125 * exec.c: Include "progspace-and-thread.h".
10126 (add_target_sections, remove_target_sections):
10127 scoped_restore_current_pspace_and_thread instead of
10128 scoped_restore_current_thread.
10129 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10130 and aspace to the inferior before calling clone_program_space.
10131 Remove stale comment.
10132
3050c6f4
CB
101332020-01-24 Christian Biesinger <cbiesinger@google.com>
10134
10135 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10136 (arm_netbsd_nat_target::fetch_registers): ...this.
10137 (arm_nbsd_nat_target::store_registers): Rename to...
10138 (arm_netbsd_nat_target::store_registers): ...this.
10139
73685c7e
CB
101402020-01-24 Christian Biesinger <cbiesinger@google.com>
10141
10142 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10143 register_t.
10144
89203d40
CB
101452020-01-24 Christian Biesinger <cbiesinger@google.com>
10146
10147 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10148 Update comment.
10149 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10150 Likewise.
10151 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10152 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10153 the correct replacement (iterate_over_regset_sections).
10154 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10155 Update comment.
10156
1ba1ac88
AB
101572020-01-24 Graham Markall <graham.markall@embecosm.com>
10158
10159 PR gdb/23718
10160 * gdb/python/python.c (execute_gdb_command): Call
10161 async_enable_stdin in catch block.
10162
f3364a6d
AB
101632020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10164
10165 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10166 SWITCH_THRU_ALL_UIS.
10167
733d0a67
AB
101682020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10169
10170 PR tui/9765
10171 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10172 comment, add extra parameter, and update to store previous symbol
10173 when appropriate.
10174 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10175 add extra parameter.
10176 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10177 remove unneeded parameter, add try/catch around gdb_print_insn,
10178 rewrite to add items to asm_lines vector.
10179 (tui_find_backward_disassembly_start_address): New function.
10180 (tui_find_disassembly_address): Updated throughout.
10181 (tui_disasm_window::set_contents): Update for changes to
10182 tui_disassemble.
10183 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10184 number of lines to scroll.
10185
b3b3bada
SM
101862020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10187
10188 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10189 (SECT_OFF_DATA): Likewise.
10190 (SECT_OFF_RODATA): Likewise.
10191 (SECT_OFF_TEXT): Likewise.
10192 (SECT_OFF_BSS): Likewise.
10193 (struct objfile) <text_section_offset, data_section_offset>: New
10194 methods.
10195 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10196 objfile::text_section_offset.
10197 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10198 * coffread.c (coff_symtab_read): Likewise.
10199 (enter_linenos): Likewise.
10200 (process_coff_symbol): Likewise.
10201 * ctfread.c (get_objfile_text_range): Likewise.
10202 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10203 Use objfile::data_section_offset.
10204 * dwarf2-frame.c (execute_cfa_program): Use
10205 objfile::text_section_offset.
10206 (dwarf2_frame_find_fde): Likewise.
10207 * dwarf2read.c (create_addrmap_from_index): Likewise.
10208 (create_addrmap_from_aranges): Likewise.
10209 (dw2_find_pc_sect_compunit_symtab): Likewise.
10210 (process_psymtab_comp_unit_reader): Likewise.
10211 (add_partial_symbol): Likewise.
10212 (add_partial_subprogram): Likewise.
10213 (process_full_comp_unit): Likewise.
10214 (read_file_scope): Likewise.
10215 (read_func_scope): Likewise.
10216 (read_lexical_block_scope): Likewise.
10217 (read_call_site_scope): Likewise.
10218 (dwarf2_rnglists_process): Likewise.
10219 (dwarf2_ranges_process): Likewise.
10220 (dwarf2_ranges_read): Likewise.
10221 (dwarf_decode_lines_1): Likewise.
10222 (new_symbol): Likewise.
10223 (dwarf2_fetch_die_loc_sect_off): Likewise.
10224 (dwarf2_per_cu_text_offset): Likewise.
10225 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10226 * hppa-tdep.c (read_unwind_info): Likewise.
10227 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10228 * psympriv.h (struct partial_symtab): Likewise.
10229 * psymtab.c (find_pc_sect_psymtab): Likewise.
10230 * solib-svr4.c (enable_break): Likewise.
10231 * stap-probe.c (relocate_address): Use
10232 objfile::data_section_offset.
10233 * xcoffread.c (enter_line_range): Use
10234 objfile::text_section_offset.
10235 (read_xcoff_symtab): Likewise.
10236
ab53f382
SM
102372020-01-23 Simon Marchi <simon.marchi@efficios.com>
10238
10239 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10240 declaration to narrower scopes.
10241
e7eee665
SM
102422020-01-23 Simon Marchi <simon.marchi@efficios.com>
10243
10244 * darwin-nat.h (struct darwin_exception_msg, enum
10245 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10246 Move up.
10247 (class darwin_nat_target) <wait_1, check_new_threads,
10248 decode_exception_message, decode_message, stop_inferior,
10249 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10250 * darwin-nat.c (darwin_check_new_threads): Rename to...
10251 (darwin_nat_target::check_new_threads): ... this.
10252 (darwin_suspend_inferior_it): Remove.
10253 (darwin_decode_exception_message): Rename to...
10254 (darwin_nat_target::decode_exception_message): ... this.
10255 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10256 (darwin_decode_message): Rename to...
10257 (darwin_nat_target::decode_message): ... this.
10258 (cancel_breakpoint): Rename to...
10259 (darwin_nat_target::cancel_breakpoint): ... this.
10260 (darwin_wait): Rename to...
10261 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10262 instead of iterate_over_inferiors.
10263 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10264 (darwin_stop_inferior): Rename to...
10265 (darwin_nat_target::stop_inferior): ... this.
10266 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10267 (darwin_init_thread_list): Rename to...
10268 (darwin_nat_target::init_thread_list): ... this.
10269 (darwin_ptrace_him): Rename to...
10270 (darwin_nat_target::ptrace_him): ... this.
10271 (darwin_nat_target::create_inferior): Pass lambda function to
10272 fork_inferior.
10273 (darwin_nat_target::detach): Call stop_inferior instead of
10274 darwin_stop_inferior.
10275 * fork-inferior.h (fork_inferior): Change init_trace_fun
10276 parameter to gdb::function_view.
10277 * fork-inferior.c (fork_inferior): Likewise.
10278
c162ed3e
HD
102792020-01-23 Hannes Domani <ssbssa@yahoo.de>
10280
10281 * i386-cygwin-tdep.c (core_process_module_section): Update.
10282 * windows-nat.c (struct lm_info_windows): Add text_offset.
10283 (windows_xfer_shared_libraries): Update.
10284 * windows-tdep.c (windows_xfer_shared_library):
10285 Add text_offset_cached argument.
10286 * windows-tdep.h (windows_xfer_shared_library): Update.
10287
a1237872
SM
102882020-01-21 Simon Marchi <simon.marchi@efficios.com>
10289
10290 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10291
b3ee6dd9
SM
102922020-01-21 Simon Marchi <simon.marchi@efficios.com>
10293
10294 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10295 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10296 replace with range-based for.
10297 (gdbsim_interrupt_inferior): Remove.
10298 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10299 with a range-based for. Inline code from
10300 gdbsim_interrupt_inferior.
10301
f9fac3c8
SM
103022020-01-21 Simon Marchi <simon.marchi@efficios.com>
10303
10304 * infrun.c (proceed): Fix indentation.
10305
f6474de9
TT
103062020-01-21 Tom Tromey <tromey@adacore.com>
10307
10308 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10309 * python/python.c (python_extension_ops): Update.
10310 (gdbpy_colorize): New function.
10311 * python/lib/gdb/__init__.py (colorize): New function.
10312 * extension.h (ext_lang_colorize): Declare.
10313 * extension.c (ext_lang_colorize): New function.
10314 * extension-priv.h (struct extension_language_ops) <colorize>: New
10315 member.
10316 * cli/cli-style.c (_initialize_cli_style): Update help text.
10317
f0c702d4
LM
103182020-01-21 Luis Machado <luis.machado@linaro.org>
10319
10320 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10321 <cond>: Change type to bool.
10322 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10323 (aarch64_displaced_step_cb): Likewise.
10324 (aarch64_displaced_step_tb): Likewise.
10325
1ab139e5
LM
103262020-01-21 Luis Machado <luis.machado@linaro.org>
10327
10328 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10329 output.
10330
0c271889
LM
103312020-01-21 Luis Machado <luis.machado@linaro.org>
10332
10333 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10334 <pc_adjust>: Adjust the documentation.
10335 (aarch64_displaced_step_fixup): Check if PC really moved before
10336 adjusting it.
10337
4d89c1c7
TT
103382020-01-19 Tom Tromey <tom@tromey.com>
10339
10340 * disasm.c (~gdb_disassembler): New destructor.
10341 (gdb_buffered_insn_length): Call disassemble_free_target.
10342 * disasm.h (class gdb_disassembler): Declare destructor. Use
10343 DISABLE_COPY_AND_ASSIGN.
10344
c0ab21c2
TT
103452020-01-19 Tom Tromey <tom@tromey.com>
10346
10347 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10348 (die_reader_func_ftype): Remove.
10349 (cutu_reader): New class.
10350 (dw2_get_file_names_reader): Remove "data" parameter.
10351 (dw2_get_file_names): Use cutu_reader.
10352 (create_debug_type_hash_table): Update.
10353 (read_cutu_die_from_dwo): Update comment.
10354 (lookup_dwo_unit): Add dwo_name parameter.
10355 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10356 die_reader_func_ftype and data parameters.
10357 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10358 Remove die_reader_func_ftype and data parameters.
10359 (~cutu_reader): New; from init_cutu_and_read_dies.
10360 (cutu_reader::cutu_reader): Rename from
10361 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10362 and data parameters.
10363 (init_cutu_and_read_dies_simple): Remove.
10364 (struct process_psymtab_comp_unit_data): Remove.
10365 (process_psymtab_comp_unit_reader): Remove data parameter; add
10366 want_partial_unit and pretend_language parameters.
10367 (process_psymtab_comp_unit): Use cutu_reader.
10368 (build_type_psymtabs_reader): Remove data parameter.
10369 (build_type_psymtabs_1): Use cutu_reader.
10370 (process_skeletonless_type_unit): Likewise.
10371 (load_partial_comp_unit_reader): Remove.
10372 (load_partial_comp_unit): Use cutu_reader.
10373 (load_full_comp_unit_reader): Remove.
10374 (load_full_comp_unit): Use cutu_reader.
10375 (struct create_dwo_cu_data): Remove.
10376 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10377 dwo_unit parameters.
10378 (create_cus_hash_table): Use cutu_reader.
10379 (struct dwarf2_read_addr_index_data): Remove.
10380 (dwarf2_read_addr_index_reader): Remove.
10381 (dwarf2_read_addr_index): Use cutu_reader.
10382 (read_signatured_type_reader): Remove.
10383 (read_signatured_type): Use cutu_reader.
10384
45bbae5c
TT
103852020-01-19 Tom Tromey <tom@tromey.com>
10386
10387 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10388 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10389 (tui_wrefresh): Declare.
10390 * tui/tui-wingeneral.c (suppress_output): New global.
10391 (tui_suppress_output, ~tui_suppress_output): New constructor and
10392 destructor.
10393 (tui_wrefresh): New function.
10394 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10395 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10396 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10397 method.
10398 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10399 tui_wrefresh.
10400 (tui_data_window::no_refresh): New method.
10401 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10402 (tui_reg_command): Use tui_suppress_output
10403 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10404 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10405 method.
10406 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10407
4f13c1c0
TT
104082020-01-19 Tom Tromey <tom@tromey.com>
10409
10410 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10411 Handle case where symtab is null.
10412
fa47e446
SM
104132020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10414
10415 * linux-fork.c (one_fork_p): Simplify.
10416
26f42329
SM
104172020-01-17 Simon Marchi <simon.marchi@efficios.com>
10418
10419 * top.c (struct qt_args): Remove.
10420 (kill_or_detach): Change return type to void, replace `void *`
10421 parameter with a proper one.
10422 (print_inferior_quit_action): Likewise.
10423 (quit_confirm): Use range-based for loop to iterate over inferiors.
10424 (quit_force): Likewise.
10425
a9ac81b1
SM
104262020-01-17 Simon Marchi <simon.marchi@efficios.com>
10427
10428 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10429 `void *` parameter with proper parameters.
10430 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10431 (print_one_inferior): Change return type to void, replace `void *`
10432 parameter with proper parameters.
10433 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10434 inferiors.
10435 (get_other_inferior): Remove.
10436 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10437 inferiors.
10438
788eca49
SM
104392020-01-17 Simon Marchi <simon.marchi@efficios.com>
10440
10441 * mi/mi-interp.c (report_initial_inferior): Remove.
10442 (mi_interp::init): Use range-based for to iterate over inferiors.
10443
d9bc85b6
SM
104442020-01-17 Simon Marchi <simon.marchi@efficios.com>
10445
10446 * python/py-inferior.c (build_inferior_list): Remove.
10447 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10448
40c94099
CB
104492020-01-16 Christian Biesinger <cbiesinger@google.com>
10450
10451 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10452 (btrace_stitch_trace): Likewise.
10453 * charset.c (intermediate_encoding): Likewise (vaild).
10454 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10455 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10456 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10457
e0cdfe3c
HD
104582020-01-16 Hannes Domani <ssbssa@yahoo.de>
10459
10460 * windows-tdep.c (windows_get_tlb_type):
10461 Add rtl_user_process_parameters type.
10462
790f1718 104632020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10464 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10465
10466 PR build/24805
10467 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10468 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10469 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10470 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10471 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10472 (ps_plog): Redeclare exported functions with default visibility.
10473
3112ed97
NA
104742020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10475
10476 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10477 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10478
8dc3273e
SM
104792020-01-15 Simon Marchi <simon.marchi@efficios.com>
10480
10481 * infcmd.c (post_create_inferior): Use get_thread_regcache
10482 instead of get_current_regcache.
10483
ff47f4f0
TT
104842020-01-14 Tom Tromey <tom@tromey.com>
10485
10486 PR symtab/12535:
10487 * python/python.c (gdbpy_decode_line): Treat empty string the same
10488 as no argument.
10489
975f45b7
TT
104902020-01-14 Tom Tromey <tom@tromey.com>
10491
10492 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10493
25e57356
TT
104942020-01-14 Tom Tromey <tom@tromey.com>
10495
10496 * nat/linux-btrace.c: Don't include <config.h>.
10497 * nat/linux-ptrace.c: Don't include <config.h>.
10498 * nat/x86-linux-dregs.c: Don't include <config.h>.
10499
05ea2a05
TT
105002020-01-14 Tom Tromey <tom@tromey.com>
10501
10502 * configure: Rebuild.
10503 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10504
01027315
TT
105052020-01-14 Tom Tromey <tom@tromey.com>
10506
10507 * nat/x86-linux-dregs.c: Include configh.h.
10508 * nat/linux-ptrace.c: Include configh.h.
10509 * nat/linux-btrace.c: Include configh.h.
10510 * defs.h: Include config.h, bfd.h.
10511 * configure.ac: Don't source common.host.
10512 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10513 * configure: Rebuild.
10514 * acinclude.m4: Update path.
10515 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10516 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10517 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10518 (CLIBS): Add LIBSUPPORT.
10519 (CDEPS): Likewise.
10520 (COMMON_SFILES): Remove gdbsupport files.
10521 (HFILES_NO_SRCDIR): Likewise.
10522 (stamp-version): Update path to create-version.sh.
10523 (ALLDEPFILES): Remove gdbsupport files.
10524
b2ceabe8
TT
105252020-01-14 Tom Tromey <tom@tromey.com>
10526
10527 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10528 USE_WIN32API when needed.
10529 * configure.ac (USE_WIN32API): Don't define.
10530 (WIN32LIBS): Use WIN32APILIBS.
10531 * configure: Rebuild.
10532
25c51f71
TT
105332020-01-14 Tom Tromey <tom@tromey.com>
10534
10535 * configure: Rebuild.
10536 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10537
717c684d
BE
105382020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10539
10540 * skip.c (skip_function_command): Make skip w/o arguments use the
10541 name of the inlined function if pc is inside any inlined function.
10542
7da6a5b9
LM
105432020-01-14 Luis Machado <luis.machado@linaro.org>
10544
10545 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10546 * infrun.c (resume_1): Likewise.
10547 (handle_inferior_event): Remove stale comment.
10548 * linux-nat.c (linux_nat_target::resume): Update comments.
10549 (save_stop_reason): Likewise.
10550 (linux_nat_filter_event): Likewise.
10551 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10552
44e4c775
AB
105532020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10554
10555 * elfread.c (record_minimal_symbol): Set section index to 0 for
10556 non-allocatable sections.
10557
18a8505e
AT
10558
105592020-01-13 Ali Tamur <tamur@google.com>
10560
10561 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10562 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10563 to gdb::optional. Update comments.
10564 (dwo_file): Update comments.
10565 (read_attribute): Update API to take an additional out parameter,
10566 need_reprocess. This is used to mark attributes that need other
10567 attributes (e.g. str_offsets_base) for correct computation which may not
10568 have been read yet.
10569 (read_attribute_reprocess): New function declaration.
10570 (read_addr_index): Likewise.
10571 (read_dwo_str_index): Likewise.
10572 (read_stub_str_index): Likewise.
10573 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10574 (lookup_addr_base): New function definition.
10575 (lookup_ranges_base): Likewise.
10576 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10577 lookup_ranges_base.
10578 (init_cutu_and_read_dies): Update comments.
10579 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10580 unit. This is used to inherit parent's str_offsets_base and addr_base.
10581 Update comments.
10582 (init_cutu_and_read_dies_simple): Reflect API changes.
10583 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10584 (create_cus_hash_table): Change API to take parent compile unit.
10585 Reflect API changes.
10586 (open_and_init_dwo_file): Reflect API changes.
10587 (dwarf2_get_pc_bounds): Update comments.
10588 (dwarf2_record_block_ranges): Likewise.
10589 (read_full_die_1): Change implementation to reprocess attributes that
10590 need str_offsets_base and addr_base.
10591 (partial_die_info::read): Likewise.
10592 (read_attribute_reprocess): New function definition.
10593 (read_attribute_value): Change API to take an additional out parameter,
10594 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10595 when a non-dwo compile unit has index based attributes.
10596 (read_attribute): Reflect API changes.
10597 (read_addr_index_1): Reflect API changes. Update comments.
10598 (dwarf2_read_addr_index_data): Reflect API changes.
10599 (dwarf2_read_addr_index): Likewise.
10600 (read_str_index): Change API and implementation. This becomes a helper
10601 to be used by the new string index related methods. Update error
10602 message and comments.
10603 (read_dwo_str_index): New function definition.
10604 (read_stub_str_index): Likewise.
10605 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10606 * symfile.h (dwarf2_debug_sections): Likewise.
10607 * xcoffread.c (dwarf2_debug_sections): Likewise.
10608
0cac9354
SM
106092020-01-13 Simon Marchi <simon.marchi@efficios.com>
10610
10611 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10612 core_reg_sect type to gdb_byte *.
10613 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10614 * cris-tdep.c (fetch_core_registers): Likewise.
10615 * corelow.c (core_target::get_core_register_section): Change
10616 type of `contents` to gdb::byte_vector.
10617
9a6d629c
AB
106182020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10619
10620 * tui/tui-wingeneral.c (box_win): Position the title in the center
10621 of the border.
10622
d8b2f9e3
SM
106232020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10624
10625 * corelow.c (core_target::get_core_register_section): Use
10626 std::vector instead of alloca.
10627
bb564c58
SM
106282020-01-13 Simon Marchi <simon.marchi@efficios.com>
10629
10630 * warning.m4: Add -Wmissing-declarations to build_warnings.
10631 * configure: Re-generate.
10632
6b366111
SM
106332020-01-13 Simon Marchi <simon.marchi@efficios.com>
10634
10635 * python/python.c (init__gdb_module): Add declaration.
10636
6c265988
SM
106372020-01-13 Simon Marchi <simon.marchi@efficios.com>
10638
10639 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10640 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10641 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10642 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10643 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10644 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10645 * ada-exp.y (_initialize_ada_exp): Add declaration.
10646 * ada-lang.c (_initialize_ada_language): Add declaration.
10647 * ada-tasks.c (_initialize_tasks): Add declaration.
10648 * agent.c (_initialize_agent): Add declaration.
10649 * aix-thread.c (_initialize_aix_thread): Add declaration.
10650 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10651 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10652 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10653 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10654 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10655 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10656 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10657 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10658 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10659 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10660 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10661 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10662 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10663 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10664 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10665 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10666 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10667 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10668 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10669 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10670 * annotate.c (_initialize_annotate): Add declaration.
10671 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10672 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10673 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10674 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10675 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10676 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10677 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10678 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10679 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10680 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10681 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10682 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10683 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10684 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10685 * auto-load.c (_initialize_auto_load): Add declaration.
10686 * auxv.c (_initialize_auxv): Add declaration.
10687 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10688 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10689 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10690 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10691 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10692 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10693 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10694 * breakpoint.c (_initialize_breakpoint): Add declaration.
10695 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10696 * btrace.c (_initialize_btrace): Add declaration.
10697 * charset.c (_initialize_charset): Add declaration.
10698 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10699 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10700 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10701 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10702 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10703 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10704 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10705 * coffread.c (_initialize_coffread): Add declaration.
10706 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10707 * compile/compile.c (_initialize_compile): Add declaration.
10708 * complaints.c (_initialize_complaints): Add declaration.
10709 * completer.c (_initialize_completer): Add declaration.
10710 * copying.c (_initialize_copying): Add declaration.
10711 * corefile.c (_initialize_core): Add declaration.
10712 * corelow.c (_initialize_corelow): Add declaration.
10713 * cp-abi.c (_initialize_cp_abi): Add declaration.
10714 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10715 * cp-support.c (_initialize_cp_support): Add declaration.
10716 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10717 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10718 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10719 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10720 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10721 * ctfread.c (_initialize_ctfread): Add declaration.
10722 * d-lang.c (_initialize_d_language): Add declaration.
10723 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10724 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10725 * dbxread.c (_initialize_dbxread): Add declaration.
10726 * dcache.c (_initialize_dcache): Add declaration.
10727 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10728 * disasm.c (_initialize_disasm): Add declaration.
10729 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10730 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10731 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10732 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10733 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10734 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10735 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10736 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10737 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10738 * elfread.c (_initialize_elfread): Add declaration.
10739 * exec.c (_initialize_exec): Add declaration.
10740 * extension.c (_initialize_extension): Add declaration.
10741 * f-lang.c (_initialize_f_language): Add declaration.
10742 * f-valprint.c (_initialize_f_valprint): Add declaration.
10743 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10744 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10745 * filesystem.c (_initialize_filesystem): Add declaration.
10746 * findcmd.c (_initialize_mem_search): Add declaration.
10747 * findvar.c (_initialize_findvar): Add declaration.
10748 * fork-child.c (_initialize_fork_child): Add declaration.
10749 * frame-base.c (_initialize_frame_base): Add declaration.
10750 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10751 * frame.c (_initialize_frame): Add declaration.
10752 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10753 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10754 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10755 * gcore.c (_initialize_gcore): Add declaration.
10756 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10757 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10758 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10759 * gdbarch.c (_initialize_gdbarch): Add declaration.
10760 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10761 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10762 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10763 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10764 * go-lang.c (_initialize_go_language): Add declaration.
10765 * go32-nat.c (_initialize_go32_nat): Add declaration.
10766 * guile/guile.c (_initialize_guile): Add declaration.
10767 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10768 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10769 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10770 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10771 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10772 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10773 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10774 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10775 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10776 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10777 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10778 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10779 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10780 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10781 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10782 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10783 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10784 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10785 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10786 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10787 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10788 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10789 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10790 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10791 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10792 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10793 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10794 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10795 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10796 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10797 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10798 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10799 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10800 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10801 * infcall.c (_initialize_infcall): Add declaration.
10802 * infcmd.c (_initialize_infcmd): Add declaration.
10803 * inflow.c (_initialize_inflow): Add declaration.
10804 * infrun.c (_initialize_infrun): Add declaration.
10805 * interps.c (_initialize_interpreter): Add declaration.
10806 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10807 * jit.c (_initialize_jit): Add declaration.
10808 * language.c (_initialize_language): Add declaration.
10809 * linux-fork.c (_initialize_linux_fork): Add declaration.
10810 * linux-nat.c (_initialize_linux_nat): Add declaration.
10811 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10812 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10813 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10814 * m2-lang.c (_initialize_m2_language): Add declaration.
10815 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10816 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10817 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10818 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10819 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10820 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10821 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10822 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10823 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10824 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10825 * machoread.c (_initialize_machoread): Add declaration.
10826 * macrocmd.c (_initialize_macrocmd): Add declaration.
10827 * macroscope.c (_initialize_macroscope): Add declaration.
10828 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10829 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10830 * maint.c (_initialize_maint_cmds): Add declaration.
10831 * mdebugread.c (_initialize_mdebugread): Add declaration.
10832 * memattr.c (_initialize_mem): Add declaration.
10833 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10834 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10835 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10836 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10837 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10838 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10839 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10840 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10841 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10842 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10843 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10844 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10845 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10846 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10847 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10848 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10849 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10850 * mipsread.c (_initialize_mipsread): Add declaration.
10851 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10852 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10853 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10854 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10855 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10856 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10857 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10858 * nto-procfs.c (_initialize_procfs): Add declaration.
10859 * objc-lang.c (_initialize_objc_language): Add declaration.
10860 * observable.c (_initialize_observer): Add declaration.
10861 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10862 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10863 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10864 * osabi.c (_initialize_gdb_osabi): Add declaration.
10865 * osdata.c (_initialize_osdata): Add declaration.
10866 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10867 * parse.c (_initialize_parse): Add declaration.
10868 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10869 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10870 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10871 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10872 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10873 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10874 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10875 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10876 * printcmd.c (_initialize_printcmd): Add declaration.
10877 * probe.c (_initialize_probe): Add declaration.
10878 * proc-api.c (_initialize_proc_api): Add declaration.
10879 * proc-events.c (_initialize_proc_events): Add declaration.
10880 * proc-service.c (_initialize_proc_service): Add declaration.
10881 * procfs.c (_initialize_procfs): Add declaration.
10882 * producer.c (_initialize_producer): Add declaration.
10883 * psymtab.c (_initialize_psymtab): Add declaration.
10884 * python/python.c (_initialize_python): Add declaration.
10885 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10886 * record-btrace.c (_initialize_record_btrace): Add declaration.
10887 * record-full.c (_initialize_record_full): Add declaration.
10888 * record.c (_initialize_record): Add declaration.
10889 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10890 * regcache.c (_initialize_regcache): Add declaration.
10891 * reggroups.c (_initialize_reggroup): Add declaration.
10892 * remote-notif.c (_initialize_notif): Add declaration.
10893 * remote-sim.c (_initialize_remote_sim): Add declaration.
10894 * remote.c (_initialize_remote): Add declaration.
10895 * reverse.c (_initialize_reverse): Add declaration.
10896 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10897 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10898 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10899 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10900 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10901 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10902 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10903 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10904 Add declaration.
10905 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10906 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10907 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10908 * rust-exp.y (_initialize_rust_exp): Add declaration.
10909 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10910 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10911 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10912 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10913 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10914 * score-tdep.c (_initialize_score_tdep): Add declaration.
10915 * ser-go32.c (_initialize_ser_dos): Add declaration.
10916 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10917 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10918 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10919 * ser-uds.c (_initialize_ser_socket): Add declaration.
10920 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10921 * serial.c (_initialize_serial): Add declaration.
10922 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10923 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10924 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10925 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10926 * skip.c (_initialize_step_skip): Add declaration.
10927 * sol-thread.c (_initialize_sol_thread): Add declaration.
10928 * solib-aix.c (_initialize_solib_aix): Add declaration.
10929 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10930 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10931 * solib-frv.c (_initialize_frv_solib): Add declaration.
10932 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10933 * solib-target.c (_initialize_solib_target): Add declaration.
10934 * solib.c (_initialize_solib): Add declaration.
10935 * source-cache.c (_initialize_source_cache): Add declaration.
10936 * source.c (_initialize_source): Add declaration.
10937 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10938 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10939 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10940 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10941 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10942 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10943 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10944 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10945 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10946 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10947 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10948 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10949 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10950 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10951 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10952 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10953 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10954 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10955 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10956 * stabsread.c (_initialize_stabsread): Add declaration.
10957 * stack.c (_initialize_stack): Add declaration.
10958 * stap-probe.c (_initialize_stap_probe): Add declaration.
10959 * std-regs.c (_initialize_frame_reg): Add declaration.
10960 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10961 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10962 * symfile.c (_initialize_symfile): Add declaration.
10963 * symmisc.c (_initialize_symmisc): Add declaration.
10964 * symtab.c (_initialize_symtab): Add declaration.
10965 * target.c (_initialize_target): Add declaration.
10966 * target-connection.c (_initialize_target_connection): Add
10967 declaration.
10968 * target-dcache.c (_initialize_target_dcache): Add declaration.
10969 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10970 * thread.c (_initialize_thread): Add declaration.
10971 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10972 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10973 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10974 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10975 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10976 * tracectf.c (_initialize_ctf): Add declaration.
10977 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10978 * tracefile.c (_initialize_tracefile): Add declaration.
10979 * tracepoint.c (_initialize_tracepoint): Add declaration.
10980 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10981 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10982 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10983 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10984 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10985 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10986 * tui/tui.c (_initialize_tui): Add declaration.
10987 * typeprint.c (_initialize_typeprint): Add declaration.
10988 * ui-style.c (_initialize_ui_style): Add declaration.
10989 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10990 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10991 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10992 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10993 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10994 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10995 * unittests/filtered_iterator-selftests.c
10996 (_initialize_filtered_iterator_selftests): Add declaration.
10997 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10998 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10999 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11000 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11001 * unittests/main-thread-selftests.c
11002 (_initialize_main_thread_selftests): Add declaration.
11003 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11004 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11005 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11006 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11007 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11008 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11009 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11010 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11011 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11012 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11013 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11014 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11015 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11016 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11017 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11018 declaration.
11019 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11020 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11021 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11022 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11023 * user-regs.c (_initialize_user_regs): Add declaration.
11024 * utils.c (_initialize_utils): Add declaration.
11025 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11026 * valops.c (_initialize_valops): Add declaration.
11027 * valprint.c (_initialize_valprint): Add declaration.
11028 * value.c (_initialize_values): Add declaration.
11029 * varobj.c (_initialize_varobj): Add declaration.
11030 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11031 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11032 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11033 * windows-nat.c (_initialize_windows_nat): Add declaration.
11034 (_initialize_check_for_gdb_ini): Add declaration.
11035 (_initialize_loadable): Add declaration.
11036 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11037 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11038 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11039 * xcoffread.c (_initialize_xcoffread): Add declaration.
11040 * xml-support.c (_initialize_xml_support): Add declaration.
11041 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11042 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11043 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11044 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11045
e2de1eec
SM
110462020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11047
11048 * regformats/regdat.sh: Generate declaration for init function.
11049
e0037b4c
SM
110502020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11051
11052 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11053 up.
11054 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11055 close_one_inferior>: New methods.
11056 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11057 pass down target to find_inferior_pid.
11058 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11059 Pass down target to find_inferior_ptid.
11060 (gdbsim_target::create_inferior): Pass down target to
11061 add_thread_silent.
11062 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11063 target down to find_inferior_ptid and switch_to_thread.
11064 (gdbsim_target::close): Update to call close_one_inferior.
11065 (struct resume_data): Remove.
11066 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11067 directly, rather than through a void pointer.
11068 (gdbsim_target::resume): Update to call resume_one_inferior.
11069
58920b5b
SM
110702020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11071
11072 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11073
4ec89149
PA
110742020-01-12 Pedro Alves <palves@redhat.com>
11075
11076 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11077 directly for the current inferior instead of
11078 discard_all_inferiors.
11079 (discard_all_inferiors): Delete.
11080
7c392d1d
TT
110812020-01-11 Tom Tromey <tom@tromey.com>
11082
11083 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11084 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11085 deprecated_safe_get_selected_frame.
11086
d9ebdab7
TBA
110872020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11088
11089 * inferior.c (print_inferior): Switch inferior before printing it.
11090
f3c469b9
PA
110912020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11092 Pedro Alves <palves@redhat.com>
11093
11094 * progspace-and-thread.c (switch_to_program_space_and_thread):
11095 Assert there's an inferior for PSPACE. Use
11096 switch_to_inferior_no_thread to switch the inferior too.
11097 * progspace.c (program_space::~program_space): Call
11098 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11099 (program_space::free_all_objfiles): Don't call clear_symtab_users
11100 here.
11101 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11102
65c574f6
PA
111032020-01-10 Pedro Alves <palves@redhat.com>
11104
11105 * NEWS: Mention multi-target debugging, "info connections", and
11106 "add-inferior -no-connection".
11107
2f4fcf00
PA
111082020-01-10 Pedro Alves <palves@redhat.com>
11109
11110 * infrun.c: Include "target-connection.h".
11111 (check_multi_target_resumption): New.
11112 (proceed): Call it.
11113 * target-connection.c (make_target_connection_string): Make
11114 extern.
11115 * target-connection.h (make_target_connection_string): Declare.
11116
121b3efd
PA
111172020-01-10 Pedro Alves <palves@redhat.com>
11118
11119 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11120 * inferior.c (uiout_field_connection): New function.
11121 (print_inferior): Add new "connection-id" column.
11122 (add_inferior_command): Show connection number/string of added
11123 inferior.
11124 * process-stratum-target.h
11125 (process_stratum_target::connection_string): New virtual method.
11126 (process_stratum_target::connection_number): New field.
11127 * remote.c (remote_target::connection_string): New override.
11128 * target-connection.c: New file.
11129 * target-connection.h: New file.
11130 * target.c (decref_target): Remove process_stratum targets from
11131 the connection list.
11132 (target_stack::push): Add process_stratum targets to the
11133 connection list.
11134
4f837581
PA
111352020-01-10 Pedro Alves <palves@redhat.com>
11136
11137 Revert:
11138 2016-04-12 Pedro Alves <palves@redhat.com>
11139 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11140 Remove references to name.
11141 * serial.h (struct serial) <name>: Delete.
11142
f4ec508e
PA
111432020-01-10 Pedro Alves <palves@redhat.com>
11144
11145 * gdbarch-selftests.c (register_to_value_test): Remove "target
11146 already pushed" check.
11147
5b6d1e4f
PA
111482020-01-10 Pedro Alves <palves@redhat.com>
11149 John Baldwin <jhb@FreeBSD.org>
11150
11151 * aarch64-linux-nat.c
11152 (aarch64_linux_nat_target::thread_architecture): Adjust.
11153 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11154 (task_command_1): Likewise.
11155 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11156 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11157 (aix_thread_target::store_registers)
11158 (aix_thread_target::thread_alive): Adjust.
11159 * amd64-fbsd-tdep.c: Include "inferior.h".
11160 (amd64fbsd_get_thread_local_address): Pass down target.
11161 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11162 thread's gdbarch instead of target_gdbarch.
11163 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11164 get_last_target_status.
11165 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11166 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11167 inferiors.
11168 (update_inserted_breakpoint_locations): Skip if inferiors with no
11169 execution.
11170 (update_global_location_list): When handling moribund locations,
11171 find representative inferior for location's pspace, and use thread
11172 count of its process_stratum target.
11173 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11174 * bsd-uthread.c (bsd_uthread_target::wait): Use
11175 as_process_stratum_target and adjust thread_change_ptid and
11176 add_thread calls.
11177 (bsd_uthread_target::update_thread_list): Use
11178 as_process_stratum_target and adjust find_thread_ptid,
11179 thread_change_ptid and add_thread calls.
11180 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11181 find_thread_ptid call.
11182 * corelow.c (add_to_thread_list): Adjust add_thread call.
11183 (core_target_open): Adjust add_thread_silent and thread_count
11184 calls.
11185 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11186 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11187 * event-top.c (async_disconnect): Pop targets from all inferiors.
11188 * exec.c (add_target_sections): Push exec target on all inferiors
11189 sharing the program space.
11190 (remove_target_sections): Remove the exec target from all
11191 inferiors sharing the program space.
11192 (exec_on_vfork): New.
11193 * exec.h (exec_on_vfork): Declare.
11194 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11195 Pass it down.
11196 (fbsd_nat_target::update_thread_list): Adjust.
11197 (fbsd_nat_target::resume): Adjust.
11198 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11199 down.
11200 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11201 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11202 get_thread_arch_regcache call.
11203 * fork-child.c (gdb_startup_inferior): Pass target down to
11204 startup_inferior and set_executing.
11205 * gdbthread.h (struct process_stratum_target): Forward declare.
11206 (add_thread, add_thread_silent, add_thread_with_info)
11207 (in_thread_list): Add process_stratum_target parameter.
11208 (find_thread_ptid(inferior*, ptid_t)): New overload.
11209 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11210 parameter.
11211 (all_threads()): Delete overload.
11212 (all_threads, all_non_exited_threads): Add process_stratum_target
11213 parameter.
11214 (all_threads_safe): Use brace initialization.
11215 (thread_count): Add process_stratum_target parameter.
11216 (set_resumed, set_running, set_stop_requested, set_executing)
11217 (threads_are_executing, finish_thread_state): Add
11218 process_stratum_target parameter.
11219 (switch_to_thread): Use is_current_thread.
11220 * i386-fbsd-tdep.c: Include "inferior.h".
11221 (i386fbsd_get_thread_local_address): Pass down target.
11222 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11223 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11224 have_inferiors check.
11225 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11226 (inf_ptrace_target::attach): Adjust.
11227 * infcall.c (run_inferior_call): Adjust.
11228 * infcmd.c (run_command_1): Pass target to
11229 scoped_finish_thread_state.
11230 (proceed_thread_callback): Skip inferiors with no execution.
11231 (continue_command): Rename 'all_threads' local to avoid hiding
11232 'all_threads' function. Adjust get_last_target_status call.
11233 (prepare_one_step): Adjust set_running call.
11234 (signal_command): Use user_visible_resume_target. Compare thread
11235 pointers instead of inferior_ptid.
11236 (info_program_command): Adjust to pass down target.
11237 (attach_command): Mark target's 'thread_executing' flag.
11238 (stop_current_target_threads_ns): New, factored out from ...
11239 (interrupt_target_1): ... this. Switch inferior before making
11240 target calls.
11241 * inferior-iter.h
11242 (struct all_inferiors_iterator, struct all_inferiors_range)
11243 (struct all_inferiors_safe_range)
11244 (struct all_non_exited_inferiors_range): Filter on
11245 process_stratum_target too. Remove explicit.
11246 * inferior.c (inferior::inferior): Push dummy target on target
11247 stack.
11248 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11249 Add process_stratum_target parameter, and pass it down.
11250 (have_live_inferiors): Adjust.
11251 (switch_to_inferior_and_push_target): New.
11252 (add_inferior_command, clone_inferior_command): Handle
11253 "-no-connection" parameter. Use
11254 switch_to_inferior_and_push_target.
11255 (_initialize_inferior): Mention "-no-connection" option in
11256 the help of "add-inferior" and "clone-inferior" commands.
11257 * inferior.h: Include "process-stratum-target.h".
11258 (interrupt_target_1): Use bool.
11259 (struct inferior) <push_target, unpush_target, target_is_pushed,
11260 find_target_beneath, top_target, process_target, target_at,
11261 m_stack>: New.
11262 (discard_all_inferiors): Delete.
11263 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11264 (all_inferiors, all_non_exited_inferiors): Add
11265 process_stratum_target parameter.
11266 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11267 (target_last_proc_target): New global.
11268 (follow_fork_inferior): Push target on new inferior. Pass target
11269 to add_thread_silent. Call exec_on_vfork. Handle target's
11270 reference count.
11271 (follow_fork): Adjust get_last_target_status call. Also consider
11272 target.
11273 (follow_exec): Push target on new inferior.
11274 (struct execution_control_state) <target>: New field.
11275 (user_visible_resume_target): New.
11276 (do_target_resume): Call target_async.
11277 (resume_1): Set target's threads_executing flag. Consider resume
11278 target.
11279 (commit_resume_all_targets): New.
11280 (proceed): Also consider resume target. Skip threads of inferiors
11281 with no execution. Commit resumtion in all targets.
11282 (start_remote): Pass current inferior to wait_for_inferior.
11283 (infrun_thread_stop_requested): Consider target as well. Pass
11284 thread_info pointer to clear_inline_frame_state instead of ptid.
11285 (infrun_thread_thread_exit): Consider target as well.
11286 (random_pending_event_thread): New inferior parameter. Use it.
11287 (do_target_wait): Rename to ...
11288 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11289 down.
11290 (threads_are_resumed_pending_p, do_target_wait): New.
11291 (prepare_for_detach): Adjust calls.
11292 (wait_for_inferior): New inferior parameter. Handle it. Use
11293 do_target_wait_1 instead of do_target_wait.
11294 (fetch_inferior_event): Adjust. Switch to representative
11295 inferior. Pass target down.
11296 (set_last_target_status): Add process_stratum_target parameter.
11297 Save target in global.
11298 (get_last_target_status): Add process_stratum_target parameter and
11299 handle it.
11300 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11301 (context_switch): Check inferior_ptid == null_ptid before calling
11302 inferior_thread().
11303 (get_inferior_stop_soon): Pass down target.
11304 (wait_one): Rename to ...
11305 (poll_one_curr_target): ... this.
11306 (struct wait_one_event): New.
11307 (wait_one): New.
11308 (stop_all_threads): Adjust.
11309 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11310 event's target.
11311 (switch_back_to_stepped_thread): Also consider target.
11312 (print_stop_event): Update.
11313 (normal_stop): Update. Also consider the resume target.
11314 * infrun.h (wait_for_inferior): Remove declaration.
11315 (user_visible_resume_target): New declaration.
11316 (get_last_target_status, set_last_target_status): New
11317 process_stratum_target parameter.
11318 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11319 process_stratum_target parameter, and use it.
11320 (clear_inline_frame_state (thread_info*)): New.
11321 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11322 process_stratum_target parameter.
11323 (clear_inline_frame_state (thread_info*)): Declare.
11324 * linux-fork.c (delete_checkpoint_command): Pass target down to
11325 find_thread_ptid.
11326 (checkpoint_command): Adjust.
11327 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11328 instead of just tweaking inferior_ptid.
11329 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11330 (exit_lwp): Pass target down to find_thread_ptid.
11331 (attach_proc_task_lwp_callback): Pass target down to
11332 add_thread/set_running/set_executing.
11333 (linux_nat_target::attach): Pass target down to
11334 thread_change_ptid.
11335 (get_detach_signal): Pass target down to find_thread_ptid.
11336 Consider last target status's target.
11337 (linux_resume_one_lwp_throw, resume_lwp)
11338 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11339 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11340 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11341 (linux_nat_target::async_wait_fd): New.
11342 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11343 target down.
11344 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11345 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11346 * linux-thread-db.c (struct thread_db_info::process_target): New
11347 field.
11348 (add_thread_db_info): Save target.
11349 (get_thread_db_info): New process_stratum_target parameter. Also
11350 match target.
11351 (delete_thread_db_info): New process_stratum_target parameter.
11352 Also match target.
11353 (thread_from_lwp): Adjust to pass down target.
11354 (thread_db_notice_clone): Pass down target.
11355 (check_thread_db_callback): Pass down target.
11356 (try_thread_db_load_1): Always push the thread_db target.
11357 (try_thread_db_load, record_thread): Pass target down.
11358 (thread_db_target::detach): Pass target down. Always unpush the
11359 thread_db target.
11360 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11361 target down. Always unpush the thread_db target.
11362 (find_new_threads_callback, thread_db_find_new_threads_2)
11363 (thread_db_target::update_thread_list): Pass target down.
11364 (thread_db_target::pid_to_str): Pass current inferior down.
11365 (thread_db_target::get_thread_local_address): Pass target down.
11366 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11367 target down.
11368 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11369 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11370 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11371 (procfs_init_inferior): Rename to ...
11372 (procfs_target::procfs_init_inferior): ... this and adjust.
11373 (procfs_target::create_inferior, procfs_notice_thread)
11374 (procfs_do_thread_registers): Adjust.
11375 * ppc-fbsd-tdep.c: Include "inferior.h".
11376 (ppcfbsd_get_thread_local_address): Pass down target.
11377 * proc-service.c (ps_xfer_memory): Switch current inferior and
11378 program space as well.
11379 (get_ps_regcache): Pass target down.
11380 * process-stratum-target.c
11381 (process_stratum_target::thread_address_space)
11382 (process_stratum_target::thread_architecture): Pass target down.
11383 * process-stratum-target.h
11384 (process_stratum_target::threads_executing): New field.
11385 (as_process_stratum_target): New.
11386 * ravenscar-thread.c
11387 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11388 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11389 down.
11390 * record-btrace.c (record_btrace_target::info_record): Adjust.
11391 (record_btrace_target::record_method)
11392 (record_btrace_target::record_is_replaying)
11393 (record_btrace_target::fetch_registers)
11394 (get_thread_current_frame_id, record_btrace_target::resume)
11395 (record_btrace_target::wait, record_btrace_target::stop): Pass
11396 target down.
11397 * record-full.c (record_full_wait_1): Switch to event thread.
11398 Pass target down.
11399 * regcache.c (regcache::regcache)
11400 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11401 process_stratum_target parameter and handle it.
11402 (current_thread_target): New global.
11403 (get_thread_regcache): Add process_stratum_target parameter and
11404 handle it. Switch inferior before calling target method.
11405 (get_thread_regcache): Pass target down.
11406 (get_thread_regcache_for_ptid): Pass target down.
11407 (registers_changed_ptid): Add process_stratum_target parameter and
11408 handle it.
11409 (registers_changed_thread, registers_changed): Pass target down.
11410 (test_get_thread_arch_aspace_regcache): New.
11411 (current_regcache_test): Define a couple local test_target_ops
11412 instances and use them for testing.
11413 (readwrite_regcache): Pass process_stratum_target parameter.
11414 (cooked_read_test, cooked_write_test): Pass mock_target down.
11415 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11416 (get_thread_arch_aspace_regcache): Add process_stratum_target
11417 parameter.
11418 (regcache::target): New method.
11419 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11420 (regcache::registers_changed_ptid): Add process_stratum_target
11421 parameter.
11422 (regcache::m_target): New field.
11423 (registers_changed_ptid): Add process_stratum_target parameter.
11424 * remote.c (remote_state::supports_vCont_probed): New field.
11425 (remote_target::async_wait_fd): New method.
11426 (remote_unpush_and_throw): Add remote_target parameter.
11427 (get_current_remote_target): Adjust.
11428 (remote_target::remote_add_inferior): Push target.
11429 (remote_target::remote_add_thread)
11430 (remote_target::remote_notice_new_inferior)
11431 (get_remote_thread_info): Pass target down.
11432 (remote_target::update_thread_list): Skip threads of inferiors
11433 bound to other targets. (remote_target::close): Don't discard
11434 inferiors. (remote_target::add_current_inferior_and_thread)
11435 (remote_target::process_initial_stop_replies)
11436 (remote_target::start_remote)
11437 (remote_target::remote_serial_quit_handler): Pass down target.
11438 (remote_target::remote_unpush_target): New remote_target
11439 parameter. Unpush the target from all inferiors.
11440 (remote_target::remote_unpush_and_throw): New remote_target
11441 parameter. Pass it down.
11442 (remote_target::open_1): Check whether the current inferior has
11443 execution instead of checking whether any inferior is live. Pass
11444 target down.
11445 (remote_target::remote_detach_1): Pass down target. Use
11446 remote_unpush_target.
11447 (extended_remote_target::attach): Pass down target.
11448 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11449 (remote_target::append_resumption): Pass down target.
11450 (remote_target::append_pending_thread_resumptions)
11451 (remote_target::remote_resume_with_hc, remote_target::resume)
11452 (remote_target::commit_resume): Pass down target.
11453 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11454 (remote_target::interrupt_query)
11455 (remote_target::remove_new_fork_children)
11456 (remote_target::check_pending_events_prevent_wildcard_vcont)
11457 (remote_target::remote_parse_stop_reply)
11458 (remote_target::process_stop_reply): Pass down target.
11459 (first_remote_resumed_thread): New remote_target parameter. Pass
11460 it down.
11461 (remote_target::wait_as): Pass down target.
11462 (unpush_and_perror): New remote_target parameter. Pass it down.
11463 (remote_target::readchar, remote_target::remote_serial_write)
11464 (remote_target::getpkt_or_notif_sane_1)
11465 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11466 down target.
11467 (remote_target::mourn_inferior): Pass down target. Use
11468 remote_unpush_target.
11469 (remote_target::core_of_thread)
11470 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11471 (remote_target::pid_to_exec_file)
11472 (remote_target::thread_handle_to_thread_info): Pass down target.
11473 (remote_target::async_wait_fd): New.
11474 * riscv-fbsd-tdep.c: Include "inferior.h".
11475 (riscv_fbsd_get_thread_local_address): Pass down target.
11476 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11477 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11478 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11479 Adjust.
11480 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11481 * solib-svr4.c (enable_break): Pass down target.
11482 * spu-multiarch.c (parse_spufs_run): Pass down target.
11483 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11484 * target-delegates.c: Regenerate.
11485 * target.c (g_target_stack): Delete.
11486 (current_top_target): Return the current inferior's top target.
11487 (target_has_execution_1): Refer to the passed-in inferior's top
11488 target.
11489 (target_supports_terminal_ours): Check whether the initial
11490 inferior was already created.
11491 (decref_target): New.
11492 (target_stack::push): Incref/decref the target.
11493 (push_target, push_target, unpush_target): Adjust.
11494 (target_stack::unpush): Defref target.
11495 (target_is_pushed): Return bool. Adjust to refer to the current
11496 inferior's target stack.
11497 (dispose_inferior): Delete, and inline parts ...
11498 (target_preopen): ... here. Only dispose of the current inferior.
11499 (target_detach): Hold strong target reference while detaching.
11500 Pass target down.
11501 (target_thread_name): Add assertion.
11502 (target_resume): Pass down target.
11503 (target_ops::beneath, find_target_at): Adjust to refer to the
11504 current inferior's target stack.
11505 (get_dummy_target): New.
11506 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11507 has a thread running.
11508 (initialize_targets): Rename to ...
11509 (_initialize_target): ... this.
11510 * target.h: Include "gdbsupport/refcounted-object.h".
11511 (struct target_ops): Inherit refcounted_object.
11512 (target_ops::shortname, target_ops::longname): Make const.
11513 (target_ops::async_wait_fd): New method.
11514 (decref_target): Declare.
11515 (struct target_ops_ref_policy): New.
11516 (target_ops_ref): New typedef.
11517 (get_dummy_target): Declare function.
11518 (target_is_pushed): Return bool.
11519 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11520 (all_matching_threads_iterator::all_matching_threads_iterator):
11521 Handle filter target.
11522 * thread-iter.h (struct all_matching_threads_iterator, struct
11523 all_matching_threads_range, class all_non_exited_threads_range):
11524 Filter by target too. Remove explicit.
11525 * thread.c (threads_executing): Delete.
11526 (inferior_thread): Pass down current inferior.
11527 (clear_thread_inferior_resources): Pass down thread pointer
11528 instead of ptid_t.
11529 (add_thread_silent, add_thread_with_info, add_thread): Add
11530 process_stratum_target parameter. Use it for thread and inferior
11531 searches.
11532 (is_current_thread): New.
11533 (thread_info::deletable): Use it.
11534 (find_thread_ptid, thread_count, in_thread_list)
11535 (thread_change_ptid, set_resumed, set_running): New
11536 process_stratum_target parameter. Pass it down.
11537 (set_executing): New process_stratum_target parameter. Pass it
11538 down. Adjust reference to 'threads_executing'.
11539 (threads_are_executing): New process_stratum_target parameter.
11540 Adjust reference to 'threads_executing'.
11541 (set_stop_requested, finish_thread_state): New
11542 process_stratum_target parameter. Pass it down.
11543 (switch_to_thread): Also match inferior.
11544 (switch_to_thread): New process_stratum_target parameter. Pass it
11545 down.
11546 (update_threads_executing): Reimplement.
11547 * top.c (quit_force): Pop targets from all inferior.
11548 (gdb_init): Don't call initialize_targets.
11549 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11550 Declare.
11551 (windows_add_thread, windows_delete_thread): Adjust.
11552 (get_windows_debug_event): Rename to ...
11553 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11554 * tracefile-tfile.c (tfile_target_open): Pass down target.
11555 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11556 Forward declare.
11557 (switch_to_thread): Add process_stratum_target parameter.
11558 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11559 parameter. Use it.
11560 (mi_on_resume): Pass target down.
11561 * nat/fork-inferior.c (startup_inferior): Add
11562 process_stratum_target parameter. Pass it down.
11563 * nat/fork-inferior.h (startup_inferior): Add
11564 process_stratum_target parameter.
11565 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11566
75c6c844
PA
115672020-01-10 Pedro Alves <palves@redhat.com>
11568
11569 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11570 directly. Instead find the first thread in the thread list and
11571 use switch_to_thread.
11572
78f2c40a
PA
115732020-01-10 Pedro Alves <palves@redhat.com>
11574
11575 * remote.c (remote_target::remote_add_inferior): Don't bind a
11576 process to the current inferior if the current inferior is already
11577 bound to a process.
11578
e7af6c70
TBA
115792020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11580 Pedro Alves <palves@redhat.com>
11581
11582 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11583 If no process is specified, return null_ptid instead of
11584 inferior_ptid.
11585 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11586 TARGET_WAITKIND_SIGNALLED with no pid.
11587
31ba933e
PA
115882020-01-10 Pedro Alves <palves@redhat.com>
11589
11590 * remote.c (first_remote_resumed_thread): New.
11591 (remote_target::wait_as): Use it as default event_ptid instead of
11592 inferior_ptid.
11593
735fc2ca
PA
115942020-01-10 Pedro Alves <palves@redhat.com>
11595
11596 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11597
c17e02e1
PA
115982020-01-10 Pedro Alves <palves@redhat.com>
11599
11600 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11601 not -1.
11602
ab1ddbcf
PA
116032020-01-10 Pedro Alves <palves@redhat.com>
11604
11605 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11606 ptid to get_last_target_status.
11607 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11608 ptid to get_last_target_status.
11609 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11610 get_last_target_status.
11611 (info_program_command): Don't pass a target_waitstatus to
11612 get_last_target_status.
11613 * infrun.c (init_wait_for_inferior): Use
11614 nullify_last_target_wait_ptid.
11615 (get_last_target_status): Handle nullptr arguments.
11616 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11617 (print_stop_event): Don't pass a ptid to get_last_target_status.
11618 (normal_stop): Don't pass a ptid to get_last_target_status.
11619 * infrun.h (get_last_target_status, set_last_target_status): Move
11620 comments here and update.
11621 (nullify_last_target_wait_ptid): Declare.
11622 * linux-fork.c (fork_load_infrun_state): Remove local extern
11623 declaration of nullify_last_target_wait_ptid.
11624 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11625 to get_last_target_status.
11626
f3f8ece4
PA
116272020-01-10 Pedro Alves <palves@redhat.com>
11628
11629 * gdbthread.h (scoped_restore_current_thread)
11630 <dont_restore, restore, m_dont_restore>: Declare.
11631 * thread.c (thread_alive): Add assertion. Return bool.
11632 (switch_to_thread_if_alive): New.
11633 (prune_threads): Switch inferior/thread.
11634 (print_thread_info_1): Switch thread before calling target methods.
11635 (scoped_restore_current_thread::restore): New, factored out from
11636 ...
11637 (scoped_restore_current_thread::~scoped_restore_current_thread):
11638 ... this.
11639 (scoped_restore_current_thread::scoped_restore_current_thread):
11640 Add assertion.
11641 (thread_apply_all_command, thread_select): Use
11642 switch_to_thread_if_alive.
11643 * infrun.c (proceed, restart_threads, handle_signal_stop)
11644 (switch_back_to_stepped_thread): Switch current thread before
11645 calling target methods.
11646
db2d40f7
PA
116472020-01-10 Pedro Alves <palves@redhat.com>
11648
11649 * inferior.c (switch_to_inferior_no_thread): New function,
11650 factored out from ...
11651 (inferior_command): ... here.
11652 * inferior.h (switch_to_inferior_no_thread): Declare.
11653 * mi/mi-main.c (run_one_inferior): Use
11654 switch_to_inferior_no_thread.
11655
bd420a2d
PA
116562020-01-10 Pedro Alves <palves@redhat.com>
11657
11658 * infcmd.c (kill_command): Remove dead code.
11659
ddf5db90
PA
116602020-01-10 Pedro Alves <palves@redhat.com>
11661
11662 * remote.c (remote_target::mourn_inferior): No longer check
11663 whether the target is running.
11664
5018ce90
PA
116652020-01-10 Pedro Alves <palves@redhat.com>
11666
11667 * corelow.c (core_target::has_execution): Change parameter type to
11668 inferior pointer.
11669 * inferior.c (number_of_live_inferiors): Use
11670 inferior::has_execution instead of target_has_execution_1.
11671 * inferior.h (inferior::has_execution): New.
11672 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11673 inferior::has_execution instead of target_has_execution_1.
11674 * process-stratum-target.c
11675 (process_stratum_target::has_execution): Change parameter type to
11676 inferior pointer. Check the inferior's PID instead of
11677 inferior_ptid.
11678 * process-stratum-target.h
11679 (process_stratum_target::has_execution): Change parameter type to
11680 inferior pointer.
11681 * record-full.c (record_full_core_target::has_execution): Change
11682 parameter type to inferior pointer.
11683 * target.c (target_has_execution_1): Change parameter type to
11684 inferior pointer.
11685 (target_has_execution_current): Adjust.
11686 * target.h (target_ops::has_execution): Change parameter type to
11687 inferior pointer.
11688 (target_has_execution_1): Change parameter type to inferior
11689 pointer. Change return type to bool.
11690 * tracefile.h (tracefile_target::has_execution): Change parameter
11691 type to inferior pointer.
11692
74375d18
PA
116932020-01-10 Pedro Alves <palves@redhat.com>
11694
11695 * exceptions.c (print_flush): Remove current_top_target() check.
11696
acdf84a6
PA
116972020-01-10 Pedro Alves <palves@redhat.com>
11698
11699 * remote.c (show_remote_exec_file): Show the current inferior's
11700 exec-file instead of the command variable's value.
11701
ec506636
PA
117022020-01-10 Pedro Alves <palves@redhat.com>
11703
11704 * record-full.c (record_full_resume_ptid): New global.
11705 (record_full_target::resume): Set it.
11706 (record_full_wait_1): Use record_full_resume_ptid instead of
11707 inferior_ptid.
11708
873657b9
PA
117092020-01-10 Pedro Alves <palves@redhat.com>
11710
11711 * gdbthread.h (scoped_restore_current_thread)
11712 <dont_restore, restore, m_dont_restore>: Declare.
11713 * thread.c (thread_alive): Add assertion. Return bool.
11714 (switch_to_thread_if_alive): New.
11715 (prune_threads): Switch inferior/thread.
11716 (print_thread_info_1): Switch thread before calling target methods.
11717 (scoped_restore_current_thread::restore): New, factored out from
11718 ...
11719 (scoped_restore_current_thread::~scoped_restore_current_thread):
11720 ... this.
11721 (scoped_restore_current_thread::scoped_restore_current_thread):
11722 Add assertion.
11723 (thread_apply_all_command, thread_select): Use
11724 switch_to_thread_if_alive.
11725
7f0ae84c
GB
117262020-01-10 George Barrett <bob@bob131.so>
11727
11728 * stap-probe.c (stap_modify_semaphore): Don't check for null
11729 semaphores.
11730 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11731 for null semaphores.
11732
f5a7c406
AB
117332020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11734
11735 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11736 all source windows, and maintain horizontal scroll status while
11737 doing so.
11738
9ae6bf64
TT
117392020-01-09 Tom Tromey <tom@tromey.com>
11740
11741 PR tui/18932:
11742 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11743 update_source_window, not print_source_lines.
11744
b2efe70c
AB
117452020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11746
11747 * tui/tui.c (tui_enable): Register tui hooks after calling
11748 tui_display_main.
11749
5f23a082
CB
117502020-01-09 Christian Biesinger <cbiesinger@google.com>
11751
11752 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11753
3061113b
SM
117542020-01-08 Simon Marchi <simon.marchi@efficios.com>
11755
11756 * thread.c (print_thread_info_1): Fix indentation.
11757
57d75002
CB
117582020-01-09 Christian Biesinger <cbiesinger@google.com>
11759
11760 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11761 unique_xmalloc_ptr outside the if to always free the demangled name.
11762
6a053cb1
TT
117632020-01-08 Tom Tromey <tromey@adacore.com>
11764
11765 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11766 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11767 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11768 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11769 Remove.
11770 (section_offsets): New typedef.
11771 * symtab.c (fixup_section, get_msymbol_address): Update.
11772 * symmisc.c (dump_msymbols): Update.
11773 * symfile.h (relative_addr_info_to_section_offsets)
11774 (symfile_map_offsets_to_segments): Update.
11775 * symfile.c (build_section_addr_info_from_objfile)
11776 (init_objfile_sect_indices): Update.
11777 (struct place_section_arg): Change type of "offsets".
11778 (place_section): Update.
11779 (relative_addr_info_to_section_offsets): Change type of
11780 "section_offsets". Remove "num_sections" parameter.
11781 (default_symfile_offsets, syms_from_objfile_1)
11782 (set_objfile_default_section_offset): Update.
11783 (reread_symbols): No need to preserve section offsets by hand.
11784 (symfile_map_offsets_to_segments): Change type of "offsets".
11785 * stap-probe.c (relocate_address): Update.
11786 * stabsread.h (process_one_symbol): Update.
11787 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11788 (solib_target_relocate_section_addresses): Update.
11789 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11790 Update.
11791 * solib-frv.c (frv_relocate_main_executable): Update.
11792 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11793 * solib-aix.c (solib_aix_get_section_offsets): Change return
11794 type.
11795 (solib_aix_solib_create_inferior_hook): Update.
11796 * remote.c (remote_target::get_offsets): Update.
11797 * psymtab.c (find_pc_sect_psymtab): Update.
11798 * psympriv.h (struct partial_symbol) <address, text_low,
11799 text_high>: Update.
11800 * objfiles.h (obj_section_offset): Update.
11801 (struct objfile) <section_offsets>: Change type.
11802 <num_sections>: Remove.
11803 (objfile_relocate): Update.
11804 * objfiles.c (entry_point_address_query): Update
11805 (relocate_one_symbol): Change type of "section_offsets".
11806 (objfile_relocate1, objfile_relocate1): Change type of
11807 "new_offsets".
11808 (objfile_rebase1): Update.
11809 * mipsread.c (mipscoff_symfile_read): Update.
11810 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11811 parameter.
11812 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11813 (parse_external, psymtab_to_symtab_1): Update.
11814 * machoread.c (macho_symfile_offsets): Update.
11815 * ia64-tdep.c (ia64_find_unwind_table): Update.
11816 * hppa-tdep.c (read_unwind_info): Update.
11817 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11818 * dwarf2read.c (create_addrmap_from_index)
11819 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11820 (process_psymtab_comp_unit_reader, add_partial_symbol)
11821 (add_partial_subprogram, process_full_comp_unit)
11822 (read_file_scope, read_func_scope, read_lexical_block_scope)
11823 (read_call_site_scope, dwarf2_rnglists_process)
11824 (dwarf2_ranges_process, dwarf2_ranges_read)
11825 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11826 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11827 Update.
11828 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11829 Update.
11830 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11831 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11832 (process_one_symbol): Change type of "section_offsets".
11833 * ctfread.c (get_objfile_text_range): Update.
11834 * coffread.c (coff_symtab_read, enter_linenos)
11835 (process_coff_symbol): Update.
11836 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11837 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11838
456e800a
TT
118392020-01-08 Tom Tromey <tromey@adacore.com>
11840
11841 * dwarf2read.c (parse_macro_definition): Use std::string.
11842 (parse_macro_definition): Likewise.
11843
6dfa2fc2
TT
118442020-01-08 Tom Tromey <tromey@adacore.com>
11845
11846 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11847 (ATTR_ALLOC_CHUNK): Remove.
11848
421d1616
TT
118492020-01-08 Tom Tromey <tromey@adacore.com>
11850
11851 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11852
43816ebc
TT
118532020-01-08 Tom Tromey <tromey@adacore.com>
11854
11855 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11856 (dwarf2_compute_name, open_dwo_file): Likewise.
11857 (process_enumeration_scope): Use std::vector.
11858 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11859 (partial_die_info::fixup, dwarf2_start_subfile)
11860 (guess_full_die_structure_name, dwarf2_name): Likewise.
11861 (determine_prefix): Update.
11862 (guess_full_die_structure_name): Make return type const.
11863 (partial_die_full_name): Return unique_xmalloc_ptr.
11864 (DW_FIELD_ALLOC_CHUNK): Remove.
11865
4212d509
TT
118662020-01-07 Tom Tromey <tromey@adacore.com>
11867
11868 PR build/24937:
11869 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11870
06a6207a
JT
118712020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11872
11873 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11874
153d79c4
AB
118752020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11876
11877 * stack.c (print_frame_info): Move disassemble_next_line code
11878 inside source_print block.
11879
66182876
EZ
118802020-01-06 Eli Zaretskii <eliz@gnu.org>
11881
11882 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11883 gdb/signals.h, as we are now using native signal symbols.
11884
cbfa8581
SV
118852020-01-06 Shahab Vahedi <shahab@synopsys.com>
11886
11887 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11888 overflow by an early check of content vs threshold.
aac66a4c 11889 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11890 Likewise.
11891
3f602821
EZ
118922020-01-06 Eli Zaretskii <eliz@gnu.org>
11893
11894 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11895
a08c904d
JT
118962020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11897
11898 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11899 export table if no section contains it's RVA.
11900
89a65580
EZ
119012020-01-06 Eli Zaretskii <eliz@gnu.org>
11902
11903 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11904
8b7fcda2
HD
119052020-01-06 Hannes Domani <ssbssa@yahoo.de>
11906
11907 * source.c (print_source_lines_base): Set last_line_listed.
11908
a61b4f69
SV
119092020-01-06 Shahab Vahedi <shahab@synopsys.com>
11910
11911 * tui/tui-disasm.c: Remove trailing spaces.
11912
559e7e50
EZ
119132020-01-06 Eli Zaretskii <eliz@gnu.org>
11914 Pedro Alves <palves@redhat.com>
11915
11916 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11917 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11918 (windows_gdb_signal_to_target): New function, uses the above
11919 enumeration to convert GDB internal signal codes to equivalent
11920 Windows codes.
11921 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11922 * windows-nat.c: Include "gdb_wait.h".
11923 (get_windows_debug_event): Extract the fatal exception from the
11924 exit status and convert to the equivalent Posix signal number.
11925 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11926 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11927 * gdbsupport/gdb_wait.c: New file, implements
11928 windows_status_to_termsig.
11929 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11930 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11931
f2302a34
AB
119322020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11933
11934 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11935 show_layout.
11936
6a5206eb
LM
119372020-01-05 Luis Machado <luis.machado@linaro.org>
11938
11939 * aarch64-linux-nat.c
11940 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11941 and bfd_mach_aarch64.
11942
6ec1d75e
PW
119432020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11944
11945 * ui-file.c (stdio_file::can_emit_style_escape)
11946 (tee_file::can_emit_style_escape): Ensure style is used also on
11947 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11948 to gdb_stdout.
11949 * main.c (set_gdb_data_directory): Use file style to output the
11950 warning that the given pathname is not a directory.
11951 * top.c (show_history_filename, gdb_safe_append_history)
11952 (show_gdb_datadir): Use file style.
11953
44f81a76
HD
119542020-01-03 Hannes Domani <ssbssa@yahoo.de>
11955
11956 * solib-target.c (struct lm_info_target):
11957 Change offsets to be a unique_xmalloc_ptr.
11958 (solib_target_relocate_section_addresses): Update.
11959
25057eb0
HD
119602020-01-03 Hannes Domani <ssbssa@yahoo.de>
11961
11962 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11963
6e2118f5
BE
119642020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11965
11966 * MAINTAINERS (Write After Approval): Add myself.
11967
8133c7dc
LM
119682020-01-02 Luis Machado <luis.machado@linaro.org>
11969
11970 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11971 Cell BE architecture.
11972 * target.h (struct target_ops) <thread_architecture>: Likewise.
11973
48189bec
HD
119742020-01-01 Hannes Domani <ssbssa@yahoo.de>
11975
11976 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11977
ead1063b
HD
119782020-01-01 Hannes Domani <ssbssa@yahoo.de>
11979
11980 * MAINTAINERS (Write After Approval): Add myself.
11981
e5d78223
JB
119822020-01-01 Joel Brobecker <brobecker@adacore.com>
11983
11984 * gdbarch.sh: Update copyright year range of generated files.
11985
b811d2c2
JB
119862020-01-01 Joel Brobecker <brobecker@adacore.com>
11987
11988 Update copyright year range in all GDB files.
11989
5f4def5c
JB
119902020-01-01 Joel Brobecker <brobecker@adacore.com>
11991
11992 * copyright.py: Convert to Python 3.
11993
51fd4002
JB
119942020-01-01 Joel Brobecker <brobecker@adacore.com>
11995
11996 * copyright.py: Adapt after move of gnulib directory from gdb
11997 directory to toplevel directory.
11998
5fb651f2
JB
119992020-01-01 Joel Brobecker <brobecker@adacore.com>
12000
12001 * copyright.py (main): Exit if run from the wrong directory.
12002
5dd8bf88
JB
120032020-01-01 Joel Brobecker <brobecker@adacore.com>
12004
12005 * top.c (print_gdb_version): Change copyright year to 2020.
12006
9f71dacb 120072020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12008
9f71dacb 12009 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12010
9f71dacb 12011For older changes see ChangeLog-2019.
c906108c
SS
12012\f
12013Local Variables:
12014mode: change-log
12015left-margin: 8
12016fill-column: 74
12017version-control: never
57da7796 12018coding: utf-8
c906108c 12019End: