]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Implement missing powerpc mtspr and mfspr extended insns
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
041d9819
SM
12020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * read.h (dwarf2_fetch_die_loc_sect_off,
4 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5 `void *` parameter with function_view.
6 * read.c (dwarf2_fetch_die_loc_sect_off,
7 dwarf2_fetch_die_loc_cu_off): Likewise.
8 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
9 (per_cu_dwarf_call): Adjust.
10 (get_frame_address_in_block_wrapper): Remove.
11 (indirect_synthetic_pointer): Adjust.
12 (get_ax_pc): Remove.
13 (dwarf2_compile_expr_to_ax): Adjust.
14
38f8aa06
TV
152020-08-08 Tom de Vries <tdevries@suse.de>
16
17 PR build/26344
18 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
19 constructor.
20 * regcache.c (get_thread_arch_aspace_regcache): Same.
21
a52b3ae2
TT
222020-08-07 Tom Tromey <tromey@adacore.com>
23
24 * ravenscar-thread.c
25 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
26 New method.
27 (ravenscar_thread_target::wait): Check
28 runtime_initialized.
29 (ravenscar_thread_target::prepare_to_store)
30 (ravenscar_thread_target::stopped_by_sw_breakpoint)
31 (ravenscar_thread_target::stopped_by_hw_breakpoint)
32 (ravenscar_thread_target::stopped_by_watchpoint)
33 (ravenscar_thread_target::stopped_data_address)
34 (ravenscar_thread_target::core_of_thread): Use
35 scoped_restore_current_thread and
36 set_base_thread_from_ravenscar_task.
37
0e29517d
TT
382020-08-07 Tom Tromey <tromey@adacore.com>
39
40 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
41
592f9bd7
TT
422020-08-07 Tom Tromey <tromey@adacore.com>
43
44 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
45 update_inferior_ptid before update_thread_list.
46 (temporarily_change_regcache_ptid): New class.
47 (ravenscar_thread_target::fetch_registers)
48 (ravenscar_thread_target::store_registers)
49 (ravenscar_thread_target::prepare_to_store): Use base thread when
50 forwarding operation.
51
39e2018a
TT
522020-08-07 Tom Tromey <tromey@adacore.com>
53
54 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
55 "is_pid" case.
56
2080266b
TT
572020-08-07 Tom Tromey <tromey@adacore.com>
58
59 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
60 New methods.
61 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
62 first.
63 (ravenscar_thread_target::add_thread): Rename from
64 ravenscar_add_thread.
65 (ravenscar_thread_target::update_thread_list): Use a lambda.
66 (ravenscar_thread_target::xfer_partial): New method.
67
78c02f21
TT
682020-08-07 Tom Tromey <tromey@adacore.com>
69
70 * ada-lang.h (ada_task_list_iterator_ftype): Now a
71 gdb::function_view.
72 (iterate_over_live_ada_tasks): Change type of argument.
73 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
74 of argument.
75
d5d833af
TT
762020-08-07 Tom Tromey <tromey@adacore.com>
77
78 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
79 Remove.
80 (ravenscar_thread_target::extra_thread_info): Remove.
81 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
82 defer to target beneath for non-Ravenscar threads.
83
a8ac85bb
TT
842020-08-07 Tom Tromey <tromey@adacore.com>
85
86 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
87 get_base_thread_from_ravenscar_task>: Now methods.
88 <m_cpu_map>: New member.
89 (ravenscar_thread_target::get_thread_base_cpu): Rename from
90 ravenscar_get_thread_base_cpu. Check m_cpu_map.
91 (ravenscar_thread_target::task_is_currently_active): Update.
92 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
93 Now a method.
94 (ravenscar_thread_target::add_active_thread): Put initial thread
95 into the m_cpu_map.
96
550ab58d
TT
972020-08-07 Tom Tromey <tromey@adacore.com>
98
99 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
100 event_ptid.
101
e9546579
TT
1022020-08-07 Tom Tromey <tromey@adacore.com>
103
104 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
105 runtime_initialized.
106
3d4470e5
TT
1072020-08-07 Tom Tromey <tromey@adacore.com>
108
109 * ravenscar-thread.c (ravenscar_thread_target): Don't call
110 add_active_thread.
111 (ravenscar_thread_target::add_active_thread): Now public.
112 (ravenscar_inferior_created): Call add_active_thread after pushing
113 the target.
114
888bdb2b
SM
1152020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
116
117 * regcache.c (ptid_regcache_map): New type.
118 (target_ptid_regcache_map): New type.
119 (regcaches): Change type to target_ptid_regcache_map.
120 (get_thread_arch_aspace_regcache): Update to regcaches' new
121 type.
122 (regcache_thread_ptid_changed): Likewise.
123 (registers_changed_ptid): Likewise.
124 (regcaches_size): Likewise.
125 (regcaches_test): Update.
126 (regcache_thread_ptid_changed): Update.
127 * regcache.h (regcache_up): New type.
128 * gdbsupport/ptid.h (hash_ptid): New struct.
129
b161a60d
SM
1302020-08-07 Simon Marchi <simon.marchi@efficios.com>
131
132 * observable.h (thread_ptid_changed): Add parameter
133 `process_stratum_target *`.
134 * infrun.c (infrun_thread_ptid_changed): Add parameter
135 `process_stratum_target *` and use it.
136 (selftests): New namespace.
137 (infrun_thread_ptid_changed): New function.
138 (_initialize_infrun): Register selftest.
139 * regcache.c (regcache_thread_ptid_changed): Add parameter
140 `process_stratum_target *` and use it.
141 (regcache_thread_ptid_changed): New function.
142 (_initialize_regcache): Register selftest.
143 * thread.c (thread_change_ptid): Pass target to
144 thread_ptid_changed observable.
145
d2854d8d
CT
1462020-08-06 Caroline Tice <cmtice@google.com>
147
fe4c3d43
SM
148 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
149 (struct dwp_sections): Update field comments. Add loclists and
150 rnglists fields.
151 (struct virtual_v2_dwo_sections): Rename struct to
152 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
153 size & offset fields for loclists and rnglists.
154 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
155 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
156 skipping dummy type units.
157 (create_dwp_hash_table): Update the large comment above the function to
158 discuss Version 5 DWP files as well, with references. Update all the
159 version checks in the function to check for version 5 as well. Add new
160 section at the end to create dwp hash table for version 5.
161 (create_dwp_v2_section): Rename function to
162 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
163 Add V5 to error message text.
164 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
165 into calls to create_dwp_v2_or_v5_section.
166 (create_dwo_unit_in_dwp_v5): New function.
167 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
168 check for version2; add else clause to handle version 5.
169 (open_and_init_dwo_file): Add code to check dwarf version & only call
170 create_debug_types_hash_table (with sections.types) if version is not 5;
171 else call create_debug_type_hash_table, with sections.info.
172 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
173 version 5.
174 (dwarf2_locate_v5_dwp_sections): New function.
175 (open_and_init_dwp_file): Add else-if clause for version 5 to call
176 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 177
159ed7d9
SM
1782020-08-06 Simon Marchi <simon.marchi@efficios.com>
179
180 * regcache.h (class regcache): Remove friend
181 registers_changed_ptid.
182 <regcache_thread_ptid_changed>: Remove.
183 <regcaches>: Remove.
184 * regcache.c (regcache::regcaches): Rename to...
185 (regcaches): ... this. Make static.
186 (get_thread_arch_aspace_regcache): Update.
187 (regcache::regcache_thread_ptid_changed): Rename to...
188 (regcache_thread_ptid_changed): ... this. Update.
189 (class regcache_access): Remove.
190 (regcaches_test): Update.
191 (_initialize_regcache): Update.
192 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
193 <forward_list>.
194
174981ae
SM
1952020-08-06 Simon Marchi <simon.marchi@efficios.com>
196
197 * regcache.h (class regcache) <current_regcache>: Rename to...
198 <regcaches>: ... this. Move doc here.
199 * regcache.c (regcache::current_regcache) Rename to...
200 (regcache::regcaches): ... this. Move doc to header.
201 (get_thread_arch_aspace_regcache): Update.
202 (regcache::regcache_thread_ptid_changed): Update.
203 (registers_changed_ptid): Update.
204 (class regcache_access) <current_regcache_size>: Rename to...
205 <regcaches_size>: ... this.
206 (current_regcache_test): Rename to...
207 (regcaches_test): ... this.
208 (_initialize_regcache): Update.
209
ed908db6
VC
2102020-08-06 Victor Collod <vcollod@nvidia.com>
211
212 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
213
b5582ab7
KB
2142020-08-05 Kevin Buettner <kevinb@redhat.com>
215
216 * corelow.c (core_target::build_file_mappings): Don't output
217 null pathname in warning.
218
ea946b86
SM
2192020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
220
221 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
222 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
223 gdb.dwarf2/dw2-single-line-discriminators.exp,
224 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
225
57d02173
TT
2262020-08-05 Tom Tromey <tromey@adacore.com>
227
228 PR rust/26197:
229 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
230 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
231 Fix off-by-one and type size errors in ordinary case.
232
5555c86d
TV
2332020-08-05 Tom de Vries <tdevries@suse.de>
234
235 * gdbtypes.c (type_not_allocated, type_not_associated): Use
236 "prop->const_val () == 0" instead of "prop->const_val () != 0".
237
97916bfe
SM
2382020-08-04 Simon Marchi <simon.marchi@efficios.com>
239
240 * frame.h (frame_id_p): Return bool.
241 (frame_id_artificial_p): Return bool.
242 (frame_id_eq): Return bool.
243 (has_stack_frames): Return bool.
244 (get_selected_frame): Fix typo in comment.
245 (get_frame_pc_if_available): Return bool.
246 (get_frame_address_in_block_if_available): Return bool.
247 (get_frame_func_if_available): Return bool.
248 (read_frame_register_unsigned): Return bool.
249 (get_frame_register_bytes): Return bool.
250 (safe_frame_unwind_memory): Return bool.
251 (deprecated_frame_register_read): Return bool.
252 (frame_unwinder_is): Return bool.
253 * frame.c (struct frame_info) <prev_arch::p>: Change type to
254 bool.
255 <this_id::p>: Likewise.
256 <prev_p>: Likewise.
257 (frame_stash_add): Return bool.
258 (get_frame_id): Use bool.
259 (frame_id_build_special) Use bool.
260 (frame_id_build_unavailable_stack): Use bool.
261 (frame_id_build): Use bool.
262 (frame_id_p): Return bool, use true/false instead of 1/0.
263 (frame_id_artificial_p): Likewise.
264 (frame_id_eq): Likewise.
265 (frame_id_inner): Likewise.
266 (get_frame_func_if_available): Likewise.
267 (read_frame_register_unsigned): Likewise.
268 (deprecated_frame_register_read): Likewise.
269 (get_frame_register_bytes): Likewise.
270 (has_stack_frames): Likewise.
271 (inside_main_func): Likewise.
272 (inside_entry_func): Likewise.
273 (get_frame_pc_if_available): Likewise.
274 (get_frame_address_in_block_if_available): Likewise.
275 (frame_unwinder_is): Likewise.
276 (safe_frame_unwind_memory): Likewise.
277 (frame_unwind_arch): Likewise.
278
fedfee88
SM
2792020-08-04 Simon Marchi <simon.marchi@efficios.com>
280
281 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
282 type to cached_copy_status.
283 (fprintf_frame): Adjust.
284 (get_frame_func_if_available): Adjust.
285 (frame_cleanup_after_sniffer): Adjust.
286
6cfa9b59
MW
2872020-08-04 Mark Wielaard <mark@klomp.org>
288
289 * MAINTAINERS (Write After Approval): Update email address.
290
66d6346b
SM
2912020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
292
293 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
294 dynamic_prop::const_val.
295
8a6d5e35
SM
2962020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
297
298 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
299 dynamic_prop::kind.
300
51d6067d
SM
3012020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
302
303 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
304
b26e2ae7
JM
3052020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
306
307 * configure.tgt: Set gdb_sim for bpf-*-* targets.
308
39791af2
JM
3092020-08-04 Weimin Pan <weimin.pan@oracle.com>
310 Jose E. Marchesi <jose.marchesi@oracle.com>
311
312 * configure.tgt: Add entry for bpf-*-*.
313 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
314 (ALLDEPFILES): Add bpf-tdep.c.
315 * bpf-tdep.c: New file.
316 * MAINTAINERS: Add bpf target and maintainer.
317 * NEWS: Mention the support for the new target.
318
521894aa
TV
3192020-08-04 Tom de Vries <tdevries@suse.de>
320
321 PR symtab/23270
322 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
323 Error.
324
5d6356e9
JB
3252020-08-03 John Baldwin <jhb@FreeBSD.org>
326
327 * syscalls/freebsd.xml: Regenerate.
328
0cf82b81
JB
3292020-08-03 John Baldwin <jhb@FreeBSD.org>
330
331 * syscalls/update-freebsd.sh: Fix usage and year range.
332
8f34b746
TV
3332020-08-03 Tom de Vries <tdevries@suse.de>
334
335 PR symtab/26333
336 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
337 DW_LNE_lo_user/DW_LNE_hi_user range.
338
5e500d33
SM
3392020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
340
341 PR ada/26318
342 * ada-lang.c (ada_modulus): Return 0 if property is not of const
343 kind.
344
78319c15
TBA
3452020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
346
347 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
348
4c55e970
TBA
3492020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
350
351 * breakpoint.c (set_breakpoint_condition): Update the condition
352 expressions after checking that the input condition string parses
353 successfully and does not contain junk at the end.
354
1e620590
TBA
3552020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
356
357 * breakpoint.c (set_breakpoint_condition): Update the
358 condition string after parsing the new condition successfully.
359
c8693053
RO
3602020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
361
362 * proc-api.c (_STRUCTURED_PROC): Don't define.
363 * proc-events.c: Likewise.
364 * proc-flags.c: Likewise.
365 * proc-why.c: Likewise.
366 * procfs.c: Likewise.
367
368 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
369 * configure, config.in: Regenerate.
370
5a99adb8
TV
3712020-07-30 Tom de Vries <tdevries@suse.de>
372
373 PR build/26320
374 * ui-style.h (struct ui_file_style::color): Wrap m_value and
375 m_red/m_green/m_blue in a union.
376
8ba83e91
TV
3772020-07-29 Tom de Vries <tdevries@suse.de>
378
379 PR tdep/26280
380 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
381
f75a0693
AB
3822020-07-28 Tom Tromey <tromey@adacore.com>
383
384 PR symtab/26270:
385 * symtab.h (find_pc_partial_function_sym): Declare.
386 * cli/cli-cmds.c (disassemble_command): Use
387 find_pc_partial_function_sym. Check asm_demangle.
388 * blockframe.c (cache_pc_function_sym): New global.
389 (cache_pc_function_name): Remove.
390 (clear_pc_function_cache): Update.
391 (find_pc_partial_function_sym): New function, from
392 find_pc_partial_function.
393 (find_pc_partial_function): Rewrite using
394 find_pc_partial_function_sym.
395
16f3242c
TT
3962020-07-28 Tom Tromey <tromey@adacore.com>
397
398 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
399 help. Add usage.
400
4888741a
TT
4012020-07-28 Tom Tromey <tromey@adacore.com>
402
403 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
404 <DW_OP_GNU_variable_value>: Cast to address type.
405
4d46f402
KR
4062020-07-28 Kamil Rytarowski <n54@gmx.com>
407
408 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
409 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
410 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
411 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
412 (nbsd_get_siginfo_type): New.
413 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
414 (_initialize_nbsd_tdep): New.
415
d70f978b
L
4162020-07-28 H.J. Lu <hongjiu.lu@intel.com>
417
418 PR binutils/26301
419 * configure: Regenerated.
420
377170fa
L
4212020-07-28 H.J. Lu <hongjiu.lu@intel.com>
422
423 PR binutils/26301
424 * configure: Regenerated.
425
43d5901d
AB
4262020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
427
428 * python/py-frame.c: Remove 'user-regs.h' include.
429 (frapy_read_register): Rewrite to make use of
430 gdbpy_parse_register_id.
431 * python/py-registers.c (gdbpy_parse_register_id): New function,
432 moved here from python/py-unwind.c. Updated the return type, and
433 also accepts register descriptor objects.
434 * python/py-unwind.c: Remove 'user-regs.h' include.
435 (pyuw_parse_register_id): Moved to python/py-registers.c.
436 (unwind_infopy_add_saved_register): Update to use
437 gdbpy_parse_register_id.
438 (pending_framepy_read_register): Likewise.
439 * python/python-internal.h (gdbpy_parse_register_id): Declare.
440
14fa8fb3
AB
4412020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
442
443 * python/py-registers.c: Add 'user-regs.h' include.
444 (register_descriptor_iter_find): New function.
445 (register_descriptor_iterator_object_methods): New static global
446 methods array.
447 (register_descriptor_iterator_object_type): Add pointer to methods
448 array.
449
ddce1758
JB
4502020-07-27 John Baldwin <jhb@FreeBSD.org>
451
452 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
453 for all architectures on FreeBSD 11.3 and later.
454
a4089f52
TT
4552020-07-27 Tom Tromey <tromey@adacore.com>
456
457 * gcore.h (load_corefile): Don't declare.
458
95420d30
TV
4592020-07-27 Tom de Vries <tdevries@suse.de>
460
461 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
462 * config.in: Regenerate.
463 * configure: Regenerate.
464
05a6b8c2
EZ
4652020-07-26 Eli Zaretskii <eliz@gnu.org>
466
467 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
468 ws2tcpip.h. When checking whether socklen_t type is defined, use
469 ws2tcpip.h if it is available and sys/socket.h isn't.
470 * configure: Regenerate.
471 * config.in: Regenerate.
472
e79eb02f
AB
4732020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
474
475 PR fortran/23051
476 PR fortran/26139
477 * valops.c (value_ind): Pass address to
478 readjust_indirect_value_type.
479 * value.c (readjust_indirect_value_type): Make parameter
480 non-const, and add extra address parameter. Resolve original type
481 before using it.
482 * value.h (readjust_indirect_value_type): Update function
483 signature and comment.
484
876518dd
TV
4852020-07-25 Tom de Vries <tdevries@suse.de>
486
487 PR symtab/26243
488 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
489 entries.
490
f6720b1c
AM
4912020-07-24 Aaron Merey <amerey@redhat.com>
492
493 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
494 * configure: Rebuild.
495
513487e1
KB
4962020-07-23 Kevin Buettner <kevinb@redhat.com>
497
498 PR corefiles/26294
499 * corelow.c (_initialize_corelow): Add period to help text
500 for "maintenance print core-file-backed-mappings".
501
e7bc9db8
PA
5022020-07-23 Pedro Alves <pedro@palves.net>
503
504 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
505 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
506 meanwhile.
507 * frame.c (frame_cache_generation, get_frame_cache_generation):
508 New.
509 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
510 (get_prev_frame_if_no_cycle): On exception, don't touch
511 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
512 * frame.h (get_frame_cache_generation): Declare.
513
90fcc466
TV
5142020-07-23 Tom de Vries <tdevries@suse.de>
515
516 PR tui/26282
517 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
518 New default constructor.
519
78344df7
AB
5202020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
521
522 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
523 exclude non-statement entries.
524
b089853a
KB
5252020-07-22 Kevin Buettner <kevinb@redhat.com>
526
527 * NEWS (New commands): Mention new command
528 "maintenance print core-file-backed-mappings".
529
09c2f5d4
KB
5302020-07-22 Kevin Buettner <kevinb@redhat.com>
531
532 * corelow.c (gdbcmd.h): Include.
533 (core_target::info_proc_mappings): New method.
534 (get_current_core_target): New function.
535 (maintenance_print_core_file_backed_mappings): New function.
536 (_initialize_corelow): Add core-file-backed-mappings to
537 "maint print" commands.
538
9c5ec5c2 5392020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 540
9c5ec5c2
KB
541 * linux-tdep.c (dump_note_entry_p): New function.
542 (linux_dump_mapping_p_ftype): New typedef.
543 (linux_find_memory_regions_full): Add new parameter,
544 should_dump_mapping_p.
545 (linux_find_memory_regions): Adjust call to
546 linux_find_memory_regions_full.
547 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
548 call to linux_find_memory_regions_full.
549
db082f59
KB
5502020-07-22 Kevin Buettner <kevinb@redhat.com>
551
552 * corelow.c (solist.h, unordered_map): Include.
553 (class core_target): Add field m_core_file_mappings and
554 method build_file_mappings.
555 (core_target::core_target): Call build_file_mappings.
556 (core_target::~core_target): Free memory associated with
557 m_core_file_mappings.
558 (core_target::build_file_mappings): New method.
559 (core_target::xfer_partial): Use m_core_file_mappings
560 for memory transfers.
561 * linux-tdep.c (linux_read_core_file_mappings): New
562 function.
563 (linux_core_info_proc_mappings): Rewrite to use
564 linux_read_core_file_mappings.
565 (linux_init_abi): Register linux_read_core_file_mappings.
566
7e183d27
KB
5672020-07-22 Kevin Buettner <kevinb@redhat.com>
568
569 * arch-utils.c (default_read_core_file_mappings): New function.
570 * arch-utils.c (default_read_core_file_mappings): Declare.
571 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
572 * gdbarch.h, gdbarch.c: Regenerate.
573
2735d421
KB
5742020-07-22 Kevin Buettner <kevinb@redhat.com>
575
576 PR corefiles/25631
577 * corelow.c (core_target:xfer_partial): Revise
578 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
579 case after first checking the stratum beneath the core
580 target.
581 (has_all_memory): Return true.
582 * target.c (raw_memory_xfer_partial): Revise comment
583 regarding use of has_all_memory.
584
e56cb451
KB
5852020-07-22 Kevin Buettner <kevinb@redhat.com>
586
587 * exec.h (section_table_xfer_memory): Revise declaration,
588 replacing section name parameter with an optional callback
589 predicate.
590 * exec.c (section_table_xfer_memory): Likewise.
591 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
592 of section_table_xfer_memory.
593
32fa152e
TT
5942020-07-22 Tom Tromey <tromey@adacore.com>
595
596 * mi/mi-cmd-stack.c (list_args_or_locals): Use
597 lookup_symbol_search_name.
598
a67a1c41
AB
5992020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
600
601 * python/py-registers.c (gdbpy_register_object_data_init): Remove
602 redundant local variable.
603 (gdbpy_get_register_descriptor): Extract descriptor vector as a
604 reference, not pointer, update code accordingly.
605
a7b4ff4f
SM
6062020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
607 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
608
609 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
610 * jit.c (jit_breakpoint_re_set_internal): Use the
611 `skip_jit_symbol_lookup` field.
612
2340e834
SM
6132020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
614 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
615
616 * jit.c (jit_read_descriptor): Define the descriptor address once,
617 use twice.
618 (jit_breakpoint_deleted): Move the declaration of the loop variable
619 `iter` into the loop header.
620 (jit_breakpoint_re_set_internal): Move the declaration of the local
621 variable `objf_data` to the first point of definition.
622 (jit_event_handler): Move the declaration of local variables
623 `code_entry`, `entry_addr`, and `objf` to their first point of use.
624 Rename `objf` to `jited`.
625
c1072906
SM
6262020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
627
628 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
629 Remove.
630 * jit.c (get_jiter_objfile_data): Update.
631
c8474dc3
TBA
6322020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
633 Simon Marchi <simon.marchi@polymtl.ca>
634
635 * jit.c (struct jit_program_space_data): Remove.
636 (jit_program_space_key): Remove.
637 (jiter_objfile_data::~jiter_objfile_data): Remove program space
638 stuff.
639 (get_jit_program_space_data): Remove.
640 (jit_breakpoint_deleted): Iterate on all of the program space's
641 objfiles.
642 (jit_inferior_init): Likewise.
643 (jit_breakpoint_re_set_internal): Likewise. Also change return
644 type to void.
645 (jit_breakpoint_re_set): Pass current_program_space to
646 jit_breakpoint_re_set_internal.
647
77208eb7
SM
6482020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
649
650 * jit.h (struct jiter_objfile_data) <cached_code_address,
651 jit_breakpoint>: Move to here from ...
652 * jit.c (jit_program_space_data): ... here.
653 (jiter_objfile_data::~jiter_objfile_data): Update.
654 (jit_breakpoint_deleted): Update.
655 (jit_breakpoint_re_set_internal): Update.
656
8c1c720f
SM
6572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
658
659 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
660 checks.
661 (jit_read_descriptor): Remove NULL check.
662 (jit_event_handler): Add an assertion.
663
0e74a041
SM
6642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
665
666 * jit.h (struct jit_objfile_data): Split into...
667 (struct jiter_objfile_data): ... this ...
668 (struct jited_objfile_data): ... and this.
669 * objfiles.h (struct objfile) <jit_data>: Remove.
670 <jiter_data, jited_data>: New fields.
671 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
672 (jiter_objfile_data::~jiter_objfile_data): ... this.
673 (get_jit_objfile_data): Rename to ...
674 (get_jiter_objfile_data): ... this.
675 (add_objfile_entry): Update.
676 (jit_read_descriptor): Use get_jiter_objfile_data.
677 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
678 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
679 (jit_inferior_exit_hook): Use objfile's jited_data field.
680
238b5c9f
SM
6812020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
682
683 * jit.h: Forward-declare `struct minimal_symbol`.
684 (struct jit_objfile_data): Migrate to here from jit.c; also add a
685 constructor, destructor, and an objfile* field.
686 * jit.c (jit_objfile_data): Remove.
687 (struct jit_objfile_data): Migrate from here to jit.h.
688 (jit_objfile_data::~jit_objfile_data): New destructor
689 implementation with code moved from free_objfile_data.
690 (free_objfile_data): Delete.
691 (get_jit_objfile_data): Update to use the jit_data field of objfile.
692 (jit_find_objf_with_entry_addr): Ditto.
693 (jit_inferior_exit_hook): Ditto.
694 (_initialize_jit): Remove the call to
695 register_objfile_data_with_cleanup.
696 * objfiles.h (struct objfile) <jit_data>: New field.
697
fe053b9e
TBA
6982020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
699
700 * jit.h: Forward-declare `struct objfile`.
701 (jit_event_handler): Add a second parameter, the JITer objfile.
702 * jit.c (jit_read_descriptor): Change the signature to take the
703 JITer objfile as an argument instead of the jit_program_space_data.
704 (jit_inferior_init): Update the call to jit_read_descriptor.
705 (jit_event_handler): Use the new JITer objfile argument when calling
706 jit_read_descriptor.
707 * breakpoint.c (handle_jit_event): Update the call to
708 jit_event_handler to pass the JITer objfile.
709
4cec0c66
JB
7102020-07-21 John Baldwin <jhb@FreeBSD.org>
711
712 * gdbarch.c: Regenerate.
713 * gdbarch.h: Regenerate.
714 * gdbarch.sh (handle_segmentation_fault): Remove method.
715 * infrun.c (handle_segmentation_fault): Remove.
716 (print_signal_received_reason): Remove call to
717 handle_segmentation_fault.
718
0e42f66a
JB
7192020-07-21 John Baldwin <jhb@FreeBSD.org>
720
721 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
722 Rename to sparc64_linux_report_signal_info and add siggnal
723 argument.
724 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
725 instead of sparc64_linux_handle_segmentation_fault.
726
77bdfeb2
JB
7272020-07-21 John Baldwin <jhb@FreeBSD.org>
728
729 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
730 i386_linux_report_signal_info instead of
731 i386_linux_handle_segmentation_fault.
732 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
733 to i386_linux_report_signal_info and add siggnal argument.
734 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
735 of i386_linux_handle_segmentation_fault.
736 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
737 to i386_linux_report_signal_info and add siggnal argument.
738
ad97bfc5
JB
7392020-07-21 John Baldwin <jhb@FreeBSD.org>
740
741 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
742 hook if present.
743
272bb05c
JB
7442020-07-21 John Baldwin <jhb@FreeBSD.org>
745
746 * gdbarch.c: Regenerate.
747 * gdbarch.h: Regenerate.
748 * gdbarch.sh (report_signal_info): New method.
749 * infrun.c (print_signal_received_reason): Invoke gdbarch
750 report_signal_info hook if present.
751
baf8791e
AB
7522020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
753
754 * python/py-registers.c : Add 'unordered_map' include.
755 (gdbpy_new_reggroup): Renamed to...
756 (gdbpy_get_reggroup): ...this. Update to only create register
757 group descriptors when needed.
758 (gdbpy_reggroup_iter_next): Update.
759
f7306dac
AB
7602020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
761
762 * python/py-registers.c (gdbpy_register_object_data): New static
763 global.
764 (gdbpy_register_object_data_init): New function.
765 (gdbpy_new_register_descriptor): Renamed to...
766 (gdbpy_get_register_descriptor): ...this, and update to reuse
767 existing register descriptors where possible.
768 (gdbpy_register_descriptor_iter_next): Update.
769 (gdbpy_initialize_registers): Register new gdbarch data.
770
05c309a8
SM
7712020-07-21 Simon Marchi <simon.marchi@efficios.com>
772
773 * linux-nat.c (stopped_pids): Make static.
774
d1fd641e
SM
7752020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
776
777 PR ada/26235
778 * gdbtypes.c (ada_discrete_type_low_bound,
779 ada_discrete_type_high_bound): Handle undefined bounds.
780
1de14d77
KR
7812020-07-21 Kamil Rytarowski <n54@gmx.com>
782
783 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
784 declaration.
785 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
786 function.
787
ed810cc7
JB
7882020-07-20 John Baldwin <jhb@FreeBSD.org>
789
790 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
791 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
792 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
793 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
794 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
795 method.
796
ae5369e7
LC
7972020-07-20 Ludovic Courtès <ludo@gnu.org>
798
799 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
800 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
801 which are deprecated in Guile 3.0.
802 * configure.ac (try_guile_versions): Add "guile-3.0".
803 * configure (try_guile_versions): Regenerate.
804 * NEWS: Update entry.
805
68cf161c
LC
8062020-07-20 Ludovic Courtès <ludo@gnu.org>
807 Doug Evans <dje@google.com>
808
809 PR gdb/21104
810 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
811 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
812 USING_GUILE_BEFORE_2_2.
813 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
814 Change type to 'scm_t_port_type *'.
815 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
816 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
817 parameter and honor it. Update callers.
818 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
819 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
820 functions.
821 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
822 USING_GUILE_BEFORE_2_2.
823 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
824 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
825 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
826 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
827 and 'SCM_PORT_TYPE'.
828 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
829 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
830 (gdbscm_memory_port_read, gdbscm_memory_port_write)
831 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
832 [!USING_GUILE_BEFORE_2_2]: New functions.
833 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
834 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
835 'gdbscm_memory_port_read'.
836 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
837 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
838 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
839 function.
840 (ioscm_init_memory_port): Remove.
841 (ioscm_init_memory_port_stream): New function
842 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
843 function.
844 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
845 Return scm_from_uint (0).
846 (gdbscm_set_memory_port_read_buffer_size_x)
847 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
848 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
849 Return scm_from_uint (0).
850 (gdbscm_set_memory_port_write_buffer_size_x)
851 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
852 * configure.ac (try_guile_versions): Add "guile-2.2".
853 * configure: Regenerate.
854 * NEWS: Add entry.
855
aee91db3
TT
8562020-07-18 Tom Tromey <tom@tromey.com>
857
858 * linux-nat.c (linux_multi_process): Remove.
859 (linux_nat_target::supports_multi_process): Return true.
860
0e267416
AB
8612020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
862
863 * arch/riscv.c (riscv_tdesc_cache): Change map type.
864 (riscv_lookup_target_description): Return pointer out of
865 unique_ptr.
866 * target-descriptions.c (allocate_target_description): Add
867 comment.
868 (target_desc_deleter::operator()): Likewise.
869 * target-descriptions.h (struct target_desc_deleter): Moved to
870 gdbsupport/tdesc.h.
871 (target_desc_up): Likewise.
872
f80c8ec4
TT
8732020-07-17 Tom Tromey <tromey@adacore.com>
874
875 * linux-nat.c (linux_nat_target::supports_non_stop)
876 (linux_nat_target::always_non_stop_p): Use "true".
877 (linux_nat_target::supports_disable_randomization): Use "true" and
878 "false".
879
d0ce17d8
CT
8802020-07-16 Caroline Tice <cmtice@google.com>
881
882 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
883 (RNGLIST_HEADER_SIZE64): New constant definition.
884 (struct dwop_section_names): Add rnglists_dwo.
885 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
886 (struct loclist_header): Rename to 'loclists_rnglists_header'.
887 (struct dwo_sections): Add rnglists field.
888 (read_attribut_reprocess): Add tag parameter.
889 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
890 (cu_debug_rnglists_section): New function (decl & definition).
891 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
892 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
893 die whose range is being checked; get rnglist section from
894 cu_debug_rnglists_section, to get from either objfile or dwo file as
895 appropriate. Add cases for DW_RLE_base_addressx,
896 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
897 the base address to DW_RLE_offset_pairs (not to all ranges), moving
898 test inside if-condition and updating complaint message.
899 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
900 dwarf2_rnglists_process.
901 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
902 dwarf2_ranges_process.
903 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
904 need_ranges_base and update comment appropriately. Also pass die tag
905 to dwarf2_ranges_read.
906 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
907 need_ranges_base and update comment appropriately. Also pass die tag
908 to dwarf2_ranges_process.
909 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
910 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
911 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
912 need_ranges_base and update comment appropriately. Also pass die tag
913 to read_attribute_reprocess and dwarf2_ranges_read.
914 (read_loclist_header): Rename function to read_loclists_rnglists_header,
915 and update function comment appropriately.
916 (read_loclist_index): Call read_loclists_rnglists_header instead of
917 read_loclist_header.
918 (read_rnglist_index): New function.
919 (read_attribute_reprocess): Add tag parameter. Add code for
920 DW_FORM_rnglistx, passing tag to read_rnglist_index.
921 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
922
3dcc261c
AB
9232020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
924
925 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
926 being resolved.
927
ccb9eba6
AB
9282020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
929
930 * arch-utils.c (show_architecture): Update formatting of messages.
931
cf88be68
SM
9322020-07-12 Simon Marchi <simon.marchi@efficios.com>
933
934 * gdbtypes.h (struct type) <bounds>: Handle array and string
935 types.
936 * ada-lang.c (assign_aggregate): Use type::bounds on
937 array/string type.
938 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
939 * c-varobj.c (c_number_of_children): Likewise.
940 (c_describe_child): Likewise.
941 * eval.c (evaluate_subexp_for_sizeof): Likewise.
942 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
943 (f_type_print_base): Likewise.
944 * f-valprint.c (f77_array_offset_tbl): Likewise.
945 (f77_get_upperbound): Likewise.
946 (f77_print_array_1): Likewise.
947 * guile/scm-type.c (gdbscm_type_range): Likewise.
948 * m2-typeprint.c (m2_array): Likewise.
949 (m2_is_long_set_of_type): Likewise.
950 * m2-valprint.c (get_long_set_bounds): Likewise.
951 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
952 * python/py-type.c (typy_range): Likewise.
953 * rust-lang.c (rust_internal_print_type): Likewise.
954 * type-stack.c (type_stack::follow_types): Likewise.
955 * valarith.c (value_subscripted_rvalue): Likewise.
956 * valops.c (value_cast): Likewise.
957
509971ae
SM
9582020-07-12 Simon Marchi <simon.marchi@efficios.com>
959
960 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
961 callers to use the equivalent accessor methods.
962
107406b7
SM
9632020-07-12 Simon Marchi <simon.marchi@efficios.com>
964
965 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
966 (struct type) <bit_stride>: New method.
967 (TYPE_BIT_STRIDE): Remove.
968 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
969
bb789949
SM
9702020-07-12 Simon Marchi <simon.marchi@efficios.com>
971
972 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
973 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
974 callers to use the equivalent accessor methods instead.
975
39498edb
SM
9762020-07-12 Simon Marchi <simon.marchi@efficios.com>
977
978 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
979 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
980 callers to use the equivalent accessor methods instead.
981
3b606f38
SM
9822020-07-12 Simon Marchi <simon.marchi@efficios.com>
983
984 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
985 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
986 to use dynamic_prop::kind.
987
064d9cb9
SM
9882020-07-12 Simon Marchi <simon.marchi@efficios.com>
989
990 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
991 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
992 to get the bound property's kind and check against
993 PROP_UNDEFINED.
994
5537ddd0
SM
9952020-07-12 Simon Marchi <simon.marchi@efficios.com>
996
997 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
998 all callers to use type::range_bounds followed by
999 dynamic_prop::{low,high}.
1000
8c2e4e06
SM
10012020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1002
1003 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1004 const_val, set_const_val, baton, set_locexpr, set_loclist,
1005 set_addr_offset, variant_parts, set_variant_parts,
1006 original_type, set_original_type>: New methods.
1007 <kind>: Rename to...
1008 <m_kind>: ... this. Update all users to use the new methods
1009 instead.
1010 <data>: Rename to...
1011 <m_data>: ... this. Update all users to use the new methods
1012 instead.
1013
7c6f2712
SM
10142020-07-12 Simon Marchi <simon.marchi@efficios.com>
1015
1016 * gdbtypes.c (get_discrete_bounds): Return failure if
1017 the range type's bounds are not both defined and constant
1018 values.
1019 (get_array_bounds): Update comment. Remove undefined bound check.
1020
599088e3
SM
10212020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1022
1023 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1024 the type::bounds method directly.
1025
c4dfcb36
SM
10262020-07-12 Simon Marchi <simon.marchi@efficios.com>
1027
1028 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1029 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1030 are used to set the range type's bounds to use set_bounds.
1031
0a278aa7
PW
10322020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1033
1034 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1035
cce20f10
PA
10362020-07-10 Pedro Alves <pedro@palves.net>
1037
1038 * gdbthread.h (inferior_ref): Define.
1039 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1040 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1041 * thread.c
1042 (scoped_restore_current_thread::restore):
1043 Adjust to gdb::ref_ptr.
1044 (scoped_restore_current_thread::~scoped_restore_current_thread):
1045 Remove manual decref handling.
1046 (scoped_restore_current_thread::scoped_restore_current_thread):
1047 Adjust to use
1048 inferior_ref::new_reference/thread_info_ref::new_reference.
1049 Incref the thread before calling get_frame_id instead of after.
1050 Let TARGET_CLOSE_ERROR propagate.
1051
6d7aa592
PA
10522020-07-10 Pedro Alves <pedro@palves.net>
1053
1054 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1055 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1056 NOT_AVAILABLE_ERROR.
1057 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1058 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1059
b3e3a4c1
SM
10602020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1061 Pedro Alves <pedro@palves.net>
1062
1063 PR gdb/26199
1064 * infrun.c (threads_are_resumed_pending_p): Delete.
1065 (do_target_wait): Remove threads_are_executing and
1066 threads_are_resumed_pending_p checks from the inferior_matches
1067 lambda. Update comments.
1068
d6cc5d98
PA
10692020-07-10 Pedro Alves <pedro@palves.net>
1070
1071 PR gdb/26199
1072 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1073 executing threads.
1074
7d3badc6
PA
10752020-07-10 Pedro Alves <pedro@palves.net>
1076
1077 PR gdb/26199
1078 * infrun.c (handle_no_resumed): Handle multiple targets.
1079
42bd97a6
PA
10802020-07-10 Pedro Alves <pedro@palves.net>
1081
1082 PR gdb/26199
1083 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1084 target_is_async_p.
1085
43667cc6
PA
10862020-07-10 Pedro Alves <pedro@palves.net>
1087
1088 PR gdb/26199
1089 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1090 threads, not all threads.
1091
96118d11
PA
10922020-07-10 Pedro Alves <pedro@palves.net>
1093
1094 PR gdb/26199
1095 * remote.c (remote_target::open_1): Pass remote target pointer as
1096 data to create_async_event_handler.
1097 (remote_async_inferior_event_handler): Mark async event handler
1098 before returning if the remote target still has either pending
1099 events or unacknowledged notifications.
1100
54904d81
JB
11012020-07-10 John Baldwin <jhb@FreeBSD.org>
1102
1103 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1104 declaration.
1105 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1106 function.
1107
f37e5866
JB
11082020-07-09 John Baldwin <jhb@FreeBSD.org>
1109
1110 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1111 inferior_ptid.
1112
fc238d4a
JB
11132020-07-09 John Baldwin <jhb@FreeBSD.org>
1114
1115 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1116 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1117 AT_FREEBSD_PS_STRINGS.
1118
6e2469ff
HD
11192020-07-08 Hannes Domani <ssbssa@yahoo.de>
1120
1121 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1122 of debugfile path on Windows.
1123
d1076c41
JB
11242020-07-08 John Baldwin <jhb@FreeBSD.org>
1125
1126 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1127 argument to 'data'.
1128
15f3b077
TT
11292020-07-08 Tom Tromey <tromey@adacore.com>
1130
1131 * ada-lang.c (ada_exception_message_1): Use read_memory.
1132
9fc501fd
AB
11332020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1134
1135 PR python/22748
1136 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1137 special handling for inline frames.
1138 * findvar.c (value_of_register_lazy): Skip inline frames when
1139 creating lazy register values.
1140 * frame.c (frame_id_computed_p): Delete definition.
1141 * frame.h (frame_id_computed_p): Delete declaration.
1142
64cb3757
AB
11432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1144
1145 * NEWS: Mention additions to Python API.
1146 * python/py-arch.c (archpy_register_groups): New function.
1147 (arch_object_methods): Add 'register_groups' method.
1148 * python/py-registers.c (reggroup_iterator_object): New struct.
1149 (reggroup_object): New struct.
1150 (gdbpy_new_reggroup): New function.
1151 (gdbpy_reggroup_to_string): New function.
1152 (gdbpy_reggroup_name): New function.
1153 (gdbpy_reggroup_iter): New function.
1154 (gdbpy_reggroup_iter_next): New function.
1155 (gdbpy_new_reggroup_iterator): New function
1156 (gdbpy_initialize_registers): Register new types.
1157 (reggroup_iterator_object_type): Define new Python type.
1158 (gdbpy_reggroup_getset): New static global.
1159 (reggroup_object_type): Define new Python type.
1160 * python/python-internal.h
1161
0f767f94
AB
11622020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1163
1164 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1165 * python/py-arch.c (archpy_registers): New function.
1166 (arch_object_methods): Add 'registers' method.
1167 * python/py-registers.c: New file.
1168 * python/python-internal.h
1169 (gdbpy_new_register_descriptor_iterator): Declare.
1170 (gdbpy_initialize_registers): Declare.
1171 * python/python.c (do_start_initialization): Call
1172 gdbpy_initialize_registers.
1173 * NEWS: Mention additions to the Python API.
1174
87dbc774
AB
11752020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1176
1177 * NEWS: Mention new Python API method.
1178 * python/py-unwind.c (pending_framepy_architecture): New function.
1179 (pending_frame_object_methods): Add architecture method.
1180
3bc98c0c
AB
11812020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1182
1183 * gdbarch.c: Regenerate.
1184 * gdbarch.h: Regenerate.
1185 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1186 (gdbarch_data): Use internal_error for the case where
1187 deprecated_set_gdbarch_data was originally needed.
1188 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1189 and use passed in obstack.
1190 (libunwind_frame_set_descr): Should no longer get back NULL from
1191 gdbarch_data.
1192 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1193 type.
1194 * user-regs.c (user_regs_init): Update parameters, and use passed
1195 in obstack.
1196 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1197 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1198
d8cc8af6
TV
11992020-07-06 Tom de Vries <tdevries@suse.de>
1200
1201 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1202 End-Of-Sequence in lte_is_less_than.
1203 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1204 "gdb: Don't reorder line table entries too much when sorting".
1205
947f7597
TV
12062020-07-06 Tom de Vries <tdevries@suse.de>
1207
1208 PR tui/26205
1209 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1210
1e7c1b22
TV
12112020-07-05 Tom de Vries <tdevries@suse.de>
1212
1213 PR build/26187
1214 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1215 std::uncaught_exceptions instead of deprecated
1216 std::uncaught_exception.
1217
a36158ec
SM
12182020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1219
1220 * macroexp.h (macro_stringify): Return
1221 gdb::unique_xmalloc_ptr<char>.
1222 * macroexp.c (macro_stringify): Likewise.
1223 * macrotab.c (fixup_definition): Update.
1224
14d960c8
SM
12252020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1226
1227 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1228 (lex_one_token): Update.
1229 * macroexp.c (struct macro_buffer) <release>: Return
1230 gdb::unique_xmalloc_ptr<char>.
1231 (macro_stringify): Update.
1232 (macro_expand): Update.
1233 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1234 * macroexp.h (macro_expand_next): Likewise.
1235
211d5b1c
SM
12362020-07-02 Simon Marchi <simon.marchi@efficios.com>
1237
1238 * macroexp.h (macro_lookup_ftype): Remove.
1239 (macro_expand, macro_expand_once, macro_expand_next): Remove
1240 lookup function parameters, add scope parameter.
1241 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1242 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1243 * macroscope.h (standard_macro_lookup): Change parameter type
1244 to macro_scope.
1245 * macroscope.c (standard_macro_lookup): Likewise.
1246 * c-exp.y (lex_one_token): Update.
1247 * macrocmd.c (macro_expand_command): Likewise.
1248 (macro_expand_once_command): Likewise.
1249
b1a35af2
SM
12502020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1251
1252 * inf-loop.c (inferior_event_handler): Remove client_data param.
1253 * inf-loop.h (inferior_event_handler): Likewise.
1254 * infcmd.c (step_1): Adjust.
1255 * infrun.c (proceed): Adjust.
1256 (fetch_inferior_event): Remove client_data param.
1257 (infrun_async_inferior_event_handler): Adjust.
1258 * infrun.h (fetch_inferior_event): Remove `void *` param.
1259 * linux-nat.c (handle_target_event): Adjust.
1260 * record-btrace.c (record_btrace_handle_async_inferior_event):
1261 Adjust.
1262 * record-full.c (record_full_async_inferior_event_handler):
1263 Adjust.
1264 * remote.c (remote_async_inferior_event_handler): Adjust.
1265
1cdf9e33
TT
12662020-07-01 Tom Tromey <tom@tromey.com>
1267
1268 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1269 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1270
32c1e210
TT
12712020-07-01 Tom Tromey <tom@tromey.com>
1272
1273 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1274 tui_gen_win_info.
1275 (tui_win_info::make_window): Merge with
1276 tui_gen_win_info::make_window.
1277 (tui_win_info::make_visible): Move from tui_gen_win_info.
1278 * tui/tui-win.c (tui_win_info::max_width): Move from
1279 tui_gen_win_info.
1280 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1281 type.
1282 <window_factory>: Likewise.
1283 * tui/tui-layout.c (tui_win_info::resize): Move from
1284 tui_gen_win_info.
1285 (make_standard_window): Change return type.
1286 (get_locator_window, tui_get_window_by_name): Likewise.
1287 (tui_layout_window::apply): Remove a cast.
1288 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1289 (struct tui_win_info): Merge with tui_gen_win_info.
1290 (struct tui_gen_win_info): Remove.
1291
a30cb6da
TT
12922020-07-01 Tom Tromey <tom@tromey.com>
1293
1294 * tui/tui-stack.h (struct tui_locator_window): Derive from
1295 tui_win_info.
1296 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1297 <can_box>: New method.
1298
1eb2161f
TT
12992020-07-01 Tom Tromey <tom@tromey.com>
1300
1301 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1302
7134f2eb
TT
13032020-07-01 Tom Tromey <tom@tromey.com>
1304
1305 * tui/tui-regs.c (tui_data_window::display_registers_from)
1306 (tui_data_window::display_registers_from)
1307 (tui_data_window::first_data_item_displayed)
1308 (tui_data_window::delete_data_content_windows): Update.
1309 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1310 Remove.
1311 (tui_data_window::check_register_values): Update.
1312 (tui_data_item_window::rerender): Add parameters. Update.
1313 (tui_data_item_window::refresh_window): Remove.
1314 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1315 virtual.
1316 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1317 tui_gen_win_info.
1318 <refresh_window, max_height, min_height>: Remove.
1319 <rerender>: Add parameters.
1320 <x, y, visible>: New members.
1321 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1322 <m_item_width>: New member.
1323
22b7b041
TT
13242020-07-01 Tom Tromey <tom@tromey.com>
1325
1326 * tui/tui-regs.c (tui_data_window::show_register_group)
1327 (tui_data_window::check_register_values): Update.
1328 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1329 from item_no.
1330
c9753adb
TT
13312020-07-01 Tom Tromey <tom@tromey.com>
1332
1333 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1334 useless "if".
1335
9ab26b4a
TT
13362020-07-01 Tom Tromey <tom@tromey.com>
1337
1338 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1339 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1340
e555083f
TT
13412020-07-01 Tom Tromey <tom@tromey.com>
1342
1343 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1344 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1345 (struct tui_line_or_address): Move from tui-data.h.
1346 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1347 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1348 (tui_cmd_window, tui_source_window_base, tui_source_window)
1349 (tui_disasm_window): Don't declare.
1350 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1351 to tui-winsource.h.
1352 (SINGLE_KEY): Move to tui-stack.c.
1353
7a02bab7
TT
13542020-07-01 Tom Tromey <tom@tromey.com>
1355
1356 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1357 std::string.
1358 * tui/tui-regs.c (class tab_expansion_file): New.
1359 (tab_expansion_file::write): New method.
1360 (tui_register_format): Change return type. Use
1361 tab_expansion_file.
1362 (tui_get_register, tui_data_window::display_registers_from)
1363 (tui_data_item_window::rerender): Update.
1364 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1365 * tui/tui-io.c (tui_expand_tabs): Remove.
1366
ea68593b
TT
13672020-07-01 Tom Tromey <tom@tromey.com>
1368
1369 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1370
a8caed5d
FS
13712020-07-01 Fangrui Song <maskray@google.com>
1372
1373 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1374
9cdf9820
AKS
13752020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1376
1377 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1378 forms for DW_AT_associated and DW_AT_allocated attributes,
1379 which is already checked in function attr_to_dynamic_prop.
1380
a1520ad8
TT
13812020-06-30 Tom Tromey <tromey@adacore.com>
1382
1383 * dwarf2/read.c (quirk_rust_enum): Correctly call
1384 alloc_rust_variant for default-less enum.
1385
5ac58899
TT
13862020-06-30 Tom Tromey <tromey@adacore.com>
1387
1388 PR build/26183:
1389 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1390 gdb::to_string.
1391
19b187a9
SM
13922020-06-29 Simon Marchi <simon.marchi@efficios.com>
1393
1394 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1395 * gdbarch.h: Re-generate.
1396
cd4c4c07
TT
13972020-06-28 Tom Tromey <tom@tromey.com>
1398
1399 * command.h (cmd_types): Remove.
1400 (cmd_type): Don't declare.
1401 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1402 typedef.
1403 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1404 * cli/cli-decode.c (cmd_type): Remove.
1405
05779d57
PA
14062020-06-27 Pedro Alves <palves@redhat.com>
1407
1408 * fork-child.c (prefork_hook): Adjust.
1409 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1410 Delete.
1411 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1412 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1413 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1414 Remove declarations.
1415 (struct inferior) <set_tty, tty>: New methods.
1416 (struct inferior) <terminal>: Rename to ...
1417 (struct inferior) <m_terminal>: ... this and make private.
1418 * main.c (captured_main_1): Adjust.
1419 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1420 (mi_cmd_inferior_tty_show): Adjust.
1421 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1422 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1423
1776e3e5
NA
14242020-06-26 Nick Alcock <nick.alcock@oracle.com>
1425
1426 * configure.ac: Add --enable-libctf: handle --disable-static
1427 properly.
1428 * acinclude.m4: sinclude ../config/enable.m4.
1429 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1430 (LIBCTF): Substitute in.
1431 (CTF_DEPS): New, likewise.
1432 (CLIBS): libctf needs symbols from libbfd: move earlier.
1433 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1434 flags.
1435 * ctfread.c: Surround in ENABLE_LIBCTF.
1436 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1437 * configure: Regenerate.
1438 * config.in: Likewise.
1439
58373b80
SM
14402020-06-25 Simon Marchi <simon.marchi@efficios.com>
1441
1442 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1443
277474ee
SM
14442020-06-25 Simon Marchi <simon.marchi@efficios.com>
1445
1446 * inferior.h (struct inferior) <terminal>: Change type to
1447 gdb::unique_xmalloc_ptr<char>.
1448 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1449 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1450 field, adjust to unique pointer.
1451 (get_inferior_io_terminal): Adjust to unique pointer.
1452
6d74da72
AB
14532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1454
1455 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1456 registers, not just the known core set of registers.
1457
2e52d038
AB
14582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1459
1460 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1461 fflags, frm, and fcsr registers.
1462 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1463 restore groups.
1464 (riscv_tdesc_unknown_reg): New function.
1465 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1466 tdesc_use_registers.
1467 * riscv-tdep.h (struct gdbarch_tdep): Add
1468 unknown_csrs_first_regnum, unknown_csrs_count,
1469 duplicate_fflags_regnum, duplicate_frm_regnum, and
1470 duplicate_fcsr_regnum fields.
1471
be64fd07
AB
14722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1473
1474 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1475 callback, use the callback (when not null) to help number unknown
1476 registers.
1477 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1478 (tdesc_use_registers): Add extra parameter to declaration.
1479
3b9fce96
AB
14802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1481
1482 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1483 in the file.
1484 (class riscv_pending_register_alias): Likewise.
1485 (riscv_register_feature::register_info): Change 'required_p' field
1486 to 'required', and change its type. Add 'check' member function.
1487 (riscv_register_feature::register_info::check): Define new member
1488 function.
1489 (riscv_xreg_feature): Change initialisation of 'required' field.
1490 (riscv_freg_feature): Likewise.
1491 (riscv_virtual_feature): Likewise.
1492 (riscv_csr_feature): Likewise.
1493 (riscv_check_tdesc_feature): Take extra parameter, the csr
1494 tdesc_feature, rewrite the function to use the new
1495 riscv_register_feature::register_info::check function.
1496 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1497
865bad26
AB
14982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1499
1500 * features/Makefile: Remove all references to the deleted files
1501 below.
1502 * features/riscv/32bit-csr.c: Deleted.
1503 * features/riscv/32bit-csr.xml: Deleted.
1504 * features/riscv/64bit-csr.c: Deleted.
1505 * features/riscv/64bit-csr.xml: Deleted.
1506 * features/riscv/rebuild-csr-xml.sh: Deleted.
1507
ed69cbc8
AB
15082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1509
1510 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1511 whitespace error for declaration of names member variable.
1512 (struct riscv_register_feature): Add new prefer_first_name member
1513 variable, and fix whitespace error in declaration of registers.
1514 (riscv_xreg_feature): Initialize prefer_first_name field.
1515 (riscv_freg_feature): Likewise.
1516 (riscv_virtual_feature): Likewise.
1517 (riscv_csr_feature): Likewise.
1518 (riscv_register_name): Expand on comments. Remove register name
1519 modifications for CSR and virtual registers.
1520
4445e8f5
AB
15212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1522
1523 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1524 errors.
1525
767a879e
AB
15262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1527
1528 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1529 riscv-opc.h.
1530 (class riscv_pending_register_alias): New class.
1531 (riscv_check_tdesc_feature): Take vector of pending aliases and
1532 populate it as appropriate.
1533 (riscv_setup_register_aliases): Delete.
1534 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1535 to riscv_check_tdesc_feature in all cases. Use the vector to
1536 create the register aliases.
1537
bb6e55f3
RO
15382020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1539
1540 * sol2-tdep.c (sol2_static_transform_name): Remove.
1541 (sol2_init_abi): Don't register it.
1542 * gdbarch.sh (static_transform_name): Remove.
1543 * gdbarch.c, gdbarch.h: Regenerate.
1544
1545 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1546 gdbarch_static_transform_name.
1547 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1548 * stabsread.c (define_symbol) <'X'>: Remove.
1549 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1550 handling.
1551 <'V'>: Likewise.
1552 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1553 <'S'>: Remove call to gdbarch_static_transform_name.
1554
c6d36836
RO
15552020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1556
1557 * procfs.c (procfs_pre_trace): New function.
1558 (procfs_target::create_inferior): Pass it to fork_inferior.
1559
a7e6196b
RO
15602020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1561
1562 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1563 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1564 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1565 sol2-tdep.o, sparc-sol2-tdep.o.
1566 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1567 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1568 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1569 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1570
d412e696
RO
15712020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1572
1573 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1574 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1575 Call sol2_init_abi.
1576 Remove calls to set_gdbarch_skip_solib_resolver,
1577 set_gdbarch_core_pid_to_str.
1578 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1579 (i386_sol2_static_transform_name): Remove.
1580 (i386_sol2_init_abi): Call sol2_init_abi.
1581 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1582 set_gdbarch_static_transform_name,
1583 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1584 Use sol2_sigtramp_p.
1585 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1586 (sol2_sigtramp_p): New function.
1587 (sol2_static_transform_name): New function.
1588 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1589 (sol2_init_abi): New function.
1590 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1591 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1592 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1593 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1594 (sparc_sol2_static_transform_name): Remove.
1595 (sparc32_sol2_init_abi): Call sol2_init_abi.
1596 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1597 set_gdbarch_static_transform_name,
1598 set_gdbarch_skip_solib_resolver,
1599 set_gdbarch_core_pid_to_str.
1600 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1601 (sparc_sol2_static_transform_name): Remove
1602 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1603 call sol2_sigtramp_p.
1604 (sparc64_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
a8654e7d
PW
16092020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1610
1611 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1612 * exec.c (validate_exec_file): If from_tty, set both
1613 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1614 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1615 and from_tty, unconditionally ask a confirmation.
1616
caa7fd04
AB
16172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1618
1619 * target-descriptions.c (tdesc_architecture_name): Protect against
1620 NULL pointer dereference.
1621 (maint_print_xml_tdesc_cmd): New function.
1622 (_initialize_target_descriptions): Register new 'maint print
1623 xml-tdesc' command and give it the filename completer.
1624 * NEWS: Mention new 'maint print xml-tdesc' command.
1625
fbf42f4e
AB
16262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1627
1628 * target-descriptions.c (class tdesc_compatible_info): New class.
1629 (struct target_desc): Change type of compatible vector.
1630 (tdesc_compatible_p): Update for change in type of
1631 target_desc::compatible.
1632 (tdesc_compatible_info_list): New function.
1633 (tdesc_compatible_info_arch_name): New function.
1634 (tdesc_add_compatible): Update for change in type of
1635 target_desc::compatible.
1636 (print_c_tdesc::visit_pre): Likewise.
1637
20821f4e
AB
16382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1639
1640 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1641 whitespace to underscore.
1642 (maint_print_c_tdesc_cmd): Use fake filename for target
1643 descriptions that came from the target.
1644 (_initialize_target_descriptions): Add filename command completion
1645 for 'maint print c-tdesc'.
1646
1fb5ee62
SM
16472020-06-23 Simon Marchi <simon.marchi@efficios.com>
1648
1649 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1650 lines.
1651
fc3ecb3e
SM
16522020-06-23 Simon Marchi <simon.marchi@efficios.com>
1653
1654 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1655 lines.
1656 (dwarf2_find_location_expression): Likewise.
1657 (call_site_parameter_matches): Likewise.
1658 (dwarf2_compile_expr_to_ax): Likewise.
1659 (disassemble_dwarf_expression): Likewise.
1660 (loclist_describe_location): Likewise.
1661
236ef034
PA
16622020-06-23 Pedro Alves <palves@redhat.com>
1663
1664 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1665 progspace-and-thread.h. Include scoped-mock-context.h instead.
1666 (register_to_value_test): Use scoped_mock_context.
1667 * regcache.c: Include "scoped-mock-context.h".
1668 (cooked_read_test): Don't error out if a target is already pushed.
1669 Use scoped_mock_context. Adjust.
1670 * scoped-mock-context.h: New file.
1671
39e7ecca
AB
16722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1673
1674 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1675 initializer.
1676 (ada_language::is_string_type_p): New member function.
1677 * c-lang.c (c_language_data): Delete la_is_string_type_p
1678 initializer.
1679 (cplus_language_data): Likewise.
1680 (asm_language_data): Likewise.
1681 (minimal_language_data): Likewise.
1682 * d-lang.c (d_language_data): Likewise.
1683 * f-lang.c (f_is_string_type_p): Delete function, implementation
1684 moved to f_language::is_string_type_p.
1685 (f_language_data): Delete la_is_string_type_p initializer.
1686 (f_language::is_string_type_p): New member function,
1687 implementation from f_is_string_type_p.
1688 * go-lang.c (go_is_string_type_p): Delete function, implementation
1689 moved to go_language::is_string_type_p.
1690 (go_language_data): Delete la_is_string_type_p initializer.
1691 (go_language::is_string_type_p): New member function,
1692 implementation from go_is_string_type_p.
1693 * language.c (language_defn::is_string_type_p): Define new member
1694 function.
1695 (default_is_string_type_p): Make static, add comment copied from
1696 header file.
1697 (unknown_language_data): Delete la_is_string_type_p initializer.
1698 (unknown_language::is_string_type_p): New member function.
1699 (auto_language_data): Delete la_is_string_type_p initializer.
1700 (auto_language::is_string_type_p): New member function.
1701 * language.h (language_data): Delete la_is_string_type_p field.
1702 (language_defn::is_string_type_p): Declare new function.
1703 (default_is_string_type_p): Delete desclaration, move comment to
1704 definition.
1705 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1706 moved to m2_language::is_string_type_p.
1707 (m2_language_data): Delete la_is_string_type_p initializer.
1708 (m2_language::is_string_type_p): New member function,
1709 implementation from m2_is_string_type_p.
1710 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1711 initializer.
1712 * opencl-lang.c (opencl_language_data): Likewise.
1713 * p-lang.c (pascal_is_string_type_p): Delete function,
1714 implementation moved to pascal_language::is_string_type_p.
1715 (pascal_language_data): Delete la_is_string_type_p initializer.
1716 (pascal_language::is_string_type_p): New member function,
1717 implementation from pascal_is_string_type_p.
1718 * rust-lang.c (rust_is_string_type_p): Delete function,
1719 implementation moved to rust_language::is_string_type_p.
1720 (rust_language_data): Delete la_is_string_type_p initializer.
1721 (rust_language::is_string_type_p): New member function,
1722 implementation from rust_is_string_type_p.
1723 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1724 is_string_type_p.
1725
4ffc13fb
AB
17262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1727
1728 * ada-lang.c (ada_language_data): Delete la_print_typedef
1729 initializer.
1730 (ada_language::print_typedef): New member function.
1731 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1732 (cplus_language_data): Likewise.
1733 (asm_language_data): Likewise.
1734 (minimal_language_data): Likewise.
1735 * d-lang.c (d_language_data): Likewise.
1736 * f-lang.c (f_language_data): Likewise.
1737 (f_language::print_typedef): New member function.
1738 * go-lang.c (go_language_data): Delete la_print_typedef
1739 initializer.
1740 * language.c (language_defn::print_typedef): Define member
1741 function.
1742 (unknown_language_data): Delete la_print_typedef initializer.
1743 (unknown_language::print_typedef): New member function.
1744 (auto_language_data): Delete la_print_typedef initializer.
1745 (auto_language::print_typedef): New member function.
1746 * language.h (language_data): Delete la_print_typedef field.
1747 (language_defn::print_typedef): Declare new member function.
1748 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1749 (default_print_typedef): Delete declaration.
1750 * m2-lang.c (m2_language_data): Delete la_print_typedef
1751 initializer.
1752 (m2_language::print_typedef): New member function.
1753 * objc-lang.c (objc_language_data): Delete la_print_typedef
1754 initializer.
1755 * opencl-lang.c (opencl_language_data): Likewise.
1756 * p-lang.c (pascal_language_data): Likewise.
1757 (pascal_language::print_typedef): New member function.
1758 * rust-lang.c (rust_print_typedef): Delete function,
1759 implementation moved to rust_language::print_typedef.
1760 (rust_language): Delete la_print_typedef initializer.
1761 (rust_language::print_typedef): New member function,
1762 implementation from rust_print_typedef.
1763 * typeprint.c (default_print_typedef): Delete.
1764
d711ee67
AB
17652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1766
1767 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1768 (ada_language::printstr): New member function.
1769 * c-lang.c (c_language_data): Delete la_printstr initializer.
1770 (cplus_language_data): Likewise.
1771 (asm_language_data): Likewise.
1772 (minimal_language_data): Likewise.
1773 * d-lang.c (d_language_data): Likewise.
1774 * f-lang.c (f_printstr): Rename to f_language::printstr.
1775 (f_language_data): Delete la_printstr initializer.
1776 (f_language::printstr): New member function, implementation from
1777 f_printstr.
1778 * go-lang.c (go_language_data): Delete la_printstr initializer.
1779 * language.c (language_defn::printstr): Define new member
1780 function.
1781 (unk_lang_printstr): Delete.
1782 (unknown_language_data): Delete la_printstr initializer.
1783 (unknown_language::printstr): New member function.
1784 (auto_language_data): Delete la_printstr initializer.
1785 (auto_language::printstr): New member function.
1786 * language.h (language_data): Delete la_printstr field.
1787 (language_defn::printstr): Declare new member function.
1788 (LA_PRINT_STRING): Update call to printstr.
1789 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1790 (m2_language_data): Delete la_printstr initializer.
1791 (m2_language::printstr): New member function, implementation from
1792 m2_printstr.
1793 * objc-lang.c (objc_language_data): Delete la_printstr
1794 initializer.
1795 * opencl-lang.c (opencl_language_data): Likewise.
1796 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1797 (pascal_language_data): Delete la_printstr initializer.
1798 (pascal_language::printstr): New member function, implementation
1799 from pascal_printstr.
1800 * p-lang.h (pascal_printstr): Delete declaration.
1801 * rust-lang.c (rust_printstr): Update header comment.
1802 (rust_language_data): Delete la_printstr initializer.
1803 (rust_language::printstr): New member function.
1804
52b50f2c
AB
18052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1806
1807 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1808 (ada_language::printchar): New member function.
1809 * c-lang.c (c_language_data): Delete la_printchar initializer.
1810 (cplus_language_data): Likewise.
1811 (asm_language_data): Likewise.
1812 (minimal_language_data): Likewise.
1813 * d-lang.c (d_language_data): Likewise.
1814 * f-lang.c (f_printchar): Rename to f_language::printchar.
1815 (f_language_data): Delete la_printchar initializer.
1816 (f_language::printchar): New member function, implementation from
1817 f_printchar.
1818 * go-lang.c (go_language_data): Delete la_printchar initializer.
1819 * language.c (unk_lang_printchar): Delete.
1820 (language_defn::printchar): Define new member function.
1821 (unknown_language_data): Delete la_printchar initializer.
1822 (unknown_language::printchar): New member function.
1823 (auto_language_data): Delete la_printchar initializer.
1824 (auto_language::printchar): New member function.
1825 * language.h (language_data): Delete la_printchar field.
1826 (language_defn::printchar): Declare new member function.
1827 (LA_PRINT_CHAR): Update call to printchar.
1828 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1829 (m2_language::printchar): New member function.
1830 * objc-lang.c (objc_language_data): Delete la_printchar
1831 initializer.
1832 * opencl-lang.c (opencl_language_data): Likewise.
1833 * p-lang.c (pascal_language_data): Delete la_printchar
1834 initializer.
1835 (pascal_language::printchar): New member function.
1836 * rust-lang.c (rust_printchar): Rename to
1837 rust_language::printchar.
1838 (rust_language_data): Delete la_printchar initializer.
1839 (rust_language::printchar): New member function, implementation
1840 from rust_printchar.
1841
ec8cec5b
AB
18422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1843
1844 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1845 (ada_language_data): Delete la_emitchar initializer.
1846 (ada_language::emitchar): New member function, implementation from
1847 emit_char.
1848 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1849 (cplus_language_data): Likewise.
1850 (asm_language_data): Likewise.
1851 (minimal_language_data): Likewise.
1852 * d-lang.c (d_language_data): Likewise.
1853 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1854 (f_language_data): Delete la_emitchar initializer.
1855 (f_language::emitchar): New member function, implementation from
1856 f_emit_char.
1857 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1858 * language.c (unk_lang_emit_char): Delete.
1859 (language_defn::emitchar): New member function definition.
1860 (unknown_language_data): Delete la_emitchar initializer.
1861 (unknown_language::emitchar): New member function.
1862 (auto_language_data): Delete la_emitchar initializer.
1863 (auto_language::emitchar): New member function.
1864 * language.h (language_data): Delete la_emitchar field.
1865 (language_defn::emitchar): New member field declaration.
1866 (LA_EMIT_CHAR): Update call to emitchar.
1867 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1868 (m2_language_data): Delete la_emitchar initializer.
1869 (m2_language::emitchar): New member function, implementation from
1870 m2_emit_char.
1871 * objc-lang.c (objc_language_data): Delete la_emitchar
1872 initializer.
1873 * opencl-lang.c (opencl_language_data): Likewise.
1874 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1875 (pascal_language_data): Delete la_emitchar initializer.
1876 (pascal_language::emitchar): New member function, implementation
1877 from pascal_emit_char.
1878 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1879 (rust_language_data): Delete la_emitchar initializer.
1880 (rust_language::emitchar): New member function, implementation
1881 from rust_emitchar.
1882
1bf9c363
AB
18832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1884
1885 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1886 (ada_language_data): Delete la_post_parser initializer.
1887 (ada_language::post_parser): New member function.
1888 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1889 (cplus_language_data): Likewise.
1890 (asm_language_data): Likewise.
1891 (minimal_language_data): Likewise.
1892 * d-lang.c (d_language_data): Likewise.
1893 * f-lang.c (f_language_data): Likewise.
1894 * go-lang.c (go_language_data): Likewise.
1895 * language.c (unknown_language_data): Likewise.
1896 (auto_language_data): Likewise.
1897 * language.h (language_data): Delete la_post_parser field.
1898 (language_defn::post_parser): New member function.
1899 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1900 * objc-lang.c (objc_language_data): Likewise.
1901 * opencl-lang.c (opencl_language_data): Likewise.
1902 * p-lang.c (pascal_language_data): Likewise.
1903 * parse.c (parse_exp_in_context): Update call to post_parser.
1904 (null_post_parser): Delete definition.
1905 * parser-defs.h (null_post_parser): Delete declaration.
1906 * rust-lang.c (rust_language_data): Delete la_post_parser
1907 initializer.
1908
87afa652
AB
19092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1910
1911 * ada-lang.c (parse): Rename to ada_language::parser.
1912 (ada_language_data): Delete la_parser initializer.
1913 (ada_language::parser): New member function, implementation from
1914 parse.
1915 * c-lang.c (c_language_data): Delete la_parser initializer.
1916 (cplus_language_data): Likewise.
1917 (asm_language_data): Likewise.
1918 (minimal_language_data): Likewise.
1919 * d-lang.c (d_language_data): Likewise.
1920 (d_language::parser): New member function.
1921 * f-lang.c (f_language_data): Delete la_parser initializer.
1922 (f_language::parser): New member function.
1923 * go-lang.c (go_language_data): Delete la_parser initializer.
1924 (go_language::parser): New member function.
1925 * language.c (unk_lang_parser): Delete.
1926 (language_defn::parser): Define new member function.
1927 (unknown_language_data): Delete la_parser initializer.
1928 (unknown_language::parser): New member function.
1929 (auto_language_data): Delete la_parser initializer.
1930 (auto_language::parser): New member function.
1931 * language.h (language_data): Delete la_parser field.
1932 (language_defn::parser): Declare new member function.
1933 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1934 (m2_language::parser): New member function.
1935 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1936 * opencl-lang.c (opencl_language_data): Likewise.
1937 * p-lang.c (pascal_language_data): Likewise.
1938 (pascal_language::parser): New member function.
1939 * parse.c (parse_exp_in_context): Update call to parser.
1940 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1941 (rust_language::parser): New member function.
1942
37825800
AB
19432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1944
1945 * top.c (print_gdb_configuration): Print --with-python-libdir
1946 configuration value.
1947
5b860c93
PW
19482020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1949
1950 * NEWS: Mention change to the alias command.
1951
cf00cd6f
PW
19522020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1953
1954 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1955 (alias_command_completer)
1956 (make_alias_options_def_group): New functions.
1957 (alias_opts, alias_option_defs): New struct and array.
1958 (alias_usage_error): Update usage.
1959 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1960 Use option framework.
1961 (_initialize_cli_cmds): Update alias command help.
1962 Update aliases command help.
1963 (show_user):
1964 Add NULL for new default_args lookup_cmd argument.
1965 (valid_command_p): Rename to validate_aliased_command.
1966 Add NULL for new default_args lookup_cmd argument. Verify that the
1967 aliased_command has no default args.
1968 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1969 (lookup_cmd_1, lookup_cmd): New argument default_args.
1970 (add_alias_cmd):
1971 Add NULL for new default_args lookup_cmd argument.
1972 (print_help_for_command): Show default args under the layout
1973 alias some_alias = some_aliased_cmd some_alias_default_arg.
1974 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1975 xfree default_args in destructor.
1976 * cli/cli-script.c (process_next_line, do_define_command):
1977 Add NULL for new default_args lookup_cmd argument.
1978 * command.h: Declare new default_args argument in lookup_cmd
1979 and lookup_cmd_1.
1980 * completer.c (complete_line_internal_1):
1981 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1982 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1983 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1984 Likewise.
1985 * infcmd.c (_initialize_infcmd): Likewise.
1986 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1987 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1988 * python/py-param.c (add_setshow_generic): Likewise.
1989 * remote.c (_initialize_remote): Likewise.
1990 * top.c (execute_command): Prepend default_args if command has some.
1991 (set_verbose):
1992 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1993 * tracepoint.c (validate_actionline, encode_actions_1):
1994 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1995
bd920864
TBA
19962020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1997
1998 * jit.c (jit_read_descriptor): Use bool as the return type.
1999 (jit_breakpoint_re_set_internal): Use bool as the return type.
2000 Invert the return value logic; return true if the jit breakpoint
2001 has been successfully initialized.
2002 (jit_inferior_init): Update the call to
2003 jit_breakpoint_re_set_internal.
2004
f8098322
PA
20052020-06-22 Pedro Alves <palves@redhat.com>
2006
2007 PR gdb/25939
2008 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2009 Use the current inferior instead. Don't return
2010 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2011 wait again.
2012 * sol-thread.c (sol_thread_target::wait): Don't reference
2013 inferior_ptid.
2014 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2015 (sol_update_thread_list_callback): Use the current inferior's pid
2016 instead of inferior_ptid.
2017
196535a6
RO
20182020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2019
2020 * procfs.c: Cleanup many comments.
2021
2022 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2023 (AFTER_WATCHFLAG): Replace by value.
2024
2025 (MAIN_PROC_NAME_FORMAT): Inline ...
2026 (create_procinfo): ... here.
2027
2028 (procfs_debug_inferior): Remove SYS_exec handling.
2029 (syscall_is_exec): Likewise.
2030 (procfs_set_exec_trap): Likewise.
2031
2032 (syscall_is_lwp_exit): Inline in callers.
2033 (syscall_is_exit): Likewise.
2034 (syscall_is_exec): Likewise.
2035 (syscall_is_lwp_create): Likewise.
2036
2037 (invalidate_cache): Remove #if 0 code.
2038
2039 (make_signal_thread_runnable): Remove.
2040 (procfs_target::resume): Remove #if 0 code.
2041
cf6f3e86
RO
20422020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2043
2044 PR gdb/25939
2045 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2046 call ...
2047 (procfs_target::create_inferior): ... here.
2048
48e9cc84
PW
20492020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2050
2051 * exec.c (validate_exec_file): Ensure the build-id is up to
2052 date by calling reopen_exec_file (that checks file timestamp
2053 to decide to re-read the file).
2054
3922b302
PA
20552020-06-18 Pedro Alves <palves@redhat.com>
2056
2057 PR gdb/25412
2058 * gdbthread.h (delete_thread, delete_thread_silent)
2059 (find_thread_ptid): Update comments.
2060 * thread.c (current_thread_): New global.
2061 (is_current_thread): Move higher, and reimplement.
2062 (inferior_thread): Reimplement.
2063 (set_thread_exited): Use bool. Add assertions.
2064 (add_thread_silent): Simplify thread-reuse handling by always
2065 calling delete_thread.
2066 (delete_thread): Remove intro comment.
2067 (find_thread_ptid): Skip exited threads.
2068 (switch_to_thread_no_regs): Write to current_thread_.
2069 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2070 INFERIOR_PTID. Clear current_thread_.
2071
6dbdab44
PA
20722020-06-18 Pedro Alves <palves@redhat.com>
2073
2074 * aix-thread.c (pd_update): Use switch_to_thread.
2075
2da4b788
PA
20762020-06-18 Pedro Alves <palves@redhat.com>
2077
2078 * ravenscar-thread.c (ravenscar_thread_target): Update.
2079 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2080 (ravenscar_thread_target::add_active_thread): ... this. Don't
2081 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2082 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2083
50838d1b
PA
20842020-06-18 Pedro Alves <palves@redhat.com>
2085
2086 * nat/windows-nat.c (current_windows_thread): Remove.
2087 * nat/windows-nat.h (current_windows_thread): Remove.
2088 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2089 Adjust.
2090 (display_selectors): Adjust to fetch the current
2091 windows_thread_info based on inferior_ptid.
2092 (fake_create_process): No longer write to current_windows_thread.
2093 (windows_nat_target::get_windows_debug_event):
2094 Don't set inferior_ptid or current_windows_thread.
2095 (windows_nat_target::wait): Adjust to not rely on
2096 current_windows_thread.
2097 (do_initial_windows_stuff): Now a method of windows_nat_target.
2098 Switch to the last_ptid thread.
2099 (windows_nat_target::attach): Adjust.
2100 (windows_nat_target::detach): Use switch_to_no_thread instead of
2101 writing to inferior_ptid directly.
2102 (windows_nat_target::create_inferior): Adjust.
2103
31ce04e9
PA
21042020-06-18 Pedro Alves <palves@redhat.com>
2105
2106 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2107
1ee1a363
PA
21082020-06-18 Pedro Alves <palves@redhat.com>
2109
2110 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2111 after creating it, instead of writing to inferior_ptid. Don't
2112 write to inferior_ptid.
2113
6d350754
PA
21142020-06-18 Pedro Alves <palves@redhat.com>
2115
2116 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2117
5d971d48
PA
21182020-06-18 Pedro Alves <palves@redhat.com>
2119
2120 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2121 it, instead of writing to inferior_ptid.
2122
86e57d1b
PA
21232020-06-18 Pedro Alves <palves@redhat.com>
2124
2125 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2126 to inferior_ptid.
2127
f2e1c129
PA
21282020-06-18 Pedro Alves <palves@redhat.com>
2129
2130 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2131 instead of writing to inferior_ptid directly.
2132
60db1b85
PA
21332020-06-18 Pedro Alves <palves@redhat.com>
2134
2135 * corelow.c (core_target::close): Use switch_to_no_thread instead
2136 of writing to inferior_ptid directly.
2137 (add_to_thread_list, core_target_open): Use switch_to_thread
2138 instead of writing to inferior_ptid directly.
2139
fe7d6a8d
PA
21402020-06-18 Pedro Alves <palves@redhat.com>
2141
2142 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2143 inferior_ptid.
2144 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2145 inferior_ptid.
2146 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2147 inferior_ptid directly.
2148 (darwin_nat_target::init_thread_list): Switch to thread, instead
2149 of writing to inferior_ptid.
2150 (darwin_nat_target::attach): Don't write to inferior_ptid.
2151 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2152
975f8708
PA
21532020-06-18 Pedro Alves <palves@redhat.com>
2154
2155 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2156 thread.
2157 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2158 Instead use switch_to_thread.
2159 (gnu_nat_target::detach): Use switch_to_no_thread
2160 instead of writing to inferior_ptid directly. Used passed-in
2161 inferior instead of looking up the inferior by pid.
2162
1a204730
PA
21632020-06-18 Pedro Alves <palves@redhat.com>
2164
2165 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2166 inferior_ptid.
2167
ebe84f23
PA
21682020-06-18 Pedro Alves <palves@redhat.com>
2169
2170 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2171 inferior_ptid.
2172 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2173 thread.
2174 (nto_procfs_target::detach): Avoid referencing
2175 inferior_ptid. Use switch_to_no_thread instead of writing to
2176 inferior_ptid directly.
2177 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2178 instead of writing to inferior_ptid directly.
2179 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2180 to thread.
2181
191f02e5
PA
21822020-06-18 Pedro Alves <palves@redhat.com>
2183
2184 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2185 after creating it, instead of writing to inferior_ptid.
2186 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2187 to inferior_ptid directly.
2188 (gdbsim_target::wait): Don't write to inferior_ptid.
2189
0ac55310
PA
21902020-06-18 Pedro Alves <palves@redhat.com>
2191
2192 * remote.c (remote_target::remote_notice_new_inferior): Use
2193 switch_to_thread instead of writing to inferior_ptid directly.
2194 (remote_target::add_current_inferior_and_thread): Use
2195 switch_to_no_thread instead of writing to inferior_ptid directly.
2196 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2197 and switch_to_thread instead of using set_current_inferior or
2198 writing to inferior_ptid directly.
2199
5233f39b
PA
22002020-06-18 Pedro Alves <palves@redhat.com>
2201
2202 * tracectf.c (ctf_target_open): Switch to added thread instead of
2203 writing to inferior_ptid directly.
2204 (ctf_target::close): Use switch_to_no_thread instead of writing to
2205 inferior_ptid directly.
2206
087e161b
PA
22072020-06-18 Pedro Alves <palves@redhat.com>
2208
2209 * tracefile-tfile.c (tfile_target_open): Don't write to
2210 inferior_ptid directly, instead switch to added thread.
2211 (tfile_target::close): Use switch_to_no_thread instead of writing
2212 to inferior_ptid directly.
2213
7fb43e53
PA
22142020-06-18 Pedro Alves <palves@redhat.com>
2215
2216 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2217 (procfs_target::detach): Use switch_to_no_thread
2218 instead of writing to inferior_ptid directly.
2219 (do_attach): Change return type to void. Switch to the added
2220 thread.
2221 (procfs_target::create_inferior): Switch to the added thread.
2222 (procfs_do_thread_registers): Don't write to inferior_ptid.
2223
18493a00
PA
22242020-06-18 Pedro Alves <palves@redhat.com>
2225
2226 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2227 of writing to inferior_ptid.
2228 (scoped_restore_exited_inferior): Delete.
2229 (handle_vfork_child_exec_or_exit): Simplify using
2230 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2231 instead of writing to inferior_ptid.
2232 (THREAD_STOPPED_BY): Delete.
2233 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2234 (thread_stopped_by_hw_breakpoint): Delete.
2235 (save_waitstatus): Use
2236 scoped_restore_current_thread+switch_to_thread, and call
2237 target_stopped_by_watchpoint instead of
2238 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2239 instead of thread_stopped_by_sw_breakpoint, and
2240 target_stopped_by_hw_breakpoint instead of
2241 thread_stopped_by_hw_breakpoint.
2242 (handle_inferior_event)
2243 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2244 inferior_ptid directly, nor
2245 set_current_inferior/set_current_program_space. Use
2246 switch_to_thread / switch_to_inferior_no_thread instead.
2247
a0776b13
PA
22482020-06-18 Pedro Alves <palves@redhat.com>
2249
2250 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2251 instead of writing to inferior_ptid.
2252
6155c136
PA
22532020-06-18 Pedro Alves <palves@redhat.com>
2254
2255 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2256 added thread.
2257 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2258 to the added thread.
2259 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2260 instead of writing to inferior_ptid.
2261
c5316fc6
PA
22622020-06-18 Pedro Alves <palves@redhat.com>
2263
2264 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2265 (register_to_value_test): Mock a program_space too. Heap-allocate
2266 the address space. Don't write to inferior_ptid. Use
2267 switch_to_thread instead.
2268
8df01799
PA
22692020-06-18 Pedro Alves <palves@redhat.com>
2270
2271 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2272 Delete.
2273 (find_signalled_thread()): New, factored out from
2274 linux_make_corefile_notes and adjusted to handle exited threads.
2275 (linux_make_corefile_notes): Adjust to use the new
2276 find_signalled_thread.
2277
41792d68
PA
22782020-06-18 Pedro Alves <palves@redhat.com>
2279
2280 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2281 of saving/restoring inferior_ptid.
2282
612f258a
TT
22832020-06-17 Tom Tromey <tom@tromey.com>
2284
2285 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2286 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2287 declare.
2288 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2289
efb763a5
SM
22902020-06-15 Simon Marchi <simon.marchi@efficios.com>
2291
2292 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2293 of partial symtabs.
2294
2951f6c0
SM
22952020-06-17 Simon Marchi <simon.marchi@efficios.com>
2296
2297 * regformats/reg-arm.dat: Remove.
2298 * regformats/reg-bfin.dat: Remove.
2299 * regformats/reg-cris.dat: Remove.
2300 * regformats/reg-crisv32.dat: Remove.
2301 * regformats/reg-m32r.dat: Remove.
2302 * regformats/reg-tilegx.dat: Remove.
2303 * regformats/reg-tilegx32.dat: Remove.
2304
7d458ea5
SM
23052020-06-17 Simon Marchi <simon.marchi@efficios.com>
2306
2307 * features/Makefile (WHICH): Remove arm files.
2308 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2309 * regformats/arm/arm-with-neon.dat: Remove.
2310 * regformats/arm/arm-with-vfpv2.dat: Remove.
2311 * regformats/arm/arm-with-vfpv3.dat: Remove.
2312
3af96c0d
SM
23132020-06-17 Simon Marchi <simon.marchi@efficios.com>
2314
2315 * features/Makefile (XMLTOC): Remove rx.xml.
2316
b25e22fd
PA
23172020-06-17 Pedro Alves <palves@redhat.com>
2318
2319 * gdbthread.h (thread_control_state) <trap_expected> Update
2320 comments.
2321
a78a19b1
AB
23222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2323
2324 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2325 ada_language::lookup_symbol_nonlocal.
2326 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2327 (ada_language::lookup_symbol_nonlocal): New member function,
2328 implementation from ada_lookup_symbol_nonlocal.
2329 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2330 initializer.
2331 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2332 initializer.
2333 (cplus_language::lookup_symbol_nonlocal): New member function.
2334 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2335 (minimal_language_data) Likewise.
2336 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2337 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2338 initializer.
2339 (d_language::lookup_symbol_nonlocal): New member function.
2340 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2341 initializer.
2342 (f_language::lookup_symbol_nonlocal): New member function.
2343 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2344 initializer.
2345 * language.c (unknown_language_data): Likewise.
2346 (auto_language_data): Likewise.
2347 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2348 field.
2349 (language_defn::lookup_symbol_nonlocal): New member function.
2350 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2351 initializer.
2352 * objc-lang.c (objc_language_data): Likewise.
2353 * opencl-lang.c (opencl_language_data): Likewise.
2354 * p-lang.c (pascal_language_data): Likewise.
2355 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2356 rust_language::lookup_symbol_nonlocal.
2357 (rust_language_data): Delete la_lookup_symbol_nonlocal
2358 initializer.
2359 (rust_language::lookup_symbol_nonlocal): New member function,
2360 implementation from rust_lookup_symbol_nonlocal.
2361 * symtab.c (lookup_symbol_aux): Update call to
2362 lookup_symbol_nonlocal.
2363 (basic_lookup_symbol_nonlocal): Rename to...
2364 (language_defn::lookup_symbol_nonlocal): ...this, and update
2365 header comment. Remove language_defn parameter, and replace with
2366 uses of `this'.
2367 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2368
ebe2334e
AB
23692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2370
2371 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2372 initializer.
2373 (ada_language::value_print_inner): New member function.
2374 * c-lang.c (c_language_data): Delete la_value_print_inner
2375 initializer.
2376 (cplus_language_data): Likewise.
2377 (asm_language_data): Likewise.
2378 (minimal_language_data): Likewise.
2379 * d-lang.c (d_language_data): Likewise.
2380 (d_language::value_print_inner): New member function.
2381 * f-lang.c (f_language_data): Delete la_value_print_inner
2382 initializer.
2383 (f_language::value_print_inner): New member function.
2384 * f-lang.h (f_value_print_innner): Rename to...
2385 (f_value_print_inner): ...this (note spelling of 'inner').
2386 * f-valprint.c (f_value_print_innner): Rename to...
2387 (f_value_print_inner): ...this (note spelling of 'inner').
2388 * go-lang.c (go_language_data): Delete la_value_print_inner
2389 initializer.
2390 (go_language::value_print_inner): New member function.
2391 * language.c (language_defn::value_print_inner): Define new member
2392 function.
2393 (unk_lang_value_print_inner): Delete.
2394 (unknown_language_data): Delete la_value_print_inner initializer.
2395 (unknown_language::value_print_inner): New member function.
2396 (auto_language_data): Delete la_value_print_inner initializer.
2397 (auto_language::value_print_inner): New member function.
2398 * language.h (language_data): Delete la_value_print_inner field.
2399 (language_defn::value_print_inner): Delcare new member function.
2400 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2401 initializer.
2402 (m2_language::value_print_inner): New member function.
2403 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2404 initializer.
2405 * opencl-lang.c (opencl_language_data): Likewise.
2406 * p-lang.c (pascal_language_data): Likewise.
2407 (pascal_language::value_print_inner): New member function.
2408 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2409 initializer.
2410 (rust_language::value_print_inner): New member function.
2411 * valprint.c (do_val_print): Update call to value_print_inner.
2412
a1d1fa3e
AB
24132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2414
2415 * ada-lang.c (ada_language_data): Delete la_value_print
2416 initializer.
2417 (ada_language::value_print): New member function.
2418 * c-lang.c (c_language_data): Delete la_value_print initializer.
2419 (cplus_language_data): Likewise.
2420 (asm_language_data): Likewise.
2421 (minimal_language_data): Likewise.
2422 * d-lang.c (d_language_data): Likewise.
2423 * f-lang.c (f_language_data): Likewise.
2424 * go-lang.c (go_language_data): Likewise.
2425 * language.c (unk_lang_value_print): Delete.
2426 (language_defn::value_print): Define new member function.
2427 (unknown_language_data): Delete la_value_print initializer.
2428 (unknown_language::value_print): New member function.
2429 (auto_language_data): Delete la_value_print initializer.
2430 (auto_language::value_print): New member function.
2431 * language.h (language_data): Delete la_value_print field.
2432 (language_defn::value_print): Declare new member function.
2433 (LA_VALUE_PRINT): Update call to value_print.
2434 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2435 * objc-lang.c (objc_language_data): Likewise.
2436 * opencl-lang.c (opencl_language_data): Likewise.
2437 * p-lang.c (pascal_language_data): Likewise.
2438 (pascal_language::value_print): New member function.
2439 * rust-lang.c (rust_language_data): Delete la_value_print
2440 initializer.
2441
f16a9f57
AB
24422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2443
2444 * ada-lang.c (ada_watch_location_expression): Rename to
2445 ada_language::watch_location_expression.
2446 (ada_language_data): Delete la_watch_location_expression
2447 initializer.
2448 (ada_language::watch_location_expression): New member function,
2449 implementation from ada_watch_location_expression.
2450 * breakpoint.c (watch_command_1): Update call to
2451 watch_location_expression.
2452 * c-lang.c (c_watch_location_expression): Rename to
2453 language_defn::watch_location_expression.
2454 (c_language_data): Delete la_watch_location_expression
2455 initializer.
2456 (cplus_language_data): Likewise.
2457 (asm_language_data): Likewise.
2458 (minimal_language_data): Likewise.
2459 * c-lang.h (c_watch_location_expression): Delete declaration.
2460 * d-lang.c (d_language_data): Delete la_watch_location_expression
2461 initializer.
2462 * f-lang.c (f_language_data): Likewise.
2463 * go-lang.c (go_language_data): Likewise.
2464 * language.c (language_defn::watch_location_expression): Member
2465 function implementation from c_watch_location_expression.
2466 (unknown_language_data): Delete la_watch_location_expression
2467 initializer.
2468 (auto_language_data): Likewise.
2469 * language.h (language_data): Delete la_watch_location_expression
2470 field.
2471 (language_defn::watch_location_expression): Declare new member
2472 function.
2473 * m2-lang.c (m2_language_data): Delete
2474 la_watch_location_expression initializer.
2475 * objc-lang.c (objc_language_data): Likewise.
2476 * opencl-lang.c (opencl_language_data): Likewise.
2477 * p-lang.c (pascal_language_data): Likewise.
2478 * rust-lang.c (rust_watch_location_expression): Rename to
2479 rust_language::watch_location_expression.
2480 (rust_language_data): Delete la_watch_location_expression
2481 initializer.
2482 (rust_language::watch_location_expression): New member function,
2483 implementation from rust_watch_location_expression.
2484
7e56227d
AB
24852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2486
2487 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2488 ada_language::collect_symbol_completion_matches.
2489 (ada_language_data): Delete la_collect_symbol_completion_matches
2490 initializer.
2491 (ada_language::collect_symbol_completion_matches): New member
2492 function, implementation from
2493 ada_collect_symbol_completion_matches.
2494 * c-lang.c (c_language_data): Delete
2495 la_collect_symbol_completion_matches initializer.
2496 (cplus_language_data): Likewise.
2497 (asm_language_data): Likewise.
2498 (minimal_language_data): Likewise.
2499 * d-lang.c (d_language_data): Likewise.
2500 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2501 f_language::collect_symbol_completion_matches.
2502 (f_language_data): Delete la_collect_symbol_completion_matches
2503 initializer.
2504 (f_language::collect_symbol_completion_matches) New member
2505 function, implementation from f_collect_symbol_completion_matches.
2506 * go-lang.c (go_language_data): Delete
2507 la_collect_symbol_completion_matches initializer.
2508 * language.c (unknown_language_data): Likewise.
2509 (auto_language_data): Likewise.
2510 * language.h (language_data): Delete
2511 la_collect_symbol_completion_matches field.
2512 (language_defn::collect_symbol_completion_matches): New member
2513 function.
2514 * m2-lang.c (m2_language_data): Delete
2515 la_collect_symbol_completion_matches initializer.
2516 * objc-lang.c (objc_language_data): Likewise.
2517 * opencl-lang.c (opencl_language_data): Likewise.
2518 * p-lang.c (pascal_language_data): Likewise.
2519 * rust-lang.c (rust_language_data): Likewise.
2520 * symtab.c (default_collect_symbol_completion_matches): Delete.
2521 (collect_symbol_completion_matches): Update call to
2522 collect_symbol_completion_matches.
2523 (collect_symbol_completion_matches_type): Likewise.
2524 * symtab.h (default_collect_symbol_completion_matches): Delete
2525 declaration.
2526
53fc67f8
AB
25272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2528
2529 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2530 (ada_language_data): Delete la_word_break_characters initializer.
2531 (ada_language::word_break_characters): New member function.
2532 * c-lang.c (c_language_data): Delete la_word_break_characters
2533 initializer.
2534 (cplus_language_data): Likewise.
2535 (asm_language_data): Likewise.
2536 (minimal_language_data): Likewise.
2537 * completer.c: Update global comment.
2538 (advance_to_expression_complete_word_point): Update call to
2539 word_break_characters.
2540 (complete_files_symbols): Likewise.
2541 (complete_line_internal_1): Likewise.
2542 (default_completer_handle_brkchars): Likewise.
2543 (skip_quoted_chars): Likewise.
2544 * d-lang.c (d_language_data): Delete la_word_break_characters
2545 initializer.
2546 * f-lang.c (f_word_break_characters): Delete.
2547 (f_language_data): Delete la_word_break_characters initializer.
2548 (f_language::word_break_characters): New member function.
2549 * go-lang.c (go_language_data): Delete la_word_break_characters
2550 initializer.
2551 * language.c (unknown_language_data): Likewise.
2552 (auto_language_data): Likewise.
2553 * language.h (default_word_break_characters): Move declaration to
2554 earlier in the file.
2555 (language_data): Delete la_word_break_characters field.
2556 (language_defn::word_break_characters): New member function.
2557 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2558 initializer.
2559 * objc-lang.c (objc_language_data): Likewise.
2560 * opencl-lang.c (opencl_language_data): Likewise.
2561 * p-lang.c (pascal_language_data): Likewise.
2562 * rust-lang.c (rust_language_data): Likewise.
2563
c9debfb9
AB
25642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2565
2566 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2567 (ada_language_data): Delete la_get_symbol_name_matcher
2568 initializer.
2569 (language_defn::get_symbol_name_matcher_inner): New member
2570 function.
2571 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2572 initializer.
2573 (cplus_language_data): Likewise.
2574 (cplus_language::get_symbol_name_matcher_inner): New member
2575 function.
2576 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2577 (minimal_language_data): Likewise.
2578 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2579 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2580 initializer.
2581 * dictionary.c (iter_match_first_hashed): Update call to
2582 get_symbol_name_matcher.
2583 (iter_match_next_hashed): Likewise.
2584 (iter_match_next_linear): Likewise.
2585 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2586 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2587 initializer.
2588 (f_language::get_symbol_name_matcher_inner): New member function.
2589 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2590 initializer.
2591 * language.c (default_symbol_name_matcher): Update header comment,
2592 make static.
2593 (language_defn::get_symbol_name_matcher): New definition.
2594 (language_defn::get_symbol_name_matcher_inner): Likewise.
2595 (get_symbol_name_matcher): Delete.
2596 (unknown_language_data): Delete la_get_symbol_name_matcher
2597 initializer.
2598 (auto_language_data): Likewise.
2599 * language.h (language_data): Delete la_get_symbol_name_matcher
2600 field.
2601 (language_defn::get_symbol_name_matcher): New member function.
2602 (language_defn::get_symbol_name_matcher_inner): Likewise.
2603 (default_symbol_name_matcher): Delete declaration.
2604 * linespec.c (find_methods): Update call to
2605 get_symbol_name_matcher.
2606 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2607 initializer.
2608 * minsyms.c (lookup_minimal_symbol): Update call to
2609 get_symbol_name_matcher.
2610 (iterate_over_minimal_symbols): Likewise.
2611 * objc-lang.c (objc_language_data): Delete
2612 la_get_symbol_name_matcher initializer.
2613 * opencl-lang.c (opencl_language_data): Likewise.
2614 * p-lang.c (pascal_language_data): Likewise.
2615 * psymtab.c (psymbol_name_matches): Update call to
2616 get_symbol_name_matcher.
2617 * rust-lang.c (rust_language_data): Delete
2618 la_get_symbol_name_matcher initializer.
2619 * symtab.c (symbol_matches_search_name): Update call to
2620 get_symbol_name_matcher.
2621 (compare_symbol_name): Likewise.
2622
9a49ad8c
AB
26232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2624
2625 * ada-lang.c (ada_language_data): Delete la_compute_program
2626 initializer.
2627 * c-lang.c (c_language_data): Likewise.
2628 (c_language::compute_program): New member function.
2629 (cplus_language_data): Delete la_compute_program initializer.
2630 (cplus_language::compute_program): New member function.
2631 (asm_language_data): Delete la_compute_program initializer.
2632 (minimal_language_data): Likewise.
2633 * c-lang.h (c_compute_program): Update comment.
2634 (cplus_compute_program): Likewise.
2635 * compile/compile-c-support.c (c_compute_program): Likewise.
2636 (cplus_compute_program): Likewise.
2637 * compile/compile.c (compile_to_object): Update call to
2638 la_compute_program.
2639 * d-lang.c (d_language_data): Delete la_compute_program
2640 initializer.
2641 * f-lang.c (f_language_data): Likewise.
2642 * go-lang.c (go_language_data): Likewise.
2643 * language.c (unknown_language_data): Likewise.
2644 (auto_language_data): Likewise.
2645 * language.h (language_data): Delete la_compute_program field.
2646 (language_defn::compute_program): New member function.
2647 * m2-lang.c (m2_language_data): Delete la_compute_program
2648 initializer.
2649 * objc-lang.c (objc_language_data): Likewise.
2650 * opencl-lang.c (opencl_language_data): Likewise.
2651 * p-lang.c (pascal_language_data): Likewise.
2652 * rust-lang.c (rust_language_data): Likewise.
2653
eff93b4d
AB
26542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2655
2656 * ada-lang.c (ada_language_data) Delete
2657 la_class_name_from_physname initializer.
2658 * c-lang.c (c_language_data): Likewise.
2659 (cplus_language_data): Likewise.
2660 (cplus_language::class_name_from_physname): New member function.
2661 (asm_language_data): Delete la_class_name_from_physname
2662 initializer.
2663 (minimal_language_data): Likewise.
2664 * d-lang.c (d_language_data): Likewise.
2665 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2666 method on language_defn class.
2667 (guess_full_die_structure_name): Likewise.
2668 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2669 initializer.
2670 * go-lang.c (go_language_data): Likewise.
2671 * language.c (language_class_name_from_physname): Delete.
2672 (unk_lang_class_name): Delete.
2673 (unknown_language_data): Delete la_class_name_from_physname
2674 initializer.
2675 (auto_language_data): Likewise.
2676 * language.h (language_data): Delete la_class_name_from_physname
2677 field.
2678 (language_defn::class_name_from_physname): New function.
2679 (language_class_name_from_physname): Delete declaration.
2680 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2681 initializer.
2682 * objc-lang.c (objc_language_data): Likewise.
2683 * opencl-lang.c (opencl_language_data): Likewise.
2684 * p-lang.c (pascal_language_data): Likewise.
2685 * rust-lang.c (rust_language_data): Likewise.
2686
de543742
TT
26872020-06-16 Tom Tromey <tom@tromey.com>
2688
2689 * tui/tui-data.h (STATUS_NAME): New macro.
2690 * tui/tui-layout.c (tui_remove_some_windows)
2691 (initialize_known_windows, tui_register_window)
2692 (tui_layout_split::remove_windows, initialize_layouts)
2693 (tui_new_layout_command): Don't use hard-coded window names.
2694
a350efd4
TT
26952020-06-16 Tom Tromey <tom@tromey.com>
2696
2697 PR tui/25348:
2698 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2699 tui_initialize_readline. Only run once. Call rl_initialize.
2700 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2701 tui_initialize_readline.
2702 * tui/tui-io.c (tui_setup_io): Call
2703 tui_ensure_readline_initialized.
2704 * tui/tui-interp.c (tui_interp::init): Update.
2705
39ec0490
TT
27062020-06-16 Tom Tromey <tom@tromey.com>
2707
2708 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2709 Also preserve the status window.
2710
d2d1ea20
TT
27112020-06-16 Tom Tromey <tom@tromey.com>
2712
2713 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2714 where m_window==nullptr.
2715
66920317
TT
27162020-06-15 Tom Tromey <tromey@adacore.com>
2717
2718 * windows-nat.c (windows_nat::handle_output_debug_string):
2719 Update.
2720 (windows_nat::handle_ms_vc_exception): Update.
2721 * target.h (target_read_string): Change API.
2722 * target.c (target_read_string): Change API.
2723 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2724 Update.
2725 * solib-frv.c (frv_current_sos): Update.
2726 * solib-dsbt.c (dsbt_current_sos): Update.
2727 * solib-darwin.c (darwin_current_sos): Update.
2728 * linux-thread-db.c (inferior_has_bug): Update.
2729 * expprint.c (print_subexp_standard): Update.
2730 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2731 (ada_exception_message_1): Update.
2732
a5d871dd
TT
27332020-06-15 Tom Tromey <tromey@adacore.com>
2734
2735 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2736
670e35fa
TT
27372020-06-15 Tom Tromey <tromey@adacore.com>
2738
2739 * valprint.c (read_string): Update comment.
2740 * target.c (MIN): Remove.
2741 (target_read_string): Rewrite.
2742
f5272a3b
TT
27432020-06-15 Tom Tromey <tromey@adacore.com>
2744
2745 * corefile.c (read_memory_string): Remove.
2746 * ada-valprint.c (ada_value_print_ptr): Update.
2747 * ada-lang.h (ada_tag_name): Change return type.
2748 * ada-lang.c (type_from_tag): Update.
2749 (ada_tag_name_from_tsd): Change return type. Use
2750 target_read_string.
2751 (ada_tag_name): Likewise.
2752 * gdbcore.h (read_memory_string): Don't declare.
2753
2c074f49
HD
27542020-06-14 Hannes Domani <ssbssa@yahoo.de>
2755
2756 * symtab.c (rbreak_command): Ignore Windows drive colon.
2757
6a17d503
SM
27582020-06-12 Simon Marchi <simon.marchi@efficios.com>
2759
2760 * NEWS: Mention removed GDBserver host support.
2761
453c733f
NC
27622020-06-12 Nelson Chu <nelson.chu@sifive.com>
2763
2764 * features/riscv/rebuild-csr-xml.sh: Updated.
2765
2b4e6a3f
TT
27662020-06-11 Tom Tromey <tom@tromey.com>
2767
2768 PR gdb/18318:
2769 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2770
4412332f
JG
27712020-06-09 Jonny Grant <jg@jguk.org>
27722020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2773
2774 * main.c (captured_main_1): Don't print new line after help.
2775 (print_gdb_help): add mailing list and IRC channel information
2776 to --help. Add new lines between items in the footer. Remove
2777 quotes around bug url.
2778
2f33032a
KS
27792020-06-11 Keith Seitz <keiths@redhat.com>
2780
2781 PR gdb/21356
2782 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2783 Resolve typedefs for type length calculations.
2784
7ab96794
TV
27852020-06-10 Tom de Vries <tdevries@suse.de>
2786
2787 PR ada/24713
2788 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2789 (write_psymbols): Enable .gdb_index for ada.
2790 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2791 ada.
2792
e5f3ece2
TV
27932020-06-10 Tom de Vries <tdevries@suse.de>
2794
2795 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2796 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2797 namei" instead of "const char *name" argument.
2798 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2799 dw2_symtab_iter_init.
2800
940da03e
SM
28012020-06-08 Simon Marchi <simon.marchi@efficios.com>
2802
2803 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2804 to use type::field and field::type instead.
2805
b6cdac4b
SM
28062020-06-08 Simon Marchi <simon.marchi@efficios.com>
2807
2808 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2809 to use field::type instead.
2810
5d14b6e5
SM
28112020-06-08 Simon Marchi <simon.marchi@efficios.com>
2812
2813 * gdbtypes.h (struct field) <type, set_type>: New methods.
2814 Rename `type` field to...
2815 <m_type>: ... this. Change references throughout to use type or
2816 set_type methods.
2817 (FIELD_TYPE): Use field::type. Change call sites that modify
2818 the field's type to use field::set_type instead.
2819
3d967001
SM
28202020-06-08 Simon Marchi <simon.marchi@efficios.com>
2821
2822 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2823 to use type::index_type instead.
2824
262abc0d
SM
28252020-06-08 Simon Marchi <simon.marchi@efficios.com>
2826
2827 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2828 methods.
2829 (TYPE_INDEX_TYPE): Use type::index_type.
2830 * gdbtypes.c (create_array_type_with_stride): Likewise.
2831
82836c92
TT
28322020-06-07 Tom Tromey <tom@tromey.com>
2833
2834 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2835 parameter.
2836 (generic_value_print): Update.
2837
940dace9
AB
28382020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2839
2840 Revert commit 982a38f60b0.
2841 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2842
982a38f6
AB
28432020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2844
2845 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2846 avoid use after free.
2847
82f06518
TV
28482020-06-05 Tom de Vries <tdevries@suse.de>
2849
2850 * NEWS: Fix typos.
2851
f8c41851
SM
28522020-06-04 Simon Marchi <simon.marchi@efficios.com>
2853
2854 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2855 the per_bfd object.
2856 (dwarf2_read_debug_names): Likewise.
2857 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2858 object when re-using a per_bfd object with an index.
2859
f9b5d5ea
TV
28602020-06-03 Tom de Vries <tdevries@suse.de>
2861
2862 PR symtab/26046
2863 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2864 children for C++.
2865 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2866 DW_TAG_subprogram.
2867
f6eee2d0
AB
28682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2869
2870 * ada-lang.c (ada_language_data): Delete skip_trampoline
2871 initializer.
2872 * c-lang.c (c_language_data): Likewise.
2873 (cplus_language_data): Likewise.
2874 (cplus_language::skip_trampoline): New member function.
2875 (asm_language_data): Delete skip_trampoline initializer.
2876 (minimal_language_data): Likewise.
2877 * d-lang.c (d_language_data): Likewise.
2878 * f-lang.c (f_language_data): Likewise.
2879 * go-lang.c (go_language_data): Likewise.
2880 * language.c (unk_lang_trampoline): Delete function.
2881 (skip_language_trampoline): Update.
2882 (unknown_language_data): Delete skip_trampoline initializer.
2883 (auto_language_data): Likewise.
2884 * language.h (language_data): Delete skip_trampoline field.
2885 (language_defn::skip_trampoline): New function.
2886 * m2-lang.c (m2_language_data): Delete skip_trampoline
2887 initializer.
2888 * objc-lang.c (objc_skip_trampoline): Delete function, move
2889 implementation to objc_language::skip_trampoline.
2890 (objc_language_data): Delete skip_trampoline initializer.
2891 (objc_language::skip_trampoline): New member function with
2892 implementation from objc_skip_trampoline.
2893 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2894 initializer.
2895 * p-lang.c (pascal_language_data): Likewise.
2896 * rust-lang.c (rust_language_data): Likewise.
2897
0a50df5d
AB
28982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2899
2900 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2901 (ada_language::demangle): New member function.
2902 * c-lang.c (c_language_data): Delete la_demangle initializer.
2903 (cplus_language_data): Delete la_demangle initializer.
2904 (cplus_language::demangle): New member function.
2905 (asm_language_data): Delete la_demangle initializer.
2906 (minimal_language_data): Delete la_demangle initializer.
2907 * d-lang.c (d_language_data): Delete la_demangle initializer.
2908 (d_language::demangle): New member function.
2909 * f-lang.c (f_language_data): Delete la_demangle initializer.
2910 (f_language::demangle): New member function.
2911 * go-lang.c (go_language_data): Delete la_demangle initializer.
2912 (go_language::demangle): New member function.
2913 * language.c (language_demangle): Update.
2914 (unk_lang_demangle): Delete.
2915 (unknown_language_data): Delete la_demangle initializer.
2916 (unknown_language::demangle): New member function.
2917 (auto_language_data): Delete la_demangle initializer.
2918 (auto_language::demangle): New member function.
2919 * language.h (language_data): Delete la_demangle field.
2920 (language_defn::demangle): New function.
2921 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2922 * objc-lang.c (objc_language_data): Delete la_demangle
2923 initializer.
2924 (objc_language::demangle): New member function.
2925 * opencl-lang.c (opencl_language_data): Delete la_demangle
2926 initializer.
2927 * p-lang.c (pascal_language_data): Likewise.
2928 * rust-lang.c (rust_language_data): Likewise.
2929 (rust_language::demangle): New member function.
2930
fbfb0a46
AB
29312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2932
2933 * ada-lang.c (ada_language_data): Delete la_print_type
2934 initializer.
2935 (ada_language::print_type): New member function.
2936 * c-lang.c (c_language_data): Delete la_print_type initializer.
2937 (c_language::print_type): New member function.
2938 (cplus_language_data): Delete la_print_type initializer.
2939 (cplus_language::print_type): New member function.
2940 (asm_language_data): Delete la_print_type initializer.
2941 (asm_language::print_type): New member function.
2942 (minimal_language_data): Delete la_print_type initializer.
2943 (minimal_language::print_type): New member function.
2944 * d-lang.c (d_language_data): Delete la_print_type initializer.
2945 (d_language::print_type): New member function.
2946 * f-lang.c (f_language_data): Delete la_print_type initializer.
2947 (f_language::print_type): New member function.
2948 * go-lang.c (go_language_data): Delete la_print_type initializer.
2949 (go_language::print_type): New member function.
2950 * language.c (unk_lang_print_type): Delete.
2951 (unknown_language_data): Delete la_print_type initializer.
2952 (unknown_language::print_type): New member function.
2953 (auto_language_data): Delete la_print_type initializer.
2954 (auto_language::print_type): New member function.
2955 * language.h (language_data): Delete la_print_type field.
2956 (language_defn::print_type): New function.
2957 (LA_PRINT_TYPE): Update.
2958 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2959 (m2_language::print_type): New member function.
2960 * objc-lang.c (objc_language_data): Delete la_print_type
2961 initializer.
2962 (objc_language::print_type): New member function.
2963 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2964 to opencl_language::print_type.
2965 (opencl_language_data): Delete la_print_type initializer.
2966 (opencl_language::print_type): New member function, implementation
2967 from opencl_print_type.
2968 * p-lang.c (pascal_language_data): Delete la_print_type
2969 initializer.
2970 (pascal_language::print_type): New member function.
2971 * rust-lang.c (rust_print_type): Delete, implementation moved to
2972 rust_language::print_type.
2973 (rust_language_data): Delete la_print_type initializer.
2974 (rust_language::print_type): New member function, implementation
2975 from rust_print_type.
2976
6f827019
AB
29772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2978
2979 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2980 implementation moves to...
2981 (ada_language::sniff_from_mangled_name): ...here. Update return
2982 type.
2983 (ada_language_data): Delete la_sniff_from_mangled_name
2984 initializer.
2985 * c-lang.c (c_language_data): Likewise.
2986 (cplus_language_data): Likewise.
2987 (cplus_language::sniff_from_mangled_name): New member function,
2988 implementation taken from gdb_sniff_from_mangled_name.
2989 (asm_language_data): Delete la_sniff_from_mangled_name
2990 initializer.
2991 (minimal_language_data): Likewise.
2992 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2993 implementation moves to cplus_language::sniff_from_mangled_name.
2994 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2995 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2996 moves to...
2997 (d_language::sniff_from_mangled_name): ...here.
2998 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2999 * f-lang.c (f_language_data): Likewise.
3000 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3001 moves to...
3002 (go_language::sniff_from_mangled_name): ...here.
3003 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3004 * language.c (language_sniff_from_mangled_name): Delete.
3005 (unknown_language_data): Delete la_sniff_from_mangled_name
3006 initializer.
3007 (auto_language_data): Likewise.
3008 * language.h (language_data): Delete la_sniff_from_mangled_name
3009 field.
3010 (language_defn::sniff_from_mangled_name): New function.
3011 (language_sniff_from_mangled_name): Delete declaration.
3012 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3013 field.
3014 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3015 implementation moves to...
3016 (objc_language::sniff_from_mangled_name): ...here.
3017 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3018 * opencl-lang.c (opencl_language_data): Likewise.
3019 * p-lang.c (pascal_language_data): Likewise.
3020 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3021 implementation moves to...
3022 (rust_language::sniff_from_mangled_name): ...here.
3023 (rust_language_data): Delete la_sniff_from_mangled_name
3024 initializer.
3025 * symtab.c (symbol_find_demangled_name): Call
3026 sniff_from_mangled_name member function.
3027
fb8006fd
AB
30282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3029
3030 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3031 initializer.
3032 * c-lang.c (c_language_data): Likewise.
3033 (cplus_language_data): Likewise.
3034 (cplus_language::search_name_hash): New member function.
3035 (asm_language_data): Delete la_search_name_hash initializer.
3036 (minimal_language_data): Likewise.
3037 * d-lang.c (d_language_data): Likewise.
3038 * dictionary.c (default_search_name_hash): Rename to...
3039 (language_defn::search_name_hash): ...this.
3040 * f-lang.c (f_language_data): Likewise.
3041 (f_language::search_name_hash): New member function.
3042 * go-lang.c (go_language_data): Delete la_search_name_hash
3043 initializer.
3044 * language.c (unknown_language_data): Likewise.
3045 (auto_language_data): Likewise.
3046 * language.h (struct language_data): Delete la_search_name_hash
3047 field.
3048 (language_defn::search_name_hash): Declare new member function.
3049 (default_search_name_hash): Delete declaration.
3050 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3051 initializer.
3052 * objc-lang.c (objc_language_data): Likewise.
3053 * opencl-lang.c (opencl_language_data): Likewise.
3054 * p-lang.c (pascal_language_data): Likewise.
3055 * rust-lang.c (rust_language_data): Likewise.
3056 * symtab.c (search_name_hash): Update call.
3057
8e25bafe
AB
30582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3059
3060 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3061 initializer.
3062 * c-lang.c (class compile_instance): Declare.
3063 (c_language_data): Delete la_get_compile_instance initializer.
3064 (c_language::get_compile_instance): New member function.
3065 (cplus_language_data): Delete la_get_compile_instance initializer.
3066 (cplus_language::get_compile_instance): New member function.
3067 (asm_language_data): Delete la_get_compile_instance initializer.
3068 (minimal_language_data): Likewise.
3069 * c-lang.h (c_get_compile_context): Update comment.
3070 (cplus_get_compile_context): Update comment.
3071 * compile/compile.c (compile_to_object): Update calls, don't rely
3072 on function pointer being NULL.
3073 * d-lang.c (d_language_data): Delete la_get_compile_instance
3074 initializer.
3075 * f-lang.c (f_language_data): Likewise.
3076 * go-lang.c (go_language_data): Likewise.
3077 * language.c (unknown_language_data): Likewise.
3078 (auto_language_data): Likewise.
3079 * language.h (language_data): Delete la_get_compile_instance field.
3080 (language_defn::get_compile_instance): New member function.
3081 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3082 initializer.
3083 * objc-lang.c (objc_language_data): Likewise.
3084 * opencl-lang.c (opencl_language_data): Likewise.
3085 * p-lang.c (pascal_language_data): Likewise.
3086 * rust-lang.c (rust_language_data): Likewise.
3087
4009ee92
AB
30882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3089
3090 * ada-lang.c (ada_add_all_symbols): Update comment.
3091 (ada_iterate_over_symbols): Delete, move implementation to...
3092 (ada_language::iterate_over_symbols): ...here, a new member
3093 function, rewrite to use range based for loop.
3094 (ada_language_data): Delete la_iterate_over_symbols initializer.
3095 * c-lang.c (c_language_data): Likewise.
3096 (cplus_language_data): Likewise.
3097 (asm_language_data): Likewise.
3098 (minimal_language_data): Likewise.
3099 * d-lang.c (d_language_data): Likewise.
3100 * f-lang.c (f_language_data): Likewise.
3101 * go-lang.c (go_language_data): Likewise.
3102 * language.c (unknown_language_data): Likewise.
3103 (auto_language_data): Likewise.
3104 * language.h (language_data): Delete la_iterate_over_symbols field.
3105 (language_defn::iterate_over_symbols): New member function.
3106 (LA_ITERATE_OVER_SYMBOLS): Update.
3107 * linespec.c (iterate_over_all_matching_symtabs): Update.
3108 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3109 initializer.
3110 * objc-lang.c (objc_language_data): Likewise.
3111 * opencl-lang.c (opencl_language_data): Likewise.
3112 * p-lang.c (pascal_language_data): Likewise.
3113 * rust-lang.c (rust_language_data): Likewise.
3114
54f4ca46
AB
31152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3116
3117 * ada-lang.c (ada_language_data): Delete
3118 la_lookup_transparent_type initializer.
3119 * c-lang.c (c_language_data): Likewise.
3120 (cplus_language_data): Likewise.
3121 (cplus_language::lookup_transparent_type): New member function.
3122 (asm_language_data): Delete la_lookup_transparent_type
3123 initializer.
3124 (minimal_language_data): Likewise.
3125 * d-lang.c (d_language_data): Likewise.
3126 * f-lang.c (f_language_data): Likewise.
3127 * go-lang.c (go_language_data): Likewise.
3128 * language.c (unknown_language_data): Likewise.
3129 (auto_language_data): Likewise.
3130 * language.h (struct language_data): Delete
3131 la_lookup_transparent_type field.
3132 (language_defn::lookup_transparent_type): New member function.
3133 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3134 initializer.
3135 * objc-lang.c (objc_language_data): Likewise.
3136 * opencl-lang.c (opencl_language_data): Likewise.
3137 * p-lang.c (pascal_language_data): Likewise.
3138 * rust-lang.c (rust_language_data): Likewise.
3139 * symtab.c (symbol_matches_domain): Update call.
3140
1fb314aa
AB
31412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3142
3143 * ada-lang.c (ada_language_arch_info): Delete function, move
3144 implementation to...
3145 (ada_language::language_arch_info): ...here, a new member
3146 function.
3147 (ada_language_data): Delete la_language_arch_info.
3148 * c-lang.c (c_language_data): Likewise.
3149 (c_language::language_arch_info): New member function.
3150 (cplus_language_arch_info): Delete function, move
3151 implementation to...
3152 (cplus_language::language_arch_info): ...here, a new member
3153 function.
3154 (cplus_language_data): Delete la_language_arch_info.
3155 (asm_language_data): Likewise.
3156 (asm_language::language_arch_info): New member function.
3157 (minimal_language_data): Delete la_language_arch_info.
3158 (minimal_language::language_arch_info): New member function.
3159 * d-lang.c (d_language_arch_info): Delete function, move
3160 implementation to...
3161 (d_language::language_arch_info): ...here, a new member
3162 function.
3163 (d_language_data): Delete la_language_arch_info.
3164 * f-lang.c (f_language_arch_info): Delete function, move
3165 implementation to...
3166 (f_language::language_arch_info): ...here, a new member
3167 function.
3168 (f_language_data): Delete la_language_arch_info.
3169 * go-lang.c (go_language_arch_info): Delete function, move
3170 implementation to...
3171 (go_language::language_arch_info): ...here, a new member
3172 function.
3173 (go_language_data): Delete la_language_arch_info.
3174 * language.c (unknown_language_data): Likewise.
3175 (unknown_language::language_arch_info): New member function.
3176 (auto_language_data): Delete la_language_arch_info.
3177 (auto_language::language_arch_info): New member function.
3178 (language_gdbarch_post_init): Update call to
3179 la_language_arch_info.
3180 * language.h (language_data): Delete la_language_arch_info
3181 function pointer.
3182 (language_defn::language_arch_info): New function.
3183 * m2-lang.c (m2_language_arch_info): Delete function, move
3184 implementation to...
3185 (m2_language::language_arch_info): ...here, a new member
3186 function.
3187 (m2_language_data): Delete la_language_arch_info.
3188 * objc-lang.c (objc_language_arch_info): Delete function, move
3189 implementation to...
3190 (objc_language::language_arch_info): ...here, a new member
3191 function.
3192 (objc_language_data): Delete la_language_arch_info.
3193 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3194 implementation to...
3195 (opencl_language::language_arch_info): ...here, a new member
3196 function.
3197 (opencl_language_data): Delete la_language_arch_info.
3198 * p-lang.c (pascal_language_arch_info): Delete function, move
3199 implementation to...
3200 (pascal_language::language_arch_info): ...here, a new member
3201 function.
3202 (pascal_language_data): Delete la_language_arch_info.
3203 * rust-lang.c (rust_language_arch_info): Delete function, move
3204 implementation to...
3205 (rust_language::language_arch_info): ...here, a new member
3206 function.
3207 (rust_language_data): Delete la_language_arch_info.
3208
48448202
AB
32092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3210
3211 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3212 initializer.
3213 * c-lang.c (c_language_data): Likewise.
3214 (cplus_language_data): Likewise.
3215 (cplus_language::pass_by_reference_info): New method.
3216 (asm_language_data): Delete la_pass_by_reference initializer.
3217 (minimal_language_data): Likewise.
3218 * cp-abi.c (cp_pass_by_reference): Remove use of
3219 default_pass_by_reference.
3220 * d-lang.c (d_language_data): Likewise.
3221 * f-lang.c (f_language_data): Likewise.
3222 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3223 default_pass_by_reference.
3224 * go-lang.c (go_language_data): Likewise.
3225 * language.c (language_pass_by_reference): Update.
3226 (default_pass_by_reference): Delete.
3227 (unknown_language_data): Delete la_pass_by_reference
3228 initializer.
3229 (auto_language_data): Likewise.
3230 * language.h (struct language_data): Delete la_pass_by_reference
3231 field.
3232 (language_defn::pass_by_reference_info): New member function.
3233 (default_pass_by_reference): Delete declaration.
3234 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3235 initializer.
3236 * objc-lang.c (objc_language_data): Likewise.
3237 * opencl-lang.c (opencl_language_data): Likewise.
3238 * p-lang.c (pascal_language_data): Likewise.
3239 * rust-lang.c (rust_language_data): Likewise.
3240
15e5fd35
AB
32412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3242
3243 * ada-lang.c (ada_read_var_value): Delete function, move
3244 implementation to...
3245 (ada_language::read_var_value): ...here.
3246 (ada_language_data): Delete la_read_var_value initializer.
3247 * c-lang.c (c_language_data): Likewise.
3248 (cplus_language_data): Likewise.
3249 (minimal_language_data): Likewise.
3250 * d-lang.c (d_language_data): Likewise.
3251 * f-lang.c (f_language_data): Likewise.
3252 * findvar.c (default_read_var_value): Rename to...
3253 (language_defn::read_var_value): ...this.
3254 * findvar.c (read_var_value): Update header comment, and change to
3255 call member function instead of function pointer.
3256 * go-lang.c (go_language_data): Likewise.
3257 * language.c (unknown_language_data): Delete la_read_var_value
3258 initializer.
3259 (auto_language_data): Likewise.
3260 * language.h (struct language_data): Delete la_read_var_value
3261 field.
3262 (language_defn::read_var_value): New member function.
3263 (default_read_var_value): Delete declaration.
3264 * m2-lang.c (m2_language_data): Delete la_read_var_value
3265 initializer.
3266 * objc-lang.c (objc_language_data): Likewise.
3267 * opencl-lang.c (opencl_language_data): Likewise.
3268 * p-lang.c (pascal_language_data): Likewise.
3269 * rust-lang.c (rust_language_data): Likewise.
3270 * value.h (default_read_var_value): Delete declaration.
3271
5bd40f2a
AB
32722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3273
3274 * ada-lang.c (ada_print_array_index): Delete function, move
3275 implementation to...
3276 (ada_language::print_array_index): ...here.
3277 (ada_language_data): Delete la_print_array_index initializer.
3278 * c-lang.c (c_language_data): Likewise.
3279 (cplus_language_data): Likewise.
3280 (minimal_language_data): Likewise.
3281 * d-lang.c (d_language_data): Likewise.
3282 * f-lang.c (f_language_data): Likewise.
3283 * go-lang.c (go_language_data): Likewise.
3284 * language.c (default_print_array_index): Delete function, move
3285 implementation to...
3286 (language_defn::print_array_index): ...here.
3287 (unknown_language_data): Delete la_print_array_index initializer.
3288 (auto_language_data): Likewise.
3289 * language.h (struct language_data): Delete la_print_array_index
3290 field.
3291 (language_defn::print_array_index): New member function.
3292 (LA_PRINT_ARRAY_INDEX): Update.
3293 (default_print_array_index): Delete declaration.
3294 * m2-lang.c (m2_language_data): Delete la_print_array_index
3295 initializer.
3296 * objc-lang.c (objc_language_data): Likewise.
3297 * opencl-lang.c (opencl_language_data): Likewise.
3298 * p-lang.c (pascal_language_data): Likewise.
3299 * rust-lang.c (rust_language_data): Likewise.
3300
0874fd07
AB
33012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3302
3303 * gdb/ada-lang.c (ada_language_defn): Convert to...
3304 (ada_language_data): ...this.
3305 (class ada_language): New class.
3306 (ada_language_defn): New static global.
3307 * gdb/c-lang.c (c_language_defn): Convert to...
3308 (c_language_data): ...this.
3309 (class c_language): New class.
3310 (c_language_defn): New static global.
3311 (cplus_language_defn): Convert to...
3312 (cplus_language_data): ...this.
3313 (class cplus_language): New class.
3314 (cplus_language_defn): New static global.
3315 (asm_language_defn): Convert to...
3316 (asm_language_data): ...this.
3317 (class asm_language): New class.
3318 (asm_language_defn): New static global.
3319 (minimal_language_defn): Convert to...
3320 (minimal_language_data): ...this.
3321 (class minimal_language): New class.
3322 (minimal_language_defn): New static global.
3323 * gdb/d-lang.c (d_language_defn): Convert to...
3324 (d_language_data): ...this.
3325 (class d_language): New class.
3326 (d_language_defn): New static global.
3327 * gdb/f-lang.c (f_language_defn): Convert to...
3328 (f_language_data): ...this.
3329 (class f_language): New class.
3330 (f_language_defn): New static global.
3331 * gdb/go-lang.c (go_language_defn): Convert to...
3332 (go_language_data): ...this.
3333 (class go_language): New class.
3334 (go_language_defn): New static global.
3335 * gdb/language.c (unknown_language_defn): Remove declaration.
3336 (current_language): Initialize to nullptr, real initialization is
3337 moved to _initialize_language.
3338 (languages): Delete global.
3339 (language_defn::languages): Define.
3340 (set_language_command): Use language_defn::languages.
3341 (set_language): Likewise.
3342 (range_error): Likewise.
3343 (language_enum): Likewise.
3344 (language_def): Likewise.
3345 (add_set_language_command): Use language_def::languages for the
3346 language list, and language_def to lookup language pointers.
3347 (skip_language_trampoline): Use language_defn::languages.
3348 (unknown_language_defn): Convert to...
3349 (unknown_language_data): ...this.
3350 (class unknown_language): New class.
3351 (unknown_language_defn): New static global.
3352 (auto_language_defn): Convert to...
3353 (auto_language_data): ...this.
3354 (class auto_language): New class.
3355 (auto_language_defn): New static global.
3356 (language_gdbarch_post_init): Use language_defn::languages.
3357 (_initialize_language): Initialize current_language.
3358 * gdb/language.h (struct language_defn): Rename to...
3359 (struct language_data): ...this.
3360 (struct language_defn): New.
3361 (auto_language_defn): Delete.
3362 (unknown_language_defn): Delete.
3363 (minimal_language_defn): Delete.
3364 (ada_language_defn): Delete.
3365 (asm_language_defn): Delete.
3366 (c_language_defn): Delete.
3367 (cplus_language_defn): Delete.
3368 (d_language_defn): Delete.
3369 (f_language_defn): Delete.
3370 (go_language_defn): Delete.
3371 (m2_language_defn): Delete.
3372 (objc_language_defn): Delete.
3373 (opencl_language_defn): Delete.
3374 (pascal_language_defn): Delete.
3375 (rust_language_defn): Delete.
3376 * gdb/m2-lang.c (m2_language_defn): Convert to...
3377 (m2_language_data): ...this.
3378 (class m2_language): New class.
3379 (m2_language_defn): New static global.
3380 * gdb/objc-lang.c (objc_language_defn): Convert to...
3381 (objc_language_data): ...this.
3382 (class objc_language): New class.
3383 (objc_language_defn): New static global.
3384 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3385 (opencl_language_data): ...this.
3386 (class opencl_language): New class.
3387 (opencl_language_defn): New static global.
3388 * gdb/p-lang.c (pascal_language_defn): Convert to...
3389 (pascal_language_data): ...this.
3390 (class pascal_language): New class.
3391 (pascal_language_defn): New static global.
3392 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3393 language pointer, update comment format.
3394 * gdb/rust-lang.c (rust_language_defn): Convert to...
3395 (rust_language_data): ...this.
3396 (class rust_language): New class.
3397 (rust_language_defn): New static global.
3398
1313c56e
AB
33992020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3400
3401 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3402 member variable.
3403 <m_stmt_at_address>: New member variable.
3404 (lnp_state_machine::record_line): Don't record some lines, update
3405 tracking of is_stmt at the same address.
3406 (lnp_state_machine::lnp_state_machine): Initialise new member
3407 variables.
3408
b7ed9f3d
ST
34092020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3410
3411 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3412 "-include gnu-nat-mig.h".
3413 * gnu-nat-mig.h: New file.
3414 * gnu-nat.c: Include "gnu-nat-mig.h".
3415 (exc_server, msg_reply_server, notify_server,
3416 process_reply_server): Remove declarations.
3417
14a8ad62
ST
34182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3419
3420 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3421 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3422 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3423 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3424 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3425 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3426 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3427 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3428 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3429 to gnu_nat_target class.
3430 * gnu-nat.c: Likewise.
3431 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3432 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3433 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3434 object.
3435 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3436 instead of `gnu_target'.
3437
0af5e106
ST
34382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3439
3440 * i386-gnu-tdep.c: Include "gdbcore.h"
3441 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3442 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3443 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3444 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3445 i386_gnu_sigcontext_addr): New functions
3446 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3447 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3448 tdep.
3449
078f2fc9
ST
34502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3451
3452 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3453 before fork_inferior call. Avoid calling it if target_is_pushed returns
3454 true.
3455
53dff92c
ST
34562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3457
3458 * gnu-nat.h (gnu_target): New variable declaration.
3459 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3460 gnu_target.
3461 * gnu-nat.c (gnu_target): New variable.
3462 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3463 add_thread_silent, and add_thread calls.
3464 (gnu_nat_target::create_inferior): Pass gnu_target to
3465 add_thread_silent, thread_change_ptid call.
3466 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3467 call.
3468
5a8b8627
ST
34692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3470
3471 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3472 (gnu_nat_target::find_memory_regions): Remove unused
3473 `old_address' variable.
3474
366f550a
ST
34752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3476
3477 * gnu-nat.c: Include "gdbarch.h".
3478
f14871bf
ST
34792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3480
3481 * reply_mig_hack.awk (Error return): Cast function through
3482 void *, to bypass compiler function call check.
3483
c6887cfb
ST
34842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3485
3486 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3487 $(srcdir)/reply_mig_hack.awk.
3488
6930bffe
ST
34892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3490
3491 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3492
112c22ed
JG
34932020-05-30 Jonny Grant <jg@jguk.org>
3494
3495 * configure.ac (ACX_BUGURL): change bug URL to https.
3496
f68f85b5
PA
34972020-05-30 Pedro Alves <palves@redhat.com>
3498
3499 * cp-support.c (replace_typedefs_template): New.
3500 (replace_typedefs_qualified_name): Handle
3501 DEMANGLE_COMPONENT_TEMPLATE.
3502
976ca316
SM
35032020-05-29 Simon Marchi <simon.marchi@efficios.com>
3504
3505 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3506 dwarf2/index-cache.h, dwarf2/index-write.c,
3507 dwarf2/index-write.h, dwarf2/line-header.c,
3508 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3509 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3510 variables and fields from `dwarf2_per_objfile` to just
3511 `per_objfile` throughout.
3512
989ade05
SM
35132020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3514
3515 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3516 <push_dwarf_reg_entry_value>: Add comment.
3517
c47bae85
KB
35182020-05-28 Kevin Buettner <kevinb@redhat.com>
3519 Keith Seitz <keiths@redhat.com>
3520
3521 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3522 instead of PyEval_ReleaseLock.
3523 (class gdbpy_gil): Move to earlier in file.
3524 (finalize_python): Set gdb_python_initialized.
3525 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3526 when not initialized.
3527
44486dcf
SM
35282020-05-28 Simon Marchi <simon.marchi@efficios.com>
3529
3530 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3531 <push_dwarf_reg_entry_value>: Remove assert. Override
3532 per_objfile with caller_per_objfile.
3533
f030440d
TV
35342020-05-28 Tom de Vries <tdevries@suse.de>
3535
3536 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3537 PR gold/15646 workaround to symbol kind "type".
3538
f0fbb768
TT
35392020-05-27 Tom Tromey <tromey@adacore.com>
3540
3541 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3542
af0b2a3e
TT
35432020-05-27 Tom Tromey <tromey@adacore.com>
3544
3545 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3546 Use htab_find_with_hash.
3547 <add_abbrev>: Remove "abbrev_number" parameter.
3548 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3549 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3550 (hash_abbrev): Add comment.
3551 (abbrev_table::lookup_abbrev): Move to header file.
3552 (abbrev_table::read): Update.
3553
7d00ffec
TT
35542020-05-27 Tom Tromey <tromey@adacore.com>
3555
3556 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3557 method.
3558 <canonical_name>: New member.
3559 <raw_name>: Rename from "name".
3560 (partial_die_info): Initialize canonical_name.
3561 (scan_partial_symbols): Check raw_name.
3562 (partial_die_parent_scope, partial_die_full_name)
3563 (add_partial_symbol, add_partial_subprogram)
3564 (add_partial_enumeration, load_partial_dies): Use "name" method.
3565 (partial_die_info::name): New method.
3566 (partial_die_info::read, guess_partial_die_structure_name)
3567 (partial_die_info::fixup): Update.
3568
697bba18
TT
35692020-05-27 Tom Tromey <tromey@adacore.com>
3570
3571 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3572 <get_ref_die_offset>: Inline.
3573 <get_ref_die_offset_complaint>: New method.
3574 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3575 (attribute::get_ref_die_offset_complaint): Rename from
3576 get_ref_die_offset. Just issue complaint.
3577
c17ace43
HD
35782020-05-27 Hannes Domani <ssbssa@yahoo.de>
3579
3580 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3581
96445f0b
HD
35822020-05-27 Hannes Domani <ssbssa@yahoo.de>
3583
3584 * exec.c (exec_file_attach): Use errno value of first openp failure.
3585
ac637ec3
HD
35862020-05-27 Hannes Domani <ssbssa@yahoo.de>
3587
3588 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3589 Don't close thread handle.
3590
17ee85fc
TT
35912020-05-27 Tom Tromey <tom@tromey.com>
3592 Simon Marchi <simon.marchi@efficios.com>
3593
3594 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3595 shared_ptr.
3596 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3597 member.
3598 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3599 dwarf2_per_bfd_objfile_data_key>: New globals.
3600 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3601 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3602 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3603 shared.
3604 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3605 short-circuit when sharing.
3606 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3607 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3608
39b16f87
SM
36092020-05-27 Simon Marchi <simon.marchi@efficios.com>
3610
3611 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3612 to...
3613 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3614 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3615
fcf23d5b
SM
36162020-05-27 Simon Marchi <simon.marchi@efficios.com>
3617
3618 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3619 build_name_components, find_name_components_bounds>:
3620 Add per_objfile parameter.
3621 (struct mapped_index) <symbol_name_at>: Likewise.
3622 (struct mapped_debug_names): Remove constructor.
3623 <dwarf2_per_objfile>: Remove field.
3624 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3625 (mapped_index_base::find_name_components_bounds,
3626 mapped_index_base::build_name_components,
3627 dw2_expand_symtabs_matching_symbol): Likewise.
3628 (class mock_mapped_index) <symbol_name_at>: Likewise.
3629 (check_match): Likewise.
3630 (check_find_bounds_finds): Likewise.
3631 (test_mapped_index_find_name_component_bounds): Update.
3632 (CHECK_MATCH): Update.
3633 (dw2_expand_symtabs_matching): Update.
3634 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3635 per_objfile parameter.
3636 <find_vec_in_debug_names>: Likewise.
3637 <m_per_objfile>: New field.
3638 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3639 parameter.
3640 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3641 (dw2_debug_names_iterator::next): Update.
3642 (dw2_debug_names_lookup_symbol): Update.
3643 (dw2_debug_names_expand_symtabs_for_function): Update.
3644 (dw2_debug_names_map_matching_symbols): Update.
3645 (dw2_debug_names_expand_symtabs_matching): Update.
3646 (dwarf2_read_debug_names): Update.
3647
7188ed02
SM
36482020-05-27 Simon Marchi <simon.marchi@efficios.com>
3649
3650 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3651 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3652 move to dwarf2_per_objfile.
3653 <read_in_chain>: Remove.
3654 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3655 remove_all_cus, age_comp_units>: New methods.
3656 <m_dwarf2_cus>: New member.
3657 (struct dwarf2_per_cu_data) <cu>: Remove.
3658 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3659 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3660 moved to methods of dwarf2_per_objfile.
3661 (dwarf2_clear_marks): Remove.
3662 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3663 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3664 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3665 (dwarf2_per_objfile::remove_all_cus): New.
3666 (class free_cached_comp_units) <~free_cached_comp_units>:
3667 Update.
3668 (load_cu): Update.
3669 (dw2_do_instantiate_symtab): Adjust.
3670 (fill_in_sig_entry_from_dwo_entry): Adjust.
3671 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3672 (cutu_reader::cutu_reader): Likewise.
3673 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3674 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3675 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3676 and dwarf2_per_objfile::age_comp_units.
3677 (load_partial_comp_unit): Update.
3678 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3679 (process_queue): Likewise.
3680 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3681 backlink.
3682 (dwarf2_read_addr_index): Likewise.
3683 (follow_die_offset): Likewise.
3684 (dwarf2_fetch_die_loc_sect_off): Likewise.
3685 (dwarf2_fetch_constant_bytes): Likewise.
3686 (dwarf2_fetch_die_type_sect_off): Likewise.
3687 (follow_die_sig_1): Likewise.
3688 (load_full_type_unit): Likewise.
3689 (read_signatured_type): Likewise.
3690 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3691 (dwarf2_cu::~dwarf2_cu): Remove.
3692 (dwarf2_per_objfile::get_cu): New.
3693 (dwarf2_per_objfile::set_cu): New.
3694 (age_cached_comp_units): Rename to...
3695 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3696 to std::unordered_map.
3697 (free_one_cached_comp_unit): Rename to...
3698 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3699 to std::unordered_map.
3700 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3701 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3702 a dwarf2_per_objfile in data.
3703 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3704 (dwarf2_clear_marks): Remove.
3705
2e671100
SM
37062020-05-27 Simon Marchi <simon.marchi@efficios.com>
3707
3708 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3709 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3710 (init_tu_and_read_dwo_dies): Likewise.
3711 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3712 (cutu_reader::cutu_reader): Likewise.
3713 (load_partial_comp_unit): Likewise.
3714 (process_psymtab_comp_unit): Update.
3715 (build_type_psymtabs_1): Update.
3716 (process_skeletonless_type_unit): Update.
3717 (load_full_comp_unit): Update.
3718 (find_partial_die): Update.
3719 (dwarf2_read_addr_index): Update.
3720 (read_signatured_type): Update.
3721
2e6a9f79
SM
37222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3723
3724 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3725 m_header_read_in>: New fields.
3726 <get_header>: New method.
3727 * dwarf2/read.c (per_cu_header_read_in): Remove.
3728 (dwarf2_per_cu_data::get_header): New.
3729 (dwarf2_per_cu_data::addr_size): Update.
3730 (dwarf2_per_cu_data::offset_size): Update.
3731 (dwarf2_per_cu_data::ref_addr_size): Update.
3732
1b555f17
SM
37332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3734
3735 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3736 (dw2_do_instantiate_symtab): Update.
3737 (queue_and_load_all_dwo_tus): Change parameter from
3738 dwarf2_per_cu_data to dwarf2_cu.
3739 (dwarf2_fetch_die_loc_sect_off): Update.
3740 (dwarf2_fetch_constant_bytes): Update.
3741 (dwarf2_fetch_die_type_sect_off): Update.
3742
8fc0b21d
SM
37432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3744
3745 * dwarf2/read.c (process_full_comp_unit,
3746 process_full_type_unit): Remove per_cu, per_objfile paramters.
3747 Add dwarf2_cu parameter.
3748 (process_queue): Update.
3749
168c9250
SM
37502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3751
3752 * dwarf2/read.c (create_cu_from_index_list): Replace
3753 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3754 (create_cus_from_index_list): Likewise.
3755 (create_cus_from_index): Likewise.
3756 (create_signatured_type_table_from_index): Likewise.
3757 (create_cus_from_debug_names_list): Likewise.
3758 (create_cus_from_debug_names): Likewise.
3759 (dwarf2_read_gdb_index): Update.
3760 (dwarf2_read_debug_names): Update.
3761
e286671b
TT
37622020-05-27 Tom Tromey <tom@tromey.com>
3763 Simon Marchi <simon.marchi@efficios.com>
3764
3765 * dwarf2/read.h (struct dwarf2_per_objfile)
3766 <get_type_for_signatured_type, set_type_for_signatured_type>:
3767 New methods.
3768 <m_type_map>: New member.
3769 (struct signatured_type) <type>: Remove.
3770 * dwarf2/read.c
3771 (dwarf2_per_objfile::get_type_for_signatured_type,
3772 dwarf2_per_objfile::set_type_for_signatured_type): New.
3773 (get_signatured_type): Use new methods.
3774
8adb8487
TT
37752020-05-27 Tom Tromey <tom@tromey.com>
3776 Simon Marchi <simon.marchi@efficios.com>
3777
3778 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3779 (struct dwarf2_per_objfile) <type_units>: New member.
3780 <get_type_unit_group_unshareable>: New method.
3781 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3782 num_symtabs, symtabs>: Remove; move to
3783 type_unit_group_unshareable.
3784 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3785 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3786 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3787
127bbf4b
SM
37882020-05-27 Simon Marchi <simon.marchi@efficios.com>
3789
3790 * dwarf2/read.h (struct dwarf2_per_cu_data):
3791 <dwarf2_per_objfile>: Remove.
3792 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3793 dwarf2_per_objfile.
3794 (create_signatured_type_table_from_index): Likewise.
3795 (create_signatured_type_table_from_debug_names): Likewise.
3796 (create_debug_type_hash_table): Likewise.
3797 (fill_in_sig_entry_from_dwo_entry): Likewise.
3798 (create_type_unit_group): Likewise.
3799 (read_comp_units_from_section): Likewise.
3800 (create_cus_hash_table): Likewise.
3801
f6e649dd
SM
38022020-05-27 Simon Marchi <simon.marchi@efficios.com>
3803
3804 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3805 dwarf2_per_cu_data::dwarf2_per_objfile.
3806 (compute_compunit_symtab_includes): Likewise.
3807 (dwarf2_cu::start_symtab): Likewise.
3808
aa66c379
SM
38092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3810
3811 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3812 parameter.
3813 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3814 (read_namespace_alias): Update.
3815 (lookup_die_type): Update.
3816 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3817 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3818 Update.
3819 (disassemble_dwarf_expression): Update.
3820
120ce1b5
SM
38212020-05-27 Simon Marchi <simon.marchi@efficios.com>
3822
3823 * dwarf2/read.h (struct dwarf2_queue_item): Add
3824 dwarf2_per_objfile parameter, assign new parameter.
3825 <per_objfile>: New field.
3826 * dwarf2/read.c (free_one_cached_comp_unit): Add
3827 dwarf2_per_objfile parameter.
3828 (queue_comp_unit): Likewise.
3829 (dw2_do_instantiate_symtab): Update.
3830 (process_psymtab_comp_unit): Update.
3831 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3832 (process_imported_unit_die): Update.
3833 (queue_and_load_dwo_tu): Update.
3834 (follow_die_offset): Update.
3835 (follow_die_sig_1): Update.
3836
9f47c707
SM
38372020-05-27 Simon Marchi <simon.marchi@efficios.com>
3838
3839 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3840 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3841 (read_call_site_scope): Assign per_objfile.
3842 (dwarf2_per_cu_data::objfile): Remove.
3843 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3844 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3845 dwarf2_per_objfile parameter.
3846 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3847 dwarf2_per_objfile parameter.
3848 (dwarf_expr_reg_to_entry_parameter): Add output
3849 dwarf2_per_objfile parameter.
3850 (locexpr_get_frame_base): Update.
3851 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3852 <push_dwarf_reg_entry_value>: Update.
3853 <call_site_to_target_addr>: Update.
3854 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3855 parameter.
3856 (value_of_dwarf_reg_entry): Update.
3857 (rw_pieced_value): Update.
3858 (indirect_synthetic_pointer): Update.
3859 (dwarf2_evaluate_property): Update.
3860 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3861 parameter.
3862 (locexpr_read_variable): Update.
3863 (locexpr_get_symbol_read_needs): Update.
3864 (loclist_read_variable): Update.
3865
14095eb3
SM
38662020-05-27 Simon Marchi <simon.marchi@efficios.com>
3867
3868 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3869 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3870 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3871 parameter.
3872 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3873 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3874 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3875 parameter.
3876 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3877 sect_variable_value): Add dwarf2_per_objfile parameter.
3878 (class dwarf_evaluate_loc_desc) <dwarf_call,
3879 dwarf_variable_value>: Update.
3880 (fetch_const_value_from_synthetic_pointer): Add
3881 dwarf2_per_objfile parameter.
3882 (fetch_const_value_from_synthetic_pointer): Update.
3883 (coerced_pieced_ref): Update.
3884 (class symbol_needs_eval_context) <dwarf_call,
3885 dwarf_variable_value>: Update.
3886 (dwarf2_compile_expr_to_ax): Update.
3887
3c3cd3d4
SM
38882020-05-27 Simon Marchi <simon.marchi@efficios.com>
3889
3890 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3891 parameter.
3892 (dwarf2_evaluate_loc_desc_full): Update.
3893
82ca3f51
SM
38942020-05-27 Simon Marchi <simon.marchi@efficios.com>
3895
3896 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3897 parameter.
3898 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3899 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3900 dwarf2_per_objfile parameter.
3901 (decode_debug_loc_dwo_addresses): Likewise.
3902 (dwarf2_find_location_expression): Update.
3903 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3904 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3905 parameter.
3906 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3907 parameter.
3908 (locexpr_describe_location_1): Likewise.
3909 (locexpr_describe_location): Update.
3910
4b167ea1
SM
39112020-05-27 Simon Marchi <simon.marchi@efficios.com>
3912
3913 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3914 Remove.
3915 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3916 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3917 (dwarf2_compile_property_to_c): Update.
3918 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3919 use text offset from objfile.
3920 (locexpr_tracepoint_var_ref): Update.
3921 (locexpr_generate_c_location): Update.
3922 (loclist_describe_location): Update.
3923 (loclist_tracepoint_var_ref): Update.
3924 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3925 dwarf2_per_objfile parameter.
3926 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3927 use text offset from objfile.
3928 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3929
89b07335
SM
39302020-05-27 Simon Marchi <simon.marchi@efficios.com>
3931
3932 * dwarf2/expr.h (struct dwarf_expr_context)
3933 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3934 <offset>: Remove.
3935 <per_objfile>: New member.
3936 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3937 dwarf2_per_objfile parameter. Don't set offset, set
3938 per_objfile.
3939 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3940 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3941 a dwarf2_per_objfile object instead of an offset.
3942 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3943 constructor.
3944 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3945 to dwarf2_expr_executor constructor. Don't set offset.
3946 (dwarf2_fetch_cfa_info): Update.
3947 (struct dwarf2_frame_cache) <text_offset>: Remove.
3948 <per_objfile>: New field.
3949 (dwarf2_frame_cache): Update.
3950 (dwarf2_frame_prev_register): Update.
3951 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3952 <dwarf_evaluate_loc_desc>: Add constructor.
3953 (dwarf2_evaluate_loc_desc_full): Update.
3954 (dwarf2_locexpr_baton_eval): Update.
3955 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3956 Add constructor.
3957 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3958
293e7e51
SM
39592020-05-27 Simon Marchi <simon.marchi@efficios.com>
3960
3961 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3962 addr_sized_int_type>: Move to dwarf2_cu.
3963 <int_type>: Move to dwarf2_per_objfile.
3964 (struct dwarf2_per_objfile) <int_type>: Move here.
3965 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3966 addr_sized_int_type>: Move here.
3967 (read_func_scope): Update.
3968 (read_array_type): Update.
3969 (read_tag_string_type): Update.
3970 (attr_to_dynamic_prop): Update.
3971 (dwarf2_per_cu_data::int_type): Rename to...
3972 (dwarf2_per_objfile::int_type): ... this.
3973 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3974 (dwarf2_cu::addr_sized_int_type): ... this.
3975 (read_subrange_type): Update.
3976 (dwarf2_per_cu_data::addr_type): Rename to...
3977 (dwarf2_cu::addr_type): ... this.
3978 (set_die_type): Update.
3979
64874a40
SM
39802020-05-27 Simon Marchi <simon.marchi@efficios.com>
3981
3982 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3983 data through per_cu->cu.
3984
4ab09049
SM
39852020-05-27 Simon Marchi <simon.marchi@efficios.com>
3986
3987 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3988 dwarf2_per_cu_data parameter fo dwarf2_cu.
3989 (lookup_dwo_type_unit): Likewise.
3990 (read_cutu_die_from_dwo): Likewise.
3991 (lookup_dwo_unit): Likewise.
3992 (open_and_init_dwo_file): Likewise.
3993 (lookup_dwo_cutu): Likewise.
3994 (lookup_dwo_comp_unit): Likewise.
3995 (lookup_dwo_type_unit): Likewise.
3996 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3997 (cutu_reader::cutu_reader): Update.
3998
47b14e86
SM
39992020-05-27 Simon Marchi <simon.marchi@efficios.com>
4000
4001 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4002 parameter.
4003 (process_full_type_unit): Likewise.
4004 (process_queue): Update.
4005
43182c09
SM
40062020-05-27 Simon Marchi <simon.marchi@efficios.com>
4007
4008 * dwarf2/read.c (recursively_compute_inclusions): Add
4009 dwarf2_per_objfile parameter.
4010 (compute_compunit_symtab_includes): Likewise.
4011 (process_cu_includes): Update.
4012
7aa104c4
SM
40132020-05-27 Simon Marchi <simon.marchi@efficios.com>
4014
4015 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4016 parameter.
4017 (create_type_unit_group): Update.
4018 (process_psymtab_comp_unit_reader): Update.
4019 (build_type_psymtabs_reader): Update.
4020
e3beb21d
SM
40212020-05-27 Simon Marchi <simon.marchi@efficios.com>
4022
4023 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4024 object through m_this_cu->cu.
4025
d460f660
SM
40262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4027
4028 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4029 the info parameter.
4030 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4031
ab432490
SM
40322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4033
4034 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4035 per_objfile parameter.
4036 (load_full_type_unit): Add per_objfile parameter.
4037 (read_signatured_type): Likewise.
4038 (load_full_comp_unit): Likewise.
4039 (load_cu): Likewise.
4040 (dw2_do_instantiate_symtab): Likewise.
4041 (dw2_get_file_names): Likewise.
4042 (dw2_map_symtabs_matching_filename): Update.
4043 (dw_expand_symtabs_matching_file_matcher): Update.
4044 (dw2_map_symbol_filenames): Update.
4045 (process_psymtab_comp_unit): Add per_objfile parameter.
4046 (build_type_psymtabs_1): Update.
4047 (process_skeletonless_type_unit): Update.
4048 (dwarf2_build_psymtabs_hard): Update.
4049 (load_partial_comp_unit): Add per_objfile parameter.
4050 (scan_partial_symbols): Update.
4051 (load_full_comp_unit): Add per_objfile parameter.
4052 (process_imported_unit_die): Update.
4053 (create_cus_hash_table): Update.
4054 (find_partial_die): Update.
4055 (dwarf2_read_addr_index): Update.
4056 (follow_die_offset): Update.
4057 (dwarf2_fetch_die_loc_sect_off): Update.
4058 (dwarf2_fetch_constant_bytes): Update.
4059 (dwarf2_fetch_die_type_sect_off): Update.
4060 (follow_die_sig_1): Update.
4061 (load_full_type_unit): Add per_objfile parameter.
4062 (read_signatured_type): Likewise.
4063
313bad1b
SM
40642020-05-27 Simon Marchi <simon.marchi@efficios.com>
4065
4066 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4067 of objfile_name.
4068
c3699833
SM
40692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4070
4071 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4072 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4073 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4074 field.
4075 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4076 (create_cus_from_index): Update.
4077 (dwarf2_read_gdb_index): Update.
4078 (create_cus_from_debug_names): Update.
4079 (dwarf2_read_debug_names): Update.
4080 (get_abbrev_section_for_cu): Update.
4081 (create_all_comp_units): Update.
4082 (read_attribute_value): Update.
4083 (get_debug_line_section): Update.
4084 * dwarf2/index-cache.c (index_cache::store): Update.
4085 * dwarf2/index-write.c (save_gdb_index_command): Update.
4086 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4087
1859c670
SM
40882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4089
4090 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4091 member.
4092 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4093 dwarf2_per_cu_data::per_bfd.
4094 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4095 (create_type_unit_group): Likewise.
4096 (queue_comp_unit): Remove reference to
4097 per_cu->dwarf2_per_objfile.
4098 (maybe_queue_comp_unit): Likewise.
4099 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4100 (create_cus_hash_table): Assign new field.
4101
5e22e966
SM
41022020-05-27 Simon Marchi <simon.marchi@efficios.com>
4103
4104 * dwarf2/read.c: Replace
4105 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4106 dwarf2_cu->per_objfile throughout.
4107
97a1449a
SM
41082020-05-27 Simon Marchi <simon.marchi@efficios.com>
4109
4110 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4111 parameter, don't use per_cu->dwarf2_per_objfile.
4112 (dw2_instantiate_symtab): Likewise.
4113 (dw2_find_last_source_symtab): Update.
4114 (dw2_map_expand_apply): Update.
4115 (dw2_lookup_symbol): Update.
4116 (dw2_expand_symtabs_for_function): Update.
4117 (dw2_expand_all_symtabs): Update.
4118 (dw2_expand_symtabs_with_fullname): Update.
4119 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4120 don't use per_cu->dwarf2_per_objfile.
4121 (dw2_expand_marked_cus): Update.
4122 (dw2_find_pc_sect_compunit_symtab): Update.
4123 (dw2_debug_names_lookup_symbol): Update.
4124 (dw2_debug_names_expand_symtabs_for_function): Update.
4125 (dw2_debug_names_map_matching_symbols): Update.
4126 (dwarf2_psymtab::expand_psymtab): Update.
4127
9e021579
SM
41282020-05-27 Simon Marchi <simon.marchi@efficios.com>
4129
4130 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4131 <per_objfile>: New member.
4132 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4133 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4134 call to dwarf2_cu.
4135 (cutu_reader::cutu_reader): Update.
4136 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4137
ae090bdb
SM
41382020-05-27 Simon Marchi <simon.marchi@efficios.com>
4139
4140 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4141 struct dwarf2_per_objfile.
4142 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4143 dwarf2_per_bfd.
4144 * dwarf2/read.c (set_die_type): Update.
4145 (get_die_type_at_offset): Update.
4146
af758d11
SM
41472020-05-27 Tom Tromey <tom@tromey.com>
4148 Simon Marchi <simon.marchi@efficios.com>
4149
4150 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4151 method.
4152 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4153 get_symtab, set_symtab>: New methods.
4154 <m_symtabs>: New field.
4155 (struct dwarf2_psymtab): Derive from partial_symtab.
4156 <readin_p, get_compunit_symtab>: Declare methods.
4157 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4158 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4159 New methods.
4160 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4161 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4162 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4163 (dw2_symtab_iter_next, dw2_print_stats)
4164 (dw2_expand_symtabs_with_fullname)
4165 (dw2_expand_symtabs_matching_one)
4166 (dw_expand_symtabs_matching_file_matcher)
4167 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4168 (dw2_debug_names_iterator::next)
4169 (dw2_debug_names_map_matching_symbols)
4170 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4171 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4172 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4173 New methods.
4174 (get_compunit_symtab, process_full_comp_unit)
4175 (process_full_type_unit): Update.
4176 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4177
5989a64e
SM
41782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4179
4180 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4181 then introduce a new dwarf2_per_objfile type.
4182 <read_line_string>: Move to the new dwarf2_per_objfile type.
4183 <objfile>: Likewise.
4184 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4185 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4186 dwarf2_per_objfile->per_bfd.
4187 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4188 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4189 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4190 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4191 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4192 (dwarf2_per_objfile::locate_sections): Rename to...
4193 (dwarf2_per_bfd::locate_sections): ... this.
4194 (dwarf2_per_objfile::get_cutu): Rename to...
4195 (dwarf2_per_bfd::get_cutu): ... this.
4196 (dwarf2_per_objfile::get_cu): Rename to...
4197 (dwarf2_per_bfd::get_cu): ... this.
4198 (dwarf2_per_objfile::get_tu): Rename to...
4199 (dwarf2_per_bfd::get_tu): ... this.
4200 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4201 (dwarf2_per_bfd::allocate_per_cu): ... this.
4202 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4203 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4204 (get_gdb_index_contents_ftype): Change parameter from
4205 dwarf2_per_objfile to dwarf2_per_bfd.
4206 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4207 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4208
a50264ba
TT
42092020-05-27 Tom Tromey <tom@tromey.com>
4210 Simon Marchi <simon.marchi@efficios.com>
4211
4212 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4213 (allocate_piece_closure): Set "per_objfile" member.
4214 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4215 (locexpr_describe_location, loclist_describe_location): Use new
4216 member.
4217 * dwarf2/read.c (read_call_site_scope)
4218 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4219 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4220 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4221 handle_data_member_location): Set per_objfile member.
4222 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4223 member.
4224 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4225
d3473f0c
TT
42262020-05-27 Tom Tromey <tom@tromey.com>
4227
4228 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4229 allocate_signatured_type>: Declare new methods.
4230 <m_num_psymtabs>: New member.
4231 (struct dwarf2_per_cu_data) <index>: New member.
4232 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4233 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4234 (create_cu_from_index_list): Use allocate_per_cu.
4235 (create_signatured_type_table_from_index)
4236 (create_signatured_type_table_from_debug_names)
4237 (create_debug_type_hash_table, add_type_unit)
4238 (read_comp_units_from_section): Use allocate_signatured_type.
4239
5717c425
TT
42402020-05-27 Tom Tromey <tom@tromey.com>
4241
4242 * psymtab.c (partial_map_expand_apply)
4243 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4244 (psym_lookup_global_symbol_language)
4245 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4246 (psym_print_stats, psym_expand_symtabs_for_function)
4247 (psym_map_symbol_filenames, psym_map_matching_symbols)
4248 (psym_expand_symtabs_matching)
4249 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4250 (maintenance_check_psymtabs): Update.
4251 * psympriv.h (struct partial_symtab) <readin_p,
4252 get_compunit_symtab>: Add objfile parameter.
4253 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4254 Likewise.
4255 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4256 get_compunit_symtab>: Likewise.
4257 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4258
45940949
TT
42592020-05-27 Tom Tromey <tom@tromey.com>
4260
4261 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4262 member.
4263 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4264 (create_cu_from_index_list)
4265 (create_signatured_type_table_from_index)
4266 (create_signatured_type_table_from_debug_names)
4267 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4268 (dwarf2_create_include_psymtab)
4269 (create_debug_type_hash_table, add_type_unit)
4270 (create_type_unit_group, read_comp_units_from_section)
4271 (dwarf2_compute_name, create_cus_hash_table)
4272 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4273 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4274 obstack.
4275 (dw2_get_real_path): Likewise. Change argument to
4276 dwarf2_per_objfile.
4277
f8c6d152
LM
42782020-05-27 Luis Machado <luis.machado@linaro.org>
4279
4280 PR tdep/26000
4281 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4282 for ldrd (immediate).
4283
e98d2e6d
PW
42842020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4285
4286 * command.h: Add comment giving the name of class_tui.
4287 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4288 create the fake command for the help for class_tui.
4289
53a47a3e
TT
42902020-05-26 Tom Tromey <tromey@adacore.com>
4291
4292 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4293 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4294 (val_atr): New function.
4295 (value_val_atr): Use it.
4296 * ada-valprint.c (print_optional_low_bound): Change low bound
4297 handling for enums.
4298 (val_print_packed_array_elements): Don't call discrete_position.
4299 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4300 discrete_position for enum types.
4301 * language.c (default_print_array_index): Change type.
4302 * language.h (struct language_defn) <la_print_array_index>: Add
4303 index_type parameter, change type of index_value.
4304 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4305 (default_print_array_index): Update.
4306 * valprint.c (maybe_print_array_index): Don't call
4307 value_from_longest. Update.
4308 (value_print_array_elements): Don't call discrete_position.
4309
0bc2354b
TT
43102020-05-26 Tom Tromey <tromey@adacore.com>
4311
4312 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4313 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4314
1218a4bf
CDA
43152020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4316
4317 PR gdb/13519
4318 * avr-tdep.c (avr_integer_to_address): Return data or code
4319 address accordingly to the second 'type' argument of the
4320 function.
4321
92651b1d
MW
43222020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4323
4324 * infcmd.c, inferior.h: (construct_inferior_arguments):
4325 Moved function from here to gdbsupport/common-inferior.{h,cc}
4326
0a4f5f8c
TT
43272020-05-23 Tom Tromey <tom@tromey.com>
4328
4329 Revert commit eca1f90c:
4330 * NEWS: Remove entry for completion styling.
4331 * completer.c (_rl_completion_prefix_display_length): Move
4332 declaration later.
4333 (gdb_fnprint): Revert.
4334 (gdb_display_match_list_1): Likewise.
4335 * cli/cli-style.c (completion_prefix_style)
4336 (completion_difference_style, completion_suffix_style): Remove.
4337 (_initialize_cli_style): Revert.
4338 * cli/cli-style.h (completion_prefix_style)
4339 (completion_difference_style, completion_suffix_style): Don't
4340 declare.
4341
e08bd6c5
PA
43422020-05-24 Pedro Alves <palves@redhat.com>
4343
4344 * symtab.c (completion_list_add_name): Return boolean indication
4345 of whether the symbol matched.
4346 (completion_list_add_symbol): Don't try to remove C++ aliases if
4347 the symbol didn't match in the first place.
4348 * symtab.h (completion_list_add_name): Return bool.
4349
ceacbf6e
SM
43502020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4351
4352 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4353 type::field.
4354
26f16254
JB
43552020-05-23 Joel Brobecker <brobecker@adacore.com>
4356
4357 GDB 9.2 released.
4358
eca1f90c
TT
43592020-05-23 Tom Tromey <tom@tromey.com>
4360
4361 * NEWS: Add entry for completion styling.
4362 * completer.c (_rl_completion_prefix_display_length): Move
4363 declaration earlier.
4364 (gdb_fnprint): Use completion_style.
4365 (gdb_display_match_list_1): Likewise.
4366 * cli/cli-style.c (completion_prefix_style)
4367 (completion_difference_style, completion_suffix_style): New
4368 globals.
4369 (_initialize_cli_style): Register new globals.
4370 * cli/cli-style.h (completion_prefix_style)
4371 (completion_difference_style, completion_suffix_style): Declare.
4372
51e2cfa2
PA
43732020-05-23 Pedro Alves <palves@redhat.com>
4374
4375 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4376 (parse_escape): Use ISDIGIT instead of isdigit.
4377 (puts_debug): Use gdb_isprint instead of isprint.
4378 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4379 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4380 ISSPACE instead of isspace.
4381 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4382 instead of isspace.
4383 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4384 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4385 instead of isxdigit and ISDIGIT instead of isdigit.
4386
80fc5e77
SM
43872020-05-22 Simon Marchi <simon.marchi@efficios.com>
4388
4389 * gdbtypes.h (struct type) <field>: New method.
4390 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4391 or type::field.
4392
3cabb6b0
SM
43932020-05-22 Simon Marchi <simon.marchi@efficios.com>
4394
4395 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4396 (TYPE_FIELDS): Use type::fields. Change all call sites that
4397 modify the propery to use type::set_fields instead.
4398
1f704f76
SM
43992020-05-22 Simon Marchi <simon.marchi@efficios.com>
4400
4401 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4402 type::num_fields instead.
4403
5e33d5f4
SM
44042020-05-22 Simon Marchi <simon.marchi@efficios.com>
4405
4406 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4407 methods.
4408 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4409 that modify the number of fields to use type::set_num_fields
4410 instead.
4411
9392ebb3
TT
44122020-05-22 Tom Tromey <tromey@adacore.com>
4413
4414 * compile/compile-object-load.h (munmap_list_free): Don't
4415 declare.
4416
7c13f4e8
AB
44172020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4418
4419 * annotate.c (annotate_source_line): Update return type, add call
4420 to update current symtab and line.
4421 * annotate.h (annotate_source_line): Update return type, and
4422 extend header comment.
4423 * source.c (info_line_command): Check annotation_level before
4424 calling annotate_source_line.
4425 * stack.c (print_frame_info): If calling annotate_source_line
4426 returns true, then don't print any other source line information.
4427
aa370940
SM
44282020-05-21 Simon Marchi <simon.marchi@efficios.com>
4429
4430 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4431
84d53fa9
SM
44322020-05-21 Simon Marchi <simon.marchi@efficios.com>
4433
4434 * coffread.c (patch_type): Remove NULL check before xfree.
4435 * corefile.c (set_gnutarget): Likewise.
4436 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4437 * exec.c (build_section_table): Likewise.
4438 * remote.c (remote_target::pass_signals): Likewise.
4439 * utils.c (n_spaces): Likewise.
4440 * cli/cli-script.c (document_command): Likewise.
4441 * i386-windows-tdep.c (core_process_module_section): Likewise.
4442 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4443
9d428aae
SM
44442020-05-20 Simon Marchi <simon.marchi@efficios.com>
4445
4446 * symfile.c (reread_symbols): Clear objfile's section_offsets
4447 vector and section indices, re-compute them by calling
4448 sym_offsets.
4449
250106a7
TT
44502020-05-20 Tom Tromey <tromey@adacore.com>
4451
4452 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4453 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4454
9a0bacfb
TV
44552020-05-20 Tom de Vries <tdevries@suse.de>
4456
4457 PR symtab/25833
4458 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4459
7b958a48
AM
44602020-05-20 Alan Modra <amodra@gmail.com>
4461
4462 PR 25993
4463 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4464 bfd_set_filename.
4465 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4466 passed to bfd_set_filename.
4467 * symfile-mem.c (add_vsyscall_page): Likewise for string
4468 passed to symbol_file_add_from_memory.
4469 (symbol_file_add_from_memory): Make name param a const char* and
4470 don't strdup.
4471
c7e97679
AM
44722020-05-20 Alan Modra <amodra@gmail.com>
4473
4474 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4475 rather than accessing bfd->filename directly.
4476 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4477 and use bfd_section_name.
4478 * dwarf2/frame.c (decode_frame_entry): Likewise.
4479 * exec.c (exec_set_section_address): Likewise.
4480 * solib-aix.c (solib_aix_bfd_open): Likewise.
4481 * stap-probe.c (get_stap_base_address): Likewise.
4482 * symfile.c (reread_symbols): Likewise.
4483
563c591b
TT
44842020-05-19 Tom Tromey <tromey@adacore.com>
4485
4486 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4487
f408d82c
SM
44882020-05-19 Simon Marchi <simon.marchi@efficios.com>
4489
4490 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4491
98c59b52
PA
44922020-05-19 Pedro Alves <palves@redhat.com>
4493
4494 * NEWS (set exec-file-mismatch): Adjust entry.
4495 * exec.c: Include "build-id.h".
4496 (validate_exec_file): Try to match build IDs instead of filenames.
4497 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4498 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4499 and pass down 'warn_if_slow'.
4500 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4501 gdb_bfd_open_closure to pass it down.
4502 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4503
4111f652
PA
45042020-05-19 Pedro Alves <palves@redhat.com>
4505
4506 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4507 * target.c (target_fileio_open_1): Rename to target_fileio_open
4508 and make extern. Use bool.
4509 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4510 (target_fileio_read_alloc_1): Adjust.
4511 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4512 (target_fileio_open_warn_if_slow): Delete declaration.
4513
ad80db5b
PA
45142020-05-19 Pedro Alves <palves@redhat.com>
4515
4516 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4517 Adjust all callers.
4518
1d6ce4d3
YS
45192020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4520
4521 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4522 whether disp is negative.
4523
9005fbbb
SM
45242020-05-19 Simon Marchi <simon.marchi@efficios.com>
4525
4526 * symfile.h (struct symfile_segment_data)
4527 <~symfile_segment_data>: Remove.
4528 <segment_info>: Change to std::vector.
4529 * symfile.c (default_symfile_segments): Update.
4530 * elfread.c (elf_symfile_segments): Update.
4531
68b888ff
SM
45322020-05-19 Simon Marchi <simon.marchi@efficios.com>
4533
4534 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4535 <segments>: New.
4536 <segment_bases, segment_sizes>: Remove.
4537 * symfile.c (default_symfile_segments): Update.
4538 * elfread.c (elf_symfile_segments): Update.
4539 * remote.c (remote_target::get_offsets): Update.
4540 * solib-target.c (solib_target_relocate_section_addresses):
4541 Update.
4542
62982abd
SM
45432020-05-19 Simon Marchi <simon.marchi@efficios.com>
4544
4545 * symfile.h (struct symfile_segment_data): Initialize fields.
4546 <~symfile_segment_data>: Add.
4547 (symfile_segment_data_up): New.
4548 (struct sym_fns) <sym_segments>: Return a
4549 symfile_segment_data_up.
4550 (default_symfile_segments): Return a symfile_segment_data_up.
4551 (free_symfile_segment_data): Remove.
4552 (get_symfile_segment_data): Return a symfile_segment_data_up.
4553 * symfile.c (default_symfile_segments): Likewise.
4554 (get_symfile_segment_data): Likewise.
4555 (free_symfile_segment_data): Remove.
4556 (symfile_find_segment_sections): Update.
4557 * elfread.c (elf_symfile_segments): Return a
4558 symfile_segment_data_up.
4559 * remote.c (remote_target::get_offsets): Update.
4560 * solib-target.c (solib_target_relocate_section_addresses):
4561 Update.
4562 * symfile-debug.c (debug_sym_segments): Return a
4563 symfile_segment_data_up.
4564
7f204339
RO
45652020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4566
e52a0f1b
RO
4567 PR build/25981
4568 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4569 Hardcode register numbers.
4570
7f204339
RO
4571 PR build/25981
4572 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4573 procfs_find_LDT_entry): Remove.
4574 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4575 procfs_find_LDT_entry): Remove.
4576 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4577 Remove.
4578
7f32a4d5
PA
45792020-05-17 Pedro Alves <palves@redhat.com>
4580 Andrew Burgess <andrew.burgess@embecosm.com>
4581 Keno Fischer <keno@juliacomputing.com>
4582
4583 PR gdb/25741
4584 * breakpoint.c (build_target_condition_list): Update comments.
4585 (build_target_command_list): Update comments and skip matching
4586 locations.
4587 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4588 a separate function. Simplify "set breakpoint auto-hw off"
4589 handling.
4590 (insert_breakpoints): Update comment.
4591 (tracepoint_locations_match): New parameter. For breakpoints,
4592 compare location types too, if the caller wants to.
4593 (handle_automatic_hardware_breakpoints): New functions.
4594 (bp_location_is_less_than): Also sort by location type and
4595 hardware breakpoint length.
4596 (update_global_location_list): Handle "set breakpoint auto-hw on"
4597 here.
4598 (update_breakpoint_locations): Ask breakpoint_locations_match to
4599 ignore location types.
4600
7d93a1e0
SM
46012020-05-16 Simon Marchi <simon.marchi@efficios.com>
4602
4603 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4604 type::name instead.
4605
d0e39ea2
SM
46062020-05-16 Simon Marchi <simon.marchi@efficios.com>
4607
4608 * gdbtypes.h (struct type) <name, set_name>: New methods.
4609 (TYPE_CODE): Use type::name. Change all call sites used to set
4610 the name to use type::set_name instead.
4611
2dab0c7b
TT
46122020-05-16 Tom Tromey <tom@tromey.com>
4613
4614 * top.c (quit_force): Update.
4615 * infrun.c (handle_no_resumed): Update.
4616 * top.h (all_uis): New function.
4617 (ALL_UIS): Remove.
4618
59f7bd8d
SM
46192020-05-16 Simon Marchi <simon.marchi@efficios.com>
4620
4621 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4622
9bf058f0
PA
46232020-05-16 Pedro Alves <palves@redhat.com>
4624
4625 * ia64-linux-nat.c
4626 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4627 Declare method.
4628 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4629
8f86ae1a
SM
46302020-05-15 Simon Marchi <simon.marchi@efficios.com>
4631
4632 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4633 (sparc64_adi_info): Likewise.
4634
d6bc0792
TT
46352020-05-15 Tom Tromey <tom@tromey.com>
4636
4637 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4638 block_objfile.
4639 (lookup_objfile_from_block): Remove.
4640 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4641 (lookup_global_symbol): Use block_objfile.
4642 * symtab.h (lookup_objfile_from_block): Don't declare.
4643 * printcmd.c (clear_dangling_display_expressions): Use
4644 block_objfile.
4645 * parse.c (operator_check_standard): Use block_objfile.
4646
8c14c3a3
TT
46472020-05-15 Tom Tromey <tom@tromey.com>
4648
4649 * language.c (language_alloc_type_symbol): Set
4650 SYMBOL_SECTION.
4651 * symtab.c (initialize_objfile_symbol): Remove.
4652 (allocate_symbol): Remove.
4653 (allocate_template_symbol): Remove.
4654 * dwarf2/read.c (fixup_go_packaging): Use "new".
4655 (new_symbol): Use "new".
4656 (read_variable): Don't call initialize_objfile_symbol. Use
4657 "new".
4658 (read_func_scope): Use "new".
4659 * xcoffread.c (process_xcoff_symbol): Don't call
4660 initialize_objfile_symbol.
4661 (SYMBOL_DUP): Remove.
4662 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4663 "new".
4664 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4665 (allocate_template_symbol): Don't declare.
4666 (struct symbol): Add copy constructor. Change defaults.
4667 * jit.c (finalize_symtab): Use "new".
4668 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4669 Use "new".
4670 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4671 (common_block_end): Use "new".
4672 * mdebugread.c (parse_symbol): Use "new".
4673 (new_symbol): Likewise.
4674
5b4a1a8d
PW
46752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4676
4677 * NEWS: Mention changes to help and apropos.
4678
57b4f16e
PW
46792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4680
4681 * command.h (enum command_class): Improve comments, document
4682 that class_alias is for user-defined aliases, give the class
4683 name for each class, remove unused class_xdb.
4684 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4685 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4686 by a precise class.
4687 * infcmd.c (_initialize_infcmd): Likewise.
4688 * reverse.c (_initialize_reverse): Likewise.
4689 * stack.c (_initialize_stack): Likewise.
4690 * symfile.c (_initialize_symfile): Likewise.
4691 * tracepoint.c (_initialize_tracepoint): Likewise.
4692
7c05caf7
PW
46932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4694
4695 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4696 when their aliased command is traversed.
4697 (help_cmd): Add fput_command_names_styled call to
4698 output command name and aliases when command has an alias.
4699
3b3aaacb
PW
47002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4701
4702 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4703 * cli/cli-decode.c (help_cmd_list): Declare as static,
4704 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4705 a command together with the command.
4706 (fput_command_name_styled, fput_command_names_styled): New functions.
4707 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4708 fput_command_name_styled.
4709 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4710 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4711
7aa1b46f
PW
47122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4713
4714 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4715 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4716 * command.h (cmd_show_list): Likewise.
4717 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4718 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4719
89bcba74
PW
47202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4721
4722 * unittests/command-def-selftests.c (traverse_command_structure):
4723 Verify all commands of a list have the same prefix command and
4724 that only the top cmdlist commands have a null prefix.
4725
3f4d92eb
PW
47262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4727
4728 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4729 as prefix, not one of its aliases.
4730 (set_cmd_prefix): Remove.
4731 (do_add_cmd): Centralize the setting of the prefix of a command, when
4732 command is defined after its full chain of prefix commands.
4733 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4734 (add_setshow_cmd_full): Likewise.
4735 (update_prefix_field_of_prefixed_commands): New function.
4736 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4737 update_prefix_field_of_prefixed_commands.
4738 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4739 addresses of remote_set_cmdlist and remote_show_cmdlist given
4740 as argument, not the address of an argument.
4741 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4742 * gdb/remote.c (_initialize_remote): Likewise.
4743
0605465f
PW
47442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4745
4746 * cli/cli-cmds.c (alias_command): Check for an existing alias
4747 using lookup_cmd_composition, as valid_command_p is too strict
4748 and forbids aliases that are the prefix of an existing alias
4749 or command.
4750 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4751 command is properly recognised as a valid command.
4752
58e6ac70
PW
47532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4754
4755 * unittests/help-doc-selftests.c: Rename to
4756 unittests/command-def-selftests.c
4757 * unittests/command-def-selftests.c (help_doc_tests): Update some
4758 comments.
4759 (command_structure_tests, traverse_command_structure): New namespace
4760 and function.
4761 (command_structure_invariants_tests): New function.
4762 (_initialize_command_def_selftests) Renamed from
4763 _initialize_help_doc_selftests, register command_structure_invariants
4764 selftest.
4765
a7b9ceb8
PW
47662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4767
4768 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4769 an alias of 'show'.
4770
b2188a06
JB
47712020-05-15 Joel Brobecker <brobecker@adacore.com>
4772
4773 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4774 ada_is_fixed_point_type. Update all callers.
4775 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4776 all callers.
4777 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4778 Update all callers.
4779 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4780 print_fixed_point_type. Update all callers.
4781 * ada-valprint.c (ada_value_print_num): Replace call to
4782 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4783
a51951c2
KB
47842020-05-14 Kevin Buettner <kevinb@redhat.com>
4785
4786 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4787 processors.
4788 (cpu_supports_bts): Add CV_AMD case.
4789
29d6859f
LM
47902020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4791 Simon Marchi <simon.marchi@efficios.com>
4792
4793 * infrun.c (stop_all_threads): Collect multiple wait events at
4794 each pass.
4795
78134374
SM
47962020-05-14 Simon Marchi <simon.marchi@efficios.com>
4797
4798 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4799 type::code instead.
4800
67607e24
SM
48012020-05-14 Simon Marchi <simon.marchi@efficios.com>
4802
4803 * gdbtypes.h (struct type) <code, set_code>: New methods.
4804 (TYPE_CODE): Use type::code. Change all call sites used to set
4805 the code to use type::set_code instead.
4806
a05575d3
TBA
48072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4808 Tom de Vries <tdevries@suse.de>
4809 Pedro Alves <palves@redhat.com>
4810
4811 PR threads/25478
4812 * infrun.c (stop_all_threads): Do NOT ignore
4813 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4814 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4815 received.
4816 (handle_no_resumed): Remove code handling a live inferior with no
4817 threads.
4818 * remote.c (has_single_non_exited_thread): New.
4819 (remote_target::update_thread_list): Do not delete a thread if is
4820 the last thread of the process.
4821 * thread.c (thread_select): Call delete_exited_threads instead of
4822 prune_threads.
4823
6ad82919
TBA
48242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4825
4826 * infrun.c (stop_all_threads): Enable/disable thread events of all
4827 targets. Move a debug message denoting the end of the function
4828 into the SCOPED_EXIT block.
4829
d890404b
TBA
48302020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4831
4832 * process-stratum-target.h: Include <set>.
4833 (all_non_exited_process_targets, switch_to_target_no_thread): New
4834 function declarations.
4835 * process-stratum-target.c (all_non_exited_process_targets)
4836 (switch_to_target_no_thread): New function implementations.
4837
293b3ebc
TBA
48382020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4839
4840 * infrun.c (handle_inferior_event): Extract out a piece of code
4841 into...
4842 (mark_non_executing_threads): ...this new function.
4843
7ca9b62a
TBA
48442020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4845
4846 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4847 use.
4848
fc75c28b
TBA
48492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4850
4851 * regcache.c (regcache_read_pc_protected): New function
4852 implementation that returns 0 if the PC cannot read via
4853 'regcache_read_pc'.
4854 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4855 instead of 'regcache_read_pc'.
4856 (keep_going_pass_signal): Ditto.
4857
a89febbd
TT
48582020-05-13 Tom Tromey <tromey@adacore.com>
4859
4860 * ada-lang.c (align_value): Remove.
4861 (ada_template_to_fixed_record_type_1): Use align_up.
4862
f7e23710
TBA
48632020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4864
4865 * async-event.c: Update the copyright year.
4866 * async-event.h: Update the copyright year.
4867
02ff80c2
SM
48682020-05-12 Simon Marchi <simon.marchi@efficios.com>
4869
4870 * objfiles.h (is_addr_in_objfile,
4871 shared_objfile_contains_address_p): Return bool.
4872 * objfile.c (is_addr_in_objfile,
4873 shared_objfile_contains_address_p): Return bool.
4874
4fd6c7e8
TT
48752020-05-11 Tom Tromey <tromey@adacore.com>
4876
4877 * cli/cli-cmds.c (info_command): Restore.
4878 (_initialize_cli_cmds): Use add_prefix_command for "info".
4879 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4880
5eb68a39
TT
48812020-05-11 Tom Tromey <tromey@adacore.com>
4882
4883 * ada-lang.c (ada_value_primitive_field): Now public.
4884 * ada-lang.h (ada_value_primitive_field): Declare.
4885 * ada-valprint.c (print_field_values): Use
4886 ada_value_primitive_field for wrapper fields.
4887
7666722f
TV
48882020-05-11 Tom de Vries <tdevries@suse.de>
4889
4890 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4891 MODULE_DOMAIN.
4892
3ee6bb11
TV
48932020-05-11 Tom de Vries <tdevries@suse.de>
4894
4895 PR symtab/25941
4896 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4897 with length 0, if not gdb-produced.
4898 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4899
43434996
TV
49002020-05-09 Tom de Vries <tdevries@suse.de>
4901
4902 PR gdb/25955
4903 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4904 calculation.
4905
2f78cffc
TT
49062020-05-09 Tom Tromey <tom@tromey.com>
4907
4908 * top.c (server_command): Now bool.
4909 * top.h (server_command): Now bool.
4910
4f7bc5ed
TT
49112020-05-08 Tom Tromey <tromey@adacore.com>
4912
4913 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4914 already being processed.
4915
8be4b118
TT
49162020-05-08 Tom Tromey <tom@tromey.com>
4917
4918 * printcmd.c (struct display) <next>: Remove.
4919 <display>: New constructor.
4920 <exp_string>: Now a std::string.
4921 <enabled_p>: Now a bool.
4922 (display_number): Move definition earlier.
4923 (displays): Rename from display_chain. Now a std::vector.
4924 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4925 (display_command): Update.
4926 (do_one_display, disable_display)
4927 (enable_disable_display_command, do_enable_disable_display):
4928 Update.
4929 (free_display): Remove.
4930 (clear_displays): Rewrite.
4931 (delete_display): Update.
4932 (map_display_numbers): Use function_view. Remove "data"
4933 parameter. Update.
4934 (do_delete_display): Remove.
4935 (undisplay_command): Update.
4936 (do_one_display, do_displays, disable_display)
4937 (info_display_command): Update.
4938 (do_enable_disable_display): Remove.
4939 (enable_disable_display_command)
4940 (clear_dangling_display_expressions): Update.
4941
94c93c35
TT
49422020-05-08 Tom Tromey <tom@tromey.com>
4943
4944 * symtab.c (set_symbol_cache_size)
4945 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4946 (maintenance_print_symbol_cache_statistics): Update.
4947 * symmisc.c (print_symbol_bcache_statistics)
4948 (print_objfile_statistics, maintenance_print_objfiles)
4949 (maintenance_info_symtabs, maintenance_check_symtabs)
4950 (maintenance_expand_symtabs, maintenance_info_line_tables):
4951 Update.
4952 * symfile-debug.c (set_debug_symfile): Update.
4953 * source.c (forget_cached_source_info): Update.
4954 * python/python.c (gdbpy_progspaces): Update.
4955 * psymtab.c (maintenance_info_psymtabs): Update.
4956 * probe.c (parse_probes): Update.
4957 * linespec.c (iterate_over_all_matching_symtabs)
4958 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4959 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4960 * exec.c (exec_target::close): Update.
4961 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4962 * breakpoint.c (print_one_breakpoint_location)
4963 (create_longjmp_master_breakpoint)
4964 (create_std_terminate_master_breakpoint): Update.
4965 * progspace.c (program_spaces): Now a std::vector.
4966 (maybe_new_address_space): Update.
4967 (add_program_space): Remove.
4968 (program_space::program_space): Update.
4969 (remove_program_space): Update.
4970 (number_of_program_spaces): Remove.
4971 (print_program_space, update_address_spaces): Update.
4972 * progspace.h (program_spaces): Change type.
4973 (ALL_PSPACES): Remove.
4974 (number_of_program_spaces): Don't declare.
4975 (struct program_space) <next>: Remove.
4976
a1fd1ac9
TT
49772020-05-08 Tom Tromey <tom@tromey.com>
4978
4979 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4980 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4981 (enable_break): Update.
4982 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4983 (frv_fdpic_find_canonical_descriptor): Update.
4984 (frv_fetch_objfile_link_map): Update.
4985 * progspace.c (program_space::free_all_objfiles): Update.
4986 (program_space::solibs): New method.
4987 * progspace.h (struct program_space) <solibs>: New method.
4988 * solist.h (master_so_list): Don't declare.
4989 (ALL_SO_LIBS): Remove.
4990 * solib.h (so_list_head): Remove.
4991 (update_solib_list): Update comment.
4992 * solib.c (master_so_list): Remove.
4993 (solib_used, update_solib_list, solib_add)
4994 (info_sharedlibrary_command, clear_solib)
4995 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4996
38eae084
TT
49972020-05-08 Tom Tromey <tom@tromey.com>
4998
4999 * extension.c (extension_languages): Now a std::array.
5000 (ALL_EXTENSION_LANGUAGES): Remove.
5001 (get_ext_lang_defn, get_ext_lang_of_file)
5002 (eval_ext_lang_from_control_command): Update.
5003 (finish_ext_lang_initialization)
5004 (auto_load_ext_lang_scripts_for_objfile)
5005 (ext_lang_type_printers::ext_lang_type_printers)
5006 (apply_ext_lang_type_printers)
5007 (ext_lang_type_printers::~ext_lang_type_printers)
5008 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5009 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5010 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5011 (get_matching_xmethod_workers, ext_lang_colorize)
5012 (ext_lang_before_prompt): Update.
5013 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5014
596dc4ad
TT
50152020-05-08 Tom Tromey <tom@tromey.com>
5016
5017 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5018 overload.
5019 <swap_string, m_string>: Remove.
5020 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5021 Update.
5022 * stabsread.c (define_symbol, read_type): Update.
5023 * linespec.c (find_linespec_symbols): Update.
5024 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5025 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5026 * dbxread.c (read_dbx_symtab): Update.
5027 * cp-support.h (cp_canonicalize_string_full)
5028 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5029 Return unique_xmalloc_ptr.
5030 * cp-support.c (inspect_type): Update.
5031 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5032 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5033 Likewise.
5034 * c-typeprint.c (print_name_maybe_canonical): Update.
5035 * break-catch-throw.c (check_status_exception_catchpoint):
5036 Update.
5037
bf4cb9be
TV
50382020-05-08 Tom de Vries <tdevries@suse.de>
5039
5040 * infrun.c (follow_fork): Copy current_line and current_symtab to
5041 child thread.
5042
a1b68f28
SM
50432020-05-07 Simon Marchi <simon.marchi@efficios.com>
5044
5045 * async-event.c (struct async_signal_handler, struct
5046 async_event_handler): Reformat, remove typedef.
5047
98d48915
SM
50482020-05-07 Simon Marchi <simon.marchi@efficios.com>
5049
5050 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5051 access thistype->main_type->dyn_prop_list directly.
5052
7aa91313
SM
50532020-05-07 Simon Marchi <simon.marchi@efficios.com>
5054
5055 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5056 (remove_dyn_prop): Remove. Update all users to use
5057 type::remove_dyn_prop.
5058 * gdbtypes.c (remove_dyn_prop): Rename to...
5059 (type::remove_dyn_prop): ... this.
5060
5c54719c
SM
50612020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5062
5063 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5064 (add_dyn_prop): Remove. Update all users to use
5065 type::add_dyn_prop.
5066 * gdbtypes.c (add_dyn_prop): Rename to...
5067 (type::add_dyn_prop): ... this.
5068
24e99c6c
SM
50692020-05-07 Simon Marchi <simon.marchi@efficios.com>
5070
5071 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5072 (get_dyn_prop): Remove. Update all users to use
5073 type::dyn_prop.
5074 * gdbtypes.c (get_dyn_prop): Rename to...
5075 (type::dyn_prop): ... this.
5076
0d4bf016
SM
50772020-05-06 Simon Marchi <simon.marchi@efficios.com>
5078
5079 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5080
ac4a4f1c
SM
50812020-05-06 Simon Marchi <simon.marchi@efficios.com>
5082
5083 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5084 instruction, skip it if it's there.
5085
a3bbacc1
SM
50862020-05-05 Simon Marchi <simon.marchi@efficios.com>
5087
5088 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5089
c3236f84
SM
50902020-05-04 Simon Marchi <simon.marchi@efficios.com>
5091
5092 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5093 * gdbtypes.c (recursive_dump_type): Remove use of
5094 TYPE_INCOMPLETE.
5095
3b6acaee
TT
50962020-05-03 Tom Tromey <tom@tromey.com>
5097
5098 * breakpoint.c (catch_command, tcatch_command): Remove.
5099 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5100 add_show_prefix_cmd.
5101 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5102 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5103 Remove.
5104 (add_internal_problem_command): Use add_basic_prefix_cmd,
5105 add_show_prefix_cmd.
5106 * mips-tdep.c (set_mipsfpu_command): Remove.
5107 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5108 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5109 (_initialize_index_cache): Use add_basic_prefix_cmd.
5110 * memattr.c (dummy_cmd): Remove.
5111 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5112 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5113 (_initialize_tui_win): Use add_basic_prefix_cmd,
5114 add_show_prefix_cmd.
5115 * cli/cli-logging.c (set_logging_command): Remove.
5116 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5117 add_show_prefix_cmd.
5118 (show_logging_command): Remove.
5119 * target.c (target_command): Remove.
5120 (add_target): Use add_basic_prefix_cmd.
5121
a51119cd
HD
51222020-05-02 Hannes Domani <ssbssa@yahoo.de>
5123
5124 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5125
652fc23a 51262020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5127
652fc23a
PW
5128 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5129 info_command.
5130
117539e6
KR
51312020-04-30 Kamil Rytarowski <n54@gmx.com>
5132
5133 * nbsd-nat.c (nbsd_enable_proc_events)
5134 (nbsd_nat_target::post_startup_inferior): Add.
5135 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5136 (nbsd_nat_target::update_thread_list): Rewrite.
5137 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5138 "PTRACE_LWP_CREATE".
5139 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5140
102e38eb 51412020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5142
102e38eb
PW
5143 * stack.c (_initialize_stack): Remove duplicated creation
5144 of "frame" command and "f" alias.
5145
ee9d1e5f
HD
51462020-04-30 Hannes Domani <ssbssa@yahoo.de>
5147
5148 PR gdb/18706
5149 * gdbtypes.c (check_typedef): Calculate size of array of
5150 stubbed type.
5151
627c7fb8
HD
51522020-04-30 Hannes Domani <ssbssa@yahoo.de>
5153
5154 PR gdb/15559
5155 * i386-tdep.c (i386_push_dummy_call): Call
5156 i386_thiscall_push_dummy_call.
5157 (i386_thiscall_push_dummy_call): New function.
5158 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5159 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5160 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5161
ffc2844e
SM
51622020-04-29 Simon Marchi <simon.marchi@efficios.com>
5163
5164 * gdbarch.sh (do_read): Add shellcheck disable directive for
5165 warning SC2162.
5166
1207375d
SM
51672020-04-29 Simon Marchi <simon.marchi@efficios.com>
5168
5169 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5170 "referenced but not assigned" warning.
5171
9fdb2916
SM
51722020-04-29 Simon Marchi <simon.marchi@efficios.com>
5173
5174 * gdbarch.sh: Remove code that sets fallbackdefault.
5175
759cea5e
SM
51762020-04-29 Simon Marchi <simon.marchi@efficios.com>
5177
5178 * gdbarch.sh: Use shell operators && and || instead of
5179 -a and -o.
5180
cb02ab24
SM
51812020-04-29 Simon Marchi <simon.marchi@efficios.com>
5182
5183 * gdbarch.sh: Use $(...) instead of `...`.
5184
a6fc5ffc
SM
51852020-04-29 Simon Marchi <simon.marchi@efficios.com>
5186
5187 * gdbarch.sh: Use double quotes around variables.
5188
8d113d13
SM
51892020-04-29 Simon Marchi <simon.marchi@efficios.com>
5190
5191 * gdbarch.sh: Use %s with printf, instead of variables in the
5192 format string.
5193
ed6acedd
TT
51942020-04-29 Tom Tromey <tromey@adacore.com>
5195
5196 PR ada/25875:
5197 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5198 type fields here.
5199 (read_enumeration_type): Call
5200 update_enumeration_type_from_children later. Update comments.
5201 (process_enumeration_scope): Don't create type fields.
5202
b68b1b58
KR
52032020-04-29 Kamil Rytarowski <n54@gmx.com>
5204
5205 * nbsd-tdep.c: Include "xml-syscall.h".
5206 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5207
f94b2e03
KR
52082020-04-29 Kamil Rytarowski <n54@gmx.com>
5209
5210 * nbsd-nat.c: Include "sys/wait.h".
5211 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5212 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5213 (nbsd_nat_target::remove_exec_catchpoint)
5214 (nbsd_nat_target::set_syscall_catchpoint): Add.
5215 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5216 (nbsd_nat_target::insert_exec_catchpoint)
5217 (nbsd_nat_target::remove_exec_catchpoint)
5218 (nbsd_nat_target::set_syscall_catchpoint): Add.
5219 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5220 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5221 `nbsd_get_syscall_number'.
5222
fc49bc72
TT
52232020-04-29 Tom Tromey <tom@tromey.com>
5224
5225 * stack.c (print_block_frame_labels): Remove.
5226
d642b692
HD
52272020-04-29 Hannes Domani <ssbssa@yahoo.de>
5228
5229 PR gdb/17320
5230 * ada-valprint.c (val_print_packed_array_elements): Move array
5231 end bracket to new line.
5232 (ada_val_print_string): Remove extra spaces before first array
5233 element.
5234 * c-valprint.c (c_value_print_array): Likewise.
5235 * m2-valprint.c (m2_print_array_contents): Likewise.
5236 (m2_value_print_inner): Likewise.
5237 * p-valprint.c (pascal_value_print_inner): Likewise.
5238 * valprint.c (generic_val_print_array): Likewise.
5239 (value_print_array_elements): Move first array element and array
5240 end bracket to new line.
5241
ea90f227
TV
52422020-04-29 Tom de Vries <tdevries@suse.de>
5243
5244 PR symtab/25889
5245 * linespec.c (find_method): Fix ix calculation.
5246
4498ef4f
KR
52472020-04-28 Kamil Rytarowski <n54@gmx.com>
5248
5249 * syscalls/update-netbsd.sh: New file.
5250 * syscalls/netbsd.xml: Regenerate.
5251 * data-directory/Makefile.in: Register `netbsd.xml' in
5252 `SYSCALLS_FILES'.
5253
a55e30b5
SM
52542020-04-28 Simon Marchi <simon.marchi@efficios.com>
5255
5256 * syscalls/update-freebsd.sh: Add double quotes.
5257
2b2fbab8
TT
52582020-04-28 Tom Tromey <tom@tromey.com>
5259
5260 * NEWS: Update.
5261 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5262 (cmdpy_init): Allow class_tui.
5263
a65189c9
TV
52642020-04-28 Mark Williams <mark@myosotissp.com>
5265
5266 PR gdb/24480
5267 * dwarf2read.c: Add missing assingments to list_in_scope when
5268 start_symtab was already called.
5269
1b95cdb7
SM
52702020-04-28 Simon Marchi <simon.marchi@efficios.com>
5271
5272 PR gdb/25881
5273 * dwarf2/read.c (offset_map_type): Use
5274 gdb:hash_enum<sect_offset> as hash function.
5275
15cd93d0
TV
52762020-04-28 Tom de Vries <tdevries@suse.de>
5277
5278 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5279 with DW_AT_signature.
5280
1eb39914
SM
52812020-04-27 Simon Marchi <simon.marchi@efficios.com>
5282
5283 * configure.ac: Remove check for fs_base/gs_base in
5284 user_regs_struct.
5285 * configure: Re-generate.
5286 * config.in: Re-generate.
5287 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5288 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5289 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5290
991a3e2e
LM
52912020-04-27 Luis Machado <luis.machado@linaro.org>
5292
5293 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5294 problematic inline frame unwinding situation.
5295 * frame.c (frame_id_computed_p): New function.
5296 * frame.h (frame_id_computed_p): New prototype.
5297
361ba0e8
TT
52982020-04-26 Tom Tromey <tom@tromey.com>
5299
5300 * command.h (enum command_class) <class_pseudo>: Remove.
5301
bc3609fd
PW
53022020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5303
5304 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5305 and whitespace.
5306
b9771db7
KR
53072020-04-25 Kamil Rytarowski <n54@gmx.com>
5308
ec16513e
SM
5309 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5310 `PT_GET_PROCESS_STATE' block.
b9771db7 5311
7151c1af
TT
53122020-04-24 Tom Tromey <tom@tromey.com>
5313
5314 * symtab.h (symbol_get_demangled_name): Don't declare.
5315 * symtab.c (symbol_get_demangled_name): Remove.
5316 (general_symbol_info::natural_name)
5317 (general_symbol_info::demangled_name): Update.
5318
906bb4c5
TT
53192020-04-24 Tom Tromey <tom@tromey.com>
5320
5321 PR rust/25025:
5322 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5323
bcfe6157
TT
53242020-04-24 Tom Tromey <tom@tromey.com>
5325
5326 PR symtab/12707:
5327 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5328 exists.
5329 (new_symbol): Likewise.
5330 * compile/compile-object-load.c (get_out_value_type): Use
5331 symbol_matches_search_name.
5332
f049a313
TT
53332020-04-24 Tom Tromey <tom@tromey.com>
5334
5335 * dwarf2/read.c (add_partial_symbol): Do not call
5336 compute_and_set_names.
5337
76e288d1
TT
53382020-04-24 Tom Tromey <tom@tromey.com>
5339
5340 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5341 overload.
5342
2467f4f6
TT
53432020-04-24 Tom Tromey <tom@tromey.com>
5344
5345 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5346 (add_psymbol_to_list): New overload. Make old overload call new
5347 one.
5348 * psympriv.h (add_psymbol_to_list): New overload.
5349
e61108c9
TT
53502020-04-24 Tom Tromey <tom@tromey.com>
5351
5352 * dwarf2/read.c (partial_die_info::read) <case
5353 DW_AT_linkage_name>: Use value_as_string.
5354 (dwarf2_string_attr): Use value_as_string.
5355 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5356 method.
5357 * dwarf2/attribute.c (attribute::value_as_string): New method.
5358
8c87a452
TT
53592020-04-24 Tom Tromey <tom@tromey.com>
5360
5361 * symtab.c (general_symbol_info::natural_name)
5362 (general_symbol_info::demangled_name): Check for language_rust.
5363
787de330
TT
53642020-04-24 Tom Tromey <tom@tromey.com>
5365
5366 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5367 (dwarf2_physname): ... from here.
5368 (partial_die_info::read): Add Rust "{" hack.
5369
ff985671
TT
53702020-04-24 Tom Tromey <tom@tromey.com>
5371
5372 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5373 method.
5374 (symbol_set_demangled_name): Don't declare.
5375 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5376 symbol_set_demangled_name.
5377 (general_symbol_info::set_language)
5378 (general_symbol_info::compute_and_set_names): Update.
5379 * minsyms.c (minimal_symbol_reader::install): Update.
5380 * dwarf2/read.c (new_symbol): Update.
5381
1acda803
TT
53822020-04-24 Tom Tromey <tromey@adacore.com>
5383
5384 PR python/23662:
5385 * python/py-type.c (convert_field): Handle
5386 FIELD_LOC_KIND_DWARF_BLOCK.
5387 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5388 (typy_get_dynamic): Nw function.
5389 (type_object_getset): Add "dynamic".
5390 * NEWS: Add entry.
5391
d656f129
TT
53922020-04-24 Tom Tromey <tromey@adacore.com>
5393
5394 * ada-typeprint.c (print_choices, print_variant_part)
5395 (print_record_field_types_dynamic): New functions.
5396 (print_record_field_types): Use print_record_field_types_dynamic.
5397
7d79de9a
TT
53982020-04-24 Tom Tromey <tromey@adacore.com>
5399
5400 * dwarf2/read.c (handle_data_member_location): New overload.
5401 (dwarf2_add_field): Use it.
5402 (decode_locdesc): Add "computed" parameter. Update comment.
5403 * gdbtypes.c (is_dynamic_type_internal): Also look for
5404 FIELD_LOC_KIND_DWARF_BLOCK.
5405 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5406 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5407 virtual base classes.
5408 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5409 FIELD_LOC_KIND_DWARF_BLOCK.
5410
f8e89861
TT
54112020-04-24 Tom Tromey <tromey@adacore.com>
5412
5413 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5414 * gdbtypes.c (is_dynamic_type_internal): Check
5415 TYPE_HAS_DYNAMIC_LENGTH.
5416 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5417 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5418 New macros.
5419 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5420 constant.
5421
9c6a1327
TT
54222020-04-24 Tom Tromey <tromey@adacore.com>
5423
5424 * dwarf2/read.c (struct variant_field): Rewrite.
5425 (struct variant_part_builder): New.
5426 (struct nextfield): Remove "variant" field. Add "offset".
5427 (struct field_info): Add "current_variant_part" and
5428 "variant_parts".
5429 (alloc_discriminant_info): Remove.
5430 (alloc_rust_variant): New function.
5431 (quirk_rust_enum): Update.
5432 (dwarf2_add_field): Set "offset" member. Don't handle
5433 DW_TAG_variant_part.
5434 (offset_map_type): New typedef.
5435 (convert_variant_range, create_one_variant)
5436 (create_one_variant_part, create_variant_parts)
5437 (add_variant_property): New functions.
5438 (dwarf2_attach_fields_to_type): Call add_variant_property.
5439 (read_structure_type): Don't handle DW_TAG_variant_part.
5440 (handle_variant_part, handle_variant): New functions.
5441 (handle_struct_member_die): Use them.
5442 (process_structure_scope): Don't handle variant parts.
5443 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5444 (struct discriminant_info): Remove.
5445 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5446 (struct main_type) <flag_discriminated_union>: Remove.
5447 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5448 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5449 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5450 Update.
5451 * valops.c (value_union_variant): Remove.
5452 * value.h (value_union_variant): Don't declare.
5453
b249d2c2
TT
54542020-04-24 Tom Tromey <tromey@adacore.com>
5455
5456 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5457 (ada_value_primitive_packed_val): Update.
5458 * ada-valprint.c (ada_value_print_1): Update.
5459 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5460 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5461 just an address. Use evaluate_for_locexpr_baton.
5462 (dwarf2_evaluate_property): Update.
5463 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5464 array_view.
5465 * findvar.c (default_read_var_value): Update.
5466 * gdbtypes.c (compute_variant_fields_inner)
5467 (resolve_dynamic_type_internal): Update.
5468 (resolve_dynamic_type): Change type of valaddr parameter.
5469 * gdbtypes.h (resolve_dynamic_type): Update.
5470 * valarith.c (value_subscripted_rvalue): Update.
5471 * value.c (value_from_contents_and_address): Update.
5472
61122aa9
TT
54732020-04-24 Tom Tromey <tromey@adacore.com>
5474
5475 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5476 "push_initial_value" parameter.
5477 (dwarf2_evaluate_property): Likewise.
5478 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5479
ef83a141
TT
54802020-04-24 Tom Tromey <tromey@adacore.com>
5481
5482 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5483 (variant::matches, compute_variant_fields_recurse)
5484 (compute_variant_fields_inner, compute_variant_fields): New
5485 functions.
5486 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5487 Use resolved_type after type is made.
5488 (operator==): Add new cases.
5489 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5490 (struct discriminant_range, struct variant, struct variant_part):
5491 New.
5492 (union dynamic_prop_data) <variant_parts, original_type>: New
5493 members.
5494 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5495 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5496 constants.
5497 * value.c (unpack_bits_as_long): Now public.
5498 * value.h (unpack_bits_as_long): Declare.
5499
675127ec
TT
55002020-04-24 Tom Tromey <tromey@adacore.com>
5501
5502 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5503 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5504
9852ceef
HD
55052020-04-24 Hannes Domani <ssbssa@yahoo.de>
5506
5507 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5508
7632c6ce
KR
55092020-04-24 Kamil Rytarowski <n54@gmx.com>
5510
5511 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5512 (remove_fork_catchpoint, post_startup_inferior)
5513 (post_attach): Move...
5514 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5515 (remove_fork_catchpoint, post_startup_inferior)
5516 (post_attach): ...here.
5517 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5518 (remove_fork_catchpoint, post_startup_inferior)
5519 (post_attach): Move...
5520 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5521 (remove_fork_catchpoint, post_startup_inferior)
5522 (post_attach): ...here.
5523
7be2bb4f
TT
55242020-04-24 Tom Tromey <tromey@adacore.com>
5525
5526 * nat/windows-nat.h (struct windows_thread_info)
5527 <pc_adjusted>: New member.
5528 * windows-nat.c (windows_fetch_one_register): Check
5529 pc_adjusted.
5530 (windows_nat_target::get_windows_debug_event)
5531 (windows_nat_target::wait): Set pc_adjusted.
5532
f80cb3b4
TV
55332020-04-24 Tom de Vries <tdevries@suse.de>
5534
5535 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5536 Run gdb-add-index inside temp dir.
5537
29514b87
TT
55382020-04-23 Tom Tromey <tromey@adacore.com>
5539
5540 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5541 in loop.
5542
5939967b
LM
55432020-04-23 Luis Machado <luis.machado@linaro.org>
5544
5545 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5546 get_frame_register instead of gdbarch_unwind_pc.
5547
70bc38f5
TV
55482020-04-23 Tom de Vries <tdevries@suse.de>
5549
5550 * symtab.c (lookup_global_symbol): Prefer def over decl.
5551
de82891c
TV
55522020-04-23 Tom de Vries <tdevries@suse.de>
5553
5554 PR symtab/25807
5555 * block.c (best_symbol, better_symbol): Promote to external.
5556 * block.h (best_symbol, better_symbol): Declare.
5557 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5558 decl.
5559
ecc6c606
TT
55602020-04-23 Tom Tromey <tromey@adacore.com>
5561
5562 PR ada/25837:
5563 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5564 "const char *", not a "const std::string &".
5565 <name_and_matcher::operator==>: Update.
5566 * unittests/lookup_name_info-selftests.c: Change type of
5567 "result".
5568
740480b8
TT
55692020-04-23 Tom Tromey <tom@tromey.com>
5570
5571 * inferior.h (iterate_over_inferiors): Don't declare.
5572 * inferior.c (iterate_over_inferiors): Remove.
5573 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5574 Remove.
5575 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5576 use iterate_over_inferiors.
5577 (darwin_resume_inferior_it)
5578 (struct resume_inferior_threads_param)
5579 (darwin_resume_inferior_threads_it): Remove.
5580 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5581
ae3ab1f0
TV
55822020-04-23 Tom de Vries <tdevries@suse.de>
5583
5584 * blockframe.c (find_pc_partial_function): Use
5585 find_pc_sect_compunit_symtab rather than
5586 objfile->sf->qf->find_pc_sect_compunit_symtab.
5587
317d2668
TV
55882020-04-22 Tom de Vries <tdevries@suse.de>
5589
5590 PR symtab/25764
5591 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5592 in psymtabs.
5593
eea9e357
TV
55942020-04-22 Tom de Vries <tdevries@suse.de>
5595
5596 PR symtab/25801
5597 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5598 symtabs.
5599
3d5afab3
TV
56002020-04-22 Tom de Vries <tdevries@suse.de>
5601
5602 PR symtab/25700
5603 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5604 CU if already created.
5605
d43b7a2d
TBA
56062020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5607
5608 * infrun.c (displaced_step_fixup): Switch to the event_thread
5609 before calling displaced_step_restore, not after.
5610
d89edf9b
MM
56112020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5612
5613 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5614 its inferior is not recorded by us.
5615 (record_btrace_target_open): Replace call to
5616 all_non_exited_threads () with call to current_inferior
5617 ()->non_exited_threads ().
5618 (record_btrace_target::stop_recording): Likewise.
5619 (record_btrace_target::close): Likewise.
5620 (record_btrace_target::wait): Likewise.
5621 (record_btrace_target::record_stop_replaying): Likewise.
5622
5897fd49
MM
56232020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5624
5625 * btrace.c (btrace_enable): Throw an error on double enables and
5626 when enabling recording fails.
5627 (btrace_disable): Throw an error if the thread is not recorded.
5628
1a476b6d
MM
56292020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5630
5631 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5632 request if we do not have a thread_info.
5633
4778a5f8
TV
56342020-04-21 Tom de Vries <tdevries@suse.de>
5635
5636 PR gdb/25471
5637 * thread.c
5638 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5639 exception in get_frame_id.
5640
0fa7617d
TT
56412020-04-20 Tom Tromey <tromey@adacore.com>
5642
5643 * python/python.c (struct gdbpy_event): Mark move constructor as
5644 noexcept.
5645 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5646 constructor as noexcept.
5647 * completer.h (struct completion_result): Mark move constructor as
5648 noexcept.
5649 * completer.c (completion_result::completion_result): Use
5650 initialization style. Don't call reset_match_list.
5651
ad23bda0
MS
56522020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5653
5654 * MAINTAINERS (Write After Approval): Add myself.
5655
45e1f031
TT
56562020-04-18 Tom Tromey <tom@tromey.com>
5657
5658 * windows-tdep.c (init_w32_command_list)
5659 (w32_prefix_command_valid): Restore.
5660 (_initialize_windows_tdep): Call init_w32_command_list.
5661
08feed99
TT
56622020-04-18 Tom Tromey <tom@tromey.com>
5663
5664 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5665 * value.c (value_fn_field): Update.
5666 * valops.c (find_function_in_inferior)
5667 (value_allocate_space_in_inferior): Update.
5668 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5669 Update.
5670 * tui/tui-source.c (tui_source_window::set_contents): Update.
5671 * symtab.c (lookup_global_or_static_symbol)
5672 (find_function_start_sal_1, skip_prologue_sal)
5673 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5674 * symmisc.c (dump_msymbols, dump_symtab_1)
5675 (maintenance_print_one_line_table): Update.
5676 * symfile.c (init_entry_point_info, section_is_mapped)
5677 (list_overlays_command, simple_read_overlay_table)
5678 (simple_overlay_update_1): Update.
5679 * stap-probe.c (handle_stap_probe): Update.
5680 * stabsread.c (dbx_init_float_type, define_symbol)
5681 (read_one_struct_field, read_enum_type, read_range_type): Update.
5682 * source.c (info_line_command): Update.
5683 * python/python.c (gdbpy_source_objfile_script)
5684 (gdbpy_execute_objfile_script): Update.
5685 * python/py-type.c (save_objfile_types): Update.
5686 * python/py-objfile.c (py_free_objfile): Update.
5687 * python/py-inferior.c (python_new_objfile): Update.
5688 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5689 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5690 (maintenance_check_psymtabs): Update.
5691 * printcmd.c (info_address_command): Update.
5692 * objfiles.h (struct objfile) <arch>: New method, from
5693 get_objfile_arch.
5694 (get_objfile_arch): Don't declare.
5695 * objfiles.c (get_objfile_arch): Remove.
5696 (filter_overlapping_sections): Update.
5697 * minsyms.c (msymbol_is_function): Update.
5698 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5699 (output_nondebug_symbol): Update.
5700 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5701 (mdebug_expand_psymtab): Update.
5702 * machoread.c (macho_add_oso_symfile): Update.
5703 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5704 Update.
5705 * linux-fork.c (checkpoint_command): Update.
5706 * linespec.c (convert_linespec_to_sals): Update.
5707 * jit.c (finalize_symtab): Update.
5708 * infrun.c (insert_exception_resume_from_probe): Update.
5709 * ia64-tdep.c (ia64_find_unwind_table): Update.
5710 * hppa-tdep.c (internalize_unwinds): Update.
5711 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5712 Update.
5713 * gcore.c (call_target_sbrk): Update.
5714 * elfread.c (record_minimal_symbol, elf_symtab_read)
5715 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5716 (elf_gnu_ifunc_resolve_by_got): Update.
5717 * dwarf2/read.c (create_addrmap_from_index)
5718 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5719 (read_debug_names_from_section)
5720 (process_psymtab_comp_unit_reader, add_partial_symbol)
5721 (add_partial_subprogram, process_full_comp_unit)
5722 (read_file_scope, read_func_scope, read_lexical_block_scope)
5723 (read_call_site_scope, dwarf2_ranges_read)
5724 (dwarf2_record_block_ranges, dwarf2_add_field)
5725 (mark_common_block_symbol_computed, read_tag_pointer_type)
5726 (read_tag_string_type, dwarf2_init_float_type)
5727 (dwarf2_init_complex_target_type, read_base_type)
5728 (partial_die_info::read, partial_die_info::read)
5729 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5730 (dwarf2_fetch_die_loc_sect_off): Update.
5731 * dwarf2/loc.c (dwarf2_find_location_expression)
5732 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5733 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5734 (dwarf2_loc_desc_get_symbol_read_needs)
5735 (locexpr_describe_location_piece, locexpr_describe_location_1)
5736 (loclist_describe_location): Update.
5737 * dwarf2/index-write.c (write_debug_names): Update.
5738 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5739 * dtrace-probe.c (dtrace_process_dof): Update.
5740 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5741 (process_one_symbol): Update.
5742 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5743 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5744 (coff_read_enum_type): Update.
5745 * cli/cli-cmds.c (edit_command, list_command): Update.
5746 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5747 * breakpoint.c (create_overlay_event_breakpoint)
5748 (create_longjmp_master_breakpoint)
5749 (create_std_terminate_master_breakpoint)
5750 (create_exception_master_breakpoint, get_sal_arch): Update.
5751 * block.c (block_gdbarch): Update.
5752 * annotate.c (annotate_source_line): Update.
5753
0743fc83
TT
57542020-04-17 Tom Tromey <tromey@adacore.com>
5755
5756 * auto-load.c (show_auto_load_cmd): Remove.
5757 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5758 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5759 (maintenance_print_arc_command): Remove.
5760 * tui/tui-win.c (tui_command): Remove.
5761 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5762 * tui/tui-layout.c (tui_layout_command): Remove.
5763 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5764 * python/python.c (user_set_python, user_show_python): Remove.
5765 (_initialize_python): Use add_basic_prefix_cmd,
5766 add_show_prefix_cmd.
5767 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5768 (install_gdb_commands): Use add_basic_prefix_cmd,
5769 add_show_prefix_cmd.
5770 (info_guile_command): Remove.
5771 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5772 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5773 add_show_prefix_cmd.
5774 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5775 Remove do_set and do_show parameters.
5776 * cli/cli-style.c (set_style, show_style): Remove.
5777 (_initialize_cli_style): Use add_basic_prefix_cmd,
5778 add_show_prefix_cmd.
5779 (cli_style_option::add_setshow_commands): Remove do_set and
5780 do_show parameters.
5781 (cli_style_option::add_setshow_commands): Use
5782 add_basic_prefix_cmd, add_show_prefix_cmd.
5783 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5784 (set_style_name): Remove.
5785 * cli/cli-dump.c (dump_command, append_command): Remove.
5786 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5787 (tekhex_dump_command, binary_dump_command)
5788 (binary_append_command): Remove.
5789 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5790 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5791 (init_w32_command_list): Remove; move into ...
5792 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5793 * valprint.c (set_print, show_print, set_print_raw)
5794 (show_print_raw): Remove.
5795 (_initialize_valprint): Use add_basic_prefix_cmd,
5796 add_show_prefix_cmd.
5797 * typeprint.c (set_print_type, show_print_type): Remove.
5798 (_initialize_typeprint): Use add_basic_prefix_cmd,
5799 add_show_prefix_cmd.
5800 * record.c (set_record_command, show_record_command): Remove.
5801 (_initialize_record): Use add_basic_prefix_cmd,
5802 add_show_prefix_cmd.
5803 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5804 add_show_prefix_cmd.
5805 (info_command, show_command, set_debug, show_debug): Remove.
5806 * top.h (set_history, show_history): Don't declare.
5807 * top.c (set_history, show_history): Remove.
5808 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5809 (unset_tdesc_cmd): Remove.
5810 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5811 add_show_prefix_cmd.
5812 * symtab.c (info_module_command): Remove.
5813 (_initialize_symtab): Use add_basic_prefix_cmd.
5814 * symfile.c (overlay_command): Remove.
5815 (_initialize_symfile): Use add_basic_prefix_cmd.
5816 * sparc64-tdep.c (info_adi_command): Remove.
5817 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5818 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5819 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5820 add_show_prefix_cmd.
5821 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5822 (_initialize_serial): Use add_basic_prefix_cmd,
5823 add_show_prefix_cmd.
5824 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5825 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5826 add_show_prefix_cmd.
5827 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5828 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5829 add_show_prefix_cmd.
5830 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5831 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5832 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5833 add_show_prefix_cmd.
5834 * remote.c (remote_command, set_remote_cmd): Remove.
5835 (_initialize_remote): Use add_basic_prefix_cmd.
5836 * record-full.c (set_record_full_command)
5837 (show_record_full_command): Remove.
5838 (_initialize_record_full): Use add_basic_prefix_cmd,
5839 add_show_prefix_cmd.
5840 * record-btrace.c (cmd_set_record_btrace)
5841 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5842 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5843 (cmd_show_record_btrace_pt): Remove.
5844 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5845 add_show_prefix_cmd.
5846 * ravenscar-thread.c (set_ravenscar_command)
5847 (show_ravenscar_command): Remove.
5848 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5849 add_show_prefix_cmd.
5850 * mips-tdep.c (show_mips_command, set_mips_command)
5851 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5852 add_show_prefix_cmd.
5853 * maint.c (maintenance_command, maintenance_info_command)
5854 (maintenance_check_command, maintenance_print_command)
5855 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5856 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5857 add_show_prefix_cmd.
5858 (show_per_command_cmd): Remove.
5859 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5860 Remove.
5861 (maintenance_show_test_settings_cmd): Remove.
5862 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5863 add_show_prefix_cmd.
5864 * maint-test-options.c (maintenance_test_options_command):
5865 Remove.
5866 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5867 * macrocmd.c (macro_command): Remove
5868 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5869 * language.c (set_check, show_check): Remove.
5870 (_initialize_language): Use add_basic_prefix_cmd,
5871 add_show_prefix_cmd.
5872 * infcmd.c (unset_command): Remove.
5873 (_initialize_infcmd): Use add_basic_prefix_cmd.
5874 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5875 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5876 add_show_prefix_cmd.
5877 * go32-nat.c (go32_info_dos_command): Remove.
5878 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5879 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5880 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5881 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5882 (_initialize_frame): Use add_basic_prefix_cmd,
5883 add_show_prefix_cmd.
5884 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5885 (_initialize_dcache): Use add_basic_prefix_cmd,
5886 add_show_prefix_cmd.
5887 * cp-support.c (maint_cplus_command): Remove.
5888 (_initialize_cp_support): Use add_basic_prefix_cmd.
5889 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5890 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5891 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5892 add_basic_prefix_cmd, add_show_prefix_cmd.
5893 * breakpoint.c (save_command): Remove.
5894 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5895 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5896 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5897 add_show_prefix_cmd.
5898 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5899 (set_ada_command, show_ada_command): Remove.
5900 (_initialize_ada_language): Use add_basic_prefix_cmd,
5901 add_show_prefix_cmd.
5902 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5903
3557f442
KR
59042020-04-16 Kamil Rytarowski <n54@gmx.com>
5905
5906 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5907 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5908
16197208
SM
59092020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5910
5911 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5912 warning messages.
5913
00ac85d3
SM
59142020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5915
5916 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5917 import table is not at beginning of .idata section.
5918
381ce63f
PA
59192020-04-16 Pedro Alves <palves@redhat.com>
5920
5921 * inferior.c (delete_inferior): Use delete operator directly
5922 instead of delete_program_space.
5923 * progspace.c (add_program_space): New, factored out from
5924 program_space::program_space.
5925 (remove_program_space): New, factored out from
5926 delete_program_space.
5927 (program_space::program_space): Remove intro comment. Rewrite.
5928 (program_space::~program_space): Remove intro comment. Call
5929 remove_program_space.
5930 (delete_program_space): Delete.
5931 * progspace.h (program_space::program_space): Make explicit. Move
5932 intro comment here, adjusted.
5933 (program_space::~program_space): Move intro comment here,
5934 adjusted.
5935 (delete_program_space): Remove.
5936
a010605f
TT
59372020-04-16 Tom Tromey <tromey@adacore.com>
5938
5939 * windows-nat.c (windows_nat::handle_access_violation): New
5940 function.
5941 * nat/windows-nat.h (handle_access_violation): Declare.
5942 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5943 windows-nat.c. Call handle_access_violation.
5944
efba5c23
TV
59452020-04-16 Tom de Vries <tdevries@suse.de>
5946
5947 PR symtab/25791
5948 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5949 CUs without psymtab.
5950
97ed802d
KB
59512020-04-16 Kevin Buettner <kevinb@redhat.com>
5952
5953 * python/python.c (do_start_initialization): Don't call
5954 PyEval_InitThreads for Python 3.9 and beyond.
5955
c7d64809
KR
59562020-04-15 Kamil Rytarowski <n54@gmx.com>
5957
5958 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5959 thread functions.
5960 (obsd_nat_target::wait): Likewise.
5961
ce127a96
TT
59622020-04-15 Tom Tromey <tromey@adacore.com>
5963
5964 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5965 (DEBUG_EXCEPT): Use debug_printf.
5966
99f1bc6a
AB
59672020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5968
5969 * completer.c (class completion_tracker::completion_hash_entry)
5970 <hash_name>: New member function.
5971 (completion_tracker::discard_completions): New callback to hash a
5972 completion_hash_entry, pass this to htab_create_alloc.
5973
a0e9b532
JT
59742016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5975
5976 * windows-nat.c (windows_make_so): Warn rather than stopping with
5977 an error if realpath() fails.
5978
06ca5dd4
KR
59792020-04-14 Kamil Rytarowski <n54@gmx.com>
5980
5981 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5982 (nbsd_nat_target::info_proc): Add do_status.
5983
194d088f
TV
59842020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5985 Tom de Vries <tdevries@suse.de>
5986
5987 PR symtab/25718
5988 * psympriv.h (struct partial_symtab::read_symtab)
5989 (struct partial_symtab::expand_psymtab)
5990 (struct partial_symtab::read_dependencies): Update comments.
5991 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5992 read_symtab for includer.
5993 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5994 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5995 (struct dwarf2_include_psymtab::m_readin): Remove.
5996 (struct dwarf2_include_psymtab::includer): New member function.
5997 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5998
c1a66c06
TV
59992020-04-14 Tom de Vries <tdevries@suse.de>
6000
6001 PR symtab/25720
6002 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6003 with NULL symbol_matcher and lookup_name.
6004 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6005 and lookup_name.
6006 * dwarf2/read.c (dw2_expand_symtabs_matching)
6007 (dw2_debug_names_expand_symtabs_matching): Same.
6008 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6009 Make lookup_name a pointer. Update comment.
6010 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6011 lookup_name being a pointer.
6012 * symfile.c (expand_symtabs_matching): Same.
6013 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6014 * linespec.c (iterate_over_all_matching_symtabs): Same.
6015
400b5eca
TT
60162020-04-13 Tom Tromey <tom@tromey.com>
6017
6018 * run-on-main-thread.c: Update include.
6019 * unittests/main-thread-selftests.c: Update include.
6020 * tui/tui-win.c: Update include.
6021 * tui/tui-io.c: Update include.
6022 * tui/tui-interp.c: Update include.
6023 * tui/tui-hooks.c: Update include.
6024 * top.h: Update include.
6025 * top.c: Update include.
6026 * ser-base.c: Update include.
6027 * remote.c: Update include.
6028 * remote-notif.c: Update include.
6029 * remote-fileio.c: Update include.
6030 * record-full.c: Update include.
6031 * record-btrace.c: Update include.
6032 * python/python.c: Update include.
6033 * posix-hdep.c: Update include.
6034 * mingw-hdep.c: Update include.
6035 * mi/mi-main.c: Update include.
6036 * mi/mi-interp.c: Update include.
6037 * main.c: Update include.
6038 * linux-nat.c: Update include.
6039 * interps.c: Update include.
6040 * infrun.c: Update include.
6041 * inf-loop.c: Update include.
6042 * event-top.c: Update include.
6043 * event-loop.c: Move to ../gdbsupport/.
6044 * event-loop.h: Move to ../gdbsupport/.
6045 * async-event.h: Update include.
6046 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6047
93b54c8e
TT
60482020-04-13 Tom Tromey <tom@tromey.com>
6049
6050 * tui/tui-win.c: Include async-event.h.
6051 * remote.c: Include async-event.h.
6052 * remote-notif.c: Include async-event.h.
6053 * record-full.c: Include async-event.h.
6054 * record-btrace.c: Include async-event.h.
6055 * infrun.c: Include async-event.h.
6056 * event-top.c: Include async-event.h.
6057 * event-loop.h: Move some declarations to async-event.h.
6058 * event-loop.c: Don't include ser-event.h or top.h. Move some
6059 code to async-event.c.
6060 * async-event.h: New file.
6061 * async-event.c: New file.
6062 * Makefile.in (COMMON_SFILES): Add async-event.c.
6063 (HFILES_NO_SRCDIR): Add async-event.h.
6064
c1cd3163
TT
60652020-04-13 Tom Tromey <tom@tromey.com>
6066
6067 * utils.c (flush_streams): New function.
6068 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6069
29f2bf4f
TT
60702020-04-13 Tom Tromey <tom@tromey.com>
6071
6072 * event-loop.c (handle_file_event): Use warning, not
6073 printf_unfiltered.
6074
98029d02
TT
60752020-04-13 Tom Tromey <tom@tromey.com>
6076
6077 * event-loop.c: Include <chrono>.
6078
06cc9596
TT
60792020-04-13 Tom Tromey <tom@tromey.com>
6080
6081 * gdb_select.h: Move to ../gdbsupport/.
6082 * event-loop.c: Update include path.
6083 * top.c: Update include path.
6084 * ser-base.c: Update include path.
6085 * ui-file.c: Update include path.
6086 * ser-tcp.c: Update include path.
6087 * guile/scm-ports.c: Update include path.
6088 * posix-hdep.c: Update include path.
6089 * ser-unix.c: Update include path.
6090 * gdb_usleep.c: Update include path.
6091 * mingw-hdep.c: Update include path.
6092 * inflow.c: Update include path.
6093 * infrun.c: Update include path.
6094 * event-top.c: Update include path.
6095
8ae8e197
TT
60962020-04-13 Tom Tromey <tom@tromey.com>
6097
6098 * configure: Rebuild.
6099 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6100
58cf28e8
TT
61012020-04-13 Tom Tromey <tom@tromey.com>
6102
6103 * event-loop.h (start_event_loop): Don't declare.
6104 * event-loop.c (start_event_loop): Move...
6105 * main.c (start_event_loop): ...here. Now static.
6106
b7f999ae
SDJ
61072020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6108
6109 * MAINTAINERS: Update my email address.
6110
1085dfd4
KR
61112020-04-12 Kamil Rytarowski <n54@gmx.com>
6112
6113 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6114 IP_ALL.
6115
49d1d1f5
KR
61162020-04-12 Kamil Rytarowski <n54@gmx.com>
6117
6118 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6119 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6120
b4848d2a
KR
61212020-04-12 Kamil Rytarowski <n54@gmx.com>
6122
6123 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6124 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6125
51c133d5
KR
61262020-04-12 Kamil Rytarowski <n54@gmx.com>
6127
6128 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6129
54b8cbd0
KR
61302020-04-11 Kamil Rytarowski <n54@gmx.com>
6131
6132 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6133 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6134 (nbsd_nat_target::info_proc): New functions.
6135 * nbsd-nat.c (kinfo_get_vmmap): New function.
6136 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6137 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6138 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6139 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6140 functions.
6141 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6142 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6143 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6144 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6145 (KINFO_VME_FLAG_GROWS_DOWN): New.
6146
cf83625d
AS
61472020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6148
6149 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6150 bit shift.
6151
0c4311ab
TT
61522020-04-10 Tom Tromey <tromey@adacore.com>
6153
6154 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6155
3e65b3e9
TT
61562020-04-10 Tom Tromey <tromey@adacore.com>
6157
6158 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6159 separate debug files.
6160
13302e95
HD
61612020-04-10 Hannes Domani <ssbssa@yahoo.de>
6162
6163 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6164 Move to...
6165 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6166 ... here.
6167 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6168 Check for STATUS_WX86_BREAKPOINT.
6169 (windows_nat_target::wait): Same.
6170
bdfc1e8a
TV
61712020-04-10 Tom de Vries <tdevries@suse.de>
6172
6173 PR cli/25808
6174 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6175
f4460aec
SM
61762020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6177
6178 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6179 (Write After Approval): Remove Tom de Vries.
6180
a25198bb
BE
61812020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6182
6183 revert partially:
6184 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6185
aac66a4c
SM
6186 * buildsym.c (record_line): Fix undefined behavior and preserve
6187 lines at eof.
a25198bb 6188
206c98a6
KR
61892020-04-09 Kamil Rytarowski <n54@gmx.com>
6190
6191 * auxv.h (svr4_auxv_parse): New.
6192 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6193 and generic_auxv_parse.
6194 (svr4_auxv_parse): Add.
6195 * obsd-tdep.c: Include "auxv.h".
6196 (obsd_auxv_parse): Remove.
6197 (obsd_init_abi): Remove comment.
6198 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6199 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6200 * nbsd-tdep.c: Include "auxv.h".
6201 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6202
71fbdbaf
TT
62032020-04-08 Tom Tromey <tromey@adacore.com>
6204
6205 * nat/windows-nat.h (last_wait_event): Don't declare.
6206 (wait_for_debug_event): Update comment.
6207 * nat/windows-nat.c (last_wait_event): Now static.
6208
2c1d95e8
TT
62092020-04-08 Tom Tromey <tromey@adacore.com>
6210
6211 * windows-nat.c (wait_for_debug_event): Move to
6212 nat/windows-nat.c.
6213 * nat/windows-nat.h (wait_for_debug_event): Declare.
6214 * nat/windows-nat.c (wait_for_debug_event): Move from
6215 windows-nat.c. No longer static.
6216
d2977bc4
TT
62172020-04-08 Tom Tromey <tromey@adacore.com>
6218
6219 * windows-nat.c (get_windows_debug_event): Use
6220 fetch_pending_stop.
6221 * nat/windows-nat.h (fetch_pending_stop): Declare.
6222 * nat/windows-nat.c (fetch_pending_stop): New function.
6223
e758e19c
TT
62242020-04-08 Tom Tromey <tromey@adacore.com>
6225
6226 * windows-nat.c (windows_continue): Use matching_pending_stop and
6227 continue_last_debug_event.
6228 * nat/windows-nat.h (matching_pending_stop)
6229 (continue_last_debug_event): Declare.
6230 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6231 (matching_pending_stop, continue_last_debug_event): New
6232 functions.
6233
8d30e395
TT
62342020-04-08 Tom Tromey <tromey@adacore.com>
6235
6236 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6237 (handle_exception_result): Move to nat/windows-nat.h.
6238 (DEBUG_EXCEPTION_SIMPLE): Remove.
6239 (windows_nat::handle_ms_vc_exception): New function.
6240 (handle_exception): Move to nat/windows-nat.c.
6241 (get_windows_debug_event): Update.
6242 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6243 nat/windows-nat.c.
6244 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6245 (handle_exception_result): Move from windows-nat.c.
6246 (handle_exception): Declare.
6247 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6248 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6249 windows-nat.c.
6250
29de418d
TT
62512020-04-08 Tom Tromey <tromey@adacore.com>
6252
6253 * windows-nat.c (exception_count, event_count): Remove.
6254 (handle_exception, get_windows_debug_event)
6255 (do_initial_windows_stuff): Update.
6256
a816ba18
TT
62572020-04-08 Tom Tromey <tromey@adacore.com>
6258
6259 * windows-nat.c (windows_nat::handle_load_dll)
6260 (windows_nat::handle_unload_dll): Rename. No longer static.
6261 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6262 Declare.
6263
a00caa12
TT
62642020-04-08 Tom Tromey <tromey@adacore.com>
6265
6266 * complaints.h (stop_whining): Declare at top-level.
6267 (complaint): Don't declare stop_whining.
6268
d41b524f
TT
62692020-04-08 Tom Tromey <tromey@adacore.com>
6270
6271 * windows-nat.c (windows_nat::handle_output_debug_string):
6272 Rename. No longer static.
6273 * nat/windows-nat.h (handle_output_debug_string): Declare.
6274
3c76026d
TT
62752020-04-08 Tom Tromey <tromey@adacore.com>
6276
6277 * windows-nat.c (current_process_handle, current_process_id)
6278 (main_thread_id, last_sig, current_event, last_wait_event)
6279 (current_windows_thread, desired_stop_thread_id, pending_stops)
6280 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6281 (display_selectors, fake_create_process)
6282 (get_windows_debug_event): Update.
6283 * nat/windows-nat.h (current_process_handle, current_process_id)
6284 (main_thread_id, last_sig, current_event, last_wait_event)
6285 (current_windows_thread, desired_stop_thread_id, pending_stops)
6286 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6287 * nat/windows-nat.c (current_process_handle, current_process_id)
6288 (main_thread_id, last_sig, current_event, last_wait_event)
6289 (current_windows_thread, desired_stop_thread_id, pending_stops)
6290 (siginfo_er): New globals. Move from windows-nat.c.
6291
9d8679cc
TT
62922020-04-08 Tom Tromey <tromey@adacore.com>
6293
6294 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6295 (handle_load_dll): Update.
6296 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6297
28688adf
TT
62982020-04-08 Tom Tromey <tromey@adacore.com>
6299
6300 * windows-nat.c (enum thread_disposition_type): Move to
6301 nat/windows-nat.h.
6302 (windows_nat::thread_rec): Rename from thread_rec. No longer
6303 static.
6304 (windows_add_thread, windows_nat_target::fetch_registers)
6305 (windows_nat_target::store_registers, handle_exception)
6306 (windows_nat_target::resume, get_windows_debug_event)
6307 (windows_nat_target::get_tib_address)
6308 (windows_nat_target::thread_name)
6309 (windows_nat_target::thread_alive): Update.
6310 * nat/windows-nat.h (enum thread_disposition_type): Move from
6311 windows-nat.c.
6312 (thread_rec): Declare.
6313
4834dad0
TT
63142020-04-08 Tom Tromey <tromey@adacore.com>
6315
6316 * windows-nat.c: Add "using namespace".
6317 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6318 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6319
65bafd5b
TT
63202020-04-08 Tom Tromey <tromey@adacore.com>
6321
6322 * nat/windows-nat.h (struct windows_thread_info): Declare
6323 destructor.
6324 * nat/windows-nat.c (~windows_thread_info): New.
6325
0a4afda3
TT
63262020-04-08 Tom Tromey <tromey@adacore.com>
6327
6328 PR gdb/22992
6329 * windows-nat.c (current_event): Update comment.
6330 (last_wait_event, desired_stop_thread_id): New globals.
6331 (struct pending_stop): New.
6332 (pending_stops): New global.
6333 (windows_nat_target) <stopped_by_sw_breakpoint>
6334 <supports_stopped_by_sw_breakpoint>: New methods.
6335 (windows_fetch_one_register): Add assertions. Adjust PC.
6336 (windows_continue): Handle pending stops. Suspend other threads
6337 when stepping. Use last_wait_event
6338 (wait_for_debug_event): New function.
6339 (get_windows_debug_event): Use wait_for_debug_event. Handle
6340 pending stops. Queue spurious stops.
6341 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6342 (windows_nat_target::kill): Use wait_for_debug_event.
6343 * nat/windows-nat.h (struct windows_thread_info)
6344 <stopped_at_software_breakpoint>: New field.
6345 * nat/windows-nat.c (windows_thread_info::resume): Clear
6346 stopped_at_software_breakpoint.
6347
8e61ebec
TT
63482020-04-08 Tom Tromey <tromey@adacore.com>
6349
6350 * windows-nat.c (enum thread_disposition_type): New.
6351 (thread_rec): Replace "get_context" parameter with "disposition";
6352 change type.
6353 (windows_add_thread, windows_nat_target::fetch_registers)
6354 (windows_nat_target::store_registers, handle_exception)
6355 (windows_nat_target::resume, get_windows_debug_event)
6356 (windows_nat_target::get_tib_address)
6357 (windows_nat_target::thread_name)
6358 (windows_nat_target::thread_alive): Update.
6359
98a03287
TT
63602020-04-08 Tom Tromey <tromey@adacore.com>
6361
6362 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6363 (windows_continue): Use windows_continue::resume.
6364 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6365 resume>: Declare new methods.
6366 * nat/windows-nat.c: New file.
6367 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6368
7c7411bc
TT
63692020-04-08 Tom Tromey <tromey@adacore.com>
6370
6371 * windows-nat.c (windows_add_thread, windows_delete_thread)
6372 (windows_nat_target::fetch_registers)
6373 (windows_nat_target::store_registers, fake_create_process)
6374 (windows_nat_target::resume, windows_nat_target::resume)
6375 (get_windows_debug_event, windows_nat_target::wait)
6376 (windows_nat_target::pid_to_str)
6377 (windows_nat_target::get_tib_address)
6378 (windows_nat_target::get_ada_task_ptid)
6379 (windows_nat_target::thread_name)
6380 (windows_nat_target::thread_alive): Use lwp, not tid.
6381
2950fdf7
TT
63822020-04-08 Tom Tromey <tromey@adacore.com>
6383
6384 * windows-nat.c (handle_exception)
6385 (windows_nat_target::thread_name): Update.
6386 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6387 <name>: Now unique_xmalloc_ptr.
6388
62fe396b
TT
63892020-04-08 Tom Tromey <tromey@adacore.com>
6390
6391 * windows-nat.c (thread_rec)
6392 (windows_nat_target::fetch_registers): Update.
6393 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6394 Update comment.
6395 <debug_registers_changed, reload_context>: Now bool.
6396
e9534bd2
TT
63972020-04-08 Tom Tromey <tromey@adacore.com>
6398
6399 * windows-nat.c (windows_add_thread): Use new.
6400 (windows_init_thread_list, windows_delete_thread): Use delete.
6401 (get_windows_debug_event): Update.
6402 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6403 destructor, and initializers.
6404
ae1f8880
TT
64052020-04-08 Tom Tromey <tromey@adacore.com>
6406
6407 * windows-nat.c (struct windows_thread_info): Remove.
6408 * nat/windows-nat.h: New file.
6409
55a1e039
TT
64102020-04-08 Tom Tromey <tromey@adacore.com>
6411
6412 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6413 (thread_rec, windows_add_thread, windows_delete_thread)
6414 (windows_continue): Update.
6415
93366324
TT
64162020-04-08 Tom Tromey <tromey@adacore.com>
6417
6418 * windows-nat.c (struct windows_thread_info): Remove typedef.
6419 (thread_head): Remove.
6420 (thread_list): New global.
6421 (thread_rec, windows_add_thread, windows_init_thread_list)
6422 (windows_delete_thread, windows_continue): Update.
6423
0f2265e2
SM
64242020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6425
6426 * windows-tdep.h (windows_init_abi): Add comment.
6427 (cygwin_init_abi): New declaration.
6428 * windows-tdep.c: Split signal enumeration in two, one for
6429 Windows and one for Cygwin.
6430 (windows_gdb_signal_to_target): Only deal with signal of the
6431 Windows OS ABI.
6432 (cygwin_gdb_signal_to_target): New function.
6433 (windows_init_abi): Rename to windows_init_abi_common, don't set
6434 gdb_signal_to_target gdbarch method. Add new new function with
6435 this name.
6436 (cygwin_init_abi): New function.
6437 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6438 comment. Don't call windows_init_abi.
6439 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6440 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6441 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6442 i386_windows_init_abi_common, don't call windows_init_abi. Add
6443 a new function of this name.
6444 (i386_cygwin_init_abi): New function.
6445 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6446 OS ABI Cygwin.
6447
3810f182
SM
64482020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6449
6450 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6451 parameter.c.
6452 (dwarf2_read_gdb_index): Update.
6453
063f8e80
KR
64542020-04-07 Kamil Rytarowski <n54@gmx.com>
6455
6456 * nbsd-tdep.c: Include "objfiles.h".
6457 (nbsd_skip_solib_resolver): New.
6458 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6459
85a9510c 64602020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6461
6462 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6463 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6464 with DW_LLE_base_addressx are being emitted in DWARFv5.
6465 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6466 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6467 unsigned integer.
6468
9fc3eaae 64692020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6470
6471 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6472 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6473 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6474 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6475 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6476 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6477 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6478
6479
41144253 64802020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6481
6482 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6483 (read_loclist_index): New function definition.
6484 (lookup_loclist_base): New function definition.
6485 (read_loclist_header): New function definition.
6486 (dwarf2_cu): Add loclist_base and loclist_header field.
6487 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6488 (read_full_die_1): Read the value of DW_AT_loclists_base.
6489 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6490 (read_attribute_value): Handle DW_FORM_loclistx.
6491 (skip_one_die): Handle DW_FORM_loclistx.
6492 (loclist_header): New structure declaration.
6493 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6494
9f4e76a4
SM
64952020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6496
6497 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6498 constructor. Remove `addr` parameter from other constructor and
6499 add `per_cu` parameter.
6500 * dwarf2/read.c (create_partial_symtab): Update.
6501
25c11aca
TV
65022020-04-07 Tom de Vries <tdevries@suse.de>
6503
6504 PR symtab/25796
6505 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6506 (partial_die_info::fixup): Inherit has_const_value.
6507
5707e24b
TV
65082020-04-07 Tom de Vries <tdevries@suse.de>
6509
6510 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6511 symbols without address.
6512
05f00e22
KR
65132020-04-06 Kamil Rytarowski <n54@gmx.com>
6514
6515 * nbsd-nat.h (struct thread_info): Add forward declaration.
6516 (nbsd_nat_target::thread_alive): Add.
6517 (nbsd_nat_target::thread_name): Likewise.
6518 (nbsd_nat_target::update_thread_list): Likewise.
6519 (update_thread_list::post_attach): Likewise.
6520 (post_attach::pid_to_str): Likewise.
6521 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6522 (nbsd_thread_lister): Add.
6523 (nbsd_nat_target::thread_alive): Likewise.
6524 (nbsd_nat_target::thread_name): Likewise.
6525 (nbsd_add_threads): Likewise.
6526 (update_thread_list::post_attach): Likewise.
6527 (nbsd_nat_target::update_thread_list): Likewise.
6528 (post_attach::pid_to_str): Likewise.
6529
6ee448cc
TT
65302020-04-06 Tom Tromey <tromey@adacore.com>
6531
6532 * ada-valprint.c (print_variant_part): Extract the variant field.
6533 (print_field_values): Use the field as the outer value when
6534 recursing.
6535
dea34e8c
TT
65362020-04-06 Tom Tromey <tromey@adacore.com>
6537
6538 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6539 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6540 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6541 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6542 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6543
93689ce9
TT
65442020-04-06 Tom Tromey <tromey@adacore.com>
6545
6546 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6547 TYPE_CODE_ERROR.
6548
79743962
KR
65492020-04-06 Kamil Rytarowski <n54@gmx.com>
6550
6551 * nbsd-tdep.c: Include "gdbarch.h".
6552 Define enum with NetBSD signal numbers.
6553 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6554 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6555 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6556 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6557 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6558 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6559 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6560 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6561 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6562 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6563 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6564 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6565
9e7c9a03
HD
65662020-04-03 Hannes Domani <ssbssa@yahoo.de>
6567
6568 PR gdb/25325
6569 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6570
d9e49b61
TT
65712020-04-03 Tom Tromey <tromey@adacore.com>
6572
6573 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6574 Read constant block.
6575
e0fc5c3f
SM
65762020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6577
6578 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6579 (gdb_bfd_get_full_section_contents): New declaration.
6580 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6581 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6582 gdb_bfd_get_full_section_contents.
6583
e2ff18a0
SM
65842020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6585
6586 * exec.c (build_section_table): Replace internal_error with
6587 gdb_assert.
6588 (section_table_xfer_memory_partial): Likewise.
6589 * mdebugread.c (parse_partial_symbols): Likewise.
6590 * psymtab.c (lookup_partial_symbol): Likewise.
6591 * utils.c (wrap_here): Likewise.
6592
0830d301
TT
65932020-04-02 Tom Tromey <tromey@adacore.com>
6594
6595 * f-lang.c (build_fortran_types): Use arch_type to initialize
6596 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6597
e7da7f8f
TT
65982020-04-02 Tom Tromey <tromey@adacore.com>
6599
6600 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6601 of attributes.
6602
c90d28ac
AB
66032020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6604 Bernd Edlinger <bernd.edlinger@hotmail.de>
6605 Tom Tromey <tromey@adacore.com>
6606
6607 * buildsym.c (buildsym_compunit::record_line): Remove
6608 deduplication code.
6609
1aa98955
TV
66102020-04-02 Tom de Vries <tdevries@suse.de>
6611
6612 PR ada/24671
6613 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6614
d3214198
TV
66152020-04-02 Tom de Vries <tdevries@suse.de>
6616
6617 * dwarf2/read.c (dwarf2_gdb_index_functions,
6618 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6619 NULL.
6620 * psymtab.c (psym_lookup_global_symbol_language): New function.
6621 (psym_functions): Init psym_lookup_global_symbol_language with
6622 psym_lookup_global_symbol_language.
6623 * symfile-debug.c (debug_sym_quick_functions): Init
6624 lookup_global_symbol_language with NULL.
6625 * symfile.c (set_initial_language): Remove fixme comment.
6626 * symfile.h (struct quick_symbol_functions): Add
6627 lookup_global_symbol_language.
6628 * symtab.c (find_quick_global_symbol_language): New function.
6629 (find_main_name): Use find_quick_global_symbol_language.
6630
2836752f
SM
66312020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6632
6633 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6634
64dc2d4b
BE
66352020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6636
6637 * buildsym.c (record_line): Fix undefined behavior and preserve
6638 lines at eof.
6639
bbe3dc41
BE
66402020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6641
6642 * buildsym.c (record_line): Fix the resizing condition.
6643
6b4a335b
TT
66442020-04-01 Tom Tromey <tom@tromey.com>
6645
6646 * value.h (value_literal_complex): Add comment.
6647 * valops.c (value_literal_complex): Refer to value.h.
6648
3638a098
TT
66492020-04-01 Tom Tromey <tom@tromey.com>
6650
6651 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6652 (scalar_type): New rule, from typebase.
6653 (typebase): Use scalar_type. Recognize complex types.
6654 (field_name): Handle FLOAT_KEYWORD.
6655 (ident_tokens): Add _Complex and __complex__.
6656
c34e8714
TT
66572020-04-01 Tom Tromey <tom@tromey.com>
6658
6659 PR exp/25299:
6660 * valarith.c (promotion_type, complex_binop): New functions.
6661 (scalar_binop): Handle complex numbers. Use promotion_type.
6662 (value_pos, value_neg, value_complement): Handle complex numbers.
6663
fa649bb7
TT
66642020-04-01 Tom Tromey <tom@tromey.com>
6665
6666 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6667 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6668 (parse_number): Handle complex numbers.
6669
981c08ce
TT
66702020-04-01 Tom Tromey <tom@tromey.com>
6671
6672 * c-valprint.c (c_decorations): Change complex suffix to "i".
6673
4c99290d
TT
66742020-04-01 Tom Tromey <tom@tromey.com>
6675
6676 * valprint.c (generic_value_print_complex): Use accessors.
6677 * value.h (value_real_part, value_imaginary_part): Declare.
6678 * valops.c (value_real_part, value_imaginary_part): New
6679 functions.
6680 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6681
5b930b45
TT
66822020-04-01 Tom Tromey <tom@tromey.com>
6683
6684 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6685 (read_range_type): Update.
6686 * mdebugread.c (basic_type): Update.
6687 * go-lang.c (build_go_types): Use init_complex_type.
6688 * gdbtypes.h (struct main_type) <complex_type>: New member.
6689 (init_complex_type): Update.
6690 (arch_complex_type): Don't declare.
6691 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6692 Make name if none given. Use alloc_type_copy. Look for cached
6693 complex type.
6694 (arch_complex_type): Remove.
6695 (gdbtypes_post_init): Use init_complex_type.
6696 * f-lang.c (build_fortran_types): Use init_complex_type.
6697 * dwarf2/read.c (read_base_type): Update.
6698 * d-lang.c (build_d_types): Use init_complex_type.
6699 * ctfread.c (read_base_type): Update.
6700
53cccef1
TBA
67012020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6702
6703 * infrun.c (stop_all_threads): Update assertion, plus when
6704 stopping threads, take into account that we might be trying
6705 to stop an all-stop target.
6706 (stop_waiting): Call 'stop_all_threads' if there exists a
6707 non-stop target.
6708
a0714d30
TBA
67092020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6710
6711 * target.h (exists_non_stop_target): New function declaration.
6712 * target.c (exists_non_stop_target): New function.
6713
60e22c1e
HD
67142020-04-01 Hannes Domani <ssbssa@yahoo.de>
6715
6716 PR gdb/24789
6717 * eval.c (is_integral_or_integral_reference): New function.
6718 (evaluate_subexp_standard): Allow integer references in
6719 pointer arithmetic.
6720
e139a727
TBA
67212020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6722
6723 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6724 check for no ptid in the stop reply when the target is non-stop.
6725
e0802d59
TT
67262020-04-01 Tom Tromey <tromey@adacore.com>
6727
6728 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6729 "name" parameter to rvalue reference. Initialize m_name_holder.
6730 <lookup_name_info>: New overloads.
6731 <name>: Return gdb::string_view.
6732 <c_str>: New method.
6733 <make_ignore_params>: Update.
6734 <search_name_hash>: Update.
6735 <language_lookup_name>: Return const char *.
6736 <m_name>: Change type.
6737 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6738 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6739 (lookup_name_info::match_any): Update.
6740 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6741 Update.
6742 * minsyms.c (linkage_name_str): Update.
6743 * language.c (default_symbol_name_matcher): Update.
6744 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6745 Update.
6746 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6747 (ada_lookup_name_info::ada_lookup_name_info): Update.
6748 (literal_symbol_name_matcher): Update.
6749
8c072cb6
TT
67502020-04-01 Tom Tromey <tromey@adacore.com>
6751
6752 * psymtab.c (psymtab_search_name): Remove function.
6753 (psym_lookup_symbol): Create search name and lookup name here.
6754 (lookup_partial_symbol): Remove "name" parameter; add
6755 lookup_name.
6756 (psym_expand_symtabs_for_function): Update.
6757
6f29a534
TT
67582020-03-31 Joel Jones <joelkevinjones@gmail.com>
6759
6760 PR tui/25597:
6761 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6762
af62665e
TT
67632020-03-31 Tom Tromey <tromey@adacore.com>
6764
6765 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6766 memcpy.
6767
d1a89da5
NC
67682020-03-30 Nelson Chu <nelson.chu@sifive.com>
6769
6770 * features/riscv/32bit-csr.xml: Regenerated.
6771 * features/riscv/64bit-csr.xml: Regenerated.
6772
d8af9068
TT
67732020-03-30 Tom Tromey <tromey@adacore.com>
6774
6775 * ada-valprint.c (print_variant_part): Update.
6776 * ada-lang.h (ada_which_variant_applies): Update.
6777 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6778 outer_valaddr parameters; replace with "outer" value parameter.
6779 (to_fixed_variant_branch_type): Update.
6780
227c0bf4
PFC
67812020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6782
6783 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6784 <list>. Remove inclusion of observable.h.
6785 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6786 (struct arch_lwp_info): New struct.
6787 (class ppc_linux_dreg_interface): New class.
6788 (struct ppc_linux_process_info): New struct.
6789 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6790 <low_new_clone, low_forget_process, low_prepare_to_resume>
6791 <copy_thread_dreg_state, mark_thread_stale>
6792 <mark_debug_registers_changed, register_hw_breakpoint>
6793 <clear_hw_breakpoint, register_wp, clear_wp>
6794 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6795 <num_memory_accesses, get_trigger_type>
6796 <create_watchpoint_request, hwdebug_point_cmp>
6797 <init_arch_lwp_info, get_arch_lwp_info>
6798 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6799 methods.
6800 <struct ptid_hash>: New inner struct.
6801 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6802 members.
6803 (saved_dabr_value, hwdebug_info, max_slots_number)
6804 (struct hw_break_tuple, struct thread_points, ppc_threads)
6805 (have_ptrace_hwdebug_interface)
6806 (hwdebug_find_thread_points_by_tid)
6807 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6808 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6809 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6810 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6811 use m_dreg_interface.
6812 (hwdebug_point_cmp): Change to...
6813 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6814 reference arguments instead of pointers.
6815 (ppc_linux_nat_target::ranged_break_num_registers): Use
6816 m_dreg_interface.
6817 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6818 m_dreg_interface. Call register_hw_breakpoint.
6819 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6820 m_dreg_interface. Call clear_hw_breakpoint.
6821 (get_trigger_type): Change to...
6822 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6823 comment.
6824 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6825 use m_dreg_interface. Call register_hw_breakpoint.
6826 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6827 use m_dreg_interface. Call clear_hw_breakpoint.
6828 (can_use_watchpoint_cond_accel): Change to...
6829 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6830 method. Update comment, use m_dreg_interface and
6831 m_process_info.
6832 (calculate_dvc): Change to...
6833 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6834 m_dreg_interface.
6835 (num_memory_accesses): Change to...
6836 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6837 (check_condition): Change to...
6838 (ppc_linux_nat_target::check_condition): ...this method.
6839 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6840 comment, use m_dreg_interface.
6841 (create_watchpoint_request): Change to...
6842 (ppc_linux_nat_target::create_watchpoint_request): ...this
6843 method. Use m_dreg_interface.
6844 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6845 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6846 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6847 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6848 (ppc_linux_nat_target::low_forget_process)
6849 (ppc_linux_nat_target::low_new_fork)
6850 (ppc_linux_nat_target::low_new_clone)
6851 (ppc_linux_nat_target::low_delete_thread)
6852 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6853 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6854 only call mark_thread_stale.
6855 (ppc_linux_thread_exit): Remove.
6856 (ppc_linux_nat_target::stopped_data_address): Change to...
6857 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6858 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6859 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6860 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6861 comment. Call low_stopped_data_address.
6862 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6863 m_dreg_interface.
6864 (ppc_linux_nat_target::masked_watch_num_registers): Use
6865 m_dreg_interface.
6866 (ppc_linux_nat_target::copy_thread_dreg_state)
6867 (ppc_linux_nat_target::mark_thread_stale)
6868 (ppc_linux_nat_target::mark_debug_registers_changed)
6869 (ppc_linux_nat_target::register_hw_breakpoint)
6870 (ppc_linux_nat_target::clear_hw_breakpoint)
6871 (ppc_linux_nat_target::register_wp)
6872 (ppc_linux_nat_target::clear_wp)
6873 (ppc_linux_nat_target::init_arch_lwp_info)
6874 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6875 (_initialize_ppc_linux_nat): Remove observer callback.
6876
4db10d8f
PFC
68772020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6878
6879 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6880 (ppc_linux_nat_target::auxv_parse)
6881 (ppc_linux_nat_target::read_description)
6882 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6883 Move up.
6884
1310c1b0
PFC
68852020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6886
6887 * linux-nat.h (low_new_clone): New method.
6888 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6889
69b037c3
SM
68902020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6891
6892 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6893 (dbx_expand_psymtab): ... this.
6894 (start_psymtab): Update.
6895 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6896 (mdebug_expand_psymtab): ... this.
6897 (parse_partial_symbols): Update.
6898 (new_psymtab): Update.
6899 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6900 (xcoff_expand_psymtab): ... this.
6901 (xcoff_start_psymtab): Update.
6902
48993951
SM
69032020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6904
6905 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6906 <expand_dependencies>: ... this.
6907 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6908 (partial_symtab::expand_dependencies): ... this.
6909 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6910 Update.
6911 (dwarf2_psymtab::expand_psymtab): Update.
6912 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6913 * mdebugread.c (psymtab_to_symtab_1): Update.
6914 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6915
3ad83046
SM
69162020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6917
6918 * psympriv.h (discard_psymtab): Remove.
6919 * dbxread.c (dbx_end_psymtab): Update.
6920 * xcoffread.c (xcoff_end_psymtab): Update.
6921
4d1b9ab6
TT
69222020-03-28 Tom Tromey <tom@tromey.com>
6923
6924 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6925 comment.
6926
f1749218
TT
69272020-03-28 Tom Tromey <tom@tromey.com>
6928
6929 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6930
ebea7626
HD
69312020-03-27 Hannes Domani <ssbssa@yahoo.de>
6932
6933 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6934
a879b4d5
JB
69352020-03-26 John Baldwin <jhb@FreeBSD.org>
6936
6937 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6938
0826b30a
TT
69392020-03-26 Tom Tromey <tom@tromey.com>
6940
6941 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6942 (mark_common_block_symbol_computed, read_tag_string_type)
6943 (attr_to_dynamic_prop, read_subrange_type): Update.
6944 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6945 to be methods on struct attribute.
6946 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6947 (read_call_site_scope, partial_die_info::read)
6948 (partial_die_info::read, lookup_die_type, follow_die_ref):
6949 Update.
6950 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6951 from dwarf2_get_ref_die_offset.
6952 (attribute::constant_value): New method, from
6953 dwarf2_get_attr_constant_value.
6954 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6955 Declare method.
6956 <constant_value>: New method.
6957
2b2558bf
TT
69582020-03-26 Tom Tromey <tom@tromey.com>
6959
6960 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6961 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6962 (dwarf_type_encoding_name): Move to stringify.c.
6963 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6964 * dwarf2/stringify.c: New file.
6965 * dwarf2/stringify.h: New file.
6966
eeb64781
TT
69672020-03-26 Tom Tromey <tom@tromey.com>
6968
6969 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6970 Rewrite.
6971
a39fdb41
TT
69722020-03-26 Tom Tromey <tom@tromey.com>
6973
6974 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6975 methods.
6976 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6977 (lookup_ranges_base): Likewise.
6978 (read_cutu_die_from_dwo, read_full_die_1): Update.
6979
436c571c
TT
69802020-03-26 Tom Tromey <tom@tromey.com>
6981
6982 * dwarf2/read.c (read_import_statement, read_file_scope)
6983 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6984 (read_lexical_block_scope, read_call_site_scope)
6985 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6986 (handle_struct_member_die, process_structure_scope)
6987 (update_enumeration_type_from_children)
6988 (process_enumeration_scope, read_array_type, read_common_block)
6989 (read_namespace, read_module, read_subroutine_type): Update.
6990 (sibling_die): Remove.
6991
052c8bb8
TT
69922020-03-26 Tom Tromey <tom@tromey.com>
6993
6994 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6995 (build_type_psymtabs_reader, read_structure_type)
6996 (read_enumeration_type, read_full_die_1): Update.
6997 (dwarf2_attr_no_follow): Move to die.h.
6998 * dwarf2/die.h (struct die_info) <attr>: New method.
6999
2b24b6e4
TT
70002020-03-26 Tom Tromey <tom@tromey.com>
7001
7002 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7003 <base_address>: Now an optional.
7004 (dwarf2_find_base_address, dwarf2_rnglists_process)
7005 (dwarf2_ranges_process, fill_in_loclist_baton)
7006 (dwarf2_symbol_mark_computed): Update.
7007
c2d50fd0
TT
70082020-03-26 Tom Tromey <tom@tromey.com>
7009
7010 * dwarf2/read.c (struct die_info): Move to die.h.
7011 * dwarf2/die.h: New file.
7012
0df7ad3a
TT
70132020-03-26 Tom Tromey <tom@tromey.com>
7014
7015 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7016 * dwarf2/read.c
7017 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7018 Move to line-header.c.
7019 (read_checked_initial_length_and_offset, read_formatted_entries):
7020 Likewise.
7021 (dwarf_decode_line_header): Split into two.
7022 * dwarf2/line-header.c
7023 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7024 Move from read.c.
7025 (read_checked_initial_length_and_offset, read_formatted_entries):
7026 Likewise.
7027 (dwarf_decode_line_header): New function, split from read.c.
7028
86c0bb4c
TT
70292020-03-26 Tom Tromey <tom@tromey.com>
7030
7031 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7032 Declare method.
7033 * dwarf2/read.c (read_attribute_value): Update.
7034 (dwarf2_per_objfile::read_line_string): Rename from
7035 read_indirect_line_string.
7036 (read_formatted_entries): Update.
7037
2ef46c2f
TT
70382020-03-26 Tom Tromey <tom@tromey.com>
7039
7040 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7041 variable.
7042
4f9c1eda
TT
70432020-03-26 Tom Tromey <tom@tromey.com>
7044
7045 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7046 const.
7047 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7048 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7049 parameter const.
7050
5a0e026f
TT
70512020-03-26 Tom Tromey <tom@tromey.com>
7052
7053 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7054 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7055 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7056 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7057
8844c11b
TT
70582020-03-26 Tom Tromey <tom@tromey.com>
7059
7060 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7061 file_names_size, file_full_name, file_file_name>: Use const.
7062 <file_name_at, file_names>: Add const overload.
7063 * dwarf2/line-header.c (line_header::file_file_name)
7064 (line_header::file_full_name): Update.
7065
c90ec28a
TT
70662020-03-26 Tom Tromey <tom@tromey.com>
7067
7068 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7069 (macro_start_file, consume_improper_spaces)
7070 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7071 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7072 (dwarf_decode_macros): Move to macro.c.
7073 * dwarf2/macro.c: New file.
7074 * dwarf2/macro.h: New file.
7075 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7076
4f44ae6c
TT
70772020-03-26 Tom Tromey <tom@tromey.com>
7078
7079 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7080 method.
7081 * dwarf2/section.c: New method. From
7082 read_indirect_string_at_offset_from.
7083 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7084 (read_indirect_string_at_offset_from): Move to section.c.
7085 (read_indirect_string_at_offset): Rewrite.
7086 (read_indirect_line_string_at_offset): Remove.
7087 (read_indirect_string, read_indirect_line_string)
7088 (dwarf_decode_macro_bytes): Update.
7089
a0194fa8
TT
70902020-03-26 Tom Tromey <tom@tromey.com>
7091
7092 * dwarf2/section.h (struct dwarf2_section_info)
7093 <overload_complaint>: Declare.
7094 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7095 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7096 Rename from dwarf2_section_buffer_overflow_complaint.
7097 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7098 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7099
3d27bbdb
TT
71002020-03-26 Tom Tromey <tom@tromey.com>
7101
7102 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7103 Declare.
7104 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7105 Move from read.c.
7106 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7107 to section.c.
7108
9eac9650
TT
71092020-03-26 Tom Tromey <tom@tromey.com>
7110
7111 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7112
bf80d710
TT
71132020-03-26 Tom Tromey <tom@tromey.com>
7114
7115 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7116 "builder".
7117 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7118 parameter.
7119 (dwarf_decode_macros): Update.
7120
0314b390
TT
71212020-03-26 Tom Tromey <tom@tromey.com>
7122
7123 * dwarf2/read.c (read_attribute_value): Update.
7124 (read_indirect_string_from_dwz): Move to dwz.c; change into
7125 method.
7126 (dwarf_decode_macro_bytes): Update.
7127 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7128 * dwarf2/dwz.c: New file.
7129 * Makefile.in (COMMON_SFILES): Add dwz.c.
7130
9fda78b6
TT
71312020-03-26 Tom Tromey <tom@tromey.com>
7132
7133 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7134 * dwarf2/read.c: Add include.
7135 * dwarf2/index-write.c: Add include.
7136 * dwarf2/index-cache.c: Add include.
7137 * dwarf2/dwz.h: New file.
7138
33aa3c10
TT
71392020-03-25 Tom Tromey <tom@tromey.com>
7140
7141 * compile/compile-object-load.c (get_out_value_type): Mention
7142 correct symbol name in error message.
7143
d503b685
HD
71442020-03-25 Hannes Domani <ssbssa@yahoo.de>
7145
7146 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7147
7b1eff95
TV
71482020-03-25 Tom de Vries <tdevries@suse.de>
7149
7150 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7151 * symmisc.c (dump_symtab_1): Print user and includes fields.
7152 (maintenance_info_symtabs): Same.
7153
dd895392
AB
71542020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7155
7156 PR gdb/25534
7157 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7158 (riscv_regcache_cooked_write): New function.
7159 (riscv_push_dummy_call): Use new function.
7160 (riscv_return_value): Likewise.
7161
5ab2fbf1
SM
71622020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7163
7164 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7165 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7166 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7167 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7168 * infrun.c (follow_fork): Likewise.
7169 (follow_fork_inferior): Likewise.
7170 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7171 * linux-nat.h (class linux_nat_target): Likewise.
7172 * remote.c (class remote_target) <follow_fork>: Likewise.
7173 (remote_target::follow_fork): Likewise.
7174 * target-delegates.c: Re-generate.
7175 * target.c (default_follow_fork): Likewise.
7176 (target_follow_fork): Likewise.
7177 * target.h (struct target_ops) <follow_fork>: Likewise.
7178 (target_follow_fork): Likewise.
7179
a64fafb5
TV
71802020-03-24 Tom de Vries <tdevries@suse.de>
7181
7182 * psymtab.c (maintenance_info_psymtabs): Print user field.
7183
fe26d3a3
TT
71842020-03-20 Tom Tromey <tromey@adacore.com>
7185
7186 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7187 const.
7188 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7189 const.
7190
c884cc46
SM
71912020-03-20 Simon Marchi <simon.marchi@efficios.com>
7192
7193 * ptrace.m4: Don't check for ptrace declaration.
7194 * config.in: Re-generate.
7195 * configure: Re-generate.
7196 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7197 not defined.
7198
1ff700c2
KR
71992020-03-20 Kamil Rytarowski <n54@gmx.com>
7200
7201 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7202 `PTRACE_TYPE_RET'.
7203 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7204 * sparc-nat.c (gdb_ptrace): Likewise.
7205 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7206
f7d4f0b1
TT
72072020-03-20 Tom Tromey <tromey@adacore.com>
7208
7209 * c-exp.y (lex_one_token): Fix assert.
7210
f67210ff
TT
72112020-03-20 Tom Tromey <tromey@adacore.com>
7212
7213 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7214 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7215 strncpy call.
7216
1773be9e
TT
72172020-03-20 Tom Tromey <tromey@adacore.com>
7218
7219 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7220
70304be9
TT
72212020-03-20 Tom Tromey <tromey@adacore.com>
7222
7223 * ada-valprint.c (print_variant_part): Remove parameters; switch
7224 to value-based API.
7225 (print_field_values): Likewise.
7226 (ada_val_print_struct_union): Likewise.
7227 (ada_value_print_1): Update.
7228
9faa006d
KR
72292020-03-20 Kamil Rytarowski <n54@gmx.com>
7230
7231 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7232 nbsd_nat_target instead of inf_ptrace_target.
7233 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7234 nbsd_nat_target.
7235
4a90f062
KR
72362020-03-20 Kamil Rytarowski <n54@gmx.com>
7237
7238 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7239 it to the ptrace call.
7240 * (store_registers): Likewise.
7241
72422020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7243
7244 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7245 it to the ptrace call.
7246 * (store_registers): Likewise.
7247
2d07da27
LM
72482020-03-19 Luis Machado <luis.machado@linaro.org>
7249
7250 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7251 valid, fetch vg value from ptrace.
7252
f09db380
KR
72532020-03-19 Kamil Rytarowski <n54@gmx.com>
7254 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7255 * inf-ptrace.c: Likewise.
7256 * (gdb_ptrace): Add.
7257 * (inf_ptrace_target::resume): Update.
7258 * (inf_ptrace_target::xfer_partial): Likewise.
7259 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7260 * (inf_ptrace_peek_poke): Update.
7261
fcc7376e
KR
72622020-03-19 Kamil Rytarowski <n54@gmx.com>
7263
7264 * x86-bsd-nat.c (gdb_ptrace): New.
7265 * (x86bsd_dr_set): Add new argument `ptid'.
7266 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7267 x86bsd_dr_set_addr): Update.
7268
cada5fc9
AB
72692020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7270
7271 * remote.c (remote_target::process_stop_reply): Handle events for
7272 all threads differently.
7273
19a2740f
AB
72742020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7275
7276 * completer.c (completion_tracker::remove_completion): Define new
7277 function.
7278 * completer.h (completion_tracker::remove_completion): Declare new
7279 function.
7280 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7281 when adding a C++ function symbol.
7282
724fd9ba
AB
72832020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7284
7285 * completer.c (completion_tracker::completion_hash_entry): Define
7286 new class.
7287 (advance_to_filename_complete_word_point): Call
7288 recompute_lowest_common_denominator.
7289 (completion_tracker::completion_tracker): Call discard_completions
7290 to setup the hash table.
7291 (completion_tracker::discard_completions): Allow for being called
7292 from the constructor, pass new equal function, and element deleter
7293 when constructing the hash table. Initialise new class member
7294 variables.
7295 (completion_tracker::maybe_add_completion): Remove use of
7296 m_entries_vec, and store more information into m_entries_hash.
7297 (completion_tracker::recompute_lcd_visitor): New function, most
7298 content taken from...
7299 (completion_tracker::recompute_lowest_common_denominator):
7300 ...here, this now just visits each item in the hash calling the
7301 above visitor.
7302 (completion_tracker::build_completion_result): Remove use of
7303 m_entries_vec, call recompute_lowest_common_denominator.
7304 * completer.h (completion_tracker::have_completions): Remove use
7305 of m_entries_vec.
7306 (completion_tracker::completion_hash_entry): Declare new class.
7307 (completion_tracker::recompute_lowest_common_denominator): Change
7308 function signature.
7309 (completion_tracker::recompute_lcd_visitor): Declare new function.
7310 (completion_tracker::m_entries_vec): Delete.
7311 (completion_tracker::m_entries_hash): Initialize to NULL.
7312 (completion_tracker::m_lowest_common_denominator_valid): New
7313 member variable.
7314 (completion_tracker::m_lowest_common_denominator_max_length): New
7315 member variable.
7316
5a82b8a1
KR
73172020-03-17 Kamil Rytarowski <n54@gmx.com>
7318
7319 * regformats/regdef.h: Put reg in gdb namespace.
7320
fb516a69
KR
73212020-03-17 Kamil Rytarowski <n54@gmx.com>
7322
7323 * i386-bsd-nat.c (gdb_ptrace): New.
7324 * (i386bsd_fetch_inferior_registers,
7325 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7326 * (i386bsd_fetch_inferior_registers,
7327 i386bsd_store_inferior_registers) Use gdb_ptrace.
7328
1c0aa1fb
KR
73292020-03-17 Kamil Rytarowski <n54@gmx.com>
7330
7331 * amd64-bsd-nat.c (gdb_ptrace): New.
7332 * (amd64bsd_fetch_inferior_registers,
7333 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7334 * (amd64bsd_fetch_inferior_registers,
7335 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7336
5ccd2fb7
KR
73372020-03-17 Kamil Rytarowski <n54@gmx.com>
7338
7339 * user-regs.c (user_reg::read): Rename to...
7340 (user_reg::xread): ...this.
7341 * (append_user_reg): Rename argument `read' to `xread'.
7342 * (user_reg_add_builtin): Likewise.
7343 * (user_reg_add): Likewise.
7344 * (value_of_user_reg): Likewise.
7345
2108a63a
KR
73462020-03-17 Kamil Rytarowski <n54@gmx.com>
7347
7348 * sparc-nat.c (gdb_ptrace): New.
7349 * sparc-nat.c (sparc_fetch_inferior_registers)
7350 (sparc_store_inferior_registers) Remove obsolete comment.
7351 * sparc-nat.c (sparc_fetch_inferior_registers)
7352 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7353 * sparc-nat.c (sparc_fetch_inferior_registers)
7354 (sparc_store_inferior_registers) Use gdb_ptrace.
7355
a225c9a8
KR
73562020-03-17 Kamil Rytarowski <n54@gmx.com>
7357
7358 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7359 it to the ptrace call.
7360 * sh-nbsd-nat.c (store_registers): Likewise.
7361
98097623
KR
73622020-03-17 Kamil Rytarowski <n54@gmx.com>
7363
7364 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7365 nbsd_nat_target instead of inf_ptrace_target.
7366 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7367 nbsd_nat_target.
7368
9e38d619
KR
73692020-03-17 Kamil Rytarowski <n54@gmx.com>
7370
7371 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7372
a2ecbe9f
KR
73732020-03-17 Kamil Rytarowski <n54@gmx.com>
7374
7375 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7376 <sys/sysctl.h>.
7377 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7378
58990295
TV
73792020-03-17 Tom de Vries <tdevries@suse.de>
7380
7381 PR gdb/23710
7382 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7383 fields.
7384 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7385 fields.
7386 (process_imported_unit_die): Skip import of c++ CUs.
7387
771dd3a8
TT
73882020-03-16 Tom Tromey <tom@tromey.com>
7389
7390 * p-valprint.c (pascal_object_print_value): Initialize
7391 base_value.
7392
817a7585
AK
73932020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7394 Shahab Vahedi <shahab@synopsys.com>
7395
7396 * Makefile.in: Add arch/arc.o
7397 * configure.tgt: Likewise.
7398 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7399 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7400 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7401 * arc-tdep.h (arc_read_description): Add proto type.
7402 * arch/arc.c: New file.
7403 * arch/arc.h: Likewise.
7404 * features/Makefile: Replace old target descriptions with new.
7405 * features/arc-arcompact.c: Remove.
7406 * features/arc-arcompact.xml: Likewise.
7407 * features/arc-v2.c: Likewise
7408 * features/arc-v2.xml: Likewise
7409 * features/arc/aux-arcompact.xml: New file.
7410 * features/arc/aux-v2.xml: Likewise.
7411 * features/arc/core-arcompact.xml: Likewise.
7412 * features/arc/core-v2.xml: Likewise.
7413 * features/arc/aux-arcompact.c: Generate.
7414 * features/arc/aux-v2.c: Likewise.
7415 * features/arc/core-arcompact.c: Likewise.
7416 * features/arc/core-v2.c: Likewise.
7417 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7418
67430cd0
TT
74192020-03-16 Tom Tromey <tromey@adacore.com>
7420
7421 PR gdb/25663:
7422 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7423 putting value into bcache.
7424
30efb6c7
SM
74252020-03-16 Simon Marchi <simon.marchi@efficios.com>
7426
7427 PR gdb/21500
7428 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7429 to...
7430 (amd64_windows_init_abi_common): ... this. Don't set size of
7431 long type.
7432 (amd64_windows_init_abi): New function.
7433 (amd64_cygwin_init_abi): New function.
7434 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7435 the Cygwin OS ABI.
7436 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7437 comment.
7438
8db52437
SM
74392020-03-16 Simon Marchi <simon.marchi@efficios.com>
7440
7441 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7442 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7443 (pe_import_directory_entry): New struct type.
7444 (is_linked_with_cygwin_dll): New function.
7445 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7446 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7447 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7448
5982a56a
SM
74492020-03-16 Simon Marchi <simon.marchi@efficios.com>
7450
7451 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7452 i386_cygwin_core_osabi_sniffer.
7453
7a1998df
SM
74542020-03-16 Simon Marchi <simon.marchi@efficios.com>
7455
7456 * i386-cygwin-tdep.c: Rename to...
7457 * i386-windows-tdep.c: ... this.
7458 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7459 i386-windows-tdep.c.
7460 * configure.tgt: Likewise.
7461
053205cc
SM
74622020-03-16 Simon Marchi <simon.marchi@efficios.com>
7463
7464 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7465 * osabi.c (gdb_osabi_names): Add "Windows".
7466 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7467 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7468 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7469 i386_cygwin_osabi_sniffer.
7470 (_initialize_i386_cygwin_tdep): Register OS ABI
7471 GDB_OSABI_WINDOWS for i386.
7472 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7473 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7474 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7475 for x86-64.
7476 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7477 when the target matches '*-*-mingw*'.
7478
fe4b2ee6
SM
74792020-03-16 Simon Marchi <simon.marchi@efficios.com>
7480
7481 * defs.h (enum gdb_osabi): Move to...
7482 * osabi.h (enum gdb_osabi): ... here.
7483 * gdbarch.sh: Include osabi.h in gdbarch.h.
7484 * gdbarch.h: Re-generate.
7485
cb9b645d
SM
74862020-03-16 Simon Marchi <simon.marchi@efficios.com>
7487
7488 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7489 function.
7490 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7491
3293bbaf
TT
74922020-03-14 Tom Tromey <tom@tromey.com>
7493
7494 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7495 for C++.
7496 (c_type_print_modifier): Likewise. Add "language" parameter.
7497 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7498 (c_type_print_base_1): Update.
7499 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7500 constants.
7501 * type-stack.c (type_stack::insert): Handle tp_atomic and
7502 tp_restrict.
7503 (type_stack::follow_type_instance_flags): Likewise.
7504 (type_stack::follow_types): Likewise. Merge type-following code.
7505 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7506 (space_identifier, cv_with_space_id)
7507 (const_or_volatile_or_space_identifier_noopt)
7508 (const_or_volatile_or_space_identifier): Remove.
7509 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7510 rules.
7511 (ptr_operator, typebase): Update.
7512 (enum token_flag) <FLAG_C>: New constant.
7513 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7514 "_Atomic".
7515 (lex_one_token): Handle FLAG_C.
7516
154151a6
KR
75172020-03-14 Kamil Rytarowski <n54@gmx.com>
7518
7519 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7520 it to the ptrace call.
7521 * m68k-bsd-nat.c (store_registers): Likewise.
7522
bc107784
KR
75232020-03-14 Kamil Rytarowski <n54@gmx.com>
7524
7525 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7526 gdb_byte *.
7527 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7528 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7529 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7530
01a80117
KR
75312020-03-14 Kamil Rytarowski <n54@gmx.com>
7532
7533 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7534 nbsd_nat_target instead of inf_ptrace_target.
7535 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7536 nbsd_nat_target.
7537
f90280ca
KR
75382020-03-14 Kamil Rytarowski <n54@gmx.com>
7539
7540 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7541 register_t.
7542
6def66f1
KR
75432020-03-14 Kamil Rytarowski <n54@gmx.com>
7544
7545 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7546 it to the ptrace call.
7547 * alpha-bsd-nat.c (store_registers): Likewise.
7548
66eaca97
KR
75492020-03-14 Kamil Rytarowski <n54@gmx.com>
7550
7551 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7552 includes.
7553 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7554 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7555 fill_fpregset): Likewise.
7556
4fed520b
KR
75572020-03-14 Kamil Rytarowski <n54@gmx.com>
7558
7559 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7560 nbsd_nat_target instead of inf_ptrace_target.
7561 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7562 nbsd_nat_target.
7563
2190cf06
KR
75642020-03-14 Kamil Rytarowski <n54@gmx.com>
7565
7566 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7567 register_t.
7568
75c56d3d
KR
75692020-03-14 Kamil Rytarowski <n54@gmx.com>
7570
7571 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7572 it to the ptrace call.
7573 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7574 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7575 * arm-nbsd-nat.c (store_register): Likewise.
7576 * arm-nbsd-nat.c (store_regs): Likewise.
7577 * arm-nbsd-nat.c (store_fp_register): Likewise.
7578 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7579
6018d381
KR
75802020-03-14 Kamil Rytarowski <n54@gmx.com>
7581
7582 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7583 nbsd_nat_target instead of inf_ptrace_target.
7584 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7585 nbsd_nat_target.
7586
013f99f0
KR
75872020-03-14 Kamil Rytarowski <n54@gmx.com>
7588
7589 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7590 it to the ptrace call.
7591 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7592
12753073
KR
75932020-03-14 Kamil Rytarowski <n54@gmx.com>
7594
6227b330
KR
7595 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7596 it to the ptrace call.
7597 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7598
75992020-03-14 Kamil Rytarowski <n54@gmx.com>
7600
7601 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7602 gdb_byte *.
12753073
KR
7603 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7604
d5be5fa4
KR
76052020-03-14 Kamil Rytarowski <n54@gmx.com>
7606
7607 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7608 instead of inf_ptrace_target.
7609 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7610 nbsd_nat_target.
7611
8110f842
KR
76122020-03-14 Kamil Rytarowski <n54@gmx.com>
7613
7614 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7615 register_t.
7616
52feded7
KR
76172020-03-14 Kamil Rytarowski <n54@gmx.com>
7618
7619 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7620 register_t.
7621
25567eee
KR
76222020-03-14 Kamil Rytarowski <n54@gmx.com>
7623
7624 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7625 register_t.
7626
426a9c18
TT
76272020-03-13 Tom Tromey <tom@tromey.com>
7628
7629 * value.h (val_print): Don't declare.
7630 * valprint.h (val_print_array_elements)
7631 (val_print_scalar_formatted, generic_val_print): Don't declare.
7632 * valprint.c (generic_val_print_array): Take a struct value.
7633 (generic_val_print_ptr, generic_val_print_memberptr)
7634 (generic_val_print_bool, generic_val_print_int)
7635 (generic_val_print_char, generic_val_print_complex)
7636 (generic_val_print): Remove.
7637 (generic_value_print): Update.
7638 (do_val_print): Remove unused parameters. Don't call
7639 la_val_print.
7640 (val_print): Remove.
7641 (common_val_print): Update. Don't call value_check_printable.
7642 (val_print_scalar_formatted, val_print_array_elements): Remove.
7643 * rust-lang.c (rust_val_print): Remove.
7644 (rust_language_defn): Update.
7645 * p-valprint.c (pascal_val_print): Remove.
7646 (pascal_value_print_inner): Update.
7647 (pascal_object_print_val_fields, pascal_object_print_val):
7648 Remove.
7649 (pascal_object_print_static_field): Update.
7650 * p-lang.h (pascal_val_print): Don't declare.
7651 * p-lang.c (pascal_language_defn): Update.
7652 * opencl-lang.c (opencl_language_defn): Update.
7653 * objc-lang.c (objc_language_defn): Update.
7654 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7655 * m2-lang.h (m2_val_print): Don't declare.
7656 * m2-lang.c (m2_language_defn): Update.
7657 * language.h (struct language_defn) <la_val_print>: Remove.
7658 * language.c (unk_lang_value_print_inner): Rename. Change
7659 argument types.
7660 (unknown_language_defn, auto_language_defn): Update.
7661 * go-valprint.c (go_val_print): Remove.
7662 * go-lang.h (go_val_print): Don't declare.
7663 * go-lang.c (go_language_defn): Update.
7664 * f-valprint.c (f_val_print): Remove.
7665 * f-lang.h (f_value_print): Don't declare.
7666 * f-lang.c (f_language_defn): Update.
7667 * d-valprint.c (d_val_print): Remove.
7668 * d-lang.h (d_value_print): Don't declare.
7669 * d-lang.c (d_language_defn): Update.
7670 * cp-valprint.c (cp_print_value_fields)
7671 (cp_print_value_fields_rtti, cp_print_value): Remove.
7672 (cp_print_static_field): Update.
7673 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7674 (c_val_print_struct, c_val_print_union, c_val_print_int)
7675 (c_val_print_memberptr, c_val_print): Remove.
7676 * c-lang.h (c_val_print_array, cp_print_value_fields)
7677 (cp_print_value_fields_rtti): Don't declare.
7678 * c-lang.c (c_language_defn, cplus_language_defn)
7679 (asm_language_defn, minimal_language_defn): Update.
7680 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7681 (ada_val_print_enum): Take a struct value.
7682 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7683 (ada_val_print): Remove.
7684 (ada_value_print_1): Update.
7685 (printable_val_type): Remove.
7686 * ada-lang.h (ada_val_print): Don't declare.
7687 * ada-lang.c (ada_language_defn): Update.
7688
42331a1e
TT
76892020-03-13 Tom Tromey <tom@tromey.com>
7690
7691 * valprint.c (do_val_print): Update.
7692 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7693 a struct value.
7694 (value_to_value_object_no_release): Declare.
7695 * python/py-value.c (value_to_value_object_no_release): New
7696 function.
7697 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7698 struct value.
7699 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7700 function.
7701 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7702 a struct value.
7703 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7704 Declare.
7705 (gdbscm_apply_val_pretty_printer): Take a struct value.
7706 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7707 value.
7708 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7709 value.
7710 * extension-priv.h (struct extension_language_ops)
7711 <apply_val_pretty_printer>: Take a struct value.
7712 * cp-valprint.c (cp_print_value): Create a struct value.
7713 (cp_print_value): Update.
7714
3a916a97
TT
77152020-03-13 Tom Tromey <tom@tromey.com>
7716
7717 * ada-valprint.c (print_field_values): Call common_val_print.
7718
b59eac37
TT
77192020-03-13 Tom Tromey <tom@tromey.com>
7720
7721 * ada-valprint.c (val_print_packed_array_elements): Remove
7722 bitoffset and val parameters. Call common_val_print.
7723 (ada_val_print_string): Remove offset, address, and original_value
7724 parameters.
7725 (ada_val_print_array): Update.
7726 (ada_value_print_array): New function.
7727 (ada_value_print_1): Call it.
7728
03371129
TT
77292020-03-13 Tom Tromey <tom@tromey.com>
7730
7731 * ada-valprint.c (ada_value_print): Use common_val_print.
7732
2e088f8b
TT
77332020-03-13 Tom Tromey <tom@tromey.com>
7734
7735 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7736
39ef85a8
TT
77372020-03-13 Tom Tromey <tom@tromey.com>
7738
7739 * ada-valprint.c (ada_value_print_num): New function.
7740 (ada_value_print_1): Use it.
7741
b9fa6e07
TT
77422020-03-13 Tom Tromey <tom@tromey.com>
7743
7744 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7745
416595d6
TT
77462020-03-13 Tom Tromey <tom@tromey.com>
7747
7748 * ada-valprint.c (ada_value_print_ptr): New function.
7749 (ada_value_print_1): Use it.
7750
5b5e15ec
TT
77512020-03-13 Tom Tromey <tom@tromey.com>
7752
7753 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7754 call common_val_print.
7755 (ada_val_print_1): Update.
7756 (ada_value_print_1): New function.
7757 (ada_value_print_inner): Rewrite.
7758
fbf54e75
TT
77592020-03-13 Tom Tromey <tom@tromey.com>
7760
7761 * cp-valprint.c (cp_print_value_fields): Update.
7762 (cp_print_value): New function.
7763
64b653ca
TT
77642020-03-13 Tom Tromey <tom@tromey.com>
7765
7766 * m2-valprint.c (m2_value_print_inner): Use
7767 cp_print_value_fields.
7768 * cp-valprint.c (cp_print_value_fields): New function.
7769 * c-valprint.c (c_value_print_struct): New function.
7770 (c_value_print_inner): Use c_value_print_struct.
7771 * c-lang.h (cp_print_value_fields): Declare.
7772
6999f067
TT
77732020-03-13 Tom Tromey <tom@tromey.com>
7774
7775 * c-valprint.c (c_value_print_array): New function.
7776 (c_value_print_inner): Use it.
7777
ce80b8bd
TT
77782020-03-13 Tom Tromey <tom@tromey.com>
7779
7780 * c-valprint.c (c_value_print_memberptr): New function.
7781 (c_value_print_inner): Use it.
7782
2faac269
TT
77832020-03-13 Tom Tromey <tom@tromey.com>
7784
7785 * c-valprint.c (c_value_print_int): New function.
7786 (c_value_print_inner): Use it.
7787
da3e2c29
TT
77882020-03-13 Tom Tromey <tom@tromey.com>
7789
7790 * c-valprint.c (c_value_print_ptr): New function.
7791 (c_value_print_inner): Use it.
7792
50836231
TT
77932020-03-13 Tom Tromey <tom@tromey.com>
7794
7795 * c-valprint.c (c_value_print_inner): Rewrite.
7796
4f412b6e
TT
77972020-03-13 Tom Tromey <tom@tromey.com>
7798
7799 * valprint.c (generic_value_print_complex): New function.
7800 (generic_value_print): Use it.
7801
f5354008
TT
78022020-03-13 Tom Tromey <tom@tromey.com>
7803
7804 * valprint.c (generic_val_print_float): Don't call
7805 val_print_scalar_formatted.
7806 (generic_val_print, generic_value_print): Update.
7807
3eec3b05
TT
78082020-03-13 Tom Tromey <tom@tromey.com>
7809
7810 * valprint.c (generic_value_print_char): New function
7811 (generic_value_print): Use it.
7812
fdddfccb
TT
78132020-03-13 Tom Tromey <tom@tromey.com>
7814
7815 * valprint.c (generic_value_print_int): New function.
7816 (generic_value_print): Use it.
7817
6dde7521
TT
78182020-03-13 Tom Tromey <tom@tromey.com>
7819
7820 * valprint.c (generic_value_print_bool): New function.
7821 (generic_value_print): Use it.
7822
4112d2e6
TT
78232020-03-13 Tom Tromey <tom@tromey.com>
7824
7825 * valprint.c (generic_val_print_func): Simplify.
7826 (generic_val_print, generic_value_print): Update.
7827
65786af6
TT
78282020-03-13 Tom Tromey <tom@tromey.com>
7829
7830 * valprint.c (generic_val_print_flags): Remove.
7831 (generic_val_print, generic_value_print): Update.
7832 (val_print_type_code_flags): Add original_value parameter.
7833
40f3ce18
TT
78342020-03-13 Tom Tromey <tom@tromey.com>
7835
7836 * valprint.c (generic_val_print): Update.
7837 (generic_value_print): Update.
7838 * valprint.c (generic_val_print_enum): Don't call
7839 val_print_scalar_formatted.
7840
2a5b130b
TT
78412020-03-13 Tom Tromey <tom@tromey.com>
7842
7843 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7844 * valprint.c (generic_value_print_ptr): New function.
7845
abc66ce9
TT
78462020-03-13 Tom Tromey <tom@tromey.com>
7847
7848 * valprint.c (generic_value_print): Rewrite.
7849
07a32858
TT
78502020-03-13 Tom Tromey <tom@tromey.com>
7851
7852 * p-valprint.c (pascal_object_print_value_fields)
7853 (pascal_object_print_value): New functions.
7854
64d64d3a
TT
78552020-03-13 Tom Tromey <tom@tromey.com>
7856
7857 * p-valprint.c (pascal_value_print_inner): Rewrite.
7858
6a95a1f5
TT
78592020-03-13 Tom Tromey <tom@tromey.com>
7860
7861 * f-valprint.c (f_value_print_innner): Rewrite.
7862
59fcdac6
TT
78632020-03-13 Tom Tromey <tom@tromey.com>
7864
7865 * m2-valprint.c (m2_print_unbounded_array): New overload.
7866 (m2_print_unbounded_array): Update.
7867 (m2_print_array_contents): Take a struct value.
7868 (m2_value_print_inner): Rewrite.
7869
d133c3e1
TT
78702020-03-13 Tom Tromey <tom@tromey.com>
7871
7872 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7873 (d_value_print_inner): New function.
7874 * d-lang.h (d_value_print_inner): Declare.
7875 * d-lang.c (d_language_defn): Use d_value_print_inner.
7876
23b0f06b
TT
78772020-03-13 Tom Tromey <tom@tromey.com>
7878
7879 * go-valprint.c (go_value_print_inner): New function.
7880 * go-lang.h (go_value_print_inner): Declare.
7881 * go-lang.c (go_language_defn): Use go_value_print_inner.
7882
5f56f7cb
TT
78832020-03-13 Tom Tromey <tom@tromey.com>
7884
7885 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7886 API.
7887 (rust_val_print): Rewrite.
7888 (rust_value_print_inner): New function, from rust_val_print.
7889 (rust_language_defn): Use rust_value_print_inner.
7890
26792ee0
TT
78912020-03-13 Tom Tromey <tom@tromey.com>
7892
7893 * ada-valprint.c (ada_value_print_inner): New function.
7894 * ada-lang.h (ada_value_print_inner): Declare.
7895 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7896
24051bbe
TT
78972020-03-13 Tom Tromey <tom@tromey.com>
7898
7899 * f-valprint.c (f_value_print_innner): New function.
7900 * f-lang.h (f_value_print_innner): Declare.
7901 * f-lang.c (f_language_defn): Use f_value_print_innner.
7902
c0941be6
TT
79032020-03-13 Tom Tromey <tom@tromey.com>
7904
7905 * p-valprint.c (pascal_value_print_inner): New function.
7906 * p-lang.h (pascal_value_print_inner): Declare.
7907 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7908
62c4663d
TT
79092020-03-13 Tom Tromey <tom@tromey.com>
7910
7911 * m2-valprint.c (m2_value_print_inner): New function.
7912 * m2-lang.h (m2_value_print_inner): Declare.
7913 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7914
62182190
TT
79152020-03-13 Tom Tromey <tom@tromey.com>
7916
7917 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7918 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7919 * c-valprint.c (c_value_print_inner): New function.
7920 * c-lang.h (c_value_print_inner): Declare.
7921 * c-lang.c (c_language_defn, cplus_language_defn)
7922 (asm_language_defn, minimal_language_defn): Use
7923 c_value_print_inner.
7924
1e592a8a
TT
79252020-03-13 Tom Tromey <tom@tromey.com>
7926
7927 * p-valprint.c (pascal_object_print_value_fields): Now static.
7928 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7929
7fe471e9
TT
79302020-03-13 Tom Tromey <tom@tromey.com>
7931
7932 * c-valprint.c (c_val_print_array): Simplify.
7933
d121c6ce
TT
79342020-03-13 Tom Tromey <tom@tromey.com>
7935
7936 * valprint.c (value_print_array_elements): New function.
7937 * valprint.h (value_print_array_elements): Declare.
7938
4dba70ee
TT
79392020-03-13 Tom Tromey <tom@tromey.com>
7940
7941 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7942 * mips-tdep.c (mips_print_register): Use
7943 value_print_scalar_formatted.
7944
4f9ae810
TT
79452020-03-13 Tom Tromey <tom@tromey.com>
7946
7947 * valprint.h (value_print_scalar_formatted): Declare.
7948 * valprint.c (value_print_scalar_formatted): New function.
7949
156bfec9
TT
79502020-03-13 Tom Tromey <tom@tromey.com>
7951
7952 * valprint.h (generic_value_print): Declare.
7953 * valprint.c (generic_value_print): New function.
7954
2b4e573d
TT
79552020-03-13 Tom Tromey <tom@tromey.com>
7956
7957 * valprint.c (do_val_print): Call la_value_print_inner, if
7958 available.
7959 * rust-lang.c (rust_language_defn): Update.
7960 * p-lang.c (pascal_language_defn): Update.
7961 * opencl-lang.c (opencl_language_defn): Update.
7962 * objc-lang.c (objc_language_defn): Update.
7963 * m2-lang.c (m2_language_defn): Update.
7964 * language.h (struct language_defn) <la_value_print_inner>: New
7965 member.
7966 * language.c (unknown_language_defn, auto_language_defn): Update.
7967 * go-lang.c (go_language_defn): Update.
7968 * f-lang.c (f_language_defn): Update.
7969 * d-lang.c (d_language_defn): Update.
7970 * c-lang.c (c_language_defn, cplus_language_defn)
7971 (asm_language_defn, minimal_language_defn): Update.
7972 * ada-lang.c (ada_language_defn): Update.
7973
a1f6a07c
TT
79742020-03-13 Tom Tromey <tom@tromey.com>
7975
7976 * c-valprint.c (c_value_print): Use common_val_print.
7977
410cf315
TT
79782020-03-13 Tom Tromey <tom@tromey.com>
7979
7980 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7981
72a45c93
TT
79822020-03-13 Tom Tromey <tom@tromey.com>
7983
7984 * f-valprint.c (f77_print_array_1, f_val_print): Use
7985 common_val_print.
7986
040f66bd
TT
79872020-03-13 Tom Tromey <tom@tromey.com>
7988
7989 * riscv-tdep.c (riscv_print_one_register_info): Use
7990 common_val_print.
7991
a6e05a6c
TT
79922020-03-13 Tom Tromey <tom@tromey.com>
7993
7994 * mi/mi-main.c (output_register): Use common_val_print.
7995
3444c526
TT
79962020-03-13 Tom Tromey <tom@tromey.com>
7997
7998 * infcmd.c (default_print_one_register_info): Use
7999 common_val_print.
8000
c2a44efe
TT
80012020-03-13 Tom Tromey <tom@tromey.com>
8002
8003 * valprint.h (common_val_print_checked): Declare.
8004 * valprint.c (common_val_print_checked): New function.
8005 * stack.c (print_frame_arg): Use common_val_print_checked.
8006
b0c26e99
TT
80072020-03-13 Tom Tromey <tom@tromey.com>
8008
8009 * valprint.c (do_val_print): New function, from val_print.
8010 (val_print): Use do_val_print.
8011 (common_val_print): Use do_val_print.
8012
ce3acbe9
TT
80132020-03-13 Tom Tromey <tom@tromey.com>
8014
8015 * valprint.c (value_print): Use scoped_value_mark.
8016
96c7f873
TV
80172020-03-13 Tom de Vries <tdevries@suse.de>
8018
8019 PR symtab/25646
8020 * psymtab.c (partial_symtab::partial_symtab): Don't set
8021 globals_offset and statics_offset. Push element onto
8022 current_global_psymbols and current_static_psymbols stacks.
8023 (concat): New function.
8024 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8025 element from current_global_psymbols and current_static_psymbols
8026 stacks. Concat popped elements to global_psymbols and
8027 static_symbols.
8028 (add_psymbol_to_list): Use current_global_psymbols and
8029 current_static_psymbols stacks.
8030 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8031 current_static_psymbols fields.
8032
6ba0a321
CB
80332020-03-12 Christian Biesinger <cbiesinger@google.com>
8034
8035 * corelow.c (sniff_core_bfd): Remove.
8036 (class core_target) <m_core_vec>: Remove.
8037 (core_target::core_target): Update.
8038 (core_file_fns): Remove.
8039 (deprecated_add_core_fns): Remove.
8040 (default_core_sniffer): Remove.
8041 (sniff_core_bfd): Remove.
8042 (default_check_format): Remove.
8043 (gdb_check_format): Remove.
8044 (core_target_open): Update.
8045 (core_target::get_core_register_section): Update.
8046 (get_core_registers_cb): Update.
8047 (core_target::fetch_registers): Update.
8048 * gdbcore.h (struct core_fns): Remove.
8049 (deprecated_add_core_fns): Remove.
8050 (default_core_sniffer): Remove.
8051 (default_check_format): Remove.
8052
227031b2
TT
80532020-03-12 Tom Tromey <tom@tromey.com>
8054
8055 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8056 CORE_ADDR.
8057 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8058
53807e9f
TT
80592020-03-12 Tom Tromey <tom@tromey.com>
8060
8061 * remote.c (remote_target::download_tracepoint)
8062 (remote_target::enable_tracepoint)
8063 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8064 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8065 sprintf_vma.
8066
64f25102
TT
80672020-03-12 Tom Tromey <tom@tromey.com>
8068
8069 * symfile-mem.c: Update CORE_ADDR size assert.
8070
272cd5a3
SM
80712020-03-12 Simon Marchi <simon.marchi@efficios.com>
8072
8073 * selftest.m4: Move to gdbsupport/.
8074 * acinclude.m4: Update path to selftest.m4.
8075
74cd3f9d
SM
80762020-03-12 Simon Marchi <simon.marchi@efficios.com>
8077
8078 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8079 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8080 gdbarch-selfselftests.c and selftest-arch.c.
8081 (SUBDIR_UNITTESTS_OBS): Rename to...
8082 (SELFTESTS_OBS): ... this.
8083 (COMMON_SFILES): Remove disasm-selftests.c and
8084 gdbarch-selftests.c.
8085 * configure.ac: Don't add selftest-arch.{c,o} to
8086 CONFIG_{SRCS,OBS}.
8087 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8088 preprocessor conditions.
8089
db6878ac
SM
80902020-03-12 Simon Marchi <simon.marchi@efficios.com>
8091
8092 * configure.ac: Don't source bfd/development.sh.
8093 * selftest.m4: Modify comment.
8094 * configure: Re-generate.
8095
4d696a5c
SM
80962020-03-12 Simon Marchi <simon.marchi@efficios.com>
8097
8098 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8099 not "true" or "false".
8100 * configure: Re-generate.
8101
8dd8e1c7
CB
81022020-03-12 Christian Biesinger <cbiesinger@google.com>
8103
8104 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8105 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8106 renamed to arm_nbsd_supply_gregset.
8107 (fetch_register): Update to call arm_nbsd_supply_gregset.
8108 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8109 (arm_netbsd_nat_target::fetch_registers): Update.
8110 (fetch_elfcore_registers): Removed.
8111 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8112 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8113 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8114 not require NetBSD system headers.
8115 (arm_nbsd_regset): New struct.
8116 (arm_nbsd_iterate_over_regset_sections): New function.
8117 (arm_netbsd_init_abi_common): Updated to call
8118 set_gdbarch_iterate_over_regset_sections.
8119 * arm-nbsd-tdep.h: New file.
8120
dd69bf7a
KB
81212020-03-11 Kevin Buettner <kevinb@redhat.com>
8122
8123 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8124 recursion.
8125
a0761e34
SM
81262020-03-11 Simon Marchi <simon.marchi@efficios.com>
8127
8128 * configure: Re-generate.
8129
e7a82140
TT
81302020-03-11 Tom Tromey <tromey@adacore.com>
8131
8132 * ada-typeprint.c (print_choices): Fix comment.
8133
dcc050c8
AB
81342020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8135
8136 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8137 previous item in the list, when the list has no items.
8138
1c33af77
TV
81392020-03-11 Tom de Vries <tdevries@suse.de>
8140
8141 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8142 PROP_LOCLIST handling code.
8143
8c95582d
AB
81442020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8145
8146 * buildsym-legacy.c (record_line): Pass extra parameter to
8147 record_line.
8148 * buildsym.c (buildsym_compunit::record_line): Take an extra
8149 parameter, reduce duplication in the line table, and record the
8150 is_stmt flag in the line table.
8151 * buildsym.h (buildsym_compunit::record_line): Add extra
8152 parameter.
8153 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8154 non-statement lines.
8155 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8156 this to the symtab builder.
8157 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8158 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8159 through to dwarf_record_line_1.
8160 * infrun.c (process_event_stop_test): When stepping, don't stop at
8161 a non-statement instruction, and only refresh the step info when
8162 we land in the middle of a line's range. Also add an extra
8163 comment.
8164 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8165 field.
8166 * record-btrace.c (btrace_find_line_range): Only record lines
8167 marked as is-statement.
8168 * stack.c (frame_show_address): Show the frame address if we are
8169 in a non-statement sal.
8170 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8171 (maintenance_print_one_line_table): Print a header for the is_stmt
8172 column, and include is_stmt information in the output.
8173 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8174 preference to non-statements.
8175 (find_pcs_for_symtab_line): Prefer is-statement entries.
8176 (find_line_common): Likewise.
8177 * symtab.h (struct linetable_entry): Add is_stmt field.
8178 (struct symtab_and_line): Likewise.
8179 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8180 arranging the line table.
8181
e4003a34
TV
81822020-03-07 Tom de Vries <tdevries@suse.de>
8183
8184 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8185 DIE.
8186
e8932576
TT
81872020-03-07 Tom Tromey <tom@tromey.com>
8188
8189 * valops.c (value_literal_complex): Remove obsolete comment.
8190 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8191 comment.
8192
29734269
SM
81932020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8194
8195 * infrun.h: Forward-declare thread_info.
8196 (set_step_info): Add thread_info parameter, add doc.
8197 * infrun.c (set_step_info): Add thread_info parameter, move doc
8198 to header.
8199 * infrun.c (process_event_stop_test): Pass thread to
8200 set_step_info call.
8201 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8202 set_step_info.
8203 (prepare_one_step): Add thread_info parameter, pass it to
8204 set_step_frame and prepare_one_step (recursive) call.
8205 (step_1): Pass thread to prepare_one_step call.
8206 (step_command_fsm::should_stop): Pass thread to
8207 prepare_one_step.
8208 (until_next_fsm): Pass thread to set_step_frame call.
8209 (finish_command): Pass thread to set_step_info call.
8210
b7d64b29
HD
82112020-03-06 Hannes Domani <ssbssa@yahoo.de>
8212
8213 * windows-tdep.c (windows_solib_create_inferior_hook):
8214 Check if inferior is running.
8215
09f2921c
TV
82162020-03-06 Tom de Vries <tdevries@suse.de>
8217
8218 * NEWS: Fix "the the".
8219 * ctfread.c: Same.
8220
fd760e79
TV
82212020-03-06 Tom de Vries <tdevries@suse.de>
8222
8223 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8224
20ea4a60
AB
82252020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8226
8227 * .dir-locals.el: Add a comment referencing the other copies of
8228 this file.
8229
0afbabf0
JB
82302020-03-05 John Baldwin <jhb@FreeBSD.org>
8231
8232 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8233 psargs.
8234
842806cb
TBA
82352020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8236
8237 * .gitattributes: New file.
8238
be1e3d3e
TT
82392020-03-04 Tom Tromey <tom@tromey.com>
8240
8241 * symmisc.c (print_symbol_bcache_statistics)
8242 (print_objfile_statistics): Update.
8243 * symfile.c (allocate_symtab): Use intern.
8244 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8245 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8246 macro_cache>: Remove.
8247 <string_cache>: New member.
8248 (struct objfile) <intern>: New methods.
8249 * elfread.c (elf_symtab_read): Use intern.
8250 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8251 (dwarf2_compute_name, dwarf2_physname)
8252 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8253 names.
8254 (guess_partial_die_structure_name): Update.
8255 (partial_die_info::fixup): Intern name.
8256 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8257 name.
8258 (dwarf2_name): Intern name. Update.
8259 * buildsym.c (buildsym_compunit::get_macro_table): Use
8260 string_cache.
8261
4e7625fd
TT
82622020-03-04 Tom Tromey <tom@tromey.com>
8263
8264 * jit.c (bfd_open_from_target_memory): Make "target" const.
8265 * corefile.c (gnutarget): Now const.
8266 * gdbcore.h (gnutarget): Now const.
8267
46f9f931
HD
82682020-03-04 Hannes Domani <ssbssa@yahoo.de>
8269
8270 * NEWS: Mention support for WOW64 processes.
8271 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8272 (amd64_windows_segment_register_p): Remove static.
8273 (_initialize_amd64_windows_nat): Update.
8274 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8275 * i386-windows-nat.c (context_offset): Update.
8276 (i386_mappings): Rename and remove static.
8277 (i386_windows_segment_register_p): Remove static.
8278 (_initialize_i386_windows_nat): Update.
8279 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8280 (STATUS_WX86_SINGLE_STEP): New macro.
8281 (EnumProcessModulesEx): New macro.
8282 (Wow64SuspendThread): New macro.
8283 (Wow64GetThreadContext): New macro.
8284 (Wow64SetThreadContext): New macro.
8285 (Wow64GetThreadSelectorEntry): New macro.
8286 (windows_set_context_register_offsets): Add static.
8287 (windows_set_segment_register_p): Likewise.
8288 (windows_add_thread): Adapt for WOW64 processes.
8289 (windows_fetch_one_register): Likewise.
8290 (windows_nat_target::fetch_registers): Likewise.
8291 (windows_store_one_register): Likewise.
8292 (display_selector): Likewise.
8293 (display_selectors): Likewise.
8294 (handle_exception): Likewise.
8295 (windows_continue): Likewise.
8296 (windows_nat_target::resume): Likewise.
8297 (windows_add_all_dlls): Likewise.
8298 (do_initial_windows_stuff): Likewise.
8299 (windows_nat_target::attach): Likewise.
8300 (windows_get_exec_module_filename): Likewise.
8301 (windows_nat_target::create_inferior): Likewise.
8302 (windows_xfer_siginfo): Likewise.
8303 (_initialize_loadable): Initialize Wow64SuspendThread,
8304 Wow64GetThreadContext, Wow64SetThreadContext,
8305 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8306 * windows-nat.h (windows_set_context_register_offsets):
8307 Remove declaration.
8308 (windows_set_segment_register_p): Likewise.
8309 (i386_windows_segment_register_p): Add declaration.
8310 (amd64_windows_segment_register_p): Likewise.
8311
440cf44e
LM
83122020-03-04 Luis Machado <luis.machado@linaro.org>
8313
8314 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8315 in "info registers" for AArch64/ARM.
8316
8317 The change caused "info registers" to not print GPR's.
8318
8319 gdb/ChangeLog:
8320
8321 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8322
8323 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8324 when reg->group is empty and reggroup is not.
8325
1009d92f
TT
83262020-03-03 Tom Tromey <tromey@adacore.com>
8327
8328 * dwarf2/frame.c (struct dwarf2_frame_cache)
8329 <checked_tailcall_bottom, entry_cfa_sp_offset,
8330 entry_cfa_sp_offset_p>: Remove members.
8331 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8332 (dwarf2_frame_prev_register): Don't call
8333 dwarf2_tailcall_sniffer_first.
8334 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8335 * frame-unwind.c (add_unwinder): New fuction.
8336 (frame_unwind_init): Use it. Add tailcall unwinder.
8337
5e5d66b6
AB
83382020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8339 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8340
8341 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8342 value should be printed as true.
8343
584cf46d
HD
83442020-03-03 Hannes Domani <ssbssa@yahoo.de>
8345
8346 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8347 (windows_init_abi): Set and use windows_so_ops.
8348
7b973adc
SDJ
83492020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8350
8351 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8352 when verifying if dealing with a convenience variable.
8353
bb7b70ab
LM
83542020-03-03 Luis Machado <luis.machado@linaro.org>
8355
8356 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8357
9822cb57
SM
83582020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8359
8360 * infrun.c (gdbarch_supports_displaced_stepping): New.
8361 (use_displaced_stepping): Break up conditions in smaller pieces.
8362 Use gdbarch_supports_displaced_stepping.
8363 (displaced_step_prepare_throw): Use
8364 gdbarch_supports_displaced_stepping.
8365
63e163f2
AB
83662020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8367
8368 * NEWS: Mention new behaviour of the history filename.
8369 * top.c (write_history_p): Add comment.
8370 (show_write_history_p): Add header comment, give a different
8371 message when history writing is on, but the history filename is
8372 empty.
8373 (history_filename): Add comment.
8374 (history_filename_empty): New function.
8375 (show_history_filename): Add header comment, give a different
8376 message when the filename is empty.
8377 (init_history): Compare history_filename against nullptr, and only
8378 read history if the filename is not empty.
8379 (set_history_filename): Add header comment, and only make
8380 non-empty filenames absolute.
8381 (init_main): Make the filename argument to 'set history filename'
8382 optional.
8383
81b86b97
CB
83842020-03-02 Christian Biesinger <cbiesinger@google.com>
8385
8386 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8387 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8388 (fetch_fp_register): Update.
8389 (fetch_fp_regs): Update.
8390 (store_fp_register): Update.
8391 (store_fp_regs): Update.
8392 (arm_netbsd_nat_target::read_description): New function.
8393 (fetch_elfcore_registers): Update.
8394
24ed6739
AB
83952020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8396
8397 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8398 general_thread if the stop reply is missing a thread-id.
8399 (remote_target::process_stop_reply): Use the first non-exited
8400 thread if the target didn't pass a thread-id.
8401 * infrun.c (do_target_wait): Move call to
8402 switch_to_inferior_no_thread to ....
8403 (do_target_wait_1): ... here.
8404
a84bb2a0
JT
84052020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8406
8407 * debuginfod-support.c: Include defs.h first.
8408
658dadf0
TV
84092020-02-28 Tom de Vries <tdevries@suse.de>
8410
8411 * symfile.c (set_initial_language): Use default language for lookup.
8412
4ebe4877
SM
84132020-02-28 Simon Marchi <simon.marchi@efficios.com>
8414
8415 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8416 reader variable, pass `this` to read_cutu_die_from_dwo.
8417
e5da1139
AM
84182020-02-27 Aaron Merey <amerey@redhat.com>
8419
8420 * source.c (open_source_file): Check for nullptr when computing
8421 srcpath.
8422
317f7127
TT
84232020-02-27 Tom Tromey <tromey@adacore.com>
8424
8425 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8426 member.
8427 (dwarf2_add_field): Don't update nfields.
8428 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8429
3104d9ee
AB
84302020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8431
8432 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8433 abs.
8434
b83470bf
TT
84352020-02-26 Tom Tromey <tom@tromey.com>
8436
8437 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8438 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8439 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8440 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8441 per_cu_data.
8442
edfe0a0c
TT
84432020-02-26 Tom Tromey <tom@tromey.com>
8444
8445 * dwarf2/index-write.c (psym_index_map): Change type.
8446 (add_address_entry_worker, write_one_signatured_type)
8447 (recursively_count_psymbols, recursively_write_psymbols)
8448 (class debug_names, psyms_seen_size, write_gdbindex)
8449 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8450
0d79cdc4
AM
84512020-02-26 Aaron Merey <amerey@redhat.com>
8452
8453 * Makefile.in: Handle optional debuginfod support.
8454 * NEWS: Update.
8455 * README: Add --with-debuginfod summary.
8456 * config.in: Regenerate.
8457 * configure: Regenerate.
8458 * configure.ac: Handle optional debuginfod support.
8459 * debuginfod-support.c: debuginfod helper functions.
8460 * debuginfod-support.h: Ditto.
8461 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8462 summary.
8463 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8464 when a dwz file cannot be found.
8465 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8466 debuginfo file cannot be found.
8467 * source.c (open_source_file): Query debuginfod servers when a
8468 source file cannot be found.
8469 * top.c (print_gdb_configuration): Include
8470 --{with,without}-debuginfod in the output.
8471
b65ce565
JG
84722020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8473
8474 * thread.c (thr_try_catch_cmd): Print thread name.
8475
d4c9a4f8
SM
84762020-02-26 Simon Marchi <simon.marchi@efficios.com>
8477
8478 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8479 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8480 dwarf2_fetch_die_type_sect_off): Move to...
8481 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8482 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8483 dwarf2_fetch_die_type_sect_off): ... here.
8484 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8485 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8486 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8487
0dce4280
TV
84882020-02-26 Tom de Vries <tdevries@suse.de>
8489
8490 PR gdb/25603
8491 * symfile.c (set_initial_language): Exit-early if
8492 language_mode == language_mode_manual.
8493
450a1bfc
SM
84942020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8495
8496 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8497 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8498 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8499
9e80cfa1
AB
85002020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8501
8502 * gdbtypes.c (create_array_type_with_stride): Handle negative
8503 array strides.
8504 * valarith.c (value_subscripted_rvalue): Likewise.
8505
09624f1f
LM
85062020-02-25 Luis Machado <luis.machado@linaro.org>
8507
8508 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8509
8cb5117c
SM
85102020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8511
8512 * loc.h (dwarf2_get_die_type): Move to...
8513 * read.h (dwarf2_get_die_type): ... here.
8514 * read.c (dwarf2_get_die_type): Move doc to header.
8515
c325c44e
JB
85162020-02-25 Joel Brobecker <brobecker@adacore.com>
8517
8518 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8519 'gnulib/Makefile.in' to the list.
8520
4ac93832
TT
85212020-02-24 Tom Tromey <tom@tromey.com>
8522
8523 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8524 Remove.
8525 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8526 XOBNEWVEC.
8527
197400e8
TT
85282020-02-24 Tom Tromey <tom@tromey.com>
8529
8530 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8531 New method.
8532 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8533 (dw2_do_instantiate_symtab, dw2_get_file_names)
8534 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8535
76935768
TT
85362020-02-24 Tom Tromey <tom@tromey.com>
8537
8538 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8539 make_scoped_restore.
8540 (dwarf2_psymtab::read_symtab): Don't clear
8541 reading_partial_symbols.
8542
a88ef40d
TV
85432020-02-24 Tom de Vries <tdevries@suse.de>
8544
8545 PR gdb/25592
8546 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8547
c9af6521
TV
85482020-02-24 Tom de Vries <tdevries@suse.de>
8549
8550 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8551 commands layout next/prev/regs.
8552
5707a07a
TT
85532020-02-22 Tom Tromey <tom@tromey.com>
8554
8555 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8556 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8557
3b0fb49e
TT
85582020-02-22 Tom Tromey <tom@tromey.com>
8559
8560 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8561
283be8bf
TT
85622020-02-22 Tom Tromey <tom@tromey.com>
8563
8564 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8565 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8566 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8567 * tui/tui.c (_initialize_tui): Add usage text.
8568
ca793b96
TT
85692020-02-22 Tom Tromey <tom@tromey.com>
8570
8571 * tui/tui-win.c (tui_set_focus_command)
8572 (tui_set_win_height_command): Use error_no_arg.
8573 (_initialize_tui_win): Update help text.
8574 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8575
432b5c40
TT
85762020-02-22 Tom Tromey <tom@tromey.com>
8577
8578 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8579 * tui/tui-disasm.h (struct tui_disasm_window)
8580 <display_start_addr>: Declare.
8581 * tui/tui-source.h (struct tui_source_window)
8582 <display_start_addr>: Declare.
8583 * tui/tui-winsource.h (struct tui_source_window_base)
8584 <show_source_line, display_start_addr>: New methods.
8585 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8586 Rename and move to protected section.
8587 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8588 (tui_source_window_base::do_erase_source_content): Update.
8589 (tui_source_window_base::show_source_line): Now a method.
8590 (tui_source_window_base::show_source_content)
8591 (tui_source_window_base::tui_source_window_base)
8592 (tui_source_window_base::rerender)
8593 (tui_source_window_base::refill)
8594 (tui_source_window_base::do_scroll_horizontal)
8595 (tui_source_window_base::set_is_exec_point_at)
8596 (tui_source_window_base::update_breakpoint_info)
8597 (tui_source_window_base::update_exec_info): Update.
8598 * tui/tui-source.c (tui_source_window::set_contents)
8599 (tui_source_window::showing_source_p)
8600 (tui_source_window::do_scroll_vertical)
8601 (tui_source_window::location_matches_p)
8602 (tui_source_window::line_is_displayed): Update.
8603 (tui_source_window::display_start_addr): New method.
8604 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8605 (tui_disasm_window::do_scroll_vertical)
8606 (tui_disasm_window::location_matches_p): Update.
8607 (tui_disasm_window::display_start_addr): New method.
8608
01b1af32
TT
86092020-02-22 Tom Tromey <tom@tromey.com>
8610
8611 * NEWS: Add entry for gdb.register_window_type.
8612 * tui/tui-layout.h (window_factory): New typedef.
8613 (tui_register_window): Declare.
8614 * tui/tui-layout.c (saved_tui_windows): New global.
8615 (tui_apply_current_layout): Use it.
8616 (tui_register_window): New function.
8617 * python/python.c (do_start_initialization): Call
8618 gdbpy_initialize_tui.
8619 (python_GdbMethods): Add "register_window_type" function.
8620 * python/python-internal.h (gdbpy_register_tui_window)
8621 (gdbpy_initialize_tui): Declare.
8622 * python/py-tui.c: New file.
8623 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8624
fc96d20b
TT
86252020-02-22 Tom Tromey <tom@tromey.com>
8626
8627 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8628
935c78c0
TT
86292020-02-22 Tom Tromey <tom@tromey.com>
8630
8631 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8632 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8633 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8634 (tui_set_win_focus_to): Move from tui-win.c.
8635
0240c8f1
TT
86362020-02-22 Tom Tromey <tom@tromey.com>
8637
8638 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8639 functions.
8640 (known_window_types): New global.
8641 (tui_get_window_by_name): Reimplement.
8642 (initialize_known_windows): New function.
8643 (validate_window_name): Rewrite.
8644 (_initialize_tui_layout): Call initialize_known_windows.
8645
fdb01f0c
TT
86462020-02-22 Tom Tromey <tom@tromey.com>
8647
8648 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8649 Remove constants.
8650 * tui/tui-winsource.h (struct tui_source_window_base)
8651 <tui_source_window_base>: Remove parameter.
8652 * tui/tui-winsource.c
8653 (tui_source_window_base::tui_source_window_base): Remove
8654 parameter.
8655 (tui_source_window_base::refill): Update.
8656 * tui/tui-stack.h (struct tui_locator_window)
8657 <tui_locator_window>: Update.
8658 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8659 Default the constructor.
8660 * tui/tui-regs.h (struct tui_data_item_window)
8661 <tui_data_item_window>: Default the constructor.
8662 (struct tui_data_window) <tui_data_window>: Likewise.
8663 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8664 Default the constructor.
8665 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8666 Default the constructor.
8667 <type>: Remove.
8668 (struct tui_win_info) <tui_win_info>: Default the constructor.
8669 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8670 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8671 Default the constructor.
8672
865a5aec
TT
86732020-02-22 Tom Tromey <tom@tromey.com>
8674
8675 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8676 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8677 * tui/tui-win.c (tui_resize_all): Don't call
8678 tui_delete_invisible_windows.
8679 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8680 done.
8681 (tui_set_layout): Update.
8682 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8683 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8684 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8685
e098d18c
TT
86862020-02-22 Tom Tromey <tom@tromey.com>
8687
8688 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8689 correctly.
8690
eb9c8874
TT
86912020-02-22 Tom Tromey <tom@tromey.com>
8692
8693 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8694
7eed1a8e
TT
86952020-02-22 Tom Tromey <tom@tromey.com>
8696
8697 * tui/tui-winsource.h (struct tui_source_window_iterator)
8698 <inner_iterator>: New etytypedef.
8699 <tui_source_window_iterator>: Take "end" parameter.
8700 <tui_source_window_iterator>: Take iterator.
8701 <operator*, advance>: Update.
8702 <m_iter>: Change type.
8703 <m_end>: New field.
8704 (struct tui_source_windows) <begin, end>: Update.
8705 * tui/tui-layout.c (tui_windows): New global.
8706 (tui_apply_current_layout): Clear tui_windows.
8707 (tui_layout_window::apply): Update tui_windows.
8708 * tui/tui-data.h (tui_windows): Declare.
8709 (all_tui_windows): Now inline function.
8710 (class tui_window_iterator, struct all_tui_windows): Remove.
8711
7c043ba6
TT
87122020-02-22 Tom Tromey <tom@tromey.com>
8713
8714 PR tui/17850:
8715 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8716 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8717 "height" argument.
8718 (class tui_layout_window) <get_sizes>: Likewise.
8719 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8720 argument.
8721 <get_sizes>: Add "height" argument.
8722 <m_vertical>: New field.
8723 * tui/tui-layout.c (tui_layout_split::clone): Update.
8724 (tui_layout_split::get_sizes): Add "height" argument.
8725 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8726 (tui_new_layout_command): Parse "-horizontal".
8727 (_initialize_tui_layout): Update help string.
8728 (tui_layout_split::specification): Add "-horizontal" when needed.
8729 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8730 argument.
8731 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8732 New methods.
8733
6bc56648
TT
87342020-02-22 Tom Tromey <tom@tromey.com>
8735
8736 * tui/tui-layout.h (enum tui_adjust_result): New.
8737 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8738 (class tui_layout_window) <adjust_size>: Return
8739 tui_adjust_result. Rewrite.
8740 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8741 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8742
c22fef7e
TT
87432020-02-22 Tom Tromey <tom@tromey.com>
8744
8745 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8746 parameter and return types.
8747 (class tui_layout_base) <specification>: Add "depth".
8748 (class tui_layout_window) <specification>: Add "depth".
8749 (class tui_layout_split) <specification>: Add "depth".
8750 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8751 and return types.
8752 (tui_new_layout_command): Parse sub-layouts.
8753 (_initialize_tui_layout): Update help string.
8754 (tui_layout_window::specification): Add "depth".
8755 (add_layout_command): Update.
8756
ee325b61
TT
87572020-02-22 Tom Tromey <tom@tromey.com>
8758
8759 * NEWS: Add "tui new-layout" item.
8760 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8761 Add new-layout command to help text.
8762 (validate_window_name): New function.
8763 (tui_new_layout_command): New function.
8764 (_initialize_tui_layout): Register "new-layout".
8765 (tui_layout_window::specification): New method.
8766 (tui_layout_window::specification): New method.
8767 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8768 method.
8769 (class tui_layout_window) <specification>: New method.
8770 (class tui_layout_split) <specification>: New method.
8771
416eb92d
TT
87722020-02-22 Tom Tromey <tom@tromey.com>
8773
8774 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8775 * tui/tui-win.c (window_name_completer): Update comment.
8776 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8777 Declare method.
8778 (class tui_layout_window) <replace_window>: Likewise.
8779 (class tui_layout_split) <replace_window>: Likewise.
8780 (tui_set_layout): Don't declare.
8781 (tui_set_initial_layout): Declare function.
8782 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8783 (asm_regs_layout): New globals.
8784 (tui_current_layout, show_layout): Remove.
8785 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8786 (find_layout, tui_apply_layout): New function.
8787 (layout_completer): Remove.
8788 (tui_next_layout): Reimplement.
8789 (tui_next_layout_command): New function.
8790 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8791 (tui_regs_layout): Reimplement.
8792 (tui_regs_layout_command): New function.
8793 (extract_display_start_addr): Rewrite.
8794 (next_layout, prev_layout): Remove.
8795 (tui_layout_window::replace_window): New method.
8796 (tui_layout_split::replace_window): New method.
8797 (destroy_layout): New function.
8798 (layout_list): New global.
8799 (add_layout_command): New function.
8800 (initialize_layouts): Update.
8801 (tui_layout_command): New function.
8802 (_initialize_tui_layout): Install "layout" commands.
8803 * tui/tui-data.h (enum tui_layout_type): Remove.
8804 (tui_current_layout): Don't declare.
8805
0dbc2fc7
TT
88062020-02-22 Tom Tromey <tom@tromey.com>
8807
8808 * tui/tui-regs.c (tui_reg_layout): Remove.
8809 (tui_reg_command): Use tui_regs_layout.
8810 * tui/tui-layout.h (tui_reg_command): Declare.
8811 * tui/tui-layout.c (tui_reg_command): New function.
8812
5afe342e
TT
88132020-02-22 Tom Tromey <tom@tromey.com>
8814
8815 * tui/tui.c (tui_rl_delete_other_windows): Call
8816 tui_remove_some_windows.
8817 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8818 Declare method.
8819 (class tui_layout_window) <remove_windows>: New method.
8820 (class tui_layout_split) <remove_windows>: Declare.
8821 (tui_remove_some_windows): Declare.
8822 * tui/tui-layout.c (tui_remove_some_windows): New function.
8823 (tui_layout_split::remove_windows): New method.
8824
427326a8
TT
88252020-02-22 Tom Tromey <tom@tromey.com>
8826
8827 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8828 * tui/tui-layout.h (tui_next_layout): Declare.
8829 * tui/tui-layout.c (tui_next_layout): New function.
8830
3fe12b6d
TT
88312020-02-22 Tom Tromey <tom@tromey.com>
8832
8833 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8834 correct coordinates.
8835
59b8b5d2
TT
88362020-02-22 Tom Tromey <tom@tromey.com>
8837
8838 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8839 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8840 DATA_WIN case.
8841
2a3d458b
TT
88422020-02-22 Tom Tromey <tom@tromey.com>
8843
8844 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8845 TUI_DISASM_WIN, not tui_win_list.
8846
3f0cbb04
TT
88472020-02-22 Tom Tromey <tom@tromey.com>
8848
8849 * valprint.c (generic_val_print_enum_1)
8850 (val_print_type_code_flags): Style member names.
8851 * rust-lang.c (val_print_struct, rust_print_enum)
8852 (rust_print_struct_def, rust_internal_print_type): Style member
8853 names.
8854 * p-valprint.c (pascal_object_print_value_fields): Style member
8855 names. Only call fprintf_symbol_filtered for static members.
8856 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8857 * f-valprint.c (f_val_print): Style member names.
8858 * f-typeprint.c (f_type_print_base): Style member names.
8859 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8860 call fprintf_symbol_filtered for static members.
8861 (cp_print_class_member): Style member names.
8862 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8863 member names.
8864 * ada-valprint.c (ada_print_scalar): Style enum names.
8865 (ada_val_print_enum): Likewise.
8866 * ada-typeprint.c (print_enum_type): Style enum names.
8867
d4d947ae
TT
88682020-02-21 Tom Tromey <tom@tromey.com>
8869
8870 * psympriv.h (struct partial_symtab): Update comment.
8871
e94e944b
TT
88722020-02-21 Tom Tromey <tromey@adacore.com>
8873
8874 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8875 type is CORE_ADDR.
8876
1eb73179
TV
88772020-02-21 Tom de Vries <tdevries@suse.de>
8878
8879 PR gdb/25534
8880 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8881 if dependencies[i]->user != NULL.
8882
4f180d53
AT
88832020-02-21 Ali Tamur <tamur@google.com>
8884
8885 * dwarf2/read.c (dwarf2_name): Add null check.
8886
22b6cd70
TT
88872020-02-20 Tom Tromey <tom@tromey.com>
8888
8889 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8890 ">=", in binary search.
8891 (dwarf2_find_containing_comp_unit): New overload.
8892 (run_test): New self-test.
8893 (_initialize_dwarf2_read): Register new test.
8894
bd0cf5a6
NC
88952020-02-20 Nelson Chu <nelson.chu@sifive.com>
8896
8897 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8898 * riscv-tdep.h: Likewise.
8899 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8900 rv32-only CSR.
8901 * features/riscv/64bit-csr.xml: Regenerated.
8902
3f702acd
SDJ
89032020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8904 Tom Tromey <tom@tromey.com>
8905
8906 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8907 of 'fputc_unfiltered'.
8908 (putchar_unfiltered): Call 'fputc_unfiltered'.
8909 (fputc_unfiltered): Call 'fputs_unfiltered'.
8910
d13c7322
AB
89112020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8912
8913 * config.in: Regenerate.
8914 * configure: Regenerate.
8915 * configure.ac: Add --with-python-libdir option.
8916 * main.c: Use WITH_PYTHON_LIBDIR.
8917
869d8950
TT
89182020-02-19 Tom Tromey <tom@tromey.com>
8919
8920 * symtab.c (general_symbol_info::compute_and_set_names): Use
8921 obstack_strndup. Simplify call to symbol_set_demangled_name.
8922
298e9637
SM
89232020-02-19 Simon Marchi <simon.marchi@efficios.com>
8924
8925 * dwarf2/read.c (allocate_signatured_type_table,
8926 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8927 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8928 Remove objfile parameter, update all callers.
8929
08410482
DE
89302020-02-19 Doug Evans <dje@google.com>
8931
8932 PR rust/25535
8933 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8934 rust_enum_variant calculation.
8935
dfdeeca1
TT
89362020-02-19 Tom Tromey <tromey@adacore.com>
8937
8938 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8939
2ef5453b
TT
89402020-02-19 Tom Tromey <tromey@adacore.com>
8941
8942 * ada-lang.c (cache_symbol): Use obstack_strdup.
8943
9f1528a1
AB
89442020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8945
8946 * configure: Regenerate.
8947
d3c22fa8
TT
89482020-02-19 Tom Tromey <tromey@adacore.com>
8949
8950 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8951 NULL check.
8952
bf84f706
MR
89532020-02-19 Maciej W. Rozycki <macro@wdc.com>
8954
8955 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8956
d1c9b20f
AB
89572020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8958
8959 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8960 if GDBSERVER is not defined.
8961 (riscv_tdesc_cache): Likewise, also store const target_desc.
8962 (STATIC_IN_GDB): Define.
8963 (riscv_create_target_description): Update declaration with
8964 STATIC_IN_GDB.
8965 (riscv_lookup_target_description): New function, only define if
8966 GDBSERVER is not defined.
8967 * arch/riscv.h (riscv_create_target_description): Declare only
8968 when GDBSERVER is defined.
8969 (riscv_lookup_target_description): New declaration when GDBSERVER
8970 is not defined.
8971 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8972 (riscv_linux_read_features): ...this, and return
8973 riscv_gdbarch_features instead of target_desc.
8974 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8975 (riscv_linux_read_description): Rename to...
8976 (riscv_linux_read_features): ...this.
8977 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8978 Update to use riscv_gdbarch_features and
8979 riscv_lookup_target_description.
8980 * riscv-tdep.c (riscv_find_default_target_description): Use
8981 riscv_lookup_target_description instead of
8982 riscv_create_target_description.
8983
373d7ac0
SM
89842020-02-18 Simon Marchi <simon.marchi@efficios.com>
8985
8986 * valprint.c (generic_val_print_enum_1): When printing a flag
8987 enum with value 0 and there is no enumerator with value 0, print
8988 just "0" instead of "(unknown: 0x0)".
8989
b29a2df0
SM
89902020-02-18 Simon Marchi <simon.marchi@efficios.com>
8991
8992 * valprint.c (generic_val_print_enum_1): Print unknown part of
8993 flag enum in hex.
8994
6740f0cc
SM
89952020-02-18 Simon Marchi <simon.marchi@efficios.com>
8996
8997 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8998 flag enums to contain duplicate enumerators.
8999 * valprint.c (generic_val_print_enum_1): Update comment.
9000
edd45eb0
SM
90012020-02-18 Simon Marchi <simon.marchi@efficios.com>
9002
9003 * dwarf2/read.c: Include "count-one-bits.h".
9004 (update_enumeration_type_from_children): If an enumerator has
9005 multiple bits set, don't treat the enumeration as a "flag enum".
9006 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9007 of flag enums have 0 or 1 bit set.
9008
6d0cf446
BE
90092020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9010
9011 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9012 conversion.
9013 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9014 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9015 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9016 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9017 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9018
7001c1b7
SM
90192020-02-18 Simon Marchi <simon.marchi@efficios.com>
9020
9021 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9022
fdb61c6c
SM
90232020-02-14 Simon Marchi <simon.marchi@efficios.com>
9024
9025 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9026 displaced_step_closure_up.
9027 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9028 (struct displaced_step_closure_up):
9029 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9030 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9031 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9032 Likewise.
9033 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9034 * gdbarch.c, gdbarch.h: Re-generate.
9035 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9036 displaced_step_closure_up.
9037 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9038 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9039 * infrun.h (displaced_step_closure_up): New type alias.
9040 (struct displaced_step_inferior_state) <step_closure>: Change
9041 type to displaced_step_closure_up.
9042 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9043 displaced_step_closure_up.
9044 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9045
a4a38eb4
TT
90462020-02-14 Tom Tromey <tom@tromey.com>
9047
9048 * minidebug.c (gnu_debug_key): New global.
9049 (find_separate_debug_file_in_section): Use it.
9050
e8217e61
SM
90512020-02-14 Simon Marchi <simon.marchi@efficios.com>
9052
9053 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9054 std::unique_ptr.
9055 * gdbarch.c: Re-generate.
9056 * gdbarch.h: Re-generate.
9057 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9058 change.
9059 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9060 type to std::unique_ptr.
9061 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9062 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9063 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9064 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9065 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9066 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9067 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9068 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9069 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9070
d8d83535
SM
90712020-02-14 Simon Marchi <simon.marchi@efficios.com>
9072
9073 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9074 std::unique_ptr.
9075 (displaced_step_clear): Rename to...
9076 (displaced_step_reset): ... this. Just call displaced->reset ().
9077 (displaced_step_clear_cleanup): Rename to...
9078 (displaced_step_reset_cleanup): ... this.
9079 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9080 (displaced_step_fixup): Likewise.
9081 (resume_1): Likewise.
9082 (handle_inferior_event): Restore child's memory before calling
9083 displaced_step_fixup on the parent.
9084 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9085 to std::unique_ptr.
9086 <step_closure>: Change type to std::unique_ptr.
9087
5f661e03
SM
90882020-02-14 Simon Marchi <simon.marchi@efficios.com>
9089
9090 * arm-tdep.c: Include count-one-bits.h.
9091 (cleanup_block_store_pc): Use count_one_bits.
9092 (cleanup_block_load_pc): Use count_one_bits.
9093 (arm_copy_block_xfer): Use count_one_bits.
9094 (thumb2_copy_block_xfer): Use count_one_bits.
9095 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9096 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9097 (thumb_get_next_pcs_raw): Use count_one_bits.
9098 (arm_get_next_pcs_raw): Use count_one_bits_l.
9099 * arch/arm.c (bitcount): Remove.
9100 * arch/arm.h (bitcount): Remove.
9101
8084e579
TT
91022020-02-14 Tom Tromey <tromey@adacore.com>
9103
9104 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9105 Update.
9106 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9107 * dwarf2/loc.c (call_site_find_chain_1): Return
9108 unique_xmalloc_ptr.
9109 (call_site_find_chain): Likewise.
9110
258bf0ee
RB
91112020-02-14 Richard Biener <rguenther@suse.de>
9112
9113 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9114 on expression with division operators.
9115
f98a8458
AKS
91162020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9117
9118 * MAINTAINERS (Write After Approval): Adding myself.
9119
d1437c0e
TT
91202020-02-12 Tom Tromey <tom@tromey.com>
9121
9122 * event-loop.c (event_data, gdb_event, event_handler_func):
9123 Remove.
9124
3d4560f7
TT
91252020-02-12 Tom Tromey <tom@tromey.com>
9126
9127 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9128 (dwarf2_frame_objfile_data): Add comment.
9129 (find_comp_unit, set_comp_unit): New functions.
9130 (dwarf2_frame_find_fde): Use find_comp_unit.
9131 (dwarf2_build_frame_info): Use set_comp_unit.
9132
21982304
TT
91332020-02-12 Tom Tromey <tom@tromey.com>
9134
9135 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9136 (comp_unit): Don't initialize objfile.
9137 (execute_cfa_program): Add text_offset parameter.
9138 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9139 (dwarf2_frame_cache): Update.
9140 (dwarf2_build_frame_info): Don't set "objfile" member.
9141
4debb237
TT
91422020-02-12 Tom Tromey <tom@tromey.com>
9143
9144 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9145 (decode_frame_entry): Likewise.
9146 (dwarf2_build_frame_info): Update.
9147
0d404d44
TT
91482020-02-12 Tom Tromey <tom@tromey.com>
9149
9150 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9151 (decode_frame_entry_1): Use the comp_unit obstack.
9152
a7a3ae5c
TT
91532020-02-12 Tom Tromey <tom@tromey.com>
9154
9155 * dwarf2/frame.c (struct comp_unit): Add initializers and
9156 constructor.
9157 (dwarf2_frame_objfile_data): Store a comp_unit.
9158 (dwarf2_frame_find_fde): Update.
9159 (dwarf2_build_frame_info): Use "new".
9160
a9d65418
TT
91612020-02-12 Tom Tromey <tom@tromey.com>
9162
9163 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9164 (dwarf2_fde_table): Typedef for std::vector.
9165 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9166 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9167 (decode_frame_entry): Update.
9168 (dwarf2_build_frame_info): Use "new".
9169
7559c217
CB
91702020-02-12 Christian Biesinger <cbiesinger@google.com>
9171
9172 * arm-tdep.c (arm_gdbarch_init): Update.
9173 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9174 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9175 have_neon, is_m>: Change to bool.
9176
aeefc73c
CB
91772020-02-12 Christian Biesinger <cbiesinger@google.com>
9178
9179 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9180
d27b8e5f
TT
91812020-02-12 Tom Tromey <tom@tromey.com>
9182
9183 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9184
cd5900f3
HD
91852020-02-12 Hannes Domani <ssbssa@yahoo.de>
9186
9187 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9188 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9189
f056b22b
TT
91902020-02-11 Tom Tromey <tom@tromey.com>
9191
9192 * psymtab.h: Update comment.
9193
f92ff6b5
TT
91942020-02-11 Tom Tromey <tom@tromey.com>
9195
9196 * gdb_obstack.h (struct auto_obstack): Use
9197 DISABLE_COPY_AND_ASSIGN.
9198
3fd6912b
TT
91992020-02-11 Tom Tromey <tom@tromey.com>
9200
9201 * dwarf2/frame.h (struct objfile): Don't forward declare.
9202
69ed9b74
CB
92032020-02-11 Christian Biesinger <cbiesinger@google.com>
9204
9205 * cris-tdep.c (cris_supply_gregset): Change signature to match
9206 what struct regset expects.
9207 (cris_regset): New struct.
9208 (fetch_core_registers): Remove.
9209 (cris_iterate_over_regset_sections): New function.
9210 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9211 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9212
bda874f6
CB
92132020-02-11 Christian Biesinger <cbiesinger@google.com>
9214
9215 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9216 registers.
9217
754e1564
CB
92182020-02-11 Christian Biesinger <cbiesinger@google.com>
9219
9220 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9221
8ddd8e0e
SM
92222020-02-11 Simon Marchi <simon.marchi@efficios.com>
9223
9224 * configure: Re-generate.
9225
898e7f60
SM
92262020-02-11 Simon Marchi <simon.marchi@efficios.com>
9227
9228 * configure: Re-generate.
9229
58df732b
SM
92302020-02-11 Simon Marchi <simon.marchi@efficios.com>
9231
9232 * acinclude: Update warning.m4 path.
9233 * warning.m4: Move to gdbsupport.
9234
da5bd37e
TT
92352020-02-11 Tom Tromey <tromey@adacore.com>
9236
9237 * remote.c (remote_console_output): Update.
9238 * printcmd.c (printf_command): Update.
9239 * event-loop.c (gdb_wait_for_event): Update.
9240 * linux-nat.c (sigchld_handler): Update.
9241 * remote-sim.c (gdb_os_write_stdout): Update.
9242 (gdb_os_flush_stdout): Update.
9243 (gdb_os_flush_stderr): Update.
9244 (gdb_os_write_stderr): Update.
9245 * exceptions.c (print_exception): Update.
9246 * remote-fileio.c (remote_fileio_func_read): Update.
9247 (remote_fileio_func_write): Update.
9248 * tui/tui.c (tui_enable): Update.
9249 * tui/tui-interp.c (tui_interp::init): Update.
9250 * utils.c (init_page_info): Update.
9251 (putchar_unfiltered, fputc_unfiltered): Update.
9252 (gdb_flush): Update.
9253 (emit_style_escape): Update.
9254 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9255 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9256 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9257 (stderr_file::write): Update.
9258 (stderr_file::puts): Update.
9259 * ui-file.h (ui_file_isatty, ui_file_write)
9260 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9261 (ui_file_puts): Don't declare.
9262
85f0dd3c
TV
92632020-02-10 Tom de Vries <tdevries@suse.de>
9264
9265 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9266 sentinel to char *.
9267
2e927613
TV
92682020-02-09 Tom de Vries <tdevries@suse.de>
9269
9270 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9271 filename if it matches "<artificial>".
9272
6bafc845
HD
92732020-02-09 Hannes Domani <ssbssa@yahoo.de>
9274
9275 * windows-tdep.c (struct enum_value_name): New struct.
9276 (create_enum): New function.
9277 (windows_get_siginfo_type): Create and use enum types.
9278
7928d571
HD
92792020-02-09 Hannes Domani <ssbssa@yahoo.de>
9280
9281 * NEWS: Mention $_siginfo support for Windows.
9282 * windows-nat.c (handle_exception): Set siginfo_er.
9283 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9284 (windows_xfer_siginfo): New function.
9285 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9286 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9287 (init_windows_gdbarch_data): New function.
9288 (get_windows_gdbarch_data): New function.
9289 (windows_get_siginfo_type): New function.
9290 (windows_init_abi): Register windows_get_siginfo_type.
9291 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9292
6751ebae
TT
92932020-02-08 Tom Tromey <tom@tromey.com>
9294
9295 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9296 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9297 <keep>: Declare method.
9298 <m_keep>: Remove member.
9299 <~cutu_reader>: Remove.
9300 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9301 (cutu_reader::cutu_reader): Update.
9302 (cutu_reader::keep): Rename from ~cutu_reader.
9303 (process_psymtab_comp_unit, build_type_psymtabs_1)
9304 (process_skeletonless_type_unit, load_partial_comp_unit)
9305 (load_full_comp_unit, dwarf2_read_addr_index)
9306 (read_signatured_type): Update.
9307
135f5437
TT
93082020-02-08 Tom Tromey <tom@tromey.com>
9309
9310 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9311 "want_partial_unit" parameter.
9312 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9313 Inline check for DW_TAG_partial_unit.
9314 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9315
9f66ff1c
TT
93162020-02-08 Tom Tromey <tom@tromey.com>
9317
9318 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9319 read.c.
9320 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9321 read.c.
9322
c8a7a66f
TT
93232020-02-08 Tom Tromey <tom@tromey.com>
9324
9325 * dwarf2/read.c (read_address): Move to comp-unit.c.
9326 (dwarf2_rnglists_process, dwarf2_ranges_process)
9327 (read_attribute_value, dwarf_decode_lines_1)
9328 (var_decode_location, decode_locdesc): Update.
9329 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9330 read.c. Remove "cu" parameter.
9331 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9332 method.
9333
8266302d
TT
93342020-02-08 Tom Tromey <tom@tromey.com>
9335
9336 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9337 (read_indirect_line_string): Update.
9338 * dwarf2/comp-unit.c (read_offset): Remove.
9339 (read_comp_unit_head): Update.
9340 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9341 method.
9342 (read_offset): Don't declare.
9343
4057dfde
TT
93442020-02-08 Tom Tromey <tom@tromey.com>
9345
9346 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9347 * dwarf2/read.c (struct comp_unit_head): Move to
9348 dwarf2/comp-unit.h.
9349 (enum class rcuh_kind): Move to comp-unit.h.
9350 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9351 (read_comp_unit_head, error_check_comp_unit_head)
9352 (read_and_check_comp_unit_head): Move to comp-unit.c.
9353 (read_offset, dwarf_unit_type_name): Likewise.
9354 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9355 (cutu_reader::cutu_reader, read_call_site_scope)
9356 (find_partial_die, follow_die_offset): Update.
9357 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9358
24aa364d
TT
93592020-02-08 Tom Tromey <tom@tromey.com>
9360
9361 * dwarf2/read.c (read_offset_1): Move to leb.c.
9362 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9363 (dwarf_decode_macro_bytes): Update.
9364 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9365 * dwarf2/leb.h (read_offset): Declare.
9366
2c7d5afc
TT
93672020-02-08 Tom Tromey <tom@tromey.com>
9368
9369 * dwarf2/read.c (dwarf2_section_size): Remove.
9370 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9371 Update.
9372 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9373
4075cb26
TT
93742020-02-08 Tom Tromey <tom@tromey.com>
9375
9376 * dwarf2/read.c (read_initial_length): Move to leb.c.
9377 * dwarf2/leb.h (read_initial_length): Declare.
9378 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9379 handle_nonstd parameter.
9380 * dwarf2/frame.c (read_initial_length): Remove.
9381 (decode_frame_entry_1): Update.
9382
09ba997f
TT
93832020-02-08 Tom Tromey <tom@tromey.com>
9384
9385 * dwarf2/loc.c (dwarf2_find_location_expression)
9386 (dwarf_evaluate_loc_desc::get_tls_address)
9387 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9388 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9389 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9390 (dwarf2_compile_property_to_c)
9391 (dwarf2_loc_desc_get_symbol_read_needs)
9392 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9393 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9394 (loclist_describe_location, loclist_tracepoint_var_ref)
9395 (loclist_generate_c_location): Update.
9396 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9397 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9398 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9399 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9400 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9401 (dwarf2_per_cu_data::addr_size)
9402 (dwarf2_per_cu_data::ref_addr_size)
9403 (dwarf2_per_cu_data::text_offset)
9404 (dwarf2_per_cu_data::addr_type): Now methods.
9405 (per_cu_header_read_in): Make per_cu "const".
9406 (dwarf2_version): Remove.
9407 (dwarf2_per_cu_data::int_type): Now a method.
9408 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9409 (set_die_type, read_array_type, read_subrange_index_type)
9410 (read_tag_string_type, read_subrange_type): Update.
9411 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9412 offset_size, ref_addr_size, text_offset, addr_type, version,
9413 objfile, int_type, addr_sized_int_type>: Declare methods.
9414
96c738c0
TT
94152020-02-08 Tom Tromey <tom@tromey.com>
9416
9417 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9418 Move earlier.
9419
8fdd972c
TT
94202020-02-08 Tom Tromey <tom@tromey.com>
9421
9422 * dwarf2/read.h (dwarf_line_debug): Declare.
9423 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9424 * dwarf2/read.c: Move line_header code to new files.
9425 (dwarf_line_debug): No longer static.
9426 * dwarf2/line-header.c: New file.
9427 * dwarf2/line-header.h: New file.
9428
03075812
TT
94292020-02-08 Tom Tromey <tom@tromey.com>
9430
9431 * dwarf2/read.c (struct line_header) <file_full_name,
9432 file_file_name>: Return unique_xmalloc_ptr.
9433 (line_header::file_file_name): Update.
9434 (line_header::file_full_name): Update.
9435 (dw2_get_file_names_reader): Update.
9436 (macro_start_file): Update.
9437
bb822404
TT
94382020-02-08 Tom Tromey <tom@tromey.com>
9439
9440 * dwarf2/read.c (struct line_header) <file_full_name,
9441 file_file_name>: Declare methods.
9442 (dw2_get_file_names_reader): Update.
9443 (file_file_name): Now a method.
9444 (file_full_name): Likewise.
9445 (macro_start_file): Update.
9446
009b64fc
TT
94472020-02-08 Tom Tromey <tom@tromey.com>
9448
9449 * dwarf2/read.c (dwarf_always_disassemble)
9450 (show_dwarf_always_disassemble): Move to loc.c.
9451 (_initialize_dwarf2_read): Move "always-disassemble" registration
9452 to loc.c.
9453 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9454 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9455 static.
9456 (show_dwarf_always_disassemble): Move from read.c.
9457 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9458
5895093f
TT
94592020-02-08 Tom Tromey <tom@tromey.com>
9460
9461 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9462 (create_quick_file_names_table): Return htab_up.
9463 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9464 Update.
9465 * dwarf2/read.h (struct dwarf2_per_objfile)
9466 <quick_file_names_table>: Now htab_up.
9467
b3b32279
TT
94682020-02-08 Tom Tromey <tom@tromey.com>
9469
9470 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9471
1d33d811
TT
94722020-02-08 Tom Tromey <tom@tromey.com>
9473
9474 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9475 Rewrite.
9476 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9477 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9478 (abbrev_table::abbrev_table): No longer inline.
9479 (ABBREV_HASH_SIZE): Remove.
9480 (abbrev_table::m_abbrevs): Now an htab_up.
9481
86de1d91
TT
94822020-02-08 Tom Tromey <tom@tromey.com>
9483
9484 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9485 (cutu_reader): Update.
9486 (build_type_psymtabs_1): Update.
9487 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9488 (abbrev_table::alloc_abbrev): Update.
9489 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9490 (abbrev_table::read): New static method, renamed from
9491 abbrev_table_read_table.
9492 (abbrev_table::alloc_abbrev)
9493 (abbrev_table::add_abbrev): Now private.
9494 (abbrev_table::abbrev_table): Now private.
9495 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9496
0335378b
TT
94972020-02-08 Tom Tromey <tom@tromey.com>
9498
9499 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9500 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9501 htab_up.
9502
48b490f2
TT
95032020-02-08 Tom Tromey <tom@tromey.com>
9504
9505 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9506 htab_up.
9507 (lookup_dwo_unit_in_dwp): Update.
9508 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9509 on obstack.
9510
bc68fb19
TT
95112020-02-08 Tom Tromey <tom@tromey.com>
9512
9513 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9514 obstack.
9515
d15acc42
TT
95162020-02-08 Tom Tromey <tom@tromey.com>
9517
9518 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9519 line_header_hash.
9520 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9521 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9522 Change type to htab_up.
9523
eaa5fa8b
TT
95242020-02-08 Tom Tromey <tom@tromey.com>
9525
9526 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9527 htab_up. Don't allocate on obstack.
9528 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9529 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9530 Change type to htab_up.
9531
b0b6a987
TT
95322020-02-08 Tom Tromey <tom@tromey.com>
9533
9534 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9535 Change type to htab_up.
9536 * dwarf2/read.c (create_signatured_type_table_from_index)
9537 (create_signatured_type_table_from_debug_names)
9538 (create_all_type_units, add_type_unit)
9539 (lookup_dwo_signatured_type, lookup_signatured_type)
9540 (process_skeletonless_type_unit): Update.
9541 (create_debug_type_hash_table, create_debug_types_hash_table):
9542 Change type of types_htab.
9543 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9544 htab_up. Don't allocate on obstack.
9545 (create_cus_hash_table): Change type of cus_htab parameter.
9546 (struct dwo_file) <cus, tus>: Now htab_up.
9547 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9548 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9549 (queue_and_load_all_dwo_tus): Update.
9550 * dwarf2/index-write.c (write_gdbindex): Update.
9551 (write_debug_names): Update.
9552
39856def
TT
95532020-02-08 Tom Tromey <tom@tromey.com>
9554
9555 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9556 dwarf2/read.c. Remove "next" member. Add constructor ntad
9557 destructor.
9558 (struct dwarf2_per_objfile) <queue>: New member.
9559 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9560 dwarf2/read.h.
9561 (dwarf2_queue, dwarf2_queue_tail): Remove.
9562 (class dwarf2_queue_guard): Add parameter to constructor. Use
9563 DISABLE_COPY_AND_ASSIGN.
9564 <m_per_objfile>: New member.
9565 <~dwarf2_queue_guard>: Rewrite.
9566 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9567 Update.
9568 (~dwarf2_queue_item): New.
9569
3e225074
TT
95702020-02-08 Tom Tromey <tom@tromey.com>
9571
9572 * dwarf2/read.c (struct die_info) <has_children>: New member.
9573 (dw2_get_file_names_reader): Remove has_children.
9574 (dw2_get_file_names): Update.
9575 (read_cutu_die_from_dwo): Remove has_children.
9576 (cutu_reader::init_tu_and_read_dwo_dies)
9577 (cutu_reader::cutu_reader): Update.
9578 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9579 Remove has_children.
9580 (build_type_psymtabs_1, process_skeletonless_type_unit)
9581 (load_partial_comp_unit, load_full_comp_unit): Update.
9582 (create_dwo_cu_reader): Remove has_children.
9583 (create_cus_hash_table, read_die_and_children): Update.
9584 (read_full_die_1,read_full_die): Remove has_children.
9585 (read_signatured_type): Update.
9586 (class cutu_reader) <has_children>: Remove.
9587
82ca8957
TT
95882020-02-08 Tom Tromey <tom@tromey.com>
9589
9590 * dwarf2/expr.c: Rename from dwarf2expr.c.
9591 * dwarf2/expr.h: Rename from dwarf2expr.h.
9592 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9593 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9594 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9595 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9596 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9597 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9598 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9599 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9600 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9601 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9602 * dwarf2/loc.c: Rename from dwarf2loc.c.
9603 * dwarf2/loc.h: Rename from dwarf2loc.h.
9604 * dwarf2/read.c: Rename from dwarf2read.c.
9605 * dwarf2/read.h: Rename from dwarf2read.h.
9606 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9607 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9608 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9609 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9610 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9611 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9612 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9613 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9614 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9615 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9616 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9617 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9618 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9619 Update.
9620 * Makefile.in (COMMON_SFILES): Update.
9621 (HFILES_NO_SRCDIR): Update.
9622
9e35d499
TT
96232020-02-08 Tom Tromey <tom@tromey.com>
9624
9625 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9626 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9627
1eba2311
TT
96282020-02-08 Tom Tromey <tom@tromey.com>
9629
9630 * dwarf2read.h (struct die_info): Don't declare.
9631
e41c2da2
TT
96322020-02-08 Tom Tromey <tom@tromey.com>
9633
9634 * dwarf2read.h (die_info_ptr): Remove typedef.
9635
4fc6c0d5
TT
96362020-02-08 Tom Tromey <tom@tromey.com>
9637
9638 * dwarf2read.c (read_call_site_scope)
9639 (handle_data_member_location, dwarf2_add_member_fn)
9640 (mark_common_block_symbol_computed, read_common_block)
9641 (attr_to_dynamic_prop, partial_die_info::read)
9642 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9643 (dwarf2_symbol_mark_computed, set_die_type): Update.
9644 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9645 method.
9646 (attr_form_is_block): Don't declare.
9647 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9648
cd6c91b4
TT
96492020-02-08 Tom Tromey <tom@tromey.com>
9650
9651 * dwarf2read.c (dwarf2_find_base_address, )
9652 (read_call_site_scope, rust_containing_type)
9653 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9654 (handle_data_member_location, dwarf2_add_member_fn)
9655 (get_alignment, read_structure_type, process_structure_scope)
9656 (mark_common_block_symbol_computed, read_common_block)
9657 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9658 (partial_die_info::read, read_attribute_value, new_symbol)
9659 (lookup_die_type, dwarf2_get_ref_die_offset)
9660 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9661 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9662 (dwarf2_symbol_mark_computed): Update.
9663 * dwarf2/attribute.h (struct attribute) <value_as_address,
9664 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9665 methods.
9666 (value_as_address, attr_form_is_section_offset)
9667 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9668 * dwarf2/attribute.c (attribute::value_as_address)
9669 (attribute::form_is_section_offset, attribute::form_is_constant)
9670 (attribute::form_is_ref): Now methods.
9671
162dce55
TT
96722020-02-08 Tom Tromey <tom@tromey.com>
9673
9674 * dwarf2read.c (struct attribute, DW_STRING)
9675 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9676 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9677 (attr_form_is_block, attr_form_is_section_offset)
9678 (attr_form_is_constant, attr_form_is_ref): Move.
9679 * dwarf2/attribute.h: New file.
9680 * dwarf2/attribute.c: New file, from dwarf2read.c.
9681 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9682
3054dd54
TT
96832020-02-08 Tom Tromey <tom@tromey.com>
9684
9685 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9686 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9687 Move.
9688 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9689 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9690 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9691 abbrev.c.
9692 * dwarf2/abbrev.h: New file.
9693 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9694 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9695
96b79293
TT
96962020-02-08 Tom Tromey <tom@tromey.com>
9697
9698 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9699 (dwarf2_section_size, dwarf2_get_section_info)
9700 (create_signatured_type_table_from_debug_names)
9701 (create_addrmap_from_aranges, read_debug_names_from_section)
9702 (get_gdb_index_contents_from_section, read_comp_unit_head)
9703 (error_check_comp_unit_head, read_abbrev_offset)
9704 (create_debug_type_hash_table, init_cu_die_reader)
9705 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9706 (read_comp_units_from_section, create_cus_hash_table)
9707 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9708 (create_dwp_v2_section, dwarf2_rnglists_process)
9709 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9710 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9711 (read_indirect_string_from_dwz, read_addr_index_1)
9712 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9713 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9714 (fill_in_loclist_baton): Update.
9715 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9716 get_containing_section, get_bfd_owner, get_bfd_section,
9717 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9718 (dwarf2_read_section, get_section_name, get_section_file_name)
9719 (get_containing_section, get_section_bfd_owner)
9720 (get_section_bfd_section, get_section_name, get_section_file_name)
9721 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9722 declare.
9723 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9724 (dwarf2_section_info::get_bfd_owner)
9725 (dwarf2_section_info::get_bfd_section)
9726 (dwarf2_section_info::get_name)
9727 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9728 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9729 (dwarf2_section_info::read): Now methods.
9730 * dwarf-index-write.c (class debug_names): Update.
9731
2c86cff9
TT
97322020-02-08 Tom Tromey <tom@tromey.com>
9733
9734 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9735 Move to dwarf2/section.h.
9736 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9737 (get_section_bfd_section, get_section_name)
9738 (get_section_file_name, get_section_id, get_section_flags)
9739 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9740 dwarf2/section.c.
9741 * dwarf2/section.h: New file.
9742 * dwarf2/section.c: New file, from dwarf2read.c.
9743 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9744
f4382c45
TT
97452020-02-08 Tom Tromey <tom@tromey.com>
9746
9747 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9748 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9749 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9750 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9751 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9752 * dwarf2/leb.h: New file, from dwarf2read.c.
9753 * dwarf2/leb.c: New file, from dwarf2read.c.
9754 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9755 Remove.
9756 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9757 (COMMON_SFILES): Add dwarf2/leb.c.
9758
01840b7a
JB
97592020-02-08 Joel Brobecker <brobecker@adacore.com>
9760
9761 GDB 9.1 released.
9762
dfcb27e4
IB
97632020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9764
9765 PR gdb/25190:
aac66a4c
SM
9766 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9767 * gdb/remote.c (remote_console_output): Update.
9768 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9769 (ui_file_puts): ...this.
9770 * gdb/ui-file.h (ui_file_puts): Add declaration.
9771 * gdb/utils.c (emit_style_escape): Update.
9772 (flush_wrap_buffer): Update.
9773 (fputs_maybe_filtered): Update.
9774 (fputs_unfiltered): Add function.
dfcb27e4 9775
faa17681
IB
97762020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9777
aac66a4c
SM
9778 * gdb/event-loop.c (gdb_wait_for_event): Update.
9779 * gdb/printcmd.c (printf_command): Update.
9780 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9781 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9782 (gdb_os_flush_stderr): Update.
9783 * gdb/remote.c (remote_console_output): Update.
9784 * gdb/ui-file.c (gdb_flush): Rename to...
9785 (ui_file_flush): ...this.
9786 (stderr_file::write): Update.
9787 (stderr_file::puts): Update.
9788 * gdb/ui-file.h (gdb_flush): Rename to...
9789 (ui_file_flush): ...this.
9790 * gdb/utils.c (gdb_flush): Add function.
9791 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9792
5abbbe1d
TT
97932020-02-07 Tom Tromey <tromey@adacore.com>
9794
9795 PR breakpoints/24915:
9796 * source.c (find_and_open_source): Do not check basenames_may_differ.
9797
919adfe8
TT
97982020-02-07 Tom Tromey <tom@tromey.com>
9799
9800 * README: Update gdbserver documentation.
9801 * gdbserver: Move to top level.
9802 * configure.tgt (build_gdbserver): Remove.
9803 * configure.ac: Remove --enable-gdbserver.
9804 * configure: Rebuild.
9805 * Makefile.in (distclean): Don't mention gdbserver.
9806
1d5d29e7
SV
98072020-02-06 Shahab Vahedi <shahab@synopsys.com>
9808
9809 * source-cache.c (source_cache::ensure): Surround
9810 get_plain_source_lines with a try/catch.
9811 (source_cache::get_line_charpos): Get rid of try/catch
9812 and only check for the return value of "ensure".
9813 * tui/tui-source.c (tui_source_window::set_contents):
9814 Simplify "nlines" calculation.
9815
6eb1129c
SV
98162020-02-06 Shahab Vahedi <shahab@synopsys.com>
9817
9818 * MAINTAINERS (Write After Approval): Add myself.
9819
c6a42d11
CB
98202020-02-05 Christian Biesinger <cbiesinger@google.com>
9821
9822 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9823 function call.
9824
c8ecdda6
CB
98252020-02-05 Christian Biesinger <cbiesinger@google.com>
9826
9827 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9828
f6480e70
MR
98292020-02-05 Maciej W. Rozycki <macro@wdc.com>
9830
9831 * nat/riscv-linux-tdesc.h: New file.
9832 * nat/riscv-linux-tdesc.c: New file, taking code from...
9833 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9834 ... here.
9835 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9836 NATDEPFILES.
9837
dcc9fbc6
AB
98382020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9839
9840 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9841 we don't set the fake simulator ptid to the null_ptid.
9842
719546c4
SM
98432020-02-03 Simon Marchi <simon.marchi@efficios.com>
9844
9845 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9846 * gdbthread.h (class thread_info) <resumed>: Likewise.
9847 * infrun.c (resume_1): Likewise.
9848 (proceed): Likewise.
9849 (infrun_thread_stop_requested): Likewise.
9850 (stop_all_threads): Likewise.
9851 (handle_inferior_event): Likewise.
9852 (restart_threads): Likewise.
9853 (finish_step_over): Likewise.
9854 (keep_going_stepped_thread): Likewise.
9855 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9856 (linux_handle_extended_wait): Likewise.
9857 * record-btrace.c (get_thread_current_frame_id): Likewise.
9858 * record-full.c (record_full_wait_1): Likewise.
9859 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9860 * target.c (target_resume): Likewise.
9861 * thread.c (set_running_thread): Likewise.
9862
e409c542
AKS
98632020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9864
9865 * f-valprint.c (f77_print_array_1): Changed datatype of index
9866 variable to LONGEST from int to enable it to contain bound
9867 values correctly.
9868
ee98c0da
MR
98692020-02-03 Maciej W. Rozycki <macro@wdc.com>
9870
9871 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9872 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9873 offsets according to FLEN determined.
9874 (riscv_linux_nat_target::read_description): Determine FLEN
9875 dynamically.
9876 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9877 according to FLEN determined.
9878 (riscv_linux_nat_target::store_registers): Likewise.
9879
aa66aac4
SV
98802020-02-01 Shahab Vahedi <shahab@synopsys.com>
9881
9882 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9883 when reg->group is empty and reggroup is not.
9884
fd9faca8
TT
98852020-01-31 Tom Tromey <tromey@adacore.com>
9886
9887 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9888 Call beneath target's mourn_inferior after unpushing.
9889
42330a68
AB
98902020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9891
9892 PR tui/9765
9893 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9894 have enough lines to fill the screen, still return the lowest
9895 address we found.
9896
7a27a45b
AB
98972020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9898
9899 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9900 '-', '<', and '>' commands.
9901
c47f70e2
PA
99022020-01-29 Pedro Alves <palves@redhat.com>
9903 Sergio Durigan Junior <sergiodj@redhat.com>
9904
9905 * infcmd.c (construct_inferior_arguments): Assert that
9906 'argc' is greater than 0.
9907
5133a315
LM
99082020-01-29 Luis Machado <luis.machado@linaro.org>
9909
9910 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9911 (BRK_INSN_MASK): Define to 0xd4200000.
9912 (aarch64_program_breakpoint_here_p): New function.
9913 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9914 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9915 breakpoint.c.
9916 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9917 breakpoint.h
9918 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9919 call gdbarch_program_breakpoint_here_p.
9920 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9921 default_program_breakpoint_here_p, changed return type to bool and
9922 simplified.
9923 * breakpoint.h (program_breakpoint_here): Moved prototype to
9924 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9925 return type to bool.
9926 * gdbarch.c: Regenerate.
9927 * gdbarch.h: Regenerate.
9928 * gdbarch.sh (program_breakpoint_here_p): New method.
9929 * infrun.c (handle_signal_stop): Call
9930 gdbarch_program_breakpoint_here_p.
9931
168f8c6b
TT
99322020-01-26 Tom Tromey <tom@tromey.com>
9933
9934 * ctfread.c (struct ctf_fp_info): Reindent.
9935 (_initialize_ctfread): Remove.
9936
128a391f
TT
99372020-01-26 Tom Tromey <tom@tromey.com>
9938
9939 * psymtab.c (partial_map_expand_apply)
9940 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9941 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9942 (psym_print_stats, psym_expand_symtabs_for_function)
9943 (psym_map_symbol_filenames, psym_map_matching_symbols)
9944 (psym_expand_symtabs_matching)
9945 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9946 (maintenance_check_psymtabs): Use new methods.
9947 * psympriv.h (struct partial_symtab) <readin_p,
9948 get_compunit_symtab>: New methods.
9949 <readin, compunit_symtab>: Remove members.
9950 (struct standard_psymtab): New.
9951 (struct legacy_psymtab): Derive from standard_psymtab.
9952 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9953 standard_psymtab.
9954 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9955
0494dbec
TT
99562020-01-26 Tom Tromey <tom@tromey.com>
9957
9958 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9959 read_dependencies. Add assert.
9960 * psymtab.c (partial_symtab::read_dependencies): New method.
9961 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9962 method.
9963 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9964 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9965 read_dependencies.
9966 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9967 Add assert.
9968
8566b89b
TT
99692020-01-26 Tom Tromey <tom@tromey.com>
9970
9971 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9972 Call expand_psymtab.
9973 (xcoff_read_symtab): Call expand_psymtab.
9974 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9975 legacy_expand_psymtab.
9976 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9977 method.
9978 (struct legacy_psymtab) <expand_psymtab>: Implement.
9979 <legacy_expand_psymtab>: New member.
9980 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9981 (parse_partial_symbols): Set legacy_expand_psymtab.
9982 (psymtab_to_symtab_1): Change argument order. Call
9983 expand_psymtab.
9984 (new_psymtab): Set legacy_expand_psymtab.
9985 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9986 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9987 expand_psymtab.
9988 (dwarf2_psymtab::expand_psymtab): Rename from
9989 psymtab_to_symtab_1. Call expand_psymtab.
9990 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9991 (dbx_end_psymtab): Likewise.
9992 (dbx_psymtab_to_symtab_1): Change argument order. Call
9993 expand_psymtab.
9994 (dbx_read_symtab): Call expand_psymtab.
9995 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9996 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9997 (ctf_psymtab::read_symtab): Call expand_psymtab.
9998
077cbab2
TT
99992020-01-26 Tom Tromey <tom@tromey.com>
10000
10001 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10002 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10003 messages.
10004 * mdebugread.c (mdebug_read_symtab): Remove prints.
10005 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10006 assert.
10007 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10008
891813be
TT
100092020-01-26 Tom Tromey <tom@tromey.com>
10010
10011 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10012 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10013 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10014 legacy_symtab.
10015 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10016 * psymtab.c (psymtab_to_symtab): Call method.
10017 (dump_psymtab): Update.
10018 * psympriv.h (struct partial_symtab): Add virtual destructor.
10019 <read_symtab>: New method.
10020 (struct legacy_symtab): New.
10021 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10022 (struct pst_map) <pst>: Now a legacy_psymtab.
10023 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10024 (new_psymtab): Use legacy_psymtab.
10025 * dwarf2read.h (struct dwarf2_psymtab): New.
10026 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10027 * dwarf2read.c (dwarf2_create_include_psymtab)
10028 (dwarf2_build_include_psymtabs, create_type_unit_group)
10029 (create_partial_symtab, process_psymtab_comp_unit_reader)
10030 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10031 (set_partial_user): Use dwarf2_psymtab.
10032 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10033 (psymtab_to_symtab_1, process_full_comp_unit)
10034 (process_full_type_unit, dwarf2_ranges_read)
10035 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10036 (dwarf_decode_lines): Use dwarf2_psymtab.
10037 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10038 (add_address_entry_worker, write_one_signatured_type)
10039 (recursively_count_psymbols, recursively_write_psymbols)
10040 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10041 (write_debug_names): Likewise.
10042 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10043 <pst>: Now a legacy_psymtab.
10044 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10045 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10046 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10047 * ctfread.c (struct ctf_psymtab): New.
10048 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10049 ctf_psymtab.
10050 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10051 (create_partial_symtab): Return a ctf_psymtab.
10052 (scan_partial_symbols): Update.
10053
c3693a1d
TT
100542020-01-26 Tom Tromey <tom@tromey.com>
10055
10056 * xcoffread.c (xcoff_start_psymtab): Use new.
10057 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10058 renamed from start_psymtab_common.
10059 * psympriv.h (struct partial_symtab): Add new constructor.
10060 (start_psymtab_common): Don't declare.
10061 * mdebugread.c (parse_partial_symbols): Use new.
10062 * dwarf2read.c (create_partial_symtab): Use new.
10063 * dbxread.c (start_psymtab): Use new.
10064 * ctfread.c (create_partial_symtab): Use new.
10065
32caafd0
TT
100662020-01-26 Tom Tromey <tom@tromey.com>
10067
10068 * xcoffread.c (xcoff_end_psymtab): Use new.
10069 * psymtab.c (start_psymtab_common): Use new.
10070 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10071 Update.
10072 * psympriv.h (struct partial_symtab): Add parameters to
10073 constructor. Don't inline.
10074 (allocate_psymtab): Don't declare.
10075 * mdebugread.c (new_psymtab): Use new.
10076 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10077 * dbxread.c (dbx_end_psymtab): Use new.
10078
abaa2f23
TT
100792020-01-26 Tom Tromey <tom@tromey.com>
10080
10081 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10082 allocate_psymtab. Update documentation.
10083 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10084 allocate_psymtab. Do not use new.
10085 (allocate_psymtab): Use new. Update.
10086
6d94535f
TT
100872020-01-26 Tom Tromey <tom@tromey.com>
10088
10089 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10090 * psymtab.c (psym_print_stats): Update.
10091 * psympriv.h (struct partial_symtab) <readin,
10092 psymtabs_addrmap_supported, anonymous>: Now bool.
10093 * mdebugread.c (psymtab_to_symtab_1): Update.
10094 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10095 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10096 (process_full_comp_unit, process_full_type_unit): Update.
10097 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10098 * ctfread.c (psymtab_to_symtab): Update.
10099
6f17252b
TT
101002020-01-26 Tom Tromey <tom@tromey.com>
10101
10102 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10103 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10104 * psymtab.c (psymtab_storage): Delete psymtabs.
10105 (psymtab_storage::allocate_psymtab): Use new.
10106 (psymtab_storage::discard_psymtab): Use delete.
10107 * psympriv.h (struct partial_symtab): Add constructor and
10108 initializers.
10109
f6f1cebc
TT
101102020-01-26 Tom Tromey <tom@tromey.com>
10111
10112 * machoread.c: Do not include psympriv.h.
10113
e47e48f6
PW
101142020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10115
10116 * NEWS: Mention the new option and the set/show commands.
10117
a2fedca9
PW
101182020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10119
10120 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10121 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10122 (validate_exec_file): New variables, enums, functions.
10123 (exec_file_locate_attach, print_section_info): Style the filenames.
10124 (_initialize_exec): Install show_exec_file_mismatch_command and
10125 set_exec_file_mismatch_command.
10126 * gdbcore.h (validate_exec_file): Declare.
10127 * infcmd.c (attach_command): Call validate_exec_file.
10128 * remote.c ( remote_target::remote_add_inferior): Likewise.
10129
7ffa82e1
AB
101302020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10131
10132 * frame.c (find_frame_sal): Move call to get_next_frame into more
10133 inner scope.
10134 * inline-frame.c (inilne_state) <inline_state>: Update argument
10135 types.
10136 (inilne_state) <skipped_symbol>: Rename to...
10137 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10138 (skip_inline_frames): Build vector of skipped symbols and use this
10139 to reate the inline_state.
10140 (inline_skipped_symbol): Add a comment and some assertions, fetch
10141 skipped symbol from the list.
10142
3d92a3e3
AB
101432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10144
10145 * buildsym.c (lte_is_less_than): Delete.
10146 (buildsym_compunit::end_symtab_with_blockvector): Create local
10147 lambda function to sort line table entries, and use
10148 std::stable_sort instead of std::sort.
10149 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10150 markers when looking for a previous line.
10151
94a72be7
AB
101522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10153
10154 * dwarf2read.c (lnp_state_machine::record_line): Include
10155 end_sequence parameter in debug print out. Record the line if we
10156 are at an end_sequence marker even if it's not the start of a
10157 statement.
10158 * symmisc.c (maintenance_print_one_line_table): Print end of
10159 sequence markers with 'END' not '0'.
10160
53af73bf
PA
101612020-01-24 Pedro Alves <palves@redhat.com>
10162
10163 PR gdb/25410
10164 * thread.c (scoped_restore_current_thread::restore): Use
10165 switch_to_inferior_no_thread.
10166 * exec.c: Include "progspace-and-thread.h".
10167 (add_target_sections, remove_target_sections):
10168 scoped_restore_current_pspace_and_thread instead of
10169 scoped_restore_current_thread.
10170 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10171 and aspace to the inferior before calling clone_program_space.
10172 Remove stale comment.
10173
3050c6f4
CB
101742020-01-24 Christian Biesinger <cbiesinger@google.com>
10175
10176 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10177 (arm_netbsd_nat_target::fetch_registers): ...this.
10178 (arm_nbsd_nat_target::store_registers): Rename to...
10179 (arm_netbsd_nat_target::store_registers): ...this.
10180
73685c7e
CB
101812020-01-24 Christian Biesinger <cbiesinger@google.com>
10182
10183 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10184 register_t.
10185
89203d40
CB
101862020-01-24 Christian Biesinger <cbiesinger@google.com>
10187
10188 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10189 Update comment.
10190 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10191 Likewise.
10192 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10193 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10194 the correct replacement (iterate_over_regset_sections).
10195 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10196 Update comment.
10197
1ba1ac88
AB
101982020-01-24 Graham Markall <graham.markall@embecosm.com>
10199
10200 PR gdb/23718
10201 * gdb/python/python.c (execute_gdb_command): Call
10202 async_enable_stdin in catch block.
10203
f3364a6d
AB
102042020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10205
10206 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10207 SWITCH_THRU_ALL_UIS.
10208
733d0a67
AB
102092020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10210
10211 PR tui/9765
10212 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10213 comment, add extra parameter, and update to store previous symbol
10214 when appropriate.
10215 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10216 add extra parameter.
10217 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10218 remove unneeded parameter, add try/catch around gdb_print_insn,
10219 rewrite to add items to asm_lines vector.
10220 (tui_find_backward_disassembly_start_address): New function.
10221 (tui_find_disassembly_address): Updated throughout.
10222 (tui_disasm_window::set_contents): Update for changes to
10223 tui_disassemble.
10224 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10225 number of lines to scroll.
10226
b3b3bada
SM
102272020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10228
10229 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10230 (SECT_OFF_DATA): Likewise.
10231 (SECT_OFF_RODATA): Likewise.
10232 (SECT_OFF_TEXT): Likewise.
10233 (SECT_OFF_BSS): Likewise.
10234 (struct objfile) <text_section_offset, data_section_offset>: New
10235 methods.
10236 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10237 objfile::text_section_offset.
10238 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10239 * coffread.c (coff_symtab_read): Likewise.
10240 (enter_linenos): Likewise.
10241 (process_coff_symbol): Likewise.
10242 * ctfread.c (get_objfile_text_range): Likewise.
10243 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10244 Use objfile::data_section_offset.
10245 * dwarf2-frame.c (execute_cfa_program): Use
10246 objfile::text_section_offset.
10247 (dwarf2_frame_find_fde): Likewise.
10248 * dwarf2read.c (create_addrmap_from_index): Likewise.
10249 (create_addrmap_from_aranges): Likewise.
10250 (dw2_find_pc_sect_compunit_symtab): Likewise.
10251 (process_psymtab_comp_unit_reader): Likewise.
10252 (add_partial_symbol): Likewise.
10253 (add_partial_subprogram): Likewise.
10254 (process_full_comp_unit): Likewise.
10255 (read_file_scope): Likewise.
10256 (read_func_scope): Likewise.
10257 (read_lexical_block_scope): Likewise.
10258 (read_call_site_scope): Likewise.
10259 (dwarf2_rnglists_process): Likewise.
10260 (dwarf2_ranges_process): Likewise.
10261 (dwarf2_ranges_read): Likewise.
10262 (dwarf_decode_lines_1): Likewise.
10263 (new_symbol): Likewise.
10264 (dwarf2_fetch_die_loc_sect_off): Likewise.
10265 (dwarf2_per_cu_text_offset): Likewise.
10266 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10267 * hppa-tdep.c (read_unwind_info): Likewise.
10268 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10269 * psympriv.h (struct partial_symtab): Likewise.
10270 * psymtab.c (find_pc_sect_psymtab): Likewise.
10271 * solib-svr4.c (enable_break): Likewise.
10272 * stap-probe.c (relocate_address): Use
10273 objfile::data_section_offset.
10274 * xcoffread.c (enter_line_range): Use
10275 objfile::text_section_offset.
10276 (read_xcoff_symtab): Likewise.
10277
ab53f382
SM
102782020-01-23 Simon Marchi <simon.marchi@efficios.com>
10279
10280 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10281 declaration to narrower scopes.
10282
e7eee665
SM
102832020-01-23 Simon Marchi <simon.marchi@efficios.com>
10284
10285 * darwin-nat.h (struct darwin_exception_msg, enum
10286 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10287 Move up.
10288 (class darwin_nat_target) <wait_1, check_new_threads,
10289 decode_exception_message, decode_message, stop_inferior,
10290 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10291 * darwin-nat.c (darwin_check_new_threads): Rename to...
10292 (darwin_nat_target::check_new_threads): ... this.
10293 (darwin_suspend_inferior_it): Remove.
10294 (darwin_decode_exception_message): Rename to...
10295 (darwin_nat_target::decode_exception_message): ... this.
10296 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10297 (darwin_decode_message): Rename to...
10298 (darwin_nat_target::decode_message): ... this.
10299 (cancel_breakpoint): Rename to...
10300 (darwin_nat_target::cancel_breakpoint): ... this.
10301 (darwin_wait): Rename to...
10302 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10303 instead of iterate_over_inferiors.
10304 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10305 (darwin_stop_inferior): Rename to...
10306 (darwin_nat_target::stop_inferior): ... this.
10307 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10308 (darwin_init_thread_list): Rename to...
10309 (darwin_nat_target::init_thread_list): ... this.
10310 (darwin_ptrace_him): Rename to...
10311 (darwin_nat_target::ptrace_him): ... this.
10312 (darwin_nat_target::create_inferior): Pass lambda function to
10313 fork_inferior.
10314 (darwin_nat_target::detach): Call stop_inferior instead of
10315 darwin_stop_inferior.
10316 * fork-inferior.h (fork_inferior): Change init_trace_fun
10317 parameter to gdb::function_view.
10318 * fork-inferior.c (fork_inferior): Likewise.
10319
c162ed3e
HD
103202020-01-23 Hannes Domani <ssbssa@yahoo.de>
10321
10322 * i386-cygwin-tdep.c (core_process_module_section): Update.
10323 * windows-nat.c (struct lm_info_windows): Add text_offset.
10324 (windows_xfer_shared_libraries): Update.
10325 * windows-tdep.c (windows_xfer_shared_library):
10326 Add text_offset_cached argument.
10327 * windows-tdep.h (windows_xfer_shared_library): Update.
10328
a1237872
SM
103292020-01-21 Simon Marchi <simon.marchi@efficios.com>
10330
10331 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10332
b3ee6dd9
SM
103332020-01-21 Simon Marchi <simon.marchi@efficios.com>
10334
10335 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10336 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10337 replace with range-based for.
10338 (gdbsim_interrupt_inferior): Remove.
10339 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10340 with a range-based for. Inline code from
10341 gdbsim_interrupt_inferior.
10342
f9fac3c8
SM
103432020-01-21 Simon Marchi <simon.marchi@efficios.com>
10344
10345 * infrun.c (proceed): Fix indentation.
10346
f6474de9
TT
103472020-01-21 Tom Tromey <tromey@adacore.com>
10348
10349 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10350 * python/python.c (python_extension_ops): Update.
10351 (gdbpy_colorize): New function.
10352 * python/lib/gdb/__init__.py (colorize): New function.
10353 * extension.h (ext_lang_colorize): Declare.
10354 * extension.c (ext_lang_colorize): New function.
10355 * extension-priv.h (struct extension_language_ops) <colorize>: New
10356 member.
10357 * cli/cli-style.c (_initialize_cli_style): Update help text.
10358
f0c702d4
LM
103592020-01-21 Luis Machado <luis.machado@linaro.org>
10360
10361 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10362 <cond>: Change type to bool.
10363 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10364 (aarch64_displaced_step_cb): Likewise.
10365 (aarch64_displaced_step_tb): Likewise.
10366
1ab139e5
LM
103672020-01-21 Luis Machado <luis.machado@linaro.org>
10368
10369 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10370 output.
10371
0c271889
LM
103722020-01-21 Luis Machado <luis.machado@linaro.org>
10373
10374 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10375 <pc_adjust>: Adjust the documentation.
10376 (aarch64_displaced_step_fixup): Check if PC really moved before
10377 adjusting it.
10378
4d89c1c7
TT
103792020-01-19 Tom Tromey <tom@tromey.com>
10380
10381 * disasm.c (~gdb_disassembler): New destructor.
10382 (gdb_buffered_insn_length): Call disassemble_free_target.
10383 * disasm.h (class gdb_disassembler): Declare destructor. Use
10384 DISABLE_COPY_AND_ASSIGN.
10385
c0ab21c2
TT
103862020-01-19 Tom Tromey <tom@tromey.com>
10387
10388 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10389 (die_reader_func_ftype): Remove.
10390 (cutu_reader): New class.
10391 (dw2_get_file_names_reader): Remove "data" parameter.
10392 (dw2_get_file_names): Use cutu_reader.
10393 (create_debug_type_hash_table): Update.
10394 (read_cutu_die_from_dwo): Update comment.
10395 (lookup_dwo_unit): Add dwo_name parameter.
10396 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10397 die_reader_func_ftype and data parameters.
10398 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10399 Remove die_reader_func_ftype and data parameters.
10400 (~cutu_reader): New; from init_cutu_and_read_dies.
10401 (cutu_reader::cutu_reader): Rename from
10402 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10403 and data parameters.
10404 (init_cutu_and_read_dies_simple): Remove.
10405 (struct process_psymtab_comp_unit_data): Remove.
10406 (process_psymtab_comp_unit_reader): Remove data parameter; add
10407 want_partial_unit and pretend_language parameters.
10408 (process_psymtab_comp_unit): Use cutu_reader.
10409 (build_type_psymtabs_reader): Remove data parameter.
10410 (build_type_psymtabs_1): Use cutu_reader.
10411 (process_skeletonless_type_unit): Likewise.
10412 (load_partial_comp_unit_reader): Remove.
10413 (load_partial_comp_unit): Use cutu_reader.
10414 (load_full_comp_unit_reader): Remove.
10415 (load_full_comp_unit): Use cutu_reader.
10416 (struct create_dwo_cu_data): Remove.
10417 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10418 dwo_unit parameters.
10419 (create_cus_hash_table): Use cutu_reader.
10420 (struct dwarf2_read_addr_index_data): Remove.
10421 (dwarf2_read_addr_index_reader): Remove.
10422 (dwarf2_read_addr_index): Use cutu_reader.
10423 (read_signatured_type_reader): Remove.
10424 (read_signatured_type): Use cutu_reader.
10425
45bbae5c
TT
104262020-01-19 Tom Tromey <tom@tromey.com>
10427
10428 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10429 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10430 (tui_wrefresh): Declare.
10431 * tui/tui-wingeneral.c (suppress_output): New global.
10432 (tui_suppress_output, ~tui_suppress_output): New constructor and
10433 destructor.
10434 (tui_wrefresh): New function.
10435 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10436 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10437 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10438 method.
10439 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10440 tui_wrefresh.
10441 (tui_data_window::no_refresh): New method.
10442 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10443 (tui_reg_command): Use tui_suppress_output
10444 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10445 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10446 method.
10447 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10448
4f13c1c0
TT
104492020-01-19 Tom Tromey <tom@tromey.com>
10450
10451 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10452 Handle case where symtab is null.
10453
fa47e446
SM
104542020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10455
10456 * linux-fork.c (one_fork_p): Simplify.
10457
26f42329
SM
104582020-01-17 Simon Marchi <simon.marchi@efficios.com>
10459
10460 * top.c (struct qt_args): Remove.
10461 (kill_or_detach): Change return type to void, replace `void *`
10462 parameter with a proper one.
10463 (print_inferior_quit_action): Likewise.
10464 (quit_confirm): Use range-based for loop to iterate over inferiors.
10465 (quit_force): Likewise.
10466
a9ac81b1
SM
104672020-01-17 Simon Marchi <simon.marchi@efficios.com>
10468
10469 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10470 `void *` parameter with proper parameters.
10471 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10472 (print_one_inferior): Change return type to void, replace `void *`
10473 parameter with proper parameters.
10474 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10475 inferiors.
10476 (get_other_inferior): Remove.
10477 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10478 inferiors.
10479
788eca49
SM
104802020-01-17 Simon Marchi <simon.marchi@efficios.com>
10481
10482 * mi/mi-interp.c (report_initial_inferior): Remove.
10483 (mi_interp::init): Use range-based for to iterate over inferiors.
10484
d9bc85b6
SM
104852020-01-17 Simon Marchi <simon.marchi@efficios.com>
10486
10487 * python/py-inferior.c (build_inferior_list): Remove.
10488 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10489
40c94099
CB
104902020-01-16 Christian Biesinger <cbiesinger@google.com>
10491
10492 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10493 (btrace_stitch_trace): Likewise.
10494 * charset.c (intermediate_encoding): Likewise (vaild).
10495 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10496 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10497 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10498
e0cdfe3c
HD
104992020-01-16 Hannes Domani <ssbssa@yahoo.de>
10500
10501 * windows-tdep.c (windows_get_tlb_type):
10502 Add rtl_user_process_parameters type.
10503
790f1718 105042020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10505 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10506
10507 PR build/24805
10508 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10509 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10510 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10511 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10512 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10513 (ps_plog): Redeclare exported functions with default visibility.
10514
3112ed97
NA
105152020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10516
10517 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10518 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10519
8dc3273e
SM
105202020-01-15 Simon Marchi <simon.marchi@efficios.com>
10521
10522 * infcmd.c (post_create_inferior): Use get_thread_regcache
10523 instead of get_current_regcache.
10524
ff47f4f0
TT
105252020-01-14 Tom Tromey <tom@tromey.com>
10526
10527 PR symtab/12535:
10528 * python/python.c (gdbpy_decode_line): Treat empty string the same
10529 as no argument.
10530
975f45b7
TT
105312020-01-14 Tom Tromey <tom@tromey.com>
10532
10533 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10534
25e57356
TT
105352020-01-14 Tom Tromey <tom@tromey.com>
10536
10537 * nat/linux-btrace.c: Don't include <config.h>.
10538 * nat/linux-ptrace.c: Don't include <config.h>.
10539 * nat/x86-linux-dregs.c: Don't include <config.h>.
10540
05ea2a05
TT
105412020-01-14 Tom Tromey <tom@tromey.com>
10542
10543 * configure: Rebuild.
10544 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10545
01027315
TT
105462020-01-14 Tom Tromey <tom@tromey.com>
10547
10548 * nat/x86-linux-dregs.c: Include configh.h.
10549 * nat/linux-ptrace.c: Include configh.h.
10550 * nat/linux-btrace.c: Include configh.h.
10551 * defs.h: Include config.h, bfd.h.
10552 * configure.ac: Don't source common.host.
10553 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10554 * configure: Rebuild.
10555 * acinclude.m4: Update path.
10556 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10557 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10558 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10559 (CLIBS): Add LIBSUPPORT.
10560 (CDEPS): Likewise.
10561 (COMMON_SFILES): Remove gdbsupport files.
10562 (HFILES_NO_SRCDIR): Likewise.
10563 (stamp-version): Update path to create-version.sh.
10564 (ALLDEPFILES): Remove gdbsupport files.
10565
b2ceabe8
TT
105662020-01-14 Tom Tromey <tom@tromey.com>
10567
10568 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10569 USE_WIN32API when needed.
10570 * configure.ac (USE_WIN32API): Don't define.
10571 (WIN32LIBS): Use WIN32APILIBS.
10572 * configure: Rebuild.
10573
25c51f71
TT
105742020-01-14 Tom Tromey <tom@tromey.com>
10575
10576 * configure: Rebuild.
10577 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10578
717c684d
BE
105792020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10580
10581 * skip.c (skip_function_command): Make skip w/o arguments use the
10582 name of the inlined function if pc is inside any inlined function.
10583
7da6a5b9
LM
105842020-01-14 Luis Machado <luis.machado@linaro.org>
10585
10586 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10587 * infrun.c (resume_1): Likewise.
10588 (handle_inferior_event): Remove stale comment.
10589 * linux-nat.c (linux_nat_target::resume): Update comments.
10590 (save_stop_reason): Likewise.
10591 (linux_nat_filter_event): Likewise.
10592 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10593
44e4c775
AB
105942020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10595
10596 * elfread.c (record_minimal_symbol): Set section index to 0 for
10597 non-allocatable sections.
10598
18a8505e
AT
10599
106002020-01-13 Ali Tamur <tamur@google.com>
10601
10602 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10603 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10604 to gdb::optional. Update comments.
10605 (dwo_file): Update comments.
10606 (read_attribute): Update API to take an additional out parameter,
10607 need_reprocess. This is used to mark attributes that need other
10608 attributes (e.g. str_offsets_base) for correct computation which may not
10609 have been read yet.
10610 (read_attribute_reprocess): New function declaration.
10611 (read_addr_index): Likewise.
10612 (read_dwo_str_index): Likewise.
10613 (read_stub_str_index): Likewise.
10614 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10615 (lookup_addr_base): New function definition.
10616 (lookup_ranges_base): Likewise.
10617 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10618 lookup_ranges_base.
10619 (init_cutu_and_read_dies): Update comments.
10620 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10621 unit. This is used to inherit parent's str_offsets_base and addr_base.
10622 Update comments.
10623 (init_cutu_and_read_dies_simple): Reflect API changes.
10624 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10625 (create_cus_hash_table): Change API to take parent compile unit.
10626 Reflect API changes.
10627 (open_and_init_dwo_file): Reflect API changes.
10628 (dwarf2_get_pc_bounds): Update comments.
10629 (dwarf2_record_block_ranges): Likewise.
10630 (read_full_die_1): Change implementation to reprocess attributes that
10631 need str_offsets_base and addr_base.
10632 (partial_die_info::read): Likewise.
10633 (read_attribute_reprocess): New function definition.
10634 (read_attribute_value): Change API to take an additional out parameter,
10635 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10636 when a non-dwo compile unit has index based attributes.
10637 (read_attribute): Reflect API changes.
10638 (read_addr_index_1): Reflect API changes. Update comments.
10639 (dwarf2_read_addr_index_data): Reflect API changes.
10640 (dwarf2_read_addr_index): Likewise.
10641 (read_str_index): Change API and implementation. This becomes a helper
10642 to be used by the new string index related methods. Update error
10643 message and comments.
10644 (read_dwo_str_index): New function definition.
10645 (read_stub_str_index): Likewise.
10646 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10647 * symfile.h (dwarf2_debug_sections): Likewise.
10648 * xcoffread.c (dwarf2_debug_sections): Likewise.
10649
0cac9354
SM
106502020-01-13 Simon Marchi <simon.marchi@efficios.com>
10651
10652 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10653 core_reg_sect type to gdb_byte *.
10654 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10655 * cris-tdep.c (fetch_core_registers): Likewise.
10656 * corelow.c (core_target::get_core_register_section): Change
10657 type of `contents` to gdb::byte_vector.
10658
9a6d629c
AB
106592020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10660
10661 * tui/tui-wingeneral.c (box_win): Position the title in the center
10662 of the border.
10663
d8b2f9e3
SM
106642020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10665
10666 * corelow.c (core_target::get_core_register_section): Use
10667 std::vector instead of alloca.
10668
bb564c58
SM
106692020-01-13 Simon Marchi <simon.marchi@efficios.com>
10670
10671 * warning.m4: Add -Wmissing-declarations to build_warnings.
10672 * configure: Re-generate.
10673
6b366111
SM
106742020-01-13 Simon Marchi <simon.marchi@efficios.com>
10675
10676 * python/python.c (init__gdb_module): Add declaration.
10677
6c265988
SM
106782020-01-13 Simon Marchi <simon.marchi@efficios.com>
10679
10680 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10681 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10682 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10683 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10684 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10685 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10686 * ada-exp.y (_initialize_ada_exp): Add declaration.
10687 * ada-lang.c (_initialize_ada_language): Add declaration.
10688 * ada-tasks.c (_initialize_tasks): Add declaration.
10689 * agent.c (_initialize_agent): Add declaration.
10690 * aix-thread.c (_initialize_aix_thread): Add declaration.
10691 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10692 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10693 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10694 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10695 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10696 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10697 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10698 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10699 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10700 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10701 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10702 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10703 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10704 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10705 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10706 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10707 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10708 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10709 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10710 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10711 * annotate.c (_initialize_annotate): Add declaration.
10712 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10713 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10714 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10715 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10716 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10717 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10718 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10719 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10720 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10721 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10722 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10723 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10724 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10725 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10726 * auto-load.c (_initialize_auto_load): Add declaration.
10727 * auxv.c (_initialize_auxv): Add declaration.
10728 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10729 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10730 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10731 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10732 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10733 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10734 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10735 * breakpoint.c (_initialize_breakpoint): Add declaration.
10736 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10737 * btrace.c (_initialize_btrace): Add declaration.
10738 * charset.c (_initialize_charset): Add declaration.
10739 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10740 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10741 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10742 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10743 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10744 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10745 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10746 * coffread.c (_initialize_coffread): Add declaration.
10747 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10748 * compile/compile.c (_initialize_compile): Add declaration.
10749 * complaints.c (_initialize_complaints): Add declaration.
10750 * completer.c (_initialize_completer): Add declaration.
10751 * copying.c (_initialize_copying): Add declaration.
10752 * corefile.c (_initialize_core): Add declaration.
10753 * corelow.c (_initialize_corelow): Add declaration.
10754 * cp-abi.c (_initialize_cp_abi): Add declaration.
10755 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10756 * cp-support.c (_initialize_cp_support): Add declaration.
10757 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10758 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10759 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10760 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10761 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10762 * ctfread.c (_initialize_ctfread): Add declaration.
10763 * d-lang.c (_initialize_d_language): Add declaration.
10764 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10765 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10766 * dbxread.c (_initialize_dbxread): Add declaration.
10767 * dcache.c (_initialize_dcache): Add declaration.
10768 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10769 * disasm.c (_initialize_disasm): Add declaration.
10770 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10771 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10772 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10773 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10774 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10775 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10776 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10777 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10778 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10779 * elfread.c (_initialize_elfread): Add declaration.
10780 * exec.c (_initialize_exec): Add declaration.
10781 * extension.c (_initialize_extension): Add declaration.
10782 * f-lang.c (_initialize_f_language): Add declaration.
10783 * f-valprint.c (_initialize_f_valprint): Add declaration.
10784 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10785 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10786 * filesystem.c (_initialize_filesystem): Add declaration.
10787 * findcmd.c (_initialize_mem_search): Add declaration.
10788 * findvar.c (_initialize_findvar): Add declaration.
10789 * fork-child.c (_initialize_fork_child): Add declaration.
10790 * frame-base.c (_initialize_frame_base): Add declaration.
10791 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10792 * frame.c (_initialize_frame): Add declaration.
10793 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10794 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10795 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10796 * gcore.c (_initialize_gcore): Add declaration.
10797 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10798 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10799 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10800 * gdbarch.c (_initialize_gdbarch): Add declaration.
10801 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10802 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10803 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10804 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10805 * go-lang.c (_initialize_go_language): Add declaration.
10806 * go32-nat.c (_initialize_go32_nat): Add declaration.
10807 * guile/guile.c (_initialize_guile): Add declaration.
10808 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10809 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10810 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10811 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10812 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10813 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10814 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10815 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10816 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10817 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10818 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10819 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10820 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10821 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10822 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10823 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10824 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10825 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10826 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10827 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10828 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10829 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10830 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10831 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10832 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10833 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10834 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10835 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10836 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10837 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10838 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10839 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10840 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10841 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10842 * infcall.c (_initialize_infcall): Add declaration.
10843 * infcmd.c (_initialize_infcmd): Add declaration.
10844 * inflow.c (_initialize_inflow): Add declaration.
10845 * infrun.c (_initialize_infrun): Add declaration.
10846 * interps.c (_initialize_interpreter): Add declaration.
10847 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10848 * jit.c (_initialize_jit): Add declaration.
10849 * language.c (_initialize_language): Add declaration.
10850 * linux-fork.c (_initialize_linux_fork): Add declaration.
10851 * linux-nat.c (_initialize_linux_nat): Add declaration.
10852 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10853 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10854 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10855 * m2-lang.c (_initialize_m2_language): Add declaration.
10856 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10857 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10858 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10859 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10860 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10861 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10862 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10863 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10864 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10865 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10866 * machoread.c (_initialize_machoread): Add declaration.
10867 * macrocmd.c (_initialize_macrocmd): Add declaration.
10868 * macroscope.c (_initialize_macroscope): Add declaration.
10869 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10870 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10871 * maint.c (_initialize_maint_cmds): Add declaration.
10872 * mdebugread.c (_initialize_mdebugread): Add declaration.
10873 * memattr.c (_initialize_mem): Add declaration.
10874 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10875 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10876 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10877 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10878 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10879 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10880 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10881 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10882 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10883 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10884 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10885 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10886 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10887 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10888 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10889 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10890 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10891 * mipsread.c (_initialize_mipsread): Add declaration.
10892 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10893 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10894 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10895 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10896 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10897 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10898 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10899 * nto-procfs.c (_initialize_procfs): Add declaration.
10900 * objc-lang.c (_initialize_objc_language): Add declaration.
10901 * observable.c (_initialize_observer): Add declaration.
10902 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10903 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10904 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10905 * osabi.c (_initialize_gdb_osabi): Add declaration.
10906 * osdata.c (_initialize_osdata): Add declaration.
10907 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10908 * parse.c (_initialize_parse): Add declaration.
10909 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10910 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10911 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10912 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10913 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10914 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10915 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10916 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10917 * printcmd.c (_initialize_printcmd): Add declaration.
10918 * probe.c (_initialize_probe): Add declaration.
10919 * proc-api.c (_initialize_proc_api): Add declaration.
10920 * proc-events.c (_initialize_proc_events): Add declaration.
10921 * proc-service.c (_initialize_proc_service): Add declaration.
10922 * procfs.c (_initialize_procfs): Add declaration.
10923 * producer.c (_initialize_producer): Add declaration.
10924 * psymtab.c (_initialize_psymtab): Add declaration.
10925 * python/python.c (_initialize_python): Add declaration.
10926 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10927 * record-btrace.c (_initialize_record_btrace): Add declaration.
10928 * record-full.c (_initialize_record_full): Add declaration.
10929 * record.c (_initialize_record): Add declaration.
10930 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10931 * regcache.c (_initialize_regcache): Add declaration.
10932 * reggroups.c (_initialize_reggroup): Add declaration.
10933 * remote-notif.c (_initialize_notif): Add declaration.
10934 * remote-sim.c (_initialize_remote_sim): Add declaration.
10935 * remote.c (_initialize_remote): Add declaration.
10936 * reverse.c (_initialize_reverse): Add declaration.
10937 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10938 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10939 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10940 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10941 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10942 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10943 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10944 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10945 Add declaration.
10946 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10947 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10948 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10949 * rust-exp.y (_initialize_rust_exp): Add declaration.
10950 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10951 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10952 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10953 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10954 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10955 * score-tdep.c (_initialize_score_tdep): Add declaration.
10956 * ser-go32.c (_initialize_ser_dos): Add declaration.
10957 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10958 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10959 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10960 * ser-uds.c (_initialize_ser_socket): Add declaration.
10961 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10962 * serial.c (_initialize_serial): Add declaration.
10963 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10964 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10965 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10966 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10967 * skip.c (_initialize_step_skip): Add declaration.
10968 * sol-thread.c (_initialize_sol_thread): Add declaration.
10969 * solib-aix.c (_initialize_solib_aix): Add declaration.
10970 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10971 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10972 * solib-frv.c (_initialize_frv_solib): Add declaration.
10973 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10974 * solib-target.c (_initialize_solib_target): Add declaration.
10975 * solib.c (_initialize_solib): Add declaration.
10976 * source-cache.c (_initialize_source_cache): Add declaration.
10977 * source.c (_initialize_source): Add declaration.
10978 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10979 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10980 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10981 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10982 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10983 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10984 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10985 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10986 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10987 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10988 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10989 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10990 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10991 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10992 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10993 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10994 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10995 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10996 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10997 * stabsread.c (_initialize_stabsread): Add declaration.
10998 * stack.c (_initialize_stack): Add declaration.
10999 * stap-probe.c (_initialize_stap_probe): Add declaration.
11000 * std-regs.c (_initialize_frame_reg): Add declaration.
11001 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11002 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11003 * symfile.c (_initialize_symfile): Add declaration.
11004 * symmisc.c (_initialize_symmisc): Add declaration.
11005 * symtab.c (_initialize_symtab): Add declaration.
11006 * target.c (_initialize_target): Add declaration.
11007 * target-connection.c (_initialize_target_connection): Add
11008 declaration.
11009 * target-dcache.c (_initialize_target_dcache): Add declaration.
11010 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11011 * thread.c (_initialize_thread): Add declaration.
11012 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11013 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11014 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11015 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11016 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11017 * tracectf.c (_initialize_ctf): Add declaration.
11018 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11019 * tracefile.c (_initialize_tracefile): Add declaration.
11020 * tracepoint.c (_initialize_tracepoint): Add declaration.
11021 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11022 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11023 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11024 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11025 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11026 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11027 * tui/tui.c (_initialize_tui): Add declaration.
11028 * typeprint.c (_initialize_typeprint): Add declaration.
11029 * ui-style.c (_initialize_ui_style): Add declaration.
11030 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11031 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11032 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11033 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11034 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11035 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11036 * unittests/filtered_iterator-selftests.c
11037 (_initialize_filtered_iterator_selftests): Add declaration.
11038 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11039 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11040 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11041 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11042 * unittests/main-thread-selftests.c
11043 (_initialize_main_thread_selftests): Add declaration.
11044 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11045 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11046 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11047 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11048 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11049 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11050 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11051 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11052 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11053 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11054 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11055 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11056 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11057 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11058 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11059 declaration.
11060 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11061 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11062 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11063 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11064 * user-regs.c (_initialize_user_regs): Add declaration.
11065 * utils.c (_initialize_utils): Add declaration.
11066 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11067 * valops.c (_initialize_valops): Add declaration.
11068 * valprint.c (_initialize_valprint): Add declaration.
11069 * value.c (_initialize_values): Add declaration.
11070 * varobj.c (_initialize_varobj): Add declaration.
11071 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11072 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11073 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11074 * windows-nat.c (_initialize_windows_nat): Add declaration.
11075 (_initialize_check_for_gdb_ini): Add declaration.
11076 (_initialize_loadable): Add declaration.
11077 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11078 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11079 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11080 * xcoffread.c (_initialize_xcoffread): Add declaration.
11081 * xml-support.c (_initialize_xml_support): Add declaration.
11082 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11083 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11084 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11085 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11086
e2de1eec
SM
110872020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11088
11089 * regformats/regdat.sh: Generate declaration for init function.
11090
e0037b4c
SM
110912020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11092
11093 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11094 up.
11095 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11096 close_one_inferior>: New methods.
11097 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11098 pass down target to find_inferior_pid.
11099 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11100 Pass down target to find_inferior_ptid.
11101 (gdbsim_target::create_inferior): Pass down target to
11102 add_thread_silent.
11103 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11104 target down to find_inferior_ptid and switch_to_thread.
11105 (gdbsim_target::close): Update to call close_one_inferior.
11106 (struct resume_data): Remove.
11107 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11108 directly, rather than through a void pointer.
11109 (gdbsim_target::resume): Update to call resume_one_inferior.
11110
58920b5b
SM
111112020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11112
11113 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11114
4ec89149
PA
111152020-01-12 Pedro Alves <palves@redhat.com>
11116
11117 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11118 directly for the current inferior instead of
11119 discard_all_inferiors.
11120 (discard_all_inferiors): Delete.
11121
7c392d1d
TT
111222020-01-11 Tom Tromey <tom@tromey.com>
11123
11124 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11125 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11126 deprecated_safe_get_selected_frame.
11127
d9ebdab7
TBA
111282020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11129
11130 * inferior.c (print_inferior): Switch inferior before printing it.
11131
f3c469b9
PA
111322020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11133 Pedro Alves <palves@redhat.com>
11134
11135 * progspace-and-thread.c (switch_to_program_space_and_thread):
11136 Assert there's an inferior for PSPACE. Use
11137 switch_to_inferior_no_thread to switch the inferior too.
11138 * progspace.c (program_space::~program_space): Call
11139 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11140 (program_space::free_all_objfiles): Don't call clear_symtab_users
11141 here.
11142 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11143
65c574f6
PA
111442020-01-10 Pedro Alves <palves@redhat.com>
11145
11146 * NEWS: Mention multi-target debugging, "info connections", and
11147 "add-inferior -no-connection".
11148
2f4fcf00
PA
111492020-01-10 Pedro Alves <palves@redhat.com>
11150
11151 * infrun.c: Include "target-connection.h".
11152 (check_multi_target_resumption): New.
11153 (proceed): Call it.
11154 * target-connection.c (make_target_connection_string): Make
11155 extern.
11156 * target-connection.h (make_target_connection_string): Declare.
11157
121b3efd
PA
111582020-01-10 Pedro Alves <palves@redhat.com>
11159
11160 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11161 * inferior.c (uiout_field_connection): New function.
11162 (print_inferior): Add new "connection-id" column.
11163 (add_inferior_command): Show connection number/string of added
11164 inferior.
11165 * process-stratum-target.h
11166 (process_stratum_target::connection_string): New virtual method.
11167 (process_stratum_target::connection_number): New field.
11168 * remote.c (remote_target::connection_string): New override.
11169 * target-connection.c: New file.
11170 * target-connection.h: New file.
11171 * target.c (decref_target): Remove process_stratum targets from
11172 the connection list.
11173 (target_stack::push): Add process_stratum targets to the
11174 connection list.
11175
4f837581
PA
111762020-01-10 Pedro Alves <palves@redhat.com>
11177
11178 Revert:
11179 2016-04-12 Pedro Alves <palves@redhat.com>
11180 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11181 Remove references to name.
11182 * serial.h (struct serial) <name>: Delete.
11183
f4ec508e
PA
111842020-01-10 Pedro Alves <palves@redhat.com>
11185
11186 * gdbarch-selftests.c (register_to_value_test): Remove "target
11187 already pushed" check.
11188
5b6d1e4f
PA
111892020-01-10 Pedro Alves <palves@redhat.com>
11190 John Baldwin <jhb@FreeBSD.org>
11191
11192 * aarch64-linux-nat.c
11193 (aarch64_linux_nat_target::thread_architecture): Adjust.
11194 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11195 (task_command_1): Likewise.
11196 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11197 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11198 (aix_thread_target::store_registers)
11199 (aix_thread_target::thread_alive): Adjust.
11200 * amd64-fbsd-tdep.c: Include "inferior.h".
11201 (amd64fbsd_get_thread_local_address): Pass down target.
11202 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11203 thread's gdbarch instead of target_gdbarch.
11204 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11205 get_last_target_status.
11206 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11207 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11208 inferiors.
11209 (update_inserted_breakpoint_locations): Skip if inferiors with no
11210 execution.
11211 (update_global_location_list): When handling moribund locations,
11212 find representative inferior for location's pspace, and use thread
11213 count of its process_stratum target.
11214 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11215 * bsd-uthread.c (bsd_uthread_target::wait): Use
11216 as_process_stratum_target and adjust thread_change_ptid and
11217 add_thread calls.
11218 (bsd_uthread_target::update_thread_list): Use
11219 as_process_stratum_target and adjust find_thread_ptid,
11220 thread_change_ptid and add_thread calls.
11221 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11222 find_thread_ptid call.
11223 * corelow.c (add_to_thread_list): Adjust add_thread call.
11224 (core_target_open): Adjust add_thread_silent and thread_count
11225 calls.
11226 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11227 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11228 * event-top.c (async_disconnect): Pop targets from all inferiors.
11229 * exec.c (add_target_sections): Push exec target on all inferiors
11230 sharing the program space.
11231 (remove_target_sections): Remove the exec target from all
11232 inferiors sharing the program space.
11233 (exec_on_vfork): New.
11234 * exec.h (exec_on_vfork): Declare.
11235 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11236 Pass it down.
11237 (fbsd_nat_target::update_thread_list): Adjust.
11238 (fbsd_nat_target::resume): Adjust.
11239 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11240 down.
11241 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11242 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11243 get_thread_arch_regcache call.
11244 * fork-child.c (gdb_startup_inferior): Pass target down to
11245 startup_inferior and set_executing.
11246 * gdbthread.h (struct process_stratum_target): Forward declare.
11247 (add_thread, add_thread_silent, add_thread_with_info)
11248 (in_thread_list): Add process_stratum_target parameter.
11249 (find_thread_ptid(inferior*, ptid_t)): New overload.
11250 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11251 parameter.
11252 (all_threads()): Delete overload.
11253 (all_threads, all_non_exited_threads): Add process_stratum_target
11254 parameter.
11255 (all_threads_safe): Use brace initialization.
11256 (thread_count): Add process_stratum_target parameter.
11257 (set_resumed, set_running, set_stop_requested, set_executing)
11258 (threads_are_executing, finish_thread_state): Add
11259 process_stratum_target parameter.
11260 (switch_to_thread): Use is_current_thread.
11261 * i386-fbsd-tdep.c: Include "inferior.h".
11262 (i386fbsd_get_thread_local_address): Pass down target.
11263 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11264 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11265 have_inferiors check.
11266 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11267 (inf_ptrace_target::attach): Adjust.
11268 * infcall.c (run_inferior_call): Adjust.
11269 * infcmd.c (run_command_1): Pass target to
11270 scoped_finish_thread_state.
11271 (proceed_thread_callback): Skip inferiors with no execution.
11272 (continue_command): Rename 'all_threads' local to avoid hiding
11273 'all_threads' function. Adjust get_last_target_status call.
11274 (prepare_one_step): Adjust set_running call.
11275 (signal_command): Use user_visible_resume_target. Compare thread
11276 pointers instead of inferior_ptid.
11277 (info_program_command): Adjust to pass down target.
11278 (attach_command): Mark target's 'thread_executing' flag.
11279 (stop_current_target_threads_ns): New, factored out from ...
11280 (interrupt_target_1): ... this. Switch inferior before making
11281 target calls.
11282 * inferior-iter.h
11283 (struct all_inferiors_iterator, struct all_inferiors_range)
11284 (struct all_inferiors_safe_range)
11285 (struct all_non_exited_inferiors_range): Filter on
11286 process_stratum_target too. Remove explicit.
11287 * inferior.c (inferior::inferior): Push dummy target on target
11288 stack.
11289 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11290 Add process_stratum_target parameter, and pass it down.
11291 (have_live_inferiors): Adjust.
11292 (switch_to_inferior_and_push_target): New.
11293 (add_inferior_command, clone_inferior_command): Handle
11294 "-no-connection" parameter. Use
11295 switch_to_inferior_and_push_target.
11296 (_initialize_inferior): Mention "-no-connection" option in
11297 the help of "add-inferior" and "clone-inferior" commands.
11298 * inferior.h: Include "process-stratum-target.h".
11299 (interrupt_target_1): Use bool.
11300 (struct inferior) <push_target, unpush_target, target_is_pushed,
11301 find_target_beneath, top_target, process_target, target_at,
11302 m_stack>: New.
11303 (discard_all_inferiors): Delete.
11304 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11305 (all_inferiors, all_non_exited_inferiors): Add
11306 process_stratum_target parameter.
11307 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11308 (target_last_proc_target): New global.
11309 (follow_fork_inferior): Push target on new inferior. Pass target
11310 to add_thread_silent. Call exec_on_vfork. Handle target's
11311 reference count.
11312 (follow_fork): Adjust get_last_target_status call. Also consider
11313 target.
11314 (follow_exec): Push target on new inferior.
11315 (struct execution_control_state) <target>: New field.
11316 (user_visible_resume_target): New.
11317 (do_target_resume): Call target_async.
11318 (resume_1): Set target's threads_executing flag. Consider resume
11319 target.
11320 (commit_resume_all_targets): New.
11321 (proceed): Also consider resume target. Skip threads of inferiors
11322 with no execution. Commit resumtion in all targets.
11323 (start_remote): Pass current inferior to wait_for_inferior.
11324 (infrun_thread_stop_requested): Consider target as well. Pass
11325 thread_info pointer to clear_inline_frame_state instead of ptid.
11326 (infrun_thread_thread_exit): Consider target as well.
11327 (random_pending_event_thread): New inferior parameter. Use it.
11328 (do_target_wait): Rename to ...
11329 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11330 down.
11331 (threads_are_resumed_pending_p, do_target_wait): New.
11332 (prepare_for_detach): Adjust calls.
11333 (wait_for_inferior): New inferior parameter. Handle it. Use
11334 do_target_wait_1 instead of do_target_wait.
11335 (fetch_inferior_event): Adjust. Switch to representative
11336 inferior. Pass target down.
11337 (set_last_target_status): Add process_stratum_target parameter.
11338 Save target in global.
11339 (get_last_target_status): Add process_stratum_target parameter and
11340 handle it.
11341 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11342 (context_switch): Check inferior_ptid == null_ptid before calling
11343 inferior_thread().
11344 (get_inferior_stop_soon): Pass down target.
11345 (wait_one): Rename to ...
11346 (poll_one_curr_target): ... this.
11347 (struct wait_one_event): New.
11348 (wait_one): New.
11349 (stop_all_threads): Adjust.
11350 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11351 event's target.
11352 (switch_back_to_stepped_thread): Also consider target.
11353 (print_stop_event): Update.
11354 (normal_stop): Update. Also consider the resume target.
11355 * infrun.h (wait_for_inferior): Remove declaration.
11356 (user_visible_resume_target): New declaration.
11357 (get_last_target_status, set_last_target_status): New
11358 process_stratum_target parameter.
11359 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11360 process_stratum_target parameter, and use it.
11361 (clear_inline_frame_state (thread_info*)): New.
11362 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11363 process_stratum_target parameter.
11364 (clear_inline_frame_state (thread_info*)): Declare.
11365 * linux-fork.c (delete_checkpoint_command): Pass target down to
11366 find_thread_ptid.
11367 (checkpoint_command): Adjust.
11368 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11369 instead of just tweaking inferior_ptid.
11370 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11371 (exit_lwp): Pass target down to find_thread_ptid.
11372 (attach_proc_task_lwp_callback): Pass target down to
11373 add_thread/set_running/set_executing.
11374 (linux_nat_target::attach): Pass target down to
11375 thread_change_ptid.
11376 (get_detach_signal): Pass target down to find_thread_ptid.
11377 Consider last target status's target.
11378 (linux_resume_one_lwp_throw, resume_lwp)
11379 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11380 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11381 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11382 (linux_nat_target::async_wait_fd): New.
11383 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11384 target down.
11385 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11386 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11387 * linux-thread-db.c (struct thread_db_info::process_target): New
11388 field.
11389 (add_thread_db_info): Save target.
11390 (get_thread_db_info): New process_stratum_target parameter. Also
11391 match target.
11392 (delete_thread_db_info): New process_stratum_target parameter.
11393 Also match target.
11394 (thread_from_lwp): Adjust to pass down target.
11395 (thread_db_notice_clone): Pass down target.
11396 (check_thread_db_callback): Pass down target.
11397 (try_thread_db_load_1): Always push the thread_db target.
11398 (try_thread_db_load, record_thread): Pass target down.
11399 (thread_db_target::detach): Pass target down. Always unpush the
11400 thread_db target.
11401 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11402 target down. Always unpush the thread_db target.
11403 (find_new_threads_callback, thread_db_find_new_threads_2)
11404 (thread_db_target::update_thread_list): Pass target down.
11405 (thread_db_target::pid_to_str): Pass current inferior down.
11406 (thread_db_target::get_thread_local_address): Pass target down.
11407 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11408 target down.
11409 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11410 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11411 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11412 (procfs_init_inferior): Rename to ...
11413 (procfs_target::procfs_init_inferior): ... this and adjust.
11414 (procfs_target::create_inferior, procfs_notice_thread)
11415 (procfs_do_thread_registers): Adjust.
11416 * ppc-fbsd-tdep.c: Include "inferior.h".
11417 (ppcfbsd_get_thread_local_address): Pass down target.
11418 * proc-service.c (ps_xfer_memory): Switch current inferior and
11419 program space as well.
11420 (get_ps_regcache): Pass target down.
11421 * process-stratum-target.c
11422 (process_stratum_target::thread_address_space)
11423 (process_stratum_target::thread_architecture): Pass target down.
11424 * process-stratum-target.h
11425 (process_stratum_target::threads_executing): New field.
11426 (as_process_stratum_target): New.
11427 * ravenscar-thread.c
11428 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11429 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11430 down.
11431 * record-btrace.c (record_btrace_target::info_record): Adjust.
11432 (record_btrace_target::record_method)
11433 (record_btrace_target::record_is_replaying)
11434 (record_btrace_target::fetch_registers)
11435 (get_thread_current_frame_id, record_btrace_target::resume)
11436 (record_btrace_target::wait, record_btrace_target::stop): Pass
11437 target down.
11438 * record-full.c (record_full_wait_1): Switch to event thread.
11439 Pass target down.
11440 * regcache.c (regcache::regcache)
11441 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11442 process_stratum_target parameter and handle it.
11443 (current_thread_target): New global.
11444 (get_thread_regcache): Add process_stratum_target parameter and
11445 handle it. Switch inferior before calling target method.
11446 (get_thread_regcache): Pass target down.
11447 (get_thread_regcache_for_ptid): Pass target down.
11448 (registers_changed_ptid): Add process_stratum_target parameter and
11449 handle it.
11450 (registers_changed_thread, registers_changed): Pass target down.
11451 (test_get_thread_arch_aspace_regcache): New.
11452 (current_regcache_test): Define a couple local test_target_ops
11453 instances and use them for testing.
11454 (readwrite_regcache): Pass process_stratum_target parameter.
11455 (cooked_read_test, cooked_write_test): Pass mock_target down.
11456 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11457 (get_thread_arch_aspace_regcache): Add process_stratum_target
11458 parameter.
11459 (regcache::target): New method.
11460 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11461 (regcache::registers_changed_ptid): Add process_stratum_target
11462 parameter.
11463 (regcache::m_target): New field.
11464 (registers_changed_ptid): Add process_stratum_target parameter.
11465 * remote.c (remote_state::supports_vCont_probed): New field.
11466 (remote_target::async_wait_fd): New method.
11467 (remote_unpush_and_throw): Add remote_target parameter.
11468 (get_current_remote_target): Adjust.
11469 (remote_target::remote_add_inferior): Push target.
11470 (remote_target::remote_add_thread)
11471 (remote_target::remote_notice_new_inferior)
11472 (get_remote_thread_info): Pass target down.
11473 (remote_target::update_thread_list): Skip threads of inferiors
11474 bound to other targets. (remote_target::close): Don't discard
11475 inferiors. (remote_target::add_current_inferior_and_thread)
11476 (remote_target::process_initial_stop_replies)
11477 (remote_target::start_remote)
11478 (remote_target::remote_serial_quit_handler): Pass down target.
11479 (remote_target::remote_unpush_target): New remote_target
11480 parameter. Unpush the target from all inferiors.
11481 (remote_target::remote_unpush_and_throw): New remote_target
11482 parameter. Pass it down.
11483 (remote_target::open_1): Check whether the current inferior has
11484 execution instead of checking whether any inferior is live. Pass
11485 target down.
11486 (remote_target::remote_detach_1): Pass down target. Use
11487 remote_unpush_target.
11488 (extended_remote_target::attach): Pass down target.
11489 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11490 (remote_target::append_resumption): Pass down target.
11491 (remote_target::append_pending_thread_resumptions)
11492 (remote_target::remote_resume_with_hc, remote_target::resume)
11493 (remote_target::commit_resume): Pass down target.
11494 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11495 (remote_target::interrupt_query)
11496 (remote_target::remove_new_fork_children)
11497 (remote_target::check_pending_events_prevent_wildcard_vcont)
11498 (remote_target::remote_parse_stop_reply)
11499 (remote_target::process_stop_reply): Pass down target.
11500 (first_remote_resumed_thread): New remote_target parameter. Pass
11501 it down.
11502 (remote_target::wait_as): Pass down target.
11503 (unpush_and_perror): New remote_target parameter. Pass it down.
11504 (remote_target::readchar, remote_target::remote_serial_write)
11505 (remote_target::getpkt_or_notif_sane_1)
11506 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11507 down target.
11508 (remote_target::mourn_inferior): Pass down target. Use
11509 remote_unpush_target.
11510 (remote_target::core_of_thread)
11511 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11512 (remote_target::pid_to_exec_file)
11513 (remote_target::thread_handle_to_thread_info): Pass down target.
11514 (remote_target::async_wait_fd): New.
11515 * riscv-fbsd-tdep.c: Include "inferior.h".
11516 (riscv_fbsd_get_thread_local_address): Pass down target.
11517 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11518 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11519 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11520 Adjust.
11521 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11522 * solib-svr4.c (enable_break): Pass down target.
11523 * spu-multiarch.c (parse_spufs_run): Pass down target.
11524 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11525 * target-delegates.c: Regenerate.
11526 * target.c (g_target_stack): Delete.
11527 (current_top_target): Return the current inferior's top target.
11528 (target_has_execution_1): Refer to the passed-in inferior's top
11529 target.
11530 (target_supports_terminal_ours): Check whether the initial
11531 inferior was already created.
11532 (decref_target): New.
11533 (target_stack::push): Incref/decref the target.
11534 (push_target, push_target, unpush_target): Adjust.
11535 (target_stack::unpush): Defref target.
11536 (target_is_pushed): Return bool. Adjust to refer to the current
11537 inferior's target stack.
11538 (dispose_inferior): Delete, and inline parts ...
11539 (target_preopen): ... here. Only dispose of the current inferior.
11540 (target_detach): Hold strong target reference while detaching.
11541 Pass target down.
11542 (target_thread_name): Add assertion.
11543 (target_resume): Pass down target.
11544 (target_ops::beneath, find_target_at): Adjust to refer to the
11545 current inferior's target stack.
11546 (get_dummy_target): New.
11547 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11548 has a thread running.
11549 (initialize_targets): Rename to ...
11550 (_initialize_target): ... this.
11551 * target.h: Include "gdbsupport/refcounted-object.h".
11552 (struct target_ops): Inherit refcounted_object.
11553 (target_ops::shortname, target_ops::longname): Make const.
11554 (target_ops::async_wait_fd): New method.
11555 (decref_target): Declare.
11556 (struct target_ops_ref_policy): New.
11557 (target_ops_ref): New typedef.
11558 (get_dummy_target): Declare function.
11559 (target_is_pushed): Return bool.
11560 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11561 (all_matching_threads_iterator::all_matching_threads_iterator):
11562 Handle filter target.
11563 * thread-iter.h (struct all_matching_threads_iterator, struct
11564 all_matching_threads_range, class all_non_exited_threads_range):
11565 Filter by target too. Remove explicit.
11566 * thread.c (threads_executing): Delete.
11567 (inferior_thread): Pass down current inferior.
11568 (clear_thread_inferior_resources): Pass down thread pointer
11569 instead of ptid_t.
11570 (add_thread_silent, add_thread_with_info, add_thread): Add
11571 process_stratum_target parameter. Use it for thread and inferior
11572 searches.
11573 (is_current_thread): New.
11574 (thread_info::deletable): Use it.
11575 (find_thread_ptid, thread_count, in_thread_list)
11576 (thread_change_ptid, set_resumed, set_running): New
11577 process_stratum_target parameter. Pass it down.
11578 (set_executing): New process_stratum_target parameter. Pass it
11579 down. Adjust reference to 'threads_executing'.
11580 (threads_are_executing): New process_stratum_target parameter.
11581 Adjust reference to 'threads_executing'.
11582 (set_stop_requested, finish_thread_state): New
11583 process_stratum_target parameter. Pass it down.
11584 (switch_to_thread): Also match inferior.
11585 (switch_to_thread): New process_stratum_target parameter. Pass it
11586 down.
11587 (update_threads_executing): Reimplement.
11588 * top.c (quit_force): Pop targets from all inferior.
11589 (gdb_init): Don't call initialize_targets.
11590 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11591 Declare.
11592 (windows_add_thread, windows_delete_thread): Adjust.
11593 (get_windows_debug_event): Rename to ...
11594 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11595 * tracefile-tfile.c (tfile_target_open): Pass down target.
11596 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11597 Forward declare.
11598 (switch_to_thread): Add process_stratum_target parameter.
11599 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11600 parameter. Use it.
11601 (mi_on_resume): Pass target down.
11602 * nat/fork-inferior.c (startup_inferior): Add
11603 process_stratum_target parameter. Pass it down.
11604 * nat/fork-inferior.h (startup_inferior): Add
11605 process_stratum_target parameter.
11606 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11607
75c6c844
PA
116082020-01-10 Pedro Alves <palves@redhat.com>
11609
11610 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11611 directly. Instead find the first thread in the thread list and
11612 use switch_to_thread.
11613
78f2c40a
PA
116142020-01-10 Pedro Alves <palves@redhat.com>
11615
11616 * remote.c (remote_target::remote_add_inferior): Don't bind a
11617 process to the current inferior if the current inferior is already
11618 bound to a process.
11619
e7af6c70
TBA
116202020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11621 Pedro Alves <palves@redhat.com>
11622
11623 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11624 If no process is specified, return null_ptid instead of
11625 inferior_ptid.
11626 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11627 TARGET_WAITKIND_SIGNALLED with no pid.
11628
31ba933e
PA
116292020-01-10 Pedro Alves <palves@redhat.com>
11630
11631 * remote.c (first_remote_resumed_thread): New.
11632 (remote_target::wait_as): Use it as default event_ptid instead of
11633 inferior_ptid.
11634
735fc2ca
PA
116352020-01-10 Pedro Alves <palves@redhat.com>
11636
11637 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11638
c17e02e1
PA
116392020-01-10 Pedro Alves <palves@redhat.com>
11640
11641 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11642 not -1.
11643
ab1ddbcf
PA
116442020-01-10 Pedro Alves <palves@redhat.com>
11645
11646 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11647 ptid to get_last_target_status.
11648 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11649 ptid to get_last_target_status.
11650 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11651 get_last_target_status.
11652 (info_program_command): Don't pass a target_waitstatus to
11653 get_last_target_status.
11654 * infrun.c (init_wait_for_inferior): Use
11655 nullify_last_target_wait_ptid.
11656 (get_last_target_status): Handle nullptr arguments.
11657 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11658 (print_stop_event): Don't pass a ptid to get_last_target_status.
11659 (normal_stop): Don't pass a ptid to get_last_target_status.
11660 * infrun.h (get_last_target_status, set_last_target_status): Move
11661 comments here and update.
11662 (nullify_last_target_wait_ptid): Declare.
11663 * linux-fork.c (fork_load_infrun_state): Remove local extern
11664 declaration of nullify_last_target_wait_ptid.
11665 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11666 to get_last_target_status.
11667
f3f8ece4
PA
116682020-01-10 Pedro Alves <palves@redhat.com>
11669
11670 * gdbthread.h (scoped_restore_current_thread)
11671 <dont_restore, restore, m_dont_restore>: Declare.
11672 * thread.c (thread_alive): Add assertion. Return bool.
11673 (switch_to_thread_if_alive): New.
11674 (prune_threads): Switch inferior/thread.
11675 (print_thread_info_1): Switch thread before calling target methods.
11676 (scoped_restore_current_thread::restore): New, factored out from
11677 ...
11678 (scoped_restore_current_thread::~scoped_restore_current_thread):
11679 ... this.
11680 (scoped_restore_current_thread::scoped_restore_current_thread):
11681 Add assertion.
11682 (thread_apply_all_command, thread_select): Use
11683 switch_to_thread_if_alive.
11684 * infrun.c (proceed, restart_threads, handle_signal_stop)
11685 (switch_back_to_stepped_thread): Switch current thread before
11686 calling target methods.
11687
db2d40f7
PA
116882020-01-10 Pedro Alves <palves@redhat.com>
11689
11690 * inferior.c (switch_to_inferior_no_thread): New function,
11691 factored out from ...
11692 (inferior_command): ... here.
11693 * inferior.h (switch_to_inferior_no_thread): Declare.
11694 * mi/mi-main.c (run_one_inferior): Use
11695 switch_to_inferior_no_thread.
11696
bd420a2d
PA
116972020-01-10 Pedro Alves <palves@redhat.com>
11698
11699 * infcmd.c (kill_command): Remove dead code.
11700
ddf5db90
PA
117012020-01-10 Pedro Alves <palves@redhat.com>
11702
11703 * remote.c (remote_target::mourn_inferior): No longer check
11704 whether the target is running.
11705
5018ce90
PA
117062020-01-10 Pedro Alves <palves@redhat.com>
11707
11708 * corelow.c (core_target::has_execution): Change parameter type to
11709 inferior pointer.
11710 * inferior.c (number_of_live_inferiors): Use
11711 inferior::has_execution instead of target_has_execution_1.
11712 * inferior.h (inferior::has_execution): New.
11713 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11714 inferior::has_execution instead of target_has_execution_1.
11715 * process-stratum-target.c
11716 (process_stratum_target::has_execution): Change parameter type to
11717 inferior pointer. Check the inferior's PID instead of
11718 inferior_ptid.
11719 * process-stratum-target.h
11720 (process_stratum_target::has_execution): Change parameter type to
11721 inferior pointer.
11722 * record-full.c (record_full_core_target::has_execution): Change
11723 parameter type to inferior pointer.
11724 * target.c (target_has_execution_1): Change parameter type to
11725 inferior pointer.
11726 (target_has_execution_current): Adjust.
11727 * target.h (target_ops::has_execution): Change parameter type to
11728 inferior pointer.
11729 (target_has_execution_1): Change parameter type to inferior
11730 pointer. Change return type to bool.
11731 * tracefile.h (tracefile_target::has_execution): Change parameter
11732 type to inferior pointer.
11733
74375d18
PA
117342020-01-10 Pedro Alves <palves@redhat.com>
11735
11736 * exceptions.c (print_flush): Remove current_top_target() check.
11737
acdf84a6
PA
117382020-01-10 Pedro Alves <palves@redhat.com>
11739
11740 * remote.c (show_remote_exec_file): Show the current inferior's
11741 exec-file instead of the command variable's value.
11742
ec506636
PA
117432020-01-10 Pedro Alves <palves@redhat.com>
11744
11745 * record-full.c (record_full_resume_ptid): New global.
11746 (record_full_target::resume): Set it.
11747 (record_full_wait_1): Use record_full_resume_ptid instead of
11748 inferior_ptid.
11749
873657b9
PA
117502020-01-10 Pedro Alves <palves@redhat.com>
11751
11752 * gdbthread.h (scoped_restore_current_thread)
11753 <dont_restore, restore, m_dont_restore>: Declare.
11754 * thread.c (thread_alive): Add assertion. Return bool.
11755 (switch_to_thread_if_alive): New.
11756 (prune_threads): Switch inferior/thread.
11757 (print_thread_info_1): Switch thread before calling target methods.
11758 (scoped_restore_current_thread::restore): New, factored out from
11759 ...
11760 (scoped_restore_current_thread::~scoped_restore_current_thread):
11761 ... this.
11762 (scoped_restore_current_thread::scoped_restore_current_thread):
11763 Add assertion.
11764 (thread_apply_all_command, thread_select): Use
11765 switch_to_thread_if_alive.
11766
7f0ae84c
GB
117672020-01-10 George Barrett <bob@bob131.so>
11768
11769 * stap-probe.c (stap_modify_semaphore): Don't check for null
11770 semaphores.
11771 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11772 for null semaphores.
11773
f5a7c406
AB
117742020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11775
11776 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11777 all source windows, and maintain horizontal scroll status while
11778 doing so.
11779
9ae6bf64
TT
117802020-01-09 Tom Tromey <tom@tromey.com>
11781
11782 PR tui/18932:
11783 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11784 update_source_window, not print_source_lines.
11785
b2efe70c
AB
117862020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11787
11788 * tui/tui.c (tui_enable): Register tui hooks after calling
11789 tui_display_main.
11790
5f23a082
CB
117912020-01-09 Christian Biesinger <cbiesinger@google.com>
11792
11793 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11794
3061113b
SM
117952020-01-08 Simon Marchi <simon.marchi@efficios.com>
11796
11797 * thread.c (print_thread_info_1): Fix indentation.
11798
57d75002
CB
117992020-01-09 Christian Biesinger <cbiesinger@google.com>
11800
11801 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11802 unique_xmalloc_ptr outside the if to always free the demangled name.
11803
6a053cb1
TT
118042020-01-08 Tom Tromey <tromey@adacore.com>
11805
11806 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11807 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11808 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11809 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11810 Remove.
11811 (section_offsets): New typedef.
11812 * symtab.c (fixup_section, get_msymbol_address): Update.
11813 * symmisc.c (dump_msymbols): Update.
11814 * symfile.h (relative_addr_info_to_section_offsets)
11815 (symfile_map_offsets_to_segments): Update.
11816 * symfile.c (build_section_addr_info_from_objfile)
11817 (init_objfile_sect_indices): Update.
11818 (struct place_section_arg): Change type of "offsets".
11819 (place_section): Update.
11820 (relative_addr_info_to_section_offsets): Change type of
11821 "section_offsets". Remove "num_sections" parameter.
11822 (default_symfile_offsets, syms_from_objfile_1)
11823 (set_objfile_default_section_offset): Update.
11824 (reread_symbols): No need to preserve section offsets by hand.
11825 (symfile_map_offsets_to_segments): Change type of "offsets".
11826 * stap-probe.c (relocate_address): Update.
11827 * stabsread.h (process_one_symbol): Update.
11828 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11829 (solib_target_relocate_section_addresses): Update.
11830 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11831 Update.
11832 * solib-frv.c (frv_relocate_main_executable): Update.
11833 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11834 * solib-aix.c (solib_aix_get_section_offsets): Change return
11835 type.
11836 (solib_aix_solib_create_inferior_hook): Update.
11837 * remote.c (remote_target::get_offsets): Update.
11838 * psymtab.c (find_pc_sect_psymtab): Update.
11839 * psympriv.h (struct partial_symbol) <address, text_low,
11840 text_high>: Update.
11841 * objfiles.h (obj_section_offset): Update.
11842 (struct objfile) <section_offsets>: Change type.
11843 <num_sections>: Remove.
11844 (objfile_relocate): Update.
11845 * objfiles.c (entry_point_address_query): Update
11846 (relocate_one_symbol): Change type of "section_offsets".
11847 (objfile_relocate1, objfile_relocate1): Change type of
11848 "new_offsets".
11849 (objfile_rebase1): Update.
11850 * mipsread.c (mipscoff_symfile_read): Update.
11851 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11852 parameter.
11853 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11854 (parse_external, psymtab_to_symtab_1): Update.
11855 * machoread.c (macho_symfile_offsets): Update.
11856 * ia64-tdep.c (ia64_find_unwind_table): Update.
11857 * hppa-tdep.c (read_unwind_info): Update.
11858 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11859 * dwarf2read.c (create_addrmap_from_index)
11860 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11861 (process_psymtab_comp_unit_reader, add_partial_symbol)
11862 (add_partial_subprogram, process_full_comp_unit)
11863 (read_file_scope, read_func_scope, read_lexical_block_scope)
11864 (read_call_site_scope, dwarf2_rnglists_process)
11865 (dwarf2_ranges_process, dwarf2_ranges_read)
11866 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11867 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11868 Update.
11869 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11870 Update.
11871 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11872 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11873 (process_one_symbol): Change type of "section_offsets".
11874 * ctfread.c (get_objfile_text_range): Update.
11875 * coffread.c (coff_symtab_read, enter_linenos)
11876 (process_coff_symbol): Update.
11877 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11878 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11879
456e800a
TT
118802020-01-08 Tom Tromey <tromey@adacore.com>
11881
11882 * dwarf2read.c (parse_macro_definition): Use std::string.
11883 (parse_macro_definition): Likewise.
11884
6dfa2fc2
TT
118852020-01-08 Tom Tromey <tromey@adacore.com>
11886
11887 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11888 (ATTR_ALLOC_CHUNK): Remove.
11889
421d1616
TT
118902020-01-08 Tom Tromey <tromey@adacore.com>
11891
11892 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11893
43816ebc
TT
118942020-01-08 Tom Tromey <tromey@adacore.com>
11895
11896 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11897 (dwarf2_compute_name, open_dwo_file): Likewise.
11898 (process_enumeration_scope): Use std::vector.
11899 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11900 (partial_die_info::fixup, dwarf2_start_subfile)
11901 (guess_full_die_structure_name, dwarf2_name): Likewise.
11902 (determine_prefix): Update.
11903 (guess_full_die_structure_name): Make return type const.
11904 (partial_die_full_name): Return unique_xmalloc_ptr.
11905 (DW_FIELD_ALLOC_CHUNK): Remove.
11906
4212d509
TT
119072020-01-07 Tom Tromey <tromey@adacore.com>
11908
11909 PR build/24937:
11910 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11911
06a6207a
JT
119122020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11913
11914 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11915
153d79c4
AB
119162020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11917
11918 * stack.c (print_frame_info): Move disassemble_next_line code
11919 inside source_print block.
11920
66182876
EZ
119212020-01-06 Eli Zaretskii <eliz@gnu.org>
11922
11923 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11924 gdb/signals.h, as we are now using native signal symbols.
11925
cbfa8581
SV
119262020-01-06 Shahab Vahedi <shahab@synopsys.com>
11927
11928 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11929 overflow by an early check of content vs threshold.
aac66a4c 11930 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11931 Likewise.
11932
3f602821
EZ
119332020-01-06 Eli Zaretskii <eliz@gnu.org>
11934
11935 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11936
a08c904d
JT
119372020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11938
11939 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11940 export table if no section contains it's RVA.
11941
89a65580
EZ
119422020-01-06 Eli Zaretskii <eliz@gnu.org>
11943
11944 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11945
8b7fcda2
HD
119462020-01-06 Hannes Domani <ssbssa@yahoo.de>
11947
11948 * source.c (print_source_lines_base): Set last_line_listed.
11949
a61b4f69
SV
119502020-01-06 Shahab Vahedi <shahab@synopsys.com>
11951
11952 * tui/tui-disasm.c: Remove trailing spaces.
11953
559e7e50
EZ
119542020-01-06 Eli Zaretskii <eliz@gnu.org>
11955 Pedro Alves <palves@redhat.com>
11956
11957 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11958 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11959 (windows_gdb_signal_to_target): New function, uses the above
11960 enumeration to convert GDB internal signal codes to equivalent
11961 Windows codes.
11962 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11963 * windows-nat.c: Include "gdb_wait.h".
11964 (get_windows_debug_event): Extract the fatal exception from the
11965 exit status and convert to the equivalent Posix signal number.
11966 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11967 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11968 * gdbsupport/gdb_wait.c: New file, implements
11969 windows_status_to_termsig.
11970 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11971 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11972
f2302a34
AB
119732020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11974
11975 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11976 show_layout.
11977
6a5206eb
LM
119782020-01-05 Luis Machado <luis.machado@linaro.org>
11979
11980 * aarch64-linux-nat.c
11981 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11982 and bfd_mach_aarch64.
11983
6ec1d75e
PW
119842020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11985
11986 * ui-file.c (stdio_file::can_emit_style_escape)
11987 (tee_file::can_emit_style_escape): Ensure style is used also on
11988 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11989 to gdb_stdout.
11990 * main.c (set_gdb_data_directory): Use file style to output the
11991 warning that the given pathname is not a directory.
11992 * top.c (show_history_filename, gdb_safe_append_history)
11993 (show_gdb_datadir): Use file style.
11994
44f81a76
HD
119952020-01-03 Hannes Domani <ssbssa@yahoo.de>
11996
11997 * solib-target.c (struct lm_info_target):
11998 Change offsets to be a unique_xmalloc_ptr.
11999 (solib_target_relocate_section_addresses): Update.
12000
25057eb0
HD
120012020-01-03 Hannes Domani <ssbssa@yahoo.de>
12002
12003 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12004
6e2118f5
BE
120052020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12006
12007 * MAINTAINERS (Write After Approval): Add myself.
12008
8133c7dc
LM
120092020-01-02 Luis Machado <luis.machado@linaro.org>
12010
12011 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12012 Cell BE architecture.
12013 * target.h (struct target_ops) <thread_architecture>: Likewise.
12014
48189bec
HD
120152020-01-01 Hannes Domani <ssbssa@yahoo.de>
12016
12017 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12018
ead1063b
HD
120192020-01-01 Hannes Domani <ssbssa@yahoo.de>
12020
12021 * MAINTAINERS (Write After Approval): Add myself.
12022
e5d78223
JB
120232020-01-01 Joel Brobecker <brobecker@adacore.com>
12024
12025 * gdbarch.sh: Update copyright year range of generated files.
12026
b811d2c2
JB
120272020-01-01 Joel Brobecker <brobecker@adacore.com>
12028
12029 Update copyright year range in all GDB files.
12030
5f4def5c
JB
120312020-01-01 Joel Brobecker <brobecker@adacore.com>
12032
12033 * copyright.py: Convert to Python 3.
12034
51fd4002
JB
120352020-01-01 Joel Brobecker <brobecker@adacore.com>
12036
12037 * copyright.py: Adapt after move of gnulib directory from gdb
12038 directory to toplevel directory.
12039
5fb651f2
JB
120402020-01-01 Joel Brobecker <brobecker@adacore.com>
12041
12042 * copyright.py (main): Exit if run from the wrong directory.
12043
5dd8bf88
JB
120442020-01-01 Joel Brobecker <brobecker@adacore.com>
12045
12046 * top.c (print_gdb_version): Change copyright year to 2020.
12047
9f71dacb 120482020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12049
9f71dacb 12050 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12051
9f71dacb 12052For older changes see ChangeLog-2019.
c906108c
SS
12053\f
12054Local Variables:
12055mode: change-log
12056left-margin: 8
12057fill-column: 74
12058version-control: never
57da7796 12059coding: utf-8
c906108c 12060End: