]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb.base/corefile.exp regression for unix/-m32 on x86_64 (PR 26336)
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
27c7b875
PA
12020-08-12 Pedro Alves <palves@redhat.com>
2
3 PR gdb/26336
4 * progspace.c (program_space::remove_objfile): Invalidate the
5 frame cache.
6
1796a2a1
TV
72020-08-11 Tom de Vries <tdevries@suse.de>
8
9 * MAINTAINERS: Mark ms1 as deleted.
10
f8e3fe0d
LM
112020-08-10 Luis Machado <luis.machado@linaro.org>
12
13 PR gdb/26310
14
15 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
16 act accordingly.
17 (aarch64_analyze_prologue_test): Add more unit tests to exercise
18 movz/str/stur/stp skipping behavior.
19
cc308722
LM
202020-08-10 Luis Machado <luis.machado@linaro.org>
21
22 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
23 struct user_sve_header instead of struct sve_context.
24
041d9819
SM
252020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
26
27 * read.h (dwarf2_fetch_die_loc_sect_off,
28 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
29 `void *` parameter with function_view.
30 * read.c (dwarf2_fetch_die_loc_sect_off,
31 dwarf2_fetch_die_loc_cu_off): Likewise.
32 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
33 (per_cu_dwarf_call): Adjust.
34 (get_frame_address_in_block_wrapper): Remove.
35 (indirect_synthetic_pointer): Adjust.
36 (get_ax_pc): Remove.
37 (dwarf2_compile_expr_to_ax): Adjust.
38
38f8aa06
TV
392020-08-08 Tom de Vries <tdevries@suse.de>
40
41 PR build/26344
42 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
43 constructor.
44 * regcache.c (get_thread_arch_aspace_regcache): Same.
45
a52b3ae2
TT
462020-08-07 Tom Tromey <tromey@adacore.com>
47
48 * ravenscar-thread.c
49 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
50 New method.
51 (ravenscar_thread_target::wait): Check
52 runtime_initialized.
53 (ravenscar_thread_target::prepare_to_store)
54 (ravenscar_thread_target::stopped_by_sw_breakpoint)
55 (ravenscar_thread_target::stopped_by_hw_breakpoint)
56 (ravenscar_thread_target::stopped_by_watchpoint)
57 (ravenscar_thread_target::stopped_data_address)
58 (ravenscar_thread_target::core_of_thread): Use
59 scoped_restore_current_thread and
60 set_base_thread_from_ravenscar_task.
61
0e29517d
TT
622020-08-07 Tom Tromey <tromey@adacore.com>
63
64 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
65
592f9bd7
TT
662020-08-07 Tom Tromey <tromey@adacore.com>
67
68 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
69 update_inferior_ptid before update_thread_list.
70 (temporarily_change_regcache_ptid): New class.
71 (ravenscar_thread_target::fetch_registers)
72 (ravenscar_thread_target::store_registers)
73 (ravenscar_thread_target::prepare_to_store): Use base thread when
74 forwarding operation.
75
39e2018a
TT
762020-08-07 Tom Tromey <tromey@adacore.com>
77
78 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
79 "is_pid" case.
80
2080266b
TT
812020-08-07 Tom Tromey <tromey@adacore.com>
82
83 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
84 New methods.
85 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
86 first.
87 (ravenscar_thread_target::add_thread): Rename from
88 ravenscar_add_thread.
89 (ravenscar_thread_target::update_thread_list): Use a lambda.
90 (ravenscar_thread_target::xfer_partial): New method.
91
78c02f21
TT
922020-08-07 Tom Tromey <tromey@adacore.com>
93
94 * ada-lang.h (ada_task_list_iterator_ftype): Now a
95 gdb::function_view.
96 (iterate_over_live_ada_tasks): Change type of argument.
97 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
98 of argument.
99
d5d833af
TT
1002020-08-07 Tom Tromey <tromey@adacore.com>
101
102 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
103 Remove.
104 (ravenscar_thread_target::extra_thread_info): Remove.
105 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
106 defer to target beneath for non-Ravenscar threads.
107
a8ac85bb
TT
1082020-08-07 Tom Tromey <tromey@adacore.com>
109
110 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
111 get_base_thread_from_ravenscar_task>: Now methods.
112 <m_cpu_map>: New member.
113 (ravenscar_thread_target::get_thread_base_cpu): Rename from
114 ravenscar_get_thread_base_cpu. Check m_cpu_map.
115 (ravenscar_thread_target::task_is_currently_active): Update.
116 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
117 Now a method.
118 (ravenscar_thread_target::add_active_thread): Put initial thread
119 into the m_cpu_map.
120
550ab58d
TT
1212020-08-07 Tom Tromey <tromey@adacore.com>
122
123 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
124 event_ptid.
125
e9546579
TT
1262020-08-07 Tom Tromey <tromey@adacore.com>
127
128 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
129 runtime_initialized.
130
3d4470e5
TT
1312020-08-07 Tom Tromey <tromey@adacore.com>
132
133 * ravenscar-thread.c (ravenscar_thread_target): Don't call
134 add_active_thread.
135 (ravenscar_thread_target::add_active_thread): Now public.
136 (ravenscar_inferior_created): Call add_active_thread after pushing
137 the target.
138
888bdb2b
SM
1392020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
140
141 * regcache.c (ptid_regcache_map): New type.
142 (target_ptid_regcache_map): New type.
143 (regcaches): Change type to target_ptid_regcache_map.
144 (get_thread_arch_aspace_regcache): Update to regcaches' new
145 type.
146 (regcache_thread_ptid_changed): Likewise.
147 (registers_changed_ptid): Likewise.
148 (regcaches_size): Likewise.
149 (regcaches_test): Update.
150 (regcache_thread_ptid_changed): Update.
151 * regcache.h (regcache_up): New type.
152 * gdbsupport/ptid.h (hash_ptid): New struct.
153
b161a60d
SM
1542020-08-07 Simon Marchi <simon.marchi@efficios.com>
155
156 * observable.h (thread_ptid_changed): Add parameter
157 `process_stratum_target *`.
158 * infrun.c (infrun_thread_ptid_changed): Add parameter
159 `process_stratum_target *` and use it.
160 (selftests): New namespace.
161 (infrun_thread_ptid_changed): New function.
162 (_initialize_infrun): Register selftest.
163 * regcache.c (regcache_thread_ptid_changed): Add parameter
164 `process_stratum_target *` and use it.
165 (regcache_thread_ptid_changed): New function.
166 (_initialize_regcache): Register selftest.
167 * thread.c (thread_change_ptid): Pass target to
168 thread_ptid_changed observable.
169
d2854d8d
CT
1702020-08-06 Caroline Tice <cmtice@google.com>
171
fe4c3d43
SM
172 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
173 (struct dwp_sections): Update field comments. Add loclists and
174 rnglists fields.
175 (struct virtual_v2_dwo_sections): Rename struct to
176 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
177 size & offset fields for loclists and rnglists.
178 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
179 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
180 skipping dummy type units.
181 (create_dwp_hash_table): Update the large comment above the function to
182 discuss Version 5 DWP files as well, with references. Update all the
183 version checks in the function to check for version 5 as well. Add new
184 section at the end to create dwp hash table for version 5.
185 (create_dwp_v2_section): Rename function to
186 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
187 Add V5 to error message text.
188 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
189 into calls to create_dwp_v2_or_v5_section.
190 (create_dwo_unit_in_dwp_v5): New function.
191 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
192 check for version2; add else clause to handle version 5.
193 (open_and_init_dwo_file): Add code to check dwarf version & only call
194 create_debug_types_hash_table (with sections.types) if version is not 5;
195 else call create_debug_type_hash_table, with sections.info.
196 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
197 version 5.
198 (dwarf2_locate_v5_dwp_sections): New function.
199 (open_and_init_dwp_file): Add else-if clause for version 5 to call
200 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 201
159ed7d9
SM
2022020-08-06 Simon Marchi <simon.marchi@efficios.com>
203
204 * regcache.h (class regcache): Remove friend
205 registers_changed_ptid.
206 <regcache_thread_ptid_changed>: Remove.
207 <regcaches>: Remove.
208 * regcache.c (regcache::regcaches): Rename to...
209 (regcaches): ... this. Make static.
210 (get_thread_arch_aspace_regcache): Update.
211 (regcache::regcache_thread_ptid_changed): Rename to...
212 (regcache_thread_ptid_changed): ... this. Update.
213 (class regcache_access): Remove.
214 (regcaches_test): Update.
215 (_initialize_regcache): Update.
216 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
217 <forward_list>.
218
174981ae
SM
2192020-08-06 Simon Marchi <simon.marchi@efficios.com>
220
221 * regcache.h (class regcache) <current_regcache>: Rename to...
222 <regcaches>: ... this. Move doc here.
223 * regcache.c (regcache::current_regcache) Rename to...
224 (regcache::regcaches): ... this. Move doc to header.
225 (get_thread_arch_aspace_regcache): Update.
226 (regcache::regcache_thread_ptid_changed): Update.
227 (registers_changed_ptid): Update.
228 (class regcache_access) <current_regcache_size>: Rename to...
229 <regcaches_size>: ... this.
230 (current_regcache_test): Rename to...
231 (regcaches_test): ... this.
232 (_initialize_regcache): Update.
233
ed908db6
VC
2342020-08-06 Victor Collod <vcollod@nvidia.com>
235
236 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
237
b5582ab7
KB
2382020-08-05 Kevin Buettner <kevinb@redhat.com>
239
240 * corelow.c (core_target::build_file_mappings): Don't output
241 null pathname in warning.
242
ea946b86
SM
2432020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
244
245 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
246 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
247 gdb.dwarf2/dw2-single-line-discriminators.exp,
248 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
249
57d02173
TT
2502020-08-05 Tom Tromey <tromey@adacore.com>
251
252 PR rust/26197:
253 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
254 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
255 Fix off-by-one and type size errors in ordinary case.
256
5555c86d
TV
2572020-08-05 Tom de Vries <tdevries@suse.de>
258
259 * gdbtypes.c (type_not_allocated, type_not_associated): Use
260 "prop->const_val () == 0" instead of "prop->const_val () != 0".
261
97916bfe
SM
2622020-08-04 Simon Marchi <simon.marchi@efficios.com>
263
264 * frame.h (frame_id_p): Return bool.
265 (frame_id_artificial_p): Return bool.
266 (frame_id_eq): Return bool.
267 (has_stack_frames): Return bool.
268 (get_selected_frame): Fix typo in comment.
269 (get_frame_pc_if_available): Return bool.
270 (get_frame_address_in_block_if_available): Return bool.
271 (get_frame_func_if_available): Return bool.
272 (read_frame_register_unsigned): Return bool.
273 (get_frame_register_bytes): Return bool.
274 (safe_frame_unwind_memory): Return bool.
275 (deprecated_frame_register_read): Return bool.
276 (frame_unwinder_is): Return bool.
277 * frame.c (struct frame_info) <prev_arch::p>: Change type to
278 bool.
279 <this_id::p>: Likewise.
280 <prev_p>: Likewise.
281 (frame_stash_add): Return bool.
282 (get_frame_id): Use bool.
283 (frame_id_build_special) Use bool.
284 (frame_id_build_unavailable_stack): Use bool.
285 (frame_id_build): Use bool.
286 (frame_id_p): Return bool, use true/false instead of 1/0.
287 (frame_id_artificial_p): Likewise.
288 (frame_id_eq): Likewise.
289 (frame_id_inner): Likewise.
290 (get_frame_func_if_available): Likewise.
291 (read_frame_register_unsigned): Likewise.
292 (deprecated_frame_register_read): Likewise.
293 (get_frame_register_bytes): Likewise.
294 (has_stack_frames): Likewise.
295 (inside_main_func): Likewise.
296 (inside_entry_func): Likewise.
297 (get_frame_pc_if_available): Likewise.
298 (get_frame_address_in_block_if_available): Likewise.
299 (frame_unwinder_is): Likewise.
300 (safe_frame_unwind_memory): Likewise.
301 (frame_unwind_arch): Likewise.
302
fedfee88
SM
3032020-08-04 Simon Marchi <simon.marchi@efficios.com>
304
305 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
306 type to cached_copy_status.
307 (fprintf_frame): Adjust.
308 (get_frame_func_if_available): Adjust.
309 (frame_cleanup_after_sniffer): Adjust.
310
6cfa9b59
MW
3112020-08-04 Mark Wielaard <mark@klomp.org>
312
313 * MAINTAINERS (Write After Approval): Update email address.
314
66d6346b
SM
3152020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
316
317 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
318 dynamic_prop::const_val.
319
8a6d5e35
SM
3202020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
321
322 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
323 dynamic_prop::kind.
324
51d6067d
SM
3252020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
326
327 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
328
b26e2ae7
JM
3292020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
330
331 * configure.tgt: Set gdb_sim for bpf-*-* targets.
332
39791af2
JM
3332020-08-04 Weimin Pan <weimin.pan@oracle.com>
334 Jose E. Marchesi <jose.marchesi@oracle.com>
335
336 * configure.tgt: Add entry for bpf-*-*.
337 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
338 (ALLDEPFILES): Add bpf-tdep.c.
339 * bpf-tdep.c: New file.
340 * MAINTAINERS: Add bpf target and maintainer.
341 * NEWS: Mention the support for the new target.
342
521894aa
TV
3432020-08-04 Tom de Vries <tdevries@suse.de>
344
345 PR symtab/23270
346 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
347 Error.
348
5d6356e9
JB
3492020-08-03 John Baldwin <jhb@FreeBSD.org>
350
351 * syscalls/freebsd.xml: Regenerate.
352
0cf82b81
JB
3532020-08-03 John Baldwin <jhb@FreeBSD.org>
354
355 * syscalls/update-freebsd.sh: Fix usage and year range.
356
8f34b746
TV
3572020-08-03 Tom de Vries <tdevries@suse.de>
358
359 PR symtab/26333
360 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
361 DW_LNE_lo_user/DW_LNE_hi_user range.
362
5e500d33
SM
3632020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
364
365 PR ada/26318
366 * ada-lang.c (ada_modulus): Return 0 if property is not of const
367 kind.
368
78319c15
TBA
3692020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
370
371 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
372
4c55e970
TBA
3732020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
374
375 * breakpoint.c (set_breakpoint_condition): Update the condition
376 expressions after checking that the input condition string parses
377 successfully and does not contain junk at the end.
378
1e620590
TBA
3792020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
380
381 * breakpoint.c (set_breakpoint_condition): Update the
382 condition string after parsing the new condition successfully.
383
c8693053
RO
3842020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
385
386 * proc-api.c (_STRUCTURED_PROC): Don't define.
387 * proc-events.c: Likewise.
388 * proc-flags.c: Likewise.
389 * proc-why.c: Likewise.
390 * procfs.c: Likewise.
391
392 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
393 * configure, config.in: Regenerate.
394
5a99adb8
TV
3952020-07-30 Tom de Vries <tdevries@suse.de>
396
397 PR build/26320
398 * ui-style.h (struct ui_file_style::color): Wrap m_value and
399 m_red/m_green/m_blue in a union.
400
8ba83e91
TV
4012020-07-29 Tom de Vries <tdevries@suse.de>
402
403 PR tdep/26280
404 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
405
f75a0693
AB
4062020-07-28 Tom Tromey <tromey@adacore.com>
407
408 PR symtab/26270:
409 * symtab.h (find_pc_partial_function_sym): Declare.
410 * cli/cli-cmds.c (disassemble_command): Use
411 find_pc_partial_function_sym. Check asm_demangle.
412 * blockframe.c (cache_pc_function_sym): New global.
413 (cache_pc_function_name): Remove.
414 (clear_pc_function_cache): Update.
415 (find_pc_partial_function_sym): New function, from
416 find_pc_partial_function.
417 (find_pc_partial_function): Rewrite using
418 find_pc_partial_function_sym.
419
16f3242c
TT
4202020-07-28 Tom Tromey <tromey@adacore.com>
421
422 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
423 help. Add usage.
424
4888741a
TT
4252020-07-28 Tom Tromey <tromey@adacore.com>
426
427 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
428 <DW_OP_GNU_variable_value>: Cast to address type.
429
4d46f402
KR
4302020-07-28 Kamil Rytarowski <n54@gmx.com>
431
432 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
433 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
434 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
435 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
436 (nbsd_get_siginfo_type): New.
437 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
438 (_initialize_nbsd_tdep): New.
439
d70f978b
L
4402020-07-28 H.J. Lu <hongjiu.lu@intel.com>
441
442 PR binutils/26301
443 * configure: Regenerated.
444
377170fa
L
4452020-07-28 H.J. Lu <hongjiu.lu@intel.com>
446
447 PR binutils/26301
448 * configure: Regenerated.
449
43d5901d
AB
4502020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
451
452 * python/py-frame.c: Remove 'user-regs.h' include.
453 (frapy_read_register): Rewrite to make use of
454 gdbpy_parse_register_id.
455 * python/py-registers.c (gdbpy_parse_register_id): New function,
456 moved here from python/py-unwind.c. Updated the return type, and
457 also accepts register descriptor objects.
458 * python/py-unwind.c: Remove 'user-regs.h' include.
459 (pyuw_parse_register_id): Moved to python/py-registers.c.
460 (unwind_infopy_add_saved_register): Update to use
461 gdbpy_parse_register_id.
462 (pending_framepy_read_register): Likewise.
463 * python/python-internal.h (gdbpy_parse_register_id): Declare.
464
14fa8fb3
AB
4652020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
466
467 * python/py-registers.c: Add 'user-regs.h' include.
468 (register_descriptor_iter_find): New function.
469 (register_descriptor_iterator_object_methods): New static global
470 methods array.
471 (register_descriptor_iterator_object_type): Add pointer to methods
472 array.
473
ddce1758
JB
4742020-07-27 John Baldwin <jhb@FreeBSD.org>
475
476 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
477 for all architectures on FreeBSD 11.3 and later.
478
a4089f52
TT
4792020-07-27 Tom Tromey <tromey@adacore.com>
480
481 * gcore.h (load_corefile): Don't declare.
482
95420d30
TV
4832020-07-27 Tom de Vries <tdevries@suse.de>
484
485 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
486 * config.in: Regenerate.
487 * configure: Regenerate.
488
05a6b8c2
EZ
4892020-07-26 Eli Zaretskii <eliz@gnu.org>
490
491 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
492 ws2tcpip.h. When checking whether socklen_t type is defined, use
493 ws2tcpip.h if it is available and sys/socket.h isn't.
494 * configure: Regenerate.
495 * config.in: Regenerate.
496
e79eb02f
AB
4972020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
498
499 PR fortran/23051
500 PR fortran/26139
501 * valops.c (value_ind): Pass address to
502 readjust_indirect_value_type.
503 * value.c (readjust_indirect_value_type): Make parameter
504 non-const, and add extra address parameter. Resolve original type
505 before using it.
506 * value.h (readjust_indirect_value_type): Update function
507 signature and comment.
508
876518dd
TV
5092020-07-25 Tom de Vries <tdevries@suse.de>
510
511 PR symtab/26243
512 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
513 entries.
514
f6720b1c
AM
5152020-07-24 Aaron Merey <amerey@redhat.com>
516
517 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
518 * configure: Rebuild.
519
513487e1
KB
5202020-07-23 Kevin Buettner <kevinb@redhat.com>
521
522 PR corefiles/26294
523 * corelow.c (_initialize_corelow): Add period to help text
524 for "maintenance print core-file-backed-mappings".
525
e7bc9db8
PA
5262020-07-23 Pedro Alves <pedro@palves.net>
527
528 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
529 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
530 meanwhile.
531 * frame.c (frame_cache_generation, get_frame_cache_generation):
532 New.
533 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
534 (get_prev_frame_if_no_cycle): On exception, don't touch
535 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
536 * frame.h (get_frame_cache_generation): Declare.
537
90fcc466
TV
5382020-07-23 Tom de Vries <tdevries@suse.de>
539
540 PR tui/26282
541 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
542 New default constructor.
543
78344df7
AB
5442020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
545
546 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
547 exclude non-statement entries.
548
b089853a
KB
5492020-07-22 Kevin Buettner <kevinb@redhat.com>
550
551 * NEWS (New commands): Mention new command
552 "maintenance print core-file-backed-mappings".
553
09c2f5d4
KB
5542020-07-22 Kevin Buettner <kevinb@redhat.com>
555
556 * corelow.c (gdbcmd.h): Include.
557 (core_target::info_proc_mappings): New method.
558 (get_current_core_target): New function.
559 (maintenance_print_core_file_backed_mappings): New function.
560 (_initialize_corelow): Add core-file-backed-mappings to
561 "maint print" commands.
562
9c5ec5c2 5632020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 564
9c5ec5c2
KB
565 * linux-tdep.c (dump_note_entry_p): New function.
566 (linux_dump_mapping_p_ftype): New typedef.
567 (linux_find_memory_regions_full): Add new parameter,
568 should_dump_mapping_p.
569 (linux_find_memory_regions): Adjust call to
570 linux_find_memory_regions_full.
571 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
572 call to linux_find_memory_regions_full.
573
db082f59
KB
5742020-07-22 Kevin Buettner <kevinb@redhat.com>
575
576 * corelow.c (solist.h, unordered_map): Include.
577 (class core_target): Add field m_core_file_mappings and
578 method build_file_mappings.
579 (core_target::core_target): Call build_file_mappings.
580 (core_target::~core_target): Free memory associated with
581 m_core_file_mappings.
582 (core_target::build_file_mappings): New method.
583 (core_target::xfer_partial): Use m_core_file_mappings
584 for memory transfers.
585 * linux-tdep.c (linux_read_core_file_mappings): New
586 function.
587 (linux_core_info_proc_mappings): Rewrite to use
588 linux_read_core_file_mappings.
589 (linux_init_abi): Register linux_read_core_file_mappings.
590
7e183d27
KB
5912020-07-22 Kevin Buettner <kevinb@redhat.com>
592
593 * arch-utils.c (default_read_core_file_mappings): New function.
594 * arch-utils.c (default_read_core_file_mappings): Declare.
595 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
596 * gdbarch.h, gdbarch.c: Regenerate.
597
2735d421
KB
5982020-07-22 Kevin Buettner <kevinb@redhat.com>
599
600 PR corefiles/25631
601 * corelow.c (core_target:xfer_partial): Revise
602 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
603 case after first checking the stratum beneath the core
604 target.
605 (has_all_memory): Return true.
606 * target.c (raw_memory_xfer_partial): Revise comment
607 regarding use of has_all_memory.
608
e56cb451
KB
6092020-07-22 Kevin Buettner <kevinb@redhat.com>
610
611 * exec.h (section_table_xfer_memory): Revise declaration,
612 replacing section name parameter with an optional callback
613 predicate.
614 * exec.c (section_table_xfer_memory): Likewise.
615 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
616 of section_table_xfer_memory.
617
32fa152e
TT
6182020-07-22 Tom Tromey <tromey@adacore.com>
619
620 * mi/mi-cmd-stack.c (list_args_or_locals): Use
621 lookup_symbol_search_name.
622
a67a1c41
AB
6232020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
624
625 * python/py-registers.c (gdbpy_register_object_data_init): Remove
626 redundant local variable.
627 (gdbpy_get_register_descriptor): Extract descriptor vector as a
628 reference, not pointer, update code accordingly.
629
a7b4ff4f
SM
6302020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
631 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
632
633 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
634 * jit.c (jit_breakpoint_re_set_internal): Use the
635 `skip_jit_symbol_lookup` field.
636
2340e834
SM
6372020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
638 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
639
640 * jit.c (jit_read_descriptor): Define the descriptor address once,
641 use twice.
642 (jit_breakpoint_deleted): Move the declaration of the loop variable
643 `iter` into the loop header.
644 (jit_breakpoint_re_set_internal): Move the declaration of the local
645 variable `objf_data` to the first point of definition.
646 (jit_event_handler): Move the declaration of local variables
647 `code_entry`, `entry_addr`, and `objf` to their first point of use.
648 Rename `objf` to `jited`.
649
c1072906
SM
6502020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
651
652 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
653 Remove.
654 * jit.c (get_jiter_objfile_data): Update.
655
c8474dc3
TBA
6562020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
657 Simon Marchi <simon.marchi@polymtl.ca>
658
659 * jit.c (struct jit_program_space_data): Remove.
660 (jit_program_space_key): Remove.
661 (jiter_objfile_data::~jiter_objfile_data): Remove program space
662 stuff.
663 (get_jit_program_space_data): Remove.
664 (jit_breakpoint_deleted): Iterate on all of the program space's
665 objfiles.
666 (jit_inferior_init): Likewise.
667 (jit_breakpoint_re_set_internal): Likewise. Also change return
668 type to void.
669 (jit_breakpoint_re_set): Pass current_program_space to
670 jit_breakpoint_re_set_internal.
671
77208eb7
SM
6722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
673
674 * jit.h (struct jiter_objfile_data) <cached_code_address,
675 jit_breakpoint>: Move to here from ...
676 * jit.c (jit_program_space_data): ... here.
677 (jiter_objfile_data::~jiter_objfile_data): Update.
678 (jit_breakpoint_deleted): Update.
679 (jit_breakpoint_re_set_internal): Update.
680
8c1c720f
SM
6812020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
682
683 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
684 checks.
685 (jit_read_descriptor): Remove NULL check.
686 (jit_event_handler): Add an assertion.
687
0e74a041
SM
6882020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
689
690 * jit.h (struct jit_objfile_data): Split into...
691 (struct jiter_objfile_data): ... this ...
692 (struct jited_objfile_data): ... and this.
693 * objfiles.h (struct objfile) <jit_data>: Remove.
694 <jiter_data, jited_data>: New fields.
695 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
696 (jiter_objfile_data::~jiter_objfile_data): ... this.
697 (get_jit_objfile_data): Rename to ...
698 (get_jiter_objfile_data): ... this.
699 (add_objfile_entry): Update.
700 (jit_read_descriptor): Use get_jiter_objfile_data.
701 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
702 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
703 (jit_inferior_exit_hook): Use objfile's jited_data field.
704
238b5c9f
SM
7052020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
706
707 * jit.h: Forward-declare `struct minimal_symbol`.
708 (struct jit_objfile_data): Migrate to here from jit.c; also add a
709 constructor, destructor, and an objfile* field.
710 * jit.c (jit_objfile_data): Remove.
711 (struct jit_objfile_data): Migrate from here to jit.h.
712 (jit_objfile_data::~jit_objfile_data): New destructor
713 implementation with code moved from free_objfile_data.
714 (free_objfile_data): Delete.
715 (get_jit_objfile_data): Update to use the jit_data field of objfile.
716 (jit_find_objf_with_entry_addr): Ditto.
717 (jit_inferior_exit_hook): Ditto.
718 (_initialize_jit): Remove the call to
719 register_objfile_data_with_cleanup.
720 * objfiles.h (struct objfile) <jit_data>: New field.
721
fe053b9e
TBA
7222020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
723
724 * jit.h: Forward-declare `struct objfile`.
725 (jit_event_handler): Add a second parameter, the JITer objfile.
726 * jit.c (jit_read_descriptor): Change the signature to take the
727 JITer objfile as an argument instead of the jit_program_space_data.
728 (jit_inferior_init): Update the call to jit_read_descriptor.
729 (jit_event_handler): Use the new JITer objfile argument when calling
730 jit_read_descriptor.
731 * breakpoint.c (handle_jit_event): Update the call to
732 jit_event_handler to pass the JITer objfile.
733
4cec0c66
JB
7342020-07-21 John Baldwin <jhb@FreeBSD.org>
735
736 * gdbarch.c: Regenerate.
737 * gdbarch.h: Regenerate.
738 * gdbarch.sh (handle_segmentation_fault): Remove method.
739 * infrun.c (handle_segmentation_fault): Remove.
740 (print_signal_received_reason): Remove call to
741 handle_segmentation_fault.
742
0e42f66a
JB
7432020-07-21 John Baldwin <jhb@FreeBSD.org>
744
745 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
746 Rename to sparc64_linux_report_signal_info and add siggnal
747 argument.
748 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
749 instead of sparc64_linux_handle_segmentation_fault.
750
77bdfeb2
JB
7512020-07-21 John Baldwin <jhb@FreeBSD.org>
752
753 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
754 i386_linux_report_signal_info instead of
755 i386_linux_handle_segmentation_fault.
756 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
757 to i386_linux_report_signal_info and add siggnal argument.
758 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
759 of i386_linux_handle_segmentation_fault.
760 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
761 to i386_linux_report_signal_info and add siggnal argument.
762
ad97bfc5
JB
7632020-07-21 John Baldwin <jhb@FreeBSD.org>
764
765 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
766 hook if present.
767
272bb05c
JB
7682020-07-21 John Baldwin <jhb@FreeBSD.org>
769
770 * gdbarch.c: Regenerate.
771 * gdbarch.h: Regenerate.
772 * gdbarch.sh (report_signal_info): New method.
773 * infrun.c (print_signal_received_reason): Invoke gdbarch
774 report_signal_info hook if present.
775
baf8791e
AB
7762020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
777
778 * python/py-registers.c : Add 'unordered_map' include.
779 (gdbpy_new_reggroup): Renamed to...
780 (gdbpy_get_reggroup): ...this. Update to only create register
781 group descriptors when needed.
782 (gdbpy_reggroup_iter_next): Update.
783
f7306dac
AB
7842020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
785
786 * python/py-registers.c (gdbpy_register_object_data): New static
787 global.
788 (gdbpy_register_object_data_init): New function.
789 (gdbpy_new_register_descriptor): Renamed to...
790 (gdbpy_get_register_descriptor): ...this, and update to reuse
791 existing register descriptors where possible.
792 (gdbpy_register_descriptor_iter_next): Update.
793 (gdbpy_initialize_registers): Register new gdbarch data.
794
05c309a8
SM
7952020-07-21 Simon Marchi <simon.marchi@efficios.com>
796
797 * linux-nat.c (stopped_pids): Make static.
798
d1fd641e
SM
7992020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
800
801 PR ada/26235
802 * gdbtypes.c (ada_discrete_type_low_bound,
803 ada_discrete_type_high_bound): Handle undefined bounds.
804
1de14d77
KR
8052020-07-21 Kamil Rytarowski <n54@gmx.com>
806
807 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
808 declaration.
809 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
810 function.
811
ed810cc7
JB
8122020-07-20 John Baldwin <jhb@FreeBSD.org>
813
814 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
815 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
816 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
817 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
818 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
819 method.
820
ae5369e7
LC
8212020-07-20 Ludovic Courtès <ludo@gnu.org>
822
823 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
824 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
825 which are deprecated in Guile 3.0.
826 * configure.ac (try_guile_versions): Add "guile-3.0".
827 * configure (try_guile_versions): Regenerate.
828 * NEWS: Update entry.
829
68cf161c
LC
8302020-07-20 Ludovic Courtès <ludo@gnu.org>
831 Doug Evans <dje@google.com>
832
833 PR gdb/21104
834 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
835 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
836 USING_GUILE_BEFORE_2_2.
837 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
838 Change type to 'scm_t_port_type *'.
839 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
840 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
841 parameter and honor it. Update callers.
842 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
843 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
844 functions.
845 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
846 USING_GUILE_BEFORE_2_2.
847 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
848 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
849 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
850 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
851 and 'SCM_PORT_TYPE'.
852 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
853 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
854 (gdbscm_memory_port_read, gdbscm_memory_port_write)
855 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
856 [!USING_GUILE_BEFORE_2_2]: New functions.
857 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
858 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
859 'gdbscm_memory_port_read'.
860 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
861 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
862 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
863 function.
864 (ioscm_init_memory_port): Remove.
865 (ioscm_init_memory_port_stream): New function
866 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
867 function.
868 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
869 Return scm_from_uint (0).
870 (gdbscm_set_memory_port_read_buffer_size_x)
871 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
872 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
873 Return scm_from_uint (0).
874 (gdbscm_set_memory_port_write_buffer_size_x)
875 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
876 * configure.ac (try_guile_versions): Add "guile-2.2".
877 * configure: Regenerate.
878 * NEWS: Add entry.
879
aee91db3
TT
8802020-07-18 Tom Tromey <tom@tromey.com>
881
882 * linux-nat.c (linux_multi_process): Remove.
883 (linux_nat_target::supports_multi_process): Return true.
884
0e267416
AB
8852020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
886
887 * arch/riscv.c (riscv_tdesc_cache): Change map type.
888 (riscv_lookup_target_description): Return pointer out of
889 unique_ptr.
890 * target-descriptions.c (allocate_target_description): Add
891 comment.
892 (target_desc_deleter::operator()): Likewise.
893 * target-descriptions.h (struct target_desc_deleter): Moved to
894 gdbsupport/tdesc.h.
895 (target_desc_up): Likewise.
896
f80c8ec4
TT
8972020-07-17 Tom Tromey <tromey@adacore.com>
898
899 * linux-nat.c (linux_nat_target::supports_non_stop)
900 (linux_nat_target::always_non_stop_p): Use "true".
901 (linux_nat_target::supports_disable_randomization): Use "true" and
902 "false".
903
d0ce17d8
CT
9042020-07-16 Caroline Tice <cmtice@google.com>
905
906 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
907 (RNGLIST_HEADER_SIZE64): New constant definition.
908 (struct dwop_section_names): Add rnglists_dwo.
909 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
910 (struct loclist_header): Rename to 'loclists_rnglists_header'.
911 (struct dwo_sections): Add rnglists field.
912 (read_attribut_reprocess): Add tag parameter.
913 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
914 (cu_debug_rnglists_section): New function (decl & definition).
915 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
916 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
917 die whose range is being checked; get rnglist section from
918 cu_debug_rnglists_section, to get from either objfile or dwo file as
919 appropriate. Add cases for DW_RLE_base_addressx,
920 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
921 the base address to DW_RLE_offset_pairs (not to all ranges), moving
922 test inside if-condition and updating complaint message.
923 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
924 dwarf2_rnglists_process.
925 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
926 dwarf2_ranges_process.
927 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
928 need_ranges_base and update comment appropriately. Also pass die tag
929 to dwarf2_ranges_read.
930 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
931 need_ranges_base and update comment appropriately. Also pass die tag
932 to dwarf2_ranges_process.
933 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
934 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
935 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
936 need_ranges_base and update comment appropriately. Also pass die tag
937 to read_attribute_reprocess and dwarf2_ranges_read.
938 (read_loclist_header): Rename function to read_loclists_rnglists_header,
939 and update function comment appropriately.
940 (read_loclist_index): Call read_loclists_rnglists_header instead of
941 read_loclist_header.
942 (read_rnglist_index): New function.
943 (read_attribute_reprocess): Add tag parameter. Add code for
944 DW_FORM_rnglistx, passing tag to read_rnglist_index.
945 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
946
3dcc261c
AB
9472020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
948
949 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
950 being resolved.
951
ccb9eba6
AB
9522020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
953
954 * arch-utils.c (show_architecture): Update formatting of messages.
955
cf88be68
SM
9562020-07-12 Simon Marchi <simon.marchi@efficios.com>
957
958 * gdbtypes.h (struct type) <bounds>: Handle array and string
959 types.
960 * ada-lang.c (assign_aggregate): Use type::bounds on
961 array/string type.
962 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
963 * c-varobj.c (c_number_of_children): Likewise.
964 (c_describe_child): Likewise.
965 * eval.c (evaluate_subexp_for_sizeof): Likewise.
966 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
967 (f_type_print_base): Likewise.
968 * f-valprint.c (f77_array_offset_tbl): Likewise.
969 (f77_get_upperbound): Likewise.
970 (f77_print_array_1): Likewise.
971 * guile/scm-type.c (gdbscm_type_range): Likewise.
972 * m2-typeprint.c (m2_array): Likewise.
973 (m2_is_long_set_of_type): Likewise.
974 * m2-valprint.c (get_long_set_bounds): Likewise.
975 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
976 * python/py-type.c (typy_range): Likewise.
977 * rust-lang.c (rust_internal_print_type): Likewise.
978 * type-stack.c (type_stack::follow_types): Likewise.
979 * valarith.c (value_subscripted_rvalue): Likewise.
980 * valops.c (value_cast): Likewise.
981
509971ae
SM
9822020-07-12 Simon Marchi <simon.marchi@efficios.com>
983
984 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
985 callers to use the equivalent accessor methods.
986
107406b7
SM
9872020-07-12 Simon Marchi <simon.marchi@efficios.com>
988
989 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
990 (struct type) <bit_stride>: New method.
991 (TYPE_BIT_STRIDE): Remove.
992 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
993
bb789949
SM
9942020-07-12 Simon Marchi <simon.marchi@efficios.com>
995
996 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
997 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
998 callers to use the equivalent accessor methods instead.
999
39498edb
SM
10002020-07-12 Simon Marchi <simon.marchi@efficios.com>
1001
1002 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1003 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1004 callers to use the equivalent accessor methods instead.
1005
3b606f38
SM
10062020-07-12 Simon Marchi <simon.marchi@efficios.com>
1007
1008 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1009 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1010 to use dynamic_prop::kind.
1011
064d9cb9
SM
10122020-07-12 Simon Marchi <simon.marchi@efficios.com>
1013
1014 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1015 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1016 to get the bound property's kind and check against
1017 PROP_UNDEFINED.
1018
5537ddd0
SM
10192020-07-12 Simon Marchi <simon.marchi@efficios.com>
1020
1021 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1022 all callers to use type::range_bounds followed by
1023 dynamic_prop::{low,high}.
1024
8c2e4e06
SM
10252020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1026
1027 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1028 const_val, set_const_val, baton, set_locexpr, set_loclist,
1029 set_addr_offset, variant_parts, set_variant_parts,
1030 original_type, set_original_type>: New methods.
1031 <kind>: Rename to...
1032 <m_kind>: ... this. Update all users to use the new methods
1033 instead.
1034 <data>: Rename to...
1035 <m_data>: ... this. Update all users to use the new methods
1036 instead.
1037
7c6f2712
SM
10382020-07-12 Simon Marchi <simon.marchi@efficios.com>
1039
1040 * gdbtypes.c (get_discrete_bounds): Return failure if
1041 the range type's bounds are not both defined and constant
1042 values.
1043 (get_array_bounds): Update comment. Remove undefined bound check.
1044
599088e3
SM
10452020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1046
1047 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1048 the type::bounds method directly.
1049
c4dfcb36
SM
10502020-07-12 Simon Marchi <simon.marchi@efficios.com>
1051
1052 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1053 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1054 are used to set the range type's bounds to use set_bounds.
1055
0a278aa7
PW
10562020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1057
1058 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1059
cce20f10
PA
10602020-07-10 Pedro Alves <pedro@palves.net>
1061
1062 * gdbthread.h (inferior_ref): Define.
1063 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1064 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1065 * thread.c
1066 (scoped_restore_current_thread::restore):
1067 Adjust to gdb::ref_ptr.
1068 (scoped_restore_current_thread::~scoped_restore_current_thread):
1069 Remove manual decref handling.
1070 (scoped_restore_current_thread::scoped_restore_current_thread):
1071 Adjust to use
1072 inferior_ref::new_reference/thread_info_ref::new_reference.
1073 Incref the thread before calling get_frame_id instead of after.
1074 Let TARGET_CLOSE_ERROR propagate.
1075
6d7aa592
PA
10762020-07-10 Pedro Alves <pedro@palves.net>
1077
1078 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1079 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1080 NOT_AVAILABLE_ERROR.
1081 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1082 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1083
b3e3a4c1
SM
10842020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1085 Pedro Alves <pedro@palves.net>
1086
1087 PR gdb/26199
1088 * infrun.c (threads_are_resumed_pending_p): Delete.
1089 (do_target_wait): Remove threads_are_executing and
1090 threads_are_resumed_pending_p checks from the inferior_matches
1091 lambda. Update comments.
1092
d6cc5d98
PA
10932020-07-10 Pedro Alves <pedro@palves.net>
1094
1095 PR gdb/26199
1096 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1097 executing threads.
1098
7d3badc6
PA
10992020-07-10 Pedro Alves <pedro@palves.net>
1100
1101 PR gdb/26199
1102 * infrun.c (handle_no_resumed): Handle multiple targets.
1103
42bd97a6
PA
11042020-07-10 Pedro Alves <pedro@palves.net>
1105
1106 PR gdb/26199
1107 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1108 target_is_async_p.
1109
43667cc6
PA
11102020-07-10 Pedro Alves <pedro@palves.net>
1111
1112 PR gdb/26199
1113 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1114 threads, not all threads.
1115
96118d11
PA
11162020-07-10 Pedro Alves <pedro@palves.net>
1117
1118 PR gdb/26199
1119 * remote.c (remote_target::open_1): Pass remote target pointer as
1120 data to create_async_event_handler.
1121 (remote_async_inferior_event_handler): Mark async event handler
1122 before returning if the remote target still has either pending
1123 events or unacknowledged notifications.
1124
54904d81
JB
11252020-07-10 John Baldwin <jhb@FreeBSD.org>
1126
1127 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1128 declaration.
1129 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1130 function.
1131
f37e5866
JB
11322020-07-09 John Baldwin <jhb@FreeBSD.org>
1133
1134 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1135 inferior_ptid.
1136
fc238d4a
JB
11372020-07-09 John Baldwin <jhb@FreeBSD.org>
1138
1139 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1140 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1141 AT_FREEBSD_PS_STRINGS.
1142
6e2469ff
HD
11432020-07-08 Hannes Domani <ssbssa@yahoo.de>
1144
1145 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1146 of debugfile path on Windows.
1147
d1076c41
JB
11482020-07-08 John Baldwin <jhb@FreeBSD.org>
1149
1150 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1151 argument to 'data'.
1152
15f3b077
TT
11532020-07-08 Tom Tromey <tromey@adacore.com>
1154
1155 * ada-lang.c (ada_exception_message_1): Use read_memory.
1156
9fc501fd
AB
11572020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1158
1159 PR python/22748
1160 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1161 special handling for inline frames.
1162 * findvar.c (value_of_register_lazy): Skip inline frames when
1163 creating lazy register values.
1164 * frame.c (frame_id_computed_p): Delete definition.
1165 * frame.h (frame_id_computed_p): Delete declaration.
1166
64cb3757
AB
11672020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1168
1169 * NEWS: Mention additions to Python API.
1170 * python/py-arch.c (archpy_register_groups): New function.
1171 (arch_object_methods): Add 'register_groups' method.
1172 * python/py-registers.c (reggroup_iterator_object): New struct.
1173 (reggroup_object): New struct.
1174 (gdbpy_new_reggroup): New function.
1175 (gdbpy_reggroup_to_string): New function.
1176 (gdbpy_reggroup_name): New function.
1177 (gdbpy_reggroup_iter): New function.
1178 (gdbpy_reggroup_iter_next): New function.
1179 (gdbpy_new_reggroup_iterator): New function
1180 (gdbpy_initialize_registers): Register new types.
1181 (reggroup_iterator_object_type): Define new Python type.
1182 (gdbpy_reggroup_getset): New static global.
1183 (reggroup_object_type): Define new Python type.
1184 * python/python-internal.h
1185
0f767f94
AB
11862020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1187
1188 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1189 * python/py-arch.c (archpy_registers): New function.
1190 (arch_object_methods): Add 'registers' method.
1191 * python/py-registers.c: New file.
1192 * python/python-internal.h
1193 (gdbpy_new_register_descriptor_iterator): Declare.
1194 (gdbpy_initialize_registers): Declare.
1195 * python/python.c (do_start_initialization): Call
1196 gdbpy_initialize_registers.
1197 * NEWS: Mention additions to the Python API.
1198
87dbc774
AB
11992020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1200
1201 * NEWS: Mention new Python API method.
1202 * python/py-unwind.c (pending_framepy_architecture): New function.
1203 (pending_frame_object_methods): Add architecture method.
1204
3bc98c0c
AB
12052020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1206
1207 * gdbarch.c: Regenerate.
1208 * gdbarch.h: Regenerate.
1209 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1210 (gdbarch_data): Use internal_error for the case where
1211 deprecated_set_gdbarch_data was originally needed.
1212 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1213 and use passed in obstack.
1214 (libunwind_frame_set_descr): Should no longer get back NULL from
1215 gdbarch_data.
1216 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1217 type.
1218 * user-regs.c (user_regs_init): Update parameters, and use passed
1219 in obstack.
1220 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1221 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1222
d8cc8af6
TV
12232020-07-06 Tom de Vries <tdevries@suse.de>
1224
1225 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1226 End-Of-Sequence in lte_is_less_than.
1227 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1228 "gdb: Don't reorder line table entries too much when sorting".
1229
947f7597
TV
12302020-07-06 Tom de Vries <tdevries@suse.de>
1231
1232 PR tui/26205
1233 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1234
1e7c1b22
TV
12352020-07-05 Tom de Vries <tdevries@suse.de>
1236
1237 PR build/26187
1238 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1239 std::uncaught_exceptions instead of deprecated
1240 std::uncaught_exception.
1241
a36158ec
SM
12422020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1243
1244 * macroexp.h (macro_stringify): Return
1245 gdb::unique_xmalloc_ptr<char>.
1246 * macroexp.c (macro_stringify): Likewise.
1247 * macrotab.c (fixup_definition): Update.
1248
14d960c8
SM
12492020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1250
1251 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1252 (lex_one_token): Update.
1253 * macroexp.c (struct macro_buffer) <release>: Return
1254 gdb::unique_xmalloc_ptr<char>.
1255 (macro_stringify): Update.
1256 (macro_expand): Update.
1257 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1258 * macroexp.h (macro_expand_next): Likewise.
1259
211d5b1c
SM
12602020-07-02 Simon Marchi <simon.marchi@efficios.com>
1261
1262 * macroexp.h (macro_lookup_ftype): Remove.
1263 (macro_expand, macro_expand_once, macro_expand_next): Remove
1264 lookup function parameters, add scope parameter.
1265 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1266 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1267 * macroscope.h (standard_macro_lookup): Change parameter type
1268 to macro_scope.
1269 * macroscope.c (standard_macro_lookup): Likewise.
1270 * c-exp.y (lex_one_token): Update.
1271 * macrocmd.c (macro_expand_command): Likewise.
1272 (macro_expand_once_command): Likewise.
1273
b1a35af2
SM
12742020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1275
1276 * inf-loop.c (inferior_event_handler): Remove client_data param.
1277 * inf-loop.h (inferior_event_handler): Likewise.
1278 * infcmd.c (step_1): Adjust.
1279 * infrun.c (proceed): Adjust.
1280 (fetch_inferior_event): Remove client_data param.
1281 (infrun_async_inferior_event_handler): Adjust.
1282 * infrun.h (fetch_inferior_event): Remove `void *` param.
1283 * linux-nat.c (handle_target_event): Adjust.
1284 * record-btrace.c (record_btrace_handle_async_inferior_event):
1285 Adjust.
1286 * record-full.c (record_full_async_inferior_event_handler):
1287 Adjust.
1288 * remote.c (remote_async_inferior_event_handler): Adjust.
1289
1cdf9e33
TT
12902020-07-01 Tom Tromey <tom@tromey.com>
1291
1292 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1293 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1294
32c1e210
TT
12952020-07-01 Tom Tromey <tom@tromey.com>
1296
1297 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1298 tui_gen_win_info.
1299 (tui_win_info::make_window): Merge with
1300 tui_gen_win_info::make_window.
1301 (tui_win_info::make_visible): Move from tui_gen_win_info.
1302 * tui/tui-win.c (tui_win_info::max_width): Move from
1303 tui_gen_win_info.
1304 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1305 type.
1306 <window_factory>: Likewise.
1307 * tui/tui-layout.c (tui_win_info::resize): Move from
1308 tui_gen_win_info.
1309 (make_standard_window): Change return type.
1310 (get_locator_window, tui_get_window_by_name): Likewise.
1311 (tui_layout_window::apply): Remove a cast.
1312 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1313 (struct tui_win_info): Merge with tui_gen_win_info.
1314 (struct tui_gen_win_info): Remove.
1315
a30cb6da
TT
13162020-07-01 Tom Tromey <tom@tromey.com>
1317
1318 * tui/tui-stack.h (struct tui_locator_window): Derive from
1319 tui_win_info.
1320 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1321 <can_box>: New method.
1322
1eb2161f
TT
13232020-07-01 Tom Tromey <tom@tromey.com>
1324
1325 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1326
7134f2eb
TT
13272020-07-01 Tom Tromey <tom@tromey.com>
1328
1329 * tui/tui-regs.c (tui_data_window::display_registers_from)
1330 (tui_data_window::display_registers_from)
1331 (tui_data_window::first_data_item_displayed)
1332 (tui_data_window::delete_data_content_windows): Update.
1333 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1334 Remove.
1335 (tui_data_window::check_register_values): Update.
1336 (tui_data_item_window::rerender): Add parameters. Update.
1337 (tui_data_item_window::refresh_window): Remove.
1338 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1339 virtual.
1340 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1341 tui_gen_win_info.
1342 <refresh_window, max_height, min_height>: Remove.
1343 <rerender>: Add parameters.
1344 <x, y, visible>: New members.
1345 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1346 <m_item_width>: New member.
1347
22b7b041
TT
13482020-07-01 Tom Tromey <tom@tromey.com>
1349
1350 * tui/tui-regs.c (tui_data_window::show_register_group)
1351 (tui_data_window::check_register_values): Update.
1352 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1353 from item_no.
1354
c9753adb
TT
13552020-07-01 Tom Tromey <tom@tromey.com>
1356
1357 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1358 useless "if".
1359
9ab26b4a
TT
13602020-07-01 Tom Tromey <tom@tromey.com>
1361
1362 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1363 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1364
e555083f
TT
13652020-07-01 Tom Tromey <tom@tromey.com>
1366
1367 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1368 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1369 (struct tui_line_or_address): Move from tui-data.h.
1370 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1371 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1372 (tui_cmd_window, tui_source_window_base, tui_source_window)
1373 (tui_disasm_window): Don't declare.
1374 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1375 to tui-winsource.h.
1376 (SINGLE_KEY): Move to tui-stack.c.
1377
7a02bab7
TT
13782020-07-01 Tom Tromey <tom@tromey.com>
1379
1380 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1381 std::string.
1382 * tui/tui-regs.c (class tab_expansion_file): New.
1383 (tab_expansion_file::write): New method.
1384 (tui_register_format): Change return type. Use
1385 tab_expansion_file.
1386 (tui_get_register, tui_data_window::display_registers_from)
1387 (tui_data_item_window::rerender): Update.
1388 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1389 * tui/tui-io.c (tui_expand_tabs): Remove.
1390
ea68593b
TT
13912020-07-01 Tom Tromey <tom@tromey.com>
1392
1393 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1394
a8caed5d
FS
13952020-07-01 Fangrui Song <maskray@google.com>
1396
1397 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1398
9cdf9820
AKS
13992020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1400
1401 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1402 forms for DW_AT_associated and DW_AT_allocated attributes,
1403 which is already checked in function attr_to_dynamic_prop.
1404
a1520ad8
TT
14052020-06-30 Tom Tromey <tromey@adacore.com>
1406
1407 * dwarf2/read.c (quirk_rust_enum): Correctly call
1408 alloc_rust_variant for default-less enum.
1409
5ac58899
TT
14102020-06-30 Tom Tromey <tromey@adacore.com>
1411
1412 PR build/26183:
1413 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1414 gdb::to_string.
1415
19b187a9
SM
14162020-06-29 Simon Marchi <simon.marchi@efficios.com>
1417
1418 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1419 * gdbarch.h: Re-generate.
1420
cd4c4c07
TT
14212020-06-28 Tom Tromey <tom@tromey.com>
1422
1423 * command.h (cmd_types): Remove.
1424 (cmd_type): Don't declare.
1425 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1426 typedef.
1427 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1428 * cli/cli-decode.c (cmd_type): Remove.
1429
05779d57
PA
14302020-06-27 Pedro Alves <palves@redhat.com>
1431
1432 * fork-child.c (prefork_hook): Adjust.
1433 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1434 Delete.
1435 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1436 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1437 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1438 Remove declarations.
1439 (struct inferior) <set_tty, tty>: New methods.
1440 (struct inferior) <terminal>: Rename to ...
1441 (struct inferior) <m_terminal>: ... this and make private.
1442 * main.c (captured_main_1): Adjust.
1443 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1444 (mi_cmd_inferior_tty_show): Adjust.
1445 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1446 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1447
1776e3e5
NA
14482020-06-26 Nick Alcock <nick.alcock@oracle.com>
1449
1450 * configure.ac: Add --enable-libctf: handle --disable-static
1451 properly.
1452 * acinclude.m4: sinclude ../config/enable.m4.
1453 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1454 (LIBCTF): Substitute in.
1455 (CTF_DEPS): New, likewise.
1456 (CLIBS): libctf needs symbols from libbfd: move earlier.
1457 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1458 flags.
1459 * ctfread.c: Surround in ENABLE_LIBCTF.
1460 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1461 * configure: Regenerate.
1462 * config.in: Likewise.
1463
58373b80
SM
14642020-06-25 Simon Marchi <simon.marchi@efficios.com>
1465
1466 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1467
277474ee
SM
14682020-06-25 Simon Marchi <simon.marchi@efficios.com>
1469
1470 * inferior.h (struct inferior) <terminal>: Change type to
1471 gdb::unique_xmalloc_ptr<char>.
1472 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1473 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1474 field, adjust to unique pointer.
1475 (get_inferior_io_terminal): Adjust to unique pointer.
1476
6d74da72
AB
14772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1478
1479 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1480 registers, not just the known core set of registers.
1481
2e52d038
AB
14822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1483
1484 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1485 fflags, frm, and fcsr registers.
1486 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1487 restore groups.
1488 (riscv_tdesc_unknown_reg): New function.
1489 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1490 tdesc_use_registers.
1491 * riscv-tdep.h (struct gdbarch_tdep): Add
1492 unknown_csrs_first_regnum, unknown_csrs_count,
1493 duplicate_fflags_regnum, duplicate_frm_regnum, and
1494 duplicate_fcsr_regnum fields.
1495
be64fd07
AB
14962020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1497
1498 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1499 callback, use the callback (when not null) to help number unknown
1500 registers.
1501 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1502 (tdesc_use_registers): Add extra parameter to declaration.
1503
3b9fce96
AB
15042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1505
1506 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1507 in the file.
1508 (class riscv_pending_register_alias): Likewise.
1509 (riscv_register_feature::register_info): Change 'required_p' field
1510 to 'required', and change its type. Add 'check' member function.
1511 (riscv_register_feature::register_info::check): Define new member
1512 function.
1513 (riscv_xreg_feature): Change initialisation of 'required' field.
1514 (riscv_freg_feature): Likewise.
1515 (riscv_virtual_feature): Likewise.
1516 (riscv_csr_feature): Likewise.
1517 (riscv_check_tdesc_feature): Take extra parameter, the csr
1518 tdesc_feature, rewrite the function to use the new
1519 riscv_register_feature::register_info::check function.
1520 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1521
865bad26
AB
15222020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1523
1524 * features/Makefile: Remove all references to the deleted files
1525 below.
1526 * features/riscv/32bit-csr.c: Deleted.
1527 * features/riscv/32bit-csr.xml: Deleted.
1528 * features/riscv/64bit-csr.c: Deleted.
1529 * features/riscv/64bit-csr.xml: Deleted.
1530 * features/riscv/rebuild-csr-xml.sh: Deleted.
1531
ed69cbc8
AB
15322020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1533
1534 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1535 whitespace error for declaration of names member variable.
1536 (struct riscv_register_feature): Add new prefer_first_name member
1537 variable, and fix whitespace error in declaration of registers.
1538 (riscv_xreg_feature): Initialize prefer_first_name field.
1539 (riscv_freg_feature): Likewise.
1540 (riscv_virtual_feature): Likewise.
1541 (riscv_csr_feature): Likewise.
1542 (riscv_register_name): Expand on comments. Remove register name
1543 modifications for CSR and virtual registers.
1544
4445e8f5
AB
15452020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1546
1547 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1548 errors.
1549
767a879e
AB
15502020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1551
1552 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1553 riscv-opc.h.
1554 (class riscv_pending_register_alias): New class.
1555 (riscv_check_tdesc_feature): Take vector of pending aliases and
1556 populate it as appropriate.
1557 (riscv_setup_register_aliases): Delete.
1558 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1559 to riscv_check_tdesc_feature in all cases. Use the vector to
1560 create the register aliases.
1561
bb6e55f3
RO
15622020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1563
1564 * sol2-tdep.c (sol2_static_transform_name): Remove.
1565 (sol2_init_abi): Don't register it.
1566 * gdbarch.sh (static_transform_name): Remove.
1567 * gdbarch.c, gdbarch.h: Regenerate.
1568
1569 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1570 gdbarch_static_transform_name.
1571 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1572 * stabsread.c (define_symbol) <'X'>: Remove.
1573 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1574 handling.
1575 <'V'>: Likewise.
1576 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1577 <'S'>: Remove call to gdbarch_static_transform_name.
1578
c6d36836
RO
15792020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1580
1581 * procfs.c (procfs_pre_trace): New function.
1582 (procfs_target::create_inferior): Pass it to fork_inferior.
1583
a7e6196b
RO
15842020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1585
1586 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1587 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1588 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1589 sol2-tdep.o, sparc-sol2-tdep.o.
1590 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1591 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1592 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1593 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1594
d412e696
RO
15952020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1596
1597 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1598 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1599 Call sol2_init_abi.
1600 Remove calls to set_gdbarch_skip_solib_resolver,
1601 set_gdbarch_core_pid_to_str.
1602 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1603 (i386_sol2_static_transform_name): Remove.
1604 (i386_sol2_init_abi): Call sol2_init_abi.
1605 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1606 set_gdbarch_static_transform_name,
1607 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1608 Use sol2_sigtramp_p.
1609 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1610 (sol2_sigtramp_p): New function.
1611 (sol2_static_transform_name): New function.
1612 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1613 (sol2_init_abi): New function.
1614 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1615 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1616 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1617 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1618 (sparc_sol2_static_transform_name): Remove.
1619 (sparc32_sol2_init_abi): Call sol2_init_abi.
1620 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1621 set_gdbarch_static_transform_name,
1622 set_gdbarch_skip_solib_resolver,
1623 set_gdbarch_core_pid_to_str.
1624 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1625 (sparc_sol2_static_transform_name): Remove
1626 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1627 call sol2_sigtramp_p.
1628 (sparc64_sol2_init_abi): Call sol2_init_abi.
1629 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1630 set_gdbarch_static_transform_name,
1631 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1632
a8654e7d
PW
16332020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1634
1635 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1636 * exec.c (validate_exec_file): If from_tty, set both
1637 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1638 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1639 and from_tty, unconditionally ask a confirmation.
1640
caa7fd04
AB
16412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1642
1643 * target-descriptions.c (tdesc_architecture_name): Protect against
1644 NULL pointer dereference.
1645 (maint_print_xml_tdesc_cmd): New function.
1646 (_initialize_target_descriptions): Register new 'maint print
1647 xml-tdesc' command and give it the filename completer.
1648 * NEWS: Mention new 'maint print xml-tdesc' command.
1649
fbf42f4e
AB
16502020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1651
1652 * target-descriptions.c (class tdesc_compatible_info): New class.
1653 (struct target_desc): Change type of compatible vector.
1654 (tdesc_compatible_p): Update for change in type of
1655 target_desc::compatible.
1656 (tdesc_compatible_info_list): New function.
1657 (tdesc_compatible_info_arch_name): New function.
1658 (tdesc_add_compatible): Update for change in type of
1659 target_desc::compatible.
1660 (print_c_tdesc::visit_pre): Likewise.
1661
20821f4e
AB
16622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1663
1664 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1665 whitespace to underscore.
1666 (maint_print_c_tdesc_cmd): Use fake filename for target
1667 descriptions that came from the target.
1668 (_initialize_target_descriptions): Add filename command completion
1669 for 'maint print c-tdesc'.
1670
1fb5ee62
SM
16712020-06-23 Simon Marchi <simon.marchi@efficios.com>
1672
1673 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1674 lines.
1675
fc3ecb3e
SM
16762020-06-23 Simon Marchi <simon.marchi@efficios.com>
1677
1678 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1679 lines.
1680 (dwarf2_find_location_expression): Likewise.
1681 (call_site_parameter_matches): Likewise.
1682 (dwarf2_compile_expr_to_ax): Likewise.
1683 (disassemble_dwarf_expression): Likewise.
1684 (loclist_describe_location): Likewise.
1685
236ef034
PA
16862020-06-23 Pedro Alves <palves@redhat.com>
1687
1688 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1689 progspace-and-thread.h. Include scoped-mock-context.h instead.
1690 (register_to_value_test): Use scoped_mock_context.
1691 * regcache.c: Include "scoped-mock-context.h".
1692 (cooked_read_test): Don't error out if a target is already pushed.
1693 Use scoped_mock_context. Adjust.
1694 * scoped-mock-context.h: New file.
1695
39e7ecca
AB
16962020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1697
1698 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1699 initializer.
1700 (ada_language::is_string_type_p): New member function.
1701 * c-lang.c (c_language_data): Delete la_is_string_type_p
1702 initializer.
1703 (cplus_language_data): Likewise.
1704 (asm_language_data): Likewise.
1705 (minimal_language_data): Likewise.
1706 * d-lang.c (d_language_data): Likewise.
1707 * f-lang.c (f_is_string_type_p): Delete function, implementation
1708 moved to f_language::is_string_type_p.
1709 (f_language_data): Delete la_is_string_type_p initializer.
1710 (f_language::is_string_type_p): New member function,
1711 implementation from f_is_string_type_p.
1712 * go-lang.c (go_is_string_type_p): Delete function, implementation
1713 moved to go_language::is_string_type_p.
1714 (go_language_data): Delete la_is_string_type_p initializer.
1715 (go_language::is_string_type_p): New member function,
1716 implementation from go_is_string_type_p.
1717 * language.c (language_defn::is_string_type_p): Define new member
1718 function.
1719 (default_is_string_type_p): Make static, add comment copied from
1720 header file.
1721 (unknown_language_data): Delete la_is_string_type_p initializer.
1722 (unknown_language::is_string_type_p): New member function.
1723 (auto_language_data): Delete la_is_string_type_p initializer.
1724 (auto_language::is_string_type_p): New member function.
1725 * language.h (language_data): Delete la_is_string_type_p field.
1726 (language_defn::is_string_type_p): Declare new function.
1727 (default_is_string_type_p): Delete desclaration, move comment to
1728 definition.
1729 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1730 moved to m2_language::is_string_type_p.
1731 (m2_language_data): Delete la_is_string_type_p initializer.
1732 (m2_language::is_string_type_p): New member function,
1733 implementation from m2_is_string_type_p.
1734 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1735 initializer.
1736 * opencl-lang.c (opencl_language_data): Likewise.
1737 * p-lang.c (pascal_is_string_type_p): Delete function,
1738 implementation moved to pascal_language::is_string_type_p.
1739 (pascal_language_data): Delete la_is_string_type_p initializer.
1740 (pascal_language::is_string_type_p): New member function,
1741 implementation from pascal_is_string_type_p.
1742 * rust-lang.c (rust_is_string_type_p): Delete function,
1743 implementation moved to rust_language::is_string_type_p.
1744 (rust_language_data): Delete la_is_string_type_p initializer.
1745 (rust_language::is_string_type_p): New member function,
1746 implementation from rust_is_string_type_p.
1747 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1748 is_string_type_p.
1749
4ffc13fb
AB
17502020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1751
1752 * ada-lang.c (ada_language_data): Delete la_print_typedef
1753 initializer.
1754 (ada_language::print_typedef): New member function.
1755 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1756 (cplus_language_data): Likewise.
1757 (asm_language_data): Likewise.
1758 (minimal_language_data): Likewise.
1759 * d-lang.c (d_language_data): Likewise.
1760 * f-lang.c (f_language_data): Likewise.
1761 (f_language::print_typedef): New member function.
1762 * go-lang.c (go_language_data): Delete la_print_typedef
1763 initializer.
1764 * language.c (language_defn::print_typedef): Define member
1765 function.
1766 (unknown_language_data): Delete la_print_typedef initializer.
1767 (unknown_language::print_typedef): New member function.
1768 (auto_language_data): Delete la_print_typedef initializer.
1769 (auto_language::print_typedef): New member function.
1770 * language.h (language_data): Delete la_print_typedef field.
1771 (language_defn::print_typedef): Declare new member function.
1772 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1773 (default_print_typedef): Delete declaration.
1774 * m2-lang.c (m2_language_data): Delete la_print_typedef
1775 initializer.
1776 (m2_language::print_typedef): New member function.
1777 * objc-lang.c (objc_language_data): Delete la_print_typedef
1778 initializer.
1779 * opencl-lang.c (opencl_language_data): Likewise.
1780 * p-lang.c (pascal_language_data): Likewise.
1781 (pascal_language::print_typedef): New member function.
1782 * rust-lang.c (rust_print_typedef): Delete function,
1783 implementation moved to rust_language::print_typedef.
1784 (rust_language): Delete la_print_typedef initializer.
1785 (rust_language::print_typedef): New member function,
1786 implementation from rust_print_typedef.
1787 * typeprint.c (default_print_typedef): Delete.
1788
d711ee67
AB
17892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1790
1791 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1792 (ada_language::printstr): New member function.
1793 * c-lang.c (c_language_data): Delete la_printstr initializer.
1794 (cplus_language_data): Likewise.
1795 (asm_language_data): Likewise.
1796 (minimal_language_data): Likewise.
1797 * d-lang.c (d_language_data): Likewise.
1798 * f-lang.c (f_printstr): Rename to f_language::printstr.
1799 (f_language_data): Delete la_printstr initializer.
1800 (f_language::printstr): New member function, implementation from
1801 f_printstr.
1802 * go-lang.c (go_language_data): Delete la_printstr initializer.
1803 * language.c (language_defn::printstr): Define new member
1804 function.
1805 (unk_lang_printstr): Delete.
1806 (unknown_language_data): Delete la_printstr initializer.
1807 (unknown_language::printstr): New member function.
1808 (auto_language_data): Delete la_printstr initializer.
1809 (auto_language::printstr): New member function.
1810 * language.h (language_data): Delete la_printstr field.
1811 (language_defn::printstr): Declare new member function.
1812 (LA_PRINT_STRING): Update call to printstr.
1813 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1814 (m2_language_data): Delete la_printstr initializer.
1815 (m2_language::printstr): New member function, implementation from
1816 m2_printstr.
1817 * objc-lang.c (objc_language_data): Delete la_printstr
1818 initializer.
1819 * opencl-lang.c (opencl_language_data): Likewise.
1820 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1821 (pascal_language_data): Delete la_printstr initializer.
1822 (pascal_language::printstr): New member function, implementation
1823 from pascal_printstr.
1824 * p-lang.h (pascal_printstr): Delete declaration.
1825 * rust-lang.c (rust_printstr): Update header comment.
1826 (rust_language_data): Delete la_printstr initializer.
1827 (rust_language::printstr): New member function.
1828
52b50f2c
AB
18292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1830
1831 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1832 (ada_language::printchar): New member function.
1833 * c-lang.c (c_language_data): Delete la_printchar initializer.
1834 (cplus_language_data): Likewise.
1835 (asm_language_data): Likewise.
1836 (minimal_language_data): Likewise.
1837 * d-lang.c (d_language_data): Likewise.
1838 * f-lang.c (f_printchar): Rename to f_language::printchar.
1839 (f_language_data): Delete la_printchar initializer.
1840 (f_language::printchar): New member function, implementation from
1841 f_printchar.
1842 * go-lang.c (go_language_data): Delete la_printchar initializer.
1843 * language.c (unk_lang_printchar): Delete.
1844 (language_defn::printchar): Define new member function.
1845 (unknown_language_data): Delete la_printchar initializer.
1846 (unknown_language::printchar): New member function.
1847 (auto_language_data): Delete la_printchar initializer.
1848 (auto_language::printchar): New member function.
1849 * language.h (language_data): Delete la_printchar field.
1850 (language_defn::printchar): Declare new member function.
1851 (LA_PRINT_CHAR): Update call to printchar.
1852 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1853 (m2_language::printchar): New member function.
1854 * objc-lang.c (objc_language_data): Delete la_printchar
1855 initializer.
1856 * opencl-lang.c (opencl_language_data): Likewise.
1857 * p-lang.c (pascal_language_data): Delete la_printchar
1858 initializer.
1859 (pascal_language::printchar): New member function.
1860 * rust-lang.c (rust_printchar): Rename to
1861 rust_language::printchar.
1862 (rust_language_data): Delete la_printchar initializer.
1863 (rust_language::printchar): New member function, implementation
1864 from rust_printchar.
1865
ec8cec5b
AB
18662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1867
1868 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1869 (ada_language_data): Delete la_emitchar initializer.
1870 (ada_language::emitchar): New member function, implementation from
1871 emit_char.
1872 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1873 (cplus_language_data): Likewise.
1874 (asm_language_data): Likewise.
1875 (minimal_language_data): Likewise.
1876 * d-lang.c (d_language_data): Likewise.
1877 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1878 (f_language_data): Delete la_emitchar initializer.
1879 (f_language::emitchar): New member function, implementation from
1880 f_emit_char.
1881 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1882 * language.c (unk_lang_emit_char): Delete.
1883 (language_defn::emitchar): New member function definition.
1884 (unknown_language_data): Delete la_emitchar initializer.
1885 (unknown_language::emitchar): New member function.
1886 (auto_language_data): Delete la_emitchar initializer.
1887 (auto_language::emitchar): New member function.
1888 * language.h (language_data): Delete la_emitchar field.
1889 (language_defn::emitchar): New member field declaration.
1890 (LA_EMIT_CHAR): Update call to emitchar.
1891 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1892 (m2_language_data): Delete la_emitchar initializer.
1893 (m2_language::emitchar): New member function, implementation from
1894 m2_emit_char.
1895 * objc-lang.c (objc_language_data): Delete la_emitchar
1896 initializer.
1897 * opencl-lang.c (opencl_language_data): Likewise.
1898 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1899 (pascal_language_data): Delete la_emitchar initializer.
1900 (pascal_language::emitchar): New member function, implementation
1901 from pascal_emit_char.
1902 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1903 (rust_language_data): Delete la_emitchar initializer.
1904 (rust_language::emitchar): New member function, implementation
1905 from rust_emitchar.
1906
1bf9c363
AB
19072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1908
1909 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1910 (ada_language_data): Delete la_post_parser initializer.
1911 (ada_language::post_parser): New member function.
1912 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1913 (cplus_language_data): Likewise.
1914 (asm_language_data): Likewise.
1915 (minimal_language_data): Likewise.
1916 * d-lang.c (d_language_data): Likewise.
1917 * f-lang.c (f_language_data): Likewise.
1918 * go-lang.c (go_language_data): Likewise.
1919 * language.c (unknown_language_data): Likewise.
1920 (auto_language_data): Likewise.
1921 * language.h (language_data): Delete la_post_parser field.
1922 (language_defn::post_parser): New member function.
1923 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1924 * objc-lang.c (objc_language_data): Likewise.
1925 * opencl-lang.c (opencl_language_data): Likewise.
1926 * p-lang.c (pascal_language_data): Likewise.
1927 * parse.c (parse_exp_in_context): Update call to post_parser.
1928 (null_post_parser): Delete definition.
1929 * parser-defs.h (null_post_parser): Delete declaration.
1930 * rust-lang.c (rust_language_data): Delete la_post_parser
1931 initializer.
1932
87afa652
AB
19332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1934
1935 * ada-lang.c (parse): Rename to ada_language::parser.
1936 (ada_language_data): Delete la_parser initializer.
1937 (ada_language::parser): New member function, implementation from
1938 parse.
1939 * c-lang.c (c_language_data): Delete la_parser initializer.
1940 (cplus_language_data): Likewise.
1941 (asm_language_data): Likewise.
1942 (minimal_language_data): Likewise.
1943 * d-lang.c (d_language_data): Likewise.
1944 (d_language::parser): New member function.
1945 * f-lang.c (f_language_data): Delete la_parser initializer.
1946 (f_language::parser): New member function.
1947 * go-lang.c (go_language_data): Delete la_parser initializer.
1948 (go_language::parser): New member function.
1949 * language.c (unk_lang_parser): Delete.
1950 (language_defn::parser): Define new member function.
1951 (unknown_language_data): Delete la_parser initializer.
1952 (unknown_language::parser): New member function.
1953 (auto_language_data): Delete la_parser initializer.
1954 (auto_language::parser): New member function.
1955 * language.h (language_data): Delete la_parser field.
1956 (language_defn::parser): Declare new member function.
1957 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1958 (m2_language::parser): New member function.
1959 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1960 * opencl-lang.c (opencl_language_data): Likewise.
1961 * p-lang.c (pascal_language_data): Likewise.
1962 (pascal_language::parser): New member function.
1963 * parse.c (parse_exp_in_context): Update call to parser.
1964 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1965 (rust_language::parser): New member function.
1966
37825800
AB
19672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1968
1969 * top.c (print_gdb_configuration): Print --with-python-libdir
1970 configuration value.
1971
5b860c93
PW
19722020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1973
1974 * NEWS: Mention change to the alias command.
1975
cf00cd6f
PW
19762020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1977
1978 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1979 (alias_command_completer)
1980 (make_alias_options_def_group): New functions.
1981 (alias_opts, alias_option_defs): New struct and array.
1982 (alias_usage_error): Update usage.
1983 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1984 Use option framework.
1985 (_initialize_cli_cmds): Update alias command help.
1986 Update aliases command help.
1987 (show_user):
1988 Add NULL for new default_args lookup_cmd argument.
1989 (valid_command_p): Rename to validate_aliased_command.
1990 Add NULL for new default_args lookup_cmd argument. Verify that the
1991 aliased_command has no default args.
1992 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1993 (lookup_cmd_1, lookup_cmd): New argument default_args.
1994 (add_alias_cmd):
1995 Add NULL for new default_args lookup_cmd argument.
1996 (print_help_for_command): Show default args under the layout
1997 alias some_alias = some_aliased_cmd some_alias_default_arg.
1998 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1999 xfree default_args in destructor.
2000 * cli/cli-script.c (process_next_line, do_define_command):
2001 Add NULL for new default_args lookup_cmd argument.
2002 * command.h: Declare new default_args argument in lookup_cmd
2003 and lookup_cmd_1.
2004 * completer.c (complete_line_internal_1):
2005 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2006 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2007 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2008 Likewise.
2009 * infcmd.c (_initialize_infcmd): Likewise.
2010 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2011 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2012 * python/py-param.c (add_setshow_generic): Likewise.
2013 * remote.c (_initialize_remote): Likewise.
2014 * top.c (execute_command): Prepend default_args if command has some.
2015 (set_verbose):
2016 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2017 * tracepoint.c (validate_actionline, encode_actions_1):
2018 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2019
bd920864
TBA
20202020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2021
2022 * jit.c (jit_read_descriptor): Use bool as the return type.
2023 (jit_breakpoint_re_set_internal): Use bool as the return type.
2024 Invert the return value logic; return true if the jit breakpoint
2025 has been successfully initialized.
2026 (jit_inferior_init): Update the call to
2027 jit_breakpoint_re_set_internal.
2028
f8098322
PA
20292020-06-22 Pedro Alves <palves@redhat.com>
2030
2031 PR gdb/25939
2032 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2033 Use the current inferior instead. Don't return
2034 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2035 wait again.
2036 * sol-thread.c (sol_thread_target::wait): Don't reference
2037 inferior_ptid.
2038 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2039 (sol_update_thread_list_callback): Use the current inferior's pid
2040 instead of inferior_ptid.
2041
196535a6
RO
20422020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2043
2044 * procfs.c: Cleanup many comments.
2045
2046 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2047 (AFTER_WATCHFLAG): Replace by value.
2048
2049 (MAIN_PROC_NAME_FORMAT): Inline ...
2050 (create_procinfo): ... here.
2051
2052 (procfs_debug_inferior): Remove SYS_exec handling.
2053 (syscall_is_exec): Likewise.
2054 (procfs_set_exec_trap): Likewise.
2055
2056 (syscall_is_lwp_exit): Inline in callers.
2057 (syscall_is_exit): Likewise.
2058 (syscall_is_exec): Likewise.
2059 (syscall_is_lwp_create): Likewise.
2060
2061 (invalidate_cache): Remove #if 0 code.
2062
2063 (make_signal_thread_runnable): Remove.
2064 (procfs_target::resume): Remove #if 0 code.
2065
cf6f3e86
RO
20662020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2067
2068 PR gdb/25939
2069 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2070 call ...
2071 (procfs_target::create_inferior): ... here.
2072
48e9cc84
PW
20732020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2074
2075 * exec.c (validate_exec_file): Ensure the build-id is up to
2076 date by calling reopen_exec_file (that checks file timestamp
2077 to decide to re-read the file).
2078
3922b302
PA
20792020-06-18 Pedro Alves <palves@redhat.com>
2080
2081 PR gdb/25412
2082 * gdbthread.h (delete_thread, delete_thread_silent)
2083 (find_thread_ptid): Update comments.
2084 * thread.c (current_thread_): New global.
2085 (is_current_thread): Move higher, and reimplement.
2086 (inferior_thread): Reimplement.
2087 (set_thread_exited): Use bool. Add assertions.
2088 (add_thread_silent): Simplify thread-reuse handling by always
2089 calling delete_thread.
2090 (delete_thread): Remove intro comment.
2091 (find_thread_ptid): Skip exited threads.
2092 (switch_to_thread_no_regs): Write to current_thread_.
2093 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2094 INFERIOR_PTID. Clear current_thread_.
2095
6dbdab44
PA
20962020-06-18 Pedro Alves <palves@redhat.com>
2097
2098 * aix-thread.c (pd_update): Use switch_to_thread.
2099
2da4b788
PA
21002020-06-18 Pedro Alves <palves@redhat.com>
2101
2102 * ravenscar-thread.c (ravenscar_thread_target): Update.
2103 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2104 (ravenscar_thread_target::add_active_thread): ... this. Don't
2105 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2106 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2107
50838d1b
PA
21082020-06-18 Pedro Alves <palves@redhat.com>
2109
2110 * nat/windows-nat.c (current_windows_thread): Remove.
2111 * nat/windows-nat.h (current_windows_thread): Remove.
2112 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2113 Adjust.
2114 (display_selectors): Adjust to fetch the current
2115 windows_thread_info based on inferior_ptid.
2116 (fake_create_process): No longer write to current_windows_thread.
2117 (windows_nat_target::get_windows_debug_event):
2118 Don't set inferior_ptid or current_windows_thread.
2119 (windows_nat_target::wait): Adjust to not rely on
2120 current_windows_thread.
2121 (do_initial_windows_stuff): Now a method of windows_nat_target.
2122 Switch to the last_ptid thread.
2123 (windows_nat_target::attach): Adjust.
2124 (windows_nat_target::detach): Use switch_to_no_thread instead of
2125 writing to inferior_ptid directly.
2126 (windows_nat_target::create_inferior): Adjust.
2127
31ce04e9
PA
21282020-06-18 Pedro Alves <palves@redhat.com>
2129
2130 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2131
1ee1a363
PA
21322020-06-18 Pedro Alves <palves@redhat.com>
2133
2134 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2135 after creating it, instead of writing to inferior_ptid. Don't
2136 write to inferior_ptid.
2137
6d350754
PA
21382020-06-18 Pedro Alves <palves@redhat.com>
2139
2140 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2141
5d971d48
PA
21422020-06-18 Pedro Alves <palves@redhat.com>
2143
2144 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2145 it, instead of writing to inferior_ptid.
2146
86e57d1b
PA
21472020-06-18 Pedro Alves <palves@redhat.com>
2148
2149 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2150 to inferior_ptid.
2151
f2e1c129
PA
21522020-06-18 Pedro Alves <palves@redhat.com>
2153
2154 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2155 instead of writing to inferior_ptid directly.
2156
60db1b85
PA
21572020-06-18 Pedro Alves <palves@redhat.com>
2158
2159 * corelow.c (core_target::close): Use switch_to_no_thread instead
2160 of writing to inferior_ptid directly.
2161 (add_to_thread_list, core_target_open): Use switch_to_thread
2162 instead of writing to inferior_ptid directly.
2163
fe7d6a8d
PA
21642020-06-18 Pedro Alves <palves@redhat.com>
2165
2166 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2167 inferior_ptid.
2168 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2169 inferior_ptid.
2170 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2171 inferior_ptid directly.
2172 (darwin_nat_target::init_thread_list): Switch to thread, instead
2173 of writing to inferior_ptid.
2174 (darwin_nat_target::attach): Don't write to inferior_ptid.
2175 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2176
975f8708
PA
21772020-06-18 Pedro Alves <palves@redhat.com>
2178
2179 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2180 thread.
2181 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2182 Instead use switch_to_thread.
2183 (gnu_nat_target::detach): Use switch_to_no_thread
2184 instead of writing to inferior_ptid directly. Used passed-in
2185 inferior instead of looking up the inferior by pid.
2186
1a204730
PA
21872020-06-18 Pedro Alves <palves@redhat.com>
2188
2189 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2190 inferior_ptid.
2191
ebe84f23
PA
21922020-06-18 Pedro Alves <palves@redhat.com>
2193
2194 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2195 inferior_ptid.
2196 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2197 thread.
2198 (nto_procfs_target::detach): Avoid referencing
2199 inferior_ptid. Use switch_to_no_thread instead of writing to
2200 inferior_ptid directly.
2201 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2202 instead of writing to inferior_ptid directly.
2203 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2204 to thread.
2205
191f02e5
PA
22062020-06-18 Pedro Alves <palves@redhat.com>
2207
2208 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2209 after creating it, instead of writing to inferior_ptid.
2210 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2211 to inferior_ptid directly.
2212 (gdbsim_target::wait): Don't write to inferior_ptid.
2213
0ac55310
PA
22142020-06-18 Pedro Alves <palves@redhat.com>
2215
2216 * remote.c (remote_target::remote_notice_new_inferior): Use
2217 switch_to_thread instead of writing to inferior_ptid directly.
2218 (remote_target::add_current_inferior_and_thread): Use
2219 switch_to_no_thread instead of writing to inferior_ptid directly.
2220 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2221 and switch_to_thread instead of using set_current_inferior or
2222 writing to inferior_ptid directly.
2223
5233f39b
PA
22242020-06-18 Pedro Alves <palves@redhat.com>
2225
2226 * tracectf.c (ctf_target_open): Switch to added thread instead of
2227 writing to inferior_ptid directly.
2228 (ctf_target::close): Use switch_to_no_thread instead of writing to
2229 inferior_ptid directly.
2230
087e161b
PA
22312020-06-18 Pedro Alves <palves@redhat.com>
2232
2233 * tracefile-tfile.c (tfile_target_open): Don't write to
2234 inferior_ptid directly, instead switch to added thread.
2235 (tfile_target::close): Use switch_to_no_thread instead of writing
2236 to inferior_ptid directly.
2237
7fb43e53
PA
22382020-06-18 Pedro Alves <palves@redhat.com>
2239
2240 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2241 (procfs_target::detach): Use switch_to_no_thread
2242 instead of writing to inferior_ptid directly.
2243 (do_attach): Change return type to void. Switch to the added
2244 thread.
2245 (procfs_target::create_inferior): Switch to the added thread.
2246 (procfs_do_thread_registers): Don't write to inferior_ptid.
2247
18493a00
PA
22482020-06-18 Pedro Alves <palves@redhat.com>
2249
2250 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2251 of writing to inferior_ptid.
2252 (scoped_restore_exited_inferior): Delete.
2253 (handle_vfork_child_exec_or_exit): Simplify using
2254 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2255 instead of writing to inferior_ptid.
2256 (THREAD_STOPPED_BY): Delete.
2257 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2258 (thread_stopped_by_hw_breakpoint): Delete.
2259 (save_waitstatus): Use
2260 scoped_restore_current_thread+switch_to_thread, and call
2261 target_stopped_by_watchpoint instead of
2262 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2263 instead of thread_stopped_by_sw_breakpoint, and
2264 target_stopped_by_hw_breakpoint instead of
2265 thread_stopped_by_hw_breakpoint.
2266 (handle_inferior_event)
2267 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2268 inferior_ptid directly, nor
2269 set_current_inferior/set_current_program_space. Use
2270 switch_to_thread / switch_to_inferior_no_thread instead.
2271
a0776b13
PA
22722020-06-18 Pedro Alves <palves@redhat.com>
2273
2274 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2275 instead of writing to inferior_ptid.
2276
6155c136
PA
22772020-06-18 Pedro Alves <palves@redhat.com>
2278
2279 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2280 added thread.
2281 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2282 to the added thread.
2283 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2284 instead of writing to inferior_ptid.
2285
c5316fc6
PA
22862020-06-18 Pedro Alves <palves@redhat.com>
2287
2288 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2289 (register_to_value_test): Mock a program_space too. Heap-allocate
2290 the address space. Don't write to inferior_ptid. Use
2291 switch_to_thread instead.
2292
8df01799
PA
22932020-06-18 Pedro Alves <palves@redhat.com>
2294
2295 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2296 Delete.
2297 (find_signalled_thread()): New, factored out from
2298 linux_make_corefile_notes and adjusted to handle exited threads.
2299 (linux_make_corefile_notes): Adjust to use the new
2300 find_signalled_thread.
2301
41792d68
PA
23022020-06-18 Pedro Alves <palves@redhat.com>
2303
2304 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2305 of saving/restoring inferior_ptid.
2306
612f258a
TT
23072020-06-17 Tom Tromey <tom@tromey.com>
2308
2309 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2310 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2311 declare.
2312 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2313
efb763a5
SM
23142020-06-15 Simon Marchi <simon.marchi@efficios.com>
2315
2316 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2317 of partial symtabs.
2318
2951f6c0
SM
23192020-06-17 Simon Marchi <simon.marchi@efficios.com>
2320
2321 * regformats/reg-arm.dat: Remove.
2322 * regformats/reg-bfin.dat: Remove.
2323 * regformats/reg-cris.dat: Remove.
2324 * regformats/reg-crisv32.dat: Remove.
2325 * regformats/reg-m32r.dat: Remove.
2326 * regformats/reg-tilegx.dat: Remove.
2327 * regformats/reg-tilegx32.dat: Remove.
2328
7d458ea5
SM
23292020-06-17 Simon Marchi <simon.marchi@efficios.com>
2330
2331 * features/Makefile (WHICH): Remove arm files.
2332 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2333 * regformats/arm/arm-with-neon.dat: Remove.
2334 * regformats/arm/arm-with-vfpv2.dat: Remove.
2335 * regformats/arm/arm-with-vfpv3.dat: Remove.
2336
3af96c0d
SM
23372020-06-17 Simon Marchi <simon.marchi@efficios.com>
2338
2339 * features/Makefile (XMLTOC): Remove rx.xml.
2340
b25e22fd
PA
23412020-06-17 Pedro Alves <palves@redhat.com>
2342
2343 * gdbthread.h (thread_control_state) <trap_expected> Update
2344 comments.
2345
a78a19b1
AB
23462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2347
2348 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2349 ada_language::lookup_symbol_nonlocal.
2350 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2351 (ada_language::lookup_symbol_nonlocal): New member function,
2352 implementation from ada_lookup_symbol_nonlocal.
2353 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2354 initializer.
2355 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2356 initializer.
2357 (cplus_language::lookup_symbol_nonlocal): New member function.
2358 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2359 (minimal_language_data) Likewise.
2360 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2361 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2362 initializer.
2363 (d_language::lookup_symbol_nonlocal): New member function.
2364 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2365 initializer.
2366 (f_language::lookup_symbol_nonlocal): New member function.
2367 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2368 initializer.
2369 * language.c (unknown_language_data): Likewise.
2370 (auto_language_data): Likewise.
2371 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2372 field.
2373 (language_defn::lookup_symbol_nonlocal): New member function.
2374 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2375 initializer.
2376 * objc-lang.c (objc_language_data): Likewise.
2377 * opencl-lang.c (opencl_language_data): Likewise.
2378 * p-lang.c (pascal_language_data): Likewise.
2379 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2380 rust_language::lookup_symbol_nonlocal.
2381 (rust_language_data): Delete la_lookup_symbol_nonlocal
2382 initializer.
2383 (rust_language::lookup_symbol_nonlocal): New member function,
2384 implementation from rust_lookup_symbol_nonlocal.
2385 * symtab.c (lookup_symbol_aux): Update call to
2386 lookup_symbol_nonlocal.
2387 (basic_lookup_symbol_nonlocal): Rename to...
2388 (language_defn::lookup_symbol_nonlocal): ...this, and update
2389 header comment. Remove language_defn parameter, and replace with
2390 uses of `this'.
2391 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2392
ebe2334e
AB
23932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2394
2395 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2396 initializer.
2397 (ada_language::value_print_inner): New member function.
2398 * c-lang.c (c_language_data): Delete la_value_print_inner
2399 initializer.
2400 (cplus_language_data): Likewise.
2401 (asm_language_data): Likewise.
2402 (minimal_language_data): Likewise.
2403 * d-lang.c (d_language_data): Likewise.
2404 (d_language::value_print_inner): New member function.
2405 * f-lang.c (f_language_data): Delete la_value_print_inner
2406 initializer.
2407 (f_language::value_print_inner): New member function.
2408 * f-lang.h (f_value_print_innner): Rename to...
2409 (f_value_print_inner): ...this (note spelling of 'inner').
2410 * f-valprint.c (f_value_print_innner): Rename to...
2411 (f_value_print_inner): ...this (note spelling of 'inner').
2412 * go-lang.c (go_language_data): Delete la_value_print_inner
2413 initializer.
2414 (go_language::value_print_inner): New member function.
2415 * language.c (language_defn::value_print_inner): Define new member
2416 function.
2417 (unk_lang_value_print_inner): Delete.
2418 (unknown_language_data): Delete la_value_print_inner initializer.
2419 (unknown_language::value_print_inner): New member function.
2420 (auto_language_data): Delete la_value_print_inner initializer.
2421 (auto_language::value_print_inner): New member function.
2422 * language.h (language_data): Delete la_value_print_inner field.
2423 (language_defn::value_print_inner): Delcare new member function.
2424 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2425 initializer.
2426 (m2_language::value_print_inner): New member function.
2427 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2428 initializer.
2429 * opencl-lang.c (opencl_language_data): Likewise.
2430 * p-lang.c (pascal_language_data): Likewise.
2431 (pascal_language::value_print_inner): New member function.
2432 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2433 initializer.
2434 (rust_language::value_print_inner): New member function.
2435 * valprint.c (do_val_print): Update call to value_print_inner.
2436
a1d1fa3e
AB
24372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2438
2439 * ada-lang.c (ada_language_data): Delete la_value_print
2440 initializer.
2441 (ada_language::value_print): New member function.
2442 * c-lang.c (c_language_data): Delete la_value_print initializer.
2443 (cplus_language_data): Likewise.
2444 (asm_language_data): Likewise.
2445 (minimal_language_data): Likewise.
2446 * d-lang.c (d_language_data): Likewise.
2447 * f-lang.c (f_language_data): Likewise.
2448 * go-lang.c (go_language_data): Likewise.
2449 * language.c (unk_lang_value_print): Delete.
2450 (language_defn::value_print): Define new member function.
2451 (unknown_language_data): Delete la_value_print initializer.
2452 (unknown_language::value_print): New member function.
2453 (auto_language_data): Delete la_value_print initializer.
2454 (auto_language::value_print): New member function.
2455 * language.h (language_data): Delete la_value_print field.
2456 (language_defn::value_print): Declare new member function.
2457 (LA_VALUE_PRINT): Update call to value_print.
2458 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2459 * objc-lang.c (objc_language_data): Likewise.
2460 * opencl-lang.c (opencl_language_data): Likewise.
2461 * p-lang.c (pascal_language_data): Likewise.
2462 (pascal_language::value_print): New member function.
2463 * rust-lang.c (rust_language_data): Delete la_value_print
2464 initializer.
2465
f16a9f57
AB
24662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2467
2468 * ada-lang.c (ada_watch_location_expression): Rename to
2469 ada_language::watch_location_expression.
2470 (ada_language_data): Delete la_watch_location_expression
2471 initializer.
2472 (ada_language::watch_location_expression): New member function,
2473 implementation from ada_watch_location_expression.
2474 * breakpoint.c (watch_command_1): Update call to
2475 watch_location_expression.
2476 * c-lang.c (c_watch_location_expression): Rename to
2477 language_defn::watch_location_expression.
2478 (c_language_data): Delete la_watch_location_expression
2479 initializer.
2480 (cplus_language_data): Likewise.
2481 (asm_language_data): Likewise.
2482 (minimal_language_data): Likewise.
2483 * c-lang.h (c_watch_location_expression): Delete declaration.
2484 * d-lang.c (d_language_data): Delete la_watch_location_expression
2485 initializer.
2486 * f-lang.c (f_language_data): Likewise.
2487 * go-lang.c (go_language_data): Likewise.
2488 * language.c (language_defn::watch_location_expression): Member
2489 function implementation from c_watch_location_expression.
2490 (unknown_language_data): Delete la_watch_location_expression
2491 initializer.
2492 (auto_language_data): Likewise.
2493 * language.h (language_data): Delete la_watch_location_expression
2494 field.
2495 (language_defn::watch_location_expression): Declare new member
2496 function.
2497 * m2-lang.c (m2_language_data): Delete
2498 la_watch_location_expression initializer.
2499 * objc-lang.c (objc_language_data): Likewise.
2500 * opencl-lang.c (opencl_language_data): Likewise.
2501 * p-lang.c (pascal_language_data): Likewise.
2502 * rust-lang.c (rust_watch_location_expression): Rename to
2503 rust_language::watch_location_expression.
2504 (rust_language_data): Delete la_watch_location_expression
2505 initializer.
2506 (rust_language::watch_location_expression): New member function,
2507 implementation from rust_watch_location_expression.
2508
7e56227d
AB
25092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2510
2511 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2512 ada_language::collect_symbol_completion_matches.
2513 (ada_language_data): Delete la_collect_symbol_completion_matches
2514 initializer.
2515 (ada_language::collect_symbol_completion_matches): New member
2516 function, implementation from
2517 ada_collect_symbol_completion_matches.
2518 * c-lang.c (c_language_data): Delete
2519 la_collect_symbol_completion_matches initializer.
2520 (cplus_language_data): Likewise.
2521 (asm_language_data): Likewise.
2522 (minimal_language_data): Likewise.
2523 * d-lang.c (d_language_data): Likewise.
2524 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2525 f_language::collect_symbol_completion_matches.
2526 (f_language_data): Delete la_collect_symbol_completion_matches
2527 initializer.
2528 (f_language::collect_symbol_completion_matches) New member
2529 function, implementation from f_collect_symbol_completion_matches.
2530 * go-lang.c (go_language_data): Delete
2531 la_collect_symbol_completion_matches initializer.
2532 * language.c (unknown_language_data): Likewise.
2533 (auto_language_data): Likewise.
2534 * language.h (language_data): Delete
2535 la_collect_symbol_completion_matches field.
2536 (language_defn::collect_symbol_completion_matches): New member
2537 function.
2538 * m2-lang.c (m2_language_data): Delete
2539 la_collect_symbol_completion_matches initializer.
2540 * objc-lang.c (objc_language_data): Likewise.
2541 * opencl-lang.c (opencl_language_data): Likewise.
2542 * p-lang.c (pascal_language_data): Likewise.
2543 * rust-lang.c (rust_language_data): Likewise.
2544 * symtab.c (default_collect_symbol_completion_matches): Delete.
2545 (collect_symbol_completion_matches): Update call to
2546 collect_symbol_completion_matches.
2547 (collect_symbol_completion_matches_type): Likewise.
2548 * symtab.h (default_collect_symbol_completion_matches): Delete
2549 declaration.
2550
53fc67f8
AB
25512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2552
2553 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2554 (ada_language_data): Delete la_word_break_characters initializer.
2555 (ada_language::word_break_characters): New member function.
2556 * c-lang.c (c_language_data): Delete la_word_break_characters
2557 initializer.
2558 (cplus_language_data): Likewise.
2559 (asm_language_data): Likewise.
2560 (minimal_language_data): Likewise.
2561 * completer.c: Update global comment.
2562 (advance_to_expression_complete_word_point): Update call to
2563 word_break_characters.
2564 (complete_files_symbols): Likewise.
2565 (complete_line_internal_1): Likewise.
2566 (default_completer_handle_brkchars): Likewise.
2567 (skip_quoted_chars): Likewise.
2568 * d-lang.c (d_language_data): Delete la_word_break_characters
2569 initializer.
2570 * f-lang.c (f_word_break_characters): Delete.
2571 (f_language_data): Delete la_word_break_characters initializer.
2572 (f_language::word_break_characters): New member function.
2573 * go-lang.c (go_language_data): Delete la_word_break_characters
2574 initializer.
2575 * language.c (unknown_language_data): Likewise.
2576 (auto_language_data): Likewise.
2577 * language.h (default_word_break_characters): Move declaration to
2578 earlier in the file.
2579 (language_data): Delete la_word_break_characters field.
2580 (language_defn::word_break_characters): New member function.
2581 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2582 initializer.
2583 * objc-lang.c (objc_language_data): Likewise.
2584 * opencl-lang.c (opencl_language_data): Likewise.
2585 * p-lang.c (pascal_language_data): Likewise.
2586 * rust-lang.c (rust_language_data): Likewise.
2587
c9debfb9
AB
25882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2589
2590 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2591 (ada_language_data): Delete la_get_symbol_name_matcher
2592 initializer.
2593 (language_defn::get_symbol_name_matcher_inner): New member
2594 function.
2595 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2596 initializer.
2597 (cplus_language_data): Likewise.
2598 (cplus_language::get_symbol_name_matcher_inner): New member
2599 function.
2600 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2601 (minimal_language_data): Likewise.
2602 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2603 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2604 initializer.
2605 * dictionary.c (iter_match_first_hashed): Update call to
2606 get_symbol_name_matcher.
2607 (iter_match_next_hashed): Likewise.
2608 (iter_match_next_linear): Likewise.
2609 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2610 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2611 initializer.
2612 (f_language::get_symbol_name_matcher_inner): New member function.
2613 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2614 initializer.
2615 * language.c (default_symbol_name_matcher): Update header comment,
2616 make static.
2617 (language_defn::get_symbol_name_matcher): New definition.
2618 (language_defn::get_symbol_name_matcher_inner): Likewise.
2619 (get_symbol_name_matcher): Delete.
2620 (unknown_language_data): Delete la_get_symbol_name_matcher
2621 initializer.
2622 (auto_language_data): Likewise.
2623 * language.h (language_data): Delete la_get_symbol_name_matcher
2624 field.
2625 (language_defn::get_symbol_name_matcher): New member function.
2626 (language_defn::get_symbol_name_matcher_inner): Likewise.
2627 (default_symbol_name_matcher): Delete declaration.
2628 * linespec.c (find_methods): Update call to
2629 get_symbol_name_matcher.
2630 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2631 initializer.
2632 * minsyms.c (lookup_minimal_symbol): Update call to
2633 get_symbol_name_matcher.
2634 (iterate_over_minimal_symbols): Likewise.
2635 * objc-lang.c (objc_language_data): Delete
2636 la_get_symbol_name_matcher initializer.
2637 * opencl-lang.c (opencl_language_data): Likewise.
2638 * p-lang.c (pascal_language_data): Likewise.
2639 * psymtab.c (psymbol_name_matches): Update call to
2640 get_symbol_name_matcher.
2641 * rust-lang.c (rust_language_data): Delete
2642 la_get_symbol_name_matcher initializer.
2643 * symtab.c (symbol_matches_search_name): Update call to
2644 get_symbol_name_matcher.
2645 (compare_symbol_name): Likewise.
2646
9a49ad8c
AB
26472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2648
2649 * ada-lang.c (ada_language_data): Delete la_compute_program
2650 initializer.
2651 * c-lang.c (c_language_data): Likewise.
2652 (c_language::compute_program): New member function.
2653 (cplus_language_data): Delete la_compute_program initializer.
2654 (cplus_language::compute_program): New member function.
2655 (asm_language_data): Delete la_compute_program initializer.
2656 (minimal_language_data): Likewise.
2657 * c-lang.h (c_compute_program): Update comment.
2658 (cplus_compute_program): Likewise.
2659 * compile/compile-c-support.c (c_compute_program): Likewise.
2660 (cplus_compute_program): Likewise.
2661 * compile/compile.c (compile_to_object): Update call to
2662 la_compute_program.
2663 * d-lang.c (d_language_data): Delete la_compute_program
2664 initializer.
2665 * f-lang.c (f_language_data): Likewise.
2666 * go-lang.c (go_language_data): Likewise.
2667 * language.c (unknown_language_data): Likewise.
2668 (auto_language_data): Likewise.
2669 * language.h (language_data): Delete la_compute_program field.
2670 (language_defn::compute_program): New member function.
2671 * m2-lang.c (m2_language_data): Delete la_compute_program
2672 initializer.
2673 * objc-lang.c (objc_language_data): Likewise.
2674 * opencl-lang.c (opencl_language_data): Likewise.
2675 * p-lang.c (pascal_language_data): Likewise.
2676 * rust-lang.c (rust_language_data): Likewise.
2677
eff93b4d
AB
26782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2679
2680 * ada-lang.c (ada_language_data) Delete
2681 la_class_name_from_physname initializer.
2682 * c-lang.c (c_language_data): Likewise.
2683 (cplus_language_data): Likewise.
2684 (cplus_language::class_name_from_physname): New member function.
2685 (asm_language_data): Delete la_class_name_from_physname
2686 initializer.
2687 (minimal_language_data): Likewise.
2688 * d-lang.c (d_language_data): Likewise.
2689 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2690 method on language_defn class.
2691 (guess_full_die_structure_name): Likewise.
2692 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2693 initializer.
2694 * go-lang.c (go_language_data): Likewise.
2695 * language.c (language_class_name_from_physname): Delete.
2696 (unk_lang_class_name): Delete.
2697 (unknown_language_data): Delete la_class_name_from_physname
2698 initializer.
2699 (auto_language_data): Likewise.
2700 * language.h (language_data): Delete la_class_name_from_physname
2701 field.
2702 (language_defn::class_name_from_physname): New function.
2703 (language_class_name_from_physname): Delete declaration.
2704 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2705 initializer.
2706 * objc-lang.c (objc_language_data): Likewise.
2707 * opencl-lang.c (opencl_language_data): Likewise.
2708 * p-lang.c (pascal_language_data): Likewise.
2709 * rust-lang.c (rust_language_data): Likewise.
2710
de543742
TT
27112020-06-16 Tom Tromey <tom@tromey.com>
2712
2713 * tui/tui-data.h (STATUS_NAME): New macro.
2714 * tui/tui-layout.c (tui_remove_some_windows)
2715 (initialize_known_windows, tui_register_window)
2716 (tui_layout_split::remove_windows, initialize_layouts)
2717 (tui_new_layout_command): Don't use hard-coded window names.
2718
a350efd4
TT
27192020-06-16 Tom Tromey <tom@tromey.com>
2720
2721 PR tui/25348:
2722 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2723 tui_initialize_readline. Only run once. Call rl_initialize.
2724 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2725 tui_initialize_readline.
2726 * tui/tui-io.c (tui_setup_io): Call
2727 tui_ensure_readline_initialized.
2728 * tui/tui-interp.c (tui_interp::init): Update.
2729
39ec0490
TT
27302020-06-16 Tom Tromey <tom@tromey.com>
2731
2732 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2733 Also preserve the status window.
2734
d2d1ea20
TT
27352020-06-16 Tom Tromey <tom@tromey.com>
2736
2737 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2738 where m_window==nullptr.
2739
66920317
TT
27402020-06-15 Tom Tromey <tromey@adacore.com>
2741
2742 * windows-nat.c (windows_nat::handle_output_debug_string):
2743 Update.
2744 (windows_nat::handle_ms_vc_exception): Update.
2745 * target.h (target_read_string): Change API.
2746 * target.c (target_read_string): Change API.
2747 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2748 Update.
2749 * solib-frv.c (frv_current_sos): Update.
2750 * solib-dsbt.c (dsbt_current_sos): Update.
2751 * solib-darwin.c (darwin_current_sos): Update.
2752 * linux-thread-db.c (inferior_has_bug): Update.
2753 * expprint.c (print_subexp_standard): Update.
2754 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2755 (ada_exception_message_1): Update.
2756
a5d871dd
TT
27572020-06-15 Tom Tromey <tromey@adacore.com>
2758
2759 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2760
670e35fa
TT
27612020-06-15 Tom Tromey <tromey@adacore.com>
2762
2763 * valprint.c (read_string): Update comment.
2764 * target.c (MIN): Remove.
2765 (target_read_string): Rewrite.
2766
f5272a3b
TT
27672020-06-15 Tom Tromey <tromey@adacore.com>
2768
2769 * corefile.c (read_memory_string): Remove.
2770 * ada-valprint.c (ada_value_print_ptr): Update.
2771 * ada-lang.h (ada_tag_name): Change return type.
2772 * ada-lang.c (type_from_tag): Update.
2773 (ada_tag_name_from_tsd): Change return type. Use
2774 target_read_string.
2775 (ada_tag_name): Likewise.
2776 * gdbcore.h (read_memory_string): Don't declare.
2777
2c074f49
HD
27782020-06-14 Hannes Domani <ssbssa@yahoo.de>
2779
2780 * symtab.c (rbreak_command): Ignore Windows drive colon.
2781
6a17d503
SM
27822020-06-12 Simon Marchi <simon.marchi@efficios.com>
2783
2784 * NEWS: Mention removed GDBserver host support.
2785
453c733f
NC
27862020-06-12 Nelson Chu <nelson.chu@sifive.com>
2787
2788 * features/riscv/rebuild-csr-xml.sh: Updated.
2789
2b4e6a3f
TT
27902020-06-11 Tom Tromey <tom@tromey.com>
2791
2792 PR gdb/18318:
2793 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2794
4412332f
JG
27952020-06-09 Jonny Grant <jg@jguk.org>
27962020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2797
2798 * main.c (captured_main_1): Don't print new line after help.
2799 (print_gdb_help): add mailing list and IRC channel information
2800 to --help. Add new lines between items in the footer. Remove
2801 quotes around bug url.
2802
2f33032a
KS
28032020-06-11 Keith Seitz <keiths@redhat.com>
2804
2805 PR gdb/21356
2806 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2807 Resolve typedefs for type length calculations.
2808
7ab96794
TV
28092020-06-10 Tom de Vries <tdevries@suse.de>
2810
2811 PR ada/24713
2812 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2813 (write_psymbols): Enable .gdb_index for ada.
2814 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2815 ada.
2816
e5f3ece2
TV
28172020-06-10 Tom de Vries <tdevries@suse.de>
2818
2819 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2820 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2821 namei" instead of "const char *name" argument.
2822 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2823 dw2_symtab_iter_init.
2824
940da03e
SM
28252020-06-08 Simon Marchi <simon.marchi@efficios.com>
2826
2827 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2828 to use type::field and field::type instead.
2829
b6cdac4b
SM
28302020-06-08 Simon Marchi <simon.marchi@efficios.com>
2831
2832 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2833 to use field::type instead.
2834
5d14b6e5
SM
28352020-06-08 Simon Marchi <simon.marchi@efficios.com>
2836
2837 * gdbtypes.h (struct field) <type, set_type>: New methods.
2838 Rename `type` field to...
2839 <m_type>: ... this. Change references throughout to use type or
2840 set_type methods.
2841 (FIELD_TYPE): Use field::type. Change call sites that modify
2842 the field's type to use field::set_type instead.
2843
3d967001
SM
28442020-06-08 Simon Marchi <simon.marchi@efficios.com>
2845
2846 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2847 to use type::index_type instead.
2848
262abc0d
SM
28492020-06-08 Simon Marchi <simon.marchi@efficios.com>
2850
2851 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2852 methods.
2853 (TYPE_INDEX_TYPE): Use type::index_type.
2854 * gdbtypes.c (create_array_type_with_stride): Likewise.
2855
82836c92
TT
28562020-06-07 Tom Tromey <tom@tromey.com>
2857
2858 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2859 parameter.
2860 (generic_value_print): Update.
2861
940dace9
AB
28622020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2863
2864 Revert commit 982a38f60b0.
2865 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2866
982a38f6
AB
28672020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2868
2869 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2870 avoid use after free.
2871
82f06518
TV
28722020-06-05 Tom de Vries <tdevries@suse.de>
2873
2874 * NEWS: Fix typos.
2875
f8c41851
SM
28762020-06-04 Simon Marchi <simon.marchi@efficios.com>
2877
2878 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2879 the per_bfd object.
2880 (dwarf2_read_debug_names): Likewise.
2881 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2882 object when re-using a per_bfd object with an index.
2883
f9b5d5ea
TV
28842020-06-03 Tom de Vries <tdevries@suse.de>
2885
2886 PR symtab/26046
2887 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2888 children for C++.
2889 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2890 DW_TAG_subprogram.
2891
f6eee2d0
AB
28922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2893
2894 * ada-lang.c (ada_language_data): Delete skip_trampoline
2895 initializer.
2896 * c-lang.c (c_language_data): Likewise.
2897 (cplus_language_data): Likewise.
2898 (cplus_language::skip_trampoline): New member function.
2899 (asm_language_data): Delete skip_trampoline initializer.
2900 (minimal_language_data): Likewise.
2901 * d-lang.c (d_language_data): Likewise.
2902 * f-lang.c (f_language_data): Likewise.
2903 * go-lang.c (go_language_data): Likewise.
2904 * language.c (unk_lang_trampoline): Delete function.
2905 (skip_language_trampoline): Update.
2906 (unknown_language_data): Delete skip_trampoline initializer.
2907 (auto_language_data): Likewise.
2908 * language.h (language_data): Delete skip_trampoline field.
2909 (language_defn::skip_trampoline): New function.
2910 * m2-lang.c (m2_language_data): Delete skip_trampoline
2911 initializer.
2912 * objc-lang.c (objc_skip_trampoline): Delete function, move
2913 implementation to objc_language::skip_trampoline.
2914 (objc_language_data): Delete skip_trampoline initializer.
2915 (objc_language::skip_trampoline): New member function with
2916 implementation from objc_skip_trampoline.
2917 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2918 initializer.
2919 * p-lang.c (pascal_language_data): Likewise.
2920 * rust-lang.c (rust_language_data): Likewise.
2921
0a50df5d
AB
29222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2923
2924 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2925 (ada_language::demangle): New member function.
2926 * c-lang.c (c_language_data): Delete la_demangle initializer.
2927 (cplus_language_data): Delete la_demangle initializer.
2928 (cplus_language::demangle): New member function.
2929 (asm_language_data): Delete la_demangle initializer.
2930 (minimal_language_data): Delete la_demangle initializer.
2931 * d-lang.c (d_language_data): Delete la_demangle initializer.
2932 (d_language::demangle): New member function.
2933 * f-lang.c (f_language_data): Delete la_demangle initializer.
2934 (f_language::demangle): New member function.
2935 * go-lang.c (go_language_data): Delete la_demangle initializer.
2936 (go_language::demangle): New member function.
2937 * language.c (language_demangle): Update.
2938 (unk_lang_demangle): Delete.
2939 (unknown_language_data): Delete la_demangle initializer.
2940 (unknown_language::demangle): New member function.
2941 (auto_language_data): Delete la_demangle initializer.
2942 (auto_language::demangle): New member function.
2943 * language.h (language_data): Delete la_demangle field.
2944 (language_defn::demangle): New function.
2945 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2946 * objc-lang.c (objc_language_data): Delete la_demangle
2947 initializer.
2948 (objc_language::demangle): New member function.
2949 * opencl-lang.c (opencl_language_data): Delete la_demangle
2950 initializer.
2951 * p-lang.c (pascal_language_data): Likewise.
2952 * rust-lang.c (rust_language_data): Likewise.
2953 (rust_language::demangle): New member function.
2954
fbfb0a46
AB
29552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2956
2957 * ada-lang.c (ada_language_data): Delete la_print_type
2958 initializer.
2959 (ada_language::print_type): New member function.
2960 * c-lang.c (c_language_data): Delete la_print_type initializer.
2961 (c_language::print_type): New member function.
2962 (cplus_language_data): Delete la_print_type initializer.
2963 (cplus_language::print_type): New member function.
2964 (asm_language_data): Delete la_print_type initializer.
2965 (asm_language::print_type): New member function.
2966 (minimal_language_data): Delete la_print_type initializer.
2967 (minimal_language::print_type): New member function.
2968 * d-lang.c (d_language_data): Delete la_print_type initializer.
2969 (d_language::print_type): New member function.
2970 * f-lang.c (f_language_data): Delete la_print_type initializer.
2971 (f_language::print_type): New member function.
2972 * go-lang.c (go_language_data): Delete la_print_type initializer.
2973 (go_language::print_type): New member function.
2974 * language.c (unk_lang_print_type): Delete.
2975 (unknown_language_data): Delete la_print_type initializer.
2976 (unknown_language::print_type): New member function.
2977 (auto_language_data): Delete la_print_type initializer.
2978 (auto_language::print_type): New member function.
2979 * language.h (language_data): Delete la_print_type field.
2980 (language_defn::print_type): New function.
2981 (LA_PRINT_TYPE): Update.
2982 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2983 (m2_language::print_type): New member function.
2984 * objc-lang.c (objc_language_data): Delete la_print_type
2985 initializer.
2986 (objc_language::print_type): New member function.
2987 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2988 to opencl_language::print_type.
2989 (opencl_language_data): Delete la_print_type initializer.
2990 (opencl_language::print_type): New member function, implementation
2991 from opencl_print_type.
2992 * p-lang.c (pascal_language_data): Delete la_print_type
2993 initializer.
2994 (pascal_language::print_type): New member function.
2995 * rust-lang.c (rust_print_type): Delete, implementation moved to
2996 rust_language::print_type.
2997 (rust_language_data): Delete la_print_type initializer.
2998 (rust_language::print_type): New member function, implementation
2999 from rust_print_type.
3000
6f827019
AB
30012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3002
3003 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3004 implementation moves to...
3005 (ada_language::sniff_from_mangled_name): ...here. Update return
3006 type.
3007 (ada_language_data): Delete la_sniff_from_mangled_name
3008 initializer.
3009 * c-lang.c (c_language_data): Likewise.
3010 (cplus_language_data): Likewise.
3011 (cplus_language::sniff_from_mangled_name): New member function,
3012 implementation taken from gdb_sniff_from_mangled_name.
3013 (asm_language_data): Delete la_sniff_from_mangled_name
3014 initializer.
3015 (minimal_language_data): Likewise.
3016 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3017 implementation moves to cplus_language::sniff_from_mangled_name.
3018 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3019 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3020 moves to...
3021 (d_language::sniff_from_mangled_name): ...here.
3022 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3023 * f-lang.c (f_language_data): Likewise.
3024 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3025 moves to...
3026 (go_language::sniff_from_mangled_name): ...here.
3027 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3028 * language.c (language_sniff_from_mangled_name): Delete.
3029 (unknown_language_data): Delete la_sniff_from_mangled_name
3030 initializer.
3031 (auto_language_data): Likewise.
3032 * language.h (language_data): Delete la_sniff_from_mangled_name
3033 field.
3034 (language_defn::sniff_from_mangled_name): New function.
3035 (language_sniff_from_mangled_name): Delete declaration.
3036 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3037 field.
3038 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3039 implementation moves to...
3040 (objc_language::sniff_from_mangled_name): ...here.
3041 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3042 * opencl-lang.c (opencl_language_data): Likewise.
3043 * p-lang.c (pascal_language_data): Likewise.
3044 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3045 implementation moves to...
3046 (rust_language::sniff_from_mangled_name): ...here.
3047 (rust_language_data): Delete la_sniff_from_mangled_name
3048 initializer.
3049 * symtab.c (symbol_find_demangled_name): Call
3050 sniff_from_mangled_name member function.
3051
fb8006fd
AB
30522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3053
3054 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3055 initializer.
3056 * c-lang.c (c_language_data): Likewise.
3057 (cplus_language_data): Likewise.
3058 (cplus_language::search_name_hash): New member function.
3059 (asm_language_data): Delete la_search_name_hash initializer.
3060 (minimal_language_data): Likewise.
3061 * d-lang.c (d_language_data): Likewise.
3062 * dictionary.c (default_search_name_hash): Rename to...
3063 (language_defn::search_name_hash): ...this.
3064 * f-lang.c (f_language_data): Likewise.
3065 (f_language::search_name_hash): New member function.
3066 * go-lang.c (go_language_data): Delete la_search_name_hash
3067 initializer.
3068 * language.c (unknown_language_data): Likewise.
3069 (auto_language_data): Likewise.
3070 * language.h (struct language_data): Delete la_search_name_hash
3071 field.
3072 (language_defn::search_name_hash): Declare new member function.
3073 (default_search_name_hash): Delete declaration.
3074 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3075 initializer.
3076 * objc-lang.c (objc_language_data): Likewise.
3077 * opencl-lang.c (opencl_language_data): Likewise.
3078 * p-lang.c (pascal_language_data): Likewise.
3079 * rust-lang.c (rust_language_data): Likewise.
3080 * symtab.c (search_name_hash): Update call.
3081
8e25bafe
AB
30822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3083
3084 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3085 initializer.
3086 * c-lang.c (class compile_instance): Declare.
3087 (c_language_data): Delete la_get_compile_instance initializer.
3088 (c_language::get_compile_instance): New member function.
3089 (cplus_language_data): Delete la_get_compile_instance initializer.
3090 (cplus_language::get_compile_instance): New member function.
3091 (asm_language_data): Delete la_get_compile_instance initializer.
3092 (minimal_language_data): Likewise.
3093 * c-lang.h (c_get_compile_context): Update comment.
3094 (cplus_get_compile_context): Update comment.
3095 * compile/compile.c (compile_to_object): Update calls, don't rely
3096 on function pointer being NULL.
3097 * d-lang.c (d_language_data): Delete la_get_compile_instance
3098 initializer.
3099 * f-lang.c (f_language_data): Likewise.
3100 * go-lang.c (go_language_data): Likewise.
3101 * language.c (unknown_language_data): Likewise.
3102 (auto_language_data): Likewise.
3103 * language.h (language_data): Delete la_get_compile_instance field.
3104 (language_defn::get_compile_instance): New member function.
3105 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3106 initializer.
3107 * objc-lang.c (objc_language_data): Likewise.
3108 * opencl-lang.c (opencl_language_data): Likewise.
3109 * p-lang.c (pascal_language_data): Likewise.
3110 * rust-lang.c (rust_language_data): Likewise.
3111
4009ee92
AB
31122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3113
3114 * ada-lang.c (ada_add_all_symbols): Update comment.
3115 (ada_iterate_over_symbols): Delete, move implementation to...
3116 (ada_language::iterate_over_symbols): ...here, a new member
3117 function, rewrite to use range based for loop.
3118 (ada_language_data): Delete la_iterate_over_symbols initializer.
3119 * c-lang.c (c_language_data): Likewise.
3120 (cplus_language_data): Likewise.
3121 (asm_language_data): Likewise.
3122 (minimal_language_data): Likewise.
3123 * d-lang.c (d_language_data): Likewise.
3124 * f-lang.c (f_language_data): Likewise.
3125 * go-lang.c (go_language_data): Likewise.
3126 * language.c (unknown_language_data): Likewise.
3127 (auto_language_data): Likewise.
3128 * language.h (language_data): Delete la_iterate_over_symbols field.
3129 (language_defn::iterate_over_symbols): New member function.
3130 (LA_ITERATE_OVER_SYMBOLS): Update.
3131 * linespec.c (iterate_over_all_matching_symtabs): Update.
3132 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3133 initializer.
3134 * objc-lang.c (objc_language_data): Likewise.
3135 * opencl-lang.c (opencl_language_data): Likewise.
3136 * p-lang.c (pascal_language_data): Likewise.
3137 * rust-lang.c (rust_language_data): Likewise.
3138
54f4ca46
AB
31392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3140
3141 * ada-lang.c (ada_language_data): Delete
3142 la_lookup_transparent_type initializer.
3143 * c-lang.c (c_language_data): Likewise.
3144 (cplus_language_data): Likewise.
3145 (cplus_language::lookup_transparent_type): New member function.
3146 (asm_language_data): Delete la_lookup_transparent_type
3147 initializer.
3148 (minimal_language_data): Likewise.
3149 * d-lang.c (d_language_data): Likewise.
3150 * f-lang.c (f_language_data): Likewise.
3151 * go-lang.c (go_language_data): Likewise.
3152 * language.c (unknown_language_data): Likewise.
3153 (auto_language_data): Likewise.
3154 * language.h (struct language_data): Delete
3155 la_lookup_transparent_type field.
3156 (language_defn::lookup_transparent_type): New member function.
3157 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3158 initializer.
3159 * objc-lang.c (objc_language_data): Likewise.
3160 * opencl-lang.c (opencl_language_data): Likewise.
3161 * p-lang.c (pascal_language_data): Likewise.
3162 * rust-lang.c (rust_language_data): Likewise.
3163 * symtab.c (symbol_matches_domain): Update call.
3164
1fb314aa
AB
31652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3166
3167 * ada-lang.c (ada_language_arch_info): Delete function, move
3168 implementation to...
3169 (ada_language::language_arch_info): ...here, a new member
3170 function.
3171 (ada_language_data): Delete la_language_arch_info.
3172 * c-lang.c (c_language_data): Likewise.
3173 (c_language::language_arch_info): New member function.
3174 (cplus_language_arch_info): Delete function, move
3175 implementation to...
3176 (cplus_language::language_arch_info): ...here, a new member
3177 function.
3178 (cplus_language_data): Delete la_language_arch_info.
3179 (asm_language_data): Likewise.
3180 (asm_language::language_arch_info): New member function.
3181 (minimal_language_data): Delete la_language_arch_info.
3182 (minimal_language::language_arch_info): New member function.
3183 * d-lang.c (d_language_arch_info): Delete function, move
3184 implementation to...
3185 (d_language::language_arch_info): ...here, a new member
3186 function.
3187 (d_language_data): Delete la_language_arch_info.
3188 * f-lang.c (f_language_arch_info): Delete function, move
3189 implementation to...
3190 (f_language::language_arch_info): ...here, a new member
3191 function.
3192 (f_language_data): Delete la_language_arch_info.
3193 * go-lang.c (go_language_arch_info): Delete function, move
3194 implementation to...
3195 (go_language::language_arch_info): ...here, a new member
3196 function.
3197 (go_language_data): Delete la_language_arch_info.
3198 * language.c (unknown_language_data): Likewise.
3199 (unknown_language::language_arch_info): New member function.
3200 (auto_language_data): Delete la_language_arch_info.
3201 (auto_language::language_arch_info): New member function.
3202 (language_gdbarch_post_init): Update call to
3203 la_language_arch_info.
3204 * language.h (language_data): Delete la_language_arch_info
3205 function pointer.
3206 (language_defn::language_arch_info): New function.
3207 * m2-lang.c (m2_language_arch_info): Delete function, move
3208 implementation to...
3209 (m2_language::language_arch_info): ...here, a new member
3210 function.
3211 (m2_language_data): Delete la_language_arch_info.
3212 * objc-lang.c (objc_language_arch_info): Delete function, move
3213 implementation to...
3214 (objc_language::language_arch_info): ...here, a new member
3215 function.
3216 (objc_language_data): Delete la_language_arch_info.
3217 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3218 implementation to...
3219 (opencl_language::language_arch_info): ...here, a new member
3220 function.
3221 (opencl_language_data): Delete la_language_arch_info.
3222 * p-lang.c (pascal_language_arch_info): Delete function, move
3223 implementation to...
3224 (pascal_language::language_arch_info): ...here, a new member
3225 function.
3226 (pascal_language_data): Delete la_language_arch_info.
3227 * rust-lang.c (rust_language_arch_info): Delete function, move
3228 implementation to...
3229 (rust_language::language_arch_info): ...here, a new member
3230 function.
3231 (rust_language_data): Delete la_language_arch_info.
3232
48448202
AB
32332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3234
3235 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3236 initializer.
3237 * c-lang.c (c_language_data): Likewise.
3238 (cplus_language_data): Likewise.
3239 (cplus_language::pass_by_reference_info): New method.
3240 (asm_language_data): Delete la_pass_by_reference initializer.
3241 (minimal_language_data): Likewise.
3242 * cp-abi.c (cp_pass_by_reference): Remove use of
3243 default_pass_by_reference.
3244 * d-lang.c (d_language_data): Likewise.
3245 * f-lang.c (f_language_data): Likewise.
3246 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3247 default_pass_by_reference.
3248 * go-lang.c (go_language_data): Likewise.
3249 * language.c (language_pass_by_reference): Update.
3250 (default_pass_by_reference): Delete.
3251 (unknown_language_data): Delete la_pass_by_reference
3252 initializer.
3253 (auto_language_data): Likewise.
3254 * language.h (struct language_data): Delete la_pass_by_reference
3255 field.
3256 (language_defn::pass_by_reference_info): New member function.
3257 (default_pass_by_reference): Delete declaration.
3258 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3259 initializer.
3260 * objc-lang.c (objc_language_data): Likewise.
3261 * opencl-lang.c (opencl_language_data): Likewise.
3262 * p-lang.c (pascal_language_data): Likewise.
3263 * rust-lang.c (rust_language_data): Likewise.
3264
15e5fd35
AB
32652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3266
3267 * ada-lang.c (ada_read_var_value): Delete function, move
3268 implementation to...
3269 (ada_language::read_var_value): ...here.
3270 (ada_language_data): Delete la_read_var_value initializer.
3271 * c-lang.c (c_language_data): Likewise.
3272 (cplus_language_data): Likewise.
3273 (minimal_language_data): Likewise.
3274 * d-lang.c (d_language_data): Likewise.
3275 * f-lang.c (f_language_data): Likewise.
3276 * findvar.c (default_read_var_value): Rename to...
3277 (language_defn::read_var_value): ...this.
3278 * findvar.c (read_var_value): Update header comment, and change to
3279 call member function instead of function pointer.
3280 * go-lang.c (go_language_data): Likewise.
3281 * language.c (unknown_language_data): Delete la_read_var_value
3282 initializer.
3283 (auto_language_data): Likewise.
3284 * language.h (struct language_data): Delete la_read_var_value
3285 field.
3286 (language_defn::read_var_value): New member function.
3287 (default_read_var_value): Delete declaration.
3288 * m2-lang.c (m2_language_data): Delete la_read_var_value
3289 initializer.
3290 * objc-lang.c (objc_language_data): Likewise.
3291 * opencl-lang.c (opencl_language_data): Likewise.
3292 * p-lang.c (pascal_language_data): Likewise.
3293 * rust-lang.c (rust_language_data): Likewise.
3294 * value.h (default_read_var_value): Delete declaration.
3295
5bd40f2a
AB
32962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3297
3298 * ada-lang.c (ada_print_array_index): Delete function, move
3299 implementation to...
3300 (ada_language::print_array_index): ...here.
3301 (ada_language_data): Delete la_print_array_index initializer.
3302 * c-lang.c (c_language_data): Likewise.
3303 (cplus_language_data): Likewise.
3304 (minimal_language_data): Likewise.
3305 * d-lang.c (d_language_data): Likewise.
3306 * f-lang.c (f_language_data): Likewise.
3307 * go-lang.c (go_language_data): Likewise.
3308 * language.c (default_print_array_index): Delete function, move
3309 implementation to...
3310 (language_defn::print_array_index): ...here.
3311 (unknown_language_data): Delete la_print_array_index initializer.
3312 (auto_language_data): Likewise.
3313 * language.h (struct language_data): Delete la_print_array_index
3314 field.
3315 (language_defn::print_array_index): New member function.
3316 (LA_PRINT_ARRAY_INDEX): Update.
3317 (default_print_array_index): Delete declaration.
3318 * m2-lang.c (m2_language_data): Delete la_print_array_index
3319 initializer.
3320 * objc-lang.c (objc_language_data): Likewise.
3321 * opencl-lang.c (opencl_language_data): Likewise.
3322 * p-lang.c (pascal_language_data): Likewise.
3323 * rust-lang.c (rust_language_data): Likewise.
3324
0874fd07
AB
33252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3326
3327 * gdb/ada-lang.c (ada_language_defn): Convert to...
3328 (ada_language_data): ...this.
3329 (class ada_language): New class.
3330 (ada_language_defn): New static global.
3331 * gdb/c-lang.c (c_language_defn): Convert to...
3332 (c_language_data): ...this.
3333 (class c_language): New class.
3334 (c_language_defn): New static global.
3335 (cplus_language_defn): Convert to...
3336 (cplus_language_data): ...this.
3337 (class cplus_language): New class.
3338 (cplus_language_defn): New static global.
3339 (asm_language_defn): Convert to...
3340 (asm_language_data): ...this.
3341 (class asm_language): New class.
3342 (asm_language_defn): New static global.
3343 (minimal_language_defn): Convert to...
3344 (minimal_language_data): ...this.
3345 (class minimal_language): New class.
3346 (minimal_language_defn): New static global.
3347 * gdb/d-lang.c (d_language_defn): Convert to...
3348 (d_language_data): ...this.
3349 (class d_language): New class.
3350 (d_language_defn): New static global.
3351 * gdb/f-lang.c (f_language_defn): Convert to...
3352 (f_language_data): ...this.
3353 (class f_language): New class.
3354 (f_language_defn): New static global.
3355 * gdb/go-lang.c (go_language_defn): Convert to...
3356 (go_language_data): ...this.
3357 (class go_language): New class.
3358 (go_language_defn): New static global.
3359 * gdb/language.c (unknown_language_defn): Remove declaration.
3360 (current_language): Initialize to nullptr, real initialization is
3361 moved to _initialize_language.
3362 (languages): Delete global.
3363 (language_defn::languages): Define.
3364 (set_language_command): Use language_defn::languages.
3365 (set_language): Likewise.
3366 (range_error): Likewise.
3367 (language_enum): Likewise.
3368 (language_def): Likewise.
3369 (add_set_language_command): Use language_def::languages for the
3370 language list, and language_def to lookup language pointers.
3371 (skip_language_trampoline): Use language_defn::languages.
3372 (unknown_language_defn): Convert to...
3373 (unknown_language_data): ...this.
3374 (class unknown_language): New class.
3375 (unknown_language_defn): New static global.
3376 (auto_language_defn): Convert to...
3377 (auto_language_data): ...this.
3378 (class auto_language): New class.
3379 (auto_language_defn): New static global.
3380 (language_gdbarch_post_init): Use language_defn::languages.
3381 (_initialize_language): Initialize current_language.
3382 * gdb/language.h (struct language_defn): Rename to...
3383 (struct language_data): ...this.
3384 (struct language_defn): New.
3385 (auto_language_defn): Delete.
3386 (unknown_language_defn): Delete.
3387 (minimal_language_defn): Delete.
3388 (ada_language_defn): Delete.
3389 (asm_language_defn): Delete.
3390 (c_language_defn): Delete.
3391 (cplus_language_defn): Delete.
3392 (d_language_defn): Delete.
3393 (f_language_defn): Delete.
3394 (go_language_defn): Delete.
3395 (m2_language_defn): Delete.
3396 (objc_language_defn): Delete.
3397 (opencl_language_defn): Delete.
3398 (pascal_language_defn): Delete.
3399 (rust_language_defn): Delete.
3400 * gdb/m2-lang.c (m2_language_defn): Convert to...
3401 (m2_language_data): ...this.
3402 (class m2_language): New class.
3403 (m2_language_defn): New static global.
3404 * gdb/objc-lang.c (objc_language_defn): Convert to...
3405 (objc_language_data): ...this.
3406 (class objc_language): New class.
3407 (objc_language_defn): New static global.
3408 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3409 (opencl_language_data): ...this.
3410 (class opencl_language): New class.
3411 (opencl_language_defn): New static global.
3412 * gdb/p-lang.c (pascal_language_defn): Convert to...
3413 (pascal_language_data): ...this.
3414 (class pascal_language): New class.
3415 (pascal_language_defn): New static global.
3416 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3417 language pointer, update comment format.
3418 * gdb/rust-lang.c (rust_language_defn): Convert to...
3419 (rust_language_data): ...this.
3420 (class rust_language): New class.
3421 (rust_language_defn): New static global.
3422
1313c56e
AB
34232020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3424
3425 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3426 member variable.
3427 <m_stmt_at_address>: New member variable.
3428 (lnp_state_machine::record_line): Don't record some lines, update
3429 tracking of is_stmt at the same address.
3430 (lnp_state_machine::lnp_state_machine): Initialise new member
3431 variables.
3432
b7ed9f3d
ST
34332020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3434
3435 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3436 "-include gnu-nat-mig.h".
3437 * gnu-nat-mig.h: New file.
3438 * gnu-nat.c: Include "gnu-nat-mig.h".
3439 (exc_server, msg_reply_server, notify_server,
3440 process_reply_server): Remove declarations.
3441
14a8ad62
ST
34422020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3443
3444 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3445 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3446 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3447 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3448 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3449 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3450 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3451 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3452 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3453 to gnu_nat_target class.
3454 * gnu-nat.c: Likewise.
3455 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3456 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3457 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3458 object.
3459 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3460 instead of `gnu_target'.
3461
0af5e106
ST
34622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3463
3464 * i386-gnu-tdep.c: Include "gdbcore.h"
3465 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3466 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3467 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3468 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3469 i386_gnu_sigcontext_addr): New functions
3470 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3471 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3472 tdep.
3473
078f2fc9
ST
34742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3475
3476 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3477 before fork_inferior call. Avoid calling it if target_is_pushed returns
3478 true.
3479
53dff92c
ST
34802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3481
3482 * gnu-nat.h (gnu_target): New variable declaration.
3483 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3484 gnu_target.
3485 * gnu-nat.c (gnu_target): New variable.
3486 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3487 add_thread_silent, and add_thread calls.
3488 (gnu_nat_target::create_inferior): Pass gnu_target to
3489 add_thread_silent, thread_change_ptid call.
3490 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3491 call.
3492
5a8b8627
ST
34932020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3494
3495 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3496 (gnu_nat_target::find_memory_regions): Remove unused
3497 `old_address' variable.
3498
366f550a
ST
34992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3500
3501 * gnu-nat.c: Include "gdbarch.h".
3502
f14871bf
ST
35032020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3504
3505 * reply_mig_hack.awk (Error return): Cast function through
3506 void *, to bypass compiler function call check.
3507
c6887cfb
ST
35082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3509
3510 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3511 $(srcdir)/reply_mig_hack.awk.
3512
6930bffe
ST
35132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3514
3515 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3516
112c22ed
JG
35172020-05-30 Jonny Grant <jg@jguk.org>
3518
3519 * configure.ac (ACX_BUGURL): change bug URL to https.
3520
f68f85b5
PA
35212020-05-30 Pedro Alves <palves@redhat.com>
3522
3523 * cp-support.c (replace_typedefs_template): New.
3524 (replace_typedefs_qualified_name): Handle
3525 DEMANGLE_COMPONENT_TEMPLATE.
3526
976ca316
SM
35272020-05-29 Simon Marchi <simon.marchi@efficios.com>
3528
3529 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3530 dwarf2/index-cache.h, dwarf2/index-write.c,
3531 dwarf2/index-write.h, dwarf2/line-header.c,
3532 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3533 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3534 variables and fields from `dwarf2_per_objfile` to just
3535 `per_objfile` throughout.
3536
989ade05
SM
35372020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3538
3539 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3540 <push_dwarf_reg_entry_value>: Add comment.
3541
c47bae85
KB
35422020-05-28 Kevin Buettner <kevinb@redhat.com>
3543 Keith Seitz <keiths@redhat.com>
3544
3545 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3546 instead of PyEval_ReleaseLock.
3547 (class gdbpy_gil): Move to earlier in file.
3548 (finalize_python): Set gdb_python_initialized.
3549 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3550 when not initialized.
3551
44486dcf
SM
35522020-05-28 Simon Marchi <simon.marchi@efficios.com>
3553
3554 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3555 <push_dwarf_reg_entry_value>: Remove assert. Override
3556 per_objfile with caller_per_objfile.
3557
f030440d
TV
35582020-05-28 Tom de Vries <tdevries@suse.de>
3559
3560 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3561 PR gold/15646 workaround to symbol kind "type".
3562
f0fbb768
TT
35632020-05-27 Tom Tromey <tromey@adacore.com>
3564
3565 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3566
af0b2a3e
TT
35672020-05-27 Tom Tromey <tromey@adacore.com>
3568
3569 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3570 Use htab_find_with_hash.
3571 <add_abbrev>: Remove "abbrev_number" parameter.
3572 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3573 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3574 (hash_abbrev): Add comment.
3575 (abbrev_table::lookup_abbrev): Move to header file.
3576 (abbrev_table::read): Update.
3577
7d00ffec
TT
35782020-05-27 Tom Tromey <tromey@adacore.com>
3579
3580 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3581 method.
3582 <canonical_name>: New member.
3583 <raw_name>: Rename from "name".
3584 (partial_die_info): Initialize canonical_name.
3585 (scan_partial_symbols): Check raw_name.
3586 (partial_die_parent_scope, partial_die_full_name)
3587 (add_partial_symbol, add_partial_subprogram)
3588 (add_partial_enumeration, load_partial_dies): Use "name" method.
3589 (partial_die_info::name): New method.
3590 (partial_die_info::read, guess_partial_die_structure_name)
3591 (partial_die_info::fixup): Update.
3592
697bba18
TT
35932020-05-27 Tom Tromey <tromey@adacore.com>
3594
3595 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3596 <get_ref_die_offset>: Inline.
3597 <get_ref_die_offset_complaint>: New method.
3598 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3599 (attribute::get_ref_die_offset_complaint): Rename from
3600 get_ref_die_offset. Just issue complaint.
3601
c17ace43
HD
36022020-05-27 Hannes Domani <ssbssa@yahoo.de>
3603
3604 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3605
96445f0b
HD
36062020-05-27 Hannes Domani <ssbssa@yahoo.de>
3607
3608 * exec.c (exec_file_attach): Use errno value of first openp failure.
3609
ac637ec3
HD
36102020-05-27 Hannes Domani <ssbssa@yahoo.de>
3611
3612 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3613 Don't close thread handle.
3614
17ee85fc
TT
36152020-05-27 Tom Tromey <tom@tromey.com>
3616 Simon Marchi <simon.marchi@efficios.com>
3617
3618 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3619 shared_ptr.
3620 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3621 member.
3622 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3623 dwarf2_per_bfd_objfile_data_key>: New globals.
3624 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3625 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3626 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3627 shared.
3628 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3629 short-circuit when sharing.
3630 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3631 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3632
39b16f87
SM
36332020-05-27 Simon Marchi <simon.marchi@efficios.com>
3634
3635 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3636 to...
3637 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3638 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3639
fcf23d5b
SM
36402020-05-27 Simon Marchi <simon.marchi@efficios.com>
3641
3642 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3643 build_name_components, find_name_components_bounds>:
3644 Add per_objfile parameter.
3645 (struct mapped_index) <symbol_name_at>: Likewise.
3646 (struct mapped_debug_names): Remove constructor.
3647 <dwarf2_per_objfile>: Remove field.
3648 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3649 (mapped_index_base::find_name_components_bounds,
3650 mapped_index_base::build_name_components,
3651 dw2_expand_symtabs_matching_symbol): Likewise.
3652 (class mock_mapped_index) <symbol_name_at>: Likewise.
3653 (check_match): Likewise.
3654 (check_find_bounds_finds): Likewise.
3655 (test_mapped_index_find_name_component_bounds): Update.
3656 (CHECK_MATCH): Update.
3657 (dw2_expand_symtabs_matching): Update.
3658 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3659 per_objfile parameter.
3660 <find_vec_in_debug_names>: Likewise.
3661 <m_per_objfile>: New field.
3662 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3663 parameter.
3664 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3665 (dw2_debug_names_iterator::next): Update.
3666 (dw2_debug_names_lookup_symbol): Update.
3667 (dw2_debug_names_expand_symtabs_for_function): Update.
3668 (dw2_debug_names_map_matching_symbols): Update.
3669 (dw2_debug_names_expand_symtabs_matching): Update.
3670 (dwarf2_read_debug_names): Update.
3671
7188ed02
SM
36722020-05-27 Simon Marchi <simon.marchi@efficios.com>
3673
3674 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3675 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3676 move to dwarf2_per_objfile.
3677 <read_in_chain>: Remove.
3678 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3679 remove_all_cus, age_comp_units>: New methods.
3680 <m_dwarf2_cus>: New member.
3681 (struct dwarf2_per_cu_data) <cu>: Remove.
3682 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3683 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3684 moved to methods of dwarf2_per_objfile.
3685 (dwarf2_clear_marks): Remove.
3686 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3687 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3688 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3689 (dwarf2_per_objfile::remove_all_cus): New.
3690 (class free_cached_comp_units) <~free_cached_comp_units>:
3691 Update.
3692 (load_cu): Update.
3693 (dw2_do_instantiate_symtab): Adjust.
3694 (fill_in_sig_entry_from_dwo_entry): Adjust.
3695 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3696 (cutu_reader::cutu_reader): Likewise.
3697 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3698 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3699 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3700 and dwarf2_per_objfile::age_comp_units.
3701 (load_partial_comp_unit): Update.
3702 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3703 (process_queue): Likewise.
3704 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3705 backlink.
3706 (dwarf2_read_addr_index): Likewise.
3707 (follow_die_offset): Likewise.
3708 (dwarf2_fetch_die_loc_sect_off): Likewise.
3709 (dwarf2_fetch_constant_bytes): Likewise.
3710 (dwarf2_fetch_die_type_sect_off): Likewise.
3711 (follow_die_sig_1): Likewise.
3712 (load_full_type_unit): Likewise.
3713 (read_signatured_type): Likewise.
3714 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3715 (dwarf2_cu::~dwarf2_cu): Remove.
3716 (dwarf2_per_objfile::get_cu): New.
3717 (dwarf2_per_objfile::set_cu): New.
3718 (age_cached_comp_units): Rename to...
3719 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3720 to std::unordered_map.
3721 (free_one_cached_comp_unit): Rename to...
3722 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3723 to std::unordered_map.
3724 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3725 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3726 a dwarf2_per_objfile in data.
3727 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3728 (dwarf2_clear_marks): Remove.
3729
2e671100
SM
37302020-05-27 Simon Marchi <simon.marchi@efficios.com>
3731
3732 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3733 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3734 (init_tu_and_read_dwo_dies): Likewise.
3735 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3736 (cutu_reader::cutu_reader): Likewise.
3737 (load_partial_comp_unit): Likewise.
3738 (process_psymtab_comp_unit): Update.
3739 (build_type_psymtabs_1): Update.
3740 (process_skeletonless_type_unit): Update.
3741 (load_full_comp_unit): Update.
3742 (find_partial_die): Update.
3743 (dwarf2_read_addr_index): Update.
3744 (read_signatured_type): Update.
3745
2e6a9f79
SM
37462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3747
3748 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3749 m_header_read_in>: New fields.
3750 <get_header>: New method.
3751 * dwarf2/read.c (per_cu_header_read_in): Remove.
3752 (dwarf2_per_cu_data::get_header): New.
3753 (dwarf2_per_cu_data::addr_size): Update.
3754 (dwarf2_per_cu_data::offset_size): Update.
3755 (dwarf2_per_cu_data::ref_addr_size): Update.
3756
1b555f17
SM
37572020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3758
3759 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3760 (dw2_do_instantiate_symtab): Update.
3761 (queue_and_load_all_dwo_tus): Change parameter from
3762 dwarf2_per_cu_data to dwarf2_cu.
3763 (dwarf2_fetch_die_loc_sect_off): Update.
3764 (dwarf2_fetch_constant_bytes): Update.
3765 (dwarf2_fetch_die_type_sect_off): Update.
3766
8fc0b21d
SM
37672020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3768
3769 * dwarf2/read.c (process_full_comp_unit,
3770 process_full_type_unit): Remove per_cu, per_objfile paramters.
3771 Add dwarf2_cu parameter.
3772 (process_queue): Update.
3773
168c9250
SM
37742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3775
3776 * dwarf2/read.c (create_cu_from_index_list): Replace
3777 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3778 (create_cus_from_index_list): Likewise.
3779 (create_cus_from_index): Likewise.
3780 (create_signatured_type_table_from_index): Likewise.
3781 (create_cus_from_debug_names_list): Likewise.
3782 (create_cus_from_debug_names): Likewise.
3783 (dwarf2_read_gdb_index): Update.
3784 (dwarf2_read_debug_names): Update.
3785
e286671b
TT
37862020-05-27 Tom Tromey <tom@tromey.com>
3787 Simon Marchi <simon.marchi@efficios.com>
3788
3789 * dwarf2/read.h (struct dwarf2_per_objfile)
3790 <get_type_for_signatured_type, set_type_for_signatured_type>:
3791 New methods.
3792 <m_type_map>: New member.
3793 (struct signatured_type) <type>: Remove.
3794 * dwarf2/read.c
3795 (dwarf2_per_objfile::get_type_for_signatured_type,
3796 dwarf2_per_objfile::set_type_for_signatured_type): New.
3797 (get_signatured_type): Use new methods.
3798
8adb8487
TT
37992020-05-27 Tom Tromey <tom@tromey.com>
3800 Simon Marchi <simon.marchi@efficios.com>
3801
3802 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3803 (struct dwarf2_per_objfile) <type_units>: New member.
3804 <get_type_unit_group_unshareable>: New method.
3805 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3806 num_symtabs, symtabs>: Remove; move to
3807 type_unit_group_unshareable.
3808 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3809 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3810 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3811
127bbf4b
SM
38122020-05-27 Simon Marchi <simon.marchi@efficios.com>
3813
3814 * dwarf2/read.h (struct dwarf2_per_cu_data):
3815 <dwarf2_per_objfile>: Remove.
3816 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3817 dwarf2_per_objfile.
3818 (create_signatured_type_table_from_index): Likewise.
3819 (create_signatured_type_table_from_debug_names): Likewise.
3820 (create_debug_type_hash_table): Likewise.
3821 (fill_in_sig_entry_from_dwo_entry): Likewise.
3822 (create_type_unit_group): Likewise.
3823 (read_comp_units_from_section): Likewise.
3824 (create_cus_hash_table): Likewise.
3825
f6e649dd
SM
38262020-05-27 Simon Marchi <simon.marchi@efficios.com>
3827
3828 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3829 dwarf2_per_cu_data::dwarf2_per_objfile.
3830 (compute_compunit_symtab_includes): Likewise.
3831 (dwarf2_cu::start_symtab): Likewise.
3832
aa66c379
SM
38332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3834
3835 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3836 parameter.
3837 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3838 (read_namespace_alias): Update.
3839 (lookup_die_type): Update.
3840 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3841 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3842 Update.
3843 (disassemble_dwarf_expression): Update.
3844
120ce1b5
SM
38452020-05-27 Simon Marchi <simon.marchi@efficios.com>
3846
3847 * dwarf2/read.h (struct dwarf2_queue_item): Add
3848 dwarf2_per_objfile parameter, assign new parameter.
3849 <per_objfile>: New field.
3850 * dwarf2/read.c (free_one_cached_comp_unit): Add
3851 dwarf2_per_objfile parameter.
3852 (queue_comp_unit): Likewise.
3853 (dw2_do_instantiate_symtab): Update.
3854 (process_psymtab_comp_unit): Update.
3855 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3856 (process_imported_unit_die): Update.
3857 (queue_and_load_dwo_tu): Update.
3858 (follow_die_offset): Update.
3859 (follow_die_sig_1): Update.
3860
9f47c707
SM
38612020-05-27 Simon Marchi <simon.marchi@efficios.com>
3862
3863 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3864 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3865 (read_call_site_scope): Assign per_objfile.
3866 (dwarf2_per_cu_data::objfile): Remove.
3867 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3868 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3869 dwarf2_per_objfile parameter.
3870 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3871 dwarf2_per_objfile parameter.
3872 (dwarf_expr_reg_to_entry_parameter): Add output
3873 dwarf2_per_objfile parameter.
3874 (locexpr_get_frame_base): Update.
3875 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3876 <push_dwarf_reg_entry_value>: Update.
3877 <call_site_to_target_addr>: Update.
3878 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3879 parameter.
3880 (value_of_dwarf_reg_entry): Update.
3881 (rw_pieced_value): Update.
3882 (indirect_synthetic_pointer): Update.
3883 (dwarf2_evaluate_property): Update.
3884 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3885 parameter.
3886 (locexpr_read_variable): Update.
3887 (locexpr_get_symbol_read_needs): Update.
3888 (loclist_read_variable): Update.
3889
14095eb3
SM
38902020-05-27 Simon Marchi <simon.marchi@efficios.com>
3891
3892 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3893 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3894 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3895 parameter.
3896 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3897 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3898 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3899 parameter.
3900 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3901 sect_variable_value): Add dwarf2_per_objfile parameter.
3902 (class dwarf_evaluate_loc_desc) <dwarf_call,
3903 dwarf_variable_value>: Update.
3904 (fetch_const_value_from_synthetic_pointer): Add
3905 dwarf2_per_objfile parameter.
3906 (fetch_const_value_from_synthetic_pointer): Update.
3907 (coerced_pieced_ref): Update.
3908 (class symbol_needs_eval_context) <dwarf_call,
3909 dwarf_variable_value>: Update.
3910 (dwarf2_compile_expr_to_ax): Update.
3911
3c3cd3d4
SM
39122020-05-27 Simon Marchi <simon.marchi@efficios.com>
3913
3914 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3915 parameter.
3916 (dwarf2_evaluate_loc_desc_full): Update.
3917
82ca3f51
SM
39182020-05-27 Simon Marchi <simon.marchi@efficios.com>
3919
3920 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3921 parameter.
3922 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3923 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3924 dwarf2_per_objfile parameter.
3925 (decode_debug_loc_dwo_addresses): Likewise.
3926 (dwarf2_find_location_expression): Update.
3927 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3928 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3929 parameter.
3930 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3931 parameter.
3932 (locexpr_describe_location_1): Likewise.
3933 (locexpr_describe_location): Update.
3934
4b167ea1
SM
39352020-05-27 Simon Marchi <simon.marchi@efficios.com>
3936
3937 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3938 Remove.
3939 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3940 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3941 (dwarf2_compile_property_to_c): Update.
3942 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3943 use text offset from objfile.
3944 (locexpr_tracepoint_var_ref): Update.
3945 (locexpr_generate_c_location): Update.
3946 (loclist_describe_location): Update.
3947 (loclist_tracepoint_var_ref): Update.
3948 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3949 dwarf2_per_objfile parameter.
3950 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3951 use text offset from objfile.
3952 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3953
89b07335
SM
39542020-05-27 Simon Marchi <simon.marchi@efficios.com>
3955
3956 * dwarf2/expr.h (struct dwarf_expr_context)
3957 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3958 <offset>: Remove.
3959 <per_objfile>: New member.
3960 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3961 dwarf2_per_objfile parameter. Don't set offset, set
3962 per_objfile.
3963 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3964 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3965 a dwarf2_per_objfile object instead of an offset.
3966 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3967 constructor.
3968 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3969 to dwarf2_expr_executor constructor. Don't set offset.
3970 (dwarf2_fetch_cfa_info): Update.
3971 (struct dwarf2_frame_cache) <text_offset>: Remove.
3972 <per_objfile>: New field.
3973 (dwarf2_frame_cache): Update.
3974 (dwarf2_frame_prev_register): Update.
3975 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3976 <dwarf_evaluate_loc_desc>: Add constructor.
3977 (dwarf2_evaluate_loc_desc_full): Update.
3978 (dwarf2_locexpr_baton_eval): Update.
3979 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3980 Add constructor.
3981 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3982
293e7e51
SM
39832020-05-27 Simon Marchi <simon.marchi@efficios.com>
3984
3985 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3986 addr_sized_int_type>: Move to dwarf2_cu.
3987 <int_type>: Move to dwarf2_per_objfile.
3988 (struct dwarf2_per_objfile) <int_type>: Move here.
3989 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3990 addr_sized_int_type>: Move here.
3991 (read_func_scope): Update.
3992 (read_array_type): Update.
3993 (read_tag_string_type): Update.
3994 (attr_to_dynamic_prop): Update.
3995 (dwarf2_per_cu_data::int_type): Rename to...
3996 (dwarf2_per_objfile::int_type): ... this.
3997 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3998 (dwarf2_cu::addr_sized_int_type): ... this.
3999 (read_subrange_type): Update.
4000 (dwarf2_per_cu_data::addr_type): Rename to...
4001 (dwarf2_cu::addr_type): ... this.
4002 (set_die_type): Update.
4003
64874a40
SM
40042020-05-27 Simon Marchi <simon.marchi@efficios.com>
4005
4006 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4007 data through per_cu->cu.
4008
4ab09049
SM
40092020-05-27 Simon Marchi <simon.marchi@efficios.com>
4010
4011 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4012 dwarf2_per_cu_data parameter fo dwarf2_cu.
4013 (lookup_dwo_type_unit): Likewise.
4014 (read_cutu_die_from_dwo): Likewise.
4015 (lookup_dwo_unit): Likewise.
4016 (open_and_init_dwo_file): Likewise.
4017 (lookup_dwo_cutu): Likewise.
4018 (lookup_dwo_comp_unit): Likewise.
4019 (lookup_dwo_type_unit): Likewise.
4020 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4021 (cutu_reader::cutu_reader): Update.
4022
47b14e86
SM
40232020-05-27 Simon Marchi <simon.marchi@efficios.com>
4024
4025 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4026 parameter.
4027 (process_full_type_unit): Likewise.
4028 (process_queue): Update.
4029
43182c09
SM
40302020-05-27 Simon Marchi <simon.marchi@efficios.com>
4031
4032 * dwarf2/read.c (recursively_compute_inclusions): Add
4033 dwarf2_per_objfile parameter.
4034 (compute_compunit_symtab_includes): Likewise.
4035 (process_cu_includes): Update.
4036
7aa104c4
SM
40372020-05-27 Simon Marchi <simon.marchi@efficios.com>
4038
4039 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4040 parameter.
4041 (create_type_unit_group): Update.
4042 (process_psymtab_comp_unit_reader): Update.
4043 (build_type_psymtabs_reader): Update.
4044
e3beb21d
SM
40452020-05-27 Simon Marchi <simon.marchi@efficios.com>
4046
4047 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4048 object through m_this_cu->cu.
4049
d460f660
SM
40502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4051
4052 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4053 the info parameter.
4054 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4055
ab432490
SM
40562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4057
4058 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4059 per_objfile parameter.
4060 (load_full_type_unit): Add per_objfile parameter.
4061 (read_signatured_type): Likewise.
4062 (load_full_comp_unit): Likewise.
4063 (load_cu): Likewise.
4064 (dw2_do_instantiate_symtab): Likewise.
4065 (dw2_get_file_names): Likewise.
4066 (dw2_map_symtabs_matching_filename): Update.
4067 (dw_expand_symtabs_matching_file_matcher): Update.
4068 (dw2_map_symbol_filenames): Update.
4069 (process_psymtab_comp_unit): Add per_objfile parameter.
4070 (build_type_psymtabs_1): Update.
4071 (process_skeletonless_type_unit): Update.
4072 (dwarf2_build_psymtabs_hard): Update.
4073 (load_partial_comp_unit): Add per_objfile parameter.
4074 (scan_partial_symbols): Update.
4075 (load_full_comp_unit): Add per_objfile parameter.
4076 (process_imported_unit_die): Update.
4077 (create_cus_hash_table): Update.
4078 (find_partial_die): Update.
4079 (dwarf2_read_addr_index): Update.
4080 (follow_die_offset): Update.
4081 (dwarf2_fetch_die_loc_sect_off): Update.
4082 (dwarf2_fetch_constant_bytes): Update.
4083 (dwarf2_fetch_die_type_sect_off): Update.
4084 (follow_die_sig_1): Update.
4085 (load_full_type_unit): Add per_objfile parameter.
4086 (read_signatured_type): Likewise.
4087
313bad1b
SM
40882020-05-27 Simon Marchi <simon.marchi@efficios.com>
4089
4090 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4091 of objfile_name.
4092
c3699833
SM
40932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4094
4095 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4096 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4097 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4098 field.
4099 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4100 (create_cus_from_index): Update.
4101 (dwarf2_read_gdb_index): Update.
4102 (create_cus_from_debug_names): Update.
4103 (dwarf2_read_debug_names): Update.
4104 (get_abbrev_section_for_cu): Update.
4105 (create_all_comp_units): Update.
4106 (read_attribute_value): Update.
4107 (get_debug_line_section): Update.
4108 * dwarf2/index-cache.c (index_cache::store): Update.
4109 * dwarf2/index-write.c (save_gdb_index_command): Update.
4110 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4111
1859c670
SM
41122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4113
4114 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4115 member.
4116 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4117 dwarf2_per_cu_data::per_bfd.
4118 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4119 (create_type_unit_group): Likewise.
4120 (queue_comp_unit): Remove reference to
4121 per_cu->dwarf2_per_objfile.
4122 (maybe_queue_comp_unit): Likewise.
4123 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4124 (create_cus_hash_table): Assign new field.
4125
5e22e966
SM
41262020-05-27 Simon Marchi <simon.marchi@efficios.com>
4127
4128 * dwarf2/read.c: Replace
4129 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4130 dwarf2_cu->per_objfile throughout.
4131
97a1449a
SM
41322020-05-27 Simon Marchi <simon.marchi@efficios.com>
4133
4134 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4135 parameter, don't use per_cu->dwarf2_per_objfile.
4136 (dw2_instantiate_symtab): Likewise.
4137 (dw2_find_last_source_symtab): Update.
4138 (dw2_map_expand_apply): Update.
4139 (dw2_lookup_symbol): Update.
4140 (dw2_expand_symtabs_for_function): Update.
4141 (dw2_expand_all_symtabs): Update.
4142 (dw2_expand_symtabs_with_fullname): Update.
4143 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4144 don't use per_cu->dwarf2_per_objfile.
4145 (dw2_expand_marked_cus): Update.
4146 (dw2_find_pc_sect_compunit_symtab): Update.
4147 (dw2_debug_names_lookup_symbol): Update.
4148 (dw2_debug_names_expand_symtabs_for_function): Update.
4149 (dw2_debug_names_map_matching_symbols): Update.
4150 (dwarf2_psymtab::expand_psymtab): Update.
4151
9e021579
SM
41522020-05-27 Simon Marchi <simon.marchi@efficios.com>
4153
4154 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4155 <per_objfile>: New member.
4156 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4157 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4158 call to dwarf2_cu.
4159 (cutu_reader::cutu_reader): Update.
4160 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4161
ae090bdb
SM
41622020-05-27 Simon Marchi <simon.marchi@efficios.com>
4163
4164 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4165 struct dwarf2_per_objfile.
4166 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4167 dwarf2_per_bfd.
4168 * dwarf2/read.c (set_die_type): Update.
4169 (get_die_type_at_offset): Update.
4170
af758d11
SM
41712020-05-27 Tom Tromey <tom@tromey.com>
4172 Simon Marchi <simon.marchi@efficios.com>
4173
4174 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4175 method.
4176 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4177 get_symtab, set_symtab>: New methods.
4178 <m_symtabs>: New field.
4179 (struct dwarf2_psymtab): Derive from partial_symtab.
4180 <readin_p, get_compunit_symtab>: Declare methods.
4181 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4182 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4183 New methods.
4184 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4185 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4186 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4187 (dw2_symtab_iter_next, dw2_print_stats)
4188 (dw2_expand_symtabs_with_fullname)
4189 (dw2_expand_symtabs_matching_one)
4190 (dw_expand_symtabs_matching_file_matcher)
4191 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4192 (dw2_debug_names_iterator::next)
4193 (dw2_debug_names_map_matching_symbols)
4194 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4195 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4196 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4197 New methods.
4198 (get_compunit_symtab, process_full_comp_unit)
4199 (process_full_type_unit): Update.
4200 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4201
5989a64e
SM
42022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4203
4204 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4205 then introduce a new dwarf2_per_objfile type.
4206 <read_line_string>: Move to the new dwarf2_per_objfile type.
4207 <objfile>: Likewise.
4208 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4209 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4210 dwarf2_per_objfile->per_bfd.
4211 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4212 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4213 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4214 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4215 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4216 (dwarf2_per_objfile::locate_sections): Rename to...
4217 (dwarf2_per_bfd::locate_sections): ... this.
4218 (dwarf2_per_objfile::get_cutu): Rename to...
4219 (dwarf2_per_bfd::get_cutu): ... this.
4220 (dwarf2_per_objfile::get_cu): Rename to...
4221 (dwarf2_per_bfd::get_cu): ... this.
4222 (dwarf2_per_objfile::get_tu): Rename to...
4223 (dwarf2_per_bfd::get_tu): ... this.
4224 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4225 (dwarf2_per_bfd::allocate_per_cu): ... this.
4226 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4227 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4228 (get_gdb_index_contents_ftype): Change parameter from
4229 dwarf2_per_objfile to dwarf2_per_bfd.
4230 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4231 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4232
a50264ba
TT
42332020-05-27 Tom Tromey <tom@tromey.com>
4234 Simon Marchi <simon.marchi@efficios.com>
4235
4236 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4237 (allocate_piece_closure): Set "per_objfile" member.
4238 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4239 (locexpr_describe_location, loclist_describe_location): Use new
4240 member.
4241 * dwarf2/read.c (read_call_site_scope)
4242 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4243 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4244 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4245 handle_data_member_location): Set per_objfile member.
4246 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4247 member.
4248 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4249
d3473f0c
TT
42502020-05-27 Tom Tromey <tom@tromey.com>
4251
4252 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4253 allocate_signatured_type>: Declare new methods.
4254 <m_num_psymtabs>: New member.
4255 (struct dwarf2_per_cu_data) <index>: New member.
4256 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4257 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4258 (create_cu_from_index_list): Use allocate_per_cu.
4259 (create_signatured_type_table_from_index)
4260 (create_signatured_type_table_from_debug_names)
4261 (create_debug_type_hash_table, add_type_unit)
4262 (read_comp_units_from_section): Use allocate_signatured_type.
4263
5717c425
TT
42642020-05-27 Tom Tromey <tom@tromey.com>
4265
4266 * psymtab.c (partial_map_expand_apply)
4267 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4268 (psym_lookup_global_symbol_language)
4269 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4270 (psym_print_stats, psym_expand_symtabs_for_function)
4271 (psym_map_symbol_filenames, psym_map_matching_symbols)
4272 (psym_expand_symtabs_matching)
4273 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4274 (maintenance_check_psymtabs): Update.
4275 * psympriv.h (struct partial_symtab) <readin_p,
4276 get_compunit_symtab>: Add objfile parameter.
4277 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4278 Likewise.
4279 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4280 get_compunit_symtab>: Likewise.
4281 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4282
45940949
TT
42832020-05-27 Tom Tromey <tom@tromey.com>
4284
4285 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4286 member.
4287 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4288 (create_cu_from_index_list)
4289 (create_signatured_type_table_from_index)
4290 (create_signatured_type_table_from_debug_names)
4291 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4292 (dwarf2_create_include_psymtab)
4293 (create_debug_type_hash_table, add_type_unit)
4294 (create_type_unit_group, read_comp_units_from_section)
4295 (dwarf2_compute_name, create_cus_hash_table)
4296 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4297 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4298 obstack.
4299 (dw2_get_real_path): Likewise. Change argument to
4300 dwarf2_per_objfile.
4301
f8c6d152
LM
43022020-05-27 Luis Machado <luis.machado@linaro.org>
4303
4304 PR tdep/26000
4305 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4306 for ldrd (immediate).
4307
e98d2e6d
PW
43082020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4309
4310 * command.h: Add comment giving the name of class_tui.
4311 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4312 create the fake command for the help for class_tui.
4313
53a47a3e
TT
43142020-05-26 Tom Tromey <tromey@adacore.com>
4315
4316 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4317 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4318 (val_atr): New function.
4319 (value_val_atr): Use it.
4320 * ada-valprint.c (print_optional_low_bound): Change low bound
4321 handling for enums.
4322 (val_print_packed_array_elements): Don't call discrete_position.
4323 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4324 discrete_position for enum types.
4325 * language.c (default_print_array_index): Change type.
4326 * language.h (struct language_defn) <la_print_array_index>: Add
4327 index_type parameter, change type of index_value.
4328 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4329 (default_print_array_index): Update.
4330 * valprint.c (maybe_print_array_index): Don't call
4331 value_from_longest. Update.
4332 (value_print_array_elements): Don't call discrete_position.
4333
0bc2354b
TT
43342020-05-26 Tom Tromey <tromey@adacore.com>
4335
4336 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4337 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4338
1218a4bf
CDA
43392020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4340
4341 PR gdb/13519
4342 * avr-tdep.c (avr_integer_to_address): Return data or code
4343 address accordingly to the second 'type' argument of the
4344 function.
4345
92651b1d
MW
43462020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4347
4348 * infcmd.c, inferior.h: (construct_inferior_arguments):
4349 Moved function from here to gdbsupport/common-inferior.{h,cc}
4350
0a4f5f8c
TT
43512020-05-23 Tom Tromey <tom@tromey.com>
4352
4353 Revert commit eca1f90c:
4354 * NEWS: Remove entry for completion styling.
4355 * completer.c (_rl_completion_prefix_display_length): Move
4356 declaration later.
4357 (gdb_fnprint): Revert.
4358 (gdb_display_match_list_1): Likewise.
4359 * cli/cli-style.c (completion_prefix_style)
4360 (completion_difference_style, completion_suffix_style): Remove.
4361 (_initialize_cli_style): Revert.
4362 * cli/cli-style.h (completion_prefix_style)
4363 (completion_difference_style, completion_suffix_style): Don't
4364 declare.
4365
e08bd6c5
PA
43662020-05-24 Pedro Alves <palves@redhat.com>
4367
4368 * symtab.c (completion_list_add_name): Return boolean indication
4369 of whether the symbol matched.
4370 (completion_list_add_symbol): Don't try to remove C++ aliases if
4371 the symbol didn't match in the first place.
4372 * symtab.h (completion_list_add_name): Return bool.
4373
ceacbf6e
SM
43742020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4375
4376 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4377 type::field.
4378
26f16254
JB
43792020-05-23 Joel Brobecker <brobecker@adacore.com>
4380
4381 GDB 9.2 released.
4382
eca1f90c
TT
43832020-05-23 Tom Tromey <tom@tromey.com>
4384
4385 * NEWS: Add entry for completion styling.
4386 * completer.c (_rl_completion_prefix_display_length): Move
4387 declaration earlier.
4388 (gdb_fnprint): Use completion_style.
4389 (gdb_display_match_list_1): Likewise.
4390 * cli/cli-style.c (completion_prefix_style)
4391 (completion_difference_style, completion_suffix_style): New
4392 globals.
4393 (_initialize_cli_style): Register new globals.
4394 * cli/cli-style.h (completion_prefix_style)
4395 (completion_difference_style, completion_suffix_style): Declare.
4396
51e2cfa2
PA
43972020-05-23 Pedro Alves <palves@redhat.com>
4398
4399 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4400 (parse_escape): Use ISDIGIT instead of isdigit.
4401 (puts_debug): Use gdb_isprint instead of isprint.
4402 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4403 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4404 ISSPACE instead of isspace.
4405 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4406 instead of isspace.
4407 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4408 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4409 instead of isxdigit and ISDIGIT instead of isdigit.
4410
80fc5e77
SM
44112020-05-22 Simon Marchi <simon.marchi@efficios.com>
4412
4413 * gdbtypes.h (struct type) <field>: New method.
4414 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4415 or type::field.
4416
3cabb6b0
SM
44172020-05-22 Simon Marchi <simon.marchi@efficios.com>
4418
4419 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4420 (TYPE_FIELDS): Use type::fields. Change all call sites that
4421 modify the propery to use type::set_fields instead.
4422
1f704f76
SM
44232020-05-22 Simon Marchi <simon.marchi@efficios.com>
4424
4425 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4426 type::num_fields instead.
4427
5e33d5f4
SM
44282020-05-22 Simon Marchi <simon.marchi@efficios.com>
4429
4430 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4431 methods.
4432 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4433 that modify the number of fields to use type::set_num_fields
4434 instead.
4435
9392ebb3
TT
44362020-05-22 Tom Tromey <tromey@adacore.com>
4437
4438 * compile/compile-object-load.h (munmap_list_free): Don't
4439 declare.
4440
7c13f4e8
AB
44412020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4442
4443 * annotate.c (annotate_source_line): Update return type, add call
4444 to update current symtab and line.
4445 * annotate.h (annotate_source_line): Update return type, and
4446 extend header comment.
4447 * source.c (info_line_command): Check annotation_level before
4448 calling annotate_source_line.
4449 * stack.c (print_frame_info): If calling annotate_source_line
4450 returns true, then don't print any other source line information.
4451
aa370940
SM
44522020-05-21 Simon Marchi <simon.marchi@efficios.com>
4453
4454 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4455
84d53fa9
SM
44562020-05-21 Simon Marchi <simon.marchi@efficios.com>
4457
4458 * coffread.c (patch_type): Remove NULL check before xfree.
4459 * corefile.c (set_gnutarget): Likewise.
4460 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4461 * exec.c (build_section_table): Likewise.
4462 * remote.c (remote_target::pass_signals): Likewise.
4463 * utils.c (n_spaces): Likewise.
4464 * cli/cli-script.c (document_command): Likewise.
4465 * i386-windows-tdep.c (core_process_module_section): Likewise.
4466 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4467
9d428aae
SM
44682020-05-20 Simon Marchi <simon.marchi@efficios.com>
4469
4470 * symfile.c (reread_symbols): Clear objfile's section_offsets
4471 vector and section indices, re-compute them by calling
4472 sym_offsets.
4473
250106a7
TT
44742020-05-20 Tom Tromey <tromey@adacore.com>
4475
4476 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4477 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4478
9a0bacfb
TV
44792020-05-20 Tom de Vries <tdevries@suse.de>
4480
4481 PR symtab/25833
4482 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4483
7b958a48
AM
44842020-05-20 Alan Modra <amodra@gmail.com>
4485
4486 PR 25993
4487 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4488 bfd_set_filename.
4489 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4490 passed to bfd_set_filename.
4491 * symfile-mem.c (add_vsyscall_page): Likewise for string
4492 passed to symbol_file_add_from_memory.
4493 (symbol_file_add_from_memory): Make name param a const char* and
4494 don't strdup.
4495
c7e97679
AM
44962020-05-20 Alan Modra <amodra@gmail.com>
4497
4498 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4499 rather than accessing bfd->filename directly.
4500 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4501 and use bfd_section_name.
4502 * dwarf2/frame.c (decode_frame_entry): Likewise.
4503 * exec.c (exec_set_section_address): Likewise.
4504 * solib-aix.c (solib_aix_bfd_open): Likewise.
4505 * stap-probe.c (get_stap_base_address): Likewise.
4506 * symfile.c (reread_symbols): Likewise.
4507
563c591b
TT
45082020-05-19 Tom Tromey <tromey@adacore.com>
4509
4510 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4511
f408d82c
SM
45122020-05-19 Simon Marchi <simon.marchi@efficios.com>
4513
4514 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4515
98c59b52
PA
45162020-05-19 Pedro Alves <palves@redhat.com>
4517
4518 * NEWS (set exec-file-mismatch): Adjust entry.
4519 * exec.c: Include "build-id.h".
4520 (validate_exec_file): Try to match build IDs instead of filenames.
4521 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4522 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4523 and pass down 'warn_if_slow'.
4524 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4525 gdb_bfd_open_closure to pass it down.
4526 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4527
4111f652
PA
45282020-05-19 Pedro Alves <palves@redhat.com>
4529
4530 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4531 * target.c (target_fileio_open_1): Rename to target_fileio_open
4532 and make extern. Use bool.
4533 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4534 (target_fileio_read_alloc_1): Adjust.
4535 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4536 (target_fileio_open_warn_if_slow): Delete declaration.
4537
ad80db5b
PA
45382020-05-19 Pedro Alves <palves@redhat.com>
4539
4540 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4541 Adjust all callers.
4542
1d6ce4d3
YS
45432020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4544
4545 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4546 whether disp is negative.
4547
9005fbbb
SM
45482020-05-19 Simon Marchi <simon.marchi@efficios.com>
4549
4550 * symfile.h (struct symfile_segment_data)
4551 <~symfile_segment_data>: Remove.
4552 <segment_info>: Change to std::vector.
4553 * symfile.c (default_symfile_segments): Update.
4554 * elfread.c (elf_symfile_segments): Update.
4555
68b888ff
SM
45562020-05-19 Simon Marchi <simon.marchi@efficios.com>
4557
4558 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4559 <segments>: New.
4560 <segment_bases, segment_sizes>: Remove.
4561 * symfile.c (default_symfile_segments): Update.
4562 * elfread.c (elf_symfile_segments): Update.
4563 * remote.c (remote_target::get_offsets): Update.
4564 * solib-target.c (solib_target_relocate_section_addresses):
4565 Update.
4566
62982abd
SM
45672020-05-19 Simon Marchi <simon.marchi@efficios.com>
4568
4569 * symfile.h (struct symfile_segment_data): Initialize fields.
4570 <~symfile_segment_data>: Add.
4571 (symfile_segment_data_up): New.
4572 (struct sym_fns) <sym_segments>: Return a
4573 symfile_segment_data_up.
4574 (default_symfile_segments): Return a symfile_segment_data_up.
4575 (free_symfile_segment_data): Remove.
4576 (get_symfile_segment_data): Return a symfile_segment_data_up.
4577 * symfile.c (default_symfile_segments): Likewise.
4578 (get_symfile_segment_data): Likewise.
4579 (free_symfile_segment_data): Remove.
4580 (symfile_find_segment_sections): Update.
4581 * elfread.c (elf_symfile_segments): Return a
4582 symfile_segment_data_up.
4583 * remote.c (remote_target::get_offsets): Update.
4584 * solib-target.c (solib_target_relocate_section_addresses):
4585 Update.
4586 * symfile-debug.c (debug_sym_segments): Return a
4587 symfile_segment_data_up.
4588
7f204339
RO
45892020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4590
e52a0f1b
RO
4591 PR build/25981
4592 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4593 Hardcode register numbers.
4594
7f204339
RO
4595 PR build/25981
4596 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4597 procfs_find_LDT_entry): Remove.
4598 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4599 procfs_find_LDT_entry): Remove.
4600 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4601 Remove.
4602
7f32a4d5
PA
46032020-05-17 Pedro Alves <palves@redhat.com>
4604 Andrew Burgess <andrew.burgess@embecosm.com>
4605 Keno Fischer <keno@juliacomputing.com>
4606
4607 PR gdb/25741
4608 * breakpoint.c (build_target_condition_list): Update comments.
4609 (build_target_command_list): Update comments and skip matching
4610 locations.
4611 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4612 a separate function. Simplify "set breakpoint auto-hw off"
4613 handling.
4614 (insert_breakpoints): Update comment.
4615 (tracepoint_locations_match): New parameter. For breakpoints,
4616 compare location types too, if the caller wants to.
4617 (handle_automatic_hardware_breakpoints): New functions.
4618 (bp_location_is_less_than): Also sort by location type and
4619 hardware breakpoint length.
4620 (update_global_location_list): Handle "set breakpoint auto-hw on"
4621 here.
4622 (update_breakpoint_locations): Ask breakpoint_locations_match to
4623 ignore location types.
4624
7d93a1e0
SM
46252020-05-16 Simon Marchi <simon.marchi@efficios.com>
4626
4627 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4628 type::name instead.
4629
d0e39ea2
SM
46302020-05-16 Simon Marchi <simon.marchi@efficios.com>
4631
4632 * gdbtypes.h (struct type) <name, set_name>: New methods.
4633 (TYPE_CODE): Use type::name. Change all call sites used to set
4634 the name to use type::set_name instead.
4635
2dab0c7b
TT
46362020-05-16 Tom Tromey <tom@tromey.com>
4637
4638 * top.c (quit_force): Update.
4639 * infrun.c (handle_no_resumed): Update.
4640 * top.h (all_uis): New function.
4641 (ALL_UIS): Remove.
4642
59f7bd8d
SM
46432020-05-16 Simon Marchi <simon.marchi@efficios.com>
4644
4645 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4646
9bf058f0
PA
46472020-05-16 Pedro Alves <palves@redhat.com>
4648
4649 * ia64-linux-nat.c
4650 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4651 Declare method.
4652 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4653
8f86ae1a
SM
46542020-05-15 Simon Marchi <simon.marchi@efficios.com>
4655
4656 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4657 (sparc64_adi_info): Likewise.
4658
d6bc0792
TT
46592020-05-15 Tom Tromey <tom@tromey.com>
4660
4661 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4662 block_objfile.
4663 (lookup_objfile_from_block): Remove.
4664 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4665 (lookup_global_symbol): Use block_objfile.
4666 * symtab.h (lookup_objfile_from_block): Don't declare.
4667 * printcmd.c (clear_dangling_display_expressions): Use
4668 block_objfile.
4669 * parse.c (operator_check_standard): Use block_objfile.
4670
8c14c3a3
TT
46712020-05-15 Tom Tromey <tom@tromey.com>
4672
4673 * language.c (language_alloc_type_symbol): Set
4674 SYMBOL_SECTION.
4675 * symtab.c (initialize_objfile_symbol): Remove.
4676 (allocate_symbol): Remove.
4677 (allocate_template_symbol): Remove.
4678 * dwarf2/read.c (fixup_go_packaging): Use "new".
4679 (new_symbol): Use "new".
4680 (read_variable): Don't call initialize_objfile_symbol. Use
4681 "new".
4682 (read_func_scope): Use "new".
4683 * xcoffread.c (process_xcoff_symbol): Don't call
4684 initialize_objfile_symbol.
4685 (SYMBOL_DUP): Remove.
4686 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4687 "new".
4688 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4689 (allocate_template_symbol): Don't declare.
4690 (struct symbol): Add copy constructor. Change defaults.
4691 * jit.c (finalize_symtab): Use "new".
4692 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4693 Use "new".
4694 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4695 (common_block_end): Use "new".
4696 * mdebugread.c (parse_symbol): Use "new".
4697 (new_symbol): Likewise.
4698
5b4a1a8d
PW
46992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4700
4701 * NEWS: Mention changes to help and apropos.
4702
57b4f16e
PW
47032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4704
4705 * command.h (enum command_class): Improve comments, document
4706 that class_alias is for user-defined aliases, give the class
4707 name for each class, remove unused class_xdb.
4708 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4709 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4710 by a precise class.
4711 * infcmd.c (_initialize_infcmd): Likewise.
4712 * reverse.c (_initialize_reverse): Likewise.
4713 * stack.c (_initialize_stack): Likewise.
4714 * symfile.c (_initialize_symfile): Likewise.
4715 * tracepoint.c (_initialize_tracepoint): Likewise.
4716
7c05caf7
PW
47172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4718
4719 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4720 when their aliased command is traversed.
4721 (help_cmd): Add fput_command_names_styled call to
4722 output command name and aliases when command has an alias.
4723
3b3aaacb
PW
47242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4725
4726 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4727 * cli/cli-decode.c (help_cmd_list): Declare as static,
4728 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4729 a command together with the command.
4730 (fput_command_name_styled, fput_command_names_styled): New functions.
4731 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4732 fput_command_name_styled.
4733 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4734 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4735
7aa1b46f
PW
47362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4737
4738 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4739 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4740 * command.h (cmd_show_list): Likewise.
4741 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4742 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4743
89bcba74
PW
47442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4745
4746 * unittests/command-def-selftests.c (traverse_command_structure):
4747 Verify all commands of a list have the same prefix command and
4748 that only the top cmdlist commands have a null prefix.
4749
3f4d92eb
PW
47502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4751
4752 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4753 as prefix, not one of its aliases.
4754 (set_cmd_prefix): Remove.
4755 (do_add_cmd): Centralize the setting of the prefix of a command, when
4756 command is defined after its full chain of prefix commands.
4757 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4758 (add_setshow_cmd_full): Likewise.
4759 (update_prefix_field_of_prefixed_commands): New function.
4760 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4761 update_prefix_field_of_prefixed_commands.
4762 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4763 addresses of remote_set_cmdlist and remote_show_cmdlist given
4764 as argument, not the address of an argument.
4765 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4766 * gdb/remote.c (_initialize_remote): Likewise.
4767
0605465f
PW
47682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4769
4770 * cli/cli-cmds.c (alias_command): Check for an existing alias
4771 using lookup_cmd_composition, as valid_command_p is too strict
4772 and forbids aliases that are the prefix of an existing alias
4773 or command.
4774 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4775 command is properly recognised as a valid command.
4776
58e6ac70
PW
47772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4778
4779 * unittests/help-doc-selftests.c: Rename to
4780 unittests/command-def-selftests.c
4781 * unittests/command-def-selftests.c (help_doc_tests): Update some
4782 comments.
4783 (command_structure_tests, traverse_command_structure): New namespace
4784 and function.
4785 (command_structure_invariants_tests): New function.
4786 (_initialize_command_def_selftests) Renamed from
4787 _initialize_help_doc_selftests, register command_structure_invariants
4788 selftest.
4789
a7b9ceb8
PW
47902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4791
4792 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4793 an alias of 'show'.
4794
b2188a06
JB
47952020-05-15 Joel Brobecker <brobecker@adacore.com>
4796
4797 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4798 ada_is_fixed_point_type. Update all callers.
4799 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4800 all callers.
4801 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4802 Update all callers.
4803 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4804 print_fixed_point_type. Update all callers.
4805 * ada-valprint.c (ada_value_print_num): Replace call to
4806 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4807
a51951c2
KB
48082020-05-14 Kevin Buettner <kevinb@redhat.com>
4809
4810 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4811 processors.
4812 (cpu_supports_bts): Add CV_AMD case.
4813
29d6859f
LM
48142020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4815 Simon Marchi <simon.marchi@efficios.com>
4816
4817 * infrun.c (stop_all_threads): Collect multiple wait events at
4818 each pass.
4819
78134374
SM
48202020-05-14 Simon Marchi <simon.marchi@efficios.com>
4821
4822 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4823 type::code instead.
4824
67607e24
SM
48252020-05-14 Simon Marchi <simon.marchi@efficios.com>
4826
4827 * gdbtypes.h (struct type) <code, set_code>: New methods.
4828 (TYPE_CODE): Use type::code. Change all call sites used to set
4829 the code to use type::set_code instead.
4830
a05575d3
TBA
48312020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4832 Tom de Vries <tdevries@suse.de>
4833 Pedro Alves <palves@redhat.com>
4834
4835 PR threads/25478
4836 * infrun.c (stop_all_threads): Do NOT ignore
4837 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4838 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4839 received.
4840 (handle_no_resumed): Remove code handling a live inferior with no
4841 threads.
4842 * remote.c (has_single_non_exited_thread): New.
4843 (remote_target::update_thread_list): Do not delete a thread if is
4844 the last thread of the process.
4845 * thread.c (thread_select): Call delete_exited_threads instead of
4846 prune_threads.
4847
6ad82919
TBA
48482020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4849
4850 * infrun.c (stop_all_threads): Enable/disable thread events of all
4851 targets. Move a debug message denoting the end of the function
4852 into the SCOPED_EXIT block.
4853
d890404b
TBA
48542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4855
4856 * process-stratum-target.h: Include <set>.
4857 (all_non_exited_process_targets, switch_to_target_no_thread): New
4858 function declarations.
4859 * process-stratum-target.c (all_non_exited_process_targets)
4860 (switch_to_target_no_thread): New function implementations.
4861
293b3ebc
TBA
48622020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4863
4864 * infrun.c (handle_inferior_event): Extract out a piece of code
4865 into...
4866 (mark_non_executing_threads): ...this new function.
4867
7ca9b62a
TBA
48682020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4869
4870 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4871 use.
4872
fc75c28b
TBA
48732020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4874
4875 * regcache.c (regcache_read_pc_protected): New function
4876 implementation that returns 0 if the PC cannot read via
4877 'regcache_read_pc'.
4878 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4879 instead of 'regcache_read_pc'.
4880 (keep_going_pass_signal): Ditto.
4881
a89febbd
TT
48822020-05-13 Tom Tromey <tromey@adacore.com>
4883
4884 * ada-lang.c (align_value): Remove.
4885 (ada_template_to_fixed_record_type_1): Use align_up.
4886
f7e23710
TBA
48872020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4888
4889 * async-event.c: Update the copyright year.
4890 * async-event.h: Update the copyright year.
4891
02ff80c2
SM
48922020-05-12 Simon Marchi <simon.marchi@efficios.com>
4893
4894 * objfiles.h (is_addr_in_objfile,
4895 shared_objfile_contains_address_p): Return bool.
4896 * objfile.c (is_addr_in_objfile,
4897 shared_objfile_contains_address_p): Return bool.
4898
4fd6c7e8
TT
48992020-05-11 Tom Tromey <tromey@adacore.com>
4900
4901 * cli/cli-cmds.c (info_command): Restore.
4902 (_initialize_cli_cmds): Use add_prefix_command for "info".
4903 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4904
5eb68a39
TT
49052020-05-11 Tom Tromey <tromey@adacore.com>
4906
4907 * ada-lang.c (ada_value_primitive_field): Now public.
4908 * ada-lang.h (ada_value_primitive_field): Declare.
4909 * ada-valprint.c (print_field_values): Use
4910 ada_value_primitive_field for wrapper fields.
4911
7666722f
TV
49122020-05-11 Tom de Vries <tdevries@suse.de>
4913
4914 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4915 MODULE_DOMAIN.
4916
3ee6bb11
TV
49172020-05-11 Tom de Vries <tdevries@suse.de>
4918
4919 PR symtab/25941
4920 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4921 with length 0, if not gdb-produced.
4922 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4923
43434996
TV
49242020-05-09 Tom de Vries <tdevries@suse.de>
4925
4926 PR gdb/25955
4927 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4928 calculation.
4929
2f78cffc
TT
49302020-05-09 Tom Tromey <tom@tromey.com>
4931
4932 * top.c (server_command): Now bool.
4933 * top.h (server_command): Now bool.
4934
4f7bc5ed
TT
49352020-05-08 Tom Tromey <tromey@adacore.com>
4936
4937 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4938 already being processed.
4939
8be4b118
TT
49402020-05-08 Tom Tromey <tom@tromey.com>
4941
4942 * printcmd.c (struct display) <next>: Remove.
4943 <display>: New constructor.
4944 <exp_string>: Now a std::string.
4945 <enabled_p>: Now a bool.
4946 (display_number): Move definition earlier.
4947 (displays): Rename from display_chain. Now a std::vector.
4948 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4949 (display_command): Update.
4950 (do_one_display, disable_display)
4951 (enable_disable_display_command, do_enable_disable_display):
4952 Update.
4953 (free_display): Remove.
4954 (clear_displays): Rewrite.
4955 (delete_display): Update.
4956 (map_display_numbers): Use function_view. Remove "data"
4957 parameter. Update.
4958 (do_delete_display): Remove.
4959 (undisplay_command): Update.
4960 (do_one_display, do_displays, disable_display)
4961 (info_display_command): Update.
4962 (do_enable_disable_display): Remove.
4963 (enable_disable_display_command)
4964 (clear_dangling_display_expressions): Update.
4965
94c93c35
TT
49662020-05-08 Tom Tromey <tom@tromey.com>
4967
4968 * symtab.c (set_symbol_cache_size)
4969 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4970 (maintenance_print_symbol_cache_statistics): Update.
4971 * symmisc.c (print_symbol_bcache_statistics)
4972 (print_objfile_statistics, maintenance_print_objfiles)
4973 (maintenance_info_symtabs, maintenance_check_symtabs)
4974 (maintenance_expand_symtabs, maintenance_info_line_tables):
4975 Update.
4976 * symfile-debug.c (set_debug_symfile): Update.
4977 * source.c (forget_cached_source_info): Update.
4978 * python/python.c (gdbpy_progspaces): Update.
4979 * psymtab.c (maintenance_info_psymtabs): Update.
4980 * probe.c (parse_probes): Update.
4981 * linespec.c (iterate_over_all_matching_symtabs)
4982 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4983 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4984 * exec.c (exec_target::close): Update.
4985 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4986 * breakpoint.c (print_one_breakpoint_location)
4987 (create_longjmp_master_breakpoint)
4988 (create_std_terminate_master_breakpoint): Update.
4989 * progspace.c (program_spaces): Now a std::vector.
4990 (maybe_new_address_space): Update.
4991 (add_program_space): Remove.
4992 (program_space::program_space): Update.
4993 (remove_program_space): Update.
4994 (number_of_program_spaces): Remove.
4995 (print_program_space, update_address_spaces): Update.
4996 * progspace.h (program_spaces): Change type.
4997 (ALL_PSPACES): Remove.
4998 (number_of_program_spaces): Don't declare.
4999 (struct program_space) <next>: Remove.
5000
a1fd1ac9
TT
50012020-05-08 Tom Tromey <tom@tromey.com>
5002
5003 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5004 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5005 (enable_break): Update.
5006 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5007 (frv_fdpic_find_canonical_descriptor): Update.
5008 (frv_fetch_objfile_link_map): Update.
5009 * progspace.c (program_space::free_all_objfiles): Update.
5010 (program_space::solibs): New method.
5011 * progspace.h (struct program_space) <solibs>: New method.
5012 * solist.h (master_so_list): Don't declare.
5013 (ALL_SO_LIBS): Remove.
5014 * solib.h (so_list_head): Remove.
5015 (update_solib_list): Update comment.
5016 * solib.c (master_so_list): Remove.
5017 (solib_used, update_solib_list, solib_add)
5018 (info_sharedlibrary_command, clear_solib)
5019 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5020
38eae084
TT
50212020-05-08 Tom Tromey <tom@tromey.com>
5022
5023 * extension.c (extension_languages): Now a std::array.
5024 (ALL_EXTENSION_LANGUAGES): Remove.
5025 (get_ext_lang_defn, get_ext_lang_of_file)
5026 (eval_ext_lang_from_control_command): Update.
5027 (finish_ext_lang_initialization)
5028 (auto_load_ext_lang_scripts_for_objfile)
5029 (ext_lang_type_printers::ext_lang_type_printers)
5030 (apply_ext_lang_type_printers)
5031 (ext_lang_type_printers::~ext_lang_type_printers)
5032 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5033 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5034 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5035 (get_matching_xmethod_workers, ext_lang_colorize)
5036 (ext_lang_before_prompt): Update.
5037 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5038
596dc4ad
TT
50392020-05-08 Tom Tromey <tom@tromey.com>
5040
5041 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5042 overload.
5043 <swap_string, m_string>: Remove.
5044 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5045 Update.
5046 * stabsread.c (define_symbol, read_type): Update.
5047 * linespec.c (find_linespec_symbols): Update.
5048 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5049 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5050 * dbxread.c (read_dbx_symtab): Update.
5051 * cp-support.h (cp_canonicalize_string_full)
5052 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5053 Return unique_xmalloc_ptr.
5054 * cp-support.c (inspect_type): Update.
5055 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5056 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5057 Likewise.
5058 * c-typeprint.c (print_name_maybe_canonical): Update.
5059 * break-catch-throw.c (check_status_exception_catchpoint):
5060 Update.
5061
bf4cb9be
TV
50622020-05-08 Tom de Vries <tdevries@suse.de>
5063
5064 * infrun.c (follow_fork): Copy current_line and current_symtab to
5065 child thread.
5066
a1b68f28
SM
50672020-05-07 Simon Marchi <simon.marchi@efficios.com>
5068
5069 * async-event.c (struct async_signal_handler, struct
5070 async_event_handler): Reformat, remove typedef.
5071
98d48915
SM
50722020-05-07 Simon Marchi <simon.marchi@efficios.com>
5073
5074 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5075 access thistype->main_type->dyn_prop_list directly.
5076
7aa91313
SM
50772020-05-07 Simon Marchi <simon.marchi@efficios.com>
5078
5079 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5080 (remove_dyn_prop): Remove. Update all users to use
5081 type::remove_dyn_prop.
5082 * gdbtypes.c (remove_dyn_prop): Rename to...
5083 (type::remove_dyn_prop): ... this.
5084
5c54719c
SM
50852020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5086
5087 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5088 (add_dyn_prop): Remove. Update all users to use
5089 type::add_dyn_prop.
5090 * gdbtypes.c (add_dyn_prop): Rename to...
5091 (type::add_dyn_prop): ... this.
5092
24e99c6c
SM
50932020-05-07 Simon Marchi <simon.marchi@efficios.com>
5094
5095 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5096 (get_dyn_prop): Remove. Update all users to use
5097 type::dyn_prop.
5098 * gdbtypes.c (get_dyn_prop): Rename to...
5099 (type::dyn_prop): ... this.
5100
0d4bf016
SM
51012020-05-06 Simon Marchi <simon.marchi@efficios.com>
5102
5103 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5104
ac4a4f1c
SM
51052020-05-06 Simon Marchi <simon.marchi@efficios.com>
5106
5107 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5108 instruction, skip it if it's there.
5109
a3bbacc1
SM
51102020-05-05 Simon Marchi <simon.marchi@efficios.com>
5111
5112 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5113
c3236f84
SM
51142020-05-04 Simon Marchi <simon.marchi@efficios.com>
5115
5116 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5117 * gdbtypes.c (recursive_dump_type): Remove use of
5118 TYPE_INCOMPLETE.
5119
3b6acaee
TT
51202020-05-03 Tom Tromey <tom@tromey.com>
5121
5122 * breakpoint.c (catch_command, tcatch_command): Remove.
5123 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5124 add_show_prefix_cmd.
5125 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5126 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5127 Remove.
5128 (add_internal_problem_command): Use add_basic_prefix_cmd,
5129 add_show_prefix_cmd.
5130 * mips-tdep.c (set_mipsfpu_command): Remove.
5131 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5132 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5133 (_initialize_index_cache): Use add_basic_prefix_cmd.
5134 * memattr.c (dummy_cmd): Remove.
5135 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5136 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5137 (_initialize_tui_win): Use add_basic_prefix_cmd,
5138 add_show_prefix_cmd.
5139 * cli/cli-logging.c (set_logging_command): Remove.
5140 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5141 add_show_prefix_cmd.
5142 (show_logging_command): Remove.
5143 * target.c (target_command): Remove.
5144 (add_target): Use add_basic_prefix_cmd.
5145
a51119cd
HD
51462020-05-02 Hannes Domani <ssbssa@yahoo.de>
5147
5148 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5149
652fc23a 51502020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5151
652fc23a
PW
5152 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5153 info_command.
5154
117539e6
KR
51552020-04-30 Kamil Rytarowski <n54@gmx.com>
5156
5157 * nbsd-nat.c (nbsd_enable_proc_events)
5158 (nbsd_nat_target::post_startup_inferior): Add.
5159 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5160 (nbsd_nat_target::update_thread_list): Rewrite.
5161 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5162 "PTRACE_LWP_CREATE".
5163 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5164
102e38eb 51652020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5166
102e38eb
PW
5167 * stack.c (_initialize_stack): Remove duplicated creation
5168 of "frame" command and "f" alias.
5169
ee9d1e5f
HD
51702020-04-30 Hannes Domani <ssbssa@yahoo.de>
5171
5172 PR gdb/18706
5173 * gdbtypes.c (check_typedef): Calculate size of array of
5174 stubbed type.
5175
627c7fb8
HD
51762020-04-30 Hannes Domani <ssbssa@yahoo.de>
5177
5178 PR gdb/15559
5179 * i386-tdep.c (i386_push_dummy_call): Call
5180 i386_thiscall_push_dummy_call.
5181 (i386_thiscall_push_dummy_call): New function.
5182 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5183 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5184 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5185
ffc2844e
SM
51862020-04-29 Simon Marchi <simon.marchi@efficios.com>
5187
5188 * gdbarch.sh (do_read): Add shellcheck disable directive for
5189 warning SC2162.
5190
1207375d
SM
51912020-04-29 Simon Marchi <simon.marchi@efficios.com>
5192
5193 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5194 "referenced but not assigned" warning.
5195
9fdb2916
SM
51962020-04-29 Simon Marchi <simon.marchi@efficios.com>
5197
5198 * gdbarch.sh: Remove code that sets fallbackdefault.
5199
759cea5e
SM
52002020-04-29 Simon Marchi <simon.marchi@efficios.com>
5201
5202 * gdbarch.sh: Use shell operators && and || instead of
5203 -a and -o.
5204
cb02ab24
SM
52052020-04-29 Simon Marchi <simon.marchi@efficios.com>
5206
5207 * gdbarch.sh: Use $(...) instead of `...`.
5208
a6fc5ffc
SM
52092020-04-29 Simon Marchi <simon.marchi@efficios.com>
5210
5211 * gdbarch.sh: Use double quotes around variables.
5212
8d113d13
SM
52132020-04-29 Simon Marchi <simon.marchi@efficios.com>
5214
5215 * gdbarch.sh: Use %s with printf, instead of variables in the
5216 format string.
5217
ed6acedd
TT
52182020-04-29 Tom Tromey <tromey@adacore.com>
5219
5220 PR ada/25875:
5221 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5222 type fields here.
5223 (read_enumeration_type): Call
5224 update_enumeration_type_from_children later. Update comments.
5225 (process_enumeration_scope): Don't create type fields.
5226
b68b1b58
KR
52272020-04-29 Kamil Rytarowski <n54@gmx.com>
5228
5229 * nbsd-tdep.c: Include "xml-syscall.h".
5230 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5231
f94b2e03
KR
52322020-04-29 Kamil Rytarowski <n54@gmx.com>
5233
5234 * nbsd-nat.c: Include "sys/wait.h".
5235 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5236 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5237 (nbsd_nat_target::remove_exec_catchpoint)
5238 (nbsd_nat_target::set_syscall_catchpoint): Add.
5239 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5240 (nbsd_nat_target::insert_exec_catchpoint)
5241 (nbsd_nat_target::remove_exec_catchpoint)
5242 (nbsd_nat_target::set_syscall_catchpoint): Add.
5243 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5244 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5245 `nbsd_get_syscall_number'.
5246
fc49bc72
TT
52472020-04-29 Tom Tromey <tom@tromey.com>
5248
5249 * stack.c (print_block_frame_labels): Remove.
5250
d642b692
HD
52512020-04-29 Hannes Domani <ssbssa@yahoo.de>
5252
5253 PR gdb/17320
5254 * ada-valprint.c (val_print_packed_array_elements): Move array
5255 end bracket to new line.
5256 (ada_val_print_string): Remove extra spaces before first array
5257 element.
5258 * c-valprint.c (c_value_print_array): Likewise.
5259 * m2-valprint.c (m2_print_array_contents): Likewise.
5260 (m2_value_print_inner): Likewise.
5261 * p-valprint.c (pascal_value_print_inner): Likewise.
5262 * valprint.c (generic_val_print_array): Likewise.
5263 (value_print_array_elements): Move first array element and array
5264 end bracket to new line.
5265
ea90f227
TV
52662020-04-29 Tom de Vries <tdevries@suse.de>
5267
5268 PR symtab/25889
5269 * linespec.c (find_method): Fix ix calculation.
5270
4498ef4f
KR
52712020-04-28 Kamil Rytarowski <n54@gmx.com>
5272
5273 * syscalls/update-netbsd.sh: New file.
5274 * syscalls/netbsd.xml: Regenerate.
5275 * data-directory/Makefile.in: Register `netbsd.xml' in
5276 `SYSCALLS_FILES'.
5277
a55e30b5
SM
52782020-04-28 Simon Marchi <simon.marchi@efficios.com>
5279
5280 * syscalls/update-freebsd.sh: Add double quotes.
5281
2b2fbab8
TT
52822020-04-28 Tom Tromey <tom@tromey.com>
5283
5284 * NEWS: Update.
5285 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5286 (cmdpy_init): Allow class_tui.
5287
a65189c9
TV
52882020-04-28 Mark Williams <mark@myosotissp.com>
5289
5290 PR gdb/24480
5291 * dwarf2read.c: Add missing assingments to list_in_scope when
5292 start_symtab was already called.
5293
1b95cdb7
SM
52942020-04-28 Simon Marchi <simon.marchi@efficios.com>
5295
5296 PR gdb/25881
5297 * dwarf2/read.c (offset_map_type): Use
5298 gdb:hash_enum<sect_offset> as hash function.
5299
15cd93d0
TV
53002020-04-28 Tom de Vries <tdevries@suse.de>
5301
5302 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5303 with DW_AT_signature.
5304
1eb39914
SM
53052020-04-27 Simon Marchi <simon.marchi@efficios.com>
5306
5307 * configure.ac: Remove check for fs_base/gs_base in
5308 user_regs_struct.
5309 * configure: Re-generate.
5310 * config.in: Re-generate.
5311 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5312 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5313 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5314
991a3e2e
LM
53152020-04-27 Luis Machado <luis.machado@linaro.org>
5316
5317 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5318 problematic inline frame unwinding situation.
5319 * frame.c (frame_id_computed_p): New function.
5320 * frame.h (frame_id_computed_p): New prototype.
5321
361ba0e8
TT
53222020-04-26 Tom Tromey <tom@tromey.com>
5323
5324 * command.h (enum command_class) <class_pseudo>: Remove.
5325
bc3609fd
PW
53262020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5327
5328 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5329 and whitespace.
5330
b9771db7
KR
53312020-04-25 Kamil Rytarowski <n54@gmx.com>
5332
ec16513e
SM
5333 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5334 `PT_GET_PROCESS_STATE' block.
b9771db7 5335
7151c1af
TT
53362020-04-24 Tom Tromey <tom@tromey.com>
5337
5338 * symtab.h (symbol_get_demangled_name): Don't declare.
5339 * symtab.c (symbol_get_demangled_name): Remove.
5340 (general_symbol_info::natural_name)
5341 (general_symbol_info::demangled_name): Update.
5342
906bb4c5
TT
53432020-04-24 Tom Tromey <tom@tromey.com>
5344
5345 PR rust/25025:
5346 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5347
bcfe6157
TT
53482020-04-24 Tom Tromey <tom@tromey.com>
5349
5350 PR symtab/12707:
5351 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5352 exists.
5353 (new_symbol): Likewise.
5354 * compile/compile-object-load.c (get_out_value_type): Use
5355 symbol_matches_search_name.
5356
f049a313
TT
53572020-04-24 Tom Tromey <tom@tromey.com>
5358
5359 * dwarf2/read.c (add_partial_symbol): Do not call
5360 compute_and_set_names.
5361
76e288d1
TT
53622020-04-24 Tom Tromey <tom@tromey.com>
5363
5364 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5365 overload.
5366
2467f4f6
TT
53672020-04-24 Tom Tromey <tom@tromey.com>
5368
5369 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5370 (add_psymbol_to_list): New overload. Make old overload call new
5371 one.
5372 * psympriv.h (add_psymbol_to_list): New overload.
5373
e61108c9
TT
53742020-04-24 Tom Tromey <tom@tromey.com>
5375
5376 * dwarf2/read.c (partial_die_info::read) <case
5377 DW_AT_linkage_name>: Use value_as_string.
5378 (dwarf2_string_attr): Use value_as_string.
5379 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5380 method.
5381 * dwarf2/attribute.c (attribute::value_as_string): New method.
5382
8c87a452
TT
53832020-04-24 Tom Tromey <tom@tromey.com>
5384
5385 * symtab.c (general_symbol_info::natural_name)
5386 (general_symbol_info::demangled_name): Check for language_rust.
5387
787de330
TT
53882020-04-24 Tom Tromey <tom@tromey.com>
5389
5390 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5391 (dwarf2_physname): ... from here.
5392 (partial_die_info::read): Add Rust "{" hack.
5393
ff985671
TT
53942020-04-24 Tom Tromey <tom@tromey.com>
5395
5396 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5397 method.
5398 (symbol_set_demangled_name): Don't declare.
5399 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5400 symbol_set_demangled_name.
5401 (general_symbol_info::set_language)
5402 (general_symbol_info::compute_and_set_names): Update.
5403 * minsyms.c (minimal_symbol_reader::install): Update.
5404 * dwarf2/read.c (new_symbol): Update.
5405
1acda803
TT
54062020-04-24 Tom Tromey <tromey@adacore.com>
5407
5408 PR python/23662:
5409 * python/py-type.c (convert_field): Handle
5410 FIELD_LOC_KIND_DWARF_BLOCK.
5411 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5412 (typy_get_dynamic): Nw function.
5413 (type_object_getset): Add "dynamic".
5414 * NEWS: Add entry.
5415
d656f129
TT
54162020-04-24 Tom Tromey <tromey@adacore.com>
5417
5418 * ada-typeprint.c (print_choices, print_variant_part)
5419 (print_record_field_types_dynamic): New functions.
5420 (print_record_field_types): Use print_record_field_types_dynamic.
5421
7d79de9a
TT
54222020-04-24 Tom Tromey <tromey@adacore.com>
5423
5424 * dwarf2/read.c (handle_data_member_location): New overload.
5425 (dwarf2_add_field): Use it.
5426 (decode_locdesc): Add "computed" parameter. Update comment.
5427 * gdbtypes.c (is_dynamic_type_internal): Also look for
5428 FIELD_LOC_KIND_DWARF_BLOCK.
5429 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5430 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5431 virtual base classes.
5432 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5433 FIELD_LOC_KIND_DWARF_BLOCK.
5434
f8e89861
TT
54352020-04-24 Tom Tromey <tromey@adacore.com>
5436
5437 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5438 * gdbtypes.c (is_dynamic_type_internal): Check
5439 TYPE_HAS_DYNAMIC_LENGTH.
5440 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5441 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5442 New macros.
5443 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5444 constant.
5445
9c6a1327
TT
54462020-04-24 Tom Tromey <tromey@adacore.com>
5447
5448 * dwarf2/read.c (struct variant_field): Rewrite.
5449 (struct variant_part_builder): New.
5450 (struct nextfield): Remove "variant" field. Add "offset".
5451 (struct field_info): Add "current_variant_part" and
5452 "variant_parts".
5453 (alloc_discriminant_info): Remove.
5454 (alloc_rust_variant): New function.
5455 (quirk_rust_enum): Update.
5456 (dwarf2_add_field): Set "offset" member. Don't handle
5457 DW_TAG_variant_part.
5458 (offset_map_type): New typedef.
5459 (convert_variant_range, create_one_variant)
5460 (create_one_variant_part, create_variant_parts)
5461 (add_variant_property): New functions.
5462 (dwarf2_attach_fields_to_type): Call add_variant_property.
5463 (read_structure_type): Don't handle DW_TAG_variant_part.
5464 (handle_variant_part, handle_variant): New functions.
5465 (handle_struct_member_die): Use them.
5466 (process_structure_scope): Don't handle variant parts.
5467 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5468 (struct discriminant_info): Remove.
5469 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5470 (struct main_type) <flag_discriminated_union>: Remove.
5471 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5472 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5473 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5474 Update.
5475 * valops.c (value_union_variant): Remove.
5476 * value.h (value_union_variant): Don't declare.
5477
b249d2c2
TT
54782020-04-24 Tom Tromey <tromey@adacore.com>
5479
5480 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5481 (ada_value_primitive_packed_val): Update.
5482 * ada-valprint.c (ada_value_print_1): Update.
5483 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5484 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5485 just an address. Use evaluate_for_locexpr_baton.
5486 (dwarf2_evaluate_property): Update.
5487 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5488 array_view.
5489 * findvar.c (default_read_var_value): Update.
5490 * gdbtypes.c (compute_variant_fields_inner)
5491 (resolve_dynamic_type_internal): Update.
5492 (resolve_dynamic_type): Change type of valaddr parameter.
5493 * gdbtypes.h (resolve_dynamic_type): Update.
5494 * valarith.c (value_subscripted_rvalue): Update.
5495 * value.c (value_from_contents_and_address): Update.
5496
61122aa9
TT
54972020-04-24 Tom Tromey <tromey@adacore.com>
5498
5499 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5500 "push_initial_value" parameter.
5501 (dwarf2_evaluate_property): Likewise.
5502 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5503
ef83a141
TT
55042020-04-24 Tom Tromey <tromey@adacore.com>
5505
5506 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5507 (variant::matches, compute_variant_fields_recurse)
5508 (compute_variant_fields_inner, compute_variant_fields): New
5509 functions.
5510 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5511 Use resolved_type after type is made.
5512 (operator==): Add new cases.
5513 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5514 (struct discriminant_range, struct variant, struct variant_part):
5515 New.
5516 (union dynamic_prop_data) <variant_parts, original_type>: New
5517 members.
5518 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5519 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5520 constants.
5521 * value.c (unpack_bits_as_long): Now public.
5522 * value.h (unpack_bits_as_long): Declare.
5523
675127ec
TT
55242020-04-24 Tom Tromey <tromey@adacore.com>
5525
5526 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5527 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5528
9852ceef
HD
55292020-04-24 Hannes Domani <ssbssa@yahoo.de>
5530
5531 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5532
7632c6ce
KR
55332020-04-24 Kamil Rytarowski <n54@gmx.com>
5534
5535 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5536 (remove_fork_catchpoint, post_startup_inferior)
5537 (post_attach): Move...
5538 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5539 (remove_fork_catchpoint, post_startup_inferior)
5540 (post_attach): ...here.
5541 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5542 (remove_fork_catchpoint, post_startup_inferior)
5543 (post_attach): Move...
5544 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5545 (remove_fork_catchpoint, post_startup_inferior)
5546 (post_attach): ...here.
5547
7be2bb4f
TT
55482020-04-24 Tom Tromey <tromey@adacore.com>
5549
5550 * nat/windows-nat.h (struct windows_thread_info)
5551 <pc_adjusted>: New member.
5552 * windows-nat.c (windows_fetch_one_register): Check
5553 pc_adjusted.
5554 (windows_nat_target::get_windows_debug_event)
5555 (windows_nat_target::wait): Set pc_adjusted.
5556
f80cb3b4
TV
55572020-04-24 Tom de Vries <tdevries@suse.de>
5558
5559 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5560 Run gdb-add-index inside temp dir.
5561
29514b87
TT
55622020-04-23 Tom Tromey <tromey@adacore.com>
5563
5564 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5565 in loop.
5566
5939967b
LM
55672020-04-23 Luis Machado <luis.machado@linaro.org>
5568
5569 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5570 get_frame_register instead of gdbarch_unwind_pc.
5571
70bc38f5
TV
55722020-04-23 Tom de Vries <tdevries@suse.de>
5573
5574 * symtab.c (lookup_global_symbol): Prefer def over decl.
5575
de82891c
TV
55762020-04-23 Tom de Vries <tdevries@suse.de>
5577
5578 PR symtab/25807
5579 * block.c (best_symbol, better_symbol): Promote to external.
5580 * block.h (best_symbol, better_symbol): Declare.
5581 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5582 decl.
5583
ecc6c606
TT
55842020-04-23 Tom Tromey <tromey@adacore.com>
5585
5586 PR ada/25837:
5587 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5588 "const char *", not a "const std::string &".
5589 <name_and_matcher::operator==>: Update.
5590 * unittests/lookup_name_info-selftests.c: Change type of
5591 "result".
5592
740480b8
TT
55932020-04-23 Tom Tromey <tom@tromey.com>
5594
5595 * inferior.h (iterate_over_inferiors): Don't declare.
5596 * inferior.c (iterate_over_inferiors): Remove.
5597 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5598 Remove.
5599 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5600 use iterate_over_inferiors.
5601 (darwin_resume_inferior_it)
5602 (struct resume_inferior_threads_param)
5603 (darwin_resume_inferior_threads_it): Remove.
5604 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5605
ae3ab1f0
TV
56062020-04-23 Tom de Vries <tdevries@suse.de>
5607
5608 * blockframe.c (find_pc_partial_function): Use
5609 find_pc_sect_compunit_symtab rather than
5610 objfile->sf->qf->find_pc_sect_compunit_symtab.
5611
317d2668
TV
56122020-04-22 Tom de Vries <tdevries@suse.de>
5613
5614 PR symtab/25764
5615 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5616 in psymtabs.
5617
eea9e357
TV
56182020-04-22 Tom de Vries <tdevries@suse.de>
5619
5620 PR symtab/25801
5621 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5622 symtabs.
5623
3d5afab3
TV
56242020-04-22 Tom de Vries <tdevries@suse.de>
5625
5626 PR symtab/25700
5627 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5628 CU if already created.
5629
d43b7a2d
TBA
56302020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5631
5632 * infrun.c (displaced_step_fixup): Switch to the event_thread
5633 before calling displaced_step_restore, not after.
5634
d89edf9b
MM
56352020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5636
5637 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5638 its inferior is not recorded by us.
5639 (record_btrace_target_open): Replace call to
5640 all_non_exited_threads () with call to current_inferior
5641 ()->non_exited_threads ().
5642 (record_btrace_target::stop_recording): Likewise.
5643 (record_btrace_target::close): Likewise.
5644 (record_btrace_target::wait): Likewise.
5645 (record_btrace_target::record_stop_replaying): Likewise.
5646
5897fd49
MM
56472020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5648
5649 * btrace.c (btrace_enable): Throw an error on double enables and
5650 when enabling recording fails.
5651 (btrace_disable): Throw an error if the thread is not recorded.
5652
1a476b6d
MM
56532020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5654
5655 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5656 request if we do not have a thread_info.
5657
4778a5f8
TV
56582020-04-21 Tom de Vries <tdevries@suse.de>
5659
5660 PR gdb/25471
5661 * thread.c
5662 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5663 exception in get_frame_id.
5664
0fa7617d
TT
56652020-04-20 Tom Tromey <tromey@adacore.com>
5666
5667 * python/python.c (struct gdbpy_event): Mark move constructor as
5668 noexcept.
5669 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5670 constructor as noexcept.
5671 * completer.h (struct completion_result): Mark move constructor as
5672 noexcept.
5673 * completer.c (completion_result::completion_result): Use
5674 initialization style. Don't call reset_match_list.
5675
ad23bda0
MS
56762020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5677
5678 * MAINTAINERS (Write After Approval): Add myself.
5679
45e1f031
TT
56802020-04-18 Tom Tromey <tom@tromey.com>
5681
5682 * windows-tdep.c (init_w32_command_list)
5683 (w32_prefix_command_valid): Restore.
5684 (_initialize_windows_tdep): Call init_w32_command_list.
5685
08feed99
TT
56862020-04-18 Tom Tromey <tom@tromey.com>
5687
5688 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5689 * value.c (value_fn_field): Update.
5690 * valops.c (find_function_in_inferior)
5691 (value_allocate_space_in_inferior): Update.
5692 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5693 Update.
5694 * tui/tui-source.c (tui_source_window::set_contents): Update.
5695 * symtab.c (lookup_global_or_static_symbol)
5696 (find_function_start_sal_1, skip_prologue_sal)
5697 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5698 * symmisc.c (dump_msymbols, dump_symtab_1)
5699 (maintenance_print_one_line_table): Update.
5700 * symfile.c (init_entry_point_info, section_is_mapped)
5701 (list_overlays_command, simple_read_overlay_table)
5702 (simple_overlay_update_1): Update.
5703 * stap-probe.c (handle_stap_probe): Update.
5704 * stabsread.c (dbx_init_float_type, define_symbol)
5705 (read_one_struct_field, read_enum_type, read_range_type): Update.
5706 * source.c (info_line_command): Update.
5707 * python/python.c (gdbpy_source_objfile_script)
5708 (gdbpy_execute_objfile_script): Update.
5709 * python/py-type.c (save_objfile_types): Update.
5710 * python/py-objfile.c (py_free_objfile): Update.
5711 * python/py-inferior.c (python_new_objfile): Update.
5712 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5713 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5714 (maintenance_check_psymtabs): Update.
5715 * printcmd.c (info_address_command): Update.
5716 * objfiles.h (struct objfile) <arch>: New method, from
5717 get_objfile_arch.
5718 (get_objfile_arch): Don't declare.
5719 * objfiles.c (get_objfile_arch): Remove.
5720 (filter_overlapping_sections): Update.
5721 * minsyms.c (msymbol_is_function): Update.
5722 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5723 (output_nondebug_symbol): Update.
5724 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5725 (mdebug_expand_psymtab): Update.
5726 * machoread.c (macho_add_oso_symfile): Update.
5727 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5728 Update.
5729 * linux-fork.c (checkpoint_command): Update.
5730 * linespec.c (convert_linespec_to_sals): Update.
5731 * jit.c (finalize_symtab): Update.
5732 * infrun.c (insert_exception_resume_from_probe): Update.
5733 * ia64-tdep.c (ia64_find_unwind_table): Update.
5734 * hppa-tdep.c (internalize_unwinds): Update.
5735 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5736 Update.
5737 * gcore.c (call_target_sbrk): Update.
5738 * elfread.c (record_minimal_symbol, elf_symtab_read)
5739 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5740 (elf_gnu_ifunc_resolve_by_got): Update.
5741 * dwarf2/read.c (create_addrmap_from_index)
5742 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5743 (read_debug_names_from_section)
5744 (process_psymtab_comp_unit_reader, add_partial_symbol)
5745 (add_partial_subprogram, process_full_comp_unit)
5746 (read_file_scope, read_func_scope, read_lexical_block_scope)
5747 (read_call_site_scope, dwarf2_ranges_read)
5748 (dwarf2_record_block_ranges, dwarf2_add_field)
5749 (mark_common_block_symbol_computed, read_tag_pointer_type)
5750 (read_tag_string_type, dwarf2_init_float_type)
5751 (dwarf2_init_complex_target_type, read_base_type)
5752 (partial_die_info::read, partial_die_info::read)
5753 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5754 (dwarf2_fetch_die_loc_sect_off): Update.
5755 * dwarf2/loc.c (dwarf2_find_location_expression)
5756 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5757 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5758 (dwarf2_loc_desc_get_symbol_read_needs)
5759 (locexpr_describe_location_piece, locexpr_describe_location_1)
5760 (loclist_describe_location): Update.
5761 * dwarf2/index-write.c (write_debug_names): Update.
5762 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5763 * dtrace-probe.c (dtrace_process_dof): Update.
5764 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5765 (process_one_symbol): Update.
5766 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5767 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5768 (coff_read_enum_type): Update.
5769 * cli/cli-cmds.c (edit_command, list_command): Update.
5770 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5771 * breakpoint.c (create_overlay_event_breakpoint)
5772 (create_longjmp_master_breakpoint)
5773 (create_std_terminate_master_breakpoint)
5774 (create_exception_master_breakpoint, get_sal_arch): Update.
5775 * block.c (block_gdbarch): Update.
5776 * annotate.c (annotate_source_line): Update.
5777
0743fc83
TT
57782020-04-17 Tom Tromey <tromey@adacore.com>
5779
5780 * auto-load.c (show_auto_load_cmd): Remove.
5781 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5782 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5783 (maintenance_print_arc_command): Remove.
5784 * tui/tui-win.c (tui_command): Remove.
5785 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5786 * tui/tui-layout.c (tui_layout_command): Remove.
5787 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5788 * python/python.c (user_set_python, user_show_python): Remove.
5789 (_initialize_python): Use add_basic_prefix_cmd,
5790 add_show_prefix_cmd.
5791 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5792 (install_gdb_commands): Use add_basic_prefix_cmd,
5793 add_show_prefix_cmd.
5794 (info_guile_command): Remove.
5795 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5796 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5797 add_show_prefix_cmd.
5798 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5799 Remove do_set and do_show parameters.
5800 * cli/cli-style.c (set_style, show_style): Remove.
5801 (_initialize_cli_style): Use add_basic_prefix_cmd,
5802 add_show_prefix_cmd.
5803 (cli_style_option::add_setshow_commands): Remove do_set and
5804 do_show parameters.
5805 (cli_style_option::add_setshow_commands): Use
5806 add_basic_prefix_cmd, add_show_prefix_cmd.
5807 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5808 (set_style_name): Remove.
5809 * cli/cli-dump.c (dump_command, append_command): Remove.
5810 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5811 (tekhex_dump_command, binary_dump_command)
5812 (binary_append_command): Remove.
5813 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5814 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5815 (init_w32_command_list): Remove; move into ...
5816 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5817 * valprint.c (set_print, show_print, set_print_raw)
5818 (show_print_raw): Remove.
5819 (_initialize_valprint): Use add_basic_prefix_cmd,
5820 add_show_prefix_cmd.
5821 * typeprint.c (set_print_type, show_print_type): Remove.
5822 (_initialize_typeprint): Use add_basic_prefix_cmd,
5823 add_show_prefix_cmd.
5824 * record.c (set_record_command, show_record_command): Remove.
5825 (_initialize_record): Use add_basic_prefix_cmd,
5826 add_show_prefix_cmd.
5827 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5828 add_show_prefix_cmd.
5829 (info_command, show_command, set_debug, show_debug): Remove.
5830 * top.h (set_history, show_history): Don't declare.
5831 * top.c (set_history, show_history): Remove.
5832 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5833 (unset_tdesc_cmd): Remove.
5834 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5835 add_show_prefix_cmd.
5836 * symtab.c (info_module_command): Remove.
5837 (_initialize_symtab): Use add_basic_prefix_cmd.
5838 * symfile.c (overlay_command): Remove.
5839 (_initialize_symfile): Use add_basic_prefix_cmd.
5840 * sparc64-tdep.c (info_adi_command): Remove.
5841 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5842 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5843 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5844 add_show_prefix_cmd.
5845 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5846 (_initialize_serial): Use add_basic_prefix_cmd,
5847 add_show_prefix_cmd.
5848 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5849 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5850 add_show_prefix_cmd.
5851 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5852 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5853 add_show_prefix_cmd.
5854 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5855 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5856 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5857 add_show_prefix_cmd.
5858 * remote.c (remote_command, set_remote_cmd): Remove.
5859 (_initialize_remote): Use add_basic_prefix_cmd.
5860 * record-full.c (set_record_full_command)
5861 (show_record_full_command): Remove.
5862 (_initialize_record_full): Use add_basic_prefix_cmd,
5863 add_show_prefix_cmd.
5864 * record-btrace.c (cmd_set_record_btrace)
5865 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5866 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5867 (cmd_show_record_btrace_pt): Remove.
5868 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5869 add_show_prefix_cmd.
5870 * ravenscar-thread.c (set_ravenscar_command)
5871 (show_ravenscar_command): Remove.
5872 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5873 add_show_prefix_cmd.
5874 * mips-tdep.c (show_mips_command, set_mips_command)
5875 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5876 add_show_prefix_cmd.
5877 * maint.c (maintenance_command, maintenance_info_command)
5878 (maintenance_check_command, maintenance_print_command)
5879 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5880 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5881 add_show_prefix_cmd.
5882 (show_per_command_cmd): Remove.
5883 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5884 Remove.
5885 (maintenance_show_test_settings_cmd): Remove.
5886 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5887 add_show_prefix_cmd.
5888 * maint-test-options.c (maintenance_test_options_command):
5889 Remove.
5890 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5891 * macrocmd.c (macro_command): Remove
5892 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5893 * language.c (set_check, show_check): Remove.
5894 (_initialize_language): Use add_basic_prefix_cmd,
5895 add_show_prefix_cmd.
5896 * infcmd.c (unset_command): Remove.
5897 (_initialize_infcmd): Use add_basic_prefix_cmd.
5898 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5899 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5900 add_show_prefix_cmd.
5901 * go32-nat.c (go32_info_dos_command): Remove.
5902 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5903 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5904 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5905 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5906 (_initialize_frame): Use add_basic_prefix_cmd,
5907 add_show_prefix_cmd.
5908 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5909 (_initialize_dcache): Use add_basic_prefix_cmd,
5910 add_show_prefix_cmd.
5911 * cp-support.c (maint_cplus_command): Remove.
5912 (_initialize_cp_support): Use add_basic_prefix_cmd.
5913 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5914 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5915 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5916 add_basic_prefix_cmd, add_show_prefix_cmd.
5917 * breakpoint.c (save_command): Remove.
5918 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5919 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5920 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5921 add_show_prefix_cmd.
5922 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5923 (set_ada_command, show_ada_command): Remove.
5924 (_initialize_ada_language): Use add_basic_prefix_cmd,
5925 add_show_prefix_cmd.
5926 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5927
3557f442
KR
59282020-04-16 Kamil Rytarowski <n54@gmx.com>
5929
5930 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5931 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5932
16197208
SM
59332020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5934
5935 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5936 warning messages.
5937
00ac85d3
SM
59382020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5939
5940 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5941 import table is not at beginning of .idata section.
5942
381ce63f
PA
59432020-04-16 Pedro Alves <palves@redhat.com>
5944
5945 * inferior.c (delete_inferior): Use delete operator directly
5946 instead of delete_program_space.
5947 * progspace.c (add_program_space): New, factored out from
5948 program_space::program_space.
5949 (remove_program_space): New, factored out from
5950 delete_program_space.
5951 (program_space::program_space): Remove intro comment. Rewrite.
5952 (program_space::~program_space): Remove intro comment. Call
5953 remove_program_space.
5954 (delete_program_space): Delete.
5955 * progspace.h (program_space::program_space): Make explicit. Move
5956 intro comment here, adjusted.
5957 (program_space::~program_space): Move intro comment here,
5958 adjusted.
5959 (delete_program_space): Remove.
5960
a010605f
TT
59612020-04-16 Tom Tromey <tromey@adacore.com>
5962
5963 * windows-nat.c (windows_nat::handle_access_violation): New
5964 function.
5965 * nat/windows-nat.h (handle_access_violation): Declare.
5966 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5967 windows-nat.c. Call handle_access_violation.
5968
efba5c23
TV
59692020-04-16 Tom de Vries <tdevries@suse.de>
5970
5971 PR symtab/25791
5972 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5973 CUs without psymtab.
5974
97ed802d
KB
59752020-04-16 Kevin Buettner <kevinb@redhat.com>
5976
5977 * python/python.c (do_start_initialization): Don't call
5978 PyEval_InitThreads for Python 3.9 and beyond.
5979
c7d64809
KR
59802020-04-15 Kamil Rytarowski <n54@gmx.com>
5981
5982 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5983 thread functions.
5984 (obsd_nat_target::wait): Likewise.
5985
ce127a96
TT
59862020-04-15 Tom Tromey <tromey@adacore.com>
5987
5988 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5989 (DEBUG_EXCEPT): Use debug_printf.
5990
99f1bc6a
AB
59912020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5992
5993 * completer.c (class completion_tracker::completion_hash_entry)
5994 <hash_name>: New member function.
5995 (completion_tracker::discard_completions): New callback to hash a
5996 completion_hash_entry, pass this to htab_create_alloc.
5997
a0e9b532
JT
59982016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5999
6000 * windows-nat.c (windows_make_so): Warn rather than stopping with
6001 an error if realpath() fails.
6002
06ca5dd4
KR
60032020-04-14 Kamil Rytarowski <n54@gmx.com>
6004
6005 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6006 (nbsd_nat_target::info_proc): Add do_status.
6007
194d088f
TV
60082020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6009 Tom de Vries <tdevries@suse.de>
6010
6011 PR symtab/25718
6012 * psympriv.h (struct partial_symtab::read_symtab)
6013 (struct partial_symtab::expand_psymtab)
6014 (struct partial_symtab::read_dependencies): Update comments.
6015 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6016 read_symtab for includer.
6017 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6018 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6019 (struct dwarf2_include_psymtab::m_readin): Remove.
6020 (struct dwarf2_include_psymtab::includer): New member function.
6021 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6022
c1a66c06
TV
60232020-04-14 Tom de Vries <tdevries@suse.de>
6024
6025 PR symtab/25720
6026 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6027 with NULL symbol_matcher and lookup_name.
6028 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6029 and lookup_name.
6030 * dwarf2/read.c (dw2_expand_symtabs_matching)
6031 (dw2_debug_names_expand_symtabs_matching): Same.
6032 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6033 Make lookup_name a pointer. Update comment.
6034 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6035 lookup_name being a pointer.
6036 * symfile.c (expand_symtabs_matching): Same.
6037 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6038 * linespec.c (iterate_over_all_matching_symtabs): Same.
6039
400b5eca
TT
60402020-04-13 Tom Tromey <tom@tromey.com>
6041
6042 * run-on-main-thread.c: Update include.
6043 * unittests/main-thread-selftests.c: Update include.
6044 * tui/tui-win.c: Update include.
6045 * tui/tui-io.c: Update include.
6046 * tui/tui-interp.c: Update include.
6047 * tui/tui-hooks.c: Update include.
6048 * top.h: Update include.
6049 * top.c: Update include.
6050 * ser-base.c: Update include.
6051 * remote.c: Update include.
6052 * remote-notif.c: Update include.
6053 * remote-fileio.c: Update include.
6054 * record-full.c: Update include.
6055 * record-btrace.c: Update include.
6056 * python/python.c: Update include.
6057 * posix-hdep.c: Update include.
6058 * mingw-hdep.c: Update include.
6059 * mi/mi-main.c: Update include.
6060 * mi/mi-interp.c: Update include.
6061 * main.c: Update include.
6062 * linux-nat.c: Update include.
6063 * interps.c: Update include.
6064 * infrun.c: Update include.
6065 * inf-loop.c: Update include.
6066 * event-top.c: Update include.
6067 * event-loop.c: Move to ../gdbsupport/.
6068 * event-loop.h: Move to ../gdbsupport/.
6069 * async-event.h: Update include.
6070 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6071
93b54c8e
TT
60722020-04-13 Tom Tromey <tom@tromey.com>
6073
6074 * tui/tui-win.c: Include async-event.h.
6075 * remote.c: Include async-event.h.
6076 * remote-notif.c: Include async-event.h.
6077 * record-full.c: Include async-event.h.
6078 * record-btrace.c: Include async-event.h.
6079 * infrun.c: Include async-event.h.
6080 * event-top.c: Include async-event.h.
6081 * event-loop.h: Move some declarations to async-event.h.
6082 * event-loop.c: Don't include ser-event.h or top.h. Move some
6083 code to async-event.c.
6084 * async-event.h: New file.
6085 * async-event.c: New file.
6086 * Makefile.in (COMMON_SFILES): Add async-event.c.
6087 (HFILES_NO_SRCDIR): Add async-event.h.
6088
c1cd3163
TT
60892020-04-13 Tom Tromey <tom@tromey.com>
6090
6091 * utils.c (flush_streams): New function.
6092 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6093
29f2bf4f
TT
60942020-04-13 Tom Tromey <tom@tromey.com>
6095
6096 * event-loop.c (handle_file_event): Use warning, not
6097 printf_unfiltered.
6098
98029d02
TT
60992020-04-13 Tom Tromey <tom@tromey.com>
6100
6101 * event-loop.c: Include <chrono>.
6102
06cc9596
TT
61032020-04-13 Tom Tromey <tom@tromey.com>
6104
6105 * gdb_select.h: Move to ../gdbsupport/.
6106 * event-loop.c: Update include path.
6107 * top.c: Update include path.
6108 * ser-base.c: Update include path.
6109 * ui-file.c: Update include path.
6110 * ser-tcp.c: Update include path.
6111 * guile/scm-ports.c: Update include path.
6112 * posix-hdep.c: Update include path.
6113 * ser-unix.c: Update include path.
6114 * gdb_usleep.c: Update include path.
6115 * mingw-hdep.c: Update include path.
6116 * inflow.c: Update include path.
6117 * infrun.c: Update include path.
6118 * event-top.c: Update include path.
6119
8ae8e197
TT
61202020-04-13 Tom Tromey <tom@tromey.com>
6121
6122 * configure: Rebuild.
6123 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6124
58cf28e8
TT
61252020-04-13 Tom Tromey <tom@tromey.com>
6126
6127 * event-loop.h (start_event_loop): Don't declare.
6128 * event-loop.c (start_event_loop): Move...
6129 * main.c (start_event_loop): ...here. Now static.
6130
b7f999ae
SDJ
61312020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6132
6133 * MAINTAINERS: Update my email address.
6134
1085dfd4
KR
61352020-04-12 Kamil Rytarowski <n54@gmx.com>
6136
6137 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6138 IP_ALL.
6139
49d1d1f5
KR
61402020-04-12 Kamil Rytarowski <n54@gmx.com>
6141
6142 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6143 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6144
b4848d2a
KR
61452020-04-12 Kamil Rytarowski <n54@gmx.com>
6146
6147 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6148 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6149
51c133d5
KR
61502020-04-12 Kamil Rytarowski <n54@gmx.com>
6151
6152 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6153
54b8cbd0
KR
61542020-04-11 Kamil Rytarowski <n54@gmx.com>
6155
6156 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6157 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6158 (nbsd_nat_target::info_proc): New functions.
6159 * nbsd-nat.c (kinfo_get_vmmap): New function.
6160 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6161 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6162 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6163 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6164 functions.
6165 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6166 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6167 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6168 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6169 (KINFO_VME_FLAG_GROWS_DOWN): New.
6170
cf83625d
AS
61712020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6172
6173 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6174 bit shift.
6175
0c4311ab
TT
61762020-04-10 Tom Tromey <tromey@adacore.com>
6177
6178 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6179
3e65b3e9
TT
61802020-04-10 Tom Tromey <tromey@adacore.com>
6181
6182 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6183 separate debug files.
6184
13302e95
HD
61852020-04-10 Hannes Domani <ssbssa@yahoo.de>
6186
6187 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6188 Move to...
6189 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6190 ... here.
6191 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6192 Check for STATUS_WX86_BREAKPOINT.
6193 (windows_nat_target::wait): Same.
6194
bdfc1e8a
TV
61952020-04-10 Tom de Vries <tdevries@suse.de>
6196
6197 PR cli/25808
6198 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6199
f4460aec
SM
62002020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6201
6202 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6203 (Write After Approval): Remove Tom de Vries.
6204
a25198bb
BE
62052020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6206
6207 revert partially:
6208 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6209
aac66a4c
SM
6210 * buildsym.c (record_line): Fix undefined behavior and preserve
6211 lines at eof.
a25198bb 6212
206c98a6
KR
62132020-04-09 Kamil Rytarowski <n54@gmx.com>
6214
6215 * auxv.h (svr4_auxv_parse): New.
6216 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6217 and generic_auxv_parse.
6218 (svr4_auxv_parse): Add.
6219 * obsd-tdep.c: Include "auxv.h".
6220 (obsd_auxv_parse): Remove.
6221 (obsd_init_abi): Remove comment.
6222 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6223 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6224 * nbsd-tdep.c: Include "auxv.h".
6225 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6226
71fbdbaf
TT
62272020-04-08 Tom Tromey <tromey@adacore.com>
6228
6229 * nat/windows-nat.h (last_wait_event): Don't declare.
6230 (wait_for_debug_event): Update comment.
6231 * nat/windows-nat.c (last_wait_event): Now static.
6232
2c1d95e8
TT
62332020-04-08 Tom Tromey <tromey@adacore.com>
6234
6235 * windows-nat.c (wait_for_debug_event): Move to
6236 nat/windows-nat.c.
6237 * nat/windows-nat.h (wait_for_debug_event): Declare.
6238 * nat/windows-nat.c (wait_for_debug_event): Move from
6239 windows-nat.c. No longer static.
6240
d2977bc4
TT
62412020-04-08 Tom Tromey <tromey@adacore.com>
6242
6243 * windows-nat.c (get_windows_debug_event): Use
6244 fetch_pending_stop.
6245 * nat/windows-nat.h (fetch_pending_stop): Declare.
6246 * nat/windows-nat.c (fetch_pending_stop): New function.
6247
e758e19c
TT
62482020-04-08 Tom Tromey <tromey@adacore.com>
6249
6250 * windows-nat.c (windows_continue): Use matching_pending_stop and
6251 continue_last_debug_event.
6252 * nat/windows-nat.h (matching_pending_stop)
6253 (continue_last_debug_event): Declare.
6254 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6255 (matching_pending_stop, continue_last_debug_event): New
6256 functions.
6257
8d30e395
TT
62582020-04-08 Tom Tromey <tromey@adacore.com>
6259
6260 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6261 (handle_exception_result): Move to nat/windows-nat.h.
6262 (DEBUG_EXCEPTION_SIMPLE): Remove.
6263 (windows_nat::handle_ms_vc_exception): New function.
6264 (handle_exception): Move to nat/windows-nat.c.
6265 (get_windows_debug_event): Update.
6266 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6267 nat/windows-nat.c.
6268 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6269 (handle_exception_result): Move from windows-nat.c.
6270 (handle_exception): Declare.
6271 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6272 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6273 windows-nat.c.
6274
29de418d
TT
62752020-04-08 Tom Tromey <tromey@adacore.com>
6276
6277 * windows-nat.c (exception_count, event_count): Remove.
6278 (handle_exception, get_windows_debug_event)
6279 (do_initial_windows_stuff): Update.
6280
a816ba18
TT
62812020-04-08 Tom Tromey <tromey@adacore.com>
6282
6283 * windows-nat.c (windows_nat::handle_load_dll)
6284 (windows_nat::handle_unload_dll): Rename. No longer static.
6285 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6286 Declare.
6287
a00caa12
TT
62882020-04-08 Tom Tromey <tromey@adacore.com>
6289
6290 * complaints.h (stop_whining): Declare at top-level.
6291 (complaint): Don't declare stop_whining.
6292
d41b524f
TT
62932020-04-08 Tom Tromey <tromey@adacore.com>
6294
6295 * windows-nat.c (windows_nat::handle_output_debug_string):
6296 Rename. No longer static.
6297 * nat/windows-nat.h (handle_output_debug_string): Declare.
6298
3c76026d
TT
62992020-04-08 Tom Tromey <tromey@adacore.com>
6300
6301 * windows-nat.c (current_process_handle, current_process_id)
6302 (main_thread_id, last_sig, current_event, last_wait_event)
6303 (current_windows_thread, desired_stop_thread_id, pending_stops)
6304 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6305 (display_selectors, fake_create_process)
6306 (get_windows_debug_event): Update.
6307 * nat/windows-nat.h (current_process_handle, current_process_id)
6308 (main_thread_id, last_sig, current_event, last_wait_event)
6309 (current_windows_thread, desired_stop_thread_id, pending_stops)
6310 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6311 * nat/windows-nat.c (current_process_handle, current_process_id)
6312 (main_thread_id, last_sig, current_event, last_wait_event)
6313 (current_windows_thread, desired_stop_thread_id, pending_stops)
6314 (siginfo_er): New globals. Move from windows-nat.c.
6315
9d8679cc
TT
63162020-04-08 Tom Tromey <tromey@adacore.com>
6317
6318 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6319 (handle_load_dll): Update.
6320 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6321
28688adf
TT
63222020-04-08 Tom Tromey <tromey@adacore.com>
6323
6324 * windows-nat.c (enum thread_disposition_type): Move to
6325 nat/windows-nat.h.
6326 (windows_nat::thread_rec): Rename from thread_rec. No longer
6327 static.
6328 (windows_add_thread, windows_nat_target::fetch_registers)
6329 (windows_nat_target::store_registers, handle_exception)
6330 (windows_nat_target::resume, get_windows_debug_event)
6331 (windows_nat_target::get_tib_address)
6332 (windows_nat_target::thread_name)
6333 (windows_nat_target::thread_alive): Update.
6334 * nat/windows-nat.h (enum thread_disposition_type): Move from
6335 windows-nat.c.
6336 (thread_rec): Declare.
6337
4834dad0
TT
63382020-04-08 Tom Tromey <tromey@adacore.com>
6339
6340 * windows-nat.c: Add "using namespace".
6341 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6342 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6343
65bafd5b
TT
63442020-04-08 Tom Tromey <tromey@adacore.com>
6345
6346 * nat/windows-nat.h (struct windows_thread_info): Declare
6347 destructor.
6348 * nat/windows-nat.c (~windows_thread_info): New.
6349
0a4afda3
TT
63502020-04-08 Tom Tromey <tromey@adacore.com>
6351
6352 PR gdb/22992
6353 * windows-nat.c (current_event): Update comment.
6354 (last_wait_event, desired_stop_thread_id): New globals.
6355 (struct pending_stop): New.
6356 (pending_stops): New global.
6357 (windows_nat_target) <stopped_by_sw_breakpoint>
6358 <supports_stopped_by_sw_breakpoint>: New methods.
6359 (windows_fetch_one_register): Add assertions. Adjust PC.
6360 (windows_continue): Handle pending stops. Suspend other threads
6361 when stepping. Use last_wait_event
6362 (wait_for_debug_event): New function.
6363 (get_windows_debug_event): Use wait_for_debug_event. Handle
6364 pending stops. Queue spurious stops.
6365 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6366 (windows_nat_target::kill): Use wait_for_debug_event.
6367 * nat/windows-nat.h (struct windows_thread_info)
6368 <stopped_at_software_breakpoint>: New field.
6369 * nat/windows-nat.c (windows_thread_info::resume): Clear
6370 stopped_at_software_breakpoint.
6371
8e61ebec
TT
63722020-04-08 Tom Tromey <tromey@adacore.com>
6373
6374 * windows-nat.c (enum thread_disposition_type): New.
6375 (thread_rec): Replace "get_context" parameter with "disposition";
6376 change type.
6377 (windows_add_thread, windows_nat_target::fetch_registers)
6378 (windows_nat_target::store_registers, handle_exception)
6379 (windows_nat_target::resume, get_windows_debug_event)
6380 (windows_nat_target::get_tib_address)
6381 (windows_nat_target::thread_name)
6382 (windows_nat_target::thread_alive): Update.
6383
98a03287
TT
63842020-04-08 Tom Tromey <tromey@adacore.com>
6385
6386 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6387 (windows_continue): Use windows_continue::resume.
6388 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6389 resume>: Declare new methods.
6390 * nat/windows-nat.c: New file.
6391 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6392
7c7411bc
TT
63932020-04-08 Tom Tromey <tromey@adacore.com>
6394
6395 * windows-nat.c (windows_add_thread, windows_delete_thread)
6396 (windows_nat_target::fetch_registers)
6397 (windows_nat_target::store_registers, fake_create_process)
6398 (windows_nat_target::resume, windows_nat_target::resume)
6399 (get_windows_debug_event, windows_nat_target::wait)
6400 (windows_nat_target::pid_to_str)
6401 (windows_nat_target::get_tib_address)
6402 (windows_nat_target::get_ada_task_ptid)
6403 (windows_nat_target::thread_name)
6404 (windows_nat_target::thread_alive): Use lwp, not tid.
6405
2950fdf7
TT
64062020-04-08 Tom Tromey <tromey@adacore.com>
6407
6408 * windows-nat.c (handle_exception)
6409 (windows_nat_target::thread_name): Update.
6410 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6411 <name>: Now unique_xmalloc_ptr.
6412
62fe396b
TT
64132020-04-08 Tom Tromey <tromey@adacore.com>
6414
6415 * windows-nat.c (thread_rec)
6416 (windows_nat_target::fetch_registers): Update.
6417 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6418 Update comment.
6419 <debug_registers_changed, reload_context>: Now bool.
6420
e9534bd2
TT
64212020-04-08 Tom Tromey <tromey@adacore.com>
6422
6423 * windows-nat.c (windows_add_thread): Use new.
6424 (windows_init_thread_list, windows_delete_thread): Use delete.
6425 (get_windows_debug_event): Update.
6426 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6427 destructor, and initializers.
6428
ae1f8880
TT
64292020-04-08 Tom Tromey <tromey@adacore.com>
6430
6431 * windows-nat.c (struct windows_thread_info): Remove.
6432 * nat/windows-nat.h: New file.
6433
55a1e039
TT
64342020-04-08 Tom Tromey <tromey@adacore.com>
6435
6436 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6437 (thread_rec, windows_add_thread, windows_delete_thread)
6438 (windows_continue): Update.
6439
93366324
TT
64402020-04-08 Tom Tromey <tromey@adacore.com>
6441
6442 * windows-nat.c (struct windows_thread_info): Remove typedef.
6443 (thread_head): Remove.
6444 (thread_list): New global.
6445 (thread_rec, windows_add_thread, windows_init_thread_list)
6446 (windows_delete_thread, windows_continue): Update.
6447
0f2265e2
SM
64482020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6449
6450 * windows-tdep.h (windows_init_abi): Add comment.
6451 (cygwin_init_abi): New declaration.
6452 * windows-tdep.c: Split signal enumeration in two, one for
6453 Windows and one for Cygwin.
6454 (windows_gdb_signal_to_target): Only deal with signal of the
6455 Windows OS ABI.
6456 (cygwin_gdb_signal_to_target): New function.
6457 (windows_init_abi): Rename to windows_init_abi_common, don't set
6458 gdb_signal_to_target gdbarch method. Add new new function with
6459 this name.
6460 (cygwin_init_abi): New function.
6461 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6462 comment. Don't call windows_init_abi.
6463 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6464 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6465 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6466 i386_windows_init_abi_common, don't call windows_init_abi. Add
6467 a new function of this name.
6468 (i386_cygwin_init_abi): New function.
6469 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6470 OS ABI Cygwin.
6471
3810f182
SM
64722020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6473
6474 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6475 parameter.c.
6476 (dwarf2_read_gdb_index): Update.
6477
063f8e80
KR
64782020-04-07 Kamil Rytarowski <n54@gmx.com>
6479
6480 * nbsd-tdep.c: Include "objfiles.h".
6481 (nbsd_skip_solib_resolver): New.
6482 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6483
85a9510c 64842020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6485
6486 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6487 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6488 with DW_LLE_base_addressx are being emitted in DWARFv5.
6489 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6490 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6491 unsigned integer.
6492
9fc3eaae 64932020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6494
6495 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6496 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6497 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6498 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6499 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6500 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6501 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6502
6503
41144253 65042020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6505
6506 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6507 (read_loclist_index): New function definition.
6508 (lookup_loclist_base): New function definition.
6509 (read_loclist_header): New function definition.
6510 (dwarf2_cu): Add loclist_base and loclist_header field.
6511 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6512 (read_full_die_1): Read the value of DW_AT_loclists_base.
6513 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6514 (read_attribute_value): Handle DW_FORM_loclistx.
6515 (skip_one_die): Handle DW_FORM_loclistx.
6516 (loclist_header): New structure declaration.
6517 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6518
9f4e76a4
SM
65192020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6520
6521 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6522 constructor. Remove `addr` parameter from other constructor and
6523 add `per_cu` parameter.
6524 * dwarf2/read.c (create_partial_symtab): Update.
6525
25c11aca
TV
65262020-04-07 Tom de Vries <tdevries@suse.de>
6527
6528 PR symtab/25796
6529 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6530 (partial_die_info::fixup): Inherit has_const_value.
6531
5707e24b
TV
65322020-04-07 Tom de Vries <tdevries@suse.de>
6533
6534 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6535 symbols without address.
6536
05f00e22
KR
65372020-04-06 Kamil Rytarowski <n54@gmx.com>
6538
6539 * nbsd-nat.h (struct thread_info): Add forward declaration.
6540 (nbsd_nat_target::thread_alive): Add.
6541 (nbsd_nat_target::thread_name): Likewise.
6542 (nbsd_nat_target::update_thread_list): Likewise.
6543 (update_thread_list::post_attach): Likewise.
6544 (post_attach::pid_to_str): Likewise.
6545 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6546 (nbsd_thread_lister): Add.
6547 (nbsd_nat_target::thread_alive): Likewise.
6548 (nbsd_nat_target::thread_name): Likewise.
6549 (nbsd_add_threads): Likewise.
6550 (update_thread_list::post_attach): Likewise.
6551 (nbsd_nat_target::update_thread_list): Likewise.
6552 (post_attach::pid_to_str): Likewise.
6553
6ee448cc
TT
65542020-04-06 Tom Tromey <tromey@adacore.com>
6555
6556 * ada-valprint.c (print_variant_part): Extract the variant field.
6557 (print_field_values): Use the field as the outer value when
6558 recursing.
6559
dea34e8c
TT
65602020-04-06 Tom Tromey <tromey@adacore.com>
6561
6562 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6563 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6564 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6565 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6566 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6567
93689ce9
TT
65682020-04-06 Tom Tromey <tromey@adacore.com>
6569
6570 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6571 TYPE_CODE_ERROR.
6572
79743962
KR
65732020-04-06 Kamil Rytarowski <n54@gmx.com>
6574
6575 * nbsd-tdep.c: Include "gdbarch.h".
6576 Define enum with NetBSD signal numbers.
6577 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6578 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6579 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6580 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6581 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6582 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6583 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6584 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6585 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6586 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6587 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6588 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6589
9e7c9a03
HD
65902020-04-03 Hannes Domani <ssbssa@yahoo.de>
6591
6592 PR gdb/25325
6593 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6594
d9e49b61
TT
65952020-04-03 Tom Tromey <tromey@adacore.com>
6596
6597 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6598 Read constant block.
6599
e0fc5c3f
SM
66002020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6601
6602 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6603 (gdb_bfd_get_full_section_contents): New declaration.
6604 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6605 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6606 gdb_bfd_get_full_section_contents.
6607
e2ff18a0
SM
66082020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6609
6610 * exec.c (build_section_table): Replace internal_error with
6611 gdb_assert.
6612 (section_table_xfer_memory_partial): Likewise.
6613 * mdebugread.c (parse_partial_symbols): Likewise.
6614 * psymtab.c (lookup_partial_symbol): Likewise.
6615 * utils.c (wrap_here): Likewise.
6616
0830d301
TT
66172020-04-02 Tom Tromey <tromey@adacore.com>
6618
6619 * f-lang.c (build_fortran_types): Use arch_type to initialize
6620 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6621
e7da7f8f
TT
66222020-04-02 Tom Tromey <tromey@adacore.com>
6623
6624 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6625 of attributes.
6626
c90d28ac
AB
66272020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6628 Bernd Edlinger <bernd.edlinger@hotmail.de>
6629 Tom Tromey <tromey@adacore.com>
6630
6631 * buildsym.c (buildsym_compunit::record_line): Remove
6632 deduplication code.
6633
1aa98955
TV
66342020-04-02 Tom de Vries <tdevries@suse.de>
6635
6636 PR ada/24671
6637 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6638
d3214198
TV
66392020-04-02 Tom de Vries <tdevries@suse.de>
6640
6641 * dwarf2/read.c (dwarf2_gdb_index_functions,
6642 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6643 NULL.
6644 * psymtab.c (psym_lookup_global_symbol_language): New function.
6645 (psym_functions): Init psym_lookup_global_symbol_language with
6646 psym_lookup_global_symbol_language.
6647 * symfile-debug.c (debug_sym_quick_functions): Init
6648 lookup_global_symbol_language with NULL.
6649 * symfile.c (set_initial_language): Remove fixme comment.
6650 * symfile.h (struct quick_symbol_functions): Add
6651 lookup_global_symbol_language.
6652 * symtab.c (find_quick_global_symbol_language): New function.
6653 (find_main_name): Use find_quick_global_symbol_language.
6654
2836752f
SM
66552020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6656
6657 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6658
64dc2d4b
BE
66592020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6660
6661 * buildsym.c (record_line): Fix undefined behavior and preserve
6662 lines at eof.
6663
bbe3dc41
BE
66642020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6665
6666 * buildsym.c (record_line): Fix the resizing condition.
6667
6b4a335b
TT
66682020-04-01 Tom Tromey <tom@tromey.com>
6669
6670 * value.h (value_literal_complex): Add comment.
6671 * valops.c (value_literal_complex): Refer to value.h.
6672
3638a098
TT
66732020-04-01 Tom Tromey <tom@tromey.com>
6674
6675 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6676 (scalar_type): New rule, from typebase.
6677 (typebase): Use scalar_type. Recognize complex types.
6678 (field_name): Handle FLOAT_KEYWORD.
6679 (ident_tokens): Add _Complex and __complex__.
6680
c34e8714
TT
66812020-04-01 Tom Tromey <tom@tromey.com>
6682
6683 PR exp/25299:
6684 * valarith.c (promotion_type, complex_binop): New functions.
6685 (scalar_binop): Handle complex numbers. Use promotion_type.
6686 (value_pos, value_neg, value_complement): Handle complex numbers.
6687
fa649bb7
TT
66882020-04-01 Tom Tromey <tom@tromey.com>
6689
6690 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6691 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6692 (parse_number): Handle complex numbers.
6693
981c08ce
TT
66942020-04-01 Tom Tromey <tom@tromey.com>
6695
6696 * c-valprint.c (c_decorations): Change complex suffix to "i".
6697
4c99290d
TT
66982020-04-01 Tom Tromey <tom@tromey.com>
6699
6700 * valprint.c (generic_value_print_complex): Use accessors.
6701 * value.h (value_real_part, value_imaginary_part): Declare.
6702 * valops.c (value_real_part, value_imaginary_part): New
6703 functions.
6704 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6705
5b930b45
TT
67062020-04-01 Tom Tromey <tom@tromey.com>
6707
6708 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6709 (read_range_type): Update.
6710 * mdebugread.c (basic_type): Update.
6711 * go-lang.c (build_go_types): Use init_complex_type.
6712 * gdbtypes.h (struct main_type) <complex_type>: New member.
6713 (init_complex_type): Update.
6714 (arch_complex_type): Don't declare.
6715 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6716 Make name if none given. Use alloc_type_copy. Look for cached
6717 complex type.
6718 (arch_complex_type): Remove.
6719 (gdbtypes_post_init): Use init_complex_type.
6720 * f-lang.c (build_fortran_types): Use init_complex_type.
6721 * dwarf2/read.c (read_base_type): Update.
6722 * d-lang.c (build_d_types): Use init_complex_type.
6723 * ctfread.c (read_base_type): Update.
6724
53cccef1
TBA
67252020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6726
6727 * infrun.c (stop_all_threads): Update assertion, plus when
6728 stopping threads, take into account that we might be trying
6729 to stop an all-stop target.
6730 (stop_waiting): Call 'stop_all_threads' if there exists a
6731 non-stop target.
6732
a0714d30
TBA
67332020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6734
6735 * target.h (exists_non_stop_target): New function declaration.
6736 * target.c (exists_non_stop_target): New function.
6737
60e22c1e
HD
67382020-04-01 Hannes Domani <ssbssa@yahoo.de>
6739
6740 PR gdb/24789
6741 * eval.c (is_integral_or_integral_reference): New function.
6742 (evaluate_subexp_standard): Allow integer references in
6743 pointer arithmetic.
6744
e139a727
TBA
67452020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6746
6747 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6748 check for no ptid in the stop reply when the target is non-stop.
6749
e0802d59
TT
67502020-04-01 Tom Tromey <tromey@adacore.com>
6751
6752 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6753 "name" parameter to rvalue reference. Initialize m_name_holder.
6754 <lookup_name_info>: New overloads.
6755 <name>: Return gdb::string_view.
6756 <c_str>: New method.
6757 <make_ignore_params>: Update.
6758 <search_name_hash>: Update.
6759 <language_lookup_name>: Return const char *.
6760 <m_name>: Change type.
6761 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6762 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6763 (lookup_name_info::match_any): Update.
6764 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6765 Update.
6766 * minsyms.c (linkage_name_str): Update.
6767 * language.c (default_symbol_name_matcher): Update.
6768 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6769 Update.
6770 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6771 (ada_lookup_name_info::ada_lookup_name_info): Update.
6772 (literal_symbol_name_matcher): Update.
6773
8c072cb6
TT
67742020-04-01 Tom Tromey <tromey@adacore.com>
6775
6776 * psymtab.c (psymtab_search_name): Remove function.
6777 (psym_lookup_symbol): Create search name and lookup name here.
6778 (lookup_partial_symbol): Remove "name" parameter; add
6779 lookup_name.
6780 (psym_expand_symtabs_for_function): Update.
6781
6f29a534
TT
67822020-03-31 Joel Jones <joelkevinjones@gmail.com>
6783
6784 PR tui/25597:
6785 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6786
af62665e
TT
67872020-03-31 Tom Tromey <tromey@adacore.com>
6788
6789 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6790 memcpy.
6791
d1a89da5
NC
67922020-03-30 Nelson Chu <nelson.chu@sifive.com>
6793
6794 * features/riscv/32bit-csr.xml: Regenerated.
6795 * features/riscv/64bit-csr.xml: Regenerated.
6796
d8af9068
TT
67972020-03-30 Tom Tromey <tromey@adacore.com>
6798
6799 * ada-valprint.c (print_variant_part): Update.
6800 * ada-lang.h (ada_which_variant_applies): Update.
6801 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6802 outer_valaddr parameters; replace with "outer" value parameter.
6803 (to_fixed_variant_branch_type): Update.
6804
227c0bf4
PFC
68052020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6806
6807 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6808 <list>. Remove inclusion of observable.h.
6809 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6810 (struct arch_lwp_info): New struct.
6811 (class ppc_linux_dreg_interface): New class.
6812 (struct ppc_linux_process_info): New struct.
6813 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6814 <low_new_clone, low_forget_process, low_prepare_to_resume>
6815 <copy_thread_dreg_state, mark_thread_stale>
6816 <mark_debug_registers_changed, register_hw_breakpoint>
6817 <clear_hw_breakpoint, register_wp, clear_wp>
6818 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6819 <num_memory_accesses, get_trigger_type>
6820 <create_watchpoint_request, hwdebug_point_cmp>
6821 <init_arch_lwp_info, get_arch_lwp_info>
6822 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6823 methods.
6824 <struct ptid_hash>: New inner struct.
6825 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6826 members.
6827 (saved_dabr_value, hwdebug_info, max_slots_number)
6828 (struct hw_break_tuple, struct thread_points, ppc_threads)
6829 (have_ptrace_hwdebug_interface)
6830 (hwdebug_find_thread_points_by_tid)
6831 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6832 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6833 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6834 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6835 use m_dreg_interface.
6836 (hwdebug_point_cmp): Change to...
6837 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6838 reference arguments instead of pointers.
6839 (ppc_linux_nat_target::ranged_break_num_registers): Use
6840 m_dreg_interface.
6841 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6842 m_dreg_interface. Call register_hw_breakpoint.
6843 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6844 m_dreg_interface. Call clear_hw_breakpoint.
6845 (get_trigger_type): Change to...
6846 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6847 comment.
6848 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6849 use m_dreg_interface. Call register_hw_breakpoint.
6850 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6851 use m_dreg_interface. Call clear_hw_breakpoint.
6852 (can_use_watchpoint_cond_accel): Change to...
6853 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6854 method. Update comment, use m_dreg_interface and
6855 m_process_info.
6856 (calculate_dvc): Change to...
6857 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6858 m_dreg_interface.
6859 (num_memory_accesses): Change to...
6860 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6861 (check_condition): Change to...
6862 (ppc_linux_nat_target::check_condition): ...this method.
6863 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6864 comment, use m_dreg_interface.
6865 (create_watchpoint_request): Change to...
6866 (ppc_linux_nat_target::create_watchpoint_request): ...this
6867 method. Use m_dreg_interface.
6868 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6869 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6870 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6871 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6872 (ppc_linux_nat_target::low_forget_process)
6873 (ppc_linux_nat_target::low_new_fork)
6874 (ppc_linux_nat_target::low_new_clone)
6875 (ppc_linux_nat_target::low_delete_thread)
6876 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6877 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6878 only call mark_thread_stale.
6879 (ppc_linux_thread_exit): Remove.
6880 (ppc_linux_nat_target::stopped_data_address): Change to...
6881 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6882 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6883 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6884 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6885 comment. Call low_stopped_data_address.
6886 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6887 m_dreg_interface.
6888 (ppc_linux_nat_target::masked_watch_num_registers): Use
6889 m_dreg_interface.
6890 (ppc_linux_nat_target::copy_thread_dreg_state)
6891 (ppc_linux_nat_target::mark_thread_stale)
6892 (ppc_linux_nat_target::mark_debug_registers_changed)
6893 (ppc_linux_nat_target::register_hw_breakpoint)
6894 (ppc_linux_nat_target::clear_hw_breakpoint)
6895 (ppc_linux_nat_target::register_wp)
6896 (ppc_linux_nat_target::clear_wp)
6897 (ppc_linux_nat_target::init_arch_lwp_info)
6898 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6899 (_initialize_ppc_linux_nat): Remove observer callback.
6900
4db10d8f
PFC
69012020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6902
6903 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6904 (ppc_linux_nat_target::auxv_parse)
6905 (ppc_linux_nat_target::read_description)
6906 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6907 Move up.
6908
1310c1b0
PFC
69092020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6910
6911 * linux-nat.h (low_new_clone): New method.
6912 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6913
69b037c3
SM
69142020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6915
6916 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6917 (dbx_expand_psymtab): ... this.
6918 (start_psymtab): Update.
6919 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6920 (mdebug_expand_psymtab): ... this.
6921 (parse_partial_symbols): Update.
6922 (new_psymtab): Update.
6923 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6924 (xcoff_expand_psymtab): ... this.
6925 (xcoff_start_psymtab): Update.
6926
48993951
SM
69272020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6928
6929 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6930 <expand_dependencies>: ... this.
6931 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6932 (partial_symtab::expand_dependencies): ... this.
6933 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6934 Update.
6935 (dwarf2_psymtab::expand_psymtab): Update.
6936 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6937 * mdebugread.c (psymtab_to_symtab_1): Update.
6938 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6939
3ad83046
SM
69402020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6941
6942 * psympriv.h (discard_psymtab): Remove.
6943 * dbxread.c (dbx_end_psymtab): Update.
6944 * xcoffread.c (xcoff_end_psymtab): Update.
6945
4d1b9ab6
TT
69462020-03-28 Tom Tromey <tom@tromey.com>
6947
6948 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6949 comment.
6950
f1749218
TT
69512020-03-28 Tom Tromey <tom@tromey.com>
6952
6953 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6954
ebea7626
HD
69552020-03-27 Hannes Domani <ssbssa@yahoo.de>
6956
6957 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6958
a879b4d5
JB
69592020-03-26 John Baldwin <jhb@FreeBSD.org>
6960
6961 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6962
0826b30a
TT
69632020-03-26 Tom Tromey <tom@tromey.com>
6964
6965 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6966 (mark_common_block_symbol_computed, read_tag_string_type)
6967 (attr_to_dynamic_prop, read_subrange_type): Update.
6968 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6969 to be methods on struct attribute.
6970 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6971 (read_call_site_scope, partial_die_info::read)
6972 (partial_die_info::read, lookup_die_type, follow_die_ref):
6973 Update.
6974 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6975 from dwarf2_get_ref_die_offset.
6976 (attribute::constant_value): New method, from
6977 dwarf2_get_attr_constant_value.
6978 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6979 Declare method.
6980 <constant_value>: New method.
6981
2b2558bf
TT
69822020-03-26 Tom Tromey <tom@tromey.com>
6983
6984 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6985 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6986 (dwarf_type_encoding_name): Move to stringify.c.
6987 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6988 * dwarf2/stringify.c: New file.
6989 * dwarf2/stringify.h: New file.
6990
eeb64781
TT
69912020-03-26 Tom Tromey <tom@tromey.com>
6992
6993 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6994 Rewrite.
6995
a39fdb41
TT
69962020-03-26 Tom Tromey <tom@tromey.com>
6997
6998 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6999 methods.
7000 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7001 (lookup_ranges_base): Likewise.
7002 (read_cutu_die_from_dwo, read_full_die_1): Update.
7003
436c571c
TT
70042020-03-26 Tom Tromey <tom@tromey.com>
7005
7006 * dwarf2/read.c (read_import_statement, read_file_scope)
7007 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7008 (read_lexical_block_scope, read_call_site_scope)
7009 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7010 (handle_struct_member_die, process_structure_scope)
7011 (update_enumeration_type_from_children)
7012 (process_enumeration_scope, read_array_type, read_common_block)
7013 (read_namespace, read_module, read_subroutine_type): Update.
7014 (sibling_die): Remove.
7015
052c8bb8
TT
70162020-03-26 Tom Tromey <tom@tromey.com>
7017
7018 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7019 (build_type_psymtabs_reader, read_structure_type)
7020 (read_enumeration_type, read_full_die_1): Update.
7021 (dwarf2_attr_no_follow): Move to die.h.
7022 * dwarf2/die.h (struct die_info) <attr>: New method.
7023
2b24b6e4
TT
70242020-03-26 Tom Tromey <tom@tromey.com>
7025
7026 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7027 <base_address>: Now an optional.
7028 (dwarf2_find_base_address, dwarf2_rnglists_process)
7029 (dwarf2_ranges_process, fill_in_loclist_baton)
7030 (dwarf2_symbol_mark_computed): Update.
7031
c2d50fd0
TT
70322020-03-26 Tom Tromey <tom@tromey.com>
7033
7034 * dwarf2/read.c (struct die_info): Move to die.h.
7035 * dwarf2/die.h: New file.
7036
0df7ad3a
TT
70372020-03-26 Tom Tromey <tom@tromey.com>
7038
7039 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7040 * dwarf2/read.c
7041 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7042 Move to line-header.c.
7043 (read_checked_initial_length_and_offset, read_formatted_entries):
7044 Likewise.
7045 (dwarf_decode_line_header): Split into two.
7046 * dwarf2/line-header.c
7047 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7048 Move from read.c.
7049 (read_checked_initial_length_and_offset, read_formatted_entries):
7050 Likewise.
7051 (dwarf_decode_line_header): New function, split from read.c.
7052
86c0bb4c
TT
70532020-03-26 Tom Tromey <tom@tromey.com>
7054
7055 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7056 Declare method.
7057 * dwarf2/read.c (read_attribute_value): Update.
7058 (dwarf2_per_objfile::read_line_string): Rename from
7059 read_indirect_line_string.
7060 (read_formatted_entries): Update.
7061
2ef46c2f
TT
70622020-03-26 Tom Tromey <tom@tromey.com>
7063
7064 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7065 variable.
7066
4f9c1eda
TT
70672020-03-26 Tom Tromey <tom@tromey.com>
7068
7069 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7070 const.
7071 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7072 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7073 parameter const.
7074
5a0e026f
TT
70752020-03-26 Tom Tromey <tom@tromey.com>
7076
7077 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7078 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7079 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7080 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7081
8844c11b
TT
70822020-03-26 Tom Tromey <tom@tromey.com>
7083
7084 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7085 file_names_size, file_full_name, file_file_name>: Use const.
7086 <file_name_at, file_names>: Add const overload.
7087 * dwarf2/line-header.c (line_header::file_file_name)
7088 (line_header::file_full_name): Update.
7089
c90ec28a
TT
70902020-03-26 Tom Tromey <tom@tromey.com>
7091
7092 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7093 (macro_start_file, consume_improper_spaces)
7094 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7095 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7096 (dwarf_decode_macros): Move to macro.c.
7097 * dwarf2/macro.c: New file.
7098 * dwarf2/macro.h: New file.
7099 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7100
4f44ae6c
TT
71012020-03-26 Tom Tromey <tom@tromey.com>
7102
7103 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7104 method.
7105 * dwarf2/section.c: New method. From
7106 read_indirect_string_at_offset_from.
7107 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7108 (read_indirect_string_at_offset_from): Move to section.c.
7109 (read_indirect_string_at_offset): Rewrite.
7110 (read_indirect_line_string_at_offset): Remove.
7111 (read_indirect_string, read_indirect_line_string)
7112 (dwarf_decode_macro_bytes): Update.
7113
a0194fa8
TT
71142020-03-26 Tom Tromey <tom@tromey.com>
7115
7116 * dwarf2/section.h (struct dwarf2_section_info)
7117 <overload_complaint>: Declare.
7118 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7119 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7120 Rename from dwarf2_section_buffer_overflow_complaint.
7121 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7122 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7123
3d27bbdb
TT
71242020-03-26 Tom Tromey <tom@tromey.com>
7125
7126 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7127 Declare.
7128 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7129 Move from read.c.
7130 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7131 to section.c.
7132
9eac9650
TT
71332020-03-26 Tom Tromey <tom@tromey.com>
7134
7135 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7136
bf80d710
TT
71372020-03-26 Tom Tromey <tom@tromey.com>
7138
7139 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7140 "builder".
7141 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7142 parameter.
7143 (dwarf_decode_macros): Update.
7144
0314b390
TT
71452020-03-26 Tom Tromey <tom@tromey.com>
7146
7147 * dwarf2/read.c (read_attribute_value): Update.
7148 (read_indirect_string_from_dwz): Move to dwz.c; change into
7149 method.
7150 (dwarf_decode_macro_bytes): Update.
7151 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7152 * dwarf2/dwz.c: New file.
7153 * Makefile.in (COMMON_SFILES): Add dwz.c.
7154
9fda78b6
TT
71552020-03-26 Tom Tromey <tom@tromey.com>
7156
7157 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7158 * dwarf2/read.c: Add include.
7159 * dwarf2/index-write.c: Add include.
7160 * dwarf2/index-cache.c: Add include.
7161 * dwarf2/dwz.h: New file.
7162
33aa3c10
TT
71632020-03-25 Tom Tromey <tom@tromey.com>
7164
7165 * compile/compile-object-load.c (get_out_value_type): Mention
7166 correct symbol name in error message.
7167
d503b685
HD
71682020-03-25 Hannes Domani <ssbssa@yahoo.de>
7169
7170 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7171
7b1eff95
TV
71722020-03-25 Tom de Vries <tdevries@suse.de>
7173
7174 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7175 * symmisc.c (dump_symtab_1): Print user and includes fields.
7176 (maintenance_info_symtabs): Same.
7177
dd895392
AB
71782020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7179
7180 PR gdb/25534
7181 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7182 (riscv_regcache_cooked_write): New function.
7183 (riscv_push_dummy_call): Use new function.
7184 (riscv_return_value): Likewise.
7185
5ab2fbf1
SM
71862020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7187
7188 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7189 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7190 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7191 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7192 * infrun.c (follow_fork): Likewise.
7193 (follow_fork_inferior): Likewise.
7194 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7195 * linux-nat.h (class linux_nat_target): Likewise.
7196 * remote.c (class remote_target) <follow_fork>: Likewise.
7197 (remote_target::follow_fork): Likewise.
7198 * target-delegates.c: Re-generate.
7199 * target.c (default_follow_fork): Likewise.
7200 (target_follow_fork): Likewise.
7201 * target.h (struct target_ops) <follow_fork>: Likewise.
7202 (target_follow_fork): Likewise.
7203
a64fafb5
TV
72042020-03-24 Tom de Vries <tdevries@suse.de>
7205
7206 * psymtab.c (maintenance_info_psymtabs): Print user field.
7207
fe26d3a3
TT
72082020-03-20 Tom Tromey <tromey@adacore.com>
7209
7210 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7211 const.
7212 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7213 const.
7214
c884cc46
SM
72152020-03-20 Simon Marchi <simon.marchi@efficios.com>
7216
7217 * ptrace.m4: Don't check for ptrace declaration.
7218 * config.in: Re-generate.
7219 * configure: Re-generate.
7220 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7221 not defined.
7222
1ff700c2
KR
72232020-03-20 Kamil Rytarowski <n54@gmx.com>
7224
7225 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7226 `PTRACE_TYPE_RET'.
7227 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7228 * sparc-nat.c (gdb_ptrace): Likewise.
7229 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7230
f7d4f0b1
TT
72312020-03-20 Tom Tromey <tromey@adacore.com>
7232
7233 * c-exp.y (lex_one_token): Fix assert.
7234
f67210ff
TT
72352020-03-20 Tom Tromey <tromey@adacore.com>
7236
7237 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7238 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7239 strncpy call.
7240
1773be9e
TT
72412020-03-20 Tom Tromey <tromey@adacore.com>
7242
7243 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7244
70304be9
TT
72452020-03-20 Tom Tromey <tromey@adacore.com>
7246
7247 * ada-valprint.c (print_variant_part): Remove parameters; switch
7248 to value-based API.
7249 (print_field_values): Likewise.
7250 (ada_val_print_struct_union): Likewise.
7251 (ada_value_print_1): Update.
7252
9faa006d
KR
72532020-03-20 Kamil Rytarowski <n54@gmx.com>
7254
7255 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7256 nbsd_nat_target instead of inf_ptrace_target.
7257 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7258 nbsd_nat_target.
7259
4a90f062
KR
72602020-03-20 Kamil Rytarowski <n54@gmx.com>
7261
7262 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7263 it to the ptrace call.
7264 * (store_registers): Likewise.
7265
72662020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7267
7268 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7269 it to the ptrace call.
7270 * (store_registers): Likewise.
7271
2d07da27
LM
72722020-03-19 Luis Machado <luis.machado@linaro.org>
7273
7274 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7275 valid, fetch vg value from ptrace.
7276
f09db380
KR
72772020-03-19 Kamil Rytarowski <n54@gmx.com>
7278 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7279 * inf-ptrace.c: Likewise.
7280 * (gdb_ptrace): Add.
7281 * (inf_ptrace_target::resume): Update.
7282 * (inf_ptrace_target::xfer_partial): Likewise.
7283 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7284 * (inf_ptrace_peek_poke): Update.
7285
fcc7376e
KR
72862020-03-19 Kamil Rytarowski <n54@gmx.com>
7287
7288 * x86-bsd-nat.c (gdb_ptrace): New.
7289 * (x86bsd_dr_set): Add new argument `ptid'.
7290 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7291 x86bsd_dr_set_addr): Update.
7292
cada5fc9
AB
72932020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7294
7295 * remote.c (remote_target::process_stop_reply): Handle events for
7296 all threads differently.
7297
19a2740f
AB
72982020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7299
7300 * completer.c (completion_tracker::remove_completion): Define new
7301 function.
7302 * completer.h (completion_tracker::remove_completion): Declare new
7303 function.
7304 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7305 when adding a C++ function symbol.
7306
724fd9ba
AB
73072020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7308
7309 * completer.c (completion_tracker::completion_hash_entry): Define
7310 new class.
7311 (advance_to_filename_complete_word_point): Call
7312 recompute_lowest_common_denominator.
7313 (completion_tracker::completion_tracker): Call discard_completions
7314 to setup the hash table.
7315 (completion_tracker::discard_completions): Allow for being called
7316 from the constructor, pass new equal function, and element deleter
7317 when constructing the hash table. Initialise new class member
7318 variables.
7319 (completion_tracker::maybe_add_completion): Remove use of
7320 m_entries_vec, and store more information into m_entries_hash.
7321 (completion_tracker::recompute_lcd_visitor): New function, most
7322 content taken from...
7323 (completion_tracker::recompute_lowest_common_denominator):
7324 ...here, this now just visits each item in the hash calling the
7325 above visitor.
7326 (completion_tracker::build_completion_result): Remove use of
7327 m_entries_vec, call recompute_lowest_common_denominator.
7328 * completer.h (completion_tracker::have_completions): Remove use
7329 of m_entries_vec.
7330 (completion_tracker::completion_hash_entry): Declare new class.
7331 (completion_tracker::recompute_lowest_common_denominator): Change
7332 function signature.
7333 (completion_tracker::recompute_lcd_visitor): Declare new function.
7334 (completion_tracker::m_entries_vec): Delete.
7335 (completion_tracker::m_entries_hash): Initialize to NULL.
7336 (completion_tracker::m_lowest_common_denominator_valid): New
7337 member variable.
7338 (completion_tracker::m_lowest_common_denominator_max_length): New
7339 member variable.
7340
5a82b8a1
KR
73412020-03-17 Kamil Rytarowski <n54@gmx.com>
7342
7343 * regformats/regdef.h: Put reg in gdb namespace.
7344
fb516a69
KR
73452020-03-17 Kamil Rytarowski <n54@gmx.com>
7346
7347 * i386-bsd-nat.c (gdb_ptrace): New.
7348 * (i386bsd_fetch_inferior_registers,
7349 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7350 * (i386bsd_fetch_inferior_registers,
7351 i386bsd_store_inferior_registers) Use gdb_ptrace.
7352
1c0aa1fb
KR
73532020-03-17 Kamil Rytarowski <n54@gmx.com>
7354
7355 * amd64-bsd-nat.c (gdb_ptrace): New.
7356 * (amd64bsd_fetch_inferior_registers,
7357 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7358 * (amd64bsd_fetch_inferior_registers,
7359 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7360
5ccd2fb7
KR
73612020-03-17 Kamil Rytarowski <n54@gmx.com>
7362
7363 * user-regs.c (user_reg::read): Rename to...
7364 (user_reg::xread): ...this.
7365 * (append_user_reg): Rename argument `read' to `xread'.
7366 * (user_reg_add_builtin): Likewise.
7367 * (user_reg_add): Likewise.
7368 * (value_of_user_reg): Likewise.
7369
2108a63a
KR
73702020-03-17 Kamil Rytarowski <n54@gmx.com>
7371
7372 * sparc-nat.c (gdb_ptrace): New.
7373 * sparc-nat.c (sparc_fetch_inferior_registers)
7374 (sparc_store_inferior_registers) Remove obsolete comment.
7375 * sparc-nat.c (sparc_fetch_inferior_registers)
7376 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7377 * sparc-nat.c (sparc_fetch_inferior_registers)
7378 (sparc_store_inferior_registers) Use gdb_ptrace.
7379
a225c9a8
KR
73802020-03-17 Kamil Rytarowski <n54@gmx.com>
7381
7382 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7383 it to the ptrace call.
7384 * sh-nbsd-nat.c (store_registers): Likewise.
7385
98097623
KR
73862020-03-17 Kamil Rytarowski <n54@gmx.com>
7387
7388 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7389 nbsd_nat_target instead of inf_ptrace_target.
7390 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7391 nbsd_nat_target.
7392
9e38d619
KR
73932020-03-17 Kamil Rytarowski <n54@gmx.com>
7394
7395 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7396
a2ecbe9f
KR
73972020-03-17 Kamil Rytarowski <n54@gmx.com>
7398
7399 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7400 <sys/sysctl.h>.
7401 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7402
58990295
TV
74032020-03-17 Tom de Vries <tdevries@suse.de>
7404
7405 PR gdb/23710
7406 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7407 fields.
7408 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7409 fields.
7410 (process_imported_unit_die): Skip import of c++ CUs.
7411
771dd3a8
TT
74122020-03-16 Tom Tromey <tom@tromey.com>
7413
7414 * p-valprint.c (pascal_object_print_value): Initialize
7415 base_value.
7416
817a7585
AK
74172020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7418 Shahab Vahedi <shahab@synopsys.com>
7419
7420 * Makefile.in: Add arch/arc.o
7421 * configure.tgt: Likewise.
7422 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7423 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7424 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7425 * arc-tdep.h (arc_read_description): Add proto type.
7426 * arch/arc.c: New file.
7427 * arch/arc.h: Likewise.
7428 * features/Makefile: Replace old target descriptions with new.
7429 * features/arc-arcompact.c: Remove.
7430 * features/arc-arcompact.xml: Likewise.
7431 * features/arc-v2.c: Likewise
7432 * features/arc-v2.xml: Likewise
7433 * features/arc/aux-arcompact.xml: New file.
7434 * features/arc/aux-v2.xml: Likewise.
7435 * features/arc/core-arcompact.xml: Likewise.
7436 * features/arc/core-v2.xml: Likewise.
7437 * features/arc/aux-arcompact.c: Generate.
7438 * features/arc/aux-v2.c: Likewise.
7439 * features/arc/core-arcompact.c: Likewise.
7440 * features/arc/core-v2.c: Likewise.
7441 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7442
67430cd0
TT
74432020-03-16 Tom Tromey <tromey@adacore.com>
7444
7445 PR gdb/25663:
7446 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7447 putting value into bcache.
7448
30efb6c7
SM
74492020-03-16 Simon Marchi <simon.marchi@efficios.com>
7450
7451 PR gdb/21500
7452 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7453 to...
7454 (amd64_windows_init_abi_common): ... this. Don't set size of
7455 long type.
7456 (amd64_windows_init_abi): New function.
7457 (amd64_cygwin_init_abi): New function.
7458 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7459 the Cygwin OS ABI.
7460 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7461 comment.
7462
8db52437
SM
74632020-03-16 Simon Marchi <simon.marchi@efficios.com>
7464
7465 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7466 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7467 (pe_import_directory_entry): New struct type.
7468 (is_linked_with_cygwin_dll): New function.
7469 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7470 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7471 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7472
5982a56a
SM
74732020-03-16 Simon Marchi <simon.marchi@efficios.com>
7474
7475 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7476 i386_cygwin_core_osabi_sniffer.
7477
7a1998df
SM
74782020-03-16 Simon Marchi <simon.marchi@efficios.com>
7479
7480 * i386-cygwin-tdep.c: Rename to...
7481 * i386-windows-tdep.c: ... this.
7482 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7483 i386-windows-tdep.c.
7484 * configure.tgt: Likewise.
7485
053205cc
SM
74862020-03-16 Simon Marchi <simon.marchi@efficios.com>
7487
7488 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7489 * osabi.c (gdb_osabi_names): Add "Windows".
7490 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7491 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7492 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7493 i386_cygwin_osabi_sniffer.
7494 (_initialize_i386_cygwin_tdep): Register OS ABI
7495 GDB_OSABI_WINDOWS for i386.
7496 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7497 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7498 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7499 for x86-64.
7500 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7501 when the target matches '*-*-mingw*'.
7502
fe4b2ee6
SM
75032020-03-16 Simon Marchi <simon.marchi@efficios.com>
7504
7505 * defs.h (enum gdb_osabi): Move to...
7506 * osabi.h (enum gdb_osabi): ... here.
7507 * gdbarch.sh: Include osabi.h in gdbarch.h.
7508 * gdbarch.h: Re-generate.
7509
cb9b645d
SM
75102020-03-16 Simon Marchi <simon.marchi@efficios.com>
7511
7512 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7513 function.
7514 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7515
3293bbaf
TT
75162020-03-14 Tom Tromey <tom@tromey.com>
7517
7518 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7519 for C++.
7520 (c_type_print_modifier): Likewise. Add "language" parameter.
7521 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7522 (c_type_print_base_1): Update.
7523 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7524 constants.
7525 * type-stack.c (type_stack::insert): Handle tp_atomic and
7526 tp_restrict.
7527 (type_stack::follow_type_instance_flags): Likewise.
7528 (type_stack::follow_types): Likewise. Merge type-following code.
7529 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7530 (space_identifier, cv_with_space_id)
7531 (const_or_volatile_or_space_identifier_noopt)
7532 (const_or_volatile_or_space_identifier): Remove.
7533 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7534 rules.
7535 (ptr_operator, typebase): Update.
7536 (enum token_flag) <FLAG_C>: New constant.
7537 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7538 "_Atomic".
7539 (lex_one_token): Handle FLAG_C.
7540
154151a6
KR
75412020-03-14 Kamil Rytarowski <n54@gmx.com>
7542
7543 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7544 it to the ptrace call.
7545 * m68k-bsd-nat.c (store_registers): Likewise.
7546
bc107784
KR
75472020-03-14 Kamil Rytarowski <n54@gmx.com>
7548
7549 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7550 gdb_byte *.
7551 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7552 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7553 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7554
01a80117
KR
75552020-03-14 Kamil Rytarowski <n54@gmx.com>
7556
7557 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7558 nbsd_nat_target instead of inf_ptrace_target.
7559 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7560 nbsd_nat_target.
7561
f90280ca
KR
75622020-03-14 Kamil Rytarowski <n54@gmx.com>
7563
7564 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7565 register_t.
7566
6def66f1
KR
75672020-03-14 Kamil Rytarowski <n54@gmx.com>
7568
7569 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7570 it to the ptrace call.
7571 * alpha-bsd-nat.c (store_registers): Likewise.
7572
66eaca97
KR
75732020-03-14 Kamil Rytarowski <n54@gmx.com>
7574
7575 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7576 includes.
7577 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7578 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7579 fill_fpregset): Likewise.
7580
4fed520b
KR
75812020-03-14 Kamil Rytarowski <n54@gmx.com>
7582
7583 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7584 nbsd_nat_target instead of inf_ptrace_target.
7585 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7586 nbsd_nat_target.
7587
2190cf06
KR
75882020-03-14 Kamil Rytarowski <n54@gmx.com>
7589
7590 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7591 register_t.
7592
75c56d3d
KR
75932020-03-14 Kamil Rytarowski <n54@gmx.com>
7594
7595 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7596 it to the ptrace call.
7597 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7598 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7599 * arm-nbsd-nat.c (store_register): Likewise.
7600 * arm-nbsd-nat.c (store_regs): Likewise.
7601 * arm-nbsd-nat.c (store_fp_register): Likewise.
7602 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7603
6018d381
KR
76042020-03-14 Kamil Rytarowski <n54@gmx.com>
7605
7606 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7607 nbsd_nat_target instead of inf_ptrace_target.
7608 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7609 nbsd_nat_target.
7610
013f99f0
KR
76112020-03-14 Kamil Rytarowski <n54@gmx.com>
7612
7613 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7614 it to the ptrace call.
7615 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7616
12753073
KR
76172020-03-14 Kamil Rytarowski <n54@gmx.com>
7618
6227b330
KR
7619 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7620 it to the ptrace call.
7621 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7622
76232020-03-14 Kamil Rytarowski <n54@gmx.com>
7624
7625 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7626 gdb_byte *.
12753073
KR
7627 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7628
d5be5fa4
KR
76292020-03-14 Kamil Rytarowski <n54@gmx.com>
7630
7631 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7632 instead of inf_ptrace_target.
7633 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7634 nbsd_nat_target.
7635
8110f842
KR
76362020-03-14 Kamil Rytarowski <n54@gmx.com>
7637
7638 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7639 register_t.
7640
52feded7
KR
76412020-03-14 Kamil Rytarowski <n54@gmx.com>
7642
7643 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7644 register_t.
7645
25567eee
KR
76462020-03-14 Kamil Rytarowski <n54@gmx.com>
7647
7648 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7649 register_t.
7650
426a9c18
TT
76512020-03-13 Tom Tromey <tom@tromey.com>
7652
7653 * value.h (val_print): Don't declare.
7654 * valprint.h (val_print_array_elements)
7655 (val_print_scalar_formatted, generic_val_print): Don't declare.
7656 * valprint.c (generic_val_print_array): Take a struct value.
7657 (generic_val_print_ptr, generic_val_print_memberptr)
7658 (generic_val_print_bool, generic_val_print_int)
7659 (generic_val_print_char, generic_val_print_complex)
7660 (generic_val_print): Remove.
7661 (generic_value_print): Update.
7662 (do_val_print): Remove unused parameters. Don't call
7663 la_val_print.
7664 (val_print): Remove.
7665 (common_val_print): Update. Don't call value_check_printable.
7666 (val_print_scalar_formatted, val_print_array_elements): Remove.
7667 * rust-lang.c (rust_val_print): Remove.
7668 (rust_language_defn): Update.
7669 * p-valprint.c (pascal_val_print): Remove.
7670 (pascal_value_print_inner): Update.
7671 (pascal_object_print_val_fields, pascal_object_print_val):
7672 Remove.
7673 (pascal_object_print_static_field): Update.
7674 * p-lang.h (pascal_val_print): Don't declare.
7675 * p-lang.c (pascal_language_defn): Update.
7676 * opencl-lang.c (opencl_language_defn): Update.
7677 * objc-lang.c (objc_language_defn): Update.
7678 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7679 * m2-lang.h (m2_val_print): Don't declare.
7680 * m2-lang.c (m2_language_defn): Update.
7681 * language.h (struct language_defn) <la_val_print>: Remove.
7682 * language.c (unk_lang_value_print_inner): Rename. Change
7683 argument types.
7684 (unknown_language_defn, auto_language_defn): Update.
7685 * go-valprint.c (go_val_print): Remove.
7686 * go-lang.h (go_val_print): Don't declare.
7687 * go-lang.c (go_language_defn): Update.
7688 * f-valprint.c (f_val_print): Remove.
7689 * f-lang.h (f_value_print): Don't declare.
7690 * f-lang.c (f_language_defn): Update.
7691 * d-valprint.c (d_val_print): Remove.
7692 * d-lang.h (d_value_print): Don't declare.
7693 * d-lang.c (d_language_defn): Update.
7694 * cp-valprint.c (cp_print_value_fields)
7695 (cp_print_value_fields_rtti, cp_print_value): Remove.
7696 (cp_print_static_field): Update.
7697 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7698 (c_val_print_struct, c_val_print_union, c_val_print_int)
7699 (c_val_print_memberptr, c_val_print): Remove.
7700 * c-lang.h (c_val_print_array, cp_print_value_fields)
7701 (cp_print_value_fields_rtti): Don't declare.
7702 * c-lang.c (c_language_defn, cplus_language_defn)
7703 (asm_language_defn, minimal_language_defn): Update.
7704 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7705 (ada_val_print_enum): Take a struct value.
7706 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7707 (ada_val_print): Remove.
7708 (ada_value_print_1): Update.
7709 (printable_val_type): Remove.
7710 * ada-lang.h (ada_val_print): Don't declare.
7711 * ada-lang.c (ada_language_defn): Update.
7712
42331a1e
TT
77132020-03-13 Tom Tromey <tom@tromey.com>
7714
7715 * valprint.c (do_val_print): Update.
7716 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7717 a struct value.
7718 (value_to_value_object_no_release): Declare.
7719 * python/py-value.c (value_to_value_object_no_release): New
7720 function.
7721 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7722 struct value.
7723 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7724 function.
7725 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7726 a struct value.
7727 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7728 Declare.
7729 (gdbscm_apply_val_pretty_printer): Take a struct value.
7730 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7731 value.
7732 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7733 value.
7734 * extension-priv.h (struct extension_language_ops)
7735 <apply_val_pretty_printer>: Take a struct value.
7736 * cp-valprint.c (cp_print_value): Create a struct value.
7737 (cp_print_value): Update.
7738
3a916a97
TT
77392020-03-13 Tom Tromey <tom@tromey.com>
7740
7741 * ada-valprint.c (print_field_values): Call common_val_print.
7742
b59eac37
TT
77432020-03-13 Tom Tromey <tom@tromey.com>
7744
7745 * ada-valprint.c (val_print_packed_array_elements): Remove
7746 bitoffset and val parameters. Call common_val_print.
7747 (ada_val_print_string): Remove offset, address, and original_value
7748 parameters.
7749 (ada_val_print_array): Update.
7750 (ada_value_print_array): New function.
7751 (ada_value_print_1): Call it.
7752
03371129
TT
77532020-03-13 Tom Tromey <tom@tromey.com>
7754
7755 * ada-valprint.c (ada_value_print): Use common_val_print.
7756
2e088f8b
TT
77572020-03-13 Tom Tromey <tom@tromey.com>
7758
7759 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7760
39ef85a8
TT
77612020-03-13 Tom Tromey <tom@tromey.com>
7762
7763 * ada-valprint.c (ada_value_print_num): New function.
7764 (ada_value_print_1): Use it.
7765
b9fa6e07
TT
77662020-03-13 Tom Tromey <tom@tromey.com>
7767
7768 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7769
416595d6
TT
77702020-03-13 Tom Tromey <tom@tromey.com>
7771
7772 * ada-valprint.c (ada_value_print_ptr): New function.
7773 (ada_value_print_1): Use it.
7774
5b5e15ec
TT
77752020-03-13 Tom Tromey <tom@tromey.com>
7776
7777 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7778 call common_val_print.
7779 (ada_val_print_1): Update.
7780 (ada_value_print_1): New function.
7781 (ada_value_print_inner): Rewrite.
7782
fbf54e75
TT
77832020-03-13 Tom Tromey <tom@tromey.com>
7784
7785 * cp-valprint.c (cp_print_value_fields): Update.
7786 (cp_print_value): New function.
7787
64b653ca
TT
77882020-03-13 Tom Tromey <tom@tromey.com>
7789
7790 * m2-valprint.c (m2_value_print_inner): Use
7791 cp_print_value_fields.
7792 * cp-valprint.c (cp_print_value_fields): New function.
7793 * c-valprint.c (c_value_print_struct): New function.
7794 (c_value_print_inner): Use c_value_print_struct.
7795 * c-lang.h (cp_print_value_fields): Declare.
7796
6999f067
TT
77972020-03-13 Tom Tromey <tom@tromey.com>
7798
7799 * c-valprint.c (c_value_print_array): New function.
7800 (c_value_print_inner): Use it.
7801
ce80b8bd
TT
78022020-03-13 Tom Tromey <tom@tromey.com>
7803
7804 * c-valprint.c (c_value_print_memberptr): New function.
7805 (c_value_print_inner): Use it.
7806
2faac269
TT
78072020-03-13 Tom Tromey <tom@tromey.com>
7808
7809 * c-valprint.c (c_value_print_int): New function.
7810 (c_value_print_inner): Use it.
7811
da3e2c29
TT
78122020-03-13 Tom Tromey <tom@tromey.com>
7813
7814 * c-valprint.c (c_value_print_ptr): New function.
7815 (c_value_print_inner): Use it.
7816
50836231
TT
78172020-03-13 Tom Tromey <tom@tromey.com>
7818
7819 * c-valprint.c (c_value_print_inner): Rewrite.
7820
4f412b6e
TT
78212020-03-13 Tom Tromey <tom@tromey.com>
7822
7823 * valprint.c (generic_value_print_complex): New function.
7824 (generic_value_print): Use it.
7825
f5354008
TT
78262020-03-13 Tom Tromey <tom@tromey.com>
7827
7828 * valprint.c (generic_val_print_float): Don't call
7829 val_print_scalar_formatted.
7830 (generic_val_print, generic_value_print): Update.
7831
3eec3b05
TT
78322020-03-13 Tom Tromey <tom@tromey.com>
7833
7834 * valprint.c (generic_value_print_char): New function
7835 (generic_value_print): Use it.
7836
fdddfccb
TT
78372020-03-13 Tom Tromey <tom@tromey.com>
7838
7839 * valprint.c (generic_value_print_int): New function.
7840 (generic_value_print): Use it.
7841
6dde7521
TT
78422020-03-13 Tom Tromey <tom@tromey.com>
7843
7844 * valprint.c (generic_value_print_bool): New function.
7845 (generic_value_print): Use it.
7846
4112d2e6
TT
78472020-03-13 Tom Tromey <tom@tromey.com>
7848
7849 * valprint.c (generic_val_print_func): Simplify.
7850 (generic_val_print, generic_value_print): Update.
7851
65786af6
TT
78522020-03-13 Tom Tromey <tom@tromey.com>
7853
7854 * valprint.c (generic_val_print_flags): Remove.
7855 (generic_val_print, generic_value_print): Update.
7856 (val_print_type_code_flags): Add original_value parameter.
7857
40f3ce18
TT
78582020-03-13 Tom Tromey <tom@tromey.com>
7859
7860 * valprint.c (generic_val_print): Update.
7861 (generic_value_print): Update.
7862 * valprint.c (generic_val_print_enum): Don't call
7863 val_print_scalar_formatted.
7864
2a5b130b
TT
78652020-03-13 Tom Tromey <tom@tromey.com>
7866
7867 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7868 * valprint.c (generic_value_print_ptr): New function.
7869
abc66ce9
TT
78702020-03-13 Tom Tromey <tom@tromey.com>
7871
7872 * valprint.c (generic_value_print): Rewrite.
7873
07a32858
TT
78742020-03-13 Tom Tromey <tom@tromey.com>
7875
7876 * p-valprint.c (pascal_object_print_value_fields)
7877 (pascal_object_print_value): New functions.
7878
64d64d3a
TT
78792020-03-13 Tom Tromey <tom@tromey.com>
7880
7881 * p-valprint.c (pascal_value_print_inner): Rewrite.
7882
6a95a1f5
TT
78832020-03-13 Tom Tromey <tom@tromey.com>
7884
7885 * f-valprint.c (f_value_print_innner): Rewrite.
7886
59fcdac6
TT
78872020-03-13 Tom Tromey <tom@tromey.com>
7888
7889 * m2-valprint.c (m2_print_unbounded_array): New overload.
7890 (m2_print_unbounded_array): Update.
7891 (m2_print_array_contents): Take a struct value.
7892 (m2_value_print_inner): Rewrite.
7893
d133c3e1
TT
78942020-03-13 Tom Tromey <tom@tromey.com>
7895
7896 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7897 (d_value_print_inner): New function.
7898 * d-lang.h (d_value_print_inner): Declare.
7899 * d-lang.c (d_language_defn): Use d_value_print_inner.
7900
23b0f06b
TT
79012020-03-13 Tom Tromey <tom@tromey.com>
7902
7903 * go-valprint.c (go_value_print_inner): New function.
7904 * go-lang.h (go_value_print_inner): Declare.
7905 * go-lang.c (go_language_defn): Use go_value_print_inner.
7906
5f56f7cb
TT
79072020-03-13 Tom Tromey <tom@tromey.com>
7908
7909 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7910 API.
7911 (rust_val_print): Rewrite.
7912 (rust_value_print_inner): New function, from rust_val_print.
7913 (rust_language_defn): Use rust_value_print_inner.
7914
26792ee0
TT
79152020-03-13 Tom Tromey <tom@tromey.com>
7916
7917 * ada-valprint.c (ada_value_print_inner): New function.
7918 * ada-lang.h (ada_value_print_inner): Declare.
7919 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7920
24051bbe
TT
79212020-03-13 Tom Tromey <tom@tromey.com>
7922
7923 * f-valprint.c (f_value_print_innner): New function.
7924 * f-lang.h (f_value_print_innner): Declare.
7925 * f-lang.c (f_language_defn): Use f_value_print_innner.
7926
c0941be6
TT
79272020-03-13 Tom Tromey <tom@tromey.com>
7928
7929 * p-valprint.c (pascal_value_print_inner): New function.
7930 * p-lang.h (pascal_value_print_inner): Declare.
7931 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7932
62c4663d
TT
79332020-03-13 Tom Tromey <tom@tromey.com>
7934
7935 * m2-valprint.c (m2_value_print_inner): New function.
7936 * m2-lang.h (m2_value_print_inner): Declare.
7937 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7938
62182190
TT
79392020-03-13 Tom Tromey <tom@tromey.com>
7940
7941 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7942 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7943 * c-valprint.c (c_value_print_inner): New function.
7944 * c-lang.h (c_value_print_inner): Declare.
7945 * c-lang.c (c_language_defn, cplus_language_defn)
7946 (asm_language_defn, minimal_language_defn): Use
7947 c_value_print_inner.
7948
1e592a8a
TT
79492020-03-13 Tom Tromey <tom@tromey.com>
7950
7951 * p-valprint.c (pascal_object_print_value_fields): Now static.
7952 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7953
7fe471e9
TT
79542020-03-13 Tom Tromey <tom@tromey.com>
7955
7956 * c-valprint.c (c_val_print_array): Simplify.
7957
d121c6ce
TT
79582020-03-13 Tom Tromey <tom@tromey.com>
7959
7960 * valprint.c (value_print_array_elements): New function.
7961 * valprint.h (value_print_array_elements): Declare.
7962
4dba70ee
TT
79632020-03-13 Tom Tromey <tom@tromey.com>
7964
7965 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7966 * mips-tdep.c (mips_print_register): Use
7967 value_print_scalar_formatted.
7968
4f9ae810
TT
79692020-03-13 Tom Tromey <tom@tromey.com>
7970
7971 * valprint.h (value_print_scalar_formatted): Declare.
7972 * valprint.c (value_print_scalar_formatted): New function.
7973
156bfec9
TT
79742020-03-13 Tom Tromey <tom@tromey.com>
7975
7976 * valprint.h (generic_value_print): Declare.
7977 * valprint.c (generic_value_print): New function.
7978
2b4e573d
TT
79792020-03-13 Tom Tromey <tom@tromey.com>
7980
7981 * valprint.c (do_val_print): Call la_value_print_inner, if
7982 available.
7983 * rust-lang.c (rust_language_defn): Update.
7984 * p-lang.c (pascal_language_defn): Update.
7985 * opencl-lang.c (opencl_language_defn): Update.
7986 * objc-lang.c (objc_language_defn): Update.
7987 * m2-lang.c (m2_language_defn): Update.
7988 * language.h (struct language_defn) <la_value_print_inner>: New
7989 member.
7990 * language.c (unknown_language_defn, auto_language_defn): Update.
7991 * go-lang.c (go_language_defn): Update.
7992 * f-lang.c (f_language_defn): Update.
7993 * d-lang.c (d_language_defn): Update.
7994 * c-lang.c (c_language_defn, cplus_language_defn)
7995 (asm_language_defn, minimal_language_defn): Update.
7996 * ada-lang.c (ada_language_defn): Update.
7997
a1f6a07c
TT
79982020-03-13 Tom Tromey <tom@tromey.com>
7999
8000 * c-valprint.c (c_value_print): Use common_val_print.
8001
410cf315
TT
80022020-03-13 Tom Tromey <tom@tromey.com>
8003
8004 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8005
72a45c93
TT
80062020-03-13 Tom Tromey <tom@tromey.com>
8007
8008 * f-valprint.c (f77_print_array_1, f_val_print): Use
8009 common_val_print.
8010
040f66bd
TT
80112020-03-13 Tom Tromey <tom@tromey.com>
8012
8013 * riscv-tdep.c (riscv_print_one_register_info): Use
8014 common_val_print.
8015
a6e05a6c
TT
80162020-03-13 Tom Tromey <tom@tromey.com>
8017
8018 * mi/mi-main.c (output_register): Use common_val_print.
8019
3444c526
TT
80202020-03-13 Tom Tromey <tom@tromey.com>
8021
8022 * infcmd.c (default_print_one_register_info): Use
8023 common_val_print.
8024
c2a44efe
TT
80252020-03-13 Tom Tromey <tom@tromey.com>
8026
8027 * valprint.h (common_val_print_checked): Declare.
8028 * valprint.c (common_val_print_checked): New function.
8029 * stack.c (print_frame_arg): Use common_val_print_checked.
8030
b0c26e99
TT
80312020-03-13 Tom Tromey <tom@tromey.com>
8032
8033 * valprint.c (do_val_print): New function, from val_print.
8034 (val_print): Use do_val_print.
8035 (common_val_print): Use do_val_print.
8036
ce3acbe9
TT
80372020-03-13 Tom Tromey <tom@tromey.com>
8038
8039 * valprint.c (value_print): Use scoped_value_mark.
8040
96c7f873
TV
80412020-03-13 Tom de Vries <tdevries@suse.de>
8042
8043 PR symtab/25646
8044 * psymtab.c (partial_symtab::partial_symtab): Don't set
8045 globals_offset and statics_offset. Push element onto
8046 current_global_psymbols and current_static_psymbols stacks.
8047 (concat): New function.
8048 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8049 element from current_global_psymbols and current_static_psymbols
8050 stacks. Concat popped elements to global_psymbols and
8051 static_symbols.
8052 (add_psymbol_to_list): Use current_global_psymbols and
8053 current_static_psymbols stacks.
8054 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8055 current_static_psymbols fields.
8056
6ba0a321
CB
80572020-03-12 Christian Biesinger <cbiesinger@google.com>
8058
8059 * corelow.c (sniff_core_bfd): Remove.
8060 (class core_target) <m_core_vec>: Remove.
8061 (core_target::core_target): Update.
8062 (core_file_fns): Remove.
8063 (deprecated_add_core_fns): Remove.
8064 (default_core_sniffer): Remove.
8065 (sniff_core_bfd): Remove.
8066 (default_check_format): Remove.
8067 (gdb_check_format): Remove.
8068 (core_target_open): Update.
8069 (core_target::get_core_register_section): Update.
8070 (get_core_registers_cb): Update.
8071 (core_target::fetch_registers): Update.
8072 * gdbcore.h (struct core_fns): Remove.
8073 (deprecated_add_core_fns): Remove.
8074 (default_core_sniffer): Remove.
8075 (default_check_format): Remove.
8076
227031b2
TT
80772020-03-12 Tom Tromey <tom@tromey.com>
8078
8079 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8080 CORE_ADDR.
8081 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8082
53807e9f
TT
80832020-03-12 Tom Tromey <tom@tromey.com>
8084
8085 * remote.c (remote_target::download_tracepoint)
8086 (remote_target::enable_tracepoint)
8087 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8088 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8089 sprintf_vma.
8090
64f25102
TT
80912020-03-12 Tom Tromey <tom@tromey.com>
8092
8093 * symfile-mem.c: Update CORE_ADDR size assert.
8094
272cd5a3
SM
80952020-03-12 Simon Marchi <simon.marchi@efficios.com>
8096
8097 * selftest.m4: Move to gdbsupport/.
8098 * acinclude.m4: Update path to selftest.m4.
8099
74cd3f9d
SM
81002020-03-12 Simon Marchi <simon.marchi@efficios.com>
8101
8102 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8103 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8104 gdbarch-selfselftests.c and selftest-arch.c.
8105 (SUBDIR_UNITTESTS_OBS): Rename to...
8106 (SELFTESTS_OBS): ... this.
8107 (COMMON_SFILES): Remove disasm-selftests.c and
8108 gdbarch-selftests.c.
8109 * configure.ac: Don't add selftest-arch.{c,o} to
8110 CONFIG_{SRCS,OBS}.
8111 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8112 preprocessor conditions.
8113
db6878ac
SM
81142020-03-12 Simon Marchi <simon.marchi@efficios.com>
8115
8116 * configure.ac: Don't source bfd/development.sh.
8117 * selftest.m4: Modify comment.
8118 * configure: Re-generate.
8119
4d696a5c
SM
81202020-03-12 Simon Marchi <simon.marchi@efficios.com>
8121
8122 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8123 not "true" or "false".
8124 * configure: Re-generate.
8125
8dd8e1c7
CB
81262020-03-12 Christian Biesinger <cbiesinger@google.com>
8127
8128 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8129 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8130 renamed to arm_nbsd_supply_gregset.
8131 (fetch_register): Update to call arm_nbsd_supply_gregset.
8132 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8133 (arm_netbsd_nat_target::fetch_registers): Update.
8134 (fetch_elfcore_registers): Removed.
8135 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8136 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8137 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8138 not require NetBSD system headers.
8139 (arm_nbsd_regset): New struct.
8140 (arm_nbsd_iterate_over_regset_sections): New function.
8141 (arm_netbsd_init_abi_common): Updated to call
8142 set_gdbarch_iterate_over_regset_sections.
8143 * arm-nbsd-tdep.h: New file.
8144
dd69bf7a
KB
81452020-03-11 Kevin Buettner <kevinb@redhat.com>
8146
8147 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8148 recursion.
8149
a0761e34
SM
81502020-03-11 Simon Marchi <simon.marchi@efficios.com>
8151
8152 * configure: Re-generate.
8153
e7a82140
TT
81542020-03-11 Tom Tromey <tromey@adacore.com>
8155
8156 * ada-typeprint.c (print_choices): Fix comment.
8157
dcc050c8
AB
81582020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8159
8160 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8161 previous item in the list, when the list has no items.
8162
1c33af77
TV
81632020-03-11 Tom de Vries <tdevries@suse.de>
8164
8165 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8166 PROP_LOCLIST handling code.
8167
8c95582d
AB
81682020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8169
8170 * buildsym-legacy.c (record_line): Pass extra parameter to
8171 record_line.
8172 * buildsym.c (buildsym_compunit::record_line): Take an extra
8173 parameter, reduce duplication in the line table, and record the
8174 is_stmt flag in the line table.
8175 * buildsym.h (buildsym_compunit::record_line): Add extra
8176 parameter.
8177 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8178 non-statement lines.
8179 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8180 this to the symtab builder.
8181 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8182 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8183 through to dwarf_record_line_1.
8184 * infrun.c (process_event_stop_test): When stepping, don't stop at
8185 a non-statement instruction, and only refresh the step info when
8186 we land in the middle of a line's range. Also add an extra
8187 comment.
8188 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8189 field.
8190 * record-btrace.c (btrace_find_line_range): Only record lines
8191 marked as is-statement.
8192 * stack.c (frame_show_address): Show the frame address if we are
8193 in a non-statement sal.
8194 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8195 (maintenance_print_one_line_table): Print a header for the is_stmt
8196 column, and include is_stmt information in the output.
8197 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8198 preference to non-statements.
8199 (find_pcs_for_symtab_line): Prefer is-statement entries.
8200 (find_line_common): Likewise.
8201 * symtab.h (struct linetable_entry): Add is_stmt field.
8202 (struct symtab_and_line): Likewise.
8203 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8204 arranging the line table.
8205
e4003a34
TV
82062020-03-07 Tom de Vries <tdevries@suse.de>
8207
8208 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8209 DIE.
8210
e8932576
TT
82112020-03-07 Tom Tromey <tom@tromey.com>
8212
8213 * valops.c (value_literal_complex): Remove obsolete comment.
8214 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8215 comment.
8216
29734269
SM
82172020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8218
8219 * infrun.h: Forward-declare thread_info.
8220 (set_step_info): Add thread_info parameter, add doc.
8221 * infrun.c (set_step_info): Add thread_info parameter, move doc
8222 to header.
8223 * infrun.c (process_event_stop_test): Pass thread to
8224 set_step_info call.
8225 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8226 set_step_info.
8227 (prepare_one_step): Add thread_info parameter, pass it to
8228 set_step_frame and prepare_one_step (recursive) call.
8229 (step_1): Pass thread to prepare_one_step call.
8230 (step_command_fsm::should_stop): Pass thread to
8231 prepare_one_step.
8232 (until_next_fsm): Pass thread to set_step_frame call.
8233 (finish_command): Pass thread to set_step_info call.
8234
b7d64b29
HD
82352020-03-06 Hannes Domani <ssbssa@yahoo.de>
8236
8237 * windows-tdep.c (windows_solib_create_inferior_hook):
8238 Check if inferior is running.
8239
09f2921c
TV
82402020-03-06 Tom de Vries <tdevries@suse.de>
8241
8242 * NEWS: Fix "the the".
8243 * ctfread.c: Same.
8244
fd760e79
TV
82452020-03-06 Tom de Vries <tdevries@suse.de>
8246
8247 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8248
20ea4a60
AB
82492020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8250
8251 * .dir-locals.el: Add a comment referencing the other copies of
8252 this file.
8253
0afbabf0
JB
82542020-03-05 John Baldwin <jhb@FreeBSD.org>
8255
8256 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8257 psargs.
8258
842806cb
TBA
82592020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8260
8261 * .gitattributes: New file.
8262
be1e3d3e
TT
82632020-03-04 Tom Tromey <tom@tromey.com>
8264
8265 * symmisc.c (print_symbol_bcache_statistics)
8266 (print_objfile_statistics): Update.
8267 * symfile.c (allocate_symtab): Use intern.
8268 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8269 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8270 macro_cache>: Remove.
8271 <string_cache>: New member.
8272 (struct objfile) <intern>: New methods.
8273 * elfread.c (elf_symtab_read): Use intern.
8274 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8275 (dwarf2_compute_name, dwarf2_physname)
8276 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8277 names.
8278 (guess_partial_die_structure_name): Update.
8279 (partial_die_info::fixup): Intern name.
8280 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8281 name.
8282 (dwarf2_name): Intern name. Update.
8283 * buildsym.c (buildsym_compunit::get_macro_table): Use
8284 string_cache.
8285
4e7625fd
TT
82862020-03-04 Tom Tromey <tom@tromey.com>
8287
8288 * jit.c (bfd_open_from_target_memory): Make "target" const.
8289 * corefile.c (gnutarget): Now const.
8290 * gdbcore.h (gnutarget): Now const.
8291
46f9f931
HD
82922020-03-04 Hannes Domani <ssbssa@yahoo.de>
8293
8294 * NEWS: Mention support for WOW64 processes.
8295 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8296 (amd64_windows_segment_register_p): Remove static.
8297 (_initialize_amd64_windows_nat): Update.
8298 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8299 * i386-windows-nat.c (context_offset): Update.
8300 (i386_mappings): Rename and remove static.
8301 (i386_windows_segment_register_p): Remove static.
8302 (_initialize_i386_windows_nat): Update.
8303 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8304 (STATUS_WX86_SINGLE_STEP): New macro.
8305 (EnumProcessModulesEx): New macro.
8306 (Wow64SuspendThread): New macro.
8307 (Wow64GetThreadContext): New macro.
8308 (Wow64SetThreadContext): New macro.
8309 (Wow64GetThreadSelectorEntry): New macro.
8310 (windows_set_context_register_offsets): Add static.
8311 (windows_set_segment_register_p): Likewise.
8312 (windows_add_thread): Adapt for WOW64 processes.
8313 (windows_fetch_one_register): Likewise.
8314 (windows_nat_target::fetch_registers): Likewise.
8315 (windows_store_one_register): Likewise.
8316 (display_selector): Likewise.
8317 (display_selectors): Likewise.
8318 (handle_exception): Likewise.
8319 (windows_continue): Likewise.
8320 (windows_nat_target::resume): Likewise.
8321 (windows_add_all_dlls): Likewise.
8322 (do_initial_windows_stuff): Likewise.
8323 (windows_nat_target::attach): Likewise.
8324 (windows_get_exec_module_filename): Likewise.
8325 (windows_nat_target::create_inferior): Likewise.
8326 (windows_xfer_siginfo): Likewise.
8327 (_initialize_loadable): Initialize Wow64SuspendThread,
8328 Wow64GetThreadContext, Wow64SetThreadContext,
8329 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8330 * windows-nat.h (windows_set_context_register_offsets):
8331 Remove declaration.
8332 (windows_set_segment_register_p): Likewise.
8333 (i386_windows_segment_register_p): Add declaration.
8334 (amd64_windows_segment_register_p): Likewise.
8335
440cf44e
LM
83362020-03-04 Luis Machado <luis.machado@linaro.org>
8337
8338 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8339 in "info registers" for AArch64/ARM.
8340
8341 The change caused "info registers" to not print GPR's.
8342
8343 gdb/ChangeLog:
8344
8345 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8346
8347 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8348 when reg->group is empty and reggroup is not.
8349
1009d92f
TT
83502020-03-03 Tom Tromey <tromey@adacore.com>
8351
8352 * dwarf2/frame.c (struct dwarf2_frame_cache)
8353 <checked_tailcall_bottom, entry_cfa_sp_offset,
8354 entry_cfa_sp_offset_p>: Remove members.
8355 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8356 (dwarf2_frame_prev_register): Don't call
8357 dwarf2_tailcall_sniffer_first.
8358 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8359 * frame-unwind.c (add_unwinder): New fuction.
8360 (frame_unwind_init): Use it. Add tailcall unwinder.
8361
5e5d66b6
AB
83622020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8363 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8364
8365 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8366 value should be printed as true.
8367
584cf46d
HD
83682020-03-03 Hannes Domani <ssbssa@yahoo.de>
8369
8370 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8371 (windows_init_abi): Set and use windows_so_ops.
8372
7b973adc
SDJ
83732020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8374
8375 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8376 when verifying if dealing with a convenience variable.
8377
bb7b70ab
LM
83782020-03-03 Luis Machado <luis.machado@linaro.org>
8379
8380 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8381
9822cb57
SM
83822020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8383
8384 * infrun.c (gdbarch_supports_displaced_stepping): New.
8385 (use_displaced_stepping): Break up conditions in smaller pieces.
8386 Use gdbarch_supports_displaced_stepping.
8387 (displaced_step_prepare_throw): Use
8388 gdbarch_supports_displaced_stepping.
8389
63e163f2
AB
83902020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8391
8392 * NEWS: Mention new behaviour of the history filename.
8393 * top.c (write_history_p): Add comment.
8394 (show_write_history_p): Add header comment, give a different
8395 message when history writing is on, but the history filename is
8396 empty.
8397 (history_filename): Add comment.
8398 (history_filename_empty): New function.
8399 (show_history_filename): Add header comment, give a different
8400 message when the filename is empty.
8401 (init_history): Compare history_filename against nullptr, and only
8402 read history if the filename is not empty.
8403 (set_history_filename): Add header comment, and only make
8404 non-empty filenames absolute.
8405 (init_main): Make the filename argument to 'set history filename'
8406 optional.
8407
81b86b97
CB
84082020-03-02 Christian Biesinger <cbiesinger@google.com>
8409
8410 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8411 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8412 (fetch_fp_register): Update.
8413 (fetch_fp_regs): Update.
8414 (store_fp_register): Update.
8415 (store_fp_regs): Update.
8416 (arm_netbsd_nat_target::read_description): New function.
8417 (fetch_elfcore_registers): Update.
8418
24ed6739
AB
84192020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8420
8421 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8422 general_thread if the stop reply is missing a thread-id.
8423 (remote_target::process_stop_reply): Use the first non-exited
8424 thread if the target didn't pass a thread-id.
8425 * infrun.c (do_target_wait): Move call to
8426 switch_to_inferior_no_thread to ....
8427 (do_target_wait_1): ... here.
8428
a84bb2a0
JT
84292020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8430
8431 * debuginfod-support.c: Include defs.h first.
8432
658dadf0
TV
84332020-02-28 Tom de Vries <tdevries@suse.de>
8434
8435 * symfile.c (set_initial_language): Use default language for lookup.
8436
4ebe4877
SM
84372020-02-28 Simon Marchi <simon.marchi@efficios.com>
8438
8439 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8440 reader variable, pass `this` to read_cutu_die_from_dwo.
8441
e5da1139
AM
84422020-02-27 Aaron Merey <amerey@redhat.com>
8443
8444 * source.c (open_source_file): Check for nullptr when computing
8445 srcpath.
8446
317f7127
TT
84472020-02-27 Tom Tromey <tromey@adacore.com>
8448
8449 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8450 member.
8451 (dwarf2_add_field): Don't update nfields.
8452 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8453
3104d9ee
AB
84542020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8455
8456 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8457 abs.
8458
b83470bf
TT
84592020-02-26 Tom Tromey <tom@tromey.com>
8460
8461 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8462 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8463 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8464 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8465 per_cu_data.
8466
edfe0a0c
TT
84672020-02-26 Tom Tromey <tom@tromey.com>
8468
8469 * dwarf2/index-write.c (psym_index_map): Change type.
8470 (add_address_entry_worker, write_one_signatured_type)
8471 (recursively_count_psymbols, recursively_write_psymbols)
8472 (class debug_names, psyms_seen_size, write_gdbindex)
8473 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8474
0d79cdc4
AM
84752020-02-26 Aaron Merey <amerey@redhat.com>
8476
8477 * Makefile.in: Handle optional debuginfod support.
8478 * NEWS: Update.
8479 * README: Add --with-debuginfod summary.
8480 * config.in: Regenerate.
8481 * configure: Regenerate.
8482 * configure.ac: Handle optional debuginfod support.
8483 * debuginfod-support.c: debuginfod helper functions.
8484 * debuginfod-support.h: Ditto.
8485 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8486 summary.
8487 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8488 when a dwz file cannot be found.
8489 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8490 debuginfo file cannot be found.
8491 * source.c (open_source_file): Query debuginfod servers when a
8492 source file cannot be found.
8493 * top.c (print_gdb_configuration): Include
8494 --{with,without}-debuginfod in the output.
8495
b65ce565
JG
84962020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8497
8498 * thread.c (thr_try_catch_cmd): Print thread name.
8499
d4c9a4f8
SM
85002020-02-26 Simon Marchi <simon.marchi@efficios.com>
8501
8502 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8503 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8504 dwarf2_fetch_die_type_sect_off): Move to...
8505 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8506 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8507 dwarf2_fetch_die_type_sect_off): ... here.
8508 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8509 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8510 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8511
0dce4280
TV
85122020-02-26 Tom de Vries <tdevries@suse.de>
8513
8514 PR gdb/25603
8515 * symfile.c (set_initial_language): Exit-early if
8516 language_mode == language_mode_manual.
8517
450a1bfc
SM
85182020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8519
8520 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8521 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8522 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8523
9e80cfa1
AB
85242020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8525
8526 * gdbtypes.c (create_array_type_with_stride): Handle negative
8527 array strides.
8528 * valarith.c (value_subscripted_rvalue): Likewise.
8529
09624f1f
LM
85302020-02-25 Luis Machado <luis.machado@linaro.org>
8531
8532 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8533
8cb5117c
SM
85342020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8535
8536 * loc.h (dwarf2_get_die_type): Move to...
8537 * read.h (dwarf2_get_die_type): ... here.
8538 * read.c (dwarf2_get_die_type): Move doc to header.
8539
c325c44e
JB
85402020-02-25 Joel Brobecker <brobecker@adacore.com>
8541
8542 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8543 'gnulib/Makefile.in' to the list.
8544
4ac93832
TT
85452020-02-24 Tom Tromey <tom@tromey.com>
8546
8547 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8548 Remove.
8549 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8550 XOBNEWVEC.
8551
197400e8
TT
85522020-02-24 Tom Tromey <tom@tromey.com>
8553
8554 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8555 New method.
8556 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8557 (dw2_do_instantiate_symtab, dw2_get_file_names)
8558 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8559
76935768
TT
85602020-02-24 Tom Tromey <tom@tromey.com>
8561
8562 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8563 make_scoped_restore.
8564 (dwarf2_psymtab::read_symtab): Don't clear
8565 reading_partial_symbols.
8566
a88ef40d
TV
85672020-02-24 Tom de Vries <tdevries@suse.de>
8568
8569 PR gdb/25592
8570 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8571
c9af6521
TV
85722020-02-24 Tom de Vries <tdevries@suse.de>
8573
8574 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8575 commands layout next/prev/regs.
8576
5707a07a
TT
85772020-02-22 Tom Tromey <tom@tromey.com>
8578
8579 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8580 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8581
3b0fb49e
TT
85822020-02-22 Tom Tromey <tom@tromey.com>
8583
8584 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8585
283be8bf
TT
85862020-02-22 Tom Tromey <tom@tromey.com>
8587
8588 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8589 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8590 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8591 * tui/tui.c (_initialize_tui): Add usage text.
8592
ca793b96
TT
85932020-02-22 Tom Tromey <tom@tromey.com>
8594
8595 * tui/tui-win.c (tui_set_focus_command)
8596 (tui_set_win_height_command): Use error_no_arg.
8597 (_initialize_tui_win): Update help text.
8598 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8599
432b5c40
TT
86002020-02-22 Tom Tromey <tom@tromey.com>
8601
8602 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8603 * tui/tui-disasm.h (struct tui_disasm_window)
8604 <display_start_addr>: Declare.
8605 * tui/tui-source.h (struct tui_source_window)
8606 <display_start_addr>: Declare.
8607 * tui/tui-winsource.h (struct tui_source_window_base)
8608 <show_source_line, display_start_addr>: New methods.
8609 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8610 Rename and move to protected section.
8611 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8612 (tui_source_window_base::do_erase_source_content): Update.
8613 (tui_source_window_base::show_source_line): Now a method.
8614 (tui_source_window_base::show_source_content)
8615 (tui_source_window_base::tui_source_window_base)
8616 (tui_source_window_base::rerender)
8617 (tui_source_window_base::refill)
8618 (tui_source_window_base::do_scroll_horizontal)
8619 (tui_source_window_base::set_is_exec_point_at)
8620 (tui_source_window_base::update_breakpoint_info)
8621 (tui_source_window_base::update_exec_info): Update.
8622 * tui/tui-source.c (tui_source_window::set_contents)
8623 (tui_source_window::showing_source_p)
8624 (tui_source_window::do_scroll_vertical)
8625 (tui_source_window::location_matches_p)
8626 (tui_source_window::line_is_displayed): Update.
8627 (tui_source_window::display_start_addr): New method.
8628 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8629 (tui_disasm_window::do_scroll_vertical)
8630 (tui_disasm_window::location_matches_p): Update.
8631 (tui_disasm_window::display_start_addr): New method.
8632
01b1af32
TT
86332020-02-22 Tom Tromey <tom@tromey.com>
8634
8635 * NEWS: Add entry for gdb.register_window_type.
8636 * tui/tui-layout.h (window_factory): New typedef.
8637 (tui_register_window): Declare.
8638 * tui/tui-layout.c (saved_tui_windows): New global.
8639 (tui_apply_current_layout): Use it.
8640 (tui_register_window): New function.
8641 * python/python.c (do_start_initialization): Call
8642 gdbpy_initialize_tui.
8643 (python_GdbMethods): Add "register_window_type" function.
8644 * python/python-internal.h (gdbpy_register_tui_window)
8645 (gdbpy_initialize_tui): Declare.
8646 * python/py-tui.c: New file.
8647 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8648
fc96d20b
TT
86492020-02-22 Tom Tromey <tom@tromey.com>
8650
8651 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8652
935c78c0
TT
86532020-02-22 Tom Tromey <tom@tromey.com>
8654
8655 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8656 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8657 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8658 (tui_set_win_focus_to): Move from tui-win.c.
8659
0240c8f1
TT
86602020-02-22 Tom Tromey <tom@tromey.com>
8661
8662 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8663 functions.
8664 (known_window_types): New global.
8665 (tui_get_window_by_name): Reimplement.
8666 (initialize_known_windows): New function.
8667 (validate_window_name): Rewrite.
8668 (_initialize_tui_layout): Call initialize_known_windows.
8669
fdb01f0c
TT
86702020-02-22 Tom Tromey <tom@tromey.com>
8671
8672 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8673 Remove constants.
8674 * tui/tui-winsource.h (struct tui_source_window_base)
8675 <tui_source_window_base>: Remove parameter.
8676 * tui/tui-winsource.c
8677 (tui_source_window_base::tui_source_window_base): Remove
8678 parameter.
8679 (tui_source_window_base::refill): Update.
8680 * tui/tui-stack.h (struct tui_locator_window)
8681 <tui_locator_window>: Update.
8682 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8683 Default the constructor.
8684 * tui/tui-regs.h (struct tui_data_item_window)
8685 <tui_data_item_window>: Default the constructor.
8686 (struct tui_data_window) <tui_data_window>: Likewise.
8687 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8688 Default the constructor.
8689 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8690 Default the constructor.
8691 <type>: Remove.
8692 (struct tui_win_info) <tui_win_info>: Default the constructor.
8693 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8694 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8695 Default the constructor.
8696
865a5aec
TT
86972020-02-22 Tom Tromey <tom@tromey.com>
8698
8699 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8700 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8701 * tui/tui-win.c (tui_resize_all): Don't call
8702 tui_delete_invisible_windows.
8703 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8704 done.
8705 (tui_set_layout): Update.
8706 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8707 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8708 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8709
e098d18c
TT
87102020-02-22 Tom Tromey <tom@tromey.com>
8711
8712 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8713 correctly.
8714
eb9c8874
TT
87152020-02-22 Tom Tromey <tom@tromey.com>
8716
8717 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8718
7eed1a8e
TT
87192020-02-22 Tom Tromey <tom@tromey.com>
8720
8721 * tui/tui-winsource.h (struct tui_source_window_iterator)
8722 <inner_iterator>: New etytypedef.
8723 <tui_source_window_iterator>: Take "end" parameter.
8724 <tui_source_window_iterator>: Take iterator.
8725 <operator*, advance>: Update.
8726 <m_iter>: Change type.
8727 <m_end>: New field.
8728 (struct tui_source_windows) <begin, end>: Update.
8729 * tui/tui-layout.c (tui_windows): New global.
8730 (tui_apply_current_layout): Clear tui_windows.
8731 (tui_layout_window::apply): Update tui_windows.
8732 * tui/tui-data.h (tui_windows): Declare.
8733 (all_tui_windows): Now inline function.
8734 (class tui_window_iterator, struct all_tui_windows): Remove.
8735
7c043ba6
TT
87362020-02-22 Tom Tromey <tom@tromey.com>
8737
8738 PR tui/17850:
8739 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8740 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8741 "height" argument.
8742 (class tui_layout_window) <get_sizes>: Likewise.
8743 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8744 argument.
8745 <get_sizes>: Add "height" argument.
8746 <m_vertical>: New field.
8747 * tui/tui-layout.c (tui_layout_split::clone): Update.
8748 (tui_layout_split::get_sizes): Add "height" argument.
8749 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8750 (tui_new_layout_command): Parse "-horizontal".
8751 (_initialize_tui_layout): Update help string.
8752 (tui_layout_split::specification): Add "-horizontal" when needed.
8753 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8754 argument.
8755 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8756 New methods.
8757
6bc56648
TT
87582020-02-22 Tom Tromey <tom@tromey.com>
8759
8760 * tui/tui-layout.h (enum tui_adjust_result): New.
8761 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8762 (class tui_layout_window) <adjust_size>: Return
8763 tui_adjust_result. Rewrite.
8764 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8765 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8766
c22fef7e
TT
87672020-02-22 Tom Tromey <tom@tromey.com>
8768
8769 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8770 parameter and return types.
8771 (class tui_layout_base) <specification>: Add "depth".
8772 (class tui_layout_window) <specification>: Add "depth".
8773 (class tui_layout_split) <specification>: Add "depth".
8774 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8775 and return types.
8776 (tui_new_layout_command): Parse sub-layouts.
8777 (_initialize_tui_layout): Update help string.
8778 (tui_layout_window::specification): Add "depth".
8779 (add_layout_command): Update.
8780
ee325b61
TT
87812020-02-22 Tom Tromey <tom@tromey.com>
8782
8783 * NEWS: Add "tui new-layout" item.
8784 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8785 Add new-layout command to help text.
8786 (validate_window_name): New function.
8787 (tui_new_layout_command): New function.
8788 (_initialize_tui_layout): Register "new-layout".
8789 (tui_layout_window::specification): New method.
8790 (tui_layout_window::specification): New method.
8791 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8792 method.
8793 (class tui_layout_window) <specification>: New method.
8794 (class tui_layout_split) <specification>: New method.
8795
416eb92d
TT
87962020-02-22 Tom Tromey <tom@tromey.com>
8797
8798 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8799 * tui/tui-win.c (window_name_completer): Update comment.
8800 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8801 Declare method.
8802 (class tui_layout_window) <replace_window>: Likewise.
8803 (class tui_layout_split) <replace_window>: Likewise.
8804 (tui_set_layout): Don't declare.
8805 (tui_set_initial_layout): Declare function.
8806 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8807 (asm_regs_layout): New globals.
8808 (tui_current_layout, show_layout): Remove.
8809 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8810 (find_layout, tui_apply_layout): New function.
8811 (layout_completer): Remove.
8812 (tui_next_layout): Reimplement.
8813 (tui_next_layout_command): New function.
8814 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8815 (tui_regs_layout): Reimplement.
8816 (tui_regs_layout_command): New function.
8817 (extract_display_start_addr): Rewrite.
8818 (next_layout, prev_layout): Remove.
8819 (tui_layout_window::replace_window): New method.
8820 (tui_layout_split::replace_window): New method.
8821 (destroy_layout): New function.
8822 (layout_list): New global.
8823 (add_layout_command): New function.
8824 (initialize_layouts): Update.
8825 (tui_layout_command): New function.
8826 (_initialize_tui_layout): Install "layout" commands.
8827 * tui/tui-data.h (enum tui_layout_type): Remove.
8828 (tui_current_layout): Don't declare.
8829
0dbc2fc7
TT
88302020-02-22 Tom Tromey <tom@tromey.com>
8831
8832 * tui/tui-regs.c (tui_reg_layout): Remove.
8833 (tui_reg_command): Use tui_regs_layout.
8834 * tui/tui-layout.h (tui_reg_command): Declare.
8835 * tui/tui-layout.c (tui_reg_command): New function.
8836
5afe342e
TT
88372020-02-22 Tom Tromey <tom@tromey.com>
8838
8839 * tui/tui.c (tui_rl_delete_other_windows): Call
8840 tui_remove_some_windows.
8841 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8842 Declare method.
8843 (class tui_layout_window) <remove_windows>: New method.
8844 (class tui_layout_split) <remove_windows>: Declare.
8845 (tui_remove_some_windows): Declare.
8846 * tui/tui-layout.c (tui_remove_some_windows): New function.
8847 (tui_layout_split::remove_windows): New method.
8848
427326a8
TT
88492020-02-22 Tom Tromey <tom@tromey.com>
8850
8851 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8852 * tui/tui-layout.h (tui_next_layout): Declare.
8853 * tui/tui-layout.c (tui_next_layout): New function.
8854
3fe12b6d
TT
88552020-02-22 Tom Tromey <tom@tromey.com>
8856
8857 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8858 correct coordinates.
8859
59b8b5d2
TT
88602020-02-22 Tom Tromey <tom@tromey.com>
8861
8862 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8863 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8864 DATA_WIN case.
8865
2a3d458b
TT
88662020-02-22 Tom Tromey <tom@tromey.com>
8867
8868 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8869 TUI_DISASM_WIN, not tui_win_list.
8870
3f0cbb04
TT
88712020-02-22 Tom Tromey <tom@tromey.com>
8872
8873 * valprint.c (generic_val_print_enum_1)
8874 (val_print_type_code_flags): Style member names.
8875 * rust-lang.c (val_print_struct, rust_print_enum)
8876 (rust_print_struct_def, rust_internal_print_type): Style member
8877 names.
8878 * p-valprint.c (pascal_object_print_value_fields): Style member
8879 names. Only call fprintf_symbol_filtered for static members.
8880 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8881 * f-valprint.c (f_val_print): Style member names.
8882 * f-typeprint.c (f_type_print_base): Style member names.
8883 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8884 call fprintf_symbol_filtered for static members.
8885 (cp_print_class_member): Style member names.
8886 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8887 member names.
8888 * ada-valprint.c (ada_print_scalar): Style enum names.
8889 (ada_val_print_enum): Likewise.
8890 * ada-typeprint.c (print_enum_type): Style enum names.
8891
d4d947ae
TT
88922020-02-21 Tom Tromey <tom@tromey.com>
8893
8894 * psympriv.h (struct partial_symtab): Update comment.
8895
e94e944b
TT
88962020-02-21 Tom Tromey <tromey@adacore.com>
8897
8898 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8899 type is CORE_ADDR.
8900
1eb73179
TV
89012020-02-21 Tom de Vries <tdevries@suse.de>
8902
8903 PR gdb/25534
8904 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8905 if dependencies[i]->user != NULL.
8906
4f180d53
AT
89072020-02-21 Ali Tamur <tamur@google.com>
8908
8909 * dwarf2/read.c (dwarf2_name): Add null check.
8910
22b6cd70
TT
89112020-02-20 Tom Tromey <tom@tromey.com>
8912
8913 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8914 ">=", in binary search.
8915 (dwarf2_find_containing_comp_unit): New overload.
8916 (run_test): New self-test.
8917 (_initialize_dwarf2_read): Register new test.
8918
bd0cf5a6
NC
89192020-02-20 Nelson Chu <nelson.chu@sifive.com>
8920
8921 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8922 * riscv-tdep.h: Likewise.
8923 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8924 rv32-only CSR.
8925 * features/riscv/64bit-csr.xml: Regenerated.
8926
3f702acd
SDJ
89272020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8928 Tom Tromey <tom@tromey.com>
8929
8930 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8931 of 'fputc_unfiltered'.
8932 (putchar_unfiltered): Call 'fputc_unfiltered'.
8933 (fputc_unfiltered): Call 'fputs_unfiltered'.
8934
d13c7322
AB
89352020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8936
8937 * config.in: Regenerate.
8938 * configure: Regenerate.
8939 * configure.ac: Add --with-python-libdir option.
8940 * main.c: Use WITH_PYTHON_LIBDIR.
8941
869d8950
TT
89422020-02-19 Tom Tromey <tom@tromey.com>
8943
8944 * symtab.c (general_symbol_info::compute_and_set_names): Use
8945 obstack_strndup. Simplify call to symbol_set_demangled_name.
8946
298e9637
SM
89472020-02-19 Simon Marchi <simon.marchi@efficios.com>
8948
8949 * dwarf2/read.c (allocate_signatured_type_table,
8950 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8951 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8952 Remove objfile parameter, update all callers.
8953
08410482
DE
89542020-02-19 Doug Evans <dje@google.com>
8955
8956 PR rust/25535
8957 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8958 rust_enum_variant calculation.
8959
dfdeeca1
TT
89602020-02-19 Tom Tromey <tromey@adacore.com>
8961
8962 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8963
2ef5453b
TT
89642020-02-19 Tom Tromey <tromey@adacore.com>
8965
8966 * ada-lang.c (cache_symbol): Use obstack_strdup.
8967
9f1528a1
AB
89682020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8969
8970 * configure: Regenerate.
8971
d3c22fa8
TT
89722020-02-19 Tom Tromey <tromey@adacore.com>
8973
8974 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8975 NULL check.
8976
bf84f706
MR
89772020-02-19 Maciej W. Rozycki <macro@wdc.com>
8978
8979 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8980
d1c9b20f
AB
89812020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8982
8983 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8984 if GDBSERVER is not defined.
8985 (riscv_tdesc_cache): Likewise, also store const target_desc.
8986 (STATIC_IN_GDB): Define.
8987 (riscv_create_target_description): Update declaration with
8988 STATIC_IN_GDB.
8989 (riscv_lookup_target_description): New function, only define if
8990 GDBSERVER is not defined.
8991 * arch/riscv.h (riscv_create_target_description): Declare only
8992 when GDBSERVER is defined.
8993 (riscv_lookup_target_description): New declaration when GDBSERVER
8994 is not defined.
8995 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8996 (riscv_linux_read_features): ...this, and return
8997 riscv_gdbarch_features instead of target_desc.
8998 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8999 (riscv_linux_read_description): Rename to...
9000 (riscv_linux_read_features): ...this.
9001 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9002 Update to use riscv_gdbarch_features and
9003 riscv_lookup_target_description.
9004 * riscv-tdep.c (riscv_find_default_target_description): Use
9005 riscv_lookup_target_description instead of
9006 riscv_create_target_description.
9007
373d7ac0
SM
90082020-02-18 Simon Marchi <simon.marchi@efficios.com>
9009
9010 * valprint.c (generic_val_print_enum_1): When printing a flag
9011 enum with value 0 and there is no enumerator with value 0, print
9012 just "0" instead of "(unknown: 0x0)".
9013
b29a2df0
SM
90142020-02-18 Simon Marchi <simon.marchi@efficios.com>
9015
9016 * valprint.c (generic_val_print_enum_1): Print unknown part of
9017 flag enum in hex.
9018
6740f0cc
SM
90192020-02-18 Simon Marchi <simon.marchi@efficios.com>
9020
9021 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9022 flag enums to contain duplicate enumerators.
9023 * valprint.c (generic_val_print_enum_1): Update comment.
9024
edd45eb0
SM
90252020-02-18 Simon Marchi <simon.marchi@efficios.com>
9026
9027 * dwarf2/read.c: Include "count-one-bits.h".
9028 (update_enumeration_type_from_children): If an enumerator has
9029 multiple bits set, don't treat the enumeration as a "flag enum".
9030 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9031 of flag enums have 0 or 1 bit set.
9032
6d0cf446
BE
90332020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9034
9035 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9036 conversion.
9037 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9038 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9039 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9040 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9041 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9042
7001c1b7
SM
90432020-02-18 Simon Marchi <simon.marchi@efficios.com>
9044
9045 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9046
fdb61c6c
SM
90472020-02-14 Simon Marchi <simon.marchi@efficios.com>
9048
9049 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9050 displaced_step_closure_up.
9051 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9052 (struct displaced_step_closure_up):
9053 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9054 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9055 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9056 Likewise.
9057 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9058 * gdbarch.c, gdbarch.h: Re-generate.
9059 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9060 displaced_step_closure_up.
9061 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9062 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9063 * infrun.h (displaced_step_closure_up): New type alias.
9064 (struct displaced_step_inferior_state) <step_closure>: Change
9065 type to displaced_step_closure_up.
9066 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9067 displaced_step_closure_up.
9068 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9069
a4a38eb4
TT
90702020-02-14 Tom Tromey <tom@tromey.com>
9071
9072 * minidebug.c (gnu_debug_key): New global.
9073 (find_separate_debug_file_in_section): Use it.
9074
e8217e61
SM
90752020-02-14 Simon Marchi <simon.marchi@efficios.com>
9076
9077 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9078 std::unique_ptr.
9079 * gdbarch.c: Re-generate.
9080 * gdbarch.h: Re-generate.
9081 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9082 change.
9083 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9084 type to std::unique_ptr.
9085 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9086 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9087 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9088 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9089 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9090 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9091 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9092 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9093 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9094
d8d83535
SM
90952020-02-14 Simon Marchi <simon.marchi@efficios.com>
9096
9097 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9098 std::unique_ptr.
9099 (displaced_step_clear): Rename to...
9100 (displaced_step_reset): ... this. Just call displaced->reset ().
9101 (displaced_step_clear_cleanup): Rename to...
9102 (displaced_step_reset_cleanup): ... this.
9103 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9104 (displaced_step_fixup): Likewise.
9105 (resume_1): Likewise.
9106 (handle_inferior_event): Restore child's memory before calling
9107 displaced_step_fixup on the parent.
9108 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9109 to std::unique_ptr.
9110 <step_closure>: Change type to std::unique_ptr.
9111
5f661e03
SM
91122020-02-14 Simon Marchi <simon.marchi@efficios.com>
9113
9114 * arm-tdep.c: Include count-one-bits.h.
9115 (cleanup_block_store_pc): Use count_one_bits.
9116 (cleanup_block_load_pc): Use count_one_bits.
9117 (arm_copy_block_xfer): Use count_one_bits.
9118 (thumb2_copy_block_xfer): Use count_one_bits.
9119 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9120 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9121 (thumb_get_next_pcs_raw): Use count_one_bits.
9122 (arm_get_next_pcs_raw): Use count_one_bits_l.
9123 * arch/arm.c (bitcount): Remove.
9124 * arch/arm.h (bitcount): Remove.
9125
8084e579
TT
91262020-02-14 Tom Tromey <tromey@adacore.com>
9127
9128 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9129 Update.
9130 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9131 * dwarf2/loc.c (call_site_find_chain_1): Return
9132 unique_xmalloc_ptr.
9133 (call_site_find_chain): Likewise.
9134
258bf0ee
RB
91352020-02-14 Richard Biener <rguenther@suse.de>
9136
9137 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9138 on expression with division operators.
9139
f98a8458
AKS
91402020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9141
9142 * MAINTAINERS (Write After Approval): Adding myself.
9143
d1437c0e
TT
91442020-02-12 Tom Tromey <tom@tromey.com>
9145
9146 * event-loop.c (event_data, gdb_event, event_handler_func):
9147 Remove.
9148
3d4560f7
TT
91492020-02-12 Tom Tromey <tom@tromey.com>
9150
9151 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9152 (dwarf2_frame_objfile_data): Add comment.
9153 (find_comp_unit, set_comp_unit): New functions.
9154 (dwarf2_frame_find_fde): Use find_comp_unit.
9155 (dwarf2_build_frame_info): Use set_comp_unit.
9156
21982304
TT
91572020-02-12 Tom Tromey <tom@tromey.com>
9158
9159 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9160 (comp_unit): Don't initialize objfile.
9161 (execute_cfa_program): Add text_offset parameter.
9162 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9163 (dwarf2_frame_cache): Update.
9164 (dwarf2_build_frame_info): Don't set "objfile" member.
9165
4debb237
TT
91662020-02-12 Tom Tromey <tom@tromey.com>
9167
9168 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9169 (decode_frame_entry): Likewise.
9170 (dwarf2_build_frame_info): Update.
9171
0d404d44
TT
91722020-02-12 Tom Tromey <tom@tromey.com>
9173
9174 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9175 (decode_frame_entry_1): Use the comp_unit obstack.
9176
a7a3ae5c
TT
91772020-02-12 Tom Tromey <tom@tromey.com>
9178
9179 * dwarf2/frame.c (struct comp_unit): Add initializers and
9180 constructor.
9181 (dwarf2_frame_objfile_data): Store a comp_unit.
9182 (dwarf2_frame_find_fde): Update.
9183 (dwarf2_build_frame_info): Use "new".
9184
a9d65418
TT
91852020-02-12 Tom Tromey <tom@tromey.com>
9186
9187 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9188 (dwarf2_fde_table): Typedef for std::vector.
9189 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9190 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9191 (decode_frame_entry): Update.
9192 (dwarf2_build_frame_info): Use "new".
9193
7559c217
CB
91942020-02-12 Christian Biesinger <cbiesinger@google.com>
9195
9196 * arm-tdep.c (arm_gdbarch_init): Update.
9197 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9198 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9199 have_neon, is_m>: Change to bool.
9200
aeefc73c
CB
92012020-02-12 Christian Biesinger <cbiesinger@google.com>
9202
9203 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9204
d27b8e5f
TT
92052020-02-12 Tom Tromey <tom@tromey.com>
9206
9207 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9208
cd5900f3
HD
92092020-02-12 Hannes Domani <ssbssa@yahoo.de>
9210
9211 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9212 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9213
f056b22b
TT
92142020-02-11 Tom Tromey <tom@tromey.com>
9215
9216 * psymtab.h: Update comment.
9217
f92ff6b5
TT
92182020-02-11 Tom Tromey <tom@tromey.com>
9219
9220 * gdb_obstack.h (struct auto_obstack): Use
9221 DISABLE_COPY_AND_ASSIGN.
9222
3fd6912b
TT
92232020-02-11 Tom Tromey <tom@tromey.com>
9224
9225 * dwarf2/frame.h (struct objfile): Don't forward declare.
9226
69ed9b74
CB
92272020-02-11 Christian Biesinger <cbiesinger@google.com>
9228
9229 * cris-tdep.c (cris_supply_gregset): Change signature to match
9230 what struct regset expects.
9231 (cris_regset): New struct.
9232 (fetch_core_registers): Remove.
9233 (cris_iterate_over_regset_sections): New function.
9234 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9235 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9236
bda874f6
CB
92372020-02-11 Christian Biesinger <cbiesinger@google.com>
9238
9239 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9240 registers.
9241
754e1564
CB
92422020-02-11 Christian Biesinger <cbiesinger@google.com>
9243
9244 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9245
8ddd8e0e
SM
92462020-02-11 Simon Marchi <simon.marchi@efficios.com>
9247
9248 * configure: Re-generate.
9249
898e7f60
SM
92502020-02-11 Simon Marchi <simon.marchi@efficios.com>
9251
9252 * configure: Re-generate.
9253
58df732b
SM
92542020-02-11 Simon Marchi <simon.marchi@efficios.com>
9255
9256 * acinclude: Update warning.m4 path.
9257 * warning.m4: Move to gdbsupport.
9258
da5bd37e
TT
92592020-02-11 Tom Tromey <tromey@adacore.com>
9260
9261 * remote.c (remote_console_output): Update.
9262 * printcmd.c (printf_command): Update.
9263 * event-loop.c (gdb_wait_for_event): Update.
9264 * linux-nat.c (sigchld_handler): Update.
9265 * remote-sim.c (gdb_os_write_stdout): Update.
9266 (gdb_os_flush_stdout): Update.
9267 (gdb_os_flush_stderr): Update.
9268 (gdb_os_write_stderr): Update.
9269 * exceptions.c (print_exception): Update.
9270 * remote-fileio.c (remote_fileio_func_read): Update.
9271 (remote_fileio_func_write): Update.
9272 * tui/tui.c (tui_enable): Update.
9273 * tui/tui-interp.c (tui_interp::init): Update.
9274 * utils.c (init_page_info): Update.
9275 (putchar_unfiltered, fputc_unfiltered): Update.
9276 (gdb_flush): Update.
9277 (emit_style_escape): Update.
9278 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9279 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9280 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9281 (stderr_file::write): Update.
9282 (stderr_file::puts): Update.
9283 * ui-file.h (ui_file_isatty, ui_file_write)
9284 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9285 (ui_file_puts): Don't declare.
9286
85f0dd3c
TV
92872020-02-10 Tom de Vries <tdevries@suse.de>
9288
9289 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9290 sentinel to char *.
9291
2e927613
TV
92922020-02-09 Tom de Vries <tdevries@suse.de>
9293
9294 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9295 filename if it matches "<artificial>".
9296
6bafc845
HD
92972020-02-09 Hannes Domani <ssbssa@yahoo.de>
9298
9299 * windows-tdep.c (struct enum_value_name): New struct.
9300 (create_enum): New function.
9301 (windows_get_siginfo_type): Create and use enum types.
9302
7928d571
HD
93032020-02-09 Hannes Domani <ssbssa@yahoo.de>
9304
9305 * NEWS: Mention $_siginfo support for Windows.
9306 * windows-nat.c (handle_exception): Set siginfo_er.
9307 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9308 (windows_xfer_siginfo): New function.
9309 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9310 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9311 (init_windows_gdbarch_data): New function.
9312 (get_windows_gdbarch_data): New function.
9313 (windows_get_siginfo_type): New function.
9314 (windows_init_abi): Register windows_get_siginfo_type.
9315 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9316
6751ebae
TT
93172020-02-08 Tom Tromey <tom@tromey.com>
9318
9319 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9320 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9321 <keep>: Declare method.
9322 <m_keep>: Remove member.
9323 <~cutu_reader>: Remove.
9324 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9325 (cutu_reader::cutu_reader): Update.
9326 (cutu_reader::keep): Rename from ~cutu_reader.
9327 (process_psymtab_comp_unit, build_type_psymtabs_1)
9328 (process_skeletonless_type_unit, load_partial_comp_unit)
9329 (load_full_comp_unit, dwarf2_read_addr_index)
9330 (read_signatured_type): Update.
9331
135f5437
TT
93322020-02-08 Tom Tromey <tom@tromey.com>
9333
9334 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9335 "want_partial_unit" parameter.
9336 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9337 Inline check for DW_TAG_partial_unit.
9338 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9339
9f66ff1c
TT
93402020-02-08 Tom Tromey <tom@tromey.com>
9341
9342 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9343 read.c.
9344 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9345 read.c.
9346
c8a7a66f
TT
93472020-02-08 Tom Tromey <tom@tromey.com>
9348
9349 * dwarf2/read.c (read_address): Move to comp-unit.c.
9350 (dwarf2_rnglists_process, dwarf2_ranges_process)
9351 (read_attribute_value, dwarf_decode_lines_1)
9352 (var_decode_location, decode_locdesc): Update.
9353 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9354 read.c. Remove "cu" parameter.
9355 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9356 method.
9357
8266302d
TT
93582020-02-08 Tom Tromey <tom@tromey.com>
9359
9360 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9361 (read_indirect_line_string): Update.
9362 * dwarf2/comp-unit.c (read_offset): Remove.
9363 (read_comp_unit_head): Update.
9364 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9365 method.
9366 (read_offset): Don't declare.
9367
4057dfde
TT
93682020-02-08 Tom Tromey <tom@tromey.com>
9369
9370 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9371 * dwarf2/read.c (struct comp_unit_head): Move to
9372 dwarf2/comp-unit.h.
9373 (enum class rcuh_kind): Move to comp-unit.h.
9374 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9375 (read_comp_unit_head, error_check_comp_unit_head)
9376 (read_and_check_comp_unit_head): Move to comp-unit.c.
9377 (read_offset, dwarf_unit_type_name): Likewise.
9378 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9379 (cutu_reader::cutu_reader, read_call_site_scope)
9380 (find_partial_die, follow_die_offset): Update.
9381 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9382
24aa364d
TT
93832020-02-08 Tom Tromey <tom@tromey.com>
9384
9385 * dwarf2/read.c (read_offset_1): Move to leb.c.
9386 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9387 (dwarf_decode_macro_bytes): Update.
9388 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9389 * dwarf2/leb.h (read_offset): Declare.
9390
2c7d5afc
TT
93912020-02-08 Tom Tromey <tom@tromey.com>
9392
9393 * dwarf2/read.c (dwarf2_section_size): Remove.
9394 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9395 Update.
9396 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9397
4075cb26
TT
93982020-02-08 Tom Tromey <tom@tromey.com>
9399
9400 * dwarf2/read.c (read_initial_length): Move to leb.c.
9401 * dwarf2/leb.h (read_initial_length): Declare.
9402 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9403 handle_nonstd parameter.
9404 * dwarf2/frame.c (read_initial_length): Remove.
9405 (decode_frame_entry_1): Update.
9406
09ba997f
TT
94072020-02-08 Tom Tromey <tom@tromey.com>
9408
9409 * dwarf2/loc.c (dwarf2_find_location_expression)
9410 (dwarf_evaluate_loc_desc::get_tls_address)
9411 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9412 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9413 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9414 (dwarf2_compile_property_to_c)
9415 (dwarf2_loc_desc_get_symbol_read_needs)
9416 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9417 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9418 (loclist_describe_location, loclist_tracepoint_var_ref)
9419 (loclist_generate_c_location): Update.
9420 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9421 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9422 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9423 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9424 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9425 (dwarf2_per_cu_data::addr_size)
9426 (dwarf2_per_cu_data::ref_addr_size)
9427 (dwarf2_per_cu_data::text_offset)
9428 (dwarf2_per_cu_data::addr_type): Now methods.
9429 (per_cu_header_read_in): Make per_cu "const".
9430 (dwarf2_version): Remove.
9431 (dwarf2_per_cu_data::int_type): Now a method.
9432 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9433 (set_die_type, read_array_type, read_subrange_index_type)
9434 (read_tag_string_type, read_subrange_type): Update.
9435 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9436 offset_size, ref_addr_size, text_offset, addr_type, version,
9437 objfile, int_type, addr_sized_int_type>: Declare methods.
9438
96c738c0
TT
94392020-02-08 Tom Tromey <tom@tromey.com>
9440
9441 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9442 Move earlier.
9443
8fdd972c
TT
94442020-02-08 Tom Tromey <tom@tromey.com>
9445
9446 * dwarf2/read.h (dwarf_line_debug): Declare.
9447 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9448 * dwarf2/read.c: Move line_header code to new files.
9449 (dwarf_line_debug): No longer static.
9450 * dwarf2/line-header.c: New file.
9451 * dwarf2/line-header.h: New file.
9452
03075812
TT
94532020-02-08 Tom Tromey <tom@tromey.com>
9454
9455 * dwarf2/read.c (struct line_header) <file_full_name,
9456 file_file_name>: Return unique_xmalloc_ptr.
9457 (line_header::file_file_name): Update.
9458 (line_header::file_full_name): Update.
9459 (dw2_get_file_names_reader): Update.
9460 (macro_start_file): Update.
9461
bb822404
TT
94622020-02-08 Tom Tromey <tom@tromey.com>
9463
9464 * dwarf2/read.c (struct line_header) <file_full_name,
9465 file_file_name>: Declare methods.
9466 (dw2_get_file_names_reader): Update.
9467 (file_file_name): Now a method.
9468 (file_full_name): Likewise.
9469 (macro_start_file): Update.
9470
009b64fc
TT
94712020-02-08 Tom Tromey <tom@tromey.com>
9472
9473 * dwarf2/read.c (dwarf_always_disassemble)
9474 (show_dwarf_always_disassemble): Move to loc.c.
9475 (_initialize_dwarf2_read): Move "always-disassemble" registration
9476 to loc.c.
9477 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9478 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9479 static.
9480 (show_dwarf_always_disassemble): Move from read.c.
9481 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9482
5895093f
TT
94832020-02-08 Tom Tromey <tom@tromey.com>
9484
9485 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9486 (create_quick_file_names_table): Return htab_up.
9487 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9488 Update.
9489 * dwarf2/read.h (struct dwarf2_per_objfile)
9490 <quick_file_names_table>: Now htab_up.
9491
b3b32279
TT
94922020-02-08 Tom Tromey <tom@tromey.com>
9493
9494 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9495
1d33d811
TT
94962020-02-08 Tom Tromey <tom@tromey.com>
9497
9498 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9499 Rewrite.
9500 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9501 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9502 (abbrev_table::abbrev_table): No longer inline.
9503 (ABBREV_HASH_SIZE): Remove.
9504 (abbrev_table::m_abbrevs): Now an htab_up.
9505
86de1d91
TT
95062020-02-08 Tom Tromey <tom@tromey.com>
9507
9508 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9509 (cutu_reader): Update.
9510 (build_type_psymtabs_1): Update.
9511 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9512 (abbrev_table::alloc_abbrev): Update.
9513 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9514 (abbrev_table::read): New static method, renamed from
9515 abbrev_table_read_table.
9516 (abbrev_table::alloc_abbrev)
9517 (abbrev_table::add_abbrev): Now private.
9518 (abbrev_table::abbrev_table): Now private.
9519 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9520
0335378b
TT
95212020-02-08 Tom Tromey <tom@tromey.com>
9522
9523 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9524 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9525 htab_up.
9526
48b490f2
TT
95272020-02-08 Tom Tromey <tom@tromey.com>
9528
9529 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9530 htab_up.
9531 (lookup_dwo_unit_in_dwp): Update.
9532 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9533 on obstack.
9534
bc68fb19
TT
95352020-02-08 Tom Tromey <tom@tromey.com>
9536
9537 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9538 obstack.
9539
d15acc42
TT
95402020-02-08 Tom Tromey <tom@tromey.com>
9541
9542 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9543 line_header_hash.
9544 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9545 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9546 Change type to htab_up.
9547
eaa5fa8b
TT
95482020-02-08 Tom Tromey <tom@tromey.com>
9549
9550 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9551 htab_up. Don't allocate on obstack.
9552 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9553 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9554 Change type to htab_up.
9555
b0b6a987
TT
95562020-02-08 Tom Tromey <tom@tromey.com>
9557
9558 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9559 Change type to htab_up.
9560 * dwarf2/read.c (create_signatured_type_table_from_index)
9561 (create_signatured_type_table_from_debug_names)
9562 (create_all_type_units, add_type_unit)
9563 (lookup_dwo_signatured_type, lookup_signatured_type)
9564 (process_skeletonless_type_unit): Update.
9565 (create_debug_type_hash_table, create_debug_types_hash_table):
9566 Change type of types_htab.
9567 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9568 htab_up. Don't allocate on obstack.
9569 (create_cus_hash_table): Change type of cus_htab parameter.
9570 (struct dwo_file) <cus, tus>: Now htab_up.
9571 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9572 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9573 (queue_and_load_all_dwo_tus): Update.
9574 * dwarf2/index-write.c (write_gdbindex): Update.
9575 (write_debug_names): Update.
9576
39856def
TT
95772020-02-08 Tom Tromey <tom@tromey.com>
9578
9579 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9580 dwarf2/read.c. Remove "next" member. Add constructor ntad
9581 destructor.
9582 (struct dwarf2_per_objfile) <queue>: New member.
9583 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9584 dwarf2/read.h.
9585 (dwarf2_queue, dwarf2_queue_tail): Remove.
9586 (class dwarf2_queue_guard): Add parameter to constructor. Use
9587 DISABLE_COPY_AND_ASSIGN.
9588 <m_per_objfile>: New member.
9589 <~dwarf2_queue_guard>: Rewrite.
9590 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9591 Update.
9592 (~dwarf2_queue_item): New.
9593
3e225074
TT
95942020-02-08 Tom Tromey <tom@tromey.com>
9595
9596 * dwarf2/read.c (struct die_info) <has_children>: New member.
9597 (dw2_get_file_names_reader): Remove has_children.
9598 (dw2_get_file_names): Update.
9599 (read_cutu_die_from_dwo): Remove has_children.
9600 (cutu_reader::init_tu_and_read_dwo_dies)
9601 (cutu_reader::cutu_reader): Update.
9602 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9603 Remove has_children.
9604 (build_type_psymtabs_1, process_skeletonless_type_unit)
9605 (load_partial_comp_unit, load_full_comp_unit): Update.
9606 (create_dwo_cu_reader): Remove has_children.
9607 (create_cus_hash_table, read_die_and_children): Update.
9608 (read_full_die_1,read_full_die): Remove has_children.
9609 (read_signatured_type): Update.
9610 (class cutu_reader) <has_children>: Remove.
9611
82ca8957
TT
96122020-02-08 Tom Tromey <tom@tromey.com>
9613
9614 * dwarf2/expr.c: Rename from dwarf2expr.c.
9615 * dwarf2/expr.h: Rename from dwarf2expr.h.
9616 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9617 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9618 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9619 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9620 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9621 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9622 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9623 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9624 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9625 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9626 * dwarf2/loc.c: Rename from dwarf2loc.c.
9627 * dwarf2/loc.h: Rename from dwarf2loc.h.
9628 * dwarf2/read.c: Rename from dwarf2read.c.
9629 * dwarf2/read.h: Rename from dwarf2read.h.
9630 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9631 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9632 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9633 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9634 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9635 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9636 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9637 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9638 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9639 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9640 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9641 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9642 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9643 Update.
9644 * Makefile.in (COMMON_SFILES): Update.
9645 (HFILES_NO_SRCDIR): Update.
9646
9e35d499
TT
96472020-02-08 Tom Tromey <tom@tromey.com>
9648
9649 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9650 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9651
1eba2311
TT
96522020-02-08 Tom Tromey <tom@tromey.com>
9653
9654 * dwarf2read.h (struct die_info): Don't declare.
9655
e41c2da2
TT
96562020-02-08 Tom Tromey <tom@tromey.com>
9657
9658 * dwarf2read.h (die_info_ptr): Remove typedef.
9659
4fc6c0d5
TT
96602020-02-08 Tom Tromey <tom@tromey.com>
9661
9662 * dwarf2read.c (read_call_site_scope)
9663 (handle_data_member_location, dwarf2_add_member_fn)
9664 (mark_common_block_symbol_computed, read_common_block)
9665 (attr_to_dynamic_prop, partial_die_info::read)
9666 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9667 (dwarf2_symbol_mark_computed, set_die_type): Update.
9668 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9669 method.
9670 (attr_form_is_block): Don't declare.
9671 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9672
cd6c91b4
TT
96732020-02-08 Tom Tromey <tom@tromey.com>
9674
9675 * dwarf2read.c (dwarf2_find_base_address, )
9676 (read_call_site_scope, rust_containing_type)
9677 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9678 (handle_data_member_location, dwarf2_add_member_fn)
9679 (get_alignment, read_structure_type, process_structure_scope)
9680 (mark_common_block_symbol_computed, read_common_block)
9681 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9682 (partial_die_info::read, read_attribute_value, new_symbol)
9683 (lookup_die_type, dwarf2_get_ref_die_offset)
9684 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9685 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9686 (dwarf2_symbol_mark_computed): Update.
9687 * dwarf2/attribute.h (struct attribute) <value_as_address,
9688 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9689 methods.
9690 (value_as_address, attr_form_is_section_offset)
9691 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9692 * dwarf2/attribute.c (attribute::value_as_address)
9693 (attribute::form_is_section_offset, attribute::form_is_constant)
9694 (attribute::form_is_ref): Now methods.
9695
162dce55
TT
96962020-02-08 Tom Tromey <tom@tromey.com>
9697
9698 * dwarf2read.c (struct attribute, DW_STRING)
9699 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9700 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9701 (attr_form_is_block, attr_form_is_section_offset)
9702 (attr_form_is_constant, attr_form_is_ref): Move.
9703 * dwarf2/attribute.h: New file.
9704 * dwarf2/attribute.c: New file, from dwarf2read.c.
9705 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9706
3054dd54
TT
97072020-02-08 Tom Tromey <tom@tromey.com>
9708
9709 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9710 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9711 Move.
9712 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9713 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9714 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9715 abbrev.c.
9716 * dwarf2/abbrev.h: New file.
9717 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9718 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9719
96b79293
TT
97202020-02-08 Tom Tromey <tom@tromey.com>
9721
9722 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9723 (dwarf2_section_size, dwarf2_get_section_info)
9724 (create_signatured_type_table_from_debug_names)
9725 (create_addrmap_from_aranges, read_debug_names_from_section)
9726 (get_gdb_index_contents_from_section, read_comp_unit_head)
9727 (error_check_comp_unit_head, read_abbrev_offset)
9728 (create_debug_type_hash_table, init_cu_die_reader)
9729 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9730 (read_comp_units_from_section, create_cus_hash_table)
9731 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9732 (create_dwp_v2_section, dwarf2_rnglists_process)
9733 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9734 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9735 (read_indirect_string_from_dwz, read_addr_index_1)
9736 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9737 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9738 (fill_in_loclist_baton): Update.
9739 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9740 get_containing_section, get_bfd_owner, get_bfd_section,
9741 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9742 (dwarf2_read_section, get_section_name, get_section_file_name)
9743 (get_containing_section, get_section_bfd_owner)
9744 (get_section_bfd_section, get_section_name, get_section_file_name)
9745 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9746 declare.
9747 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9748 (dwarf2_section_info::get_bfd_owner)
9749 (dwarf2_section_info::get_bfd_section)
9750 (dwarf2_section_info::get_name)
9751 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9752 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9753 (dwarf2_section_info::read): Now methods.
9754 * dwarf-index-write.c (class debug_names): Update.
9755
2c86cff9
TT
97562020-02-08 Tom Tromey <tom@tromey.com>
9757
9758 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9759 Move to dwarf2/section.h.
9760 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9761 (get_section_bfd_section, get_section_name)
9762 (get_section_file_name, get_section_id, get_section_flags)
9763 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9764 dwarf2/section.c.
9765 * dwarf2/section.h: New file.
9766 * dwarf2/section.c: New file, from dwarf2read.c.
9767 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9768
f4382c45
TT
97692020-02-08 Tom Tromey <tom@tromey.com>
9770
9771 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9772 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9773 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9774 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9775 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9776 * dwarf2/leb.h: New file, from dwarf2read.c.
9777 * dwarf2/leb.c: New file, from dwarf2read.c.
9778 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9779 Remove.
9780 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9781 (COMMON_SFILES): Add dwarf2/leb.c.
9782
01840b7a
JB
97832020-02-08 Joel Brobecker <brobecker@adacore.com>
9784
9785 GDB 9.1 released.
9786
dfcb27e4
IB
97872020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9788
9789 PR gdb/25190:
aac66a4c
SM
9790 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9791 * gdb/remote.c (remote_console_output): Update.
9792 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9793 (ui_file_puts): ...this.
9794 * gdb/ui-file.h (ui_file_puts): Add declaration.
9795 * gdb/utils.c (emit_style_escape): Update.
9796 (flush_wrap_buffer): Update.
9797 (fputs_maybe_filtered): Update.
9798 (fputs_unfiltered): Add function.
dfcb27e4 9799
faa17681
IB
98002020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9801
aac66a4c
SM
9802 * gdb/event-loop.c (gdb_wait_for_event): Update.
9803 * gdb/printcmd.c (printf_command): Update.
9804 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9805 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9806 (gdb_os_flush_stderr): Update.
9807 * gdb/remote.c (remote_console_output): Update.
9808 * gdb/ui-file.c (gdb_flush): Rename to...
9809 (ui_file_flush): ...this.
9810 (stderr_file::write): Update.
9811 (stderr_file::puts): Update.
9812 * gdb/ui-file.h (gdb_flush): Rename to...
9813 (ui_file_flush): ...this.
9814 * gdb/utils.c (gdb_flush): Add function.
9815 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9816
5abbbe1d
TT
98172020-02-07 Tom Tromey <tromey@adacore.com>
9818
9819 PR breakpoints/24915:
9820 * source.c (find_and_open_source): Do not check basenames_may_differ.
9821
919adfe8
TT
98222020-02-07 Tom Tromey <tom@tromey.com>
9823
9824 * README: Update gdbserver documentation.
9825 * gdbserver: Move to top level.
9826 * configure.tgt (build_gdbserver): Remove.
9827 * configure.ac: Remove --enable-gdbserver.
9828 * configure: Rebuild.
9829 * Makefile.in (distclean): Don't mention gdbserver.
9830
1d5d29e7
SV
98312020-02-06 Shahab Vahedi <shahab@synopsys.com>
9832
9833 * source-cache.c (source_cache::ensure): Surround
9834 get_plain_source_lines with a try/catch.
9835 (source_cache::get_line_charpos): Get rid of try/catch
9836 and only check for the return value of "ensure".
9837 * tui/tui-source.c (tui_source_window::set_contents):
9838 Simplify "nlines" calculation.
9839
6eb1129c
SV
98402020-02-06 Shahab Vahedi <shahab@synopsys.com>
9841
9842 * MAINTAINERS (Write After Approval): Add myself.
9843
c6a42d11
CB
98442020-02-05 Christian Biesinger <cbiesinger@google.com>
9845
9846 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9847 function call.
9848
c8ecdda6
CB
98492020-02-05 Christian Biesinger <cbiesinger@google.com>
9850
9851 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9852
f6480e70
MR
98532020-02-05 Maciej W. Rozycki <macro@wdc.com>
9854
9855 * nat/riscv-linux-tdesc.h: New file.
9856 * nat/riscv-linux-tdesc.c: New file, taking code from...
9857 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9858 ... here.
9859 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9860 NATDEPFILES.
9861
dcc9fbc6
AB
98622020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9863
9864 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9865 we don't set the fake simulator ptid to the null_ptid.
9866
719546c4
SM
98672020-02-03 Simon Marchi <simon.marchi@efficios.com>
9868
9869 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9870 * gdbthread.h (class thread_info) <resumed>: Likewise.
9871 * infrun.c (resume_1): Likewise.
9872 (proceed): Likewise.
9873 (infrun_thread_stop_requested): Likewise.
9874 (stop_all_threads): Likewise.
9875 (handle_inferior_event): Likewise.
9876 (restart_threads): Likewise.
9877 (finish_step_over): Likewise.
9878 (keep_going_stepped_thread): Likewise.
9879 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9880 (linux_handle_extended_wait): Likewise.
9881 * record-btrace.c (get_thread_current_frame_id): Likewise.
9882 * record-full.c (record_full_wait_1): Likewise.
9883 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9884 * target.c (target_resume): Likewise.
9885 * thread.c (set_running_thread): Likewise.
9886
e409c542
AKS
98872020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9888
9889 * f-valprint.c (f77_print_array_1): Changed datatype of index
9890 variable to LONGEST from int to enable it to contain bound
9891 values correctly.
9892
ee98c0da
MR
98932020-02-03 Maciej W. Rozycki <macro@wdc.com>
9894
9895 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9896 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9897 offsets according to FLEN determined.
9898 (riscv_linux_nat_target::read_description): Determine FLEN
9899 dynamically.
9900 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9901 according to FLEN determined.
9902 (riscv_linux_nat_target::store_registers): Likewise.
9903
aa66aac4
SV
99042020-02-01 Shahab Vahedi <shahab@synopsys.com>
9905
9906 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9907 when reg->group is empty and reggroup is not.
9908
fd9faca8
TT
99092020-01-31 Tom Tromey <tromey@adacore.com>
9910
9911 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9912 Call beneath target's mourn_inferior after unpushing.
9913
42330a68
AB
99142020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9915
9916 PR tui/9765
9917 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9918 have enough lines to fill the screen, still return the lowest
9919 address we found.
9920
7a27a45b
AB
99212020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9922
9923 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9924 '-', '<', and '>' commands.
9925
c47f70e2
PA
99262020-01-29 Pedro Alves <palves@redhat.com>
9927 Sergio Durigan Junior <sergiodj@redhat.com>
9928
9929 * infcmd.c (construct_inferior_arguments): Assert that
9930 'argc' is greater than 0.
9931
5133a315
LM
99322020-01-29 Luis Machado <luis.machado@linaro.org>
9933
9934 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9935 (BRK_INSN_MASK): Define to 0xd4200000.
9936 (aarch64_program_breakpoint_here_p): New function.
9937 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9938 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9939 breakpoint.c.
9940 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9941 breakpoint.h
9942 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9943 call gdbarch_program_breakpoint_here_p.
9944 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9945 default_program_breakpoint_here_p, changed return type to bool and
9946 simplified.
9947 * breakpoint.h (program_breakpoint_here): Moved prototype to
9948 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9949 return type to bool.
9950 * gdbarch.c: Regenerate.
9951 * gdbarch.h: Regenerate.
9952 * gdbarch.sh (program_breakpoint_here_p): New method.
9953 * infrun.c (handle_signal_stop): Call
9954 gdbarch_program_breakpoint_here_p.
9955
168f8c6b
TT
99562020-01-26 Tom Tromey <tom@tromey.com>
9957
9958 * ctfread.c (struct ctf_fp_info): Reindent.
9959 (_initialize_ctfread): Remove.
9960
128a391f
TT
99612020-01-26 Tom Tromey <tom@tromey.com>
9962
9963 * psymtab.c (partial_map_expand_apply)
9964 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9965 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9966 (psym_print_stats, psym_expand_symtabs_for_function)
9967 (psym_map_symbol_filenames, psym_map_matching_symbols)
9968 (psym_expand_symtabs_matching)
9969 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9970 (maintenance_check_psymtabs): Use new methods.
9971 * psympriv.h (struct partial_symtab) <readin_p,
9972 get_compunit_symtab>: New methods.
9973 <readin, compunit_symtab>: Remove members.
9974 (struct standard_psymtab): New.
9975 (struct legacy_psymtab): Derive from standard_psymtab.
9976 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9977 standard_psymtab.
9978 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9979
0494dbec
TT
99802020-01-26 Tom Tromey <tom@tromey.com>
9981
9982 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9983 read_dependencies. Add assert.
9984 * psymtab.c (partial_symtab::read_dependencies): New method.
9985 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9986 method.
9987 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9988 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9989 read_dependencies.
9990 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9991 Add assert.
9992
8566b89b
TT
99932020-01-26 Tom Tromey <tom@tromey.com>
9994
9995 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9996 Call expand_psymtab.
9997 (xcoff_read_symtab): Call expand_psymtab.
9998 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9999 legacy_expand_psymtab.
10000 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10001 method.
10002 (struct legacy_psymtab) <expand_psymtab>: Implement.
10003 <legacy_expand_psymtab>: New member.
10004 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10005 (parse_partial_symbols): Set legacy_expand_psymtab.
10006 (psymtab_to_symtab_1): Change argument order. Call
10007 expand_psymtab.
10008 (new_psymtab): Set legacy_expand_psymtab.
10009 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10010 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10011 expand_psymtab.
10012 (dwarf2_psymtab::expand_psymtab): Rename from
10013 psymtab_to_symtab_1. Call expand_psymtab.
10014 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10015 (dbx_end_psymtab): Likewise.
10016 (dbx_psymtab_to_symtab_1): Change argument order. Call
10017 expand_psymtab.
10018 (dbx_read_symtab): Call expand_psymtab.
10019 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10020 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10021 (ctf_psymtab::read_symtab): Call expand_psymtab.
10022
077cbab2
TT
100232020-01-26 Tom Tromey <tom@tromey.com>
10024
10025 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10026 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10027 messages.
10028 * mdebugread.c (mdebug_read_symtab): Remove prints.
10029 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10030 assert.
10031 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10032
891813be
TT
100332020-01-26 Tom Tromey <tom@tromey.com>
10034
10035 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10036 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10037 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10038 legacy_symtab.
10039 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10040 * psymtab.c (psymtab_to_symtab): Call method.
10041 (dump_psymtab): Update.
10042 * psympriv.h (struct partial_symtab): Add virtual destructor.
10043 <read_symtab>: New method.
10044 (struct legacy_symtab): New.
10045 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10046 (struct pst_map) <pst>: Now a legacy_psymtab.
10047 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10048 (new_psymtab): Use legacy_psymtab.
10049 * dwarf2read.h (struct dwarf2_psymtab): New.
10050 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10051 * dwarf2read.c (dwarf2_create_include_psymtab)
10052 (dwarf2_build_include_psymtabs, create_type_unit_group)
10053 (create_partial_symtab, process_psymtab_comp_unit_reader)
10054 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10055 (set_partial_user): Use dwarf2_psymtab.
10056 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10057 (psymtab_to_symtab_1, process_full_comp_unit)
10058 (process_full_type_unit, dwarf2_ranges_read)
10059 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10060 (dwarf_decode_lines): Use dwarf2_psymtab.
10061 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10062 (add_address_entry_worker, write_one_signatured_type)
10063 (recursively_count_psymbols, recursively_write_psymbols)
10064 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10065 (write_debug_names): Likewise.
10066 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10067 <pst>: Now a legacy_psymtab.
10068 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10069 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10070 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10071 * ctfread.c (struct ctf_psymtab): New.
10072 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10073 ctf_psymtab.
10074 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10075 (create_partial_symtab): Return a ctf_psymtab.
10076 (scan_partial_symbols): Update.
10077
c3693a1d
TT
100782020-01-26 Tom Tromey <tom@tromey.com>
10079
10080 * xcoffread.c (xcoff_start_psymtab): Use new.
10081 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10082 renamed from start_psymtab_common.
10083 * psympriv.h (struct partial_symtab): Add new constructor.
10084 (start_psymtab_common): Don't declare.
10085 * mdebugread.c (parse_partial_symbols): Use new.
10086 * dwarf2read.c (create_partial_symtab): Use new.
10087 * dbxread.c (start_psymtab): Use new.
10088 * ctfread.c (create_partial_symtab): Use new.
10089
32caafd0
TT
100902020-01-26 Tom Tromey <tom@tromey.com>
10091
10092 * xcoffread.c (xcoff_end_psymtab): Use new.
10093 * psymtab.c (start_psymtab_common): Use new.
10094 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10095 Update.
10096 * psympriv.h (struct partial_symtab): Add parameters to
10097 constructor. Don't inline.
10098 (allocate_psymtab): Don't declare.
10099 * mdebugread.c (new_psymtab): Use new.
10100 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10101 * dbxread.c (dbx_end_psymtab): Use new.
10102
abaa2f23
TT
101032020-01-26 Tom Tromey <tom@tromey.com>
10104
10105 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10106 allocate_psymtab. Update documentation.
10107 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10108 allocate_psymtab. Do not use new.
10109 (allocate_psymtab): Use new. Update.
10110
6d94535f
TT
101112020-01-26 Tom Tromey <tom@tromey.com>
10112
10113 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10114 * psymtab.c (psym_print_stats): Update.
10115 * psympriv.h (struct partial_symtab) <readin,
10116 psymtabs_addrmap_supported, anonymous>: Now bool.
10117 * mdebugread.c (psymtab_to_symtab_1): Update.
10118 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10119 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10120 (process_full_comp_unit, process_full_type_unit): Update.
10121 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10122 * ctfread.c (psymtab_to_symtab): Update.
10123
6f17252b
TT
101242020-01-26 Tom Tromey <tom@tromey.com>
10125
10126 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10127 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10128 * psymtab.c (psymtab_storage): Delete psymtabs.
10129 (psymtab_storage::allocate_psymtab): Use new.
10130 (psymtab_storage::discard_psymtab): Use delete.
10131 * psympriv.h (struct partial_symtab): Add constructor and
10132 initializers.
10133
f6f1cebc
TT
101342020-01-26 Tom Tromey <tom@tromey.com>
10135
10136 * machoread.c: Do not include psympriv.h.
10137
e47e48f6
PW
101382020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10139
10140 * NEWS: Mention the new option and the set/show commands.
10141
a2fedca9
PW
101422020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10143
10144 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10145 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10146 (validate_exec_file): New variables, enums, functions.
10147 (exec_file_locate_attach, print_section_info): Style the filenames.
10148 (_initialize_exec): Install show_exec_file_mismatch_command and
10149 set_exec_file_mismatch_command.
10150 * gdbcore.h (validate_exec_file): Declare.
10151 * infcmd.c (attach_command): Call validate_exec_file.
10152 * remote.c ( remote_target::remote_add_inferior): Likewise.
10153
7ffa82e1
AB
101542020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10155
10156 * frame.c (find_frame_sal): Move call to get_next_frame into more
10157 inner scope.
10158 * inline-frame.c (inilne_state) <inline_state>: Update argument
10159 types.
10160 (inilne_state) <skipped_symbol>: Rename to...
10161 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10162 (skip_inline_frames): Build vector of skipped symbols and use this
10163 to reate the inline_state.
10164 (inline_skipped_symbol): Add a comment and some assertions, fetch
10165 skipped symbol from the list.
10166
3d92a3e3
AB
101672020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10168
10169 * buildsym.c (lte_is_less_than): Delete.
10170 (buildsym_compunit::end_symtab_with_blockvector): Create local
10171 lambda function to sort line table entries, and use
10172 std::stable_sort instead of std::sort.
10173 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10174 markers when looking for a previous line.
10175
94a72be7
AB
101762020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10177
10178 * dwarf2read.c (lnp_state_machine::record_line): Include
10179 end_sequence parameter in debug print out. Record the line if we
10180 are at an end_sequence marker even if it's not the start of a
10181 statement.
10182 * symmisc.c (maintenance_print_one_line_table): Print end of
10183 sequence markers with 'END' not '0'.
10184
53af73bf
PA
101852020-01-24 Pedro Alves <palves@redhat.com>
10186
10187 PR gdb/25410
10188 * thread.c (scoped_restore_current_thread::restore): Use
10189 switch_to_inferior_no_thread.
10190 * exec.c: Include "progspace-and-thread.h".
10191 (add_target_sections, remove_target_sections):
10192 scoped_restore_current_pspace_and_thread instead of
10193 scoped_restore_current_thread.
10194 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10195 and aspace to the inferior before calling clone_program_space.
10196 Remove stale comment.
10197
3050c6f4
CB
101982020-01-24 Christian Biesinger <cbiesinger@google.com>
10199
10200 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10201 (arm_netbsd_nat_target::fetch_registers): ...this.
10202 (arm_nbsd_nat_target::store_registers): Rename to...
10203 (arm_netbsd_nat_target::store_registers): ...this.
10204
73685c7e
CB
102052020-01-24 Christian Biesinger <cbiesinger@google.com>
10206
10207 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10208 register_t.
10209
89203d40
CB
102102020-01-24 Christian Biesinger <cbiesinger@google.com>
10211
10212 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10213 Update comment.
10214 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10215 Likewise.
10216 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10217 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10218 the correct replacement (iterate_over_regset_sections).
10219 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10220 Update comment.
10221
1ba1ac88
AB
102222020-01-24 Graham Markall <graham.markall@embecosm.com>
10223
10224 PR gdb/23718
10225 * gdb/python/python.c (execute_gdb_command): Call
10226 async_enable_stdin in catch block.
10227
f3364a6d
AB
102282020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10229
10230 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10231 SWITCH_THRU_ALL_UIS.
10232
733d0a67
AB
102332020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10234
10235 PR tui/9765
10236 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10237 comment, add extra parameter, and update to store previous symbol
10238 when appropriate.
10239 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10240 add extra parameter.
10241 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10242 remove unneeded parameter, add try/catch around gdb_print_insn,
10243 rewrite to add items to asm_lines vector.
10244 (tui_find_backward_disassembly_start_address): New function.
10245 (tui_find_disassembly_address): Updated throughout.
10246 (tui_disasm_window::set_contents): Update for changes to
10247 tui_disassemble.
10248 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10249 number of lines to scroll.
10250
b3b3bada
SM
102512020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10252
10253 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10254 (SECT_OFF_DATA): Likewise.
10255 (SECT_OFF_RODATA): Likewise.
10256 (SECT_OFF_TEXT): Likewise.
10257 (SECT_OFF_BSS): Likewise.
10258 (struct objfile) <text_section_offset, data_section_offset>: New
10259 methods.
10260 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10261 objfile::text_section_offset.
10262 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10263 * coffread.c (coff_symtab_read): Likewise.
10264 (enter_linenos): Likewise.
10265 (process_coff_symbol): Likewise.
10266 * ctfread.c (get_objfile_text_range): Likewise.
10267 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10268 Use objfile::data_section_offset.
10269 * dwarf2-frame.c (execute_cfa_program): Use
10270 objfile::text_section_offset.
10271 (dwarf2_frame_find_fde): Likewise.
10272 * dwarf2read.c (create_addrmap_from_index): Likewise.
10273 (create_addrmap_from_aranges): Likewise.
10274 (dw2_find_pc_sect_compunit_symtab): Likewise.
10275 (process_psymtab_comp_unit_reader): Likewise.
10276 (add_partial_symbol): Likewise.
10277 (add_partial_subprogram): Likewise.
10278 (process_full_comp_unit): Likewise.
10279 (read_file_scope): Likewise.
10280 (read_func_scope): Likewise.
10281 (read_lexical_block_scope): Likewise.
10282 (read_call_site_scope): Likewise.
10283 (dwarf2_rnglists_process): Likewise.
10284 (dwarf2_ranges_process): Likewise.
10285 (dwarf2_ranges_read): Likewise.
10286 (dwarf_decode_lines_1): Likewise.
10287 (new_symbol): Likewise.
10288 (dwarf2_fetch_die_loc_sect_off): Likewise.
10289 (dwarf2_per_cu_text_offset): Likewise.
10290 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10291 * hppa-tdep.c (read_unwind_info): Likewise.
10292 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10293 * psympriv.h (struct partial_symtab): Likewise.
10294 * psymtab.c (find_pc_sect_psymtab): Likewise.
10295 * solib-svr4.c (enable_break): Likewise.
10296 * stap-probe.c (relocate_address): Use
10297 objfile::data_section_offset.
10298 * xcoffread.c (enter_line_range): Use
10299 objfile::text_section_offset.
10300 (read_xcoff_symtab): Likewise.
10301
ab53f382
SM
103022020-01-23 Simon Marchi <simon.marchi@efficios.com>
10303
10304 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10305 declaration to narrower scopes.
10306
e7eee665
SM
103072020-01-23 Simon Marchi <simon.marchi@efficios.com>
10308
10309 * darwin-nat.h (struct darwin_exception_msg, enum
10310 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10311 Move up.
10312 (class darwin_nat_target) <wait_1, check_new_threads,
10313 decode_exception_message, decode_message, stop_inferior,
10314 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10315 * darwin-nat.c (darwin_check_new_threads): Rename to...
10316 (darwin_nat_target::check_new_threads): ... this.
10317 (darwin_suspend_inferior_it): Remove.
10318 (darwin_decode_exception_message): Rename to...
10319 (darwin_nat_target::decode_exception_message): ... this.
10320 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10321 (darwin_decode_message): Rename to...
10322 (darwin_nat_target::decode_message): ... this.
10323 (cancel_breakpoint): Rename to...
10324 (darwin_nat_target::cancel_breakpoint): ... this.
10325 (darwin_wait): Rename to...
10326 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10327 instead of iterate_over_inferiors.
10328 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10329 (darwin_stop_inferior): Rename to...
10330 (darwin_nat_target::stop_inferior): ... this.
10331 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10332 (darwin_init_thread_list): Rename to...
10333 (darwin_nat_target::init_thread_list): ... this.
10334 (darwin_ptrace_him): Rename to...
10335 (darwin_nat_target::ptrace_him): ... this.
10336 (darwin_nat_target::create_inferior): Pass lambda function to
10337 fork_inferior.
10338 (darwin_nat_target::detach): Call stop_inferior instead of
10339 darwin_stop_inferior.
10340 * fork-inferior.h (fork_inferior): Change init_trace_fun
10341 parameter to gdb::function_view.
10342 * fork-inferior.c (fork_inferior): Likewise.
10343
c162ed3e
HD
103442020-01-23 Hannes Domani <ssbssa@yahoo.de>
10345
10346 * i386-cygwin-tdep.c (core_process_module_section): Update.
10347 * windows-nat.c (struct lm_info_windows): Add text_offset.
10348 (windows_xfer_shared_libraries): Update.
10349 * windows-tdep.c (windows_xfer_shared_library):
10350 Add text_offset_cached argument.
10351 * windows-tdep.h (windows_xfer_shared_library): Update.
10352
a1237872
SM
103532020-01-21 Simon Marchi <simon.marchi@efficios.com>
10354
10355 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10356
b3ee6dd9
SM
103572020-01-21 Simon Marchi <simon.marchi@efficios.com>
10358
10359 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10360 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10361 replace with range-based for.
10362 (gdbsim_interrupt_inferior): Remove.
10363 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10364 with a range-based for. Inline code from
10365 gdbsim_interrupt_inferior.
10366
f9fac3c8
SM
103672020-01-21 Simon Marchi <simon.marchi@efficios.com>
10368
10369 * infrun.c (proceed): Fix indentation.
10370
f6474de9
TT
103712020-01-21 Tom Tromey <tromey@adacore.com>
10372
10373 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10374 * python/python.c (python_extension_ops): Update.
10375 (gdbpy_colorize): New function.
10376 * python/lib/gdb/__init__.py (colorize): New function.
10377 * extension.h (ext_lang_colorize): Declare.
10378 * extension.c (ext_lang_colorize): New function.
10379 * extension-priv.h (struct extension_language_ops) <colorize>: New
10380 member.
10381 * cli/cli-style.c (_initialize_cli_style): Update help text.
10382
f0c702d4
LM
103832020-01-21 Luis Machado <luis.machado@linaro.org>
10384
10385 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10386 <cond>: Change type to bool.
10387 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10388 (aarch64_displaced_step_cb): Likewise.
10389 (aarch64_displaced_step_tb): Likewise.
10390
1ab139e5
LM
103912020-01-21 Luis Machado <luis.machado@linaro.org>
10392
10393 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10394 output.
10395
0c271889
LM
103962020-01-21 Luis Machado <luis.machado@linaro.org>
10397
10398 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10399 <pc_adjust>: Adjust the documentation.
10400 (aarch64_displaced_step_fixup): Check if PC really moved before
10401 adjusting it.
10402
4d89c1c7
TT
104032020-01-19 Tom Tromey <tom@tromey.com>
10404
10405 * disasm.c (~gdb_disassembler): New destructor.
10406 (gdb_buffered_insn_length): Call disassemble_free_target.
10407 * disasm.h (class gdb_disassembler): Declare destructor. Use
10408 DISABLE_COPY_AND_ASSIGN.
10409
c0ab21c2
TT
104102020-01-19 Tom Tromey <tom@tromey.com>
10411
10412 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10413 (die_reader_func_ftype): Remove.
10414 (cutu_reader): New class.
10415 (dw2_get_file_names_reader): Remove "data" parameter.
10416 (dw2_get_file_names): Use cutu_reader.
10417 (create_debug_type_hash_table): Update.
10418 (read_cutu_die_from_dwo): Update comment.
10419 (lookup_dwo_unit): Add dwo_name parameter.
10420 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10421 die_reader_func_ftype and data parameters.
10422 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10423 Remove die_reader_func_ftype and data parameters.
10424 (~cutu_reader): New; from init_cutu_and_read_dies.
10425 (cutu_reader::cutu_reader): Rename from
10426 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10427 and data parameters.
10428 (init_cutu_and_read_dies_simple): Remove.
10429 (struct process_psymtab_comp_unit_data): Remove.
10430 (process_psymtab_comp_unit_reader): Remove data parameter; add
10431 want_partial_unit and pretend_language parameters.
10432 (process_psymtab_comp_unit): Use cutu_reader.
10433 (build_type_psymtabs_reader): Remove data parameter.
10434 (build_type_psymtabs_1): Use cutu_reader.
10435 (process_skeletonless_type_unit): Likewise.
10436 (load_partial_comp_unit_reader): Remove.
10437 (load_partial_comp_unit): Use cutu_reader.
10438 (load_full_comp_unit_reader): Remove.
10439 (load_full_comp_unit): Use cutu_reader.
10440 (struct create_dwo_cu_data): Remove.
10441 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10442 dwo_unit parameters.
10443 (create_cus_hash_table): Use cutu_reader.
10444 (struct dwarf2_read_addr_index_data): Remove.
10445 (dwarf2_read_addr_index_reader): Remove.
10446 (dwarf2_read_addr_index): Use cutu_reader.
10447 (read_signatured_type_reader): Remove.
10448 (read_signatured_type): Use cutu_reader.
10449
45bbae5c
TT
104502020-01-19 Tom Tromey <tom@tromey.com>
10451
10452 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10453 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10454 (tui_wrefresh): Declare.
10455 * tui/tui-wingeneral.c (suppress_output): New global.
10456 (tui_suppress_output, ~tui_suppress_output): New constructor and
10457 destructor.
10458 (tui_wrefresh): New function.
10459 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10460 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10461 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10462 method.
10463 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10464 tui_wrefresh.
10465 (tui_data_window::no_refresh): New method.
10466 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10467 (tui_reg_command): Use tui_suppress_output
10468 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10469 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10470 method.
10471 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10472
4f13c1c0
TT
104732020-01-19 Tom Tromey <tom@tromey.com>
10474
10475 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10476 Handle case where symtab is null.
10477
fa47e446
SM
104782020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10479
10480 * linux-fork.c (one_fork_p): Simplify.
10481
26f42329
SM
104822020-01-17 Simon Marchi <simon.marchi@efficios.com>
10483
10484 * top.c (struct qt_args): Remove.
10485 (kill_or_detach): Change return type to void, replace `void *`
10486 parameter with a proper one.
10487 (print_inferior_quit_action): Likewise.
10488 (quit_confirm): Use range-based for loop to iterate over inferiors.
10489 (quit_force): Likewise.
10490
a9ac81b1
SM
104912020-01-17 Simon Marchi <simon.marchi@efficios.com>
10492
10493 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10494 `void *` parameter with proper parameters.
10495 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10496 (print_one_inferior): Change return type to void, replace `void *`
10497 parameter with proper parameters.
10498 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10499 inferiors.
10500 (get_other_inferior): Remove.
10501 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10502 inferiors.
10503
788eca49
SM
105042020-01-17 Simon Marchi <simon.marchi@efficios.com>
10505
10506 * mi/mi-interp.c (report_initial_inferior): Remove.
10507 (mi_interp::init): Use range-based for to iterate over inferiors.
10508
d9bc85b6
SM
105092020-01-17 Simon Marchi <simon.marchi@efficios.com>
10510
10511 * python/py-inferior.c (build_inferior_list): Remove.
10512 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10513
40c94099
CB
105142020-01-16 Christian Biesinger <cbiesinger@google.com>
10515
10516 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10517 (btrace_stitch_trace): Likewise.
10518 * charset.c (intermediate_encoding): Likewise (vaild).
10519 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10520 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10521 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10522
e0cdfe3c
HD
105232020-01-16 Hannes Domani <ssbssa@yahoo.de>
10524
10525 * windows-tdep.c (windows_get_tlb_type):
10526 Add rtl_user_process_parameters type.
10527
790f1718 105282020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10529 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10530
10531 PR build/24805
10532 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10533 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10534 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10535 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10536 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10537 (ps_plog): Redeclare exported functions with default visibility.
10538
3112ed97
NA
105392020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10540
10541 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10542 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10543
8dc3273e
SM
105442020-01-15 Simon Marchi <simon.marchi@efficios.com>
10545
10546 * infcmd.c (post_create_inferior): Use get_thread_regcache
10547 instead of get_current_regcache.
10548
ff47f4f0
TT
105492020-01-14 Tom Tromey <tom@tromey.com>
10550
10551 PR symtab/12535:
10552 * python/python.c (gdbpy_decode_line): Treat empty string the same
10553 as no argument.
10554
975f45b7
TT
105552020-01-14 Tom Tromey <tom@tromey.com>
10556
10557 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10558
25e57356
TT
105592020-01-14 Tom Tromey <tom@tromey.com>
10560
10561 * nat/linux-btrace.c: Don't include <config.h>.
10562 * nat/linux-ptrace.c: Don't include <config.h>.
10563 * nat/x86-linux-dregs.c: Don't include <config.h>.
10564
05ea2a05
TT
105652020-01-14 Tom Tromey <tom@tromey.com>
10566
10567 * configure: Rebuild.
10568 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10569
01027315
TT
105702020-01-14 Tom Tromey <tom@tromey.com>
10571
10572 * nat/x86-linux-dregs.c: Include configh.h.
10573 * nat/linux-ptrace.c: Include configh.h.
10574 * nat/linux-btrace.c: Include configh.h.
10575 * defs.h: Include config.h, bfd.h.
10576 * configure.ac: Don't source common.host.
10577 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10578 * configure: Rebuild.
10579 * acinclude.m4: Update path.
10580 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10581 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10582 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10583 (CLIBS): Add LIBSUPPORT.
10584 (CDEPS): Likewise.
10585 (COMMON_SFILES): Remove gdbsupport files.
10586 (HFILES_NO_SRCDIR): Likewise.
10587 (stamp-version): Update path to create-version.sh.
10588 (ALLDEPFILES): Remove gdbsupport files.
10589
b2ceabe8
TT
105902020-01-14 Tom Tromey <tom@tromey.com>
10591
10592 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10593 USE_WIN32API when needed.
10594 * configure.ac (USE_WIN32API): Don't define.
10595 (WIN32LIBS): Use WIN32APILIBS.
10596 * configure: Rebuild.
10597
25c51f71
TT
105982020-01-14 Tom Tromey <tom@tromey.com>
10599
10600 * configure: Rebuild.
10601 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10602
717c684d
BE
106032020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10604
10605 * skip.c (skip_function_command): Make skip w/o arguments use the
10606 name of the inlined function if pc is inside any inlined function.
10607
7da6a5b9
LM
106082020-01-14 Luis Machado <luis.machado@linaro.org>
10609
10610 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10611 * infrun.c (resume_1): Likewise.
10612 (handle_inferior_event): Remove stale comment.
10613 * linux-nat.c (linux_nat_target::resume): Update comments.
10614 (save_stop_reason): Likewise.
10615 (linux_nat_filter_event): Likewise.
10616 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10617
44e4c775
AB
106182020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10619
10620 * elfread.c (record_minimal_symbol): Set section index to 0 for
10621 non-allocatable sections.
10622
18a8505e
AT
10623
106242020-01-13 Ali Tamur <tamur@google.com>
10625
10626 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10627 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10628 to gdb::optional. Update comments.
10629 (dwo_file): Update comments.
10630 (read_attribute): Update API to take an additional out parameter,
10631 need_reprocess. This is used to mark attributes that need other
10632 attributes (e.g. str_offsets_base) for correct computation which may not
10633 have been read yet.
10634 (read_attribute_reprocess): New function declaration.
10635 (read_addr_index): Likewise.
10636 (read_dwo_str_index): Likewise.
10637 (read_stub_str_index): Likewise.
10638 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10639 (lookup_addr_base): New function definition.
10640 (lookup_ranges_base): Likewise.
10641 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10642 lookup_ranges_base.
10643 (init_cutu_and_read_dies): Update comments.
10644 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10645 unit. This is used to inherit parent's str_offsets_base and addr_base.
10646 Update comments.
10647 (init_cutu_and_read_dies_simple): Reflect API changes.
10648 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10649 (create_cus_hash_table): Change API to take parent compile unit.
10650 Reflect API changes.
10651 (open_and_init_dwo_file): Reflect API changes.
10652 (dwarf2_get_pc_bounds): Update comments.
10653 (dwarf2_record_block_ranges): Likewise.
10654 (read_full_die_1): Change implementation to reprocess attributes that
10655 need str_offsets_base and addr_base.
10656 (partial_die_info::read): Likewise.
10657 (read_attribute_reprocess): New function definition.
10658 (read_attribute_value): Change API to take an additional out parameter,
10659 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10660 when a non-dwo compile unit has index based attributes.
10661 (read_attribute): Reflect API changes.
10662 (read_addr_index_1): Reflect API changes. Update comments.
10663 (dwarf2_read_addr_index_data): Reflect API changes.
10664 (dwarf2_read_addr_index): Likewise.
10665 (read_str_index): Change API and implementation. This becomes a helper
10666 to be used by the new string index related methods. Update error
10667 message and comments.
10668 (read_dwo_str_index): New function definition.
10669 (read_stub_str_index): Likewise.
10670 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10671 * symfile.h (dwarf2_debug_sections): Likewise.
10672 * xcoffread.c (dwarf2_debug_sections): Likewise.
10673
0cac9354
SM
106742020-01-13 Simon Marchi <simon.marchi@efficios.com>
10675
10676 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10677 core_reg_sect type to gdb_byte *.
10678 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10679 * cris-tdep.c (fetch_core_registers): Likewise.
10680 * corelow.c (core_target::get_core_register_section): Change
10681 type of `contents` to gdb::byte_vector.
10682
9a6d629c
AB
106832020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10684
10685 * tui/tui-wingeneral.c (box_win): Position the title in the center
10686 of the border.
10687
d8b2f9e3
SM
106882020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10689
10690 * corelow.c (core_target::get_core_register_section): Use
10691 std::vector instead of alloca.
10692
bb564c58
SM
106932020-01-13 Simon Marchi <simon.marchi@efficios.com>
10694
10695 * warning.m4: Add -Wmissing-declarations to build_warnings.
10696 * configure: Re-generate.
10697
6b366111
SM
106982020-01-13 Simon Marchi <simon.marchi@efficios.com>
10699
10700 * python/python.c (init__gdb_module): Add declaration.
10701
6c265988
SM
107022020-01-13 Simon Marchi <simon.marchi@efficios.com>
10703
10704 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10705 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10706 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10707 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10708 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10709 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10710 * ada-exp.y (_initialize_ada_exp): Add declaration.
10711 * ada-lang.c (_initialize_ada_language): Add declaration.
10712 * ada-tasks.c (_initialize_tasks): Add declaration.
10713 * agent.c (_initialize_agent): Add declaration.
10714 * aix-thread.c (_initialize_aix_thread): Add declaration.
10715 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10716 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10717 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10718 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10719 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10720 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10721 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10722 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10723 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10724 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10725 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10726 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10727 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10728 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10729 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10730 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10731 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10732 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10733 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10734 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10735 * annotate.c (_initialize_annotate): Add declaration.
10736 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10737 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10738 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10739 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10740 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10741 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10742 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10743 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10744 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10745 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10746 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10747 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10748 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10749 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10750 * auto-load.c (_initialize_auto_load): Add declaration.
10751 * auxv.c (_initialize_auxv): Add declaration.
10752 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10753 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10754 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10755 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10756 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10757 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10758 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10759 * breakpoint.c (_initialize_breakpoint): Add declaration.
10760 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10761 * btrace.c (_initialize_btrace): Add declaration.
10762 * charset.c (_initialize_charset): Add declaration.
10763 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10764 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10765 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10766 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10767 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10768 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10769 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10770 * coffread.c (_initialize_coffread): Add declaration.
10771 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10772 * compile/compile.c (_initialize_compile): Add declaration.
10773 * complaints.c (_initialize_complaints): Add declaration.
10774 * completer.c (_initialize_completer): Add declaration.
10775 * copying.c (_initialize_copying): Add declaration.
10776 * corefile.c (_initialize_core): Add declaration.
10777 * corelow.c (_initialize_corelow): Add declaration.
10778 * cp-abi.c (_initialize_cp_abi): Add declaration.
10779 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10780 * cp-support.c (_initialize_cp_support): Add declaration.
10781 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10782 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10783 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10784 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10785 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10786 * ctfread.c (_initialize_ctfread): Add declaration.
10787 * d-lang.c (_initialize_d_language): Add declaration.
10788 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10789 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10790 * dbxread.c (_initialize_dbxread): Add declaration.
10791 * dcache.c (_initialize_dcache): Add declaration.
10792 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10793 * disasm.c (_initialize_disasm): Add declaration.
10794 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10795 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10796 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10797 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10798 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10799 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10800 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10801 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10802 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10803 * elfread.c (_initialize_elfread): Add declaration.
10804 * exec.c (_initialize_exec): Add declaration.
10805 * extension.c (_initialize_extension): Add declaration.
10806 * f-lang.c (_initialize_f_language): Add declaration.
10807 * f-valprint.c (_initialize_f_valprint): Add declaration.
10808 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10809 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10810 * filesystem.c (_initialize_filesystem): Add declaration.
10811 * findcmd.c (_initialize_mem_search): Add declaration.
10812 * findvar.c (_initialize_findvar): Add declaration.
10813 * fork-child.c (_initialize_fork_child): Add declaration.
10814 * frame-base.c (_initialize_frame_base): Add declaration.
10815 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10816 * frame.c (_initialize_frame): Add declaration.
10817 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10818 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10819 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10820 * gcore.c (_initialize_gcore): Add declaration.
10821 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10822 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10823 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10824 * gdbarch.c (_initialize_gdbarch): Add declaration.
10825 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10826 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10827 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10828 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10829 * go-lang.c (_initialize_go_language): Add declaration.
10830 * go32-nat.c (_initialize_go32_nat): Add declaration.
10831 * guile/guile.c (_initialize_guile): Add declaration.
10832 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10833 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10834 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10835 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10836 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10837 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10838 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10839 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10840 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10841 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10842 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10843 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10844 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10845 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10846 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10847 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10848 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10849 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10850 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10851 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10852 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10853 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10854 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10855 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10856 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10857 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10858 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10859 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10860 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10861 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10862 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10863 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10864 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10865 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10866 * infcall.c (_initialize_infcall): Add declaration.
10867 * infcmd.c (_initialize_infcmd): Add declaration.
10868 * inflow.c (_initialize_inflow): Add declaration.
10869 * infrun.c (_initialize_infrun): Add declaration.
10870 * interps.c (_initialize_interpreter): Add declaration.
10871 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10872 * jit.c (_initialize_jit): Add declaration.
10873 * language.c (_initialize_language): Add declaration.
10874 * linux-fork.c (_initialize_linux_fork): Add declaration.
10875 * linux-nat.c (_initialize_linux_nat): Add declaration.
10876 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10877 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10878 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10879 * m2-lang.c (_initialize_m2_language): Add declaration.
10880 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10881 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10882 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10883 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10884 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10885 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10886 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10887 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10888 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10889 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10890 * machoread.c (_initialize_machoread): Add declaration.
10891 * macrocmd.c (_initialize_macrocmd): Add declaration.
10892 * macroscope.c (_initialize_macroscope): Add declaration.
10893 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10894 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10895 * maint.c (_initialize_maint_cmds): Add declaration.
10896 * mdebugread.c (_initialize_mdebugread): Add declaration.
10897 * memattr.c (_initialize_mem): Add declaration.
10898 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10899 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10900 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10901 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10902 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10903 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10904 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10905 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10906 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10907 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10908 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10909 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10910 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10911 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10912 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10913 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10914 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10915 * mipsread.c (_initialize_mipsread): Add declaration.
10916 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10917 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10918 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10919 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10920 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10921 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10922 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10923 * nto-procfs.c (_initialize_procfs): Add declaration.
10924 * objc-lang.c (_initialize_objc_language): Add declaration.
10925 * observable.c (_initialize_observer): Add declaration.
10926 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10927 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10928 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10929 * osabi.c (_initialize_gdb_osabi): Add declaration.
10930 * osdata.c (_initialize_osdata): Add declaration.
10931 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10932 * parse.c (_initialize_parse): Add declaration.
10933 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10934 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10935 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10936 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10937 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10938 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10939 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10940 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10941 * printcmd.c (_initialize_printcmd): Add declaration.
10942 * probe.c (_initialize_probe): Add declaration.
10943 * proc-api.c (_initialize_proc_api): Add declaration.
10944 * proc-events.c (_initialize_proc_events): Add declaration.
10945 * proc-service.c (_initialize_proc_service): Add declaration.
10946 * procfs.c (_initialize_procfs): Add declaration.
10947 * producer.c (_initialize_producer): Add declaration.
10948 * psymtab.c (_initialize_psymtab): Add declaration.
10949 * python/python.c (_initialize_python): Add declaration.
10950 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10951 * record-btrace.c (_initialize_record_btrace): Add declaration.
10952 * record-full.c (_initialize_record_full): Add declaration.
10953 * record.c (_initialize_record): Add declaration.
10954 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10955 * regcache.c (_initialize_regcache): Add declaration.
10956 * reggroups.c (_initialize_reggroup): Add declaration.
10957 * remote-notif.c (_initialize_notif): Add declaration.
10958 * remote-sim.c (_initialize_remote_sim): Add declaration.
10959 * remote.c (_initialize_remote): Add declaration.
10960 * reverse.c (_initialize_reverse): Add declaration.
10961 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10962 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10963 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10964 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10965 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10966 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10967 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10968 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10969 Add declaration.
10970 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10971 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10972 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10973 * rust-exp.y (_initialize_rust_exp): Add declaration.
10974 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10975 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10976 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10977 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10978 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10979 * score-tdep.c (_initialize_score_tdep): Add declaration.
10980 * ser-go32.c (_initialize_ser_dos): Add declaration.
10981 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10982 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10983 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10984 * ser-uds.c (_initialize_ser_socket): Add declaration.
10985 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10986 * serial.c (_initialize_serial): Add declaration.
10987 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10988 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10989 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10990 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10991 * skip.c (_initialize_step_skip): Add declaration.
10992 * sol-thread.c (_initialize_sol_thread): Add declaration.
10993 * solib-aix.c (_initialize_solib_aix): Add declaration.
10994 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10995 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10996 * solib-frv.c (_initialize_frv_solib): Add declaration.
10997 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10998 * solib-target.c (_initialize_solib_target): Add declaration.
10999 * solib.c (_initialize_solib): Add declaration.
11000 * source-cache.c (_initialize_source_cache): Add declaration.
11001 * source.c (_initialize_source): Add declaration.
11002 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11003 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11004 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11005 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11006 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11007 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11008 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11009 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11010 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11011 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11012 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11013 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11014 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11015 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11016 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11017 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11018 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11019 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11020 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11021 * stabsread.c (_initialize_stabsread): Add declaration.
11022 * stack.c (_initialize_stack): Add declaration.
11023 * stap-probe.c (_initialize_stap_probe): Add declaration.
11024 * std-regs.c (_initialize_frame_reg): Add declaration.
11025 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11026 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11027 * symfile.c (_initialize_symfile): Add declaration.
11028 * symmisc.c (_initialize_symmisc): Add declaration.
11029 * symtab.c (_initialize_symtab): Add declaration.
11030 * target.c (_initialize_target): Add declaration.
11031 * target-connection.c (_initialize_target_connection): Add
11032 declaration.
11033 * target-dcache.c (_initialize_target_dcache): Add declaration.
11034 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11035 * thread.c (_initialize_thread): Add declaration.
11036 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11037 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11038 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11039 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11040 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11041 * tracectf.c (_initialize_ctf): Add declaration.
11042 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11043 * tracefile.c (_initialize_tracefile): Add declaration.
11044 * tracepoint.c (_initialize_tracepoint): Add declaration.
11045 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11046 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11047 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11048 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11049 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11050 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11051 * tui/tui.c (_initialize_tui): Add declaration.
11052 * typeprint.c (_initialize_typeprint): Add declaration.
11053 * ui-style.c (_initialize_ui_style): Add declaration.
11054 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11055 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11056 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11057 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11058 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11059 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11060 * unittests/filtered_iterator-selftests.c
11061 (_initialize_filtered_iterator_selftests): Add declaration.
11062 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11063 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11064 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11065 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11066 * unittests/main-thread-selftests.c
11067 (_initialize_main_thread_selftests): Add declaration.
11068 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11069 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11070 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11071 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11072 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11073 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11074 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11075 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11076 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11077 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11078 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11079 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11080 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11081 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11082 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11083 declaration.
11084 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11085 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11086 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11087 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11088 * user-regs.c (_initialize_user_regs): Add declaration.
11089 * utils.c (_initialize_utils): Add declaration.
11090 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11091 * valops.c (_initialize_valops): Add declaration.
11092 * valprint.c (_initialize_valprint): Add declaration.
11093 * value.c (_initialize_values): Add declaration.
11094 * varobj.c (_initialize_varobj): Add declaration.
11095 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11096 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11097 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11098 * windows-nat.c (_initialize_windows_nat): Add declaration.
11099 (_initialize_check_for_gdb_ini): Add declaration.
11100 (_initialize_loadable): Add declaration.
11101 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11102 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11103 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11104 * xcoffread.c (_initialize_xcoffread): Add declaration.
11105 * xml-support.c (_initialize_xml_support): Add declaration.
11106 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11107 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11108 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11109 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11110
e2de1eec
SM
111112020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11112
11113 * regformats/regdat.sh: Generate declaration for init function.
11114
e0037b4c
SM
111152020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11116
11117 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11118 up.
11119 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11120 close_one_inferior>: New methods.
11121 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11122 pass down target to find_inferior_pid.
11123 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11124 Pass down target to find_inferior_ptid.
11125 (gdbsim_target::create_inferior): Pass down target to
11126 add_thread_silent.
11127 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11128 target down to find_inferior_ptid and switch_to_thread.
11129 (gdbsim_target::close): Update to call close_one_inferior.
11130 (struct resume_data): Remove.
11131 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11132 directly, rather than through a void pointer.
11133 (gdbsim_target::resume): Update to call resume_one_inferior.
11134
58920b5b
SM
111352020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11136
11137 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11138
4ec89149
PA
111392020-01-12 Pedro Alves <palves@redhat.com>
11140
11141 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11142 directly for the current inferior instead of
11143 discard_all_inferiors.
11144 (discard_all_inferiors): Delete.
11145
7c392d1d
TT
111462020-01-11 Tom Tromey <tom@tromey.com>
11147
11148 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11149 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11150 deprecated_safe_get_selected_frame.
11151
d9ebdab7
TBA
111522020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11153
11154 * inferior.c (print_inferior): Switch inferior before printing it.
11155
f3c469b9
PA
111562020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11157 Pedro Alves <palves@redhat.com>
11158
11159 * progspace-and-thread.c (switch_to_program_space_and_thread):
11160 Assert there's an inferior for PSPACE. Use
11161 switch_to_inferior_no_thread to switch the inferior too.
11162 * progspace.c (program_space::~program_space): Call
11163 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11164 (program_space::free_all_objfiles): Don't call clear_symtab_users
11165 here.
11166 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11167
65c574f6
PA
111682020-01-10 Pedro Alves <palves@redhat.com>
11169
11170 * NEWS: Mention multi-target debugging, "info connections", and
11171 "add-inferior -no-connection".
11172
2f4fcf00
PA
111732020-01-10 Pedro Alves <palves@redhat.com>
11174
11175 * infrun.c: Include "target-connection.h".
11176 (check_multi_target_resumption): New.
11177 (proceed): Call it.
11178 * target-connection.c (make_target_connection_string): Make
11179 extern.
11180 * target-connection.h (make_target_connection_string): Declare.
11181
121b3efd
PA
111822020-01-10 Pedro Alves <palves@redhat.com>
11183
11184 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11185 * inferior.c (uiout_field_connection): New function.
11186 (print_inferior): Add new "connection-id" column.
11187 (add_inferior_command): Show connection number/string of added
11188 inferior.
11189 * process-stratum-target.h
11190 (process_stratum_target::connection_string): New virtual method.
11191 (process_stratum_target::connection_number): New field.
11192 * remote.c (remote_target::connection_string): New override.
11193 * target-connection.c: New file.
11194 * target-connection.h: New file.
11195 * target.c (decref_target): Remove process_stratum targets from
11196 the connection list.
11197 (target_stack::push): Add process_stratum targets to the
11198 connection list.
11199
4f837581
PA
112002020-01-10 Pedro Alves <palves@redhat.com>
11201
11202 Revert:
11203 2016-04-12 Pedro Alves <palves@redhat.com>
11204 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11205 Remove references to name.
11206 * serial.h (struct serial) <name>: Delete.
11207
f4ec508e
PA
112082020-01-10 Pedro Alves <palves@redhat.com>
11209
11210 * gdbarch-selftests.c (register_to_value_test): Remove "target
11211 already pushed" check.
11212
5b6d1e4f
PA
112132020-01-10 Pedro Alves <palves@redhat.com>
11214 John Baldwin <jhb@FreeBSD.org>
11215
11216 * aarch64-linux-nat.c
11217 (aarch64_linux_nat_target::thread_architecture): Adjust.
11218 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11219 (task_command_1): Likewise.
11220 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11221 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11222 (aix_thread_target::store_registers)
11223 (aix_thread_target::thread_alive): Adjust.
11224 * amd64-fbsd-tdep.c: Include "inferior.h".
11225 (amd64fbsd_get_thread_local_address): Pass down target.
11226 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11227 thread's gdbarch instead of target_gdbarch.
11228 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11229 get_last_target_status.
11230 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11231 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11232 inferiors.
11233 (update_inserted_breakpoint_locations): Skip if inferiors with no
11234 execution.
11235 (update_global_location_list): When handling moribund locations,
11236 find representative inferior for location's pspace, and use thread
11237 count of its process_stratum target.
11238 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11239 * bsd-uthread.c (bsd_uthread_target::wait): Use
11240 as_process_stratum_target and adjust thread_change_ptid and
11241 add_thread calls.
11242 (bsd_uthread_target::update_thread_list): Use
11243 as_process_stratum_target and adjust find_thread_ptid,
11244 thread_change_ptid and add_thread calls.
11245 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11246 find_thread_ptid call.
11247 * corelow.c (add_to_thread_list): Adjust add_thread call.
11248 (core_target_open): Adjust add_thread_silent and thread_count
11249 calls.
11250 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11251 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11252 * event-top.c (async_disconnect): Pop targets from all inferiors.
11253 * exec.c (add_target_sections): Push exec target on all inferiors
11254 sharing the program space.
11255 (remove_target_sections): Remove the exec target from all
11256 inferiors sharing the program space.
11257 (exec_on_vfork): New.
11258 * exec.h (exec_on_vfork): Declare.
11259 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11260 Pass it down.
11261 (fbsd_nat_target::update_thread_list): Adjust.
11262 (fbsd_nat_target::resume): Adjust.
11263 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11264 down.
11265 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11266 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11267 get_thread_arch_regcache call.
11268 * fork-child.c (gdb_startup_inferior): Pass target down to
11269 startup_inferior and set_executing.
11270 * gdbthread.h (struct process_stratum_target): Forward declare.
11271 (add_thread, add_thread_silent, add_thread_with_info)
11272 (in_thread_list): Add process_stratum_target parameter.
11273 (find_thread_ptid(inferior*, ptid_t)): New overload.
11274 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11275 parameter.
11276 (all_threads()): Delete overload.
11277 (all_threads, all_non_exited_threads): Add process_stratum_target
11278 parameter.
11279 (all_threads_safe): Use brace initialization.
11280 (thread_count): Add process_stratum_target parameter.
11281 (set_resumed, set_running, set_stop_requested, set_executing)
11282 (threads_are_executing, finish_thread_state): Add
11283 process_stratum_target parameter.
11284 (switch_to_thread): Use is_current_thread.
11285 * i386-fbsd-tdep.c: Include "inferior.h".
11286 (i386fbsd_get_thread_local_address): Pass down target.
11287 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11288 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11289 have_inferiors check.
11290 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11291 (inf_ptrace_target::attach): Adjust.
11292 * infcall.c (run_inferior_call): Adjust.
11293 * infcmd.c (run_command_1): Pass target to
11294 scoped_finish_thread_state.
11295 (proceed_thread_callback): Skip inferiors with no execution.
11296 (continue_command): Rename 'all_threads' local to avoid hiding
11297 'all_threads' function. Adjust get_last_target_status call.
11298 (prepare_one_step): Adjust set_running call.
11299 (signal_command): Use user_visible_resume_target. Compare thread
11300 pointers instead of inferior_ptid.
11301 (info_program_command): Adjust to pass down target.
11302 (attach_command): Mark target's 'thread_executing' flag.
11303 (stop_current_target_threads_ns): New, factored out from ...
11304 (interrupt_target_1): ... this. Switch inferior before making
11305 target calls.
11306 * inferior-iter.h
11307 (struct all_inferiors_iterator, struct all_inferiors_range)
11308 (struct all_inferiors_safe_range)
11309 (struct all_non_exited_inferiors_range): Filter on
11310 process_stratum_target too. Remove explicit.
11311 * inferior.c (inferior::inferior): Push dummy target on target
11312 stack.
11313 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11314 Add process_stratum_target parameter, and pass it down.
11315 (have_live_inferiors): Adjust.
11316 (switch_to_inferior_and_push_target): New.
11317 (add_inferior_command, clone_inferior_command): Handle
11318 "-no-connection" parameter. Use
11319 switch_to_inferior_and_push_target.
11320 (_initialize_inferior): Mention "-no-connection" option in
11321 the help of "add-inferior" and "clone-inferior" commands.
11322 * inferior.h: Include "process-stratum-target.h".
11323 (interrupt_target_1): Use bool.
11324 (struct inferior) <push_target, unpush_target, target_is_pushed,
11325 find_target_beneath, top_target, process_target, target_at,
11326 m_stack>: New.
11327 (discard_all_inferiors): Delete.
11328 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11329 (all_inferiors, all_non_exited_inferiors): Add
11330 process_stratum_target parameter.
11331 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11332 (target_last_proc_target): New global.
11333 (follow_fork_inferior): Push target on new inferior. Pass target
11334 to add_thread_silent. Call exec_on_vfork. Handle target's
11335 reference count.
11336 (follow_fork): Adjust get_last_target_status call. Also consider
11337 target.
11338 (follow_exec): Push target on new inferior.
11339 (struct execution_control_state) <target>: New field.
11340 (user_visible_resume_target): New.
11341 (do_target_resume): Call target_async.
11342 (resume_1): Set target's threads_executing flag. Consider resume
11343 target.
11344 (commit_resume_all_targets): New.
11345 (proceed): Also consider resume target. Skip threads of inferiors
11346 with no execution. Commit resumtion in all targets.
11347 (start_remote): Pass current inferior to wait_for_inferior.
11348 (infrun_thread_stop_requested): Consider target as well. Pass
11349 thread_info pointer to clear_inline_frame_state instead of ptid.
11350 (infrun_thread_thread_exit): Consider target as well.
11351 (random_pending_event_thread): New inferior parameter. Use it.
11352 (do_target_wait): Rename to ...
11353 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11354 down.
11355 (threads_are_resumed_pending_p, do_target_wait): New.
11356 (prepare_for_detach): Adjust calls.
11357 (wait_for_inferior): New inferior parameter. Handle it. Use
11358 do_target_wait_1 instead of do_target_wait.
11359 (fetch_inferior_event): Adjust. Switch to representative
11360 inferior. Pass target down.
11361 (set_last_target_status): Add process_stratum_target parameter.
11362 Save target in global.
11363 (get_last_target_status): Add process_stratum_target parameter and
11364 handle it.
11365 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11366 (context_switch): Check inferior_ptid == null_ptid before calling
11367 inferior_thread().
11368 (get_inferior_stop_soon): Pass down target.
11369 (wait_one): Rename to ...
11370 (poll_one_curr_target): ... this.
11371 (struct wait_one_event): New.
11372 (wait_one): New.
11373 (stop_all_threads): Adjust.
11374 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11375 event's target.
11376 (switch_back_to_stepped_thread): Also consider target.
11377 (print_stop_event): Update.
11378 (normal_stop): Update. Also consider the resume target.
11379 * infrun.h (wait_for_inferior): Remove declaration.
11380 (user_visible_resume_target): New declaration.
11381 (get_last_target_status, set_last_target_status): New
11382 process_stratum_target parameter.
11383 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11384 process_stratum_target parameter, and use it.
11385 (clear_inline_frame_state (thread_info*)): New.
11386 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11387 process_stratum_target parameter.
11388 (clear_inline_frame_state (thread_info*)): Declare.
11389 * linux-fork.c (delete_checkpoint_command): Pass target down to
11390 find_thread_ptid.
11391 (checkpoint_command): Adjust.
11392 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11393 instead of just tweaking inferior_ptid.
11394 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11395 (exit_lwp): Pass target down to find_thread_ptid.
11396 (attach_proc_task_lwp_callback): Pass target down to
11397 add_thread/set_running/set_executing.
11398 (linux_nat_target::attach): Pass target down to
11399 thread_change_ptid.
11400 (get_detach_signal): Pass target down to find_thread_ptid.
11401 Consider last target status's target.
11402 (linux_resume_one_lwp_throw, resume_lwp)
11403 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11404 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11405 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11406 (linux_nat_target::async_wait_fd): New.
11407 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11408 target down.
11409 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11410 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11411 * linux-thread-db.c (struct thread_db_info::process_target): New
11412 field.
11413 (add_thread_db_info): Save target.
11414 (get_thread_db_info): New process_stratum_target parameter. Also
11415 match target.
11416 (delete_thread_db_info): New process_stratum_target parameter.
11417 Also match target.
11418 (thread_from_lwp): Adjust to pass down target.
11419 (thread_db_notice_clone): Pass down target.
11420 (check_thread_db_callback): Pass down target.
11421 (try_thread_db_load_1): Always push the thread_db target.
11422 (try_thread_db_load, record_thread): Pass target down.
11423 (thread_db_target::detach): Pass target down. Always unpush the
11424 thread_db target.
11425 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11426 target down. Always unpush the thread_db target.
11427 (find_new_threads_callback, thread_db_find_new_threads_2)
11428 (thread_db_target::update_thread_list): Pass target down.
11429 (thread_db_target::pid_to_str): Pass current inferior down.
11430 (thread_db_target::get_thread_local_address): Pass target down.
11431 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11432 target down.
11433 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11434 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11435 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11436 (procfs_init_inferior): Rename to ...
11437 (procfs_target::procfs_init_inferior): ... this and adjust.
11438 (procfs_target::create_inferior, procfs_notice_thread)
11439 (procfs_do_thread_registers): Adjust.
11440 * ppc-fbsd-tdep.c: Include "inferior.h".
11441 (ppcfbsd_get_thread_local_address): Pass down target.
11442 * proc-service.c (ps_xfer_memory): Switch current inferior and
11443 program space as well.
11444 (get_ps_regcache): Pass target down.
11445 * process-stratum-target.c
11446 (process_stratum_target::thread_address_space)
11447 (process_stratum_target::thread_architecture): Pass target down.
11448 * process-stratum-target.h
11449 (process_stratum_target::threads_executing): New field.
11450 (as_process_stratum_target): New.
11451 * ravenscar-thread.c
11452 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11453 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11454 down.
11455 * record-btrace.c (record_btrace_target::info_record): Adjust.
11456 (record_btrace_target::record_method)
11457 (record_btrace_target::record_is_replaying)
11458 (record_btrace_target::fetch_registers)
11459 (get_thread_current_frame_id, record_btrace_target::resume)
11460 (record_btrace_target::wait, record_btrace_target::stop): Pass
11461 target down.
11462 * record-full.c (record_full_wait_1): Switch to event thread.
11463 Pass target down.
11464 * regcache.c (regcache::regcache)
11465 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11466 process_stratum_target parameter and handle it.
11467 (current_thread_target): New global.
11468 (get_thread_regcache): Add process_stratum_target parameter and
11469 handle it. Switch inferior before calling target method.
11470 (get_thread_regcache): Pass target down.
11471 (get_thread_regcache_for_ptid): Pass target down.
11472 (registers_changed_ptid): Add process_stratum_target parameter and
11473 handle it.
11474 (registers_changed_thread, registers_changed): Pass target down.
11475 (test_get_thread_arch_aspace_regcache): New.
11476 (current_regcache_test): Define a couple local test_target_ops
11477 instances and use them for testing.
11478 (readwrite_regcache): Pass process_stratum_target parameter.
11479 (cooked_read_test, cooked_write_test): Pass mock_target down.
11480 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11481 (get_thread_arch_aspace_regcache): Add process_stratum_target
11482 parameter.
11483 (regcache::target): New method.
11484 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11485 (regcache::registers_changed_ptid): Add process_stratum_target
11486 parameter.
11487 (regcache::m_target): New field.
11488 (registers_changed_ptid): Add process_stratum_target parameter.
11489 * remote.c (remote_state::supports_vCont_probed): New field.
11490 (remote_target::async_wait_fd): New method.
11491 (remote_unpush_and_throw): Add remote_target parameter.
11492 (get_current_remote_target): Adjust.
11493 (remote_target::remote_add_inferior): Push target.
11494 (remote_target::remote_add_thread)
11495 (remote_target::remote_notice_new_inferior)
11496 (get_remote_thread_info): Pass target down.
11497 (remote_target::update_thread_list): Skip threads of inferiors
11498 bound to other targets. (remote_target::close): Don't discard
11499 inferiors. (remote_target::add_current_inferior_and_thread)
11500 (remote_target::process_initial_stop_replies)
11501 (remote_target::start_remote)
11502 (remote_target::remote_serial_quit_handler): Pass down target.
11503 (remote_target::remote_unpush_target): New remote_target
11504 parameter. Unpush the target from all inferiors.
11505 (remote_target::remote_unpush_and_throw): New remote_target
11506 parameter. Pass it down.
11507 (remote_target::open_1): Check whether the current inferior has
11508 execution instead of checking whether any inferior is live. Pass
11509 target down.
11510 (remote_target::remote_detach_1): Pass down target. Use
11511 remote_unpush_target.
11512 (extended_remote_target::attach): Pass down target.
11513 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11514 (remote_target::append_resumption): Pass down target.
11515 (remote_target::append_pending_thread_resumptions)
11516 (remote_target::remote_resume_with_hc, remote_target::resume)
11517 (remote_target::commit_resume): Pass down target.
11518 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11519 (remote_target::interrupt_query)
11520 (remote_target::remove_new_fork_children)
11521 (remote_target::check_pending_events_prevent_wildcard_vcont)
11522 (remote_target::remote_parse_stop_reply)
11523 (remote_target::process_stop_reply): Pass down target.
11524 (first_remote_resumed_thread): New remote_target parameter. Pass
11525 it down.
11526 (remote_target::wait_as): Pass down target.
11527 (unpush_and_perror): New remote_target parameter. Pass it down.
11528 (remote_target::readchar, remote_target::remote_serial_write)
11529 (remote_target::getpkt_or_notif_sane_1)
11530 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11531 down target.
11532 (remote_target::mourn_inferior): Pass down target. Use
11533 remote_unpush_target.
11534 (remote_target::core_of_thread)
11535 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11536 (remote_target::pid_to_exec_file)
11537 (remote_target::thread_handle_to_thread_info): Pass down target.
11538 (remote_target::async_wait_fd): New.
11539 * riscv-fbsd-tdep.c: Include "inferior.h".
11540 (riscv_fbsd_get_thread_local_address): Pass down target.
11541 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11542 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11543 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11544 Adjust.
11545 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11546 * solib-svr4.c (enable_break): Pass down target.
11547 * spu-multiarch.c (parse_spufs_run): Pass down target.
11548 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11549 * target-delegates.c: Regenerate.
11550 * target.c (g_target_stack): Delete.
11551 (current_top_target): Return the current inferior's top target.
11552 (target_has_execution_1): Refer to the passed-in inferior's top
11553 target.
11554 (target_supports_terminal_ours): Check whether the initial
11555 inferior was already created.
11556 (decref_target): New.
11557 (target_stack::push): Incref/decref the target.
11558 (push_target, push_target, unpush_target): Adjust.
11559 (target_stack::unpush): Defref target.
11560 (target_is_pushed): Return bool. Adjust to refer to the current
11561 inferior's target stack.
11562 (dispose_inferior): Delete, and inline parts ...
11563 (target_preopen): ... here. Only dispose of the current inferior.
11564 (target_detach): Hold strong target reference while detaching.
11565 Pass target down.
11566 (target_thread_name): Add assertion.
11567 (target_resume): Pass down target.
11568 (target_ops::beneath, find_target_at): Adjust to refer to the
11569 current inferior's target stack.
11570 (get_dummy_target): New.
11571 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11572 has a thread running.
11573 (initialize_targets): Rename to ...
11574 (_initialize_target): ... this.
11575 * target.h: Include "gdbsupport/refcounted-object.h".
11576 (struct target_ops): Inherit refcounted_object.
11577 (target_ops::shortname, target_ops::longname): Make const.
11578 (target_ops::async_wait_fd): New method.
11579 (decref_target): Declare.
11580 (struct target_ops_ref_policy): New.
11581 (target_ops_ref): New typedef.
11582 (get_dummy_target): Declare function.
11583 (target_is_pushed): Return bool.
11584 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11585 (all_matching_threads_iterator::all_matching_threads_iterator):
11586 Handle filter target.
11587 * thread-iter.h (struct all_matching_threads_iterator, struct
11588 all_matching_threads_range, class all_non_exited_threads_range):
11589 Filter by target too. Remove explicit.
11590 * thread.c (threads_executing): Delete.
11591 (inferior_thread): Pass down current inferior.
11592 (clear_thread_inferior_resources): Pass down thread pointer
11593 instead of ptid_t.
11594 (add_thread_silent, add_thread_with_info, add_thread): Add
11595 process_stratum_target parameter. Use it for thread and inferior
11596 searches.
11597 (is_current_thread): New.
11598 (thread_info::deletable): Use it.
11599 (find_thread_ptid, thread_count, in_thread_list)
11600 (thread_change_ptid, set_resumed, set_running): New
11601 process_stratum_target parameter. Pass it down.
11602 (set_executing): New process_stratum_target parameter. Pass it
11603 down. Adjust reference to 'threads_executing'.
11604 (threads_are_executing): New process_stratum_target parameter.
11605 Adjust reference to 'threads_executing'.
11606 (set_stop_requested, finish_thread_state): New
11607 process_stratum_target parameter. Pass it down.
11608 (switch_to_thread): Also match inferior.
11609 (switch_to_thread): New process_stratum_target parameter. Pass it
11610 down.
11611 (update_threads_executing): Reimplement.
11612 * top.c (quit_force): Pop targets from all inferior.
11613 (gdb_init): Don't call initialize_targets.
11614 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11615 Declare.
11616 (windows_add_thread, windows_delete_thread): Adjust.
11617 (get_windows_debug_event): Rename to ...
11618 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11619 * tracefile-tfile.c (tfile_target_open): Pass down target.
11620 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11621 Forward declare.
11622 (switch_to_thread): Add process_stratum_target parameter.
11623 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11624 parameter. Use it.
11625 (mi_on_resume): Pass target down.
11626 * nat/fork-inferior.c (startup_inferior): Add
11627 process_stratum_target parameter. Pass it down.
11628 * nat/fork-inferior.h (startup_inferior): Add
11629 process_stratum_target parameter.
11630 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11631
75c6c844
PA
116322020-01-10 Pedro Alves <palves@redhat.com>
11633
11634 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11635 directly. Instead find the first thread in the thread list and
11636 use switch_to_thread.
11637
78f2c40a
PA
116382020-01-10 Pedro Alves <palves@redhat.com>
11639
11640 * remote.c (remote_target::remote_add_inferior): Don't bind a
11641 process to the current inferior if the current inferior is already
11642 bound to a process.
11643
e7af6c70
TBA
116442020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11645 Pedro Alves <palves@redhat.com>
11646
11647 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11648 If no process is specified, return null_ptid instead of
11649 inferior_ptid.
11650 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11651 TARGET_WAITKIND_SIGNALLED with no pid.
11652
31ba933e
PA
116532020-01-10 Pedro Alves <palves@redhat.com>
11654
11655 * remote.c (first_remote_resumed_thread): New.
11656 (remote_target::wait_as): Use it as default event_ptid instead of
11657 inferior_ptid.
11658
735fc2ca
PA
116592020-01-10 Pedro Alves <palves@redhat.com>
11660
11661 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11662
c17e02e1
PA
116632020-01-10 Pedro Alves <palves@redhat.com>
11664
11665 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11666 not -1.
11667
ab1ddbcf
PA
116682020-01-10 Pedro Alves <palves@redhat.com>
11669
11670 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11671 ptid to get_last_target_status.
11672 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11673 ptid to get_last_target_status.
11674 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11675 get_last_target_status.
11676 (info_program_command): Don't pass a target_waitstatus to
11677 get_last_target_status.
11678 * infrun.c (init_wait_for_inferior): Use
11679 nullify_last_target_wait_ptid.
11680 (get_last_target_status): Handle nullptr arguments.
11681 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11682 (print_stop_event): Don't pass a ptid to get_last_target_status.
11683 (normal_stop): Don't pass a ptid to get_last_target_status.
11684 * infrun.h (get_last_target_status, set_last_target_status): Move
11685 comments here and update.
11686 (nullify_last_target_wait_ptid): Declare.
11687 * linux-fork.c (fork_load_infrun_state): Remove local extern
11688 declaration of nullify_last_target_wait_ptid.
11689 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11690 to get_last_target_status.
11691
f3f8ece4
PA
116922020-01-10 Pedro Alves <palves@redhat.com>
11693
11694 * gdbthread.h (scoped_restore_current_thread)
11695 <dont_restore, restore, m_dont_restore>: Declare.
11696 * thread.c (thread_alive): Add assertion. Return bool.
11697 (switch_to_thread_if_alive): New.
11698 (prune_threads): Switch inferior/thread.
11699 (print_thread_info_1): Switch thread before calling target methods.
11700 (scoped_restore_current_thread::restore): New, factored out from
11701 ...
11702 (scoped_restore_current_thread::~scoped_restore_current_thread):
11703 ... this.
11704 (scoped_restore_current_thread::scoped_restore_current_thread):
11705 Add assertion.
11706 (thread_apply_all_command, thread_select): Use
11707 switch_to_thread_if_alive.
11708 * infrun.c (proceed, restart_threads, handle_signal_stop)
11709 (switch_back_to_stepped_thread): Switch current thread before
11710 calling target methods.
11711
db2d40f7
PA
117122020-01-10 Pedro Alves <palves@redhat.com>
11713
11714 * inferior.c (switch_to_inferior_no_thread): New function,
11715 factored out from ...
11716 (inferior_command): ... here.
11717 * inferior.h (switch_to_inferior_no_thread): Declare.
11718 * mi/mi-main.c (run_one_inferior): Use
11719 switch_to_inferior_no_thread.
11720
bd420a2d
PA
117212020-01-10 Pedro Alves <palves@redhat.com>
11722
11723 * infcmd.c (kill_command): Remove dead code.
11724
ddf5db90
PA
117252020-01-10 Pedro Alves <palves@redhat.com>
11726
11727 * remote.c (remote_target::mourn_inferior): No longer check
11728 whether the target is running.
11729
5018ce90
PA
117302020-01-10 Pedro Alves <palves@redhat.com>
11731
11732 * corelow.c (core_target::has_execution): Change parameter type to
11733 inferior pointer.
11734 * inferior.c (number_of_live_inferiors): Use
11735 inferior::has_execution instead of target_has_execution_1.
11736 * inferior.h (inferior::has_execution): New.
11737 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11738 inferior::has_execution instead of target_has_execution_1.
11739 * process-stratum-target.c
11740 (process_stratum_target::has_execution): Change parameter type to
11741 inferior pointer. Check the inferior's PID instead of
11742 inferior_ptid.
11743 * process-stratum-target.h
11744 (process_stratum_target::has_execution): Change parameter type to
11745 inferior pointer.
11746 * record-full.c (record_full_core_target::has_execution): Change
11747 parameter type to inferior pointer.
11748 * target.c (target_has_execution_1): Change parameter type to
11749 inferior pointer.
11750 (target_has_execution_current): Adjust.
11751 * target.h (target_ops::has_execution): Change parameter type to
11752 inferior pointer.
11753 (target_has_execution_1): Change parameter type to inferior
11754 pointer. Change return type to bool.
11755 * tracefile.h (tracefile_target::has_execution): Change parameter
11756 type to inferior pointer.
11757
74375d18
PA
117582020-01-10 Pedro Alves <palves@redhat.com>
11759
11760 * exceptions.c (print_flush): Remove current_top_target() check.
11761
acdf84a6
PA
117622020-01-10 Pedro Alves <palves@redhat.com>
11763
11764 * remote.c (show_remote_exec_file): Show the current inferior's
11765 exec-file instead of the command variable's value.
11766
ec506636
PA
117672020-01-10 Pedro Alves <palves@redhat.com>
11768
11769 * record-full.c (record_full_resume_ptid): New global.
11770 (record_full_target::resume): Set it.
11771 (record_full_wait_1): Use record_full_resume_ptid instead of
11772 inferior_ptid.
11773
873657b9
PA
117742020-01-10 Pedro Alves <palves@redhat.com>
11775
11776 * gdbthread.h (scoped_restore_current_thread)
11777 <dont_restore, restore, m_dont_restore>: Declare.
11778 * thread.c (thread_alive): Add assertion. Return bool.
11779 (switch_to_thread_if_alive): New.
11780 (prune_threads): Switch inferior/thread.
11781 (print_thread_info_1): Switch thread before calling target methods.
11782 (scoped_restore_current_thread::restore): New, factored out from
11783 ...
11784 (scoped_restore_current_thread::~scoped_restore_current_thread):
11785 ... this.
11786 (scoped_restore_current_thread::scoped_restore_current_thread):
11787 Add assertion.
11788 (thread_apply_all_command, thread_select): Use
11789 switch_to_thread_if_alive.
11790
7f0ae84c
GB
117912020-01-10 George Barrett <bob@bob131.so>
11792
11793 * stap-probe.c (stap_modify_semaphore): Don't check for null
11794 semaphores.
11795 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11796 for null semaphores.
11797
f5a7c406
AB
117982020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11799
11800 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11801 all source windows, and maintain horizontal scroll status while
11802 doing so.
11803
9ae6bf64
TT
118042020-01-09 Tom Tromey <tom@tromey.com>
11805
11806 PR tui/18932:
11807 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11808 update_source_window, not print_source_lines.
11809
b2efe70c
AB
118102020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11811
11812 * tui/tui.c (tui_enable): Register tui hooks after calling
11813 tui_display_main.
11814
5f23a082
CB
118152020-01-09 Christian Biesinger <cbiesinger@google.com>
11816
11817 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11818
3061113b
SM
118192020-01-08 Simon Marchi <simon.marchi@efficios.com>
11820
11821 * thread.c (print_thread_info_1): Fix indentation.
11822
57d75002
CB
118232020-01-09 Christian Biesinger <cbiesinger@google.com>
11824
11825 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11826 unique_xmalloc_ptr outside the if to always free the demangled name.
11827
6a053cb1
TT
118282020-01-08 Tom Tromey <tromey@adacore.com>
11829
11830 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11831 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11832 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11833 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11834 Remove.
11835 (section_offsets): New typedef.
11836 * symtab.c (fixup_section, get_msymbol_address): Update.
11837 * symmisc.c (dump_msymbols): Update.
11838 * symfile.h (relative_addr_info_to_section_offsets)
11839 (symfile_map_offsets_to_segments): Update.
11840 * symfile.c (build_section_addr_info_from_objfile)
11841 (init_objfile_sect_indices): Update.
11842 (struct place_section_arg): Change type of "offsets".
11843 (place_section): Update.
11844 (relative_addr_info_to_section_offsets): Change type of
11845 "section_offsets". Remove "num_sections" parameter.
11846 (default_symfile_offsets, syms_from_objfile_1)
11847 (set_objfile_default_section_offset): Update.
11848 (reread_symbols): No need to preserve section offsets by hand.
11849 (symfile_map_offsets_to_segments): Change type of "offsets".
11850 * stap-probe.c (relocate_address): Update.
11851 * stabsread.h (process_one_symbol): Update.
11852 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11853 (solib_target_relocate_section_addresses): Update.
11854 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11855 Update.
11856 * solib-frv.c (frv_relocate_main_executable): Update.
11857 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11858 * solib-aix.c (solib_aix_get_section_offsets): Change return
11859 type.
11860 (solib_aix_solib_create_inferior_hook): Update.
11861 * remote.c (remote_target::get_offsets): Update.
11862 * psymtab.c (find_pc_sect_psymtab): Update.
11863 * psympriv.h (struct partial_symbol) <address, text_low,
11864 text_high>: Update.
11865 * objfiles.h (obj_section_offset): Update.
11866 (struct objfile) <section_offsets>: Change type.
11867 <num_sections>: Remove.
11868 (objfile_relocate): Update.
11869 * objfiles.c (entry_point_address_query): Update
11870 (relocate_one_symbol): Change type of "section_offsets".
11871 (objfile_relocate1, objfile_relocate1): Change type of
11872 "new_offsets".
11873 (objfile_rebase1): Update.
11874 * mipsread.c (mipscoff_symfile_read): Update.
11875 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11876 parameter.
11877 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11878 (parse_external, psymtab_to_symtab_1): Update.
11879 * machoread.c (macho_symfile_offsets): Update.
11880 * ia64-tdep.c (ia64_find_unwind_table): Update.
11881 * hppa-tdep.c (read_unwind_info): Update.
11882 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11883 * dwarf2read.c (create_addrmap_from_index)
11884 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11885 (process_psymtab_comp_unit_reader, add_partial_symbol)
11886 (add_partial_subprogram, process_full_comp_unit)
11887 (read_file_scope, read_func_scope, read_lexical_block_scope)
11888 (read_call_site_scope, dwarf2_rnglists_process)
11889 (dwarf2_ranges_process, dwarf2_ranges_read)
11890 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11891 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11892 Update.
11893 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11894 Update.
11895 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11896 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11897 (process_one_symbol): Change type of "section_offsets".
11898 * ctfread.c (get_objfile_text_range): Update.
11899 * coffread.c (coff_symtab_read, enter_linenos)
11900 (process_coff_symbol): Update.
11901 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11902 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11903
456e800a
TT
119042020-01-08 Tom Tromey <tromey@adacore.com>
11905
11906 * dwarf2read.c (parse_macro_definition): Use std::string.
11907 (parse_macro_definition): Likewise.
11908
6dfa2fc2
TT
119092020-01-08 Tom Tromey <tromey@adacore.com>
11910
11911 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11912 (ATTR_ALLOC_CHUNK): Remove.
11913
421d1616
TT
119142020-01-08 Tom Tromey <tromey@adacore.com>
11915
11916 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11917
43816ebc
TT
119182020-01-08 Tom Tromey <tromey@adacore.com>
11919
11920 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11921 (dwarf2_compute_name, open_dwo_file): Likewise.
11922 (process_enumeration_scope): Use std::vector.
11923 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11924 (partial_die_info::fixup, dwarf2_start_subfile)
11925 (guess_full_die_structure_name, dwarf2_name): Likewise.
11926 (determine_prefix): Update.
11927 (guess_full_die_structure_name): Make return type const.
11928 (partial_die_full_name): Return unique_xmalloc_ptr.
11929 (DW_FIELD_ALLOC_CHUNK): Remove.
11930
4212d509
TT
119312020-01-07 Tom Tromey <tromey@adacore.com>
11932
11933 PR build/24937:
11934 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11935
06a6207a
JT
119362020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11937
11938 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11939
153d79c4
AB
119402020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11941
11942 * stack.c (print_frame_info): Move disassemble_next_line code
11943 inside source_print block.
11944
66182876
EZ
119452020-01-06 Eli Zaretskii <eliz@gnu.org>
11946
11947 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11948 gdb/signals.h, as we are now using native signal symbols.
11949
cbfa8581
SV
119502020-01-06 Shahab Vahedi <shahab@synopsys.com>
11951
11952 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11953 overflow by an early check of content vs threshold.
aac66a4c 11954 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11955 Likewise.
11956
3f602821
EZ
119572020-01-06 Eli Zaretskii <eliz@gnu.org>
11958
11959 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11960
a08c904d
JT
119612020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11962
11963 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11964 export table if no section contains it's RVA.
11965
89a65580
EZ
119662020-01-06 Eli Zaretskii <eliz@gnu.org>
11967
11968 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11969
8b7fcda2
HD
119702020-01-06 Hannes Domani <ssbssa@yahoo.de>
11971
11972 * source.c (print_source_lines_base): Set last_line_listed.
11973
a61b4f69
SV
119742020-01-06 Shahab Vahedi <shahab@synopsys.com>
11975
11976 * tui/tui-disasm.c: Remove trailing spaces.
11977
559e7e50
EZ
119782020-01-06 Eli Zaretskii <eliz@gnu.org>
11979 Pedro Alves <palves@redhat.com>
11980
11981 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11982 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11983 (windows_gdb_signal_to_target): New function, uses the above
11984 enumeration to convert GDB internal signal codes to equivalent
11985 Windows codes.
11986 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11987 * windows-nat.c: Include "gdb_wait.h".
11988 (get_windows_debug_event): Extract the fatal exception from the
11989 exit status and convert to the equivalent Posix signal number.
11990 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11991 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11992 * gdbsupport/gdb_wait.c: New file, implements
11993 windows_status_to_termsig.
11994 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11995 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11996
f2302a34
AB
119972020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11998
11999 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12000 show_layout.
12001
6a5206eb
LM
120022020-01-05 Luis Machado <luis.machado@linaro.org>
12003
12004 * aarch64-linux-nat.c
12005 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12006 and bfd_mach_aarch64.
12007
6ec1d75e
PW
120082020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12009
12010 * ui-file.c (stdio_file::can_emit_style_escape)
12011 (tee_file::can_emit_style_escape): Ensure style is used also on
12012 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12013 to gdb_stdout.
12014 * main.c (set_gdb_data_directory): Use file style to output the
12015 warning that the given pathname is not a directory.
12016 * top.c (show_history_filename, gdb_safe_append_history)
12017 (show_gdb_datadir): Use file style.
12018
44f81a76
HD
120192020-01-03 Hannes Domani <ssbssa@yahoo.de>
12020
12021 * solib-target.c (struct lm_info_target):
12022 Change offsets to be a unique_xmalloc_ptr.
12023 (solib_target_relocate_section_addresses): Update.
12024
25057eb0
HD
120252020-01-03 Hannes Domani <ssbssa@yahoo.de>
12026
12027 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12028
6e2118f5
BE
120292020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12030
12031 * MAINTAINERS (Write After Approval): Add myself.
12032
8133c7dc
LM
120332020-01-02 Luis Machado <luis.machado@linaro.org>
12034
12035 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12036 Cell BE architecture.
12037 * target.h (struct target_ops) <thread_architecture>: Likewise.
12038
48189bec
HD
120392020-01-01 Hannes Domani <ssbssa@yahoo.de>
12040
12041 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12042
ead1063b
HD
120432020-01-01 Hannes Domani <ssbssa@yahoo.de>
12044
12045 * MAINTAINERS (Write After Approval): Add myself.
12046
e5d78223
JB
120472020-01-01 Joel Brobecker <brobecker@adacore.com>
12048
12049 * gdbarch.sh: Update copyright year range of generated files.
12050
b811d2c2
JB
120512020-01-01 Joel Brobecker <brobecker@adacore.com>
12052
12053 Update copyright year range in all GDB files.
12054
5f4def5c
JB
120552020-01-01 Joel Brobecker <brobecker@adacore.com>
12056
12057 * copyright.py: Convert to Python 3.
12058
51fd4002
JB
120592020-01-01 Joel Brobecker <brobecker@adacore.com>
12060
12061 * copyright.py: Adapt after move of gnulib directory from gdb
12062 directory to toplevel directory.
12063
5fb651f2
JB
120642020-01-01 Joel Brobecker <brobecker@adacore.com>
12065
12066 * copyright.py (main): Exit if run from the wrong directory.
12067
5dd8bf88
JB
120682020-01-01 Joel Brobecker <brobecker@adacore.com>
12069
12070 * top.c (print_gdb_version): Change copyright year to 2020.
12071
9f71dacb 120722020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12073
9f71dacb 12074 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12075
9f71dacb 12076For older changes see ChangeLog-2019.
c906108c
SS
12077\f
12078Local Variables:
12079mode: change-log
12080left-margin: 8
12081fill-column: 74
12082version-control: never
57da7796 12083coding: utf-8
c906108c 12084End: