]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: Have allocate_target_description return a unique_ptr
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
51a948fd
AB
12020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * arch/aarch32.c (aarch32_create_target_description): Release
4 unique_ptr returned from allocate_target_description.
5 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6 * arch/amd64.c (amd64_create_target_description): Likewise.
7 * arch/arc.c (arc_create_target_description): Likewise.
8 * arch/arm.c (arm_create_target_description): Likewise.
9 * arch/i386.c (i386_create_target_description): Likewise.
10 * arch/riscv.c (riscv_create_target_description): Update return
11 type. Handle allocate_target_description returning a unique_ptr.
12 (riscv_lookup_target_description): Update to handle unique_ptr.
13 * arch/tic6x.c (tic6x_create_target_description): Release
14 unique_ptr returned from allocate_target_description.
15 * features/microblaze-with-stack-protect.c: Regenerate.
16 * features/microblaze.c: Regenerate.
17 * features/mips-dsp-linux.c: Regenerate.
18 * features/mips-linux.c: Regenerate.
19 * features/mips64-dsp-linux.c: Regenerate.
20 * features/mips64-linux.c: Regenerate.
21 * features/nds32.c: Regenerate.
22 * features/nios2.c: Regenerate.
23 * features/or1k.c: Regenerate.
24 * features/rs6000/powerpc-32.c: Regenerate.
25 * features/rs6000/powerpc-32l.c: Regenerate.
26 * features/rs6000/powerpc-403.c: Regenerate.
27 * features/rs6000/powerpc-403gc.c: Regenerate.
28 * features/rs6000/powerpc-405.c: Regenerate.
29 * features/rs6000/powerpc-505.c: Regenerate.
30 * features/rs6000/powerpc-601.c: Regenerate.
31 * features/rs6000/powerpc-602.c: Regenerate.
32 * features/rs6000/powerpc-603.c: Regenerate.
33 * features/rs6000/powerpc-604.c: Regenerate.
34 * features/rs6000/powerpc-64.c: Regenerate.
35 * features/rs6000/powerpc-64l.c: Regenerate.
36 * features/rs6000/powerpc-7400.c: Regenerate.
37 * features/rs6000/powerpc-750.c: Regenerate.
38 * features/rs6000/powerpc-860.c: Regenerate.
39 * features/rs6000/powerpc-altivec32.c: Regenerate.
40 * features/rs6000/powerpc-altivec32l.c: Regenerate.
41 * features/rs6000/powerpc-altivec64.c: Regenerate.
42 * features/rs6000/powerpc-altivec64l.c: Regenerate.
43 * features/rs6000/powerpc-e500.c: Regenerate.
44 * features/rs6000/powerpc-e500l.c: Regenerate.
45 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
46 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
47 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
48 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
49 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
50 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
51 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
52 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
53 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
54 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
55 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
56 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
57 * features/rs6000/powerpc-vsx32.c: Regenerate.
58 * features/rs6000/powerpc-vsx32l.c: Regenerate.
59 * features/rs6000/powerpc-vsx64.c: Regenerate.
60 * features/rs6000/powerpc-vsx64l.c: Regenerate.
61 * features/rs6000/rs6000.c: Regenerate.
62 * features/rx.c: Regenerate.
63 * features/s390-gs-linux64.c: Regenerate.
64 * features/s390-linux32.c: Regenerate.
65 * features/s390-linux32v1.c: Regenerate.
66 * features/s390-linux32v2.c: Regenerate.
67 * features/s390-linux64.c: Regenerate.
68 * features/s390-linux64v1.c: Regenerate.
69 * features/s390-linux64v2.c: Regenerate.
70 * features/s390-te-linux64.c: Regenerate.
71 * features/s390-tevx-linux64.c: Regenerate.
72 * features/s390-vx-linux64.c: Regenerate.
73 * features/s390x-gs-linux64.c: Regenerate.
74 * features/s390x-linux64.c: Regenerate.
75 * features/s390x-linux64v1.c: Regenerate.
76 * features/s390x-linux64v2.c: Regenerate.
77 * features/s390x-te-linux64.c: Regenerate.
78 * features/s390x-tevx-linux64.c: Regenerate.
79 * features/s390x-vx-linux64.c: Regenerate.
80 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
81 from allocate_target_description.
82 * target-descriptions.c (allocate_target_description): Update
83 return type.
84 (print_c_tdesc::visit_pre): Release unique_ptr returned from
85 allocate_target_description.
86
485c47e5
TT
872020-10-07 Tom Tromey <tromey@adacore.com>
88
89 * unittests/search-memory-selftests.c: New file.
90 * Makefile.in (SELFTESTS_SRCS): Add
91 unittests/search-memory-selftests.c.
92
3a135a91
TT
932020-10-07 Tom Tromey <tromey@adacore.com>
94
95 PR gdb/16930:
96 * findcmd.c (_initialize_mem_search): Mention that the range is
97 inclusive.
98
4a72de73
TT
992020-10-07 Tom Tromey <tromey@adacore.com>
100
101 * target.h (simple_search_memory): Don't declare.
102 * target.c (simple_search_memory): Move to gdbsupport.
103 (default_search_memory): Update.
104 * remote.c (remote_target::search_memory): Update.
105
a038ffd8
SM
1062020-10-07 Simon Marchi <simon.marchi@efficios.com>
107
108 * Makefile.in (COMPILE): Add CXXFLAGS.
109 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
110 (check-headers): Add CXXFLAGS.
111
cc463201
AK
1122020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
113
114 * arc-linux-tdep.h: New file.
115 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
116 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
117 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
118 arc_linux_gregset, arc_linux_v2_regset,
119 arc_linux_iterate_over_regset_sections,
120 arc_linux_core_read_description): Implement.
121 (arc_linux_init_osabi): Set iterate_over_regset_sections.
122 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
123 (arc_gdbarch_features_create): Add.
124 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
125
e4bd363f
SV
1262020-10-07 Shahab Vahedi <shahab@synopsys.com>
127
128 * arch/arc.h: Rename "arc_gdbarch_features" to
129 "arc_arch_features".
130 * arc-tdep.h: Likewise.
131 * arc-tdep.c: Likewise.
132
b68bef99
TBA
1332020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
134
135 * infcmd.c (attach_command): Remove the redundant call to
136 `clear_proceed_status`.
137
4641551a
KR
1382020-10-07 Kamil Rytarowski <n54@gmx.com>
139
140 * nat/netbsd-nat.c (write_memory, read_memory): Update.
141
91e5e8db
KR
1422020-10-07 Kamil Rytarowski <n54@gmx.com>
143
144 * nat/netbsd-nat.c (write_memory, read_memory): Add.
145 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
146 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
147
64c03bdb
SM
1482020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
149
150 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
151 (_initialize_break_catch_sig): Don't allocate array.
152
31a8f60f
AB
1532020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
154
155 * symtab.c (find_pc_line): Return unmapped addresses when the
156 requested address is also unmapped.
157
9e6dbd8b
SM
1582020-10-05 Simon Marchi <simon.marchi@efficios.com>
159
160 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
161 tui/tui-out.h.
162
a1d217e8
SM
1632020-10-05 Simon Marchi <simon.marchi@efficios.com>
164
165 * amd64-windows-tdep.c (amd64_windows_return_value): Use
166 type::is_vector instead of TYPE_VECTOR.
167
7d144117
SM
1682020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
169
170 * auto-load.c (auto_load_objfile_script_1): Don't use
171 debugfile_holder as temporary variable when stripping drive
172 letter.
173
cd096ec8
HD
1742020-10-05 Hannes Domani <ssbssa@yahoo.de>
175
176 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
177 Add TYPE_CODE_COMPLEX.
178 (amd64_windows_return_value): Fix types returned via XMM0.
179
b58e7f72
AH
1802020-10-05 Alan Hayward <alan.hayward@arm.com>
181
182 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
183 AArch64/ARM maintainers.
184
8d378f27
SM
1852020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
186
187 * NEWS: Mention set/show debug event-loop.
188
d5519913
TT
1892020-10-02 Tom Tromey <tromey@adacore.com>
190
191 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
192 REG_EXTENDED.
193
18b67edc
SM
1942020-10-02 Simon Marchi <simon.marchi@efficios.com>
195
196 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
197 * procfs.c (procfs_inferior_created): Remove.
198 (_initialize_procfs): Don't register procfs_inferior_created.
199
6b01403b
SM
2002020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
201
202 * async-event.c (invoke_async_signal_handlers): Add debug
203 print.
204 (check_async_event_handlers): Likewise.
205 * event-top.c (show_debug_event_loop): New function.
206 (_initialize_event_top): Register "set debug event-loop"
207 setting.
208
ba988419
SM
2092020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
210
211 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
212 * debug.h: Remove.
213 * infrun.c: Include gdbsupport/common-debug.h.
214 * linux-nat.c: Likewise.
215
db20ebdf
SM
2162020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
217
218 * async-event.h (create_async_signal_handler): Add name
219 parameter.
220 (create_async_event_handler): Likewise.
221 * async-event.c (struct async_signal_handler) <name>: New field.
222 (struct async_event_handler) <name>: New field.
223 (create_async_signal_handler): Assign name.
224 (create_async_event_handler): Assign name.
225 * event-top.c (async_init_signals): Pass name when creating
226 handler.
227 * infrun.c (_initialize_infrun): Likewise.
228 * record-btrace.c (record_btrace_push_target): Likewise.
229 * record-full.c (record_full_open): Likewise.
230 * remote-notif.c (remote_notif_state_allocate): Likewise.
231 * remote.c (remote_target::open_1): Likewise.
232 * tui/tui-win.c (tui_initialize_win): Likewise.
233
2554f6f5
SM
2342020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
235
236 * async-event.c (initialize_async_signal_handlers): Pass name to
237 add_file_handler
238 * event-top.c (ui_register_input_event_handler): Likewise.
239 * linux-nat.c (linux_nat_target::async): Likewise.
240 * run-on-main-thread.c (_initialize_run_on_main_thread):
241 Likewise
242 * ser-base.c (reschedule): Likewise.
243 (ser_base_async): Likewise.
244 * tui/tui-io.c: Likewise.
245 * top.h (struct ui) <num>: New field.
246 * top.c (highest_ui_num): New variable.
247 (ui::ui): Initialize num.
248
a7aba266
SM
2492020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
250
251 * observable.h <inferior_created>: Remove parameters. Update all
252 listeners.
253 * inferior.h (post_create_inferior): Remove target parameter.
254 Update all callers.
255
048fde1e 2562020-10-02 Nitika Achra <Nitika.Achra@amd.com>
257
258 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
259 and DW_MACRO_undef_strx.
260 (dwarf_decode_macros): Likewise
261 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
262 which is the value of DW_AT_str_offsets_base.
263 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
264 str_offsets_base.
265
064280be
KR
2662020-10-01 Kamil Rytarowski <n54@gmx.com>
267
268 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
269
6ff33035
KR
2702020-10-01 Kamil Rytarowski <n54@gmx.com>
271
272 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
273 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
274
1eb6eb79
KR
2752020-10-01 Kamil Rytarowski <n54@gmx.com>
276
277 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
278
95eb9e54
TV
2792020-09-30 Tom de Vries <tdevries@suse.de>
280
281 PR symtab/26683
282 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
283
cae21f8e
TT
2842020-09-30 Tom Tromey <tromey@adacore.com>
285
286 * dwarf2/read.c (handle_variant): Use constant_value.
287
529908cb
TT
2882020-09-29 Tom Tromey <tom@tromey.com>
289
290 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
291 (read_file_scope, dwarf2_get_pc_bounds)
292 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
293 (read_structure_type, handle_struct_member_die)
294 (read_enumeration_type, read_array_type, read_set_type)
295 (read_tag_pointer_type, read_tag_reference_type)
296 (read_subroutine_type, read_base_type, read_subrange_type)
297 (read_full_die_1, partial_die_info::read)
298 (partial_die_info::read, by, new_symbol)
299 (dwarf2_const_value_data, dwarf2_const_value_attr)
300 (dump_die_shallow, dwarf2_fetch_constant_bytes)
301 (prepare_one_comp_unit): Update.
302 * dwarf2/attribute.h (DW_UNSND): Remove.
303
c45bc3f8
TT
3042020-09-29 Tom Tromey <tom@tromey.com>
305
306 * dwarf2/read.c (read_func_scope, prototyped_function_p)
307 (read_subroutine_type, partial_die_info::read)
308 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
309 (dwarf2_add_member_fn): Update.
310 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
311 * dwarf2/attribute.c (attribute::as_boolean): New method.
312
23dca5c3
TT
3132020-09-29 Tom Tromey <tom@tromey.com>
314
315 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
316 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
317 method.
318 * dwarf2/attribute.c (attribute::as_virtuality): New method.
319
52c14d11
TT
3202020-09-29 Tom Tromey <tom@tromey.com>
321
322 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
323 the attribute's form.
324
e8e5c158
TT
3252020-09-29 Tom Tromey <tom@tromey.com>
326
327 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
328 (dwarf2_add_member_fn): Update.
329 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
330 * dwarf2/attribute.c (attribute::defaulted): New method, from
331 is_valid_DW_AT_defaulted.
332
d4df075e
TT
3332020-09-29 Tom Tromey <tom@tromey.com>
334
335 * dwarf2/read.c (dw2_get_file_names_reader)
336 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
337 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
338 (dwarf2_symbol_mark_computed): Use as_unsigned.
339 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
340 method.
341 <form_is_section_offset>: Update comment.
342
bf23a268
TT
3432020-09-29 Tom Tromey <tom@tromey.com>
344
345 * dwarf2/read.c (dwarf2_access_attribute): Rename from
346 dwarf2_default_access_attribute. Look up attribute.
347 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
348 Update.
349
7a5f294d
TT
3502020-09-29 Tom Tromey <tom@tromey.com>
351
352 * dwarf2/read.c (skip_one_die): Update.
353 (read_full_die_1): Change how reprocessing is done.
354 (partial_die_info::read): Update.
355 (read_attribute_value): Remove need_reprocess parameter.
356 (read_attribute): Likewise.
357 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
358 New method.
359
36d378cf
TT
3602020-09-29 Tom Tromey <tom@tromey.com>
361
362 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
363 (dwarf2_const_value_attr, dump_die_shallow)
364 (dwarf2_fetch_constant_bytes): Update.
365 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
366 comment.
367 <set_address>: New method.
368 (DW_ADDR): Remove.
369 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
370 (attribute::as_string, attribute::as_address): Add assert.
371
fe56917a
TT
3722020-09-29 Tom Tromey <tom@tromey.com>
373
374 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
375 (read_attribute_reprocess, read_attribute_value): Update.
376 (read_attribute): Clear requires_reprocessing.
377 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
378 form_requires_reprocessing>: New methods.
379 <string_init>: Clear requires_reprocessing.
380 <set_unsigned_reprocess>: New method.
381 <name>: Shrink by one bit.
382 <requires_reprocessing>: New member.
383 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
384 method.
385
414ad644
TT
3862020-09-29 Tom Tromey <tom@tromey.com>
387
388 * dwarf2/read.c (read_attribute_value): Update.
389 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
390 set_unsigned>: New methods.
391 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
392
1bc397c5
TT
3932020-09-29 Tom Tromey <tom@tromey.com>
394
395 * dwarf2/read.c (get_alignment, read_array_order)
396 (read_attribute_value, dwarf2_const_value_attr)
397 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
398 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
399 New methods.
400 (DW_SND): Remove.
401
630ed6b9
TT
4022020-09-29 Tom Tromey <tom@tromey.com>
403
404 * dwarf2/read.c (read_attribute_value, lookup_die_type)
405 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
406 Update.
407 * dwarf2/attribute.h (struct attribute) <as_signature,
408 set_signature>: New methods.
409 (DW_SIGNATURE): Remove.
410
9d2246fc
TT
4112020-09-29 Tom Tromey <tom@tromey.com>
412
413 * dwarf2/read.c (read_call_site_scope)
414 (handle_data_member_location, dwarf2_add_member_fn)
415 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
416 (partial_die_info::read, read_attribute_value)
417 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
418 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
419 (dwarf2_symbol_mark_computed): Update.
420 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
421 methods.
422 (DW_BLOCK): Remove.
423 * dwarf2/attribute.c (attribute::form_is_block): Add
424 DW_FORM_data16.
425
c6481205
TT
4262020-09-29 Tom Tromey <tom@tromey.com>
427
428 * dwarf2/read.c (read_cutu_die_from_dwo)
429 (read_attribute_reprocess, read_attribute_value, read_attribute)
430 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
431 (dwarf2_fetch_constant_bytes): Update.
432 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
433 <set_string_noncanonical, set_string_canonical>: New methods.
434 <string_is_canonical>: Update comment.
435 <canonical_string_p>: Add assert.
436 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
437 * dwarf2/attribute.c (attribute::form_is_string): New method.
438 (attribute::string): Use it.
439
3b64bf15
TT
4402020-09-29 Tom Tromey <tom@tromey.com>
441
442 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
443 (dump_die_shallow): Use canonical_string_p.
444 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
445 method.
446
2c830f54
TT
4472020-09-29 Tom Tromey <tom@tromey.com>
448
449 * dwarf2/read.c (partial_die_info::read)
450 (dwarf2_const_value_attr, anonymous_struct_prefix, )
451 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
452 attribute::as_string.
453
6c412691
TT
4542020-09-29 Tom Tromey <tom@tromey.com>
455
456 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
457 DW_ADDR.
458 (attribute::string): Don't use DW_STRING.
459 (attribute::get_ref_die_offset): Don't use DW_UNSND.
460 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
461
95f982e5
TT
4622020-09-29 Tom Tromey <tom@tromey.com>
463
464 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
465 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
466 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
467 * dwarf2/attribute.h (struct attribute): Rename methods.
468 * dwarf2/attribute.c (attribute::as_address): Rename from
469 value_as_address.
470 (attribute::as_string): Rename from value_as_string.
471
f800b00e
TT
4722020-09-29 Tom Tromey <tom@tromey.com>
473
474 * dwarf2/read.c (partial_die_info::read) <case
475 DW_AT_linkage_name>: Use value_as_string.
476 (dwarf2_string_attr): Use value_as_string.
477 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
478 method.
479 * dwarf2/attribute.c (attribute::value_as_string): New method.
480
de38d64a
PA
4812020-09-29 Pedro Alves <pedro@palves.net>
482
483 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
484 defined before using '#pragma GCC diagnostic' instead of checking
485 __clang__.
486
9aed480c
TT
4872020-09-28 Tom Tromey <tom@tromey.com>
488
489 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
490 (handle_signal_stop): Update.
491 * procfs.c (procfs_target::insert_watchpoint): Update.
492 * target.h (target_have_steppable_watchpoint): Now a function.
493
8a3ecb79
TT
4942020-09-28 Tom Tromey <tom@tromey.com>
495
496 * infrun.c (set_schedlock_func): Update.
497 * target.h (target_can_lock_scheduler): Now a function.
498
55f6301a
TT
4992020-09-28 Tom Tromey <tom@tromey.com>
500
501 * inferior.h (class inferior) <has_execution>: Update.
502 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
503 * valops.c (find_function_in_inferior)
504 (value_allocate_space_in_inferior): Update.
505 * top.c (kill_or_detach): Update.
506 * target.c (target_preopen, set_target_permissions): Update.
507 (target_has_execution_current): Remove.
508 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
509 Update.
510 * solib.c (update_solib_list, reload_shared_libraries): Update.
511 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
512 * solib-dsbt.c (enable_break): Update.
513 * score-tdep.c (score7_fetch_inst): Update.
514 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
515 Update.
516 * remote.c (remote_target::start_remote)
517 (remote_target::remote_check_symbols, remote_target::open_1)
518 (remote_target::remote_detach_1, remote_target::verify_memory)
519 (remote_target::xfer_partial, remote_target::read_description)
520 (remote_target::get_min_fast_tracepoint_insn_len): Update.
521 * record-full.c (record_full_open_1): Update.
522 * record-btrace.c (record_btrace_target_open): Update.
523 * objc-lang.c (lookup_objc_class, lookup_child_selector)
524 (value_nsstring): Update.
525 * linux-thread-db.c (add_thread_db_info)
526 (thread_db_find_new_threads_silently, check_thread_db_callback)
527 (try_thread_db_load_1, record_thread): Update.
528 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
529 Update.
530 * linux-fork.c (checkpoint_command): Update.
531 * infrun.c (set_non_stop, set_observer_mode)
532 (check_multi_target_resumption, for_each_just_stopped_thread)
533 (maybe_remove_breakpoints, normal_stop)
534 (class infcall_suspend_state): Update.
535 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
536 (info_program_command, attach_command): Update.
537 * infcall.c (call_function_by_hand_dummy): Update.
538 * inf-loop.c (inferior_event_handler): Update.
539 * gcore.c (gcore_command, derive_heap_segment): Update.
540 * exec.c (exec_file_command): Update.
541 * eval.c (evaluate_subexp): Update.
542 * compile/compile.c (compile_to_object): Update.
543 * cli/cli-dump.c (restore_command): Update.
544 * breakpoint.c (update_watchpoint)
545 (update_inserted_breakpoint_locations)
546 (insert_breakpoint_locations, get_bpstat_thread): Update.
547 * target.h (target_has_execution): Remove macro.
548 (target_has_execution_current): Don't declare.
549 (target_has_execution): Rename from target_has_execution_1. Add
550 argument default.
551
05374cfd
TT
5522020-09-28 Tom Tromey <tom@tromey.com>
553
554 * mi/mi-main.c (exec_reverse_continue)
555 (mi_cmd_list_target_features): Update.
556 * infrun.c (set_exec_direction_func): Update.
557 * target.c (default_execution_direction): Update.
558 * reverse.c (exec_reverse_once): Update.
559 * target.h (target_can_execute_reverse): Now a function.
560
9dccd06e
TT
5612020-09-28 Tom Tromey <tom@tromey.com>
562
563 * tui/tui-regs.c (tui_get_register)
564 (tui_data_window::show_registers): Update.
565 * thread.c (scoped_restore_current_thread::restore)
566 (scoped_restore_current_thread::scoped_restore_current_thread):
567 Update.
568 * regcache-dump.c (regcache_print): Update.
569 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
570 Update.
571 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
572 * mep-tdep.c (current_me_module, current_options): Update.
573 * linux-thread-db.c (thread_db_load): Update.
574 * infcmd.c (registers_info, info_vector_command)
575 (info_float_command): Update.
576 * ia64-tdep.c (ia64_frame_prev_register)
577 (ia64_sigtramp_frame_prev_register): Update.
578 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
579 * gcore.c (derive_stack_segment): Update.
580 * frame.c (get_current_frame, has_stack_frames): Update.
581 * findvar.c (language_defn::read_var_value): Update.
582 * arm-tdep.c (arm_pc_is_thumb): Update.
583 * target.c (target_has_registers): Rename from
584 target_has_registers_1.
585 * target.h (target_has_registers): Remove macro.
586 (target_has_registers): Rename from target_has_registers_1.
587
841de120
TT
5882020-09-28 Tom Tromey <tom@tromey.com>
589
590 * windows-tdep.c (tlb_make_value): Update.
591 * tui/tui-regs.c (tui_data_window::show_registers): Update.
592 * thread.c (scoped_restore_current_thread::restore)
593 (scoped_restore_current_thread::scoped_restore_current_thread)
594 (thread_command): Update.
595 * stack.c (backtrace_command_1, frame_apply_level_command)
596 (frame_apply_all_command, frame_apply_command): Update.
597 * infrun.c (siginfo_make_value, restore_infcall_control_state):
598 Update.
599 * gcore.c (derive_stack_segment): Update.
600 * frame.c (get_current_frame, has_stack_frames): Update.
601 * auxv.c (info_auxv_command): Update.
602 * ada-tasks.c (ada_build_task_list): Update.
603 * target.c (target_has_stack): Rename from target_has_stack_1.
604 * target.h (target_has_stack): Remove macro.
605 (target_has_stack): Rename from target_has_stack_1.
606
a739972c
TT
6072020-09-28 Tom Tromey <tom@tromey.com>
608
609 * target.c (target_has_memory): Rename from target_has_memory_1.
610 * tui/tui-regs.c (tui_data_window::show_registers): Update.
611 * thread.c (scoped_restore_current_thread::restore)
612 (scoped_restore_current_thread::scoped_restore_current_thread):
613 Update.
614 * frame.c (get_current_frame, has_stack_frames): Update.
615 * target.h (target_has_memory): Remove macro.
616 (target_has_memory): Rename from target_has_memory_1.
617
5b8a4776
TT
6182020-09-28 Tom Tromey <tom@tromey.com>
619
620 * target.c (target_has_all_memory_1): Remove.
621 * target.h (target_has_all_memory): Remove define.
622 (target_has_all_memory_1): Don't declare.
623
bd356ec6
SM
6242020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
625
626 * ser-base.c: Adjust comments formatting.
627
2c72d5e5
TT
6282020-09-27 Tom Tromey <tom@tromey.com>
629
630 PR tui/25342:
631 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
632
35a98237
TT
6332020-09-27 Tom Tromey <tom@tromey.com>
634
635 PR tui/25342:
636 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
637
9e820dec
TT
6382020-09-27 Tom Tromey <tom@tromey.com>
639
640 * unittests/tui-selftests.c: Update.
641 * tui/tui-winsource.h (struct tui_source_window_base)
642 <extra_margin, show_line_number, refresh_pad>: New methods.
643 <m_max_length, m_pad>: New members.
644 (tui_copy_source_line): Update.
645 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
646 first_col, line_width, ndigits parameters. Add length.
647 (tui_source_window_base::show_source_line): Write to pad. Line
648 number now 0-based.
649 (tui_source_window_base::refresh_pad): New method.
650 (tui_source_window_base::show_source_content): Write to pad. Call
651 refresh_pad.
652 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
653 not refill.
654 (tui_source_window_base::update_exec_info): Call
655 show_line_number.
656 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
657 method.
658 <m_digits>: New member.
659 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
660 and m_max_length.
661 (tui_source_window::show_line_number): New method.
662 * tui/tui-io.h (tui_puts): Fix comment.
663 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
664 m_max_length.
665
c15c15c8
TT
6662020-09-27 Tom Tromey <tom@tromey.com>
667
668 * tui/tui-winsource.c
669 (tui_source_window_base::set_is_exec_point_at): Don't call
670 show_source_line.
671
149830c1
TT
6722020-09-27 Tom Tromey <tom@tromey.com>
673
674 * python/py-tui.c (class tui_py_window) <refresh_window>: New
675 method.
676 <erase>: Update.
677 <cursor_x, cursor_y>: Remove.
678 <m_inner_window>: New member.
679 (tui_py_window::rerender): Create inner window.
680 (tui_py_window::output): Write to inner window.
681
8f9929bb
GR
6822020-09-26 Gareth Rees <grees@undo.io> (tiny change)
683
684 PR python/26586
685 * cli/cli-script.c (execute_control_commands): don't set
686 instream to nullptr here as this breaks the from_tty argument
687 to gdb.execute in Python.
688 (execute_user_command): set instream to nullptr here instead.
689
956bdb59
SM
6902020-09-25 Simon Marchi <simon.marchi@efficios.com>
691
692 * infrun.h (infrun_debug_printf): Fix formatting.
693 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
694
3b93626b
SJ
6952020-09-25 Saagar Jha <saagar@saagarjha.com>
696
697 * compile/compile-object-load.h (struct munmap_list): Add
698 explicitly-defined move constructor.
699
b551a89f
TT
7002020-09-24 Tom Tromey <tromey@adacore.com>
701
702 PR tui/26638:
703 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
704 method.
705 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
706 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
707 (tui_prev_win): Rewrite.
708
99bb393f
HD
7092020-09-23 Hannes Domani <ssbssa@yahoo.de>
710
711 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
712 in WOW64 processes as SIGINT.
713 * nat/windows-nat.h: Make wow64_process a shared variable.
714 * windows-nat.c: Remove static wow64_process variable.
715
20a5fcbd
TT
7162020-09-23 Tom Tromey <tom@tromey.com>
717
718 PR symtab/25470:
719 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
720 offset and bit size.
721 * printcmd.c (print_scalar_formatted): Handle zero-length
722 integer.
723 (print_scalar_formatted): Use bit_size_differs_p.
724 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
725 constant.
726 (union type_specific): <int_stuff>: New member.
727 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
728 methods.
729 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
730 TYPE_SPECIFIC_FIELD.
731 (recursive_dump_type, copy_type_recursive): Update.
732 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
733 DW_AT_data_bit_offset.
734
bac51ab7
TT
7352020-09-23 Tom Tromey <tom@tromey.com>
736
737 * utils.h (class gdb_argv): Add move operators.
738 <append>: New methods.
739 * compile/compile.c (build_argc_argv): Remove.
740 (compile_args_argc): Remove.
741 (compile_args_argv): Change type.
742 (set_compile_args): Simplify.
743 (append_args): Remove.
744 (filter_args): Remove argcp parameter.
745 (get_args): Return gdb_argv. Simplify.
746 (compile_to_object): Update.
747
92677124
TT
7482020-09-23 Tom Tromey <tom@tromey.com>
749
750 * compile/compile-object-run.c (do_module_cleanup)
751 <~do_module_cleanup> :Remove.
752 (do_module_cleanup): Update.
753 * compile/compile-object-load.h (struct munmap_list): Add move
754 assignment operator.
755 <source_file>: Now a std::string.
756 <munmap_list>: Rename. No longer a pointer.
757 * compile/compile-object-load.c (struct setup_sections_data): Add
758 constructor.
759 <setup_one_section>: Declare.
760 <munmap_list>: Move earlier.
761 <m_bfd>: New member.
762 <m_last_size, m_last_section_first, m_last_prot,
763 m_last_max_alignment>: Rename, add initializers where needed.
764 (setup_sections_data::setup_one_section): Rename from
765 setup_sections. Update.
766 (compile_object_load): Update. Don't use bfd_map_over_sections.
767
e616f60a
TT
7682020-09-23 Tom Tromey <tom@tromey.com>
769
770 * compile/compile-object-run.c (struct do_module_cleanup): Add
771 parameters to constructor. Update destructor.
772 <source_file, scope, scope_data, out_value_type, out_value_addr,
773 munmap_list_head, objfile_name_string>: Remove.
774 <module>: New member.
775 (do_module_cleanup): Update.
776 (compile_object_run): Update.
777
e947a848
TT
7782020-09-23 Tom Tromey <tom@tromey.com>
779
780 * compile/compile.c (eval_compile_command): Update.
781 * compile/compile-object-run.h (compile_object_run): Take a
782 compile_module_up.
783 * compile/compile-object-run.c (compile_object_run): Take a
784 compile_module_up.
785 * compile/compile-object-load.h (struct compile_module): Add
786 constructor, destructor.
787 (compile_module_up): New typedef.
788 (compile_object_load): Return compile_object_up.
789 * compile/compile-object-load.c (compile_object_load): Return
790 compile_module_up.
791
0dbf6ee6
TT
7922020-09-23 Tom Tromey <tom@tromey.com>
793
794 * compile/compile-object-run.c (struct do_module_cleanup): Add
795 constructor, destructor.
796 <objfile_name_string>: Don't use struct hack.
797 (do_module_cleanup): Use delete.
798 (compile_object_run): Use new.
799
ebe824f5
TT
8002020-09-23 Tom Tromey <tom@tromey.com>
801
802 * compile/compile-cplus-types.c
803 (compile_cplus_convert_struct_or_union): Use std::vector.
804 (compile_cplus_convert_func): Likewise.
805 * compile/compile-c-types.c (convert_func): Use std::vector.
806
5dd918d9
TT
8072020-09-21 Tom Tromey <tromey@adacore.com>
808
809 * sparc-tdep.c (sparc32_skip_prologue): Use
810 skip_prologue_using_sal.
811
5486c517
TT
8122020-09-19 Tom Tromey <tom@tromey.com>
813
814 * symfile.c (add_section_size_callback): Remove.
815 (load_one_section): Rename from load_section_callback. Change
816 parameters.
817 (generic_load): Use foreach.
818
8a6bb1d1
TT
8192020-09-19 Tom Tromey <tom@tromey.com>
820
821 * exec.c (add_to_section_table): Remove.
822 (build_section_table): Use foreach.
823
08f93a1a
TT
8242020-09-19 Tom Tromey <tom@tromey.com>
825
826 * elfread.c (elf_locate_sections): Change parameters.
827 (elf_symfile_read): Use foreach.
828
03cd72b8
TT
8292020-09-19 Tom Tromey <tom@tromey.com>
830
831 * cli/cli-dump.c (struct callback_data): Remove.
832 (restore_one_section): Rename from restore_section_callback.
833 Change parameters.
834 (restore_binary_file): Change parameters.
835 (restore_command): Use foreach.
836
f4f2b85f
TT
8372020-09-19 Tom Tromey <tom@tromey.com>
838
839 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
840 (gcore_copy_callback): Likewise.
841 (gcore_memory_sections): Use foreach.
842
b35c1d1c
TT
8432020-09-19 Tom Tromey <tom@tromey.com>
844
845 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
846 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
847 parameters.
848 (generic_elf_osabi_sniffer): Use foreach.
849 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
850 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
851
5bb6e9dd
TT
8522020-09-19 Tom Tromey <tom@tromey.com>
853
854 * dwarf2/read.c (locate_dwz_sections): Change parameters.
855 (dwarf2_get_dwz_file): Use foreach.
856 (dwarf2_locate_dwo_sections): Change parameters.
857 (open_and_init_dwo_file): Use foreach.
858 (dwarf2_locate_common_dwp_sections): Change parameters.
859 (open_and_init_dwp_file): Use foreach.
860
ad7277da
TT
8612020-09-19 Tom Tromey <tom@tromey.com>
862
863 * symfile.h: (find_lowest_section): Don't declare.
864 * symfile.c (find_lowest_section): Now static. Change
865 parameters.
866 (struct place_section_arg): Remove.
867 (place_section): Change parameters.
868 (addr_info_make_relative): Use foreach.
869 (symfile_dummy_outputs): Remove.
870 (default_symfile_relocate): Use foreach.
871
cb814f2e
TT
8722020-09-19 Tom Tromey <tom@tromey.com>
873
874 * objfiles.c (add_to_objfile_sections): Rename from
875 add_to_objfile_sections_full.
876 (add_to_objfile_sections): Remove.
877 (build_objfile_section_table): Use foreach.
878
3cabfd26
TT
8792020-09-19 Tom Tromey <tom@tromey.com>
880
881 * stap-probe.c (get_stap_base_address_1): Remove.
882 (get_stap_base_address): Use foreach.
883
1ce51eb5
TT
8842020-09-19 Tom Tromey <tom@tromey.com>
885
886 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
887 parameters.
888 (gdb_bfd_close_or_warn): Use foreach.
889
a190fabb
TT
8902020-09-19 Tom Tromey <tom@tromey.com>
891
892 * corelow.c (add_to_thread_list): Change parameters.
893 (core_target_open): Use foreach.
894
cafb0d81
TT
8952020-09-19 Tom Tromey <tom@tromey.com>
896
897 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
898 existing function.
899
c8d5abea
AB
9002020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
901
902 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
903 for arrays.
904
6d816919
AB
9052020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
906
907 * eval.c: Remove 'f-lang.h' include.
908 (value_f90_subarray): Moved to f-lang.c.
909 (eval_call): Renamed to...
910 (evaluate_subexp_do_call): ...this, is no longer static, header
911 comment moved into header file.
912 (evaluate_funcall): Update call to eval_call.
913 (skip_undetermined_arglist): Moved to f-lang.c.
914 (fortran_value_subarray): Likewise.
915 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
916 moved to evaluate_subexp_f.
917 (calc_f77_array_dims): Moved to f-lang.c
918 * expprint.c (print_subexp_funcall): New function.
919 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
920 moved to print_subexp_f, OP_FUNCALL uses new function.
921 (dump_subexp_body_funcall): New function.
922 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
923 moved to dump_subexp_f, OP_FUNCALL uses new function.
924 * expression.h (evaluate_subexp_do_call): Declare.
925 * f-lang.c (value_f90_subarray): Moved from eval.c.
926 (skip_undetermined_arglist): Likewise.
927 (calc_f77_array_dims): Likewise.
928 (fortran_value_subarray): Likewise.
929 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
930 (operator_length_f): Likewise.
931 (print_subexp_f): Likewise.
932 (dump_subexp_body_f): Likewise.
933 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
934 declaration of this operation to here.
935 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
936 support moved to operator_length_f.
937 * parser-defs.h (dump_subexp_body_funcall): Declare.
938 (print_subexp_funcall): Declare.
939 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
940 fortran-operator.def.
941
8c37706a
AB
9422020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
943
944 * eval.c (fortran_value_subarray): New function, content is taken
945 from...
946 (evaluate_subexp_standard): ...here, in two places. Now arrays
947 and strings both call the new function.
948 (calc_f77_array_dims): Add header comment, handle strings.
949
14f9473c
VC
9502020-09-18 Victor Collod <vcollod@nvidia.com>
951
952 PR gdb/26635
953 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
954 (i386_analyze_prologue): Call i386_skip_endbr.
955
b60cea74
TT
9562020-09-18 Tom Tromey <tromey@adacore.com>
957
958 * windows-nat.c (struct windows_nat_target) <wait>: Update.
959 (windows_nat_target::wait): Update.
960 * target/wait.h (enum target_wait_flag): New. Use
961 DEF_ENUM_FLAGS_TYPE.
962 * target/target.h (target_wait): Change type of options.
963 * target.h (target_options_to_string, default_target_wait):
964 Update.
965 (struct target_ops) <wait>: Change type of options.
966 * target.c (target_wait, default_target_wait, do_option): Change
967 type of "options".
968 (target_options_to_string): Likewise.
969 * target-delegates.c: Rebuild.
970 * target-debug.h (target_debug_print_target_wait_flags): Rename
971 from target_debug_print_options.
972 * sol-thread.c (class sol_thread_target) <wait>: Update.
973 (sol_thread_target::wait): Update.
974 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
975 (rs6000_nat_target::wait): Update.
976 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
977 Update.
978 (remote_target::wait_ns, remote_target::wait_as): Change type of
979 "options".
980 (remote_target::wait): Update.
981 * remote-sim.c (struct gdbsim_target) <wait>: Update.
982 (gdbsim_target::wait): Update.
983 * record-full.c (class record_full_base_target) <wait>: Update.
984 (record_full_wait_1): Change type of "options".
985 (record_full_base_target::wait): Update.
986 * record-btrace.c (class record_btrace_target) <wait>: Update.
987 (record_btrace_target::wait): Update.
988 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
989 Update.
990 (ravenscar_thread_target::wait): Update.
991 * procfs.c (class procfs_target) <wait>: Update.
992 (procfs_target::wait): Update.
993 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
994 * obsd-nat.c (obsd_nat_target::wait): Update.
995 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
996 (nto_procfs_target::wait): Update.
997 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
998 * nbsd-nat.c (nbsd_wait): Change type of "options".
999 (nbsd_nat_target::wait): Update.
1000 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1001 (thread_db_target::wait): Update.
1002 * linux-nat.h (class linux_nat_target) <wait>: Update.
1003 * linux-nat.c (linux_nat_target::wait): Update.
1004 (linux_nat_wait_1): Update.
1005 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1006 "options".
1007 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1008 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1009 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1010 (go32_nat_target::wait): Update.
1011 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1012 * gnu-nat.c (gnu_nat_target::wait): Update.
1013 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1014 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1015 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1016 * darwin-nat.c (darwin_nat_target::wait): Update.
1017 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1018 (bsd_uthread_target::wait): Update.
1019 * aix-thread.c (class aix_thread_target) <wait>: Update.
1020 (aix_thread_target::wait): Update.
1021
0295dde6
AB
10222020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1023
1024 * compile/compile-object-run.c (create_copied_type_recursive): New
1025 function.
1026 (compile_object_run): Use new function.
1027
d3483b43
JT
10282020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1029
1030 * NEWS: Mention x86_64 Cygwin core file support.
1031
e7d612ad
JT
10322020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1033
1034 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1035 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1036
aff9d387
JT
10372020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1038
62a5151b
JT
1039 * windows-tdep.h: Add prototypes.
1040 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1041 (i386_windows_core_pid_to_str): Move and rename ...
1042 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1043 (windows_core_pid_to_str): ... and here.
1044 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1045
10462020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1047 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1048 (amd64_windows_init_abi_common): ... and register.
1049
7d155da3
JT
10502020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1051
1052 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1053 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1054
e8ef12b9
PA
10552020-09-18 Pedro Alves <pedro@palves.net>
1056
1057 PR gdb/26631
1058 * thread.c (thread_find_command): Switch inferior before calling
1059 target methods.
1060
c1e1314d
TT
10612020-09-17 Tom Tromey <tromey@adacore.com>
1062
1063 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1064 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1065 (tdesc_arch_data_up): New typedef.
1066 (tdesc_use_registers, tdesc_data_alloc): Update.
1067 (tdesc_data_cleanup): Don't declare.
1068 * target-descriptions.c (tdesc_data_alloc): Return a
1069 tdesc_arch_data_up.
1070 (tdesc_arch_data_deleter::operator()): Rename from
1071 tdesc_data_cleanup. Change argument type.
1072 (tdesc_use_registers): Change early_data to an rvalue reference.
1073 (tdesc_use_registers): Don't use delete.
1074 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1075 * s390-tdep.c (s390_gdbarch_init): Update.
1076 * rx-tdep.c (rx_gdbarch_init): Update.
1077 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1078 * riscv-tdep.c (riscv_gdbarch_init): Update.
1079 * or1k-tdep.c (or1k_gdbarch_init): Update.
1080 * nios2-tdep.c (nios2_gdbarch_init): Update.
1081 * nds32-tdep.c (nds32_gdbarch_init): Update.
1082 * mips-tdep.c (mips_gdbarch_init): Update.
1083 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1084 * m68k-tdep.c (m68k_gdbarch_init): Update.
1085 * i386-tdep.c (i386_gdbarch_init): Update.
1086 * arm-tdep.c (arm_gdbarch_init): Update.
1087 * arc-tdep.c (arc_tdesc_init): Update.
1088 (arc_gdbarch_init): Update.
1089 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1090
0363df3d
HD
10912020-09-17 Hannes Domani <ssbssa@yahoo.de>
1092
1093 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1094 for WOW64 processes.
1095
280a9412
TT
10962020-09-17 Tom Tromey <tom@tromey.com>
1097
1098 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1099
6108fd18
TT
11002020-09-17 Tom Tromey <tom@tromey.com>
1101
1102 * value.c (preserve_values): Update.
1103 * python/py-type.c (save_objfile_types): Update.
1104 * guile/scm-type.c (save_objfile_types): Update.
1105 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1106 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1107 * compile/compile-object-run.c (compile_object_run): Update.
1108
fa9b1164
TT
11092020-09-17 Tom Tromey <tom@tromey.com>
1110
1111 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1112 Remove.
1113 <m_table>: Now htab_up.
1114 * typeprint.c (typedef_hash_table::recursively_update)
1115 (typedef_hash_table::add_template_parameters)
1116 (typedef_hash_table::typedef_hash_table): Update.
1117 (typedef_hash_table::~typedef_hash_table): Remove.
1118 (typedef_hash_table::typedef_hash_table)
1119 (typedef_hash_table::find_global_typedef)
1120 (typedef_hash_table::find_typedef): Update.
1121
eb53f105
TT
11222020-09-17 Tom Tromey <tom@tromey.com>
1123
1124 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1125
7a8a5d47
TT
11262020-09-17 Tom Tromey <tom@tromey.com>
1127
1128 * linespec.c (class decode_compound_collector)
1129 <~decode_compound_collector>: Remove.
1130 <m_unique_syms>: Now htab_up.
1131 (decode_compound_collector::operator ()): Update.
1132 (class symtab_collector) <~symtab_collector>: Remove.
1133 <m_symtab_table>: Now htab_up.
1134 (symtab_collector::operator ()): Update.
1135
99032cfc
TT
11362020-09-17 Tom Tromey <tom@tromey.com>
1137
1138 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1139 (filename_seen_cache::clear): Update.
1140 (~filename_seen_cache): Remove.
1141 (filename_seen_cache::seen): Update.
1142 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1143 htab_up.
1144 <~filename_seen_cache>: Remove.
1145 <traverse>: Update.
1146
32580f6d
TT
11472020-09-17 Tom Tromey <tom@tromey.com>
1148
1149 * completer.c (completion_tracker::discard_completions)
1150 (completion_tracker::~completion_tracker)
1151 (completion_tracker::maybe_add_completion)
1152 (completion_tracker::remove_completion)
1153 (completion_tracker::recompute_lowest_common_denominator)
1154 (completion_tracker::build_completion_result): Update.
1155 * completer.h (class completion_tracker) <have_completions>:
1156 Update.
1157 <m_entries_hash>: Now htab_up.
1158
c1fb9836
TT
11592020-09-17 Tom Tromey <tom@tromey.com>
1160
1161 * breakpoint.c (ambiguous_names_p): Use htab_up.
1162
88f07206
TT
11632020-09-17 Tom Tromey <tom@tromey.com>
1164
1165 * auto-load.c (struct auto_load_pspace_info)
1166 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1167 <loaded_script_files, loaded_script_texts>: Change type to
1168 htab_up.
1169 (~auto_load_pspace_info) Remove.
1170 (init_loaded_scripts_info, maybe_add_script_file)
1171 (maybe_add_script_text, auto_load_info_scripts): Update.
1172
9519b2ee
TT
11732020-09-17 Tom Tromey <tromey@adacore.com>
1174
1175 * c-exp.y (name_obstack): Now static.
1176
d2cd4113
CC
11772020-09-17 Chungyi Chi <demonic@csie.io>
1178
1179 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1180
b650a282
SM
11812020-09-16 Simon Marchi <simon.marchi@efficios.com>
1182
1183 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1184 (add_solib_catchpoint): Likewise.
1185 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1186 to bool.
1187 (add_solib_catchpoint): Change int parameter/variable to bool.
1188 (catch_load_or_unload): Likewise.
1189 (init_catchpoint): Likewise.
1190 (create_fork_vfork_event_catchpoint): Likewise.
1191 (catch_fork_command_1): Likewise.
1192 (catch_exec_command_1): Likewise.
1193
4d0bcfcf
SM
11942020-09-16 Simon Marchi <simon.marchi@efficios.com>
1195
1196 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1197 Change instance_flags to m_instance_flags.
1198
fe830662
TT
11992020-09-16 Tom Tromey <tromey@adacore.com>
1200
1201 PR gdb/26598:
1202 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1203
fe5ddfc3
JB
12042020-09-16 John Baldwin <jhb@FreeBSD.org>
1205
1206 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1207 PL_FLAG_EXEC.
1208 (fbsd_nat_target::insert_exec_catchpoint)
1209 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1210 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1211 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1212
e911c666
JB
12132020-09-16 John Baldwin <jhb@FreeBSD.org>
1214
1215 * configure.ac: Remove check for kinfo_getvmmap().
1216 * configure, config.in: Regenerate.
1217 * fbsd-nat.c (fbsd_read_mapping): Remove
1218 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1219 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1220 kinfo_get_vmmap() are always present.
1221
1f17d372
JB
12222020-09-16 John Baldwin <jhb@FreeBSD.org>
1223
1224 * fbsd-nat.c: Always include support for
1225 TARGET_OBJECT_SIGNAL_INFO.
1226
bcb1da7f
JB
12272020-09-16 John Baldwin <jhb@FreeBSD.org>
1228
1229 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1230 sysctl and remove procfs fallback.
1231
5515f729
JB
12322020-09-16 John Baldwin <jhb@FreeBSD.org>
1233
1234 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1235 * fbsd-nat.h: Likewise.
1236
da1df1db
TBA
12372020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1238
1239 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1240 argument.
1241
0e25e767
AB
12422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1243
1244 * ada-lang.c (ada_language_data): Delete.
1245 (ada_language): Remove references to ada_language_data.
1246 * c-lang.c (c_language_data): Delete.
1247 (c_language): Remove references to c_language_data.
1248 (cplus_language_data): Delete.
1249 (cplus_language): Remove references to cplus_language_data.
1250 (asm_language_data): Delete.
1251 (asm_language): Remove references to asm_language_data.
1252 (minimal_language_data): Delete.
1253 (minimal_language): Remove references to minimal_language_data.
1254 * d-lang.c (d_language_data): Delete.
1255 (d_language): Remove references to d_language_data.
1256 * f-lang.c (f_language_data): Delete.
1257 (f_language): Remove references to f_language_data.
1258 * go-lang.c (go_language_data): Delete.
1259 (go_language): Remove references to go_language_data.
1260 * language.c (unknown_language_data): Delete.
1261 (unknown_language): Remove references to unknown_language_data.
1262 (auto_language_data): Delete.
1263 (auto_language): Remove references to auto_language_data.
1264 * language.h (language_data): Delete struct.
1265 (language_defn): No longer inherit from language_data.
1266 * m2-lang.c (m2_language_data): Delete.
1267 (m2_language): Remove references to m2_language_data.
1268 * objc-lang.c (objc_language_data): Delete.
1269 (objc_language): Remove references to objc_language_data.
1270 * opencl-lang.c (opencl_language_data): Delete.
1271 (opencl_language): Remove references to opencl_language_data.
1272 * p-lang.c (pascal_language_data): Delete.
1273 (pascal_language): Remove references to pascal_language_data.
1274 * rust-lang.c (rust_language_data): Delete.
1275 (rust_language): Remove references to rust_language_data.
1276
b7c6e27d
AB
12772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1278
1279 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1280 initializer.
1281 (ada_language::opcode_print_table): New member function.
1282 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1283 (c_language::opcode_print_table): New member function.
1284 (cplus_language_data): Remove la_op_print_tab initializer.
1285 (cplus_language::opcode_print_table): New member function.
1286 (asm_language_data): Remove la_op_print_tab initializer.
1287 (asm_language::opcode_print_table): New member function.
1288 (minimal_language_data): Remove la_op_print_tab initializer.
1289 (minimal_language::opcode_print_table): New member function.
1290 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1291 (d_language::opcode_print_table): New member function.
1292 * expprint.c (print_subexp_standard): Update call to
1293 opcode_print_table.
1294 (op_string): Likewise.
1295 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1296 (f_language::opcode_print_table): New member function.
1297 * go-lang.c (go_language_data): Remove la_op_print_tab
1298 initializer.
1299 (go_language::opcode_print_table): New member function.
1300 * language.c (unknown_language_data): Remove la_op_print_tab
1301 initializer.
1302 (unknown_language::opcode_print_table): New member function.
1303 (auto_language_data): Remove la_op_print_tab initializer.
1304 (auto_language::opcode_print_table): New member function.
1305 * language.h (language_data): Remove la_op_print_tab field.
1306 (language_defn::opcode_print_table): Declare new member function.
1307 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1308 initializer.
1309 (m2_language::opcode_print_table): New member function.
1310 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1311 initializer.
1312 (objc_language::opcode_print_table): New member function.
1313 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1314 initializer.
1315 (opencl_language::opcode_print_table): New member function.
1316 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1317 initializer.
1318 (pascal_language::opcode_print_table): New member function.
1319 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1320 initializer.
1321 (rust_language::opcode_print_table): New member function.
1322
5aba6ebe
AB
13232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1324
1325 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1326 (ada_language::expression_ops): New member function.
1327 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1328 (c_language::expression_ops): New member function.
1329 (cplus_language_data): Remove la_exp_desc initializer.
1330 (cplus_language::expression_ops): New member function.
1331 (asm_language_data): Remove la_exp_desc initializer.
1332 (asm_language::expression_ops): New member function.
1333 (minimal_language_data): Remove la_exp_desc initializer.
1334 (minimal_language::expression_ops): New member function.
1335 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1336 (d_language::expression_ops): New member function.
1337 * eval.c (evaluate_subexp): Update call to expression_ops.
1338 * expprint.c (print_subexp): Likewise.
1339 (op_name): Likewise.
1340 (dump_subexp_body): Likewise.
1341 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1342 (f_language::expression_ops): New member function.
1343 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1344 (go_language::expression_ops): New member function.
1345 * language.c (language_defn::expression_ops): New function.
1346 (unknown_language_data): Remove la_exp_desc initializer.
1347 (auto_language_data): Likewise.
1348 * language.h (language_data): Remove la_exp_desc field.
1349 (language_defn::expression_ops): Declare new member function.
1350 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1351 (m2_language::expression_ops): New member function.
1352 * objc-lang.c (objc_language_data): Remove la_exp_desc
1353 initializer.
1354 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1355 initializer.
1356 (opencl_language::expression_ops): New member function.
1357 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1358 * parse.c (operator_length): Update call to expression_ops.
1359 (exp_iterate): Likewise.
1360 * rust-lang.c (rust_language_data): Remove la_exp_desc
1361 initializer.
1362 (ruse_language::expression_ops): New member function.
1363
b63a3f3f
AB
13642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1365
1366 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1367 initializer.
1368 (ada_language::varobj_ops): New member function.
1369 * c-lang.c (c_language_data): Remove la_varobj_ops
1370 initializer.
1371 (cplus_language_data): Likewise.
1372 (cplus_language::varobj_ops): New member function.
1373 (asm_language_data): Remove la_varobj_ops initializer.
1374 (minimal_language_data): Likewise.
1375 * d-lang.c (d_language_data): Likewise.
1376 * f-lang.c (f_language_data): Likewise.
1377 * go-lang.c (go_language_data): Likewise.
1378 * language.c (language_defn::varobj_ops): New function.
1379 (unknown_language_data): Remove la_varobj_ops
1380 initializer.
1381 (auto_language_data): Likewise.
1382 * language.h (language_data): Remove la_varobj_ops field.
1383 (language_defn::varobj_ops): Declare new member function.
1384 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1385 * objc-lang.c (objc_language_data): Likewise.
1386 * opencl-lang.c (opencl_language_data): Likewise.
1387 * p-lang.c (pascal_language_data): Likewise.
1388 * rust-lang.c (rust_language_data): Likewise.
1389 * varobj.c (varobj_create): Update call to varobj_ops.
1390 * varobj.h (default_varobj_ops): Delete define.
1391
1ac14a04
AB
13922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1393
1394 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1395 initializer.
1396 * c-lang.c (c_language_data): Likewise.
1397 (c_language::macro_expansion): New member function.
1398 (cplus_language_data): Likewise.
1399 (cplus_language::macro_expansion): New member function.
1400 (asm_language_data): Likewise.
1401 (asm_language::macro_expansion): New member function.
1402 (minimal_language_data): Likewise.
1403 (minimal_language::macro_expansion): New member function.
1404 * d-lang.c (d_language_data): Remove la_macro_expansion
1405 initializer.
1406 * f-lang.c (f_language_data): Likewise.
1407 * go-lang.c (go_language_data): Likewise.
1408 * language.c (unknown_language_data): Likewise.
1409 (auto_language_data): Likewise.
1410 * language.h (language_data): Remove la_macro_expansion field.
1411 (language_defn::macro_expansion): New member function.
1412 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1413 initializer.
1414 * objc-lang.c (objc_language_data): Likewise.
1415 (objc_language::macro_expansion): New member function.
1416 * opencl-lang.c (opencl_language_data): Likewise.
1417 (opencl_language::macro_expansion): New member function.
1418 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1419 initializer.
1420 * rust-lang.c (rust_language_data): Likewise.
1421 * symtab.c (default_collect_symbol_completion_matches_break_on):
1422 Update call to macro_expansion.
1423
3a3440fb
AB
14242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1425
1426 * ada-lang.c (ada_language_data): Remove la_array_ordering
1427 initializer.
1428 * c-lang.c (c_language_data): Likewise.
1429 (cplus_language_data): Likewise.
1430 (asm_language_data): Likewise.
1431 (minimal_language_data): Likewise.
1432 * d-lang.c (d_language_data): Likewise.
1433 * dwarf2/read.c (read_array_order): Update for call to
1434 array_ordering.
1435 * f-lang.c (f_language_data): Remove la_array_ordering
1436 initializer.
1437 (f_language::array_ordering): New member function.
1438 * go-lang.c (go_language_data): Remove la_array_ordering
1439 initializer.
1440 * language.c (unknown_language_data): Likewise.
1441 (auto_language_data): Likewise.
1442 * language.h (language_data): Delete la_array_ordering field.
1443 (language_defn::array_ordering): New member function.
1444 * m2-lang.c (m2_language_data): Remove la_array_ordering
1445 initializer.
1446 * objc-lang.c (objc_language_data): Likewise.
1447 * opencl-lang.c (opencl_language_data): Likewise.
1448 * p-lang.c (pascal_language_data): Likewise.
1449 * rust-lang.c (rust_language_data): Likewise.
1450
0d201fa4
AB
14512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1452
1453 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1454 initializer.
1455 * c-lang.c (c_language_data): Likewise.
1456 (cplus_language_data): Likewise.
1457 (asm_language_data): Likewise.
1458 (minimal_language_data): Likewise.
1459 * d-lang.c (d_language_data): Likewise.
1460 * f-lang.c (f_language_data): Likewise.
1461 (f_language::case_sensitivity): New member function.
1462 * go-lang.c (go_language_data): Remove la_case_sensitivity
1463 initializer.
1464 * language.c (enum case_mode): Moved here from language.h.
1465 (case_mode): Make static.
1466 (show_case_command): Update for case_sensitivity being a method.
1467 (set_case_command): Likewise.
1468 (set_range_case): Likewise.
1469 (unknown_language_data): Remove la_case_sensitivity initializer.
1470 (auto_language_data): Likewise.
1471 * language.h (case_mode): Delete, move enum declaration to
1472 language.c.
1473 (language_data): Delete la_case_sensitivity field.
1474 (language_defn::case_sensitivity): New member function.
1475 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1476 initializer.
1477 * objc-lang.c (objc_language_data): Likewise.
1478 * opencl-lang.c (opencl_language_data): Likewise.
1479 * p-lang.c (pascal_language_data): Likewise.
1480 * rust-lang.c (rust_language_data): Likewise.
1481
efdf6a73
AB
14822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1483
1484 * ada-lang.c (ada_language_data): Remove la_range_check
1485 initializer.
1486 * c-lang.c (c_language_data): Likewise.
1487 (cplus_language_data): Likewise.
1488 (asm_language_data): Likewise.
1489 (minimal_language_data): Likewise.
1490 * d-lang.c (d_language_data): Likewise.
1491 * f-lang.c (f_language_data): Likewise.
1492 (f_language::range_checking_on_by_default): New member function.
1493 * go-lang.c (go_language_data): Remove la_range_check initializer.
1494 * language.c (enum range_mode): Moved here from language.h.
1495 (range_mode): Made static.
1496 (show_range_command): Update to use
1497 range_checking_on_by_default.
1498 (set_range_command): Likewise.
1499 (set_range_case): Likewise.
1500 (unknown_language_data): Remove la_range_check initializer.
1501 (auto_language_data): Likewise.
1502 * language.h (range_mode): Delete. Enum definition moved to
1503 language.c.
1504 (language_data): Remove la_range_check field.
1505 (language_defn::range_checking_on_by_default): New member
1506 function.
1507 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1508 (m2_language::range_checking_on_by_default): New member function.
1509 * objc-lang.c (objc_language_data): Remove la_range_check
1510 initializer.
1511 * opencl-lang.c (opencl_language_data): Likewise.
1512 * p-lang.c (pascal_language_data): Likewise.
1513 (pascal_language::range_checking_on_by_default): New member
1514 function.
1515 * rust-lang.c (rust_language_data): Remove la_range_check
1516 initializer.
1517 (rust_language::range_checking_on_by_default): New member
1518 function.
1519
bf92aec5
AB
15202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1521
1522 * dwarf2/read.c (dwarf2_physname): Remove special case for
1523 language_go.
1524 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1525 member function.
1526
d3355e4d
AB
15272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1528
1529 * ada-lang.c (ada_language_data): Remove
1530 la_store_sym_names_in_linkage_form_p initializer.
1531 (ada_language::store_sym_names_in_linkage_form_p): New member
1532 function.
1533 * c-lang.c (c_language_data): Remove
1534 la_store_sym_names_in_linkage_form_p initializer.
1535 (c_language::store_sym_names_in_linkage_form_p): New member
1536 function.
1537 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1538 initializer.
1539 (asm_language_data): Likewise.
1540 (asm_language::store_sym_names_in_linkage_form_p): New member
1541 function.
1542 (minimal_language_data): Remove
1543 la_store_sym_names_in_linkage_form_p initializer.
1544 (minimal_language::store_sym_names_in_linkage_form_p): New member
1545 function.
1546 * d-lang.c (d_language_data): Remove
1547 la_store_sym_names_in_linkage_form_p initializer.
1548 * dwarf2/read.c (dwarf2_physname): Update call to
1549 store_sym_names_in_linkage_form_p.
1550 * f-lang.c (f_language_data): Remove
1551 la_store_sym_names_in_linkage_form_p initializer.
1552 * go-lang.c (go_language_data): Remove
1553 la_store_sym_names_in_linkage_form_p initializer.
1554 * language.c (unknown_language_data): Remove
1555 la_store_sym_names_in_linkage_form_p initializer.
1556 (unknown_language::store_sym_names_in_linkage_form_p): New member
1557 function.
1558 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1559 initializer.
1560 (auto_language::store_sym_names_in_linkage_form_p): New member
1561 function.
1562 * language.h (language_data): Remove
1563 la_store_sym_names_in_linkage_form_p member variable.
1564 (language_defn::store_sym_names_in_linkage_form_p): New member
1565 function.
1566 * m2-lang.c (m2_language_data): Remove
1567 la_store_sym_names_in_linkage_form_p initializer.
1568 * objc-lang.c (objc_language_data): Likewise.
1569 * opencl-lang.c (opencl_language_data): Likewise.
1570 * p-lang.c (pascal_language_data): Likewise.
1571 * rust-lang.c (rust_language_data): Likewise.
1572
22c12a6c
AB
15732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1574
1575 * ada-lang.c (ada_language_data): Remove string_lower_bound
1576 initializer.
1577 * c-lang.c (c_language_data): Likewise.
1578 (cplus_language_data): Likewise.
1579 (asm_language_data): Likewise.
1580 (minimal_language_data): Likewise.
1581 * d-lang.c (d_language_data): Likewise.
1582 * f-lang.c (f_language_data): Likewise.
1583 * go-lang.c (go_language_data): Likewise.
1584 * language.c (unknown_language_data): Likewise.
1585 (auto_language_data): Likewise.
1586 * language.h (language_data): Remove string_lower_bound field.
1587 (language_defn::string_lower_bound): New member function.
1588 * m2-lang.c (m2_language_data): Remove string_lower_bound
1589 initializer.
1590 (m2_language::string_lower_bound): New member function.
1591 * objc-lang.c (objc_language_data): Remove string_lower_bound
1592 initializer.
1593 * opencl-lang.c (opencl_language_data): Likewise.
1594 * p-lang.c (pascal_language_data): Likewise.
1595 * rust-lang.c (rust_language_data): Likewise.
1596 * valops.c (value_cstring): Update call to string_lower_bound.
1597 (value_string): Likewise.
1598 * value.c (allocate_repeated_value): Likewise.
1599
1c236ddd
AB
16002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1601
1602 * valops.c (value_repeat): Fix incorrect argument name in comment.
1603
67bd3fd5
AB
16042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1605
1606 * ada-lang.c (ada_language_data): Remove c_style_arrays
1607 initializer.
1608 (ada_language::c_style_arrays_p): New member fuction.
1609 * c-lang.c (c_language_data): Remove c_style_arrays
1610 initializer.
1611 (cplus_language_data): Likewise.
1612 (asm_language_data): Likewise.
1613 (minimal_language_data): Likewise.
1614 * d-lang.c (d_language_data): Likewise.
1615 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1616 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1617 (f_language::c_style_arrays_p): New member function.
1618 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1619 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1620 * language.c (unknown_language_data): Remove c_style_arrays
1621 initializer.
1622 (auto_language_data): Likewise.
1623 * language.h (language_data): Remove c_style_arrays field.
1624 (language_defn::c_style_arrays_p): New member function.
1625 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1626 (m2_language::c_style_arrays_p): New member function.
1627 * objc-lang.c (objc_language_data): Remove c_style_arrays
1628 initializer.
1629 * opencl-lang.c (opencl_language_data): Likewise.
1630 * p-lang.c (pascal_language_data): Likewise.
1631 * rust-lang.c (rust_language_data): Likewise.
1632 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1633 and update local variable to a bool.
1634 * valops.c (value_cast): Update call to c_style_arrays_p.
1635 (value_array): Likewise.
1636 * value.c (coerce_array): Likewise.
1637
85967615
AB
16382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1639
1640 * ada-lang.c (ada_language_data): Remove la_language initializer.
1641 * c-lang.c (c_language_data): Likewise.
1642 (cplus_language_data): Likewise.
1643 (asm_language_data): Likewise.
1644 (minimal_language_data): Likewise.
1645 * d-lang.c (d_language_data): Likewise.
1646 * f-lang.c (f_language_data): Likewise.
1647 * go-lang.c (go_language_data): Likewise.
1648 * language.c (unknown_language_data): Likewise.
1649 (auto_language_data): Likewise.
1650 * language.h (language_data): Remove la_language field.
1651 (language_defn::language_defn): Initialise la_language field.
1652 (language_defn::la_language): New member variable.
1653 * m2-lang.c (m2_language_data): Remove la_language field.
1654 * objc-lang.c (objc_language_data): Likewise.
1655 * opencl-lang.c (opencl_language_data): Likewise.
1656 * p-lang.c (pascal_language_data): Likewise.
1657 * rust-lang.c (rust_language_data): Likewise.
1658
e171d6f1
AB
16592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1660
1661 * ada-lang.c (ada_extensions): Delete, moved into
1662 ada_language::filename_extensions.
1663 (ada_language_data): Remove la_filename_extensions initializer.
1664 (ada_language::filename_extensions): New member function.
1665 * c-lang.c (c_extensions): Delete, moved into
1666 c_language::filename_extensions.
1667 (c_language_data): Remove la_filename_extensions initializer.
1668 (c_language::filename_extensions): New member function.
1669 (cplus_extensions): Delete, moved into
1670 cplus_language::filename_extensions.
1671 (cplus_language_data): Remove la_filename_extensions initializer.
1672 (cplus_language::filename_extensions): New member function.
1673 (asm_extensions): Delete, moved into
1674 asm_language::filename_extensions.
1675 (asm_language_data): Remove la_filename_extensions initializer.
1676 (asm_language::filename_extensions): New member function.
1677 (minimal_language_data): Remove la_filename_extensions
1678 initializer.
1679 * d-lang.c (d_extensions): Delete, moved into
1680 d_language::filename_extensions.
1681 (d_language_data): Remove la_filename_extensions initializer.
1682 (d_language::filename_extensions): New member function.
1683 * f-lang.c (f_extensions): Delete, moved into
1684 f_language::filename_extensions.
1685 (f_language_data): Remove la_filename_extensions initializer.
1686 (f_language::filename_extensions): New member function.
1687 * go-lang.c (go_language_data): Remove la_filename_extensions
1688 initializer.
1689 * language.c (add_set_language_command): Update now that
1690 filename_extensions returns a vector.
1691 (unknown_language_data): Remove la_filename_extensions
1692 initializer.
1693 (auto_language_data): Likewise.
1694 * language.h (language_data): Remove la_filename_extensions field.
1695 (language_defn::filename_extensions): New member function.
1696 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1697 initializer.
1698 * objc-lang.c (objc_extensions): Delete, moved into
1699 objc_language::filename_extensions.
1700 (objc_language_data): Remove la_filename_extensions initializer.
1701 (objc_language::filename_extensions): New member function.
1702 * opencl-lang.c (opencl_language_data): Remove
1703 la_filename_extensions initializer.
1704 * p-lang.c (pascal_extensions): Delete, moved into
1705 pascal_language::filename_extensions.
1706 (pascal_language_data): Remove la_filename_extensions initializer.
1707 (pascal_language::filename_extensions): New member function.
1708 * rust-lang.c (rust_extensions): Delete, moved into
1709 rust_language::filename_extensions.
1710 (rust_language_data): Remove la_filename_extensions initializer.
1711 (rust_language::filename_extensions): New member function.
1712 * symfile.c (add_filename_language): Add new assert.
1713
6f7664a9
AB
17142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1715
1716 * ada-lang.c (ada_language_data): Remove la_name and
1717 la_natural_name initializers.
1718 (ada_language::name): New member function.
1719 (ada_language::natural_name): New member function.
1720 * c-lang.c (c_language_data): Remove la_name and
1721 la_natural_name initializers.
1722 (c_language::name): New member function.
1723 (c_language::natural_name): New member function.
1724 (cplus_language_data): Remove la_name and
1725 la_natural_name initializers.
1726 (cplus_language::name): New member function.
1727 (cplus_language::natural_name): New member function.
1728 (asm_language_data): Remove la_name and
1729 la_natural_name initializers.
1730 (asm_language::name): New member function.
1731 (asm_language::natural_name): New member function.
1732 (minimal_language_data): Remove la_name and
1733 la_natural_name initializers.
1734 (minimal_language::name): New member function.
1735 (minimal_language::natural_name): New member function.
1736 * compile/compile.c (compile_to_object): Update call to
1737 lanugage_defn::name.
1738 * d-lang.c (d_language_data): Remove la_name and
1739 la_natural_name initializers.
1740 (d_language::name): New member function.
1741 (d_language::natural_name): New member function.
1742 * expprint.c (print_subexp_standard): Update call to
1743 language_defn::name.
1744 (dump_raw_expression): Likewise
1745 (dump_prefix_expression): Likewise.
1746 * f-lang.c (f_language_data): Remove la_name and
1747 la_natural_name initializers.
1748 (f_language::name): New member function.
1749 (f_language::natural_name): New member function.
1750 * go-lang.c (go_language_data): Remove la_name and
1751 la_natural_name initializers.
1752 (go_language::name): New member function.
1753 (go_language::natural_name): New member function.
1754 * language.c (show_language_command): Update call to
1755 language_defn::name.
1756 (set_language_command): Likewise.
1757 (language_enum): Likewise.
1758 (language_str): Likewise.
1759 (add_set_language_command): Likewise, use
1760 language_defn::natural_name in the doc string.
1761 (unknown_language_data): Remove la_name and
1762 la_natural_name initializers.
1763 (unknown_language::name): New member function.
1764 (unknown_language::natural_name): New member function.
1765 (auto_language_data): Remove la_name and
1766 la_natural_name initializers.
1767 (auto_language::name): New member function.
1768 (auto_language::natural_name): New member function.
1769 (language_lookup_primitive_type_as_symbol): Update call to
1770 language_defn::name.
1771 * language.h (language_data): Remove la_name and la_natural_name
1772 member variables.
1773 (language_defn::name): New member function.
1774 (language_defn::natural_name): New member function.
1775 * m2-lang.c (m2_language_data): Remove la_name and
1776 la_natural_name initializers.
1777 (m2_language::name): New member function.
1778 (m2_language::natural_name): New member function.
1779 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1780 language_defn::natural_name.
1781 * objc-lang.c (objc_language_data): Remove la_name and
1782 la_natural_name initializers.
1783 (objc_language::name): New member function.
1784 (objc_language::natural_name): New member function.
1785 * opencl-lang.c (opencl_language_data): Remove la_name and
1786 la_natural_name initializers.
1787 (opencl_language::name): New member function.
1788 (opencl_language::natural_name): New member function.
1789 * p-lang.c (pascal_language_data): Remove la_name and
1790 la_natural_name initializers.
1791 (pascal_language::name): New member function.
1792 (pascal_language::natural_name): New member function.
1793 * rust-lang.c (rust_language_data): Remove la_name and
1794 la_natural_name initializers.
1795 (rust_language::name): New member function.
1796 (rust_language::natural_name): New member function.
1797 * symtab.c (lookup_language_this): Update call to
1798 language_defn::name.
1799
5bae7c4e
AB
18002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1801
1802 * ada-lang.c (ada_language_data): Remove la_name_of_this
1803 initializer.
1804 * ax-gdb.c (gen_expr): Update call to name_of_this.
1805 * c-exp.y (classify_name): Likewise.
1806 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1807 (cplus_language_data): Likewise.
1808 (cplus_language::name_of_this): New member function.
1809 (asm_language_data): Remove la_name_of_this initializer.
1810 (minimal_language_data): Likewise.
1811 * d-lang.c (d_language_data): Likewise.
1812 (d_language::name_of_this): New member function.
1813 * expprint.c (print_subexp_standard): Update call to name_of_this.
1814 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1815 * go-lang.c (go_language_data): Likewise.
1816 * language.c (unknown_language_data): Likewise.
1817 (unknown_language::name_of_this): New member function.
1818 (auto_language_data): Remove la_name_of_this initializer.
1819 (auto_language::name_of_this): New member function.
1820 * language.h (language_data): Delete la_name_of_this member
1821 variable.
1822 (language_defn::name_of_this): New member function.
1823 * m2-lang.c (m2_language_data): Remove la_name_of_this
1824 initializer.
1825 * objc-lang.c (objc_language_data): Likewise.
1826 (objc_language::name_of_this): New member function.
1827 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1828 initializer.
1829 * p-lang.c (pascal_language_data): Likewise.
1830 (pascal_language::name_of_this): New member function.
1831 * rust-lang.c (rust_language_data): Remove la_name_of_this
1832 initializer.
1833 * symtab.c (lookup_language_this): Update call to name_of_this.
1834 (lookup_symbol_aux): Likewise.
1835 * valops.c (value_of_this): Likewise.
1836
22e3f3ed
AB
18372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1838
1839 * ada-lang.c (ada_language_data): Remove
1840 la_struct_too_deep_ellipsis initializer.
1841 (ada_language::struct_too_deep_ellipsis): New member function.
1842 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1843 initializer.
1844 (cplus_language_data): Likewise.
1845 (asm_language_data): Likewise.
1846 (minimal_language_data): Likewise.
1847 * cp-valprint.c (cp_print_value): Update call to
1848 struct_too_deep_ellipsis.
1849 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1850 initializer.
1851 * f-lang.c (f_language_data): Likewise.
1852 (f_language::struct_too_deep_ellipsis): New member function.
1853 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1854 initializer.
1855 * language.c (unknown_language_data): Likewise.
1856 (auto_language_data): Likewise.
1857 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1858 member variable.
1859 (language_defn::struct_too_deep_ellipsis): New member function.
1860 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1861 initializer.Q
1862 * objc-lang.c (objc_language_data): Likewise.
1863 * opencl-lang.c (opencl_language_data): Likewise.
1864 * p-lang.c (pascal_language_data): Likewise.
1865 * rust-lang.c (rust_language_data): Likewise.
1866 * valprint.c (val_print_check_max_depth): Update call to
1867 struct_too_deep_ellipsis.
1868
ed29e1c7
FW
18692020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1870
1871 * MAINTAINERS (Write After Approval): Add myself.
1872
12d8f940
TT
18732020-09-15 Tom Tromey <tom@tromey.com>
1874
1875 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1876 Remove.
1877
6b5a7bc7
TT
18782020-09-15 Tom Tromey <tom@tromey.com>
1879
1880 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1881 and TYPE_CODE_METHODPTR cases.
1882 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1883 (c_value_print_inner): Update.
1884 * valprint.c (generic_value_print_memberptr): New function, from
1885 c_value_print_memberptr.
1886 (generic_value_print): Use it. Call cplus_print_method_ptr.
1887
47f0e2ff
TT
18882020-09-15 Tom Tromey <tromey@adacore.com>
1889
1890 * python/python-internal.h (PyInt_FromLong): Remove define.
1891 * python/py-value.c (convert_value_from_python): Use
1892 gdb_py_object_from_longest.
1893 * python/py-type.c (typy_get_code): Use
1894 gdb_py_object_from_longest.
1895 * python/py-symtab.c (salpy_get_line): Use
1896 gdb_py_object_from_longest.
1897 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1898 gdb_py_object_from_longest.
1899 * python/py-record.c (recpy_gap_reason_code): Use
1900 gdb_py_object_from_longest.
1901 * python/py-record-btrace.c (recpy_bt_insn_size)
1902 (recpy_bt_func_level, btpy_list_count): Use
1903 gdb_py_object_from_longest.
1904 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1905 gdb_py_object_from_longest. Fix error handling.
1906 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1907 gdb_py_object_from_longest.
1908 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1909 gdb_py_object_from_longest.
1910 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1911 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1912 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1913
512116ce
TT
19142020-09-15 Tom Tromey <tromey@adacore.com>
1915
1916 * python/python.c (gdbpy_parameter_value): Use
1917 gdb_py_object_from_ulongest.
1918
4ab1029c
TT
19192020-09-15 Tom Tromey <tromey@adacore.com>
1920
1921 * python/py-infevents.c (create_register_changed_event_object):
1922 Use gdb_py_object_from_longest.
1923 * python/py-exitedevent.c (create_exited_event_object): Use
1924 gdb_py_object_from_longest.
1925
062534d4
TT
19262020-09-15 Tom Tromey <tromey@adacore.com>
1927
1928 * python/python.c (gdbpy_parameter_value): Use
1929 gdb_py_object_from_longest.
1930 * python/py-type.c (convert_field, typy_range): Use
1931 gdb_py_object_from_longest.
1932 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1933 gdb_py_object_from_longest.
1934 * python/py-lazy-string.c (stpy_get_length): Use
1935 gdb_py_object_from_longest.
1936 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1937 gdb_py_object_from_longest.
1938 * python/py-infevents.c (create_memory_changed_event_object): Use
1939 gdb_py_object_from_longest.
1940 * python/py-inferior.c (infpy_get_num): Use
1941 gdb_py_object_from_longest.
1942 (infpy_get_pid): Likewise.
1943
d1cab987
TT
19442020-09-15 Tom Tromey <tromey@adacore.com>
1945
1946 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1947 defines.
1948 * python/py-value.c (valpy_long): Use
1949 gdb_py_object_from_ulongest.
1950 * python/py-symtab.c (salpy_get_pc): Use
1951 gdb_py_object_from_ulongest.
1952 (salpy_get_last): Likewise.
1953 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1954 gdb_py_object_from_ulongest.
1955 * python/py-lazy-string.c (stpy_get_address): Use
1956 gdb_py_object_from_ulongest.
1957 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1958 * python/py-arch.c (archpy_disassemble): Use
1959 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1960 error handling.
1961
4bde49dc
TT
19622020-09-15 Tom Tromey <tromey@adacore.com>
1963
1964 * python/python-internal.h (gdb_py_long_from_longest): Remove
1965 defines.
1966 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1967 * python/py-type.c (convert_field, typy_get_sizeof): Use
1968 gdb_py_object_from_longest.
1969 * python/py-record-btrace.c (btpy_list_index): Use
1970 gdb_py_object_from_longest.
1971
37431074
TT
19722020-09-15 Tom Tromey <tromey@adacore.com>
1973
1974 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1975 * python/py-record.c (recpy_element_number): Use
1976 gdb_py_object_from_longest.
1977 (recpy_gap_number): Likewise.
1978
cbe25684
TT
19792020-09-15 Tom Tromey <tromey@adacore.com>
1980
1981 * top.c (ui::ui): Update.
1982 (highest_ui_num): Remove.
1983 * top.h (struct ui) <num>: Remove.
1984
db92ac45
TT
19852020-09-15 Tom Tromey <tromey@adacore.com>
1986
1987 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1988 * ui-style.c (ansi_regex_text): Now array.
1989 * rust-exp.y (number_regex_text): Now array.
1990 * linespec.c (linespec_quote_characters): Now array.
1991 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1992 Now arrays.
1993
d2b31b67
SM
19942020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1995
1996 * debuginfod-support.c (debuginfod_client_deleter): New.
1997 (debuginfod_client_up): New.
1998 (debuginfod_init): Return debuginfod_client_up.
1999 (debuginfod_source_query): Adjust.
2000 (debuginfod_debuginfo_query): Adjust.
2001
3246bd8e
SM
20022020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2003
2004 * debuginfod-support.c (debuginfod_source_query): Use
2005 make_unique_xstrdup.
2006
10242f36
SM
20072020-09-14 Simon Marchi <simon.marchi@efficios.com>
2008
2009 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2010 with `type::instance_flags`.
2011
e1044e6a
MM
20122020-09-14 Michael Mullin <masmullin@gmail.com>
2013
2014 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2015 Remove baton parameter.
2016
04902b09
PA
20172020-09-14 Pedro Alves <pedro@palves.net>
2018
2019 * Makefile.in (SELFTESTS_SRCS): Add
2020 unittests/enum-flags-selftests.c.
2021 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2022 btrace_function_flags instead of enum btrace_function_flag.
2023 * compile/compile-c-types.c (convert_qualified): Use
2024 enum_flags::raw.
2025 * compile/compile-cplus-symbols.c (convert_one_symbol)
2026 (convert_symbol_bmsym):
2027 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2028 (compile_cplus_convert_struct_or_union_methods)
2029 (compile_cplus_instance::convert_qualified_base):
2030 * go-exp.y (parse_string_or_char): Add cast to int.
2031 * unittests/enum-flags-selftests.c: New file.
2032 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2033 type to btrace_thread_flags from btrace_thread_flag.
2034 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2035 local's type to btrace_thread_flags from btrace_thread_flag. Add
2036 cast in DEBUG call.
2037
69896a2c
PA
20382020-09-14 Pedro Alves <pedro@palves.net>
2039
2040 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2041 * gdbtypes.c (address_space_name_to_int): Rename to ...
2042 (address_space_name_to_type_instance_flags): ... this.
2043 (address_space_int_to_name): Rename to ...
2044 (address_space_type_instance_flags_to_name): ... this.
2045 * gdbtypes.h (address_space_name_to_int): Rename to ...
2046 (address_space_name_to_type_instance_flags): ... this.
2047 (address_space_int_to_name): Rename to ...
2048 (address_space_type_instance_flags_to_name): ... this.
2049 * type-stack.c (type_stack::insert): Adjust to rename.
2050 * type-stack.h (type_stack::insert): Likewise.
2051
314ad88d
PA
20522020-09-14 Pedro Alves <pedro@palves.net>
2053 Andrew Burgess <andrew.burgess@embecosm.com>
2054
2055 * avr-tdep.c (avr_address_class_type_flags): Return
2056 type_instance_flags.
2057 (avr_address_class_type_flags_to_name): Take a
2058 type_instance_flags.
2059 (avr_address_class_name_to_type_flags): Return bool and take a
2060 type_instance_flags.
2061 * d-lang.c (build_d_types): Use type::set_instance_flags.
2062 * ft32-tdep.c (ft32_address_class_type_flags): Return
2063 type_instance_flags.
2064 (ft32_address_class_type_flags_to_name): Take a
2065 type_instance_flags.
2066 (ft32_address_class_name_to_type_flags): Return bool and take a
2067 type_instance_flags.
2068 (ft32_gdbarch_init): Use type::set_instance_flags.
2069 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2070 * gdbarch.h, gdbarch.c: Regenerate.
2071 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2072 (address_class_name_to_type_flags): Use type_instance_flags and
2073 bool.
2074 * gdbtypes.c (address_space_name_to_int)
2075 (address_space_int_to_name, make_qualified_type): Use
2076 type_instance_flags.
2077 (make_qualified_type): Use type_instance_flags and
2078 type::set_instance_flags.
2079 (make_type_with_address_space, make_cv_type, make_vector_type)
2080 (check_typedef): Use type_instance_flags.
2081 (recursive_dump_type): Cast type_instance_flags to unsigned for
2082 printing.
2083 (copy_type_recursive): Use type::set_instance_flags.
2084 (gdbtypes_post_init): Use type::set_instance_flags.
2085 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2086 <m_instance_flags>: ... this.
2087 <instance_flags, set_instance_flags>: New methods.
2088 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2089 (SET_TYPE_INSTANCE_FLAGS): New.
2090 (address_space_name_to_int, address_space_int_to_name)
2091 (make_type_with_address_space): Pass flags using
2092 type_instance_flags instead of int.
2093 * stabsread.c (cleanup_undefined_types_noname): Use
2094 type::set_instance_flags.
2095 * s390-tdep.c (s390_address_class_type_flags): Return
2096 type_instance_flags.
2097 (s390_address_class_type_flags_to_name): Take a
2098 type_instance_flags.
2099 (s390_address_class_name_to_type_flags): Return bool and take a
2100 type_instance_flags.
2101 * type-stack.c (type_stack::follow_types): Use
2102 type_instance_flags.
2103 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2104
27087b7f
TT
21052020-09-14 Tom Tromey <tromey@adacore.com>
2106
2107 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2108 * x86-tdep.c (x86_is_thunk_register_name)
2109 (x86_in_indirect_branch_thunk): Update.
2110 * sparc64-tdep.c (sparc64_fpu_register_names)
2111 (sparc64_cp0_register_names, sparc64_register_names)
2112 (sparc64_pseudo_register_names): Now const.
2113 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2114 cp0_registers_num>: Now const.
2115 * sparc-tdep.c (sparc_core_register_names)
2116 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2117 (sparc32_pseudo_register_names): Now const.
2118 (validate_tdesc_registers): Update.
2119 * rust-lang.c (rust_extensions): Now const.
2120 * p-lang.c (p_extensions): Now const.
2121 * objc-lang.c (objc_extensions): Now const.
2122 * nto-tdep.c (nto_thread_state_str): Now const.
2123 * moxie-tdep.c (moxie_register_names): Now const.
2124 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2125 Now const.
2126 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2127 (mips_linux_reg_names): Now const.
2128 (mips_gdbarch_init): Update.
2129 * microblaze-tdep.c (microblaze_register_names): Now const.
2130 * m68k-tdep.c (m68k_register_names): Now const.
2131 * m32r-tdep.c (m32r_register_names): Now const.
2132 * ia64-tdep.c (ia64_register_names): Now const.
2133 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2134 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2135 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2136 ymm_avx512_register_names, pkeys_register_names>: Now const.
2137 * i386-tdep.c (i386_register_names, i386_zmm_names)
2138 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2139 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2140 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2141 * f-lang.c (f_extensions): Now const.
2142 * d-lang.c (d_extensions): Now const.
2143 * csky-tdep.c (csky_register_names): Now const.
2144 * charset.c (default_charset_names, charset_enum): Now const.
2145 (_initialize_charset): Update.
2146 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2147 const.
2148 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2149 (bsd_uthread_solib_loaded): Update.
2150 (bsd_uthread_state): Now const.
2151 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2152 (amd64_ymm_avx512_names, amd64_ymmh_names)
2153 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2154 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2155 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2156 (amd64_dword_names): Now const.
2157 * agent.c (can_use_agent_enum): Now const.
2158 * ada-tasks.c (task_states, long_task_states): Now const.
2159 * ada-lang.c (known_runtime_file_name_patterns)
2160 (known_auxiliary_function_name_patterns, attribute_names)
2161 (standard_exc, ada_extensions): Now const.
2162
89806626
SM
21632020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2164
2165 * bcache.h (struct bcache) <bcache>: Remove constructor.
2166 <m_hash_function, m_compare_function>: Remove.
2167 <~bcache>: Make virtual.
2168 <compare>: Remove static method, introduce virtual method.
2169 <default_hash>: Remove.
2170 <hash>: New virtual method.
2171 * bcache.c (bcache::expand_hash_table): Update.
2172 (bcache::insert): Update.
2173 (bcache::hash): New.
2174 (bcache::compare): Update comment and parameter names.
2175 * gdbtypes.c (types_deeply_equal): Update.
2176 * psymtab.h (struct psymbol_bcache): New struct.
2177 (class psymtab_storage) <psymtab_storage>: Make default.
2178 <psymbol_cache>: Change type to psymbol_bcache.
2179 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2180 (psymbol_hash): Change to...
2181 (psymbol_bcache::hash): ... this.
2182 (psymbol_compare): Change to...
2183 (psymbol_bcache::compare): ... this.
2184
677c92fe
SM
21852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2186
2187 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2188 checking for initial lwp.
2189
3eba3a01
TT
21902020-09-14 Tom Tromey <tromey@adacore.com>
2191
2192 * m68k-tdep.c (m68k_extract_return_value): Use
2193 pointer_result_regnum.
2194 (m68k_store_return_value): Likewise.
2195 (m68k_reg_struct_return_p): Handle vectors and arrays.
2196 (m68k_return_value): Handle arrays.
2197 (m68k_svr4_return_value): Fix single-element aggregate handling.
2198 Handle long double. Adjust for embedded ABI.
2199 (m68k_svr4_init_abi): Set pointer_result_regnum.
2200 (m68k_embedded_init_abi): New function.
2201 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2202 (m68k_osabi_sniffer): New function.
2203 (_initialize_m68k_tdep): Register osabi sniffer.
2204 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2205 member.
2206
33f4dd48
SM
22072020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2208
2209 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2210 with gdb::unique_xmalloc_ptr<char>.
2211
8400a90d
SM
22122020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2213
2214 * xml-support.h (xml_fetch_another): Change type to be a
2215 function_view.
2216 (xml_process_xincludes): Remove baton parameter.
2217 (xml_fetch_content_from_file): Change baton parameter to
2218 dirname.
2219 * xml-support.c (struct xinclude_parsing_data)
2220 <xinclude_parsing_data>: Remove baton parameter.
2221 <fetcher_baton>: Remove.
2222 (xinclude_start_include): Adjust.
2223 (xml_process_xincludes): Adjust.
2224 (xml_fetch_content_from_file): Replace baton parameter with
2225 dirname.
2226 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2227 (xml_init_syscalls_info): Use a lambda.
2228 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2229 (file_read_description_xml): Use a lambda.
2230 (fetch_available_features_from_target): Change baton parameter
2231 to target_ops.
2232 (target_read_description_xml): Use a lambda.
2233 (target_fetch_description_xml): Use a lambda.
2234 (string_read_description_xml): Update.
2235
04f5bab2
SM
22362020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2237
2238 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2239 uses with type::endianity_is_not_default.
2240
db558e34
SM
22412020-09-14 Simon Marchi <simon.marchi@efficios.com>
2242
2243 * gdbtypes.h (struct type) <endianity_is_not_default,
2244 set_endianity_is_not_default>: New methods.
2245 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2246 type::endianity_is_not_default, change all write call sites to
2247 use type::set_endianity_is_not_default.
2248
22c4c60c
SM
22492020-09-14 Simon Marchi <simon.marchi@efficios.com>
2250
2251 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2252 uses with type::is_fixed_instance.
2253
9cdd0d12
SM
22542020-09-14 Simon Marchi <simon.marchi@efficios.com>
2255
2256 * gdbtypes.h (struct type) <is_fixed_instance,
2257 set_is_fixed_instance>: New methods.
2258 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2259 write call sites to use type::set_is_fixed_instance.
2260
0becda7a
SM
22612020-09-14 Simon Marchi <simon.marchi@efficios.com>
2262
2263 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2264 uses with type::is_gnu_ifunc.
2265
03cc7249
SM
22662020-09-14 Simon Marchi <simon.marchi@efficios.com>
2267
2268 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2269 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2270 use type::set_is_gnu_ifunc.
2271
3f46044c
SM
22722020-09-14 Simon Marchi <simon.marchi@efficios.com>
2273
2274 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2275 uses with type::stub_is_supported.
2276
9baccff6
SM
22772020-09-14 Simon Marchi <simon.marchi@efficios.com>
2278
2279 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2280 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2281 use type::set_stub_is_supported.
2282
bd63c870
SM
22832020-09-14 Simon Marchi <simon.marchi@efficios.com>
2284
2285 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2286 uses with type::is_vector.
2287
2062087b
SM
22882020-09-14 Simon Marchi <simon.marchi@efficios.com>
2289
2290 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2291 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2292 use type::set_is_vector.
2293
a409645d
SM
22942020-09-14 Simon Marchi <simon.marchi@efficios.com>
2295
2296 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2297 uses with type::has_varargs.
2298
1d6286ed
SM
22992020-09-14 Simon Marchi <simon.marchi@efficios.com>
2300
2301 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2302 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2303 use type::set_has_varargs.
2304
7f9f399b
SM
23052020-09-14 Simon Marchi <simon.marchi@efficios.com>
2306
2307 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2308 uses with type::is_prototyped.
2309
27e69b7a
SM
23102020-09-14 Simon Marchi <simon.marchi@efficios.com>
2311
2312 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2313 New methods.
2314 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2315 call sites to use type::set_is_prototyped.
2316
d2183968
SM
23172020-09-14 Simon Marchi <simon.marchi@efficios.com>
2318
2319 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2320 uses with type::target_is_stub.
2321
8f53807e
SM
23222020-09-14 Simon Marchi <simon.marchi@efficios.com>
2323
2324 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2325 New methods.
2326 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2327 sites to use type::set_target_is_stub.
2328
e46d3488
SM
23292020-09-14 Simon Marchi <simon.marchi@efficios.com>
2330
2331 * gdbtypes.h (TYPE_STUB): Remove, replace all
2332 uses with type::is_stub.
2333
b4b73759
SM
23342020-09-14 Simon Marchi <simon.marchi@efficios.com>
2335
2336 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2337 (TYPE_STUB): Use type::is_stub, change all write call sites to
2338 use type::set_is_stub.
2339
20ce4123
SM
23402020-09-14 Simon Marchi <simon.marchi@efficios.com>
2341
2342 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2343 type::has_no_signedness.
2344
15152a54
SM
23452020-09-14 Simon Marchi <simon.marchi@efficios.com>
2346
2347 * gdbtypes.h (struct type) <has_no_signedness,
2348 set_has_no_signedness>: New methods.
2349 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2350 call sites to use type::set_has_no_signedness.
2351
c6d940a9
SM
23522020-09-14 Simon Marchi <simon.marchi@efficios.com>
2353
2354 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2355 type::is_unsigned.
2356
653223d3
SM
23572020-09-14 Simon Marchi <simon.marchi@efficios.com>
2358
2359 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2360 methods.
2361 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2362 sites to use type::set_is_unsigned.
2363
55ea94da 23642020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2365 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2366
e851246a
SM
2367 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2368 pointer and stack frame offset when unwinding.
55ea94da 2369
6791b117
PA
23702020-09-13 Pedro Alves <pedro@palves.net>
2371
2372 * NEWS: Document "-break-insert --qualified".
2373 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2374
77f2120b
PA
23752020-09-13 Pedro Alves <pedro@palves.net>
2376
2377 * linespec.c (classify_mtype, compare_msyms): Delete.
2378 (search_minsyms_for_name): Remove classification logic. Instead
2379 filter out trampoline symbols if we also found an external
2380 function of the same name.
2381
ed6a896c
JB
23822020-09-13 Joel Brobecker <brobecker@adacore.com>
2383
2384 * NEWS: Create a new section for the next release branch.
2385 Rename the section of the current branch, now that it has
2386 been cut.
2387
32aea73e
JB
23882020-09-13 Joel Brobecker <brobecker@adacore.com>
2389
2390 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2391 * version.in: Bump version to 11.0.50.DATE-git.
2392
8087c3fa
JB
23932020-09-12 Joel Brobecker <brobecker@adacore.com>
2394
2395 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2396
2a67f09d
FW
23972020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2398 Felix Willgerodt <Felix.Willgerodt@intel.com>
2399
2400 * gdbarch.sh: Added bfloat16 type.
2401 * gdbarch.c: Regenerated.
2402 * gdbarch.h: Regenerated.
2403 * gdbtypes.c (floatformats_bfloat16): New struct.
2404 (gdbtypes_post_init): Add builtin_bfloat16.
2405 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2406 (floatformats_bfloat16): New struct.
2407 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2408 (i386_ymm_type): Add field "v16_bfloat16"
2409 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2410 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2411 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2412 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2413 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2414 * features/i386/64bit-avx512.c: Regenerated.
2415 * features/i386/64bit-sse.xml: Add bfloat16 type.
2416 * features/i386/64bit-sse.c: Regenerated.
2417
1347d111
FW
24182020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2419
2420 * i386-tdep.c (i386_zmm_type): Fix field names.
2421 (i386_ymm_type): Fix field names.
2422
7a4e8e7d
TBA
24232020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2424
2425 * breakpoint.c: Fix typo in the help message of the
2426 "set breakpoint condition-evaluation" command.
2427
cf4ac4be
KR
24282020-09-10 Kamil Rytarowski <n54@gmx.com>
2429
2430 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2431 * (nbsd_nat_target::pid_to_exec_file)
2432 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2433 (nbsd_nat_target::post_startup_inferior)
2434 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2435 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2436 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2437 * (nbsd_thread_lister): Remove.
2438
f404573e
KR
24392020-09-10 Kamil Rytarowski <n54@gmx.com>
2440
2441 * fork-inferior.c (startup_inferior): Avoid double free.
2442
1ccb2c17
KR
24432020-09-10 Kamil Rytarowski <n54@gmx.com>
2444
2445 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2446 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2447
feedfcc7
KR
24482020-09-10 Kamil Rytarowski <n54@gmx.com>
2449
2450 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2451 * netbsd-nat.c: Include <sys/ptrace.h>.
2452 * (netbsd_nat::enable_proc_events): Add.
2453
c489f8c6
KR
24542020-09-10 Kamil Rytarowski <n54@gmx.com>
2455
2456 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2457 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2458 (netbsd_nat::for_each_thread): Add.
2459 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2460 "gdbsupport/common-debug.h".
2461 * (netbsd_nat::netbsd_thread_lister)
2462 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2463 (netbsd_nat::for_each_thread): Add.
2464
330662f6
KR
24652020-09-10 Kamil Rytarowski <n54@gmx.com>
2466
2467 * netbsd-nat.h: Include <unistd.h>.
2468 * (netbsd_nat::pid_to_exec_file): Add.
2469 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2470 * (netbsd_nat::pid_to_exec_file) Add.
2471
70b67307
KR
24722020-09-10 Kamil Rytarowski <n54@gmx.com>
2473
2474 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2475
99cf6da6
KR
24762020-09-10 Kamil Rytarowski <n54@gmx.com>
2477
2478 * netbsd-nat.h: New file.
2479 * netbsd-nat.c: Likewise.
2480
1b788fb6
TT
24812020-09-09 Tom Tromey <tromey@adacore.com>
2482
2483 * ada-lang.c (remove_extra_symbols): Do not increment when
2484 removing an element
2485
03b0a45f
TT
24862020-09-08 Tom Tromey <tromey@adacore.com>
2487
2488 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2489
3cae4447
TT
24902020-09-08 Tom Tromey <tromey@adacore.com>
2491
2492 PR win32/25302:
2493 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2494 (gdb_bfd_init_data): New function.
2495 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2496
7f08fd51
TBA
24972020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2498
2499 * infrun.c (fetch_inferior_event): Use
2500 `switch_to_target_no_thread` to switch the target.
2501
3e6ff933
TT
25022020-09-06 Tom Tromey <tom@tromey.com>
2503
2504 * symfile.h (dwarf2_free_objfile): Don't declare.
2505
e56798df
AKS
25062020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2507
2508 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2509 to match 16 byte real/complex type generated by Flang compiler.
2510
8f5c6526
TV
25112020-09-03 Tom de Vries <tdevries@suse.de>
2512
2513 PR breakpoint/26546
2514 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2515 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2516
c5065df0
SM
25172020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2518
2519 * maint.c (index_digits): New function.
2520 (struct maint_print_section_data): Remove.
2521 (print_bfd_section_info): Remove print_data parameter, add arg
2522 and index_digits.
2523 (print_objfile_section_info): Likewise.
2524 (print_bfd_section_info_maybe_relocated): Likewise (plus
2525 objfile).
2526 (maintenance_info_sections): Adjust calls.
2527
02c6f3f1
TT
25282020-09-02 Tom Tromey <tromey@adacore.com>
2529
2530 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2531 for null pointers.
2532 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2533
ef5e5b0b
SM
25342020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2535
2536 * bcache.h (struct bcache) <insert>: Change type of `added` to
2537 pointer to bool.
2538 * bcache.c (bcache::insert): Likewise.
2539 * gdbtypes.c (check_types_worklist): Adjust.
2540 * psymtab.c (add_psymbol_to_bcache): Adjust.
2541
973695d6
KB
25422020-08-31 Kevin Buettner <kevinb@redhat.com>
2543
2544 * corelow.c (unordered_set): Include.
2545 (class core_target): Add field 'm_core_unavailable_mappings'.
2546 (core_target::build_file_mappings): Print only one warning
2547 per inaccessible file. Add unavailable/broken mappings
2548 to m_core_unavailable_mappings.
2549 (core_target::xfer_partial): Call...
2550 (core_target::xfer_memory_via_mappings): New method.
2551
264fc0e2
SM
25522020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2553
2554 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2555 type to bool.
2556
2de01bdb
SM
25572020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2558
2559 * dwarf2/read.c (struct field_info): Fix indentation.
2560
f3bd50f1
SM
25612020-08-31 Simon Marchi <simon.marchi@efficios.com>
2562
2563 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2564 ordering in comment.
2565 * frame.c (frame_id_eq): Fix indentation.
2566
22b9b4b0
SL
25672020-08-31 Scott Linder <scott@scottlinder.com>
2568 Simon Marchi <simon.marchi@efficios.com>
2569
2570 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2571 inline frame ids in outer frame.
2572
84154d16
SM
25732020-08-31 Simon Marchi <simon.marchi@efficios.com>
2574
2575 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2576 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2577 (outer_frame_id): Use FID_STACK_OUTER instead of
2578 FID_STACK_INVALID.
2579 (frame_id_p): Don't check for outer_frame_id.
2580
8efaf6b3
SM
25812020-08-31 Simon Marchi <simon.marchi@efficios.com>
2582
2583 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2584 regnum/frame in value. Call allocate_value_lazy.
2585 * frame.c (frame_unwind_register_value): Use
2586 val_print_not_saved.
2587
fe1fe7ea
SM
25882020-08-31 Simon Marchi <simon.marchi@efficios.com>
2589
2590 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2591
f7c7700d
PA
25922020-08-29 Pedro Alves <pedro@palves.net>
2593
2594 * progspace.c (print_program_space): Use all_inferiors. Switch to
2595 the inferior before calling target_pid_to_str.
2596
e0814aae
TT
25972020-08-28 Tom Tromey <tom@tromey.com>
2598
2599 * xcoffread.c (xcoff_end_psymtab): Update comment.
2600 * dbxread.c (dbx_end_psymtab): Update comment.
2601
626d2320
TV
26022020-08-28 Tom de Vries <tdevries@suse.de>
2603
2604 PR breakpoint/26544
2605 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2606 event_location.
2607 (create_breakpoint): Same.
2608 (base_breakpoint_decode_location): Same.
2609 (bkpt_create_sals_from_location): Same.
2610 (bkpt_decode_location): Same.
2611 (bkpt_probe_create_sals_from_location): Same.
2612 (bkpt_probe_decode_location): Same.
2613 (tracepoint_create_sals_from_location): Same.
2614 (tracepoint_decode_location): Same.
2615 (tracepoint_probe_decode_location): Same.
2616 (strace_marker_create_sals_from_location): Same.
2617 (strace_marker_decode_location): Same.
2618 (create_sals_from_location_default): Same.
2619 (decode_location_default): Same.
2620 * breakpoint.h (struct breakpoint_ops): Same.
2621 (create_breakpoint): Same.
2622 * linespec.h (decode_line_full): Same.
2623 * linespec.c (decode_line_full): Same. Throw error if
2624 result.size () == 0.
2625
df631783
PA
26262020-08-27 Pedro Alves <pedro@palves.net>
2627
2628 PR gdb/26524
2629 * breakpoint.c (until_break_fsm) <location_breakpoint,
2630 caller_breakpoint>: Delete fields.
2631 <breakpoints>: New field.
2632 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2633 two individual breakpoints.
2634 (until_break_fsm::should_stop): Loop over breakpoints in the
2635 breakpoint vector.
2636 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2637 vector.
2638 (until_break_command): Handle location expanding into multiple
2639 sals.
2640
b2b38aa4
PA
26412020-08-27 Pedro Alves <pedro@palves.net>
2642
2643 PR gdb/26523
2644 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2645 bp_until breakpoints user-specified locations. Update intro
2646 comment.
2647
b886559f
SM
26482020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2649
2650 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2651 gdb_bfd_sections): New.
2652 * maint.c (print_bfd_section_info): Change param type to
2653 maint_print_section_data.
2654 (print_objfile_section_info): Likewise.
2655 (print_bfd_section_info_maybe_relocated): Likewise.
2656 (maintenance_info_sections): Use gdb_bfd_sections.
2657
4c6e63bf
SV
26582020-08-25 Shahab Vahedi <shahab@synopsys.com>
2659
2660 * MAINTAINERS: Add ARC target and maintainer.
2661
8d7f0635
AK
26622020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2663
2664 * configure.tgt: ARC support for GNU/Linux.
2665 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2666 * arc-linux-tdep.c: New file.
2667 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2668 * arc-tdep.c (arc_write_pc): Use it.
2669
fdd8731b
SV
26702020-08-25 Shahab Vahedi <shahab@synopsys.com>
2671
2672 * arc-tdep.c (arc_check_for_hardware_loop): New.
2673 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2674
22459524
SV
26752020-08-25 Shahab Vahedi <shahab@synopsys.com>
2676
2677 * arc-tdep.h: Include "gdbarch.h".
2678
995d3a19
SV
26792020-08-25 Shahab Vahedi <shahab@synopsys.com>
2680
2681 * arch/arc.h
2682 (arc_gdbarch_features): New class to stir the selection of target XML.
2683 (arc_create_target_description): Use FEATURES to choose XML target.
2684 (arc_lookup_target_description): Use arc_create_target_description
2685 to create _new_ target descriptions or return the already created
2686 ones if the FEATURES is the same.
2687 * arch/arc.c: Implementation of prototypes described above.
2688 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2689 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2690 * arc-tdep.c (*_feature_name): Make feature names consistent.
2691 (arc_register_feature): A new struct to hold information about
2692 registers of a particular target/feature.
2693 (arc_check_tdesc_feature): Check if XML provides registers in
2694 compliance with ARC_REGISTER_FEATURE structs.
2695 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2696 (determine_*_reg_feature_set): Which feature name to look for.
2697 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2698 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2699 to expected ISA enums to be used in arc_gdbarch_features structs.
2700 * features/Makefile (FEATURE_XMLFILES): Add new files.
2701 * gdb/features/arc/v1-aux.c: New file.
2702 * gdb/features/arc/v1-aux.xml: Likewise.
2703 * gdb/features/arc/v1-core.c: Likewise.
2704 * gdb/features/arc/v1-core.xml: Likewise.
2705 * gdb/features/arc/v2-aux.c: Likewise.
2706 * gdb/features/arc/v2-aux.xml: Likewise.
2707 * gdb/features/arc/v2-core.c: Likewise.
2708 * gdb/features/arc/v2-core.xml: Likewise.
2709 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2710
3945d2d7
GM
27112020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2712 Andrew Burgess <andrew.burgess@embecosm.com>
2713
2714 PR m2/26372
fc5d6901 2715 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2716 an assert. Remove single element array indexing pattern as the
2717 MULTI_SUBSCRIPT support will handle this case too.
2718
2677f2d3
SM
27192020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2720
2721 * value.h (valprint_check_validity): Move declaration from
2722 here...
2723 * valprint.h (valprint_check_validity): ... to here.
2724
c426fddb
SM
27252020-08-24 Simon Marchi <simon.marchi@efficios.com>
2726
2727 * debug.h: New file.
2728 * debug.c (debug_prefixed_vprintf): New function.
2729 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2730 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2731
1eb8556f
SM
27322020-08-24 Simon Marchi <simon.marchi@efficios.com>
2733
2734 * infrun.h (infrun_debug_printf_1): New function declaration.
2735 (infrun_debug_printf): New macro.
2736 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2737 throughout.
2738 (infrun_debug_printf): New function.
2739 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2740 (handle_jit_event): Likewise.
2741
b8fff44e
MW
27422020-08-21 Mark Wielaard <mark@klomp.org>
2743
2744 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2745
d19c3068
SM
27462020-08-22 Simon Marchi <simon.marchi@efficios.com>
2747
2748 * frame.c (enum class frame_id_status): New.
2749 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2750 (fprintf_frame): Update.
2751 (compute_frame_id): Set frame id status to "computing" on entry.
2752 Set it back to "not_computed" on failure and to "computed" on
2753 success.
2754 (get_frame_id): Assert the frame id is not being computed.
2755 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2756 (create_new_frame): Likewise.
2757 (frame_cleanup_after_sniffer): Update assert.
2758
b70e516e
SM
27592020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2760
2761 * regcache.c (pid_ptid_regcache_map): New type.
2762 (target_ptid_regcache_map): Remove.
2763 (target_pid_ptid_regcache_map): New type.
2764 (regcaches): Change type to target_pid_ptid_regcache_map.
2765 (get_thread_arch_aspace_regcache): Update.
2766 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2767 case.
2768 (regcaches_size): Update.
2769 (regcache_count): Update.
2770 (registers_changed_ptid_target_pid_test): New.
2771 (_initialize_regcache): Register new test.
2772
cdd9148a
SM
27732020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2774
2775 * regcache.c (regcache_count): New.
2776 (struct regcache_test_data): New.
2777 (regcache_test_data_up): New.
2778 (populate_regcaches_for_test): New.
2779 (regcaches_test): Remove.
2780 (get_thread_arch_aspace_regcache_test): New.
2781 (registers_changed_ptid_all_test): New.
2782 (registers_changed_ptid_target_test): New.
2783 (registers_changed_ptid_target_ptid_test): New.
2784 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2785 (_initialize_regcache): Register new tests.
2786
dd125343
SM
27872020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2788
2789 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2790 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2791 gdbarch and aspace parameter. Use current inferior's aspace.
2792 Validate regcache's arch value.
2793 (regcaches_test): Update.
2794
3ee93972
SM
27952020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2796
2797 * regcache.c (regcaches_test): Call registers_changed.
2798
33bf4c5c
TBA
27992020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2800
2801 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2802
c2fd7fae
AKS
28032020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2804
2805 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2806 to find the end of prologue for flang compiled binaries.
2807 * arm-tdep.c (arm_skip_prologue): Likewise.
2808 * i386-tdep.c (i386_skip_prologue): Likewise.
2809 * producer.c (producer_is_llvm): New function.
2810 (producer_parsing_tests): Added new tests for clang/flang.
2811 * producer.h (producer_is_llvm): New declaration.
2812
9327494e
SM
28132020-08-18 Simon Marchi <simon.marchi@efficios.com>
2814
2815 * linux-nat.c (linux_nat_debug_printf): New function.
2816 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2817
d138725a
AM
28182020-08-18 Aaron Merey <amerey@redhat.com>
2819
2820 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2821 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2822 (CLIBS): Add DEBUGINFOD_LIBS.
2823
f9b11e6b
ST
28242020-08-17 Sergei Trofimovich <siarheit@google.com>
2825
2826 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2827 'gdbarch_num_regs'.
2828
3ae7ab99
TT
28292020-08-17 Tom Tromey <tromey@adacore.com>
2830
2831 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2832 ada_get_decoded_value returns NULL.
2833
b017825f
TT
28342020-08-17 Tom Tromey <tromey@adacore.com>
2835
2836 * python/py-inferior.c (infpy_search_memory): Use
2837 gdb_py_object_from_ulongest.
2838 * python/py-infevents.c (create_inferior_call_event_object)
2839 (create_memory_changed_event_object): Use
2840 gdb_py_object_from_ulongest.
2841 * python/py-linetable.c (ltpy_entry_get_pc): Use
2842 gdb_py_object_from_ulongest.
2843
7635cf79
SM
28442020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2845
2846 * loc.c (class symbol_needs_eval_context): Fix indentation.
2847
f54be24b
SM
28482020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2849
2850 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2851 bool.
2852
53d5a2a5
TV
28532020-08-17 Tom de Vries <tdevries@suse.de>
2854
2855 PR gdb/26393
2856 * gdbtypes.c (dump_dynamic_prop): New function.
2857 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2858
547ce8f0
TV
28592020-08-15 Tom de Vries <tdevries@suse.de>
2860
2861 PR backtrace/26390
2862 * stack.c (print_frame_args): Temporarily set the selected
2863 frame to FRAME while printing the frame's arguments.
2864
6ea815e7
PFC
28652020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2866
2867 PR breakpoints/26385
2868 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2869 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2870
6e562fa3
PFC
28712020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2872
2873 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2874 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2875 and >= to check return value instead of == -1 and != -1.
2876
d369b608
SM
28772020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2878
2879 * utils.h (class gdb_argv) <as_array_view>: New method.
2880 * utils.c (gdb_argv_as_array_view_test): New.
2881 (_initialize_utils): Register selftest.
2882 * maint.c (maintenance_selftest): Use the new method.
2883
b31488a3
KR
28842020-08-13 Kamil Rytarowski <n54@gmx.com>
2885
2886 * target.h (supports_dumpcore, dumpcore): New
2887 function declarations.
2888 * target.c (supports_dumpcore, dumpcore): New
2889 functions.
2890 * target-delegates.c: Rebuild.
2891 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2892 and target_dumpcore ().
2893
002a3166
AM
28942020-08-13 Aaron Merey <amerey@redhat.com>
2895
2896 * debuginfod-support.c: Replace global variables with user_data.
2897
ece5bc8a
SM
28982020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2899
2900 * maint.c (maintenance_selftest): Split args and pass array_view
2901 to run_tests.
2902
6d8a0a5e
LM
29032020-08-12 Luis Machado <luis.machado@linaro.org>
2904
2905 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2906 type's length.
2907 Use %s and pulongest to print the length.
2908
7cf663a9
PA
29092020-08-12 Pedro Alves <palves@redhat.com>
2910
2911 * NEWS: Move "Multi-target debugging support" item to the
2912 "Changes since GDB 9" section.
2913
27c7b875
PA
29142020-08-12 Pedro Alves <palves@redhat.com>
2915
2916 PR gdb/26336
2917 * progspace.c (program_space::remove_objfile): Invalidate the
2918 frame cache.
2919
1796a2a1
TV
29202020-08-11 Tom de Vries <tdevries@suse.de>
2921
2922 * MAINTAINERS: Mark ms1 as deleted.
2923
f8e3fe0d
LM
29242020-08-10 Luis Machado <luis.machado@linaro.org>
2925
2926 PR gdb/26310
2927
2928 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2929 act accordingly.
2930 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2931 movz/str/stur/stp skipping behavior.
2932
cc308722
LM
29332020-08-10 Luis Machado <luis.machado@linaro.org>
2934
2935 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2936 struct user_sve_header instead of struct sve_context.
2937
041d9819
SM
29382020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2939
2940 * read.h (dwarf2_fetch_die_loc_sect_off,
2941 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2942 `void *` parameter with function_view.
2943 * read.c (dwarf2_fetch_die_loc_sect_off,
2944 dwarf2_fetch_die_loc_cu_off): Likewise.
2945 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2946 (per_cu_dwarf_call): Adjust.
2947 (get_frame_address_in_block_wrapper): Remove.
2948 (indirect_synthetic_pointer): Adjust.
2949 (get_ax_pc): Remove.
2950 (dwarf2_compile_expr_to_ax): Adjust.
2951
38f8aa06
TV
29522020-08-08 Tom de Vries <tdevries@suse.de>
2953
2954 PR build/26344
2955 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2956 constructor.
2957 * regcache.c (get_thread_arch_aspace_regcache): Same.
2958
a52b3ae2
TT
29592020-08-07 Tom Tromey <tromey@adacore.com>
2960
2961 * ravenscar-thread.c
2962 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2963 New method.
2964 (ravenscar_thread_target::wait): Check
2965 runtime_initialized.
2966 (ravenscar_thread_target::prepare_to_store)
2967 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2968 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2969 (ravenscar_thread_target::stopped_by_watchpoint)
2970 (ravenscar_thread_target::stopped_data_address)
2971 (ravenscar_thread_target::core_of_thread): Use
2972 scoped_restore_current_thread and
2973 set_base_thread_from_ravenscar_task.
2974
0e29517d
TT
29752020-08-07 Tom Tromey <tromey@adacore.com>
2976
2977 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2978
592f9bd7
TT
29792020-08-07 Tom Tromey <tromey@adacore.com>
2980
2981 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2982 update_inferior_ptid before update_thread_list.
2983 (temporarily_change_regcache_ptid): New class.
2984 (ravenscar_thread_target::fetch_registers)
2985 (ravenscar_thread_target::store_registers)
2986 (ravenscar_thread_target::prepare_to_store): Use base thread when
2987 forwarding operation.
2988
39e2018a
TT
29892020-08-07 Tom Tromey <tromey@adacore.com>
2990
2991 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2992 "is_pid" case.
2993
2080266b
TT
29942020-08-07 Tom Tromey <tromey@adacore.com>
2995
2996 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2997 New methods.
2998 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2999 first.
3000 (ravenscar_thread_target::add_thread): Rename from
3001 ravenscar_add_thread.
3002 (ravenscar_thread_target::update_thread_list): Use a lambda.
3003 (ravenscar_thread_target::xfer_partial): New method.
3004
78c02f21
TT
30052020-08-07 Tom Tromey <tromey@adacore.com>
3006
3007 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3008 gdb::function_view.
3009 (iterate_over_live_ada_tasks): Change type of argument.
3010 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3011 of argument.
3012
d5d833af
TT
30132020-08-07 Tom Tromey <tromey@adacore.com>
3014
3015 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3016 Remove.
3017 (ravenscar_thread_target::extra_thread_info): Remove.
3018 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3019 defer to target beneath for non-Ravenscar threads.
3020
a8ac85bb
TT
30212020-08-07 Tom Tromey <tromey@adacore.com>
3022
3023 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3024 get_base_thread_from_ravenscar_task>: Now methods.
3025 <m_cpu_map>: New member.
3026 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3027 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3028 (ravenscar_thread_target::task_is_currently_active): Update.
3029 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3030 Now a method.
3031 (ravenscar_thread_target::add_active_thread): Put initial thread
3032 into the m_cpu_map.
3033
550ab58d
TT
30342020-08-07 Tom Tromey <tromey@adacore.com>
3035
3036 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3037 event_ptid.
3038
e9546579
TT
30392020-08-07 Tom Tromey <tromey@adacore.com>
3040
3041 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3042 runtime_initialized.
3043
3d4470e5
TT
30442020-08-07 Tom Tromey <tromey@adacore.com>
3045
3046 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3047 add_active_thread.
3048 (ravenscar_thread_target::add_active_thread): Now public.
3049 (ravenscar_inferior_created): Call add_active_thread after pushing
3050 the target.
3051
888bdb2b
SM
30522020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3053
3054 * regcache.c (ptid_regcache_map): New type.
3055 (target_ptid_regcache_map): New type.
3056 (regcaches): Change type to target_ptid_regcache_map.
3057 (get_thread_arch_aspace_regcache): Update to regcaches' new
3058 type.
3059 (regcache_thread_ptid_changed): Likewise.
3060 (registers_changed_ptid): Likewise.
3061 (regcaches_size): Likewise.
3062 (regcaches_test): Update.
3063 (regcache_thread_ptid_changed): Update.
3064 * regcache.h (regcache_up): New type.
3065 * gdbsupport/ptid.h (hash_ptid): New struct.
3066
b161a60d
SM
30672020-08-07 Simon Marchi <simon.marchi@efficios.com>
3068
3069 * observable.h (thread_ptid_changed): Add parameter
3070 `process_stratum_target *`.
3071 * infrun.c (infrun_thread_ptid_changed): Add parameter
3072 `process_stratum_target *` and use it.
3073 (selftests): New namespace.
3074 (infrun_thread_ptid_changed): New function.
3075 (_initialize_infrun): Register selftest.
3076 * regcache.c (regcache_thread_ptid_changed): Add parameter
3077 `process_stratum_target *` and use it.
3078 (regcache_thread_ptid_changed): New function.
3079 (_initialize_regcache): Register selftest.
3080 * thread.c (thread_change_ptid): Pass target to
3081 thread_ptid_changed observable.
3082
d2854d8d
CT
30832020-08-06 Caroline Tice <cmtice@google.com>
3084
fe4c3d43
SM
3085 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3086 (struct dwp_sections): Update field comments. Add loclists and
3087 rnglists fields.
3088 (struct virtual_v2_dwo_sections): Rename struct to
3089 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3090 size & offset fields for loclists and rnglists.
3091 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3092 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3093 skipping dummy type units.
3094 (create_dwp_hash_table): Update the large comment above the function to
3095 discuss Version 5 DWP files as well, with references. Update all the
3096 version checks in the function to check for version 5 as well. Add new
3097 section at the end to create dwp hash table for version 5.
3098 (create_dwp_v2_section): Rename function to
3099 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3100 Add V5 to error message text.
3101 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3102 into calls to create_dwp_v2_or_v5_section.
3103 (create_dwo_unit_in_dwp_v5): New function.
3104 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3105 check for version2; add else clause to handle version 5.
3106 (open_and_init_dwo_file): Add code to check dwarf version & only call
3107 create_debug_types_hash_table (with sections.types) if version is not 5;
3108 else call create_debug_type_hash_table, with sections.info.
3109 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3110 version 5.
3111 (dwarf2_locate_v5_dwp_sections): New function.
3112 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3113 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3114
159ed7d9
SM
31152020-08-06 Simon Marchi <simon.marchi@efficios.com>
3116
3117 * regcache.h (class regcache): Remove friend
3118 registers_changed_ptid.
3119 <regcache_thread_ptid_changed>: Remove.
3120 <regcaches>: Remove.
3121 * regcache.c (regcache::regcaches): Rename to...
3122 (regcaches): ... this. Make static.
3123 (get_thread_arch_aspace_regcache): Update.
3124 (regcache::regcache_thread_ptid_changed): Rename to...
3125 (regcache_thread_ptid_changed): ... this. Update.
3126 (class regcache_access): Remove.
3127 (regcaches_test): Update.
3128 (_initialize_regcache): Update.
3129 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3130 <forward_list>.
3131
174981ae
SM
31322020-08-06 Simon Marchi <simon.marchi@efficios.com>
3133
3134 * regcache.h (class regcache) <current_regcache>: Rename to...
3135 <regcaches>: ... this. Move doc here.
3136 * regcache.c (regcache::current_regcache) Rename to...
3137 (regcache::regcaches): ... this. Move doc to header.
3138 (get_thread_arch_aspace_regcache): Update.
3139 (regcache::regcache_thread_ptid_changed): Update.
3140 (registers_changed_ptid): Update.
3141 (class regcache_access) <current_regcache_size>: Rename to...
3142 <regcaches_size>: ... this.
3143 (current_regcache_test): Rename to...
3144 (regcaches_test): ... this.
3145 (_initialize_regcache): Update.
3146
ed908db6
VC
31472020-08-06 Victor Collod <vcollod@nvidia.com>
3148
3149 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3150
b5582ab7
KB
31512020-08-05 Kevin Buettner <kevinb@redhat.com>
3152
3153 * corelow.c (core_target::build_file_mappings): Don't output
3154 null pathname in warning.
3155
ea946b86
SM
31562020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3157
3158 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3159 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3160 gdb.dwarf2/dw2-single-line-discriminators.exp,
3161 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3162
57d02173
TT
31632020-08-05 Tom Tromey <tromey@adacore.com>
3164
3165 PR rust/26197:
3166 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3167 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3168 Fix off-by-one and type size errors in ordinary case.
3169
5555c86d
TV
31702020-08-05 Tom de Vries <tdevries@suse.de>
3171
3172 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3173 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3174
97916bfe
SM
31752020-08-04 Simon Marchi <simon.marchi@efficios.com>
3176
3177 * frame.h (frame_id_p): Return bool.
3178 (frame_id_artificial_p): Return bool.
3179 (frame_id_eq): Return bool.
3180 (has_stack_frames): Return bool.
3181 (get_selected_frame): Fix typo in comment.
3182 (get_frame_pc_if_available): Return bool.
3183 (get_frame_address_in_block_if_available): Return bool.
3184 (get_frame_func_if_available): Return bool.
3185 (read_frame_register_unsigned): Return bool.
3186 (get_frame_register_bytes): Return bool.
3187 (safe_frame_unwind_memory): Return bool.
3188 (deprecated_frame_register_read): Return bool.
3189 (frame_unwinder_is): Return bool.
3190 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3191 bool.
3192 <this_id::p>: Likewise.
3193 <prev_p>: Likewise.
3194 (frame_stash_add): Return bool.
3195 (get_frame_id): Use bool.
3196 (frame_id_build_special) Use bool.
3197 (frame_id_build_unavailable_stack): Use bool.
3198 (frame_id_build): Use bool.
3199 (frame_id_p): Return bool, use true/false instead of 1/0.
3200 (frame_id_artificial_p): Likewise.
3201 (frame_id_eq): Likewise.
3202 (frame_id_inner): Likewise.
3203 (get_frame_func_if_available): Likewise.
3204 (read_frame_register_unsigned): Likewise.
3205 (deprecated_frame_register_read): Likewise.
3206 (get_frame_register_bytes): Likewise.
3207 (has_stack_frames): Likewise.
3208 (inside_main_func): Likewise.
3209 (inside_entry_func): Likewise.
3210 (get_frame_pc_if_available): Likewise.
3211 (get_frame_address_in_block_if_available): Likewise.
3212 (frame_unwinder_is): Likewise.
3213 (safe_frame_unwind_memory): Likewise.
3214 (frame_unwind_arch): Likewise.
3215
fedfee88
SM
32162020-08-04 Simon Marchi <simon.marchi@efficios.com>
3217
3218 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3219 type to cached_copy_status.
3220 (fprintf_frame): Adjust.
3221 (get_frame_func_if_available): Adjust.
3222 (frame_cleanup_after_sniffer): Adjust.
3223
6cfa9b59
MW
32242020-08-04 Mark Wielaard <mark@klomp.org>
3225
3226 * MAINTAINERS (Write After Approval): Update email address.
3227
66d6346b
SM
32282020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3229
3230 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3231 dynamic_prop::const_val.
3232
8a6d5e35
SM
32332020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3234
3235 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3236 dynamic_prop::kind.
3237
51d6067d
SM
32382020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3239
3240 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3241
b26e2ae7
JM
32422020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3243
3244 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3245
39791af2
JM
32462020-08-04 Weimin Pan <weimin.pan@oracle.com>
3247 Jose E. Marchesi <jose.marchesi@oracle.com>
3248
3249 * configure.tgt: Add entry for bpf-*-*.
3250 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3251 (ALLDEPFILES): Add bpf-tdep.c.
3252 * bpf-tdep.c: New file.
3253 * MAINTAINERS: Add bpf target and maintainer.
3254 * NEWS: Mention the support for the new target.
3255
521894aa
TV
32562020-08-04 Tom de Vries <tdevries@suse.de>
3257
3258 PR symtab/23270
3259 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3260 Error.
3261
5d6356e9
JB
32622020-08-03 John Baldwin <jhb@FreeBSD.org>
3263
3264 * syscalls/freebsd.xml: Regenerate.
3265
0cf82b81
JB
32662020-08-03 John Baldwin <jhb@FreeBSD.org>
3267
3268 * syscalls/update-freebsd.sh: Fix usage and year range.
3269
8f34b746
TV
32702020-08-03 Tom de Vries <tdevries@suse.de>
3271
3272 PR symtab/26333
3273 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3274 DW_LNE_lo_user/DW_LNE_hi_user range.
3275
5e500d33
SM
32762020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3277
3278 PR ada/26318
3279 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3280 kind.
3281
78319c15
TBA
32822020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3283
3284 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3285
4c55e970
TBA
32862020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3287
3288 * breakpoint.c (set_breakpoint_condition): Update the condition
3289 expressions after checking that the input condition string parses
3290 successfully and does not contain junk at the end.
3291
1e620590
TBA
32922020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3293
3294 * breakpoint.c (set_breakpoint_condition): Update the
3295 condition string after parsing the new condition successfully.
3296
c8693053
RO
32972020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3298
3299 * proc-api.c (_STRUCTURED_PROC): Don't define.
3300 * proc-events.c: Likewise.
3301 * proc-flags.c: Likewise.
3302 * proc-why.c: Likewise.
3303 * procfs.c: Likewise.
3304
3305 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3306 * configure, config.in: Regenerate.
3307
5a99adb8
TV
33082020-07-30 Tom de Vries <tdevries@suse.de>
3309
3310 PR build/26320
3311 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3312 m_red/m_green/m_blue in a union.
3313
8ba83e91
TV
33142020-07-29 Tom de Vries <tdevries@suse.de>
3315
3316 PR tdep/26280
3317 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3318
f75a0693
AB
33192020-07-28 Tom Tromey <tromey@adacore.com>
3320
3321 PR symtab/26270:
3322 * symtab.h (find_pc_partial_function_sym): Declare.
3323 * cli/cli-cmds.c (disassemble_command): Use
3324 find_pc_partial_function_sym. Check asm_demangle.
3325 * blockframe.c (cache_pc_function_sym): New global.
3326 (cache_pc_function_name): Remove.
3327 (clear_pc_function_cache): Update.
3328 (find_pc_partial_function_sym): New function, from
3329 find_pc_partial_function.
3330 (find_pc_partial_function): Rewrite using
3331 find_pc_partial_function_sym.
3332
16f3242c
TT
33332020-07-28 Tom Tromey <tromey@adacore.com>
3334
3335 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3336 help. Add usage.
3337
4888741a
TT
33382020-07-28 Tom Tromey <tromey@adacore.com>
3339
3340 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3341 <DW_OP_GNU_variable_value>: Cast to address type.
3342
4d46f402
KR
33432020-07-28 Kamil Rytarowski <n54@gmx.com>
3344
3345 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3346 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3347 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3348 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3349 (nbsd_get_siginfo_type): New.
3350 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3351 (_initialize_nbsd_tdep): New.
3352
d70f978b
L
33532020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3354
3355 PR binutils/26301
3356 * configure: Regenerated.
3357
377170fa
L
33582020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3359
3360 PR binutils/26301
3361 * configure: Regenerated.
3362
43d5901d
AB
33632020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3364
3365 * python/py-frame.c: Remove 'user-regs.h' include.
3366 (frapy_read_register): Rewrite to make use of
3367 gdbpy_parse_register_id.
3368 * python/py-registers.c (gdbpy_parse_register_id): New function,
3369 moved here from python/py-unwind.c. Updated the return type, and
3370 also accepts register descriptor objects.
3371 * python/py-unwind.c: Remove 'user-regs.h' include.
3372 (pyuw_parse_register_id): Moved to python/py-registers.c.
3373 (unwind_infopy_add_saved_register): Update to use
3374 gdbpy_parse_register_id.
3375 (pending_framepy_read_register): Likewise.
3376 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3377
14fa8fb3
AB
33782020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3379
3380 * python/py-registers.c: Add 'user-regs.h' include.
3381 (register_descriptor_iter_find): New function.
3382 (register_descriptor_iterator_object_methods): New static global
3383 methods array.
3384 (register_descriptor_iterator_object_type): Add pointer to methods
3385 array.
3386
ddce1758
JB
33872020-07-27 John Baldwin <jhb@FreeBSD.org>
3388
3389 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3390 for all architectures on FreeBSD 11.3 and later.
3391
a4089f52
TT
33922020-07-27 Tom Tromey <tromey@adacore.com>
3393
3394 * gcore.h (load_corefile): Don't declare.
3395
95420d30
TV
33962020-07-27 Tom de Vries <tdevries@suse.de>
3397
3398 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3399 * config.in: Regenerate.
3400 * configure: Regenerate.
3401
05a6b8c2
EZ
34022020-07-26 Eli Zaretskii <eliz@gnu.org>
3403
3404 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3405 ws2tcpip.h. When checking whether socklen_t type is defined, use
3406 ws2tcpip.h if it is available and sys/socket.h isn't.
3407 * configure: Regenerate.
3408 * config.in: Regenerate.
3409
e79eb02f
AB
34102020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3411
3412 PR fortran/23051
3413 PR fortran/26139
3414 * valops.c (value_ind): Pass address to
3415 readjust_indirect_value_type.
3416 * value.c (readjust_indirect_value_type): Make parameter
3417 non-const, and add extra address parameter. Resolve original type
3418 before using it.
3419 * value.h (readjust_indirect_value_type): Update function
3420 signature and comment.
3421
876518dd
TV
34222020-07-25 Tom de Vries <tdevries@suse.de>
3423
3424 PR symtab/26243
3425 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3426 entries.
3427
f6720b1c
AM
34282020-07-24 Aaron Merey <amerey@redhat.com>
3429
3430 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3431 * configure: Rebuild.
3432
513487e1
KB
34332020-07-23 Kevin Buettner <kevinb@redhat.com>
3434
3435 PR corefiles/26294
3436 * corelow.c (_initialize_corelow): Add period to help text
3437 for "maintenance print core-file-backed-mappings".
3438
e7bc9db8
PA
34392020-07-23 Pedro Alves <pedro@palves.net>
3440
3441 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3442 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3443 meanwhile.
3444 * frame.c (frame_cache_generation, get_frame_cache_generation):
3445 New.
3446 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3447 (get_prev_frame_if_no_cycle): On exception, don't touch
3448 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3449 * frame.h (get_frame_cache_generation): Declare.
3450
90fcc466
TV
34512020-07-23 Tom de Vries <tdevries@suse.de>
3452
3453 PR tui/26282
3454 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3455 New default constructor.
3456
78344df7
AB
34572020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3458
3459 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3460 exclude non-statement entries.
3461
b089853a
KB
34622020-07-22 Kevin Buettner <kevinb@redhat.com>
3463
3464 * NEWS (New commands): Mention new command
3465 "maintenance print core-file-backed-mappings".
3466
09c2f5d4
KB
34672020-07-22 Kevin Buettner <kevinb@redhat.com>
3468
3469 * corelow.c (gdbcmd.h): Include.
3470 (core_target::info_proc_mappings): New method.
3471 (get_current_core_target): New function.
3472 (maintenance_print_core_file_backed_mappings): New function.
3473 (_initialize_corelow): Add core-file-backed-mappings to
3474 "maint print" commands.
3475
9c5ec5c2 34762020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3477
9c5ec5c2
KB
3478 * linux-tdep.c (dump_note_entry_p): New function.
3479 (linux_dump_mapping_p_ftype): New typedef.
3480 (linux_find_memory_regions_full): Add new parameter,
3481 should_dump_mapping_p.
3482 (linux_find_memory_regions): Adjust call to
3483 linux_find_memory_regions_full.
3484 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3485 call to linux_find_memory_regions_full.
3486
db082f59
KB
34872020-07-22 Kevin Buettner <kevinb@redhat.com>
3488
3489 * corelow.c (solist.h, unordered_map): Include.
3490 (class core_target): Add field m_core_file_mappings and
3491 method build_file_mappings.
3492 (core_target::core_target): Call build_file_mappings.
3493 (core_target::~core_target): Free memory associated with
3494 m_core_file_mappings.
3495 (core_target::build_file_mappings): New method.
3496 (core_target::xfer_partial): Use m_core_file_mappings
3497 for memory transfers.
3498 * linux-tdep.c (linux_read_core_file_mappings): New
3499 function.
3500 (linux_core_info_proc_mappings): Rewrite to use
3501 linux_read_core_file_mappings.
3502 (linux_init_abi): Register linux_read_core_file_mappings.
3503
7e183d27
KB
35042020-07-22 Kevin Buettner <kevinb@redhat.com>
3505
3506 * arch-utils.c (default_read_core_file_mappings): New function.
3507 * arch-utils.c (default_read_core_file_mappings): Declare.
3508 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3509 * gdbarch.h, gdbarch.c: Regenerate.
3510
2735d421
KB
35112020-07-22 Kevin Buettner <kevinb@redhat.com>
3512
3513 PR corefiles/25631
3514 * corelow.c (core_target:xfer_partial): Revise
3515 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3516 case after first checking the stratum beneath the core
3517 target.
3518 (has_all_memory): Return true.
3519 * target.c (raw_memory_xfer_partial): Revise comment
3520 regarding use of has_all_memory.
3521
e56cb451
KB
35222020-07-22 Kevin Buettner <kevinb@redhat.com>
3523
3524 * exec.h (section_table_xfer_memory): Revise declaration,
3525 replacing section name parameter with an optional callback
3526 predicate.
3527 * exec.c (section_table_xfer_memory): Likewise.
3528 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3529 of section_table_xfer_memory.
3530
32fa152e
TT
35312020-07-22 Tom Tromey <tromey@adacore.com>
3532
3533 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3534 lookup_symbol_search_name.
3535
a67a1c41
AB
35362020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3537
3538 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3539 redundant local variable.
3540 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3541 reference, not pointer, update code accordingly.
3542
a7b4ff4f
SM
35432020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3544 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3545
3546 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3547 * jit.c (jit_breakpoint_re_set_internal): Use the
3548 `skip_jit_symbol_lookup` field.
3549
2340e834
SM
35502020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3551 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3552
3553 * jit.c (jit_read_descriptor): Define the descriptor address once,
3554 use twice.
3555 (jit_breakpoint_deleted): Move the declaration of the loop variable
3556 `iter` into the loop header.
3557 (jit_breakpoint_re_set_internal): Move the declaration of the local
3558 variable `objf_data` to the first point of definition.
3559 (jit_event_handler): Move the declaration of local variables
3560 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3561 Rename `objf` to `jited`.
3562
c1072906
SM
35632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3564
3565 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3566 Remove.
3567 * jit.c (get_jiter_objfile_data): Update.
3568
c8474dc3
TBA
35692020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3570 Simon Marchi <simon.marchi@polymtl.ca>
3571
3572 * jit.c (struct jit_program_space_data): Remove.
3573 (jit_program_space_key): Remove.
3574 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3575 stuff.
3576 (get_jit_program_space_data): Remove.
3577 (jit_breakpoint_deleted): Iterate on all of the program space's
3578 objfiles.
3579 (jit_inferior_init): Likewise.
3580 (jit_breakpoint_re_set_internal): Likewise. Also change return
3581 type to void.
3582 (jit_breakpoint_re_set): Pass current_program_space to
3583 jit_breakpoint_re_set_internal.
3584
77208eb7
SM
35852020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3586
3587 * jit.h (struct jiter_objfile_data) <cached_code_address,
3588 jit_breakpoint>: Move to here from ...
3589 * jit.c (jit_program_space_data): ... here.
3590 (jiter_objfile_data::~jiter_objfile_data): Update.
3591 (jit_breakpoint_deleted): Update.
3592 (jit_breakpoint_re_set_internal): Update.
3593
8c1c720f
SM
35942020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3595
3596 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3597 checks.
3598 (jit_read_descriptor): Remove NULL check.
3599 (jit_event_handler): Add an assertion.
3600
0e74a041
SM
36012020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3602
3603 * jit.h (struct jit_objfile_data): Split into...
3604 (struct jiter_objfile_data): ... this ...
3605 (struct jited_objfile_data): ... and this.
3606 * objfiles.h (struct objfile) <jit_data>: Remove.
3607 <jiter_data, jited_data>: New fields.
3608 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3609 (jiter_objfile_data::~jiter_objfile_data): ... this.
3610 (get_jit_objfile_data): Rename to ...
3611 (get_jiter_objfile_data): ... this.
3612 (add_objfile_entry): Update.
3613 (jit_read_descriptor): Use get_jiter_objfile_data.
3614 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3615 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3616 (jit_inferior_exit_hook): Use objfile's jited_data field.
3617
238b5c9f
SM
36182020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3619
3620 * jit.h: Forward-declare `struct minimal_symbol`.
3621 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3622 constructor, destructor, and an objfile* field.
3623 * jit.c (jit_objfile_data): Remove.
3624 (struct jit_objfile_data): Migrate from here to jit.h.
3625 (jit_objfile_data::~jit_objfile_data): New destructor
3626 implementation with code moved from free_objfile_data.
3627 (free_objfile_data): Delete.
3628 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3629 (jit_find_objf_with_entry_addr): Ditto.
3630 (jit_inferior_exit_hook): Ditto.
3631 (_initialize_jit): Remove the call to
3632 register_objfile_data_with_cleanup.
3633 * objfiles.h (struct objfile) <jit_data>: New field.
3634
fe053b9e
TBA
36352020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3636
3637 * jit.h: Forward-declare `struct objfile`.
3638 (jit_event_handler): Add a second parameter, the JITer objfile.
3639 * jit.c (jit_read_descriptor): Change the signature to take the
3640 JITer objfile as an argument instead of the jit_program_space_data.
3641 (jit_inferior_init): Update the call to jit_read_descriptor.
3642 (jit_event_handler): Use the new JITer objfile argument when calling
3643 jit_read_descriptor.
3644 * breakpoint.c (handle_jit_event): Update the call to
3645 jit_event_handler to pass the JITer objfile.
3646
4cec0c66
JB
36472020-07-21 John Baldwin <jhb@FreeBSD.org>
3648
3649 * gdbarch.c: Regenerate.
3650 * gdbarch.h: Regenerate.
3651 * gdbarch.sh (handle_segmentation_fault): Remove method.
3652 * infrun.c (handle_segmentation_fault): Remove.
3653 (print_signal_received_reason): Remove call to
3654 handle_segmentation_fault.
3655
0e42f66a
JB
36562020-07-21 John Baldwin <jhb@FreeBSD.org>
3657
3658 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3659 Rename to sparc64_linux_report_signal_info and add siggnal
3660 argument.
3661 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3662 instead of sparc64_linux_handle_segmentation_fault.
3663
77bdfeb2
JB
36642020-07-21 John Baldwin <jhb@FreeBSD.org>
3665
3666 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3667 i386_linux_report_signal_info instead of
3668 i386_linux_handle_segmentation_fault.
3669 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3670 to i386_linux_report_signal_info and add siggnal argument.
3671 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3672 of i386_linux_handle_segmentation_fault.
3673 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3674 to i386_linux_report_signal_info and add siggnal argument.
3675
ad97bfc5
JB
36762020-07-21 John Baldwin <jhb@FreeBSD.org>
3677
3678 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3679 hook if present.
3680
272bb05c
JB
36812020-07-21 John Baldwin <jhb@FreeBSD.org>
3682
3683 * gdbarch.c: Regenerate.
3684 * gdbarch.h: Regenerate.
3685 * gdbarch.sh (report_signal_info): New method.
3686 * infrun.c (print_signal_received_reason): Invoke gdbarch
3687 report_signal_info hook if present.
3688
baf8791e
AB
36892020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3690
3691 * python/py-registers.c : Add 'unordered_map' include.
3692 (gdbpy_new_reggroup): Renamed to...
3693 (gdbpy_get_reggroup): ...this. Update to only create register
3694 group descriptors when needed.
3695 (gdbpy_reggroup_iter_next): Update.
3696
f7306dac
AB
36972020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3698
3699 * python/py-registers.c (gdbpy_register_object_data): New static
3700 global.
3701 (gdbpy_register_object_data_init): New function.
3702 (gdbpy_new_register_descriptor): Renamed to...
3703 (gdbpy_get_register_descriptor): ...this, and update to reuse
3704 existing register descriptors where possible.
3705 (gdbpy_register_descriptor_iter_next): Update.
3706 (gdbpy_initialize_registers): Register new gdbarch data.
3707
05c309a8
SM
37082020-07-21 Simon Marchi <simon.marchi@efficios.com>
3709
3710 * linux-nat.c (stopped_pids): Make static.
3711
d1fd641e
SM
37122020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3713
3714 PR ada/26235
3715 * gdbtypes.c (ada_discrete_type_low_bound,
3716 ada_discrete_type_high_bound): Handle undefined bounds.
3717
1de14d77
KR
37182020-07-21 Kamil Rytarowski <n54@gmx.com>
3719
3720 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3721 declaration.
3722 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3723 function.
3724
ed810cc7
JB
37252020-07-20 John Baldwin <jhb@FreeBSD.org>
3726
3727 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3728 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3729 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3730 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3731 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3732 method.
3733
ae5369e7
LC
37342020-07-20 Ludovic Courtès <ludo@gnu.org>
3735
3736 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3737 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3738 which are deprecated in Guile 3.0.
3739 * configure.ac (try_guile_versions): Add "guile-3.0".
3740 * configure (try_guile_versions): Regenerate.
3741 * NEWS: Update entry.
3742
68cf161c
LC
37432020-07-20 Ludovic Courtès <ludo@gnu.org>
3744 Doug Evans <dje@google.com>
3745
3746 PR gdb/21104
3747 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3748 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3749 USING_GUILE_BEFORE_2_2.
3750 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3751 Change type to 'scm_t_port_type *'.
3752 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3753 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3754 parameter and honor it. Update callers.
3755 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3756 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3757 functions.
3758 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3759 USING_GUILE_BEFORE_2_2.
3760 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3761 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3762 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3763 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3764 and 'SCM_PORT_TYPE'.
3765 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3766 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3767 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3768 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3769 [!USING_GUILE_BEFORE_2_2]: New functions.
3770 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3771 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3772 'gdbscm_memory_port_read'.
3773 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3774 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3775 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3776 function.
3777 (ioscm_init_memory_port): Remove.
3778 (ioscm_init_memory_port_stream): New function
3779 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3780 function.
3781 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3782 Return scm_from_uint (0).
3783 (gdbscm_set_memory_port_read_buffer_size_x)
3784 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3785 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3786 Return scm_from_uint (0).
3787 (gdbscm_set_memory_port_write_buffer_size_x)
3788 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3789 * configure.ac (try_guile_versions): Add "guile-2.2".
3790 * configure: Regenerate.
3791 * NEWS: Add entry.
3792
aee91db3
TT
37932020-07-18 Tom Tromey <tom@tromey.com>
3794
3795 * linux-nat.c (linux_multi_process): Remove.
3796 (linux_nat_target::supports_multi_process): Return true.
3797
0e267416
AB
37982020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3799
3800 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3801 (riscv_lookup_target_description): Return pointer out of
3802 unique_ptr.
3803 * target-descriptions.c (allocate_target_description): Add
3804 comment.
3805 (target_desc_deleter::operator()): Likewise.
3806 * target-descriptions.h (struct target_desc_deleter): Moved to
3807 gdbsupport/tdesc.h.
3808 (target_desc_up): Likewise.
3809
f80c8ec4
TT
38102020-07-17 Tom Tromey <tromey@adacore.com>
3811
3812 * linux-nat.c (linux_nat_target::supports_non_stop)
3813 (linux_nat_target::always_non_stop_p): Use "true".
3814 (linux_nat_target::supports_disable_randomization): Use "true" and
3815 "false".
3816
d0ce17d8
CT
38172020-07-16 Caroline Tice <cmtice@google.com>
3818
3819 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3820 (RNGLIST_HEADER_SIZE64): New constant definition.
3821 (struct dwop_section_names): Add rnglists_dwo.
3822 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3823 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3824 (struct dwo_sections): Add rnglists field.
3825 (read_attribut_reprocess): Add tag parameter.
3826 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3827 (cu_debug_rnglists_section): New function (decl & definition).
3828 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3829 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3830 die whose range is being checked; get rnglist section from
3831 cu_debug_rnglists_section, to get from either objfile or dwo file as
3832 appropriate. Add cases for DW_RLE_base_addressx,
3833 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3834 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3835 test inside if-condition and updating complaint message.
3836 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3837 dwarf2_rnglists_process.
3838 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3839 dwarf2_ranges_process.
3840 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3841 need_ranges_base and update comment appropriately. Also pass die tag
3842 to dwarf2_ranges_read.
3843 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3844 need_ranges_base and update comment appropriately. Also pass die tag
3845 to dwarf2_ranges_process.
3846 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3847 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3848 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3849 need_ranges_base and update comment appropriately. Also pass die tag
3850 to read_attribute_reprocess and dwarf2_ranges_read.
3851 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3852 and update function comment appropriately.
3853 (read_loclist_index): Call read_loclists_rnglists_header instead of
3854 read_loclist_header.
3855 (read_rnglist_index): New function.
3856 (read_attribute_reprocess): Add tag parameter. Add code for
3857 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3858 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3859
3dcc261c
AB
38602020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3861
3862 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3863 being resolved.
3864
ccb9eba6
AB
38652020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3866
3867 * arch-utils.c (show_architecture): Update formatting of messages.
3868
cf88be68
SM
38692020-07-12 Simon Marchi <simon.marchi@efficios.com>
3870
3871 * gdbtypes.h (struct type) <bounds>: Handle array and string
3872 types.
3873 * ada-lang.c (assign_aggregate): Use type::bounds on
3874 array/string type.
3875 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3876 * c-varobj.c (c_number_of_children): Likewise.
3877 (c_describe_child): Likewise.
3878 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3879 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3880 (f_type_print_base): Likewise.
3881 * f-valprint.c (f77_array_offset_tbl): Likewise.
3882 (f77_get_upperbound): Likewise.
3883 (f77_print_array_1): Likewise.
3884 * guile/scm-type.c (gdbscm_type_range): Likewise.
3885 * m2-typeprint.c (m2_array): Likewise.
3886 (m2_is_long_set_of_type): Likewise.
3887 * m2-valprint.c (get_long_set_bounds): Likewise.
3888 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3889 * python/py-type.c (typy_range): Likewise.
3890 * rust-lang.c (rust_internal_print_type): Likewise.
3891 * type-stack.c (type_stack::follow_types): Likewise.
3892 * valarith.c (value_subscripted_rvalue): Likewise.
3893 * valops.c (value_cast): Likewise.
3894
509971ae
SM
38952020-07-12 Simon Marchi <simon.marchi@efficios.com>
3896
3897 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3898 callers to use the equivalent accessor methods.
3899
107406b7
SM
39002020-07-12 Simon Marchi <simon.marchi@efficios.com>
3901
3902 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3903 (struct type) <bit_stride>: New method.
3904 (TYPE_BIT_STRIDE): Remove.
3905 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3906
bb789949
SM
39072020-07-12 Simon Marchi <simon.marchi@efficios.com>
3908
3909 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3910 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3911 callers to use the equivalent accessor methods instead.
3912
39498edb
SM
39132020-07-12 Simon Marchi <simon.marchi@efficios.com>
3914
3915 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3916 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3917 callers to use the equivalent accessor methods instead.
3918
3b606f38
SM
39192020-07-12 Simon Marchi <simon.marchi@efficios.com>
3920
3921 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3922 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3923 to use dynamic_prop::kind.
3924
064d9cb9
SM
39252020-07-12 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3928 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3929 to get the bound property's kind and check against
3930 PROP_UNDEFINED.
3931
5537ddd0
SM
39322020-07-12 Simon Marchi <simon.marchi@efficios.com>
3933
3934 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3935 all callers to use type::range_bounds followed by
3936 dynamic_prop::{low,high}.
3937
8c2e4e06
SM
39382020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3939
3940 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3941 const_val, set_const_val, baton, set_locexpr, set_loclist,
3942 set_addr_offset, variant_parts, set_variant_parts,
3943 original_type, set_original_type>: New methods.
3944 <kind>: Rename to...
3945 <m_kind>: ... this. Update all users to use the new methods
3946 instead.
3947 <data>: Rename to...
3948 <m_data>: ... this. Update all users to use the new methods
3949 instead.
3950
7c6f2712
SM
39512020-07-12 Simon Marchi <simon.marchi@efficios.com>
3952
3953 * gdbtypes.c (get_discrete_bounds): Return failure if
3954 the range type's bounds are not both defined and constant
3955 values.
3956 (get_array_bounds): Update comment. Remove undefined bound check.
3957
599088e3
SM
39582020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3959
3960 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3961 the type::bounds method directly.
3962
c4dfcb36
SM
39632020-07-12 Simon Marchi <simon.marchi@efficios.com>
3964
3965 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3966 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3967 are used to set the range type's bounds to use set_bounds.
3968
0a278aa7
PW
39692020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3970
3971 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3972
cce20f10
PA
39732020-07-10 Pedro Alves <pedro@palves.net>
3974
3975 * gdbthread.h (inferior_ref): Define.
3976 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3977 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3978 * thread.c
3979 (scoped_restore_current_thread::restore):
3980 Adjust to gdb::ref_ptr.
3981 (scoped_restore_current_thread::~scoped_restore_current_thread):
3982 Remove manual decref handling.
3983 (scoped_restore_current_thread::scoped_restore_current_thread):
3984 Adjust to use
3985 inferior_ref::new_reference/thread_info_ref::new_reference.
3986 Incref the thread before calling get_frame_id instead of after.
3987 Let TARGET_CLOSE_ERROR propagate.
3988
6d7aa592
PA
39892020-07-10 Pedro Alves <pedro@palves.net>
3990
3991 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3992 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3993 NOT_AVAILABLE_ERROR.
3994 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3995 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3996
b3e3a4c1
SM
39972020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3998 Pedro Alves <pedro@palves.net>
3999
4000 PR gdb/26199
4001 * infrun.c (threads_are_resumed_pending_p): Delete.
4002 (do_target_wait): Remove threads_are_executing and
4003 threads_are_resumed_pending_p checks from the inferior_matches
4004 lambda. Update comments.
4005
d6cc5d98
PA
40062020-07-10 Pedro Alves <pedro@palves.net>
4007
4008 PR gdb/26199
4009 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4010 executing threads.
4011
7d3badc6
PA
40122020-07-10 Pedro Alves <pedro@palves.net>
4013
4014 PR gdb/26199
4015 * infrun.c (handle_no_resumed): Handle multiple targets.
4016
42bd97a6
PA
40172020-07-10 Pedro Alves <pedro@palves.net>
4018
4019 PR gdb/26199
4020 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4021 target_is_async_p.
4022
43667cc6
PA
40232020-07-10 Pedro Alves <pedro@palves.net>
4024
4025 PR gdb/26199
4026 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4027 threads, not all threads.
4028
96118d11
PA
40292020-07-10 Pedro Alves <pedro@palves.net>
4030
4031 PR gdb/26199
4032 * remote.c (remote_target::open_1): Pass remote target pointer as
4033 data to create_async_event_handler.
4034 (remote_async_inferior_event_handler): Mark async event handler
4035 before returning if the remote target still has either pending
4036 events or unacknowledged notifications.
4037
54904d81
JB
40382020-07-10 John Baldwin <jhb@FreeBSD.org>
4039
4040 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4041 declaration.
4042 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4043 function.
4044
f37e5866
JB
40452020-07-09 John Baldwin <jhb@FreeBSD.org>
4046
4047 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4048 inferior_ptid.
4049
fc238d4a
JB
40502020-07-09 John Baldwin <jhb@FreeBSD.org>
4051
4052 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4053 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4054 AT_FREEBSD_PS_STRINGS.
4055
6e2469ff
HD
40562020-07-08 Hannes Domani <ssbssa@yahoo.de>
4057
4058 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4059 of debugfile path on Windows.
4060
d1076c41
JB
40612020-07-08 John Baldwin <jhb@FreeBSD.org>
4062
4063 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4064 argument to 'data'.
4065
15f3b077
TT
40662020-07-08 Tom Tromey <tromey@adacore.com>
4067
4068 * ada-lang.c (ada_exception_message_1): Use read_memory.
4069
9fc501fd
AB
40702020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4071
4072 PR python/22748
4073 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4074 special handling for inline frames.
4075 * findvar.c (value_of_register_lazy): Skip inline frames when
4076 creating lazy register values.
4077 * frame.c (frame_id_computed_p): Delete definition.
4078 * frame.h (frame_id_computed_p): Delete declaration.
4079
64cb3757
AB
40802020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4081
4082 * NEWS: Mention additions to Python API.
4083 * python/py-arch.c (archpy_register_groups): New function.
4084 (arch_object_methods): Add 'register_groups' method.
4085 * python/py-registers.c (reggroup_iterator_object): New struct.
4086 (reggroup_object): New struct.
4087 (gdbpy_new_reggroup): New function.
4088 (gdbpy_reggroup_to_string): New function.
4089 (gdbpy_reggroup_name): New function.
4090 (gdbpy_reggroup_iter): New function.
4091 (gdbpy_reggroup_iter_next): New function.
4092 (gdbpy_new_reggroup_iterator): New function
4093 (gdbpy_initialize_registers): Register new types.
4094 (reggroup_iterator_object_type): Define new Python type.
4095 (gdbpy_reggroup_getset): New static global.
4096 (reggroup_object_type): Define new Python type.
4097 * python/python-internal.h
4098
0f767f94
AB
40992020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4100
4101 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4102 * python/py-arch.c (archpy_registers): New function.
4103 (arch_object_methods): Add 'registers' method.
4104 * python/py-registers.c: New file.
4105 * python/python-internal.h
4106 (gdbpy_new_register_descriptor_iterator): Declare.
4107 (gdbpy_initialize_registers): Declare.
4108 * python/python.c (do_start_initialization): Call
4109 gdbpy_initialize_registers.
4110 * NEWS: Mention additions to the Python API.
4111
87dbc774
AB
41122020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4113
4114 * NEWS: Mention new Python API method.
4115 * python/py-unwind.c (pending_framepy_architecture): New function.
4116 (pending_frame_object_methods): Add architecture method.
4117
3bc98c0c
AB
41182020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4119
4120 * gdbarch.c: Regenerate.
4121 * gdbarch.h: Regenerate.
4122 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4123 (gdbarch_data): Use internal_error for the case where
4124 deprecated_set_gdbarch_data was originally needed.
4125 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4126 and use passed in obstack.
4127 (libunwind_frame_set_descr): Should no longer get back NULL from
4128 gdbarch_data.
4129 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4130 type.
4131 * user-regs.c (user_regs_init): Update parameters, and use passed
4132 in obstack.
4133 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4134 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4135
d8cc8af6
TV
41362020-07-06 Tom de Vries <tdevries@suse.de>
4137
4138 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4139 End-Of-Sequence in lte_is_less_than.
4140 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4141 "gdb: Don't reorder line table entries too much when sorting".
4142
947f7597
TV
41432020-07-06 Tom de Vries <tdevries@suse.de>
4144
4145 PR tui/26205
4146 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4147
1e7c1b22
TV
41482020-07-05 Tom de Vries <tdevries@suse.de>
4149
4150 PR build/26187
4151 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4152 std::uncaught_exceptions instead of deprecated
4153 std::uncaught_exception.
4154
a36158ec
SM
41552020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4156
4157 * macroexp.h (macro_stringify): Return
4158 gdb::unique_xmalloc_ptr<char>.
4159 * macroexp.c (macro_stringify): Likewise.
4160 * macrotab.c (fixup_definition): Update.
4161
14d960c8
SM
41622020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4163
4164 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4165 (lex_one_token): Update.
4166 * macroexp.c (struct macro_buffer) <release>: Return
4167 gdb::unique_xmalloc_ptr<char>.
4168 (macro_stringify): Update.
4169 (macro_expand): Update.
4170 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4171 * macroexp.h (macro_expand_next): Likewise.
4172
211d5b1c
SM
41732020-07-02 Simon Marchi <simon.marchi@efficios.com>
4174
4175 * macroexp.h (macro_lookup_ftype): Remove.
4176 (macro_expand, macro_expand_once, macro_expand_next): Remove
4177 lookup function parameters, add scope parameter.
4178 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4179 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4180 * macroscope.h (standard_macro_lookup): Change parameter type
4181 to macro_scope.
4182 * macroscope.c (standard_macro_lookup): Likewise.
4183 * c-exp.y (lex_one_token): Update.
4184 * macrocmd.c (macro_expand_command): Likewise.
4185 (macro_expand_once_command): Likewise.
4186
b1a35af2
SM
41872020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4188
4189 * inf-loop.c (inferior_event_handler): Remove client_data param.
4190 * inf-loop.h (inferior_event_handler): Likewise.
4191 * infcmd.c (step_1): Adjust.
4192 * infrun.c (proceed): Adjust.
4193 (fetch_inferior_event): Remove client_data param.
4194 (infrun_async_inferior_event_handler): Adjust.
4195 * infrun.h (fetch_inferior_event): Remove `void *` param.
4196 * linux-nat.c (handle_target_event): Adjust.
4197 * record-btrace.c (record_btrace_handle_async_inferior_event):
4198 Adjust.
4199 * record-full.c (record_full_async_inferior_event_handler):
4200 Adjust.
4201 * remote.c (remote_async_inferior_event_handler): Adjust.
4202
1cdf9e33
TT
42032020-07-01 Tom Tromey <tom@tromey.com>
4204
4205 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4206 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4207
32c1e210
TT
42082020-07-01 Tom Tromey <tom@tromey.com>
4209
4210 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4211 tui_gen_win_info.
4212 (tui_win_info::make_window): Merge with
4213 tui_gen_win_info::make_window.
4214 (tui_win_info::make_visible): Move from tui_gen_win_info.
4215 * tui/tui-win.c (tui_win_info::max_width): Move from
4216 tui_gen_win_info.
4217 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4218 type.
4219 <window_factory>: Likewise.
4220 * tui/tui-layout.c (tui_win_info::resize): Move from
4221 tui_gen_win_info.
4222 (make_standard_window): Change return type.
4223 (get_locator_window, tui_get_window_by_name): Likewise.
4224 (tui_layout_window::apply): Remove a cast.
4225 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4226 (struct tui_win_info): Merge with tui_gen_win_info.
4227 (struct tui_gen_win_info): Remove.
4228
a30cb6da
TT
42292020-07-01 Tom Tromey <tom@tromey.com>
4230
4231 * tui/tui-stack.h (struct tui_locator_window): Derive from
4232 tui_win_info.
4233 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4234 <can_box>: New method.
4235
1eb2161f
TT
42362020-07-01 Tom Tromey <tom@tromey.com>
4237
4238 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4239
7134f2eb
TT
42402020-07-01 Tom Tromey <tom@tromey.com>
4241
4242 * tui/tui-regs.c (tui_data_window::display_registers_from)
4243 (tui_data_window::display_registers_from)
4244 (tui_data_window::first_data_item_displayed)
4245 (tui_data_window::delete_data_content_windows): Update.
4246 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4247 Remove.
4248 (tui_data_window::check_register_values): Update.
4249 (tui_data_item_window::rerender): Add parameters. Update.
4250 (tui_data_item_window::refresh_window): Remove.
4251 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4252 virtual.
4253 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4254 tui_gen_win_info.
4255 <refresh_window, max_height, min_height>: Remove.
4256 <rerender>: Add parameters.
4257 <x, y, visible>: New members.
4258 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4259 <m_item_width>: New member.
4260
22b7b041
TT
42612020-07-01 Tom Tromey <tom@tromey.com>
4262
4263 * tui/tui-regs.c (tui_data_window::show_register_group)
4264 (tui_data_window::check_register_values): Update.
4265 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4266 from item_no.
4267
c9753adb
TT
42682020-07-01 Tom Tromey <tom@tromey.com>
4269
4270 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4271 useless "if".
4272
9ab26b4a
TT
42732020-07-01 Tom Tromey <tom@tromey.com>
4274
4275 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4276 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4277
e555083f
TT
42782020-07-01 Tom Tromey <tom@tromey.com>
4279
4280 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4281 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4282 (struct tui_line_or_address): Move from tui-data.h.
4283 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4284 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4285 (tui_cmd_window, tui_source_window_base, tui_source_window)
4286 (tui_disasm_window): Don't declare.
4287 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4288 to tui-winsource.h.
4289 (SINGLE_KEY): Move to tui-stack.c.
4290
7a02bab7
TT
42912020-07-01 Tom Tromey <tom@tromey.com>
4292
4293 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4294 std::string.
4295 * tui/tui-regs.c (class tab_expansion_file): New.
4296 (tab_expansion_file::write): New method.
4297 (tui_register_format): Change return type. Use
4298 tab_expansion_file.
4299 (tui_get_register, tui_data_window::display_registers_from)
4300 (tui_data_item_window::rerender): Update.
4301 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4302 * tui/tui-io.c (tui_expand_tabs): Remove.
4303
ea68593b
TT
43042020-07-01 Tom Tromey <tom@tromey.com>
4305
4306 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4307
a8caed5d
FS
43082020-07-01 Fangrui Song <maskray@google.com>
4309
4310 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4311
9cdf9820
AKS
43122020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4313
4314 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4315 forms for DW_AT_associated and DW_AT_allocated attributes,
4316 which is already checked in function attr_to_dynamic_prop.
4317
a1520ad8
TT
43182020-06-30 Tom Tromey <tromey@adacore.com>
4319
4320 * dwarf2/read.c (quirk_rust_enum): Correctly call
4321 alloc_rust_variant for default-less enum.
4322
5ac58899
TT
43232020-06-30 Tom Tromey <tromey@adacore.com>
4324
4325 PR build/26183:
4326 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4327 gdb::to_string.
4328
19b187a9
SM
43292020-06-29 Simon Marchi <simon.marchi@efficios.com>
4330
4331 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4332 * gdbarch.h: Re-generate.
4333
cd4c4c07
TT
43342020-06-28 Tom Tromey <tom@tromey.com>
4335
4336 * command.h (cmd_types): Remove.
4337 (cmd_type): Don't declare.
4338 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4339 typedef.
4340 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4341 * cli/cli-decode.c (cmd_type): Remove.
4342
05779d57
PA
43432020-06-27 Pedro Alves <palves@redhat.com>
4344
4345 * fork-child.c (prefork_hook): Adjust.
4346 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4347 Delete.
4348 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4349 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4350 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4351 Remove declarations.
4352 (struct inferior) <set_tty, tty>: New methods.
4353 (struct inferior) <terminal>: Rename to ...
4354 (struct inferior) <m_terminal>: ... this and make private.
4355 * main.c (captured_main_1): Adjust.
4356 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4357 (mi_cmd_inferior_tty_show): Adjust.
4358 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4359 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4360
1776e3e5
NA
43612020-06-26 Nick Alcock <nick.alcock@oracle.com>
4362
4363 * configure.ac: Add --enable-libctf: handle --disable-static
4364 properly.
4365 * acinclude.m4: sinclude ../config/enable.m4.
4366 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4367 (LIBCTF): Substitute in.
4368 (CTF_DEPS): New, likewise.
4369 (CLIBS): libctf needs symbols from libbfd: move earlier.
4370 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4371 flags.
4372 * ctfread.c: Surround in ENABLE_LIBCTF.
4373 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4374 * configure: Regenerate.
4375 * config.in: Likewise.
4376
58373b80
SM
43772020-06-25 Simon Marchi <simon.marchi@efficios.com>
4378
4379 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4380
277474ee
SM
43812020-06-25 Simon Marchi <simon.marchi@efficios.com>
4382
4383 * inferior.h (struct inferior) <terminal>: Change type to
4384 gdb::unique_xmalloc_ptr<char>.
4385 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4386 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4387 field, adjust to unique pointer.
4388 (get_inferior_io_terminal): Adjust to unique pointer.
4389
6d74da72
AB
43902020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4391
4392 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4393 registers, not just the known core set of registers.
4394
2e52d038
AB
43952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4396
4397 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4398 fflags, frm, and fcsr registers.
4399 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4400 restore groups.
4401 (riscv_tdesc_unknown_reg): New function.
4402 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4403 tdesc_use_registers.
4404 * riscv-tdep.h (struct gdbarch_tdep): Add
4405 unknown_csrs_first_regnum, unknown_csrs_count,
4406 duplicate_fflags_regnum, duplicate_frm_regnum, and
4407 duplicate_fcsr_regnum fields.
4408
be64fd07
AB
44092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4410
4411 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4412 callback, use the callback (when not null) to help number unknown
4413 registers.
4414 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4415 (tdesc_use_registers): Add extra parameter to declaration.
4416
3b9fce96
AB
44172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4418
4419 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4420 in the file.
4421 (class riscv_pending_register_alias): Likewise.
4422 (riscv_register_feature::register_info): Change 'required_p' field
4423 to 'required', and change its type. Add 'check' member function.
4424 (riscv_register_feature::register_info::check): Define new member
4425 function.
4426 (riscv_xreg_feature): Change initialisation of 'required' field.
4427 (riscv_freg_feature): Likewise.
4428 (riscv_virtual_feature): Likewise.
4429 (riscv_csr_feature): Likewise.
4430 (riscv_check_tdesc_feature): Take extra parameter, the csr
4431 tdesc_feature, rewrite the function to use the new
4432 riscv_register_feature::register_info::check function.
4433 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4434
865bad26
AB
44352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4436
4437 * features/Makefile: Remove all references to the deleted files
4438 below.
4439 * features/riscv/32bit-csr.c: Deleted.
4440 * features/riscv/32bit-csr.xml: Deleted.
4441 * features/riscv/64bit-csr.c: Deleted.
4442 * features/riscv/64bit-csr.xml: Deleted.
4443 * features/riscv/rebuild-csr-xml.sh: Deleted.
4444
ed69cbc8
AB
44452020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4446
4447 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4448 whitespace error for declaration of names member variable.
4449 (struct riscv_register_feature): Add new prefer_first_name member
4450 variable, and fix whitespace error in declaration of registers.
4451 (riscv_xreg_feature): Initialize prefer_first_name field.
4452 (riscv_freg_feature): Likewise.
4453 (riscv_virtual_feature): Likewise.
4454 (riscv_csr_feature): Likewise.
4455 (riscv_register_name): Expand on comments. Remove register name
4456 modifications for CSR and virtual registers.
4457
4445e8f5
AB
44582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4459
4460 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4461 errors.
4462
767a879e
AB
44632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4464
4465 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4466 riscv-opc.h.
4467 (class riscv_pending_register_alias): New class.
4468 (riscv_check_tdesc_feature): Take vector of pending aliases and
4469 populate it as appropriate.
4470 (riscv_setup_register_aliases): Delete.
4471 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4472 to riscv_check_tdesc_feature in all cases. Use the vector to
4473 create the register aliases.
4474
bb6e55f3
RO
44752020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4476
4477 * sol2-tdep.c (sol2_static_transform_name): Remove.
4478 (sol2_init_abi): Don't register it.
4479 * gdbarch.sh (static_transform_name): Remove.
4480 * gdbarch.c, gdbarch.h: Regenerate.
4481
4482 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4483 gdbarch_static_transform_name.
4484 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4485 * stabsread.c (define_symbol) <'X'>: Remove.
4486 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4487 handling.
4488 <'V'>: Likewise.
4489 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4490 <'S'>: Remove call to gdbarch_static_transform_name.
4491
c6d36836
RO
44922020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4493
4494 * procfs.c (procfs_pre_trace): New function.
4495 (procfs_target::create_inferior): Pass it to fork_inferior.
4496
a7e6196b
RO
44972020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4498
4499 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4500 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4501 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4502 sol2-tdep.o, sparc-sol2-tdep.o.
4503 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4504 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4505 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4506 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4507
d412e696
RO
45082020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4509
4510 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4511 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4512 Call sol2_init_abi.
4513 Remove calls to set_gdbarch_skip_solib_resolver,
4514 set_gdbarch_core_pid_to_str.
4515 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4516 (i386_sol2_static_transform_name): Remove.
4517 (i386_sol2_init_abi): Call sol2_init_abi.
4518 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4519 set_gdbarch_static_transform_name,
4520 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4521 Use sol2_sigtramp_p.
4522 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4523 (sol2_sigtramp_p): New function.
4524 (sol2_static_transform_name): New function.
4525 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4526 (sol2_init_abi): New function.
4527 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4528 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4529 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4530 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4531 (sparc_sol2_static_transform_name): Remove.
4532 (sparc32_sol2_init_abi): Call sol2_init_abi.
4533 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4534 set_gdbarch_static_transform_name,
4535 set_gdbarch_skip_solib_resolver,
4536 set_gdbarch_core_pid_to_str.
4537 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4538 (sparc_sol2_static_transform_name): Remove
4539 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4540 call sol2_sigtramp_p.
4541 (sparc64_sol2_init_abi): Call sol2_init_abi.
4542 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4543 set_gdbarch_static_transform_name,
4544 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4545
a8654e7d
PW
45462020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4547
4548 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4549 * exec.c (validate_exec_file): If from_tty, set both
4550 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4551 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4552 and from_tty, unconditionally ask a confirmation.
4553
caa7fd04
AB
45542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4555
4556 * target-descriptions.c (tdesc_architecture_name): Protect against
4557 NULL pointer dereference.
4558 (maint_print_xml_tdesc_cmd): New function.
4559 (_initialize_target_descriptions): Register new 'maint print
4560 xml-tdesc' command and give it the filename completer.
4561 * NEWS: Mention new 'maint print xml-tdesc' command.
4562
fbf42f4e
AB
45632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4564
4565 * target-descriptions.c (class tdesc_compatible_info): New class.
4566 (struct target_desc): Change type of compatible vector.
4567 (tdesc_compatible_p): Update for change in type of
4568 target_desc::compatible.
4569 (tdesc_compatible_info_list): New function.
4570 (tdesc_compatible_info_arch_name): New function.
4571 (tdesc_add_compatible): Update for change in type of
4572 target_desc::compatible.
4573 (print_c_tdesc::visit_pre): Likewise.
4574
20821f4e
AB
45752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4576
4577 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4578 whitespace to underscore.
4579 (maint_print_c_tdesc_cmd): Use fake filename for target
4580 descriptions that came from the target.
4581 (_initialize_target_descriptions): Add filename command completion
4582 for 'maint print c-tdesc'.
4583
1fb5ee62
SM
45842020-06-23 Simon Marchi <simon.marchi@efficios.com>
4585
4586 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4587 lines.
4588
fc3ecb3e
SM
45892020-06-23 Simon Marchi <simon.marchi@efficios.com>
4590
4591 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4592 lines.
4593 (dwarf2_find_location_expression): Likewise.
4594 (call_site_parameter_matches): Likewise.
4595 (dwarf2_compile_expr_to_ax): Likewise.
4596 (disassemble_dwarf_expression): Likewise.
4597 (loclist_describe_location): Likewise.
4598
236ef034
PA
45992020-06-23 Pedro Alves <palves@redhat.com>
4600
4601 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4602 progspace-and-thread.h. Include scoped-mock-context.h instead.
4603 (register_to_value_test): Use scoped_mock_context.
4604 * regcache.c: Include "scoped-mock-context.h".
4605 (cooked_read_test): Don't error out if a target is already pushed.
4606 Use scoped_mock_context. Adjust.
4607 * scoped-mock-context.h: New file.
4608
39e7ecca
AB
46092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4610
4611 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4612 initializer.
4613 (ada_language::is_string_type_p): New member function.
4614 * c-lang.c (c_language_data): Delete la_is_string_type_p
4615 initializer.
4616 (cplus_language_data): Likewise.
4617 (asm_language_data): Likewise.
4618 (minimal_language_data): Likewise.
4619 * d-lang.c (d_language_data): Likewise.
4620 * f-lang.c (f_is_string_type_p): Delete function, implementation
4621 moved to f_language::is_string_type_p.
4622 (f_language_data): Delete la_is_string_type_p initializer.
4623 (f_language::is_string_type_p): New member function,
4624 implementation from f_is_string_type_p.
4625 * go-lang.c (go_is_string_type_p): Delete function, implementation
4626 moved to go_language::is_string_type_p.
4627 (go_language_data): Delete la_is_string_type_p initializer.
4628 (go_language::is_string_type_p): New member function,
4629 implementation from go_is_string_type_p.
4630 * language.c (language_defn::is_string_type_p): Define new member
4631 function.
4632 (default_is_string_type_p): Make static, add comment copied from
4633 header file.
4634 (unknown_language_data): Delete la_is_string_type_p initializer.
4635 (unknown_language::is_string_type_p): New member function.
4636 (auto_language_data): Delete la_is_string_type_p initializer.
4637 (auto_language::is_string_type_p): New member function.
4638 * language.h (language_data): Delete la_is_string_type_p field.
4639 (language_defn::is_string_type_p): Declare new function.
4640 (default_is_string_type_p): Delete desclaration, move comment to
4641 definition.
4642 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4643 moved to m2_language::is_string_type_p.
4644 (m2_language_data): Delete la_is_string_type_p initializer.
4645 (m2_language::is_string_type_p): New member function,
4646 implementation from m2_is_string_type_p.
4647 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4648 initializer.
4649 * opencl-lang.c (opencl_language_data): Likewise.
4650 * p-lang.c (pascal_is_string_type_p): Delete function,
4651 implementation moved to pascal_language::is_string_type_p.
4652 (pascal_language_data): Delete la_is_string_type_p initializer.
4653 (pascal_language::is_string_type_p): New member function,
4654 implementation from pascal_is_string_type_p.
4655 * rust-lang.c (rust_is_string_type_p): Delete function,
4656 implementation moved to rust_language::is_string_type_p.
4657 (rust_language_data): Delete la_is_string_type_p initializer.
4658 (rust_language::is_string_type_p): New member function,
4659 implementation from rust_is_string_type_p.
4660 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4661 is_string_type_p.
4662
4ffc13fb
AB
46632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4664
4665 * ada-lang.c (ada_language_data): Delete la_print_typedef
4666 initializer.
4667 (ada_language::print_typedef): New member function.
4668 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4669 (cplus_language_data): Likewise.
4670 (asm_language_data): Likewise.
4671 (minimal_language_data): Likewise.
4672 * d-lang.c (d_language_data): Likewise.
4673 * f-lang.c (f_language_data): Likewise.
4674 (f_language::print_typedef): New member function.
4675 * go-lang.c (go_language_data): Delete la_print_typedef
4676 initializer.
4677 * language.c (language_defn::print_typedef): Define member
4678 function.
4679 (unknown_language_data): Delete la_print_typedef initializer.
4680 (unknown_language::print_typedef): New member function.
4681 (auto_language_data): Delete la_print_typedef initializer.
4682 (auto_language::print_typedef): New member function.
4683 * language.h (language_data): Delete la_print_typedef field.
4684 (language_defn::print_typedef): Declare new member function.
4685 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4686 (default_print_typedef): Delete declaration.
4687 * m2-lang.c (m2_language_data): Delete la_print_typedef
4688 initializer.
4689 (m2_language::print_typedef): New member function.
4690 * objc-lang.c (objc_language_data): Delete la_print_typedef
4691 initializer.
4692 * opencl-lang.c (opencl_language_data): Likewise.
4693 * p-lang.c (pascal_language_data): Likewise.
4694 (pascal_language::print_typedef): New member function.
4695 * rust-lang.c (rust_print_typedef): Delete function,
4696 implementation moved to rust_language::print_typedef.
4697 (rust_language): Delete la_print_typedef initializer.
4698 (rust_language::print_typedef): New member function,
4699 implementation from rust_print_typedef.
4700 * typeprint.c (default_print_typedef): Delete.
4701
d711ee67
AB
47022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4703
4704 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4705 (ada_language::printstr): New member function.
4706 * c-lang.c (c_language_data): Delete la_printstr initializer.
4707 (cplus_language_data): Likewise.
4708 (asm_language_data): Likewise.
4709 (minimal_language_data): Likewise.
4710 * d-lang.c (d_language_data): Likewise.
4711 * f-lang.c (f_printstr): Rename to f_language::printstr.
4712 (f_language_data): Delete la_printstr initializer.
4713 (f_language::printstr): New member function, implementation from
4714 f_printstr.
4715 * go-lang.c (go_language_data): Delete la_printstr initializer.
4716 * language.c (language_defn::printstr): Define new member
4717 function.
4718 (unk_lang_printstr): Delete.
4719 (unknown_language_data): Delete la_printstr initializer.
4720 (unknown_language::printstr): New member function.
4721 (auto_language_data): Delete la_printstr initializer.
4722 (auto_language::printstr): New member function.
4723 * language.h (language_data): Delete la_printstr field.
4724 (language_defn::printstr): Declare new member function.
4725 (LA_PRINT_STRING): Update call to printstr.
4726 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4727 (m2_language_data): Delete la_printstr initializer.
4728 (m2_language::printstr): New member function, implementation from
4729 m2_printstr.
4730 * objc-lang.c (objc_language_data): Delete la_printstr
4731 initializer.
4732 * opencl-lang.c (opencl_language_data): Likewise.
4733 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4734 (pascal_language_data): Delete la_printstr initializer.
4735 (pascal_language::printstr): New member function, implementation
4736 from pascal_printstr.
4737 * p-lang.h (pascal_printstr): Delete declaration.
4738 * rust-lang.c (rust_printstr): Update header comment.
4739 (rust_language_data): Delete la_printstr initializer.
4740 (rust_language::printstr): New member function.
4741
52b50f2c
AB
47422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4743
4744 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4745 (ada_language::printchar): New member function.
4746 * c-lang.c (c_language_data): Delete la_printchar initializer.
4747 (cplus_language_data): Likewise.
4748 (asm_language_data): Likewise.
4749 (minimal_language_data): Likewise.
4750 * d-lang.c (d_language_data): Likewise.
4751 * f-lang.c (f_printchar): Rename to f_language::printchar.
4752 (f_language_data): Delete la_printchar initializer.
4753 (f_language::printchar): New member function, implementation from
4754 f_printchar.
4755 * go-lang.c (go_language_data): Delete la_printchar initializer.
4756 * language.c (unk_lang_printchar): Delete.
4757 (language_defn::printchar): Define new member function.
4758 (unknown_language_data): Delete la_printchar initializer.
4759 (unknown_language::printchar): New member function.
4760 (auto_language_data): Delete la_printchar initializer.
4761 (auto_language::printchar): New member function.
4762 * language.h (language_data): Delete la_printchar field.
4763 (language_defn::printchar): Declare new member function.
4764 (LA_PRINT_CHAR): Update call to printchar.
4765 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4766 (m2_language::printchar): New member function.
4767 * objc-lang.c (objc_language_data): Delete la_printchar
4768 initializer.
4769 * opencl-lang.c (opencl_language_data): Likewise.
4770 * p-lang.c (pascal_language_data): Delete la_printchar
4771 initializer.
4772 (pascal_language::printchar): New member function.
4773 * rust-lang.c (rust_printchar): Rename to
4774 rust_language::printchar.
4775 (rust_language_data): Delete la_printchar initializer.
4776 (rust_language::printchar): New member function, implementation
4777 from rust_printchar.
4778
ec8cec5b
AB
47792020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4780
4781 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4782 (ada_language_data): Delete la_emitchar initializer.
4783 (ada_language::emitchar): New member function, implementation from
4784 emit_char.
4785 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4786 (cplus_language_data): Likewise.
4787 (asm_language_data): Likewise.
4788 (minimal_language_data): Likewise.
4789 * d-lang.c (d_language_data): Likewise.
4790 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4791 (f_language_data): Delete la_emitchar initializer.
4792 (f_language::emitchar): New member function, implementation from
4793 f_emit_char.
4794 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4795 * language.c (unk_lang_emit_char): Delete.
4796 (language_defn::emitchar): New member function definition.
4797 (unknown_language_data): Delete la_emitchar initializer.
4798 (unknown_language::emitchar): New member function.
4799 (auto_language_data): Delete la_emitchar initializer.
4800 (auto_language::emitchar): New member function.
4801 * language.h (language_data): Delete la_emitchar field.
4802 (language_defn::emitchar): New member field declaration.
4803 (LA_EMIT_CHAR): Update call to emitchar.
4804 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4805 (m2_language_data): Delete la_emitchar initializer.
4806 (m2_language::emitchar): New member function, implementation from
4807 m2_emit_char.
4808 * objc-lang.c (objc_language_data): Delete la_emitchar
4809 initializer.
4810 * opencl-lang.c (opencl_language_data): Likewise.
4811 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4812 (pascal_language_data): Delete la_emitchar initializer.
4813 (pascal_language::emitchar): New member function, implementation
4814 from pascal_emit_char.
4815 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4816 (rust_language_data): Delete la_emitchar initializer.
4817 (rust_language::emitchar): New member function, implementation
4818 from rust_emitchar.
4819
1bf9c363
AB
48202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4821
4822 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4823 (ada_language_data): Delete la_post_parser initializer.
4824 (ada_language::post_parser): New member function.
4825 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4826 (cplus_language_data): Likewise.
4827 (asm_language_data): Likewise.
4828 (minimal_language_data): Likewise.
4829 * d-lang.c (d_language_data): Likewise.
4830 * f-lang.c (f_language_data): Likewise.
4831 * go-lang.c (go_language_data): Likewise.
4832 * language.c (unknown_language_data): Likewise.
4833 (auto_language_data): Likewise.
4834 * language.h (language_data): Delete la_post_parser field.
4835 (language_defn::post_parser): New member function.
4836 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4837 * objc-lang.c (objc_language_data): Likewise.
4838 * opencl-lang.c (opencl_language_data): Likewise.
4839 * p-lang.c (pascal_language_data): Likewise.
4840 * parse.c (parse_exp_in_context): Update call to post_parser.
4841 (null_post_parser): Delete definition.
4842 * parser-defs.h (null_post_parser): Delete declaration.
4843 * rust-lang.c (rust_language_data): Delete la_post_parser
4844 initializer.
4845
87afa652
AB
48462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4847
4848 * ada-lang.c (parse): Rename to ada_language::parser.
4849 (ada_language_data): Delete la_parser initializer.
4850 (ada_language::parser): New member function, implementation from
4851 parse.
4852 * c-lang.c (c_language_data): Delete la_parser initializer.
4853 (cplus_language_data): Likewise.
4854 (asm_language_data): Likewise.
4855 (minimal_language_data): Likewise.
4856 * d-lang.c (d_language_data): Likewise.
4857 (d_language::parser): New member function.
4858 * f-lang.c (f_language_data): Delete la_parser initializer.
4859 (f_language::parser): New member function.
4860 * go-lang.c (go_language_data): Delete la_parser initializer.
4861 (go_language::parser): New member function.
4862 * language.c (unk_lang_parser): Delete.
4863 (language_defn::parser): Define new member function.
4864 (unknown_language_data): Delete la_parser initializer.
4865 (unknown_language::parser): New member function.
4866 (auto_language_data): Delete la_parser initializer.
4867 (auto_language::parser): New member function.
4868 * language.h (language_data): Delete la_parser field.
4869 (language_defn::parser): Declare new member function.
4870 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4871 (m2_language::parser): New member function.
4872 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4873 * opencl-lang.c (opencl_language_data): Likewise.
4874 * p-lang.c (pascal_language_data): Likewise.
4875 (pascal_language::parser): New member function.
4876 * parse.c (parse_exp_in_context): Update call to parser.
4877 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4878 (rust_language::parser): New member function.
4879
37825800
AB
48802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4881
4882 * top.c (print_gdb_configuration): Print --with-python-libdir
4883 configuration value.
4884
5b860c93
PW
48852020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4886
4887 * NEWS: Mention change to the alias command.
4888
cf00cd6f
PW
48892020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4890
4891 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4892 (alias_command_completer)
4893 (make_alias_options_def_group): New functions.
4894 (alias_opts, alias_option_defs): New struct and array.
4895 (alias_usage_error): Update usage.
4896 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4897 Use option framework.
4898 (_initialize_cli_cmds): Update alias command help.
4899 Update aliases command help.
4900 (show_user):
4901 Add NULL for new default_args lookup_cmd argument.
4902 (valid_command_p): Rename to validate_aliased_command.
4903 Add NULL for new default_args lookup_cmd argument. Verify that the
4904 aliased_command has no default args.
4905 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4906 (lookup_cmd_1, lookup_cmd): New argument default_args.
4907 (add_alias_cmd):
4908 Add NULL for new default_args lookup_cmd argument.
4909 (print_help_for_command): Show default args under the layout
4910 alias some_alias = some_aliased_cmd some_alias_default_arg.
4911 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4912 xfree default_args in destructor.
4913 * cli/cli-script.c (process_next_line, do_define_command):
4914 Add NULL for new default_args lookup_cmd argument.
4915 * command.h: Declare new default_args argument in lookup_cmd
4916 and lookup_cmd_1.
4917 * completer.c (complete_line_internal_1):
4918 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4919 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4920 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4921 Likewise.
4922 * infcmd.c (_initialize_infcmd): Likewise.
4923 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4924 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4925 * python/py-param.c (add_setshow_generic): Likewise.
4926 * remote.c (_initialize_remote): Likewise.
4927 * top.c (execute_command): Prepend default_args if command has some.
4928 (set_verbose):
4929 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4930 * tracepoint.c (validate_actionline, encode_actions_1):
4931 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4932
bd920864
TBA
49332020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4934
4935 * jit.c (jit_read_descriptor): Use bool as the return type.
4936 (jit_breakpoint_re_set_internal): Use bool as the return type.
4937 Invert the return value logic; return true if the jit breakpoint
4938 has been successfully initialized.
4939 (jit_inferior_init): Update the call to
4940 jit_breakpoint_re_set_internal.
4941
f8098322
PA
49422020-06-22 Pedro Alves <palves@redhat.com>
4943
4944 PR gdb/25939
4945 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4946 Use the current inferior instead. Don't return
4947 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4948 wait again.
4949 * sol-thread.c (sol_thread_target::wait): Don't reference
4950 inferior_ptid.
4951 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4952 (sol_update_thread_list_callback): Use the current inferior's pid
4953 instead of inferior_ptid.
4954
196535a6
RO
49552020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4956
4957 * procfs.c: Cleanup many comments.
4958
4959 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4960 (AFTER_WATCHFLAG): Replace by value.
4961
4962 (MAIN_PROC_NAME_FORMAT): Inline ...
4963 (create_procinfo): ... here.
4964
4965 (procfs_debug_inferior): Remove SYS_exec handling.
4966 (syscall_is_exec): Likewise.
4967 (procfs_set_exec_trap): Likewise.
4968
4969 (syscall_is_lwp_exit): Inline in callers.
4970 (syscall_is_exit): Likewise.
4971 (syscall_is_exec): Likewise.
4972 (syscall_is_lwp_create): Likewise.
4973
4974 (invalidate_cache): Remove #if 0 code.
4975
4976 (make_signal_thread_runnable): Remove.
4977 (procfs_target::resume): Remove #if 0 code.
4978
cf6f3e86
RO
49792020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4980
4981 PR gdb/25939
4982 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4983 call ...
4984 (procfs_target::create_inferior): ... here.
4985
48e9cc84
PW
49862020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4987
4988 * exec.c (validate_exec_file): Ensure the build-id is up to
4989 date by calling reopen_exec_file (that checks file timestamp
4990 to decide to re-read the file).
4991
3922b302
PA
49922020-06-18 Pedro Alves <palves@redhat.com>
4993
4994 PR gdb/25412
4995 * gdbthread.h (delete_thread, delete_thread_silent)
4996 (find_thread_ptid): Update comments.
4997 * thread.c (current_thread_): New global.
4998 (is_current_thread): Move higher, and reimplement.
4999 (inferior_thread): Reimplement.
5000 (set_thread_exited): Use bool. Add assertions.
5001 (add_thread_silent): Simplify thread-reuse handling by always
5002 calling delete_thread.
5003 (delete_thread): Remove intro comment.
5004 (find_thread_ptid): Skip exited threads.
5005 (switch_to_thread_no_regs): Write to current_thread_.
5006 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5007 INFERIOR_PTID. Clear current_thread_.
5008
6dbdab44
PA
50092020-06-18 Pedro Alves <palves@redhat.com>
5010
5011 * aix-thread.c (pd_update): Use switch_to_thread.
5012
2da4b788
PA
50132020-06-18 Pedro Alves <palves@redhat.com>
5014
5015 * ravenscar-thread.c (ravenscar_thread_target): Update.
5016 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5017 (ravenscar_thread_target::add_active_thread): ... this. Don't
5018 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5019 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5020
50838d1b
PA
50212020-06-18 Pedro Alves <palves@redhat.com>
5022
5023 * nat/windows-nat.c (current_windows_thread): Remove.
5024 * nat/windows-nat.h (current_windows_thread): Remove.
5025 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5026 Adjust.
5027 (display_selectors): Adjust to fetch the current
5028 windows_thread_info based on inferior_ptid.
5029 (fake_create_process): No longer write to current_windows_thread.
5030 (windows_nat_target::get_windows_debug_event):
5031 Don't set inferior_ptid or current_windows_thread.
5032 (windows_nat_target::wait): Adjust to not rely on
5033 current_windows_thread.
5034 (do_initial_windows_stuff): Now a method of windows_nat_target.
5035 Switch to the last_ptid thread.
5036 (windows_nat_target::attach): Adjust.
5037 (windows_nat_target::detach): Use switch_to_no_thread instead of
5038 writing to inferior_ptid directly.
5039 (windows_nat_target::create_inferior): Adjust.
5040
31ce04e9
PA
50412020-06-18 Pedro Alves <palves@redhat.com>
5042
5043 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5044
1ee1a363
PA
50452020-06-18 Pedro Alves <palves@redhat.com>
5046
5047 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5048 after creating it, instead of writing to inferior_ptid. Don't
5049 write to inferior_ptid.
5050
6d350754
PA
50512020-06-18 Pedro Alves <palves@redhat.com>
5052
5053 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5054
5d971d48
PA
50552020-06-18 Pedro Alves <palves@redhat.com>
5056
5057 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5058 it, instead of writing to inferior_ptid.
5059
86e57d1b
PA
50602020-06-18 Pedro Alves <palves@redhat.com>
5061
5062 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5063 to inferior_ptid.
5064
f2e1c129
PA
50652020-06-18 Pedro Alves <palves@redhat.com>
5066
5067 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5068 instead of writing to inferior_ptid directly.
5069
60db1b85
PA
50702020-06-18 Pedro Alves <palves@redhat.com>
5071
5072 * corelow.c (core_target::close): Use switch_to_no_thread instead
5073 of writing to inferior_ptid directly.
5074 (add_to_thread_list, core_target_open): Use switch_to_thread
5075 instead of writing to inferior_ptid directly.
5076
fe7d6a8d
PA
50772020-06-18 Pedro Alves <palves@redhat.com>
5078
5079 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5080 inferior_ptid.
5081 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5082 inferior_ptid.
5083 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5084 inferior_ptid directly.
5085 (darwin_nat_target::init_thread_list): Switch to thread, instead
5086 of writing to inferior_ptid.
5087 (darwin_nat_target::attach): Don't write to inferior_ptid.
5088 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5089
975f8708
PA
50902020-06-18 Pedro Alves <palves@redhat.com>
5091
5092 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5093 thread.
5094 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5095 Instead use switch_to_thread.
5096 (gnu_nat_target::detach): Use switch_to_no_thread
5097 instead of writing to inferior_ptid directly. Used passed-in
5098 inferior instead of looking up the inferior by pid.
5099
1a204730
PA
51002020-06-18 Pedro Alves <palves@redhat.com>
5101
5102 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5103 inferior_ptid.
5104
ebe84f23
PA
51052020-06-18 Pedro Alves <palves@redhat.com>
5106
5107 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5108 inferior_ptid.
5109 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5110 thread.
5111 (nto_procfs_target::detach): Avoid referencing
5112 inferior_ptid. Use switch_to_no_thread instead of writing to
5113 inferior_ptid directly.
5114 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5115 instead of writing to inferior_ptid directly.
5116 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5117 to thread.
5118
191f02e5
PA
51192020-06-18 Pedro Alves <palves@redhat.com>
5120
5121 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5122 after creating it, instead of writing to inferior_ptid.
5123 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5124 to inferior_ptid directly.
5125 (gdbsim_target::wait): Don't write to inferior_ptid.
5126
0ac55310
PA
51272020-06-18 Pedro Alves <palves@redhat.com>
5128
5129 * remote.c (remote_target::remote_notice_new_inferior): Use
5130 switch_to_thread instead of writing to inferior_ptid directly.
5131 (remote_target::add_current_inferior_and_thread): Use
5132 switch_to_no_thread instead of writing to inferior_ptid directly.
5133 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5134 and switch_to_thread instead of using set_current_inferior or
5135 writing to inferior_ptid directly.
5136
5233f39b
PA
51372020-06-18 Pedro Alves <palves@redhat.com>
5138
5139 * tracectf.c (ctf_target_open): Switch to added thread instead of
5140 writing to inferior_ptid directly.
5141 (ctf_target::close): Use switch_to_no_thread instead of writing to
5142 inferior_ptid directly.
5143
087e161b
PA
51442020-06-18 Pedro Alves <palves@redhat.com>
5145
5146 * tracefile-tfile.c (tfile_target_open): Don't write to
5147 inferior_ptid directly, instead switch to added thread.
5148 (tfile_target::close): Use switch_to_no_thread instead of writing
5149 to inferior_ptid directly.
5150
7fb43e53
PA
51512020-06-18 Pedro Alves <palves@redhat.com>
5152
5153 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5154 (procfs_target::detach): Use switch_to_no_thread
5155 instead of writing to inferior_ptid directly.
5156 (do_attach): Change return type to void. Switch to the added
5157 thread.
5158 (procfs_target::create_inferior): Switch to the added thread.
5159 (procfs_do_thread_registers): Don't write to inferior_ptid.
5160
18493a00
PA
51612020-06-18 Pedro Alves <palves@redhat.com>
5162
5163 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5164 of writing to inferior_ptid.
5165 (scoped_restore_exited_inferior): Delete.
5166 (handle_vfork_child_exec_or_exit): Simplify using
5167 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5168 instead of writing to inferior_ptid.
5169 (THREAD_STOPPED_BY): Delete.
5170 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5171 (thread_stopped_by_hw_breakpoint): Delete.
5172 (save_waitstatus): Use
5173 scoped_restore_current_thread+switch_to_thread, and call
5174 target_stopped_by_watchpoint instead of
5175 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5176 instead of thread_stopped_by_sw_breakpoint, and
5177 target_stopped_by_hw_breakpoint instead of
5178 thread_stopped_by_hw_breakpoint.
5179 (handle_inferior_event)
5180 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5181 inferior_ptid directly, nor
5182 set_current_inferior/set_current_program_space. Use
5183 switch_to_thread / switch_to_inferior_no_thread instead.
5184
a0776b13
PA
51852020-06-18 Pedro Alves <palves@redhat.com>
5186
5187 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5188 instead of writing to inferior_ptid.
5189
6155c136
PA
51902020-06-18 Pedro Alves <palves@redhat.com>
5191
5192 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5193 added thread.
5194 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5195 to the added thread.
5196 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5197 instead of writing to inferior_ptid.
5198
c5316fc6
PA
51992020-06-18 Pedro Alves <palves@redhat.com>
5200
5201 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5202 (register_to_value_test): Mock a program_space too. Heap-allocate
5203 the address space. Don't write to inferior_ptid. Use
5204 switch_to_thread instead.
5205
8df01799
PA
52062020-06-18 Pedro Alves <palves@redhat.com>
5207
5208 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5209 Delete.
5210 (find_signalled_thread()): New, factored out from
5211 linux_make_corefile_notes and adjusted to handle exited threads.
5212 (linux_make_corefile_notes): Adjust to use the new
5213 find_signalled_thread.
5214
41792d68
PA
52152020-06-18 Pedro Alves <palves@redhat.com>
5216
5217 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5218 of saving/restoring inferior_ptid.
5219
612f258a
TT
52202020-06-17 Tom Tromey <tom@tromey.com>
5221
5222 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5223 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5224 declare.
5225 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5226
efb763a5
SM
52272020-06-15 Simon Marchi <simon.marchi@efficios.com>
5228
5229 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5230 of partial symtabs.
5231
2951f6c0
SM
52322020-06-17 Simon Marchi <simon.marchi@efficios.com>
5233
5234 * regformats/reg-arm.dat: Remove.
5235 * regformats/reg-bfin.dat: Remove.
5236 * regformats/reg-cris.dat: Remove.
5237 * regformats/reg-crisv32.dat: Remove.
5238 * regformats/reg-m32r.dat: Remove.
5239 * regformats/reg-tilegx.dat: Remove.
5240 * regformats/reg-tilegx32.dat: Remove.
5241
7d458ea5
SM
52422020-06-17 Simon Marchi <simon.marchi@efficios.com>
5243
5244 * features/Makefile (WHICH): Remove arm files.
5245 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5246 * regformats/arm/arm-with-neon.dat: Remove.
5247 * regformats/arm/arm-with-vfpv2.dat: Remove.
5248 * regformats/arm/arm-with-vfpv3.dat: Remove.
5249
3af96c0d
SM
52502020-06-17 Simon Marchi <simon.marchi@efficios.com>
5251
5252 * features/Makefile (XMLTOC): Remove rx.xml.
5253
b25e22fd
PA
52542020-06-17 Pedro Alves <palves@redhat.com>
5255
5256 * gdbthread.h (thread_control_state) <trap_expected> Update
5257 comments.
5258
a78a19b1
AB
52592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5260
5261 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5262 ada_language::lookup_symbol_nonlocal.
5263 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5264 (ada_language::lookup_symbol_nonlocal): New member function,
5265 implementation from ada_lookup_symbol_nonlocal.
5266 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5267 initializer.
5268 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5269 initializer.
5270 (cplus_language::lookup_symbol_nonlocal): New member function.
5271 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5272 (minimal_language_data) Likewise.
5273 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5274 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5275 initializer.
5276 (d_language::lookup_symbol_nonlocal): New member function.
5277 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5278 initializer.
5279 (f_language::lookup_symbol_nonlocal): New member function.
5280 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5281 initializer.
5282 * language.c (unknown_language_data): Likewise.
5283 (auto_language_data): Likewise.
5284 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5285 field.
5286 (language_defn::lookup_symbol_nonlocal): New member function.
5287 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5288 initializer.
5289 * objc-lang.c (objc_language_data): Likewise.
5290 * opencl-lang.c (opencl_language_data): Likewise.
5291 * p-lang.c (pascal_language_data): Likewise.
5292 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5293 rust_language::lookup_symbol_nonlocal.
5294 (rust_language_data): Delete la_lookup_symbol_nonlocal
5295 initializer.
5296 (rust_language::lookup_symbol_nonlocal): New member function,
5297 implementation from rust_lookup_symbol_nonlocal.
5298 * symtab.c (lookup_symbol_aux): Update call to
5299 lookup_symbol_nonlocal.
5300 (basic_lookup_symbol_nonlocal): Rename to...
5301 (language_defn::lookup_symbol_nonlocal): ...this, and update
5302 header comment. Remove language_defn parameter, and replace with
5303 uses of `this'.
5304 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5305
ebe2334e
AB
53062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5307
5308 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5309 initializer.
5310 (ada_language::value_print_inner): New member function.
5311 * c-lang.c (c_language_data): Delete la_value_print_inner
5312 initializer.
5313 (cplus_language_data): Likewise.
5314 (asm_language_data): Likewise.
5315 (minimal_language_data): Likewise.
5316 * d-lang.c (d_language_data): Likewise.
5317 (d_language::value_print_inner): New member function.
5318 * f-lang.c (f_language_data): Delete la_value_print_inner
5319 initializer.
5320 (f_language::value_print_inner): New member function.
5321 * f-lang.h (f_value_print_innner): Rename to...
5322 (f_value_print_inner): ...this (note spelling of 'inner').
5323 * f-valprint.c (f_value_print_innner): Rename to...
5324 (f_value_print_inner): ...this (note spelling of 'inner').
5325 * go-lang.c (go_language_data): Delete la_value_print_inner
5326 initializer.
5327 (go_language::value_print_inner): New member function.
5328 * language.c (language_defn::value_print_inner): Define new member
5329 function.
5330 (unk_lang_value_print_inner): Delete.
5331 (unknown_language_data): Delete la_value_print_inner initializer.
5332 (unknown_language::value_print_inner): New member function.
5333 (auto_language_data): Delete la_value_print_inner initializer.
5334 (auto_language::value_print_inner): New member function.
5335 * language.h (language_data): Delete la_value_print_inner field.
5336 (language_defn::value_print_inner): Delcare new member function.
5337 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5338 initializer.
5339 (m2_language::value_print_inner): New member function.
5340 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5341 initializer.
5342 * opencl-lang.c (opencl_language_data): Likewise.
5343 * p-lang.c (pascal_language_data): Likewise.
5344 (pascal_language::value_print_inner): New member function.
5345 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5346 initializer.
5347 (rust_language::value_print_inner): New member function.
5348 * valprint.c (do_val_print): Update call to value_print_inner.
5349
a1d1fa3e
AB
53502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5351
5352 * ada-lang.c (ada_language_data): Delete la_value_print
5353 initializer.
5354 (ada_language::value_print): New member function.
5355 * c-lang.c (c_language_data): Delete la_value_print initializer.
5356 (cplus_language_data): Likewise.
5357 (asm_language_data): Likewise.
5358 (minimal_language_data): Likewise.
5359 * d-lang.c (d_language_data): Likewise.
5360 * f-lang.c (f_language_data): Likewise.
5361 * go-lang.c (go_language_data): Likewise.
5362 * language.c (unk_lang_value_print): Delete.
5363 (language_defn::value_print): Define new member function.
5364 (unknown_language_data): Delete la_value_print initializer.
5365 (unknown_language::value_print): New member function.
5366 (auto_language_data): Delete la_value_print initializer.
5367 (auto_language::value_print): New member function.
5368 * language.h (language_data): Delete la_value_print field.
5369 (language_defn::value_print): Declare new member function.
5370 (LA_VALUE_PRINT): Update call to value_print.
5371 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5372 * objc-lang.c (objc_language_data): Likewise.
5373 * opencl-lang.c (opencl_language_data): Likewise.
5374 * p-lang.c (pascal_language_data): Likewise.
5375 (pascal_language::value_print): New member function.
5376 * rust-lang.c (rust_language_data): Delete la_value_print
5377 initializer.
5378
f16a9f57
AB
53792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5380
5381 * ada-lang.c (ada_watch_location_expression): Rename to
5382 ada_language::watch_location_expression.
5383 (ada_language_data): Delete la_watch_location_expression
5384 initializer.
5385 (ada_language::watch_location_expression): New member function,
5386 implementation from ada_watch_location_expression.
5387 * breakpoint.c (watch_command_1): Update call to
5388 watch_location_expression.
5389 * c-lang.c (c_watch_location_expression): Rename to
5390 language_defn::watch_location_expression.
5391 (c_language_data): Delete la_watch_location_expression
5392 initializer.
5393 (cplus_language_data): Likewise.
5394 (asm_language_data): Likewise.
5395 (minimal_language_data): Likewise.
5396 * c-lang.h (c_watch_location_expression): Delete declaration.
5397 * d-lang.c (d_language_data): Delete la_watch_location_expression
5398 initializer.
5399 * f-lang.c (f_language_data): Likewise.
5400 * go-lang.c (go_language_data): Likewise.
5401 * language.c (language_defn::watch_location_expression): Member
5402 function implementation from c_watch_location_expression.
5403 (unknown_language_data): Delete la_watch_location_expression
5404 initializer.
5405 (auto_language_data): Likewise.
5406 * language.h (language_data): Delete la_watch_location_expression
5407 field.
5408 (language_defn::watch_location_expression): Declare new member
5409 function.
5410 * m2-lang.c (m2_language_data): Delete
5411 la_watch_location_expression initializer.
5412 * objc-lang.c (objc_language_data): Likewise.
5413 * opencl-lang.c (opencl_language_data): Likewise.
5414 * p-lang.c (pascal_language_data): Likewise.
5415 * rust-lang.c (rust_watch_location_expression): Rename to
5416 rust_language::watch_location_expression.
5417 (rust_language_data): Delete la_watch_location_expression
5418 initializer.
5419 (rust_language::watch_location_expression): New member function,
5420 implementation from rust_watch_location_expression.
5421
7e56227d
AB
54222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5423
5424 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5425 ada_language::collect_symbol_completion_matches.
5426 (ada_language_data): Delete la_collect_symbol_completion_matches
5427 initializer.
5428 (ada_language::collect_symbol_completion_matches): New member
5429 function, implementation from
5430 ada_collect_symbol_completion_matches.
5431 * c-lang.c (c_language_data): Delete
5432 la_collect_symbol_completion_matches initializer.
5433 (cplus_language_data): Likewise.
5434 (asm_language_data): Likewise.
5435 (minimal_language_data): Likewise.
5436 * d-lang.c (d_language_data): Likewise.
5437 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5438 f_language::collect_symbol_completion_matches.
5439 (f_language_data): Delete la_collect_symbol_completion_matches
5440 initializer.
5441 (f_language::collect_symbol_completion_matches) New member
5442 function, implementation from f_collect_symbol_completion_matches.
5443 * go-lang.c (go_language_data): Delete
5444 la_collect_symbol_completion_matches initializer.
5445 * language.c (unknown_language_data): Likewise.
5446 (auto_language_data): Likewise.
5447 * language.h (language_data): Delete
5448 la_collect_symbol_completion_matches field.
5449 (language_defn::collect_symbol_completion_matches): New member
5450 function.
5451 * m2-lang.c (m2_language_data): Delete
5452 la_collect_symbol_completion_matches initializer.
5453 * objc-lang.c (objc_language_data): Likewise.
5454 * opencl-lang.c (opencl_language_data): Likewise.
5455 * p-lang.c (pascal_language_data): Likewise.
5456 * rust-lang.c (rust_language_data): Likewise.
5457 * symtab.c (default_collect_symbol_completion_matches): Delete.
5458 (collect_symbol_completion_matches): Update call to
5459 collect_symbol_completion_matches.
5460 (collect_symbol_completion_matches_type): Likewise.
5461 * symtab.h (default_collect_symbol_completion_matches): Delete
5462 declaration.
5463
53fc67f8
AB
54642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5465
5466 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5467 (ada_language_data): Delete la_word_break_characters initializer.
5468 (ada_language::word_break_characters): New member function.
5469 * c-lang.c (c_language_data): Delete la_word_break_characters
5470 initializer.
5471 (cplus_language_data): Likewise.
5472 (asm_language_data): Likewise.
5473 (minimal_language_data): Likewise.
5474 * completer.c: Update global comment.
5475 (advance_to_expression_complete_word_point): Update call to
5476 word_break_characters.
5477 (complete_files_symbols): Likewise.
5478 (complete_line_internal_1): Likewise.
5479 (default_completer_handle_brkchars): Likewise.
5480 (skip_quoted_chars): Likewise.
5481 * d-lang.c (d_language_data): Delete la_word_break_characters
5482 initializer.
5483 * f-lang.c (f_word_break_characters): Delete.
5484 (f_language_data): Delete la_word_break_characters initializer.
5485 (f_language::word_break_characters): New member function.
5486 * go-lang.c (go_language_data): Delete la_word_break_characters
5487 initializer.
5488 * language.c (unknown_language_data): Likewise.
5489 (auto_language_data): Likewise.
5490 * language.h (default_word_break_characters): Move declaration to
5491 earlier in the file.
5492 (language_data): Delete la_word_break_characters field.
5493 (language_defn::word_break_characters): New member function.
5494 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5495 initializer.
5496 * objc-lang.c (objc_language_data): Likewise.
5497 * opencl-lang.c (opencl_language_data): Likewise.
5498 * p-lang.c (pascal_language_data): Likewise.
5499 * rust-lang.c (rust_language_data): Likewise.
5500
c9debfb9
AB
55012020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5502
5503 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5504 (ada_language_data): Delete la_get_symbol_name_matcher
5505 initializer.
5506 (language_defn::get_symbol_name_matcher_inner): New member
5507 function.
5508 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5509 initializer.
5510 (cplus_language_data): Likewise.
5511 (cplus_language::get_symbol_name_matcher_inner): New member
5512 function.
5513 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5514 (minimal_language_data): Likewise.
5515 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5516 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5517 initializer.
5518 * dictionary.c (iter_match_first_hashed): Update call to
5519 get_symbol_name_matcher.
5520 (iter_match_next_hashed): Likewise.
5521 (iter_match_next_linear): Likewise.
5522 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5523 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5524 initializer.
5525 (f_language::get_symbol_name_matcher_inner): New member function.
5526 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5527 initializer.
5528 * language.c (default_symbol_name_matcher): Update header comment,
5529 make static.
5530 (language_defn::get_symbol_name_matcher): New definition.
5531 (language_defn::get_symbol_name_matcher_inner): Likewise.
5532 (get_symbol_name_matcher): Delete.
5533 (unknown_language_data): Delete la_get_symbol_name_matcher
5534 initializer.
5535 (auto_language_data): Likewise.
5536 * language.h (language_data): Delete la_get_symbol_name_matcher
5537 field.
5538 (language_defn::get_symbol_name_matcher): New member function.
5539 (language_defn::get_symbol_name_matcher_inner): Likewise.
5540 (default_symbol_name_matcher): Delete declaration.
5541 * linespec.c (find_methods): Update call to
5542 get_symbol_name_matcher.
5543 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5544 initializer.
5545 * minsyms.c (lookup_minimal_symbol): Update call to
5546 get_symbol_name_matcher.
5547 (iterate_over_minimal_symbols): Likewise.
5548 * objc-lang.c (objc_language_data): Delete
5549 la_get_symbol_name_matcher initializer.
5550 * opencl-lang.c (opencl_language_data): Likewise.
5551 * p-lang.c (pascal_language_data): Likewise.
5552 * psymtab.c (psymbol_name_matches): Update call to
5553 get_symbol_name_matcher.
5554 * rust-lang.c (rust_language_data): Delete
5555 la_get_symbol_name_matcher initializer.
5556 * symtab.c (symbol_matches_search_name): Update call to
5557 get_symbol_name_matcher.
5558 (compare_symbol_name): Likewise.
5559
9a49ad8c
AB
55602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5561
5562 * ada-lang.c (ada_language_data): Delete la_compute_program
5563 initializer.
5564 * c-lang.c (c_language_data): Likewise.
5565 (c_language::compute_program): New member function.
5566 (cplus_language_data): Delete la_compute_program initializer.
5567 (cplus_language::compute_program): New member function.
5568 (asm_language_data): Delete la_compute_program initializer.
5569 (minimal_language_data): Likewise.
5570 * c-lang.h (c_compute_program): Update comment.
5571 (cplus_compute_program): Likewise.
5572 * compile/compile-c-support.c (c_compute_program): Likewise.
5573 (cplus_compute_program): Likewise.
5574 * compile/compile.c (compile_to_object): Update call to
5575 la_compute_program.
5576 * d-lang.c (d_language_data): Delete la_compute_program
5577 initializer.
5578 * f-lang.c (f_language_data): Likewise.
5579 * go-lang.c (go_language_data): Likewise.
5580 * language.c (unknown_language_data): Likewise.
5581 (auto_language_data): Likewise.
5582 * language.h (language_data): Delete la_compute_program field.
5583 (language_defn::compute_program): New member function.
5584 * m2-lang.c (m2_language_data): Delete la_compute_program
5585 initializer.
5586 * objc-lang.c (objc_language_data): Likewise.
5587 * opencl-lang.c (opencl_language_data): Likewise.
5588 * p-lang.c (pascal_language_data): Likewise.
5589 * rust-lang.c (rust_language_data): Likewise.
5590
eff93b4d
AB
55912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5592
5593 * ada-lang.c (ada_language_data) Delete
5594 la_class_name_from_physname initializer.
5595 * c-lang.c (c_language_data): Likewise.
5596 (cplus_language_data): Likewise.
5597 (cplus_language::class_name_from_physname): New member function.
5598 (asm_language_data): Delete la_class_name_from_physname
5599 initializer.
5600 (minimal_language_data): Likewise.
5601 * d-lang.c (d_language_data): Likewise.
5602 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5603 method on language_defn class.
5604 (guess_full_die_structure_name): Likewise.
5605 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5606 initializer.
5607 * go-lang.c (go_language_data): Likewise.
5608 * language.c (language_class_name_from_physname): Delete.
5609 (unk_lang_class_name): Delete.
5610 (unknown_language_data): Delete la_class_name_from_physname
5611 initializer.
5612 (auto_language_data): Likewise.
5613 * language.h (language_data): Delete la_class_name_from_physname
5614 field.
5615 (language_defn::class_name_from_physname): New function.
5616 (language_class_name_from_physname): Delete declaration.
5617 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5618 initializer.
5619 * objc-lang.c (objc_language_data): Likewise.
5620 * opencl-lang.c (opencl_language_data): Likewise.
5621 * p-lang.c (pascal_language_data): Likewise.
5622 * rust-lang.c (rust_language_data): Likewise.
5623
de543742
TT
56242020-06-16 Tom Tromey <tom@tromey.com>
5625
5626 * tui/tui-data.h (STATUS_NAME): New macro.
5627 * tui/tui-layout.c (tui_remove_some_windows)
5628 (initialize_known_windows, tui_register_window)
5629 (tui_layout_split::remove_windows, initialize_layouts)
5630 (tui_new_layout_command): Don't use hard-coded window names.
5631
a350efd4
TT
56322020-06-16 Tom Tromey <tom@tromey.com>
5633
5634 PR tui/25348:
5635 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5636 tui_initialize_readline. Only run once. Call rl_initialize.
5637 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5638 tui_initialize_readline.
5639 * tui/tui-io.c (tui_setup_io): Call
5640 tui_ensure_readline_initialized.
5641 * tui/tui-interp.c (tui_interp::init): Update.
5642
39ec0490
TT
56432020-06-16 Tom Tromey <tom@tromey.com>
5644
5645 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5646 Also preserve the status window.
5647
d2d1ea20
TT
56482020-06-16 Tom Tromey <tom@tromey.com>
5649
5650 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5651 where m_window==nullptr.
5652
66920317
TT
56532020-06-15 Tom Tromey <tromey@adacore.com>
5654
5655 * windows-nat.c (windows_nat::handle_output_debug_string):
5656 Update.
5657 (windows_nat::handle_ms_vc_exception): Update.
5658 * target.h (target_read_string): Change API.
5659 * target.c (target_read_string): Change API.
5660 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5661 Update.
5662 * solib-frv.c (frv_current_sos): Update.
5663 * solib-dsbt.c (dsbt_current_sos): Update.
5664 * solib-darwin.c (darwin_current_sos): Update.
5665 * linux-thread-db.c (inferior_has_bug): Update.
5666 * expprint.c (print_subexp_standard): Update.
5667 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5668 (ada_exception_message_1): Update.
5669
a5d871dd
TT
56702020-06-15 Tom Tromey <tromey@adacore.com>
5671
5672 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5673
670e35fa
TT
56742020-06-15 Tom Tromey <tromey@adacore.com>
5675
5676 * valprint.c (read_string): Update comment.
5677 * target.c (MIN): Remove.
5678 (target_read_string): Rewrite.
5679
f5272a3b
TT
56802020-06-15 Tom Tromey <tromey@adacore.com>
5681
5682 * corefile.c (read_memory_string): Remove.
5683 * ada-valprint.c (ada_value_print_ptr): Update.
5684 * ada-lang.h (ada_tag_name): Change return type.
5685 * ada-lang.c (type_from_tag): Update.
5686 (ada_tag_name_from_tsd): Change return type. Use
5687 target_read_string.
5688 (ada_tag_name): Likewise.
5689 * gdbcore.h (read_memory_string): Don't declare.
5690
2c074f49
HD
56912020-06-14 Hannes Domani <ssbssa@yahoo.de>
5692
5693 * symtab.c (rbreak_command): Ignore Windows drive colon.
5694
6a17d503
SM
56952020-06-12 Simon Marchi <simon.marchi@efficios.com>
5696
5697 * NEWS: Mention removed GDBserver host support.
5698
453c733f
NC
56992020-06-12 Nelson Chu <nelson.chu@sifive.com>
5700
5701 * features/riscv/rebuild-csr-xml.sh: Updated.
5702
2b4e6a3f
TT
57032020-06-11 Tom Tromey <tom@tromey.com>
5704
5705 PR gdb/18318:
5706 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5707
4412332f
JG
57082020-06-09 Jonny Grant <jg@jguk.org>
57092020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5710
5711 * main.c (captured_main_1): Don't print new line after help.
5712 (print_gdb_help): add mailing list and IRC channel information
5713 to --help. Add new lines between items in the footer. Remove
5714 quotes around bug url.
5715
2f33032a
KS
57162020-06-11 Keith Seitz <keiths@redhat.com>
5717
5718 PR gdb/21356
5719 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5720 Resolve typedefs for type length calculations.
5721
7ab96794
TV
57222020-06-10 Tom de Vries <tdevries@suse.de>
5723
5724 PR ada/24713
5725 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5726 (write_psymbols): Enable .gdb_index for ada.
5727 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5728 ada.
5729
e5f3ece2
TV
57302020-06-10 Tom de Vries <tdevries@suse.de>
5731
5732 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5733 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5734 namei" instead of "const char *name" argument.
5735 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5736 dw2_symtab_iter_init.
5737
940da03e
SM
57382020-06-08 Simon Marchi <simon.marchi@efficios.com>
5739
5740 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5741 to use type::field and field::type instead.
5742
b6cdac4b
SM
57432020-06-08 Simon Marchi <simon.marchi@efficios.com>
5744
5745 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5746 to use field::type instead.
5747
5d14b6e5
SM
57482020-06-08 Simon Marchi <simon.marchi@efficios.com>
5749
5750 * gdbtypes.h (struct field) <type, set_type>: New methods.
5751 Rename `type` field to...
5752 <m_type>: ... this. Change references throughout to use type or
5753 set_type methods.
5754 (FIELD_TYPE): Use field::type. Change call sites that modify
5755 the field's type to use field::set_type instead.
5756
3d967001
SM
57572020-06-08 Simon Marchi <simon.marchi@efficios.com>
5758
5759 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5760 to use type::index_type instead.
5761
262abc0d
SM
57622020-06-08 Simon Marchi <simon.marchi@efficios.com>
5763
5764 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5765 methods.
5766 (TYPE_INDEX_TYPE): Use type::index_type.
5767 * gdbtypes.c (create_array_type_with_stride): Likewise.
5768
82836c92
TT
57692020-06-07 Tom Tromey <tom@tromey.com>
5770
5771 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5772 parameter.
5773 (generic_value_print): Update.
5774
940dace9
AB
57752020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5776
5777 Revert commit 982a38f60b0.
5778 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5779
982a38f6
AB
57802020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5781
5782 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5783 avoid use after free.
5784
82f06518
TV
57852020-06-05 Tom de Vries <tdevries@suse.de>
5786
5787 * NEWS: Fix typos.
5788
f8c41851
SM
57892020-06-04 Simon Marchi <simon.marchi@efficios.com>
5790
5791 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5792 the per_bfd object.
5793 (dwarf2_read_debug_names): Likewise.
5794 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5795 object when re-using a per_bfd object with an index.
5796
f9b5d5ea
TV
57972020-06-03 Tom de Vries <tdevries@suse.de>
5798
5799 PR symtab/26046
5800 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5801 children for C++.
5802 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5803 DW_TAG_subprogram.
5804
f6eee2d0
AB
58052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5806
5807 * ada-lang.c (ada_language_data): Delete skip_trampoline
5808 initializer.
5809 * c-lang.c (c_language_data): Likewise.
5810 (cplus_language_data): Likewise.
5811 (cplus_language::skip_trampoline): New member function.
5812 (asm_language_data): Delete skip_trampoline initializer.
5813 (minimal_language_data): Likewise.
5814 * d-lang.c (d_language_data): Likewise.
5815 * f-lang.c (f_language_data): Likewise.
5816 * go-lang.c (go_language_data): Likewise.
5817 * language.c (unk_lang_trampoline): Delete function.
5818 (skip_language_trampoline): Update.
5819 (unknown_language_data): Delete skip_trampoline initializer.
5820 (auto_language_data): Likewise.
5821 * language.h (language_data): Delete skip_trampoline field.
5822 (language_defn::skip_trampoline): New function.
5823 * m2-lang.c (m2_language_data): Delete skip_trampoline
5824 initializer.
5825 * objc-lang.c (objc_skip_trampoline): Delete function, move
5826 implementation to objc_language::skip_trampoline.
5827 (objc_language_data): Delete skip_trampoline initializer.
5828 (objc_language::skip_trampoline): New member function with
5829 implementation from objc_skip_trampoline.
5830 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5831 initializer.
5832 * p-lang.c (pascal_language_data): Likewise.
5833 * rust-lang.c (rust_language_data): Likewise.
5834
0a50df5d
AB
58352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5836
5837 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5838 (ada_language::demangle): New member function.
5839 * c-lang.c (c_language_data): Delete la_demangle initializer.
5840 (cplus_language_data): Delete la_demangle initializer.
5841 (cplus_language::demangle): New member function.
5842 (asm_language_data): Delete la_demangle initializer.
5843 (minimal_language_data): Delete la_demangle initializer.
5844 * d-lang.c (d_language_data): Delete la_demangle initializer.
5845 (d_language::demangle): New member function.
5846 * f-lang.c (f_language_data): Delete la_demangle initializer.
5847 (f_language::demangle): New member function.
5848 * go-lang.c (go_language_data): Delete la_demangle initializer.
5849 (go_language::demangle): New member function.
5850 * language.c (language_demangle): Update.
5851 (unk_lang_demangle): Delete.
5852 (unknown_language_data): Delete la_demangle initializer.
5853 (unknown_language::demangle): New member function.
5854 (auto_language_data): Delete la_demangle initializer.
5855 (auto_language::demangle): New member function.
5856 * language.h (language_data): Delete la_demangle field.
5857 (language_defn::demangle): New function.
5858 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5859 * objc-lang.c (objc_language_data): Delete la_demangle
5860 initializer.
5861 (objc_language::demangle): New member function.
5862 * opencl-lang.c (opencl_language_data): Delete la_demangle
5863 initializer.
5864 * p-lang.c (pascal_language_data): Likewise.
5865 * rust-lang.c (rust_language_data): Likewise.
5866 (rust_language::demangle): New member function.
5867
fbfb0a46
AB
58682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5869
5870 * ada-lang.c (ada_language_data): Delete la_print_type
5871 initializer.
5872 (ada_language::print_type): New member function.
5873 * c-lang.c (c_language_data): Delete la_print_type initializer.
5874 (c_language::print_type): New member function.
5875 (cplus_language_data): Delete la_print_type initializer.
5876 (cplus_language::print_type): New member function.
5877 (asm_language_data): Delete la_print_type initializer.
5878 (asm_language::print_type): New member function.
5879 (minimal_language_data): Delete la_print_type initializer.
5880 (minimal_language::print_type): New member function.
5881 * d-lang.c (d_language_data): Delete la_print_type initializer.
5882 (d_language::print_type): New member function.
5883 * f-lang.c (f_language_data): Delete la_print_type initializer.
5884 (f_language::print_type): New member function.
5885 * go-lang.c (go_language_data): Delete la_print_type initializer.
5886 (go_language::print_type): New member function.
5887 * language.c (unk_lang_print_type): Delete.
5888 (unknown_language_data): Delete la_print_type initializer.
5889 (unknown_language::print_type): New member function.
5890 (auto_language_data): Delete la_print_type initializer.
5891 (auto_language::print_type): New member function.
5892 * language.h (language_data): Delete la_print_type field.
5893 (language_defn::print_type): New function.
5894 (LA_PRINT_TYPE): Update.
5895 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5896 (m2_language::print_type): New member function.
5897 * objc-lang.c (objc_language_data): Delete la_print_type
5898 initializer.
5899 (objc_language::print_type): New member function.
5900 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5901 to opencl_language::print_type.
5902 (opencl_language_data): Delete la_print_type initializer.
5903 (opencl_language::print_type): New member function, implementation
5904 from opencl_print_type.
5905 * p-lang.c (pascal_language_data): Delete la_print_type
5906 initializer.
5907 (pascal_language::print_type): New member function.
5908 * rust-lang.c (rust_print_type): Delete, implementation moved to
5909 rust_language::print_type.
5910 (rust_language_data): Delete la_print_type initializer.
5911 (rust_language::print_type): New member function, implementation
5912 from rust_print_type.
5913
6f827019
AB
59142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5915
5916 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5917 implementation moves to...
5918 (ada_language::sniff_from_mangled_name): ...here. Update return
5919 type.
5920 (ada_language_data): Delete la_sniff_from_mangled_name
5921 initializer.
5922 * c-lang.c (c_language_data): Likewise.
5923 (cplus_language_data): Likewise.
5924 (cplus_language::sniff_from_mangled_name): New member function,
5925 implementation taken from gdb_sniff_from_mangled_name.
5926 (asm_language_data): Delete la_sniff_from_mangled_name
5927 initializer.
5928 (minimal_language_data): Likewise.
5929 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5930 implementation moves to cplus_language::sniff_from_mangled_name.
5931 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5932 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5933 moves to...
5934 (d_language::sniff_from_mangled_name): ...here.
5935 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5936 * f-lang.c (f_language_data): Likewise.
5937 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5938 moves to...
5939 (go_language::sniff_from_mangled_name): ...here.
5940 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5941 * language.c (language_sniff_from_mangled_name): Delete.
5942 (unknown_language_data): Delete la_sniff_from_mangled_name
5943 initializer.
5944 (auto_language_data): Likewise.
5945 * language.h (language_data): Delete la_sniff_from_mangled_name
5946 field.
5947 (language_defn::sniff_from_mangled_name): New function.
5948 (language_sniff_from_mangled_name): Delete declaration.
5949 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5950 field.
5951 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5952 implementation moves to...
5953 (objc_language::sniff_from_mangled_name): ...here.
5954 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5955 * opencl-lang.c (opencl_language_data): Likewise.
5956 * p-lang.c (pascal_language_data): Likewise.
5957 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5958 implementation moves to...
5959 (rust_language::sniff_from_mangled_name): ...here.
5960 (rust_language_data): Delete la_sniff_from_mangled_name
5961 initializer.
5962 * symtab.c (symbol_find_demangled_name): Call
5963 sniff_from_mangled_name member function.
5964
fb8006fd
AB
59652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5966
5967 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5968 initializer.
5969 * c-lang.c (c_language_data): Likewise.
5970 (cplus_language_data): Likewise.
5971 (cplus_language::search_name_hash): New member function.
5972 (asm_language_data): Delete la_search_name_hash initializer.
5973 (minimal_language_data): Likewise.
5974 * d-lang.c (d_language_data): Likewise.
5975 * dictionary.c (default_search_name_hash): Rename to...
5976 (language_defn::search_name_hash): ...this.
5977 * f-lang.c (f_language_data): Likewise.
5978 (f_language::search_name_hash): New member function.
5979 * go-lang.c (go_language_data): Delete la_search_name_hash
5980 initializer.
5981 * language.c (unknown_language_data): Likewise.
5982 (auto_language_data): Likewise.
5983 * language.h (struct language_data): Delete la_search_name_hash
5984 field.
5985 (language_defn::search_name_hash): Declare new member function.
5986 (default_search_name_hash): Delete declaration.
5987 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5988 initializer.
5989 * objc-lang.c (objc_language_data): Likewise.
5990 * opencl-lang.c (opencl_language_data): Likewise.
5991 * p-lang.c (pascal_language_data): Likewise.
5992 * rust-lang.c (rust_language_data): Likewise.
5993 * symtab.c (search_name_hash): Update call.
5994
8e25bafe
AB
59952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5996
5997 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5998 initializer.
5999 * c-lang.c (class compile_instance): Declare.
6000 (c_language_data): Delete la_get_compile_instance initializer.
6001 (c_language::get_compile_instance): New member function.
6002 (cplus_language_data): Delete la_get_compile_instance initializer.
6003 (cplus_language::get_compile_instance): New member function.
6004 (asm_language_data): Delete la_get_compile_instance initializer.
6005 (minimal_language_data): Likewise.
6006 * c-lang.h (c_get_compile_context): Update comment.
6007 (cplus_get_compile_context): Update comment.
6008 * compile/compile.c (compile_to_object): Update calls, don't rely
6009 on function pointer being NULL.
6010 * d-lang.c (d_language_data): Delete la_get_compile_instance
6011 initializer.
6012 * f-lang.c (f_language_data): Likewise.
6013 * go-lang.c (go_language_data): Likewise.
6014 * language.c (unknown_language_data): Likewise.
6015 (auto_language_data): Likewise.
6016 * language.h (language_data): Delete la_get_compile_instance field.
6017 (language_defn::get_compile_instance): New member function.
6018 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6019 initializer.
6020 * objc-lang.c (objc_language_data): Likewise.
6021 * opencl-lang.c (opencl_language_data): Likewise.
6022 * p-lang.c (pascal_language_data): Likewise.
6023 * rust-lang.c (rust_language_data): Likewise.
6024
4009ee92
AB
60252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6026
6027 * ada-lang.c (ada_add_all_symbols): Update comment.
6028 (ada_iterate_over_symbols): Delete, move implementation to...
6029 (ada_language::iterate_over_symbols): ...here, a new member
6030 function, rewrite to use range based for loop.
6031 (ada_language_data): Delete la_iterate_over_symbols initializer.
6032 * c-lang.c (c_language_data): Likewise.
6033 (cplus_language_data): Likewise.
6034 (asm_language_data): Likewise.
6035 (minimal_language_data): Likewise.
6036 * d-lang.c (d_language_data): Likewise.
6037 * f-lang.c (f_language_data): Likewise.
6038 * go-lang.c (go_language_data): Likewise.
6039 * language.c (unknown_language_data): Likewise.
6040 (auto_language_data): Likewise.
6041 * language.h (language_data): Delete la_iterate_over_symbols field.
6042 (language_defn::iterate_over_symbols): New member function.
6043 (LA_ITERATE_OVER_SYMBOLS): Update.
6044 * linespec.c (iterate_over_all_matching_symtabs): Update.
6045 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6046 initializer.
6047 * objc-lang.c (objc_language_data): Likewise.
6048 * opencl-lang.c (opencl_language_data): Likewise.
6049 * p-lang.c (pascal_language_data): Likewise.
6050 * rust-lang.c (rust_language_data): Likewise.
6051
54f4ca46
AB
60522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6053
6054 * ada-lang.c (ada_language_data): Delete
6055 la_lookup_transparent_type initializer.
6056 * c-lang.c (c_language_data): Likewise.
6057 (cplus_language_data): Likewise.
6058 (cplus_language::lookup_transparent_type): New member function.
6059 (asm_language_data): Delete la_lookup_transparent_type
6060 initializer.
6061 (minimal_language_data): Likewise.
6062 * d-lang.c (d_language_data): Likewise.
6063 * f-lang.c (f_language_data): Likewise.
6064 * go-lang.c (go_language_data): Likewise.
6065 * language.c (unknown_language_data): Likewise.
6066 (auto_language_data): Likewise.
6067 * language.h (struct language_data): Delete
6068 la_lookup_transparent_type field.
6069 (language_defn::lookup_transparent_type): New member function.
6070 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6071 initializer.
6072 * objc-lang.c (objc_language_data): Likewise.
6073 * opencl-lang.c (opencl_language_data): Likewise.
6074 * p-lang.c (pascal_language_data): Likewise.
6075 * rust-lang.c (rust_language_data): Likewise.
6076 * symtab.c (symbol_matches_domain): Update call.
6077
1fb314aa
AB
60782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6079
6080 * ada-lang.c (ada_language_arch_info): Delete function, move
6081 implementation to...
6082 (ada_language::language_arch_info): ...here, a new member
6083 function.
6084 (ada_language_data): Delete la_language_arch_info.
6085 * c-lang.c (c_language_data): Likewise.
6086 (c_language::language_arch_info): New member function.
6087 (cplus_language_arch_info): Delete function, move
6088 implementation to...
6089 (cplus_language::language_arch_info): ...here, a new member
6090 function.
6091 (cplus_language_data): Delete la_language_arch_info.
6092 (asm_language_data): Likewise.
6093 (asm_language::language_arch_info): New member function.
6094 (minimal_language_data): Delete la_language_arch_info.
6095 (minimal_language::language_arch_info): New member function.
6096 * d-lang.c (d_language_arch_info): Delete function, move
6097 implementation to...
6098 (d_language::language_arch_info): ...here, a new member
6099 function.
6100 (d_language_data): Delete la_language_arch_info.
6101 * f-lang.c (f_language_arch_info): Delete function, move
6102 implementation to...
6103 (f_language::language_arch_info): ...here, a new member
6104 function.
6105 (f_language_data): Delete la_language_arch_info.
6106 * go-lang.c (go_language_arch_info): Delete function, move
6107 implementation to...
6108 (go_language::language_arch_info): ...here, a new member
6109 function.
6110 (go_language_data): Delete la_language_arch_info.
6111 * language.c (unknown_language_data): Likewise.
6112 (unknown_language::language_arch_info): New member function.
6113 (auto_language_data): Delete la_language_arch_info.
6114 (auto_language::language_arch_info): New member function.
6115 (language_gdbarch_post_init): Update call to
6116 la_language_arch_info.
6117 * language.h (language_data): Delete la_language_arch_info
6118 function pointer.
6119 (language_defn::language_arch_info): New function.
6120 * m2-lang.c (m2_language_arch_info): Delete function, move
6121 implementation to...
6122 (m2_language::language_arch_info): ...here, a new member
6123 function.
6124 (m2_language_data): Delete la_language_arch_info.
6125 * objc-lang.c (objc_language_arch_info): Delete function, move
6126 implementation to...
6127 (objc_language::language_arch_info): ...here, a new member
6128 function.
6129 (objc_language_data): Delete la_language_arch_info.
6130 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6131 implementation to...
6132 (opencl_language::language_arch_info): ...here, a new member
6133 function.
6134 (opencl_language_data): Delete la_language_arch_info.
6135 * p-lang.c (pascal_language_arch_info): Delete function, move
6136 implementation to...
6137 (pascal_language::language_arch_info): ...here, a new member
6138 function.
6139 (pascal_language_data): Delete la_language_arch_info.
6140 * rust-lang.c (rust_language_arch_info): Delete function, move
6141 implementation to...
6142 (rust_language::language_arch_info): ...here, a new member
6143 function.
6144 (rust_language_data): Delete la_language_arch_info.
6145
48448202
AB
61462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6147
6148 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6149 initializer.
6150 * c-lang.c (c_language_data): Likewise.
6151 (cplus_language_data): Likewise.
6152 (cplus_language::pass_by_reference_info): New method.
6153 (asm_language_data): Delete la_pass_by_reference initializer.
6154 (minimal_language_data): Likewise.
6155 * cp-abi.c (cp_pass_by_reference): Remove use of
6156 default_pass_by_reference.
6157 * d-lang.c (d_language_data): Likewise.
6158 * f-lang.c (f_language_data): Likewise.
6159 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6160 default_pass_by_reference.
6161 * go-lang.c (go_language_data): Likewise.
6162 * language.c (language_pass_by_reference): Update.
6163 (default_pass_by_reference): Delete.
6164 (unknown_language_data): Delete la_pass_by_reference
6165 initializer.
6166 (auto_language_data): Likewise.
6167 * language.h (struct language_data): Delete la_pass_by_reference
6168 field.
6169 (language_defn::pass_by_reference_info): New member function.
6170 (default_pass_by_reference): Delete declaration.
6171 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6172 initializer.
6173 * objc-lang.c (objc_language_data): Likewise.
6174 * opencl-lang.c (opencl_language_data): Likewise.
6175 * p-lang.c (pascal_language_data): Likewise.
6176 * rust-lang.c (rust_language_data): Likewise.
6177
15e5fd35
AB
61782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6179
6180 * ada-lang.c (ada_read_var_value): Delete function, move
6181 implementation to...
6182 (ada_language::read_var_value): ...here.
6183 (ada_language_data): Delete la_read_var_value initializer.
6184 * c-lang.c (c_language_data): Likewise.
6185 (cplus_language_data): Likewise.
6186 (minimal_language_data): Likewise.
6187 * d-lang.c (d_language_data): Likewise.
6188 * f-lang.c (f_language_data): Likewise.
6189 * findvar.c (default_read_var_value): Rename to...
6190 (language_defn::read_var_value): ...this.
6191 * findvar.c (read_var_value): Update header comment, and change to
6192 call member function instead of function pointer.
6193 * go-lang.c (go_language_data): Likewise.
6194 * language.c (unknown_language_data): Delete la_read_var_value
6195 initializer.
6196 (auto_language_data): Likewise.
6197 * language.h (struct language_data): Delete la_read_var_value
6198 field.
6199 (language_defn::read_var_value): New member function.
6200 (default_read_var_value): Delete declaration.
6201 * m2-lang.c (m2_language_data): Delete la_read_var_value
6202 initializer.
6203 * objc-lang.c (objc_language_data): Likewise.
6204 * opencl-lang.c (opencl_language_data): Likewise.
6205 * p-lang.c (pascal_language_data): Likewise.
6206 * rust-lang.c (rust_language_data): Likewise.
6207 * value.h (default_read_var_value): Delete declaration.
6208
5bd40f2a
AB
62092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6210
6211 * ada-lang.c (ada_print_array_index): Delete function, move
6212 implementation to...
6213 (ada_language::print_array_index): ...here.
6214 (ada_language_data): Delete la_print_array_index initializer.
6215 * c-lang.c (c_language_data): Likewise.
6216 (cplus_language_data): Likewise.
6217 (minimal_language_data): Likewise.
6218 * d-lang.c (d_language_data): Likewise.
6219 * f-lang.c (f_language_data): Likewise.
6220 * go-lang.c (go_language_data): Likewise.
6221 * language.c (default_print_array_index): Delete function, move
6222 implementation to...
6223 (language_defn::print_array_index): ...here.
6224 (unknown_language_data): Delete la_print_array_index initializer.
6225 (auto_language_data): Likewise.
6226 * language.h (struct language_data): Delete la_print_array_index
6227 field.
6228 (language_defn::print_array_index): New member function.
6229 (LA_PRINT_ARRAY_INDEX): Update.
6230 (default_print_array_index): Delete declaration.
6231 * m2-lang.c (m2_language_data): Delete la_print_array_index
6232 initializer.
6233 * objc-lang.c (objc_language_data): Likewise.
6234 * opencl-lang.c (opencl_language_data): Likewise.
6235 * p-lang.c (pascal_language_data): Likewise.
6236 * rust-lang.c (rust_language_data): Likewise.
6237
0874fd07
AB
62382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6239
6240 * gdb/ada-lang.c (ada_language_defn): Convert to...
6241 (ada_language_data): ...this.
6242 (class ada_language): New class.
6243 (ada_language_defn): New static global.
6244 * gdb/c-lang.c (c_language_defn): Convert to...
6245 (c_language_data): ...this.
6246 (class c_language): New class.
6247 (c_language_defn): New static global.
6248 (cplus_language_defn): Convert to...
6249 (cplus_language_data): ...this.
6250 (class cplus_language): New class.
6251 (cplus_language_defn): New static global.
6252 (asm_language_defn): Convert to...
6253 (asm_language_data): ...this.
6254 (class asm_language): New class.
6255 (asm_language_defn): New static global.
6256 (minimal_language_defn): Convert to...
6257 (minimal_language_data): ...this.
6258 (class minimal_language): New class.
6259 (minimal_language_defn): New static global.
6260 * gdb/d-lang.c (d_language_defn): Convert to...
6261 (d_language_data): ...this.
6262 (class d_language): New class.
6263 (d_language_defn): New static global.
6264 * gdb/f-lang.c (f_language_defn): Convert to...
6265 (f_language_data): ...this.
6266 (class f_language): New class.
6267 (f_language_defn): New static global.
6268 * gdb/go-lang.c (go_language_defn): Convert to...
6269 (go_language_data): ...this.
6270 (class go_language): New class.
6271 (go_language_defn): New static global.
6272 * gdb/language.c (unknown_language_defn): Remove declaration.
6273 (current_language): Initialize to nullptr, real initialization is
6274 moved to _initialize_language.
6275 (languages): Delete global.
6276 (language_defn::languages): Define.
6277 (set_language_command): Use language_defn::languages.
6278 (set_language): Likewise.
6279 (range_error): Likewise.
6280 (language_enum): Likewise.
6281 (language_def): Likewise.
6282 (add_set_language_command): Use language_def::languages for the
6283 language list, and language_def to lookup language pointers.
6284 (skip_language_trampoline): Use language_defn::languages.
6285 (unknown_language_defn): Convert to...
6286 (unknown_language_data): ...this.
6287 (class unknown_language): New class.
6288 (unknown_language_defn): New static global.
6289 (auto_language_defn): Convert to...
6290 (auto_language_data): ...this.
6291 (class auto_language): New class.
6292 (auto_language_defn): New static global.
6293 (language_gdbarch_post_init): Use language_defn::languages.
6294 (_initialize_language): Initialize current_language.
6295 * gdb/language.h (struct language_defn): Rename to...
6296 (struct language_data): ...this.
6297 (struct language_defn): New.
6298 (auto_language_defn): Delete.
6299 (unknown_language_defn): Delete.
6300 (minimal_language_defn): Delete.
6301 (ada_language_defn): Delete.
6302 (asm_language_defn): Delete.
6303 (c_language_defn): Delete.
6304 (cplus_language_defn): Delete.
6305 (d_language_defn): Delete.
6306 (f_language_defn): Delete.
6307 (go_language_defn): Delete.
6308 (m2_language_defn): Delete.
6309 (objc_language_defn): Delete.
6310 (opencl_language_defn): Delete.
6311 (pascal_language_defn): Delete.
6312 (rust_language_defn): Delete.
6313 * gdb/m2-lang.c (m2_language_defn): Convert to...
6314 (m2_language_data): ...this.
6315 (class m2_language): New class.
6316 (m2_language_defn): New static global.
6317 * gdb/objc-lang.c (objc_language_defn): Convert to...
6318 (objc_language_data): ...this.
6319 (class objc_language): New class.
6320 (objc_language_defn): New static global.
6321 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6322 (opencl_language_data): ...this.
6323 (class opencl_language): New class.
6324 (opencl_language_defn): New static global.
6325 * gdb/p-lang.c (pascal_language_defn): Convert to...
6326 (pascal_language_data): ...this.
6327 (class pascal_language): New class.
6328 (pascal_language_defn): New static global.
6329 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6330 language pointer, update comment format.
6331 * gdb/rust-lang.c (rust_language_defn): Convert to...
6332 (rust_language_data): ...this.
6333 (class rust_language): New class.
6334 (rust_language_defn): New static global.
6335
1313c56e
AB
63362020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6337
6338 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6339 member variable.
6340 <m_stmt_at_address>: New member variable.
6341 (lnp_state_machine::record_line): Don't record some lines, update
6342 tracking of is_stmt at the same address.
6343 (lnp_state_machine::lnp_state_machine): Initialise new member
6344 variables.
6345
b7ed9f3d
ST
63462020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6347
6348 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6349 "-include gnu-nat-mig.h".
6350 * gnu-nat-mig.h: New file.
6351 * gnu-nat.c: Include "gnu-nat-mig.h".
6352 (exc_server, msg_reply_server, notify_server,
6353 process_reply_server): Remove declarations.
6354
14a8ad62
ST
63552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6356
6357 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6358 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6359 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6360 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6361 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6362 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6363 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6364 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6365 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6366 to gnu_nat_target class.
6367 * gnu-nat.c: Likewise.
6368 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6369 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6370 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6371 object.
6372 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6373 instead of `gnu_target'.
6374
0af5e106
ST
63752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6376
6377 * i386-gnu-tdep.c: Include "gdbcore.h"
6378 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6379 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6380 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6381 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6382 i386_gnu_sigcontext_addr): New functions
6383 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6384 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6385 tdep.
6386
078f2fc9
ST
63872020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6388
6389 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6390 before fork_inferior call. Avoid calling it if target_is_pushed returns
6391 true.
6392
53dff92c
ST
63932020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6394
6395 * gnu-nat.h (gnu_target): New variable declaration.
6396 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6397 gnu_target.
6398 * gnu-nat.c (gnu_target): New variable.
6399 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6400 add_thread_silent, and add_thread calls.
6401 (gnu_nat_target::create_inferior): Pass gnu_target to
6402 add_thread_silent, thread_change_ptid call.
6403 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6404 call.
6405
5a8b8627
ST
64062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6407
6408 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6409 (gnu_nat_target::find_memory_regions): Remove unused
6410 `old_address' variable.
6411
366f550a
ST
64122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6413
6414 * gnu-nat.c: Include "gdbarch.h".
6415
f14871bf
ST
64162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6417
6418 * reply_mig_hack.awk (Error return): Cast function through
6419 void *, to bypass compiler function call check.
6420
c6887cfb
ST
64212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6422
6423 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6424 $(srcdir)/reply_mig_hack.awk.
6425
6930bffe
ST
64262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6427
6428 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6429
112c22ed
JG
64302020-05-30 Jonny Grant <jg@jguk.org>
6431
6432 * configure.ac (ACX_BUGURL): change bug URL to https.
6433
f68f85b5
PA
64342020-05-30 Pedro Alves <palves@redhat.com>
6435
6436 * cp-support.c (replace_typedefs_template): New.
6437 (replace_typedefs_qualified_name): Handle
6438 DEMANGLE_COMPONENT_TEMPLATE.
6439
976ca316
SM
64402020-05-29 Simon Marchi <simon.marchi@efficios.com>
6441
6442 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6443 dwarf2/index-cache.h, dwarf2/index-write.c,
6444 dwarf2/index-write.h, dwarf2/line-header.c,
6445 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6446 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6447 variables and fields from `dwarf2_per_objfile` to just
6448 `per_objfile` throughout.
6449
989ade05
SM
64502020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6451
6452 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6453 <push_dwarf_reg_entry_value>: Add comment.
6454
c47bae85
KB
64552020-05-28 Kevin Buettner <kevinb@redhat.com>
6456 Keith Seitz <keiths@redhat.com>
6457
6458 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6459 instead of PyEval_ReleaseLock.
6460 (class gdbpy_gil): Move to earlier in file.
6461 (finalize_python): Set gdb_python_initialized.
6462 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6463 when not initialized.
6464
44486dcf
SM
64652020-05-28 Simon Marchi <simon.marchi@efficios.com>
6466
6467 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6468 <push_dwarf_reg_entry_value>: Remove assert. Override
6469 per_objfile with caller_per_objfile.
6470
f030440d
TV
64712020-05-28 Tom de Vries <tdevries@suse.de>
6472
6473 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6474 PR gold/15646 workaround to symbol kind "type".
6475
f0fbb768
TT
64762020-05-27 Tom Tromey <tromey@adacore.com>
6477
6478 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6479
af0b2a3e
TT
64802020-05-27 Tom Tromey <tromey@adacore.com>
6481
6482 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6483 Use htab_find_with_hash.
6484 <add_abbrev>: Remove "abbrev_number" parameter.
6485 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6486 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6487 (hash_abbrev): Add comment.
6488 (abbrev_table::lookup_abbrev): Move to header file.
6489 (abbrev_table::read): Update.
6490
7d00ffec
TT
64912020-05-27 Tom Tromey <tromey@adacore.com>
6492
6493 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6494 method.
6495 <canonical_name>: New member.
6496 <raw_name>: Rename from "name".
6497 (partial_die_info): Initialize canonical_name.
6498 (scan_partial_symbols): Check raw_name.
6499 (partial_die_parent_scope, partial_die_full_name)
6500 (add_partial_symbol, add_partial_subprogram)
6501 (add_partial_enumeration, load_partial_dies): Use "name" method.
6502 (partial_die_info::name): New method.
6503 (partial_die_info::read, guess_partial_die_structure_name)
6504 (partial_die_info::fixup): Update.
6505
697bba18
TT
65062020-05-27 Tom Tromey <tromey@adacore.com>
6507
6508 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6509 <get_ref_die_offset>: Inline.
6510 <get_ref_die_offset_complaint>: New method.
6511 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6512 (attribute::get_ref_die_offset_complaint): Rename from
6513 get_ref_die_offset. Just issue complaint.
6514
c17ace43
HD
65152020-05-27 Hannes Domani <ssbssa@yahoo.de>
6516
6517 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6518
96445f0b
HD
65192020-05-27 Hannes Domani <ssbssa@yahoo.de>
6520
6521 * exec.c (exec_file_attach): Use errno value of first openp failure.
6522
ac637ec3
HD
65232020-05-27 Hannes Domani <ssbssa@yahoo.de>
6524
6525 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6526 Don't close thread handle.
6527
17ee85fc
TT
65282020-05-27 Tom Tromey <tom@tromey.com>
6529 Simon Marchi <simon.marchi@efficios.com>
6530
6531 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6532 shared_ptr.
6533 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6534 member.
6535 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6536 dwarf2_per_bfd_objfile_data_key>: New globals.
6537 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6538 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6539 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6540 shared.
6541 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6542 short-circuit when sharing.
6543 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6544 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6545
39b16f87
SM
65462020-05-27 Simon Marchi <simon.marchi@efficios.com>
6547
6548 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6549 to...
6550 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6551 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6552
fcf23d5b
SM
65532020-05-27 Simon Marchi <simon.marchi@efficios.com>
6554
6555 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6556 build_name_components, find_name_components_bounds>:
6557 Add per_objfile parameter.
6558 (struct mapped_index) <symbol_name_at>: Likewise.
6559 (struct mapped_debug_names): Remove constructor.
6560 <dwarf2_per_objfile>: Remove field.
6561 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6562 (mapped_index_base::find_name_components_bounds,
6563 mapped_index_base::build_name_components,
6564 dw2_expand_symtabs_matching_symbol): Likewise.
6565 (class mock_mapped_index) <symbol_name_at>: Likewise.
6566 (check_match): Likewise.
6567 (check_find_bounds_finds): Likewise.
6568 (test_mapped_index_find_name_component_bounds): Update.
6569 (CHECK_MATCH): Update.
6570 (dw2_expand_symtabs_matching): Update.
6571 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6572 per_objfile parameter.
6573 <find_vec_in_debug_names>: Likewise.
6574 <m_per_objfile>: New field.
6575 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6576 parameter.
6577 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6578 (dw2_debug_names_iterator::next): Update.
6579 (dw2_debug_names_lookup_symbol): Update.
6580 (dw2_debug_names_expand_symtabs_for_function): Update.
6581 (dw2_debug_names_map_matching_symbols): Update.
6582 (dw2_debug_names_expand_symtabs_matching): Update.
6583 (dwarf2_read_debug_names): Update.
6584
7188ed02
SM
65852020-05-27 Simon Marchi <simon.marchi@efficios.com>
6586
6587 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6588 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6589 move to dwarf2_per_objfile.
6590 <read_in_chain>: Remove.
6591 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6592 remove_all_cus, age_comp_units>: New methods.
6593 <m_dwarf2_cus>: New member.
6594 (struct dwarf2_per_cu_data) <cu>: Remove.
6595 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6596 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6597 moved to methods of dwarf2_per_objfile.
6598 (dwarf2_clear_marks): Remove.
6599 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6600 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6601 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6602 (dwarf2_per_objfile::remove_all_cus): New.
6603 (class free_cached_comp_units) <~free_cached_comp_units>:
6604 Update.
6605 (load_cu): Update.
6606 (dw2_do_instantiate_symtab): Adjust.
6607 (fill_in_sig_entry_from_dwo_entry): Adjust.
6608 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6609 (cutu_reader::cutu_reader): Likewise.
6610 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6611 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6612 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6613 and dwarf2_per_objfile::age_comp_units.
6614 (load_partial_comp_unit): Update.
6615 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6616 (process_queue): Likewise.
6617 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6618 backlink.
6619 (dwarf2_read_addr_index): Likewise.
6620 (follow_die_offset): Likewise.
6621 (dwarf2_fetch_die_loc_sect_off): Likewise.
6622 (dwarf2_fetch_constant_bytes): Likewise.
6623 (dwarf2_fetch_die_type_sect_off): Likewise.
6624 (follow_die_sig_1): Likewise.
6625 (load_full_type_unit): Likewise.
6626 (read_signatured_type): Likewise.
6627 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6628 (dwarf2_cu::~dwarf2_cu): Remove.
6629 (dwarf2_per_objfile::get_cu): New.
6630 (dwarf2_per_objfile::set_cu): New.
6631 (age_cached_comp_units): Rename to...
6632 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6633 to std::unordered_map.
6634 (free_one_cached_comp_unit): Rename to...
6635 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6636 to std::unordered_map.
6637 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6638 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6639 a dwarf2_per_objfile in data.
6640 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6641 (dwarf2_clear_marks): Remove.
6642
2e671100
SM
66432020-05-27 Simon Marchi <simon.marchi@efficios.com>
6644
6645 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6646 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6647 (init_tu_and_read_dwo_dies): Likewise.
6648 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6649 (cutu_reader::cutu_reader): Likewise.
6650 (load_partial_comp_unit): Likewise.
6651 (process_psymtab_comp_unit): Update.
6652 (build_type_psymtabs_1): Update.
6653 (process_skeletonless_type_unit): Update.
6654 (load_full_comp_unit): Update.
6655 (find_partial_die): Update.
6656 (dwarf2_read_addr_index): Update.
6657 (read_signatured_type): Update.
6658
2e6a9f79
SM
66592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6660
6661 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6662 m_header_read_in>: New fields.
6663 <get_header>: New method.
6664 * dwarf2/read.c (per_cu_header_read_in): Remove.
6665 (dwarf2_per_cu_data::get_header): New.
6666 (dwarf2_per_cu_data::addr_size): Update.
6667 (dwarf2_per_cu_data::offset_size): Update.
6668 (dwarf2_per_cu_data::ref_addr_size): Update.
6669
1b555f17
SM
66702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6671
6672 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6673 (dw2_do_instantiate_symtab): Update.
6674 (queue_and_load_all_dwo_tus): Change parameter from
6675 dwarf2_per_cu_data to dwarf2_cu.
6676 (dwarf2_fetch_die_loc_sect_off): Update.
6677 (dwarf2_fetch_constant_bytes): Update.
6678 (dwarf2_fetch_die_type_sect_off): Update.
6679
8fc0b21d
SM
66802020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6681
6682 * dwarf2/read.c (process_full_comp_unit,
6683 process_full_type_unit): Remove per_cu, per_objfile paramters.
6684 Add dwarf2_cu parameter.
6685 (process_queue): Update.
6686
168c9250
SM
66872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6688
6689 * dwarf2/read.c (create_cu_from_index_list): Replace
6690 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6691 (create_cus_from_index_list): Likewise.
6692 (create_cus_from_index): Likewise.
6693 (create_signatured_type_table_from_index): Likewise.
6694 (create_cus_from_debug_names_list): Likewise.
6695 (create_cus_from_debug_names): Likewise.
6696 (dwarf2_read_gdb_index): Update.
6697 (dwarf2_read_debug_names): Update.
6698
e286671b
TT
66992020-05-27 Tom Tromey <tom@tromey.com>
6700 Simon Marchi <simon.marchi@efficios.com>
6701
6702 * dwarf2/read.h (struct dwarf2_per_objfile)
6703 <get_type_for_signatured_type, set_type_for_signatured_type>:
6704 New methods.
6705 <m_type_map>: New member.
6706 (struct signatured_type) <type>: Remove.
6707 * dwarf2/read.c
6708 (dwarf2_per_objfile::get_type_for_signatured_type,
6709 dwarf2_per_objfile::set_type_for_signatured_type): New.
6710 (get_signatured_type): Use new methods.
6711
8adb8487
TT
67122020-05-27 Tom Tromey <tom@tromey.com>
6713 Simon Marchi <simon.marchi@efficios.com>
6714
6715 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6716 (struct dwarf2_per_objfile) <type_units>: New member.
6717 <get_type_unit_group_unshareable>: New method.
6718 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6719 num_symtabs, symtabs>: Remove; move to
6720 type_unit_group_unshareable.
6721 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6722 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6723 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6724
127bbf4b
SM
67252020-05-27 Simon Marchi <simon.marchi@efficios.com>
6726
6727 * dwarf2/read.h (struct dwarf2_per_cu_data):
6728 <dwarf2_per_objfile>: Remove.
6729 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6730 dwarf2_per_objfile.
6731 (create_signatured_type_table_from_index): Likewise.
6732 (create_signatured_type_table_from_debug_names): Likewise.
6733 (create_debug_type_hash_table): Likewise.
6734 (fill_in_sig_entry_from_dwo_entry): Likewise.
6735 (create_type_unit_group): Likewise.
6736 (read_comp_units_from_section): Likewise.
6737 (create_cus_hash_table): Likewise.
6738
f6e649dd
SM
67392020-05-27 Simon Marchi <simon.marchi@efficios.com>
6740
6741 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6742 dwarf2_per_cu_data::dwarf2_per_objfile.
6743 (compute_compunit_symtab_includes): Likewise.
6744 (dwarf2_cu::start_symtab): Likewise.
6745
aa66c379
SM
67462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6747
6748 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6749 parameter.
6750 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6751 (read_namespace_alias): Update.
6752 (lookup_die_type): Update.
6753 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6754 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6755 Update.
6756 (disassemble_dwarf_expression): Update.
6757
120ce1b5
SM
67582020-05-27 Simon Marchi <simon.marchi@efficios.com>
6759
6760 * dwarf2/read.h (struct dwarf2_queue_item): Add
6761 dwarf2_per_objfile parameter, assign new parameter.
6762 <per_objfile>: New field.
6763 * dwarf2/read.c (free_one_cached_comp_unit): Add
6764 dwarf2_per_objfile parameter.
6765 (queue_comp_unit): Likewise.
6766 (dw2_do_instantiate_symtab): Update.
6767 (process_psymtab_comp_unit): Update.
6768 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6769 (process_imported_unit_die): Update.
6770 (queue_and_load_dwo_tu): Update.
6771 (follow_die_offset): Update.
6772 (follow_die_sig_1): Update.
6773
9f47c707
SM
67742020-05-27 Simon Marchi <simon.marchi@efficios.com>
6775
6776 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6777 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6778 (read_call_site_scope): Assign per_objfile.
6779 (dwarf2_per_cu_data::objfile): Remove.
6780 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6781 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6782 dwarf2_per_objfile parameter.
6783 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6784 dwarf2_per_objfile parameter.
6785 (dwarf_expr_reg_to_entry_parameter): Add output
6786 dwarf2_per_objfile parameter.
6787 (locexpr_get_frame_base): Update.
6788 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6789 <push_dwarf_reg_entry_value>: Update.
6790 <call_site_to_target_addr>: Update.
6791 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6792 parameter.
6793 (value_of_dwarf_reg_entry): Update.
6794 (rw_pieced_value): Update.
6795 (indirect_synthetic_pointer): Update.
6796 (dwarf2_evaluate_property): Update.
6797 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6798 parameter.
6799 (locexpr_read_variable): Update.
6800 (locexpr_get_symbol_read_needs): Update.
6801 (loclist_read_variable): Update.
6802
14095eb3
SM
68032020-05-27 Simon Marchi <simon.marchi@efficios.com>
6804
6805 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6806 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6807 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6808 parameter.
6809 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6810 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6811 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6812 parameter.
6813 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6814 sect_variable_value): Add dwarf2_per_objfile parameter.
6815 (class dwarf_evaluate_loc_desc) <dwarf_call,
6816 dwarf_variable_value>: Update.
6817 (fetch_const_value_from_synthetic_pointer): Add
6818 dwarf2_per_objfile parameter.
6819 (fetch_const_value_from_synthetic_pointer): Update.
6820 (coerced_pieced_ref): Update.
6821 (class symbol_needs_eval_context) <dwarf_call,
6822 dwarf_variable_value>: Update.
6823 (dwarf2_compile_expr_to_ax): Update.
6824
3c3cd3d4
SM
68252020-05-27 Simon Marchi <simon.marchi@efficios.com>
6826
6827 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6828 parameter.
6829 (dwarf2_evaluate_loc_desc_full): Update.
6830
82ca3f51
SM
68312020-05-27 Simon Marchi <simon.marchi@efficios.com>
6832
6833 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6834 parameter.
6835 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6836 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6837 dwarf2_per_objfile parameter.
6838 (decode_debug_loc_dwo_addresses): Likewise.
6839 (dwarf2_find_location_expression): Update.
6840 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6841 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6842 parameter.
6843 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6844 parameter.
6845 (locexpr_describe_location_1): Likewise.
6846 (locexpr_describe_location): Update.
6847
4b167ea1
SM
68482020-05-27 Simon Marchi <simon.marchi@efficios.com>
6849
6850 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6851 Remove.
6852 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6853 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6854 (dwarf2_compile_property_to_c): Update.
6855 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6856 use text offset from objfile.
6857 (locexpr_tracepoint_var_ref): Update.
6858 (locexpr_generate_c_location): Update.
6859 (loclist_describe_location): Update.
6860 (loclist_tracepoint_var_ref): Update.
6861 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6862 dwarf2_per_objfile parameter.
6863 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6864 use text offset from objfile.
6865 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6866
89b07335
SM
68672020-05-27 Simon Marchi <simon.marchi@efficios.com>
6868
6869 * dwarf2/expr.h (struct dwarf_expr_context)
6870 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6871 <offset>: Remove.
6872 <per_objfile>: New member.
6873 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6874 dwarf2_per_objfile parameter. Don't set offset, set
6875 per_objfile.
6876 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6877 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6878 a dwarf2_per_objfile object instead of an offset.
6879 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6880 constructor.
6881 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6882 to dwarf2_expr_executor constructor. Don't set offset.
6883 (dwarf2_fetch_cfa_info): Update.
6884 (struct dwarf2_frame_cache) <text_offset>: Remove.
6885 <per_objfile>: New field.
6886 (dwarf2_frame_cache): Update.
6887 (dwarf2_frame_prev_register): Update.
6888 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6889 <dwarf_evaluate_loc_desc>: Add constructor.
6890 (dwarf2_evaluate_loc_desc_full): Update.
6891 (dwarf2_locexpr_baton_eval): Update.
6892 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6893 Add constructor.
6894 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6895
293e7e51
SM
68962020-05-27 Simon Marchi <simon.marchi@efficios.com>
6897
6898 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6899 addr_sized_int_type>: Move to dwarf2_cu.
6900 <int_type>: Move to dwarf2_per_objfile.
6901 (struct dwarf2_per_objfile) <int_type>: Move here.
6902 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6903 addr_sized_int_type>: Move here.
6904 (read_func_scope): Update.
6905 (read_array_type): Update.
6906 (read_tag_string_type): Update.
6907 (attr_to_dynamic_prop): Update.
6908 (dwarf2_per_cu_data::int_type): Rename to...
6909 (dwarf2_per_objfile::int_type): ... this.
6910 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6911 (dwarf2_cu::addr_sized_int_type): ... this.
6912 (read_subrange_type): Update.
6913 (dwarf2_per_cu_data::addr_type): Rename to...
6914 (dwarf2_cu::addr_type): ... this.
6915 (set_die_type): Update.
6916
64874a40
SM
69172020-05-27 Simon Marchi <simon.marchi@efficios.com>
6918
6919 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6920 data through per_cu->cu.
6921
4ab09049
SM
69222020-05-27 Simon Marchi <simon.marchi@efficios.com>
6923
6924 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6925 dwarf2_per_cu_data parameter fo dwarf2_cu.
6926 (lookup_dwo_type_unit): Likewise.
6927 (read_cutu_die_from_dwo): Likewise.
6928 (lookup_dwo_unit): Likewise.
6929 (open_and_init_dwo_file): Likewise.
6930 (lookup_dwo_cutu): Likewise.
6931 (lookup_dwo_comp_unit): Likewise.
6932 (lookup_dwo_type_unit): Likewise.
6933 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6934 (cutu_reader::cutu_reader): Update.
6935
47b14e86
SM
69362020-05-27 Simon Marchi <simon.marchi@efficios.com>
6937
6938 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6939 parameter.
6940 (process_full_type_unit): Likewise.
6941 (process_queue): Update.
6942
43182c09
SM
69432020-05-27 Simon Marchi <simon.marchi@efficios.com>
6944
6945 * dwarf2/read.c (recursively_compute_inclusions): Add
6946 dwarf2_per_objfile parameter.
6947 (compute_compunit_symtab_includes): Likewise.
6948 (process_cu_includes): Update.
6949
7aa104c4
SM
69502020-05-27 Simon Marchi <simon.marchi@efficios.com>
6951
6952 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6953 parameter.
6954 (create_type_unit_group): Update.
6955 (process_psymtab_comp_unit_reader): Update.
6956 (build_type_psymtabs_reader): Update.
6957
e3beb21d
SM
69582020-05-27 Simon Marchi <simon.marchi@efficios.com>
6959
6960 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6961 object through m_this_cu->cu.
6962
d460f660
SM
69632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6964
6965 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6966 the info parameter.
6967 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6968
ab432490
SM
69692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6970
6971 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6972 per_objfile parameter.
6973 (load_full_type_unit): Add per_objfile parameter.
6974 (read_signatured_type): Likewise.
6975 (load_full_comp_unit): Likewise.
6976 (load_cu): Likewise.
6977 (dw2_do_instantiate_symtab): Likewise.
6978 (dw2_get_file_names): Likewise.
6979 (dw2_map_symtabs_matching_filename): Update.
6980 (dw_expand_symtabs_matching_file_matcher): Update.
6981 (dw2_map_symbol_filenames): Update.
6982 (process_psymtab_comp_unit): Add per_objfile parameter.
6983 (build_type_psymtabs_1): Update.
6984 (process_skeletonless_type_unit): Update.
6985 (dwarf2_build_psymtabs_hard): Update.
6986 (load_partial_comp_unit): Add per_objfile parameter.
6987 (scan_partial_symbols): Update.
6988 (load_full_comp_unit): Add per_objfile parameter.
6989 (process_imported_unit_die): Update.
6990 (create_cus_hash_table): Update.
6991 (find_partial_die): Update.
6992 (dwarf2_read_addr_index): Update.
6993 (follow_die_offset): Update.
6994 (dwarf2_fetch_die_loc_sect_off): Update.
6995 (dwarf2_fetch_constant_bytes): Update.
6996 (dwarf2_fetch_die_type_sect_off): Update.
6997 (follow_die_sig_1): Update.
6998 (load_full_type_unit): Add per_objfile parameter.
6999 (read_signatured_type): Likewise.
7000
313bad1b
SM
70012020-05-27 Simon Marchi <simon.marchi@efficios.com>
7002
7003 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7004 of objfile_name.
7005
c3699833
SM
70062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7007
7008 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7009 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7010 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7011 field.
7012 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7013 (create_cus_from_index): Update.
7014 (dwarf2_read_gdb_index): Update.
7015 (create_cus_from_debug_names): Update.
7016 (dwarf2_read_debug_names): Update.
7017 (get_abbrev_section_for_cu): Update.
7018 (create_all_comp_units): Update.
7019 (read_attribute_value): Update.
7020 (get_debug_line_section): Update.
7021 * dwarf2/index-cache.c (index_cache::store): Update.
7022 * dwarf2/index-write.c (save_gdb_index_command): Update.
7023 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7024
1859c670
SM
70252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7026
7027 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7028 member.
7029 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7030 dwarf2_per_cu_data::per_bfd.
7031 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7032 (create_type_unit_group): Likewise.
7033 (queue_comp_unit): Remove reference to
7034 per_cu->dwarf2_per_objfile.
7035 (maybe_queue_comp_unit): Likewise.
7036 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7037 (create_cus_hash_table): Assign new field.
7038
5e22e966
SM
70392020-05-27 Simon Marchi <simon.marchi@efficios.com>
7040
7041 * dwarf2/read.c: Replace
7042 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7043 dwarf2_cu->per_objfile throughout.
7044
97a1449a
SM
70452020-05-27 Simon Marchi <simon.marchi@efficios.com>
7046
7047 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7048 parameter, don't use per_cu->dwarf2_per_objfile.
7049 (dw2_instantiate_symtab): Likewise.
7050 (dw2_find_last_source_symtab): Update.
7051 (dw2_map_expand_apply): Update.
7052 (dw2_lookup_symbol): Update.
7053 (dw2_expand_symtabs_for_function): Update.
7054 (dw2_expand_all_symtabs): Update.
7055 (dw2_expand_symtabs_with_fullname): Update.
7056 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7057 don't use per_cu->dwarf2_per_objfile.
7058 (dw2_expand_marked_cus): Update.
7059 (dw2_find_pc_sect_compunit_symtab): Update.
7060 (dw2_debug_names_lookup_symbol): Update.
7061 (dw2_debug_names_expand_symtabs_for_function): Update.
7062 (dw2_debug_names_map_matching_symbols): Update.
7063 (dwarf2_psymtab::expand_psymtab): Update.
7064
9e021579
SM
70652020-05-27 Simon Marchi <simon.marchi@efficios.com>
7066
7067 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7068 <per_objfile>: New member.
7069 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7070 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7071 call to dwarf2_cu.
7072 (cutu_reader::cutu_reader): Update.
7073 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7074
ae090bdb
SM
70752020-05-27 Simon Marchi <simon.marchi@efficios.com>
7076
7077 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7078 struct dwarf2_per_objfile.
7079 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7080 dwarf2_per_bfd.
7081 * dwarf2/read.c (set_die_type): Update.
7082 (get_die_type_at_offset): Update.
7083
af758d11
SM
70842020-05-27 Tom Tromey <tom@tromey.com>
7085 Simon Marchi <simon.marchi@efficios.com>
7086
7087 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7088 method.
7089 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7090 get_symtab, set_symtab>: New methods.
7091 <m_symtabs>: New field.
7092 (struct dwarf2_psymtab): Derive from partial_symtab.
7093 <readin_p, get_compunit_symtab>: Declare methods.
7094 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7095 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7096 New methods.
7097 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7098 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7099 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7100 (dw2_symtab_iter_next, dw2_print_stats)
7101 (dw2_expand_symtabs_with_fullname)
7102 (dw2_expand_symtabs_matching_one)
7103 (dw_expand_symtabs_matching_file_matcher)
7104 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7105 (dw2_debug_names_iterator::next)
7106 (dw2_debug_names_map_matching_symbols)
7107 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7108 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7109 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7110 New methods.
7111 (get_compunit_symtab, process_full_comp_unit)
7112 (process_full_type_unit): Update.
7113 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7114
5989a64e
SM
71152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7116
7117 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7118 then introduce a new dwarf2_per_objfile type.
7119 <read_line_string>: Move to the new dwarf2_per_objfile type.
7120 <objfile>: Likewise.
7121 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7122 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7123 dwarf2_per_objfile->per_bfd.
7124 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7125 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7126 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7127 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7128 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7129 (dwarf2_per_objfile::locate_sections): Rename to...
7130 (dwarf2_per_bfd::locate_sections): ... this.
7131 (dwarf2_per_objfile::get_cutu): Rename to...
7132 (dwarf2_per_bfd::get_cutu): ... this.
7133 (dwarf2_per_objfile::get_cu): Rename to...
7134 (dwarf2_per_bfd::get_cu): ... this.
7135 (dwarf2_per_objfile::get_tu): Rename to...
7136 (dwarf2_per_bfd::get_tu): ... this.
7137 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7138 (dwarf2_per_bfd::allocate_per_cu): ... this.
7139 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7140 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7141 (get_gdb_index_contents_ftype): Change parameter from
7142 dwarf2_per_objfile to dwarf2_per_bfd.
7143 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7144 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7145
a50264ba
TT
71462020-05-27 Tom Tromey <tom@tromey.com>
7147 Simon Marchi <simon.marchi@efficios.com>
7148
7149 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7150 (allocate_piece_closure): Set "per_objfile" member.
7151 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7152 (locexpr_describe_location, loclist_describe_location): Use new
7153 member.
7154 * dwarf2/read.c (read_call_site_scope)
7155 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7156 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7157 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7158 handle_data_member_location): Set per_objfile member.
7159 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7160 member.
7161 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7162
d3473f0c
TT
71632020-05-27 Tom Tromey <tom@tromey.com>
7164
7165 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7166 allocate_signatured_type>: Declare new methods.
7167 <m_num_psymtabs>: New member.
7168 (struct dwarf2_per_cu_data) <index>: New member.
7169 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7170 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7171 (create_cu_from_index_list): Use allocate_per_cu.
7172 (create_signatured_type_table_from_index)
7173 (create_signatured_type_table_from_debug_names)
7174 (create_debug_type_hash_table, add_type_unit)
7175 (read_comp_units_from_section): Use allocate_signatured_type.
7176
5717c425
TT
71772020-05-27 Tom Tromey <tom@tromey.com>
7178
7179 * psymtab.c (partial_map_expand_apply)
7180 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7181 (psym_lookup_global_symbol_language)
7182 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7183 (psym_print_stats, psym_expand_symtabs_for_function)
7184 (psym_map_symbol_filenames, psym_map_matching_symbols)
7185 (psym_expand_symtabs_matching)
7186 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7187 (maintenance_check_psymtabs): Update.
7188 * psympriv.h (struct partial_symtab) <readin_p,
7189 get_compunit_symtab>: Add objfile parameter.
7190 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7191 Likewise.
7192 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7193 get_compunit_symtab>: Likewise.
7194 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7195
45940949
TT
71962020-05-27 Tom Tromey <tom@tromey.com>
7197
7198 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7199 member.
7200 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7201 (create_cu_from_index_list)
7202 (create_signatured_type_table_from_index)
7203 (create_signatured_type_table_from_debug_names)
7204 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7205 (dwarf2_create_include_psymtab)
7206 (create_debug_type_hash_table, add_type_unit)
7207 (create_type_unit_group, read_comp_units_from_section)
7208 (dwarf2_compute_name, create_cus_hash_table)
7209 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7210 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7211 obstack.
7212 (dw2_get_real_path): Likewise. Change argument to
7213 dwarf2_per_objfile.
7214
f8c6d152
LM
72152020-05-27 Luis Machado <luis.machado@linaro.org>
7216
7217 PR tdep/26000
7218 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7219 for ldrd (immediate).
7220
e98d2e6d
PW
72212020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7222
7223 * command.h: Add comment giving the name of class_tui.
7224 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7225 create the fake command for the help for class_tui.
7226
53a47a3e
TT
72272020-05-26 Tom Tromey <tromey@adacore.com>
7228
7229 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7230 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7231 (val_atr): New function.
7232 (value_val_atr): Use it.
7233 * ada-valprint.c (print_optional_low_bound): Change low bound
7234 handling for enums.
7235 (val_print_packed_array_elements): Don't call discrete_position.
7236 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7237 discrete_position for enum types.
7238 * language.c (default_print_array_index): Change type.
7239 * language.h (struct language_defn) <la_print_array_index>: Add
7240 index_type parameter, change type of index_value.
7241 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7242 (default_print_array_index): Update.
7243 * valprint.c (maybe_print_array_index): Don't call
7244 value_from_longest. Update.
7245 (value_print_array_elements): Don't call discrete_position.
7246
0bc2354b
TT
72472020-05-26 Tom Tromey <tromey@adacore.com>
7248
7249 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7250 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7251
1218a4bf
CDA
72522020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7253
7254 PR gdb/13519
7255 * avr-tdep.c (avr_integer_to_address): Return data or code
7256 address accordingly to the second 'type' argument of the
7257 function.
7258
92651b1d
MW
72592020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7260
7261 * infcmd.c, inferior.h: (construct_inferior_arguments):
7262 Moved function from here to gdbsupport/common-inferior.{h,cc}
7263
0a4f5f8c
TT
72642020-05-23 Tom Tromey <tom@tromey.com>
7265
7266 Revert commit eca1f90c:
7267 * NEWS: Remove entry for completion styling.
7268 * completer.c (_rl_completion_prefix_display_length): Move
7269 declaration later.
7270 (gdb_fnprint): Revert.
7271 (gdb_display_match_list_1): Likewise.
7272 * cli/cli-style.c (completion_prefix_style)
7273 (completion_difference_style, completion_suffix_style): Remove.
7274 (_initialize_cli_style): Revert.
7275 * cli/cli-style.h (completion_prefix_style)
7276 (completion_difference_style, completion_suffix_style): Don't
7277 declare.
7278
e08bd6c5
PA
72792020-05-24 Pedro Alves <palves@redhat.com>
7280
7281 * symtab.c (completion_list_add_name): Return boolean indication
7282 of whether the symbol matched.
7283 (completion_list_add_symbol): Don't try to remove C++ aliases if
7284 the symbol didn't match in the first place.
7285 * symtab.h (completion_list_add_name): Return bool.
7286
ceacbf6e
SM
72872020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7288
7289 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7290 type::field.
7291
26f16254
JB
72922020-05-23 Joel Brobecker <brobecker@adacore.com>
7293
7294 GDB 9.2 released.
7295
eca1f90c
TT
72962020-05-23 Tom Tromey <tom@tromey.com>
7297
7298 * NEWS: Add entry for completion styling.
7299 * completer.c (_rl_completion_prefix_display_length): Move
7300 declaration earlier.
7301 (gdb_fnprint): Use completion_style.
7302 (gdb_display_match_list_1): Likewise.
7303 * cli/cli-style.c (completion_prefix_style)
7304 (completion_difference_style, completion_suffix_style): New
7305 globals.
7306 (_initialize_cli_style): Register new globals.
7307 * cli/cli-style.h (completion_prefix_style)
7308 (completion_difference_style, completion_suffix_style): Declare.
7309
51e2cfa2
PA
73102020-05-23 Pedro Alves <palves@redhat.com>
7311
7312 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7313 (parse_escape): Use ISDIGIT instead of isdigit.
7314 (puts_debug): Use gdb_isprint instead of isprint.
7315 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7316 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7317 ISSPACE instead of isspace.
7318 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7319 instead of isspace.
7320 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7321 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7322 instead of isxdigit and ISDIGIT instead of isdigit.
7323
80fc5e77
SM
73242020-05-22 Simon Marchi <simon.marchi@efficios.com>
7325
7326 * gdbtypes.h (struct type) <field>: New method.
7327 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7328 or type::field.
7329
3cabb6b0
SM
73302020-05-22 Simon Marchi <simon.marchi@efficios.com>
7331
7332 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7333 (TYPE_FIELDS): Use type::fields. Change all call sites that
7334 modify the propery to use type::set_fields instead.
7335
1f704f76
SM
73362020-05-22 Simon Marchi <simon.marchi@efficios.com>
7337
7338 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7339 type::num_fields instead.
7340
5e33d5f4
SM
73412020-05-22 Simon Marchi <simon.marchi@efficios.com>
7342
7343 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7344 methods.
7345 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7346 that modify the number of fields to use type::set_num_fields
7347 instead.
7348
9392ebb3
TT
73492020-05-22 Tom Tromey <tromey@adacore.com>
7350
7351 * compile/compile-object-load.h (munmap_list_free): Don't
7352 declare.
7353
7c13f4e8
AB
73542020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7355
7356 * annotate.c (annotate_source_line): Update return type, add call
7357 to update current symtab and line.
7358 * annotate.h (annotate_source_line): Update return type, and
7359 extend header comment.
7360 * source.c (info_line_command): Check annotation_level before
7361 calling annotate_source_line.
7362 * stack.c (print_frame_info): If calling annotate_source_line
7363 returns true, then don't print any other source line information.
7364
aa370940
SM
73652020-05-21 Simon Marchi <simon.marchi@efficios.com>
7366
7367 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7368
84d53fa9
SM
73692020-05-21 Simon Marchi <simon.marchi@efficios.com>
7370
7371 * coffread.c (patch_type): Remove NULL check before xfree.
7372 * corefile.c (set_gnutarget): Likewise.
7373 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7374 * exec.c (build_section_table): Likewise.
7375 * remote.c (remote_target::pass_signals): Likewise.
7376 * utils.c (n_spaces): Likewise.
7377 * cli/cli-script.c (document_command): Likewise.
7378 * i386-windows-tdep.c (core_process_module_section): Likewise.
7379 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7380
9d428aae
SM
73812020-05-20 Simon Marchi <simon.marchi@efficios.com>
7382
7383 * symfile.c (reread_symbols): Clear objfile's section_offsets
7384 vector and section indices, re-compute them by calling
7385 sym_offsets.
7386
250106a7
TT
73872020-05-20 Tom Tromey <tromey@adacore.com>
7388
7389 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7390 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7391
9a0bacfb
TV
73922020-05-20 Tom de Vries <tdevries@suse.de>
7393
7394 PR symtab/25833
7395 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7396
7b958a48
AM
73972020-05-20 Alan Modra <amodra@gmail.com>
7398
7399 PR 25993
7400 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7401 bfd_set_filename.
7402 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7403 passed to bfd_set_filename.
7404 * symfile-mem.c (add_vsyscall_page): Likewise for string
7405 passed to symbol_file_add_from_memory.
7406 (symbol_file_add_from_memory): Make name param a const char* and
7407 don't strdup.
7408
c7e97679
AM
74092020-05-20 Alan Modra <amodra@gmail.com>
7410
7411 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7412 rather than accessing bfd->filename directly.
7413 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7414 and use bfd_section_name.
7415 * dwarf2/frame.c (decode_frame_entry): Likewise.
7416 * exec.c (exec_set_section_address): Likewise.
7417 * solib-aix.c (solib_aix_bfd_open): Likewise.
7418 * stap-probe.c (get_stap_base_address): Likewise.
7419 * symfile.c (reread_symbols): Likewise.
7420
563c591b
TT
74212020-05-19 Tom Tromey <tromey@adacore.com>
7422
7423 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7424
f408d82c
SM
74252020-05-19 Simon Marchi <simon.marchi@efficios.com>
7426
7427 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7428
98c59b52
PA
74292020-05-19 Pedro Alves <palves@redhat.com>
7430
7431 * NEWS (set exec-file-mismatch): Adjust entry.
7432 * exec.c: Include "build-id.h".
7433 (validate_exec_file): Try to match build IDs instead of filenames.
7434 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7435 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7436 and pass down 'warn_if_slow'.
7437 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7438 gdb_bfd_open_closure to pass it down.
7439 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7440
4111f652
PA
74412020-05-19 Pedro Alves <palves@redhat.com>
7442
7443 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7444 * target.c (target_fileio_open_1): Rename to target_fileio_open
7445 and make extern. Use bool.
7446 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7447 (target_fileio_read_alloc_1): Adjust.
7448 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7449 (target_fileio_open_warn_if_slow): Delete declaration.
7450
ad80db5b
PA
74512020-05-19 Pedro Alves <palves@redhat.com>
7452
7453 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7454 Adjust all callers.
7455
1d6ce4d3
YS
74562020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7457
7458 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7459 whether disp is negative.
7460
9005fbbb
SM
74612020-05-19 Simon Marchi <simon.marchi@efficios.com>
7462
7463 * symfile.h (struct symfile_segment_data)
7464 <~symfile_segment_data>: Remove.
7465 <segment_info>: Change to std::vector.
7466 * symfile.c (default_symfile_segments): Update.
7467 * elfread.c (elf_symfile_segments): Update.
7468
68b888ff
SM
74692020-05-19 Simon Marchi <simon.marchi@efficios.com>
7470
7471 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7472 <segments>: New.
7473 <segment_bases, segment_sizes>: Remove.
7474 * symfile.c (default_symfile_segments): Update.
7475 * elfread.c (elf_symfile_segments): Update.
7476 * remote.c (remote_target::get_offsets): Update.
7477 * solib-target.c (solib_target_relocate_section_addresses):
7478 Update.
7479
62982abd
SM
74802020-05-19 Simon Marchi <simon.marchi@efficios.com>
7481
7482 * symfile.h (struct symfile_segment_data): Initialize fields.
7483 <~symfile_segment_data>: Add.
7484 (symfile_segment_data_up): New.
7485 (struct sym_fns) <sym_segments>: Return a
7486 symfile_segment_data_up.
7487 (default_symfile_segments): Return a symfile_segment_data_up.
7488 (free_symfile_segment_data): Remove.
7489 (get_symfile_segment_data): Return a symfile_segment_data_up.
7490 * symfile.c (default_symfile_segments): Likewise.
7491 (get_symfile_segment_data): Likewise.
7492 (free_symfile_segment_data): Remove.
7493 (symfile_find_segment_sections): Update.
7494 * elfread.c (elf_symfile_segments): Return a
7495 symfile_segment_data_up.
7496 * remote.c (remote_target::get_offsets): Update.
7497 * solib-target.c (solib_target_relocate_section_addresses):
7498 Update.
7499 * symfile-debug.c (debug_sym_segments): Return a
7500 symfile_segment_data_up.
7501
7f204339
RO
75022020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7503
e52a0f1b
RO
7504 PR build/25981
7505 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7506 Hardcode register numbers.
7507
7f204339
RO
7508 PR build/25981
7509 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7510 procfs_find_LDT_entry): Remove.
7511 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7512 procfs_find_LDT_entry): Remove.
7513 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7514 Remove.
7515
7f32a4d5
PA
75162020-05-17 Pedro Alves <palves@redhat.com>
7517 Andrew Burgess <andrew.burgess@embecosm.com>
7518 Keno Fischer <keno@juliacomputing.com>
7519
7520 PR gdb/25741
7521 * breakpoint.c (build_target_condition_list): Update comments.
7522 (build_target_command_list): Update comments and skip matching
7523 locations.
7524 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7525 a separate function. Simplify "set breakpoint auto-hw off"
7526 handling.
7527 (insert_breakpoints): Update comment.
7528 (tracepoint_locations_match): New parameter. For breakpoints,
7529 compare location types too, if the caller wants to.
7530 (handle_automatic_hardware_breakpoints): New functions.
7531 (bp_location_is_less_than): Also sort by location type and
7532 hardware breakpoint length.
7533 (update_global_location_list): Handle "set breakpoint auto-hw on"
7534 here.
7535 (update_breakpoint_locations): Ask breakpoint_locations_match to
7536 ignore location types.
7537
7d93a1e0
SM
75382020-05-16 Simon Marchi <simon.marchi@efficios.com>
7539
7540 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7541 type::name instead.
7542
d0e39ea2
SM
75432020-05-16 Simon Marchi <simon.marchi@efficios.com>
7544
7545 * gdbtypes.h (struct type) <name, set_name>: New methods.
7546 (TYPE_CODE): Use type::name. Change all call sites used to set
7547 the name to use type::set_name instead.
7548
2dab0c7b
TT
75492020-05-16 Tom Tromey <tom@tromey.com>
7550
7551 * top.c (quit_force): Update.
7552 * infrun.c (handle_no_resumed): Update.
7553 * top.h (all_uis): New function.
7554 (ALL_UIS): Remove.
7555
59f7bd8d
SM
75562020-05-16 Simon Marchi <simon.marchi@efficios.com>
7557
7558 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7559
9bf058f0
PA
75602020-05-16 Pedro Alves <palves@redhat.com>
7561
7562 * ia64-linux-nat.c
7563 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7564 Declare method.
7565 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7566
8f86ae1a
SM
75672020-05-15 Simon Marchi <simon.marchi@efficios.com>
7568
7569 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7570 (sparc64_adi_info): Likewise.
7571
d6bc0792
TT
75722020-05-15 Tom Tromey <tom@tromey.com>
7573
7574 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7575 block_objfile.
7576 (lookup_objfile_from_block): Remove.
7577 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7578 (lookup_global_symbol): Use block_objfile.
7579 * symtab.h (lookup_objfile_from_block): Don't declare.
7580 * printcmd.c (clear_dangling_display_expressions): Use
7581 block_objfile.
7582 * parse.c (operator_check_standard): Use block_objfile.
7583
8c14c3a3
TT
75842020-05-15 Tom Tromey <tom@tromey.com>
7585
7586 * language.c (language_alloc_type_symbol): Set
7587 SYMBOL_SECTION.
7588 * symtab.c (initialize_objfile_symbol): Remove.
7589 (allocate_symbol): Remove.
7590 (allocate_template_symbol): Remove.
7591 * dwarf2/read.c (fixup_go_packaging): Use "new".
7592 (new_symbol): Use "new".
7593 (read_variable): Don't call initialize_objfile_symbol. Use
7594 "new".
7595 (read_func_scope): Use "new".
7596 * xcoffread.c (process_xcoff_symbol): Don't call
7597 initialize_objfile_symbol.
7598 (SYMBOL_DUP): Remove.
7599 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7600 "new".
7601 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7602 (allocate_template_symbol): Don't declare.
7603 (struct symbol): Add copy constructor. Change defaults.
7604 * jit.c (finalize_symtab): Use "new".
7605 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7606 Use "new".
7607 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7608 (common_block_end): Use "new".
7609 * mdebugread.c (parse_symbol): Use "new".
7610 (new_symbol): Likewise.
7611
5b4a1a8d
PW
76122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7613
7614 * NEWS: Mention changes to help and apropos.
7615
57b4f16e
PW
76162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7617
7618 * command.h (enum command_class): Improve comments, document
7619 that class_alias is for user-defined aliases, give the class
7620 name for each class, remove unused class_xdb.
7621 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7622 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7623 by a precise class.
7624 * infcmd.c (_initialize_infcmd): Likewise.
7625 * reverse.c (_initialize_reverse): Likewise.
7626 * stack.c (_initialize_stack): Likewise.
7627 * symfile.c (_initialize_symfile): Likewise.
7628 * tracepoint.c (_initialize_tracepoint): Likewise.
7629
7c05caf7
PW
76302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7631
7632 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7633 when their aliased command is traversed.
7634 (help_cmd): Add fput_command_names_styled call to
7635 output command name and aliases when command has an alias.
7636
3b3aaacb
PW
76372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7638
7639 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7640 * cli/cli-decode.c (help_cmd_list): Declare as static,
7641 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7642 a command together with the command.
7643 (fput_command_name_styled, fput_command_names_styled): New functions.
7644 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7645 fput_command_name_styled.
7646 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7647 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7648
7aa1b46f
PW
76492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7650
7651 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7652 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7653 * command.h (cmd_show_list): Likewise.
7654 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7655 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7656
89bcba74
PW
76572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7658
7659 * unittests/command-def-selftests.c (traverse_command_structure):
7660 Verify all commands of a list have the same prefix command and
7661 that only the top cmdlist commands have a null prefix.
7662
3f4d92eb
PW
76632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7664
7665 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7666 as prefix, not one of its aliases.
7667 (set_cmd_prefix): Remove.
7668 (do_add_cmd): Centralize the setting of the prefix of a command, when
7669 command is defined after its full chain of prefix commands.
7670 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7671 (add_setshow_cmd_full): Likewise.
7672 (update_prefix_field_of_prefixed_commands): New function.
7673 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7674 update_prefix_field_of_prefixed_commands.
7675 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7676 addresses of remote_set_cmdlist and remote_show_cmdlist given
7677 as argument, not the address of an argument.
7678 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7679 * gdb/remote.c (_initialize_remote): Likewise.
7680
0605465f
PW
76812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7682
7683 * cli/cli-cmds.c (alias_command): Check for an existing alias
7684 using lookup_cmd_composition, as valid_command_p is too strict
7685 and forbids aliases that are the prefix of an existing alias
7686 or command.
7687 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7688 command is properly recognised as a valid command.
7689
58e6ac70
PW
76902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7691
7692 * unittests/help-doc-selftests.c: Rename to
7693 unittests/command-def-selftests.c
7694 * unittests/command-def-selftests.c (help_doc_tests): Update some
7695 comments.
7696 (command_structure_tests, traverse_command_structure): New namespace
7697 and function.
7698 (command_structure_invariants_tests): New function.
7699 (_initialize_command_def_selftests) Renamed from
7700 _initialize_help_doc_selftests, register command_structure_invariants
7701 selftest.
7702
a7b9ceb8
PW
77032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7704
7705 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7706 an alias of 'show'.
7707
b2188a06
JB
77082020-05-15 Joel Brobecker <brobecker@adacore.com>
7709
7710 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7711 ada_is_fixed_point_type. Update all callers.
7712 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7713 all callers.
7714 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7715 Update all callers.
7716 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7717 print_fixed_point_type. Update all callers.
7718 * ada-valprint.c (ada_value_print_num): Replace call to
7719 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7720
a51951c2
KB
77212020-05-14 Kevin Buettner <kevinb@redhat.com>
7722
7723 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7724 processors.
7725 (cpu_supports_bts): Add CV_AMD case.
7726
29d6859f
LM
77272020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7728 Simon Marchi <simon.marchi@efficios.com>
7729
7730 * infrun.c (stop_all_threads): Collect multiple wait events at
7731 each pass.
7732
78134374
SM
77332020-05-14 Simon Marchi <simon.marchi@efficios.com>
7734
7735 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7736 type::code instead.
7737
67607e24
SM
77382020-05-14 Simon Marchi <simon.marchi@efficios.com>
7739
7740 * gdbtypes.h (struct type) <code, set_code>: New methods.
7741 (TYPE_CODE): Use type::code. Change all call sites used to set
7742 the code to use type::set_code instead.
7743
a05575d3
TBA
77442020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7745 Tom de Vries <tdevries@suse.de>
7746 Pedro Alves <palves@redhat.com>
7747
7748 PR threads/25478
7749 * infrun.c (stop_all_threads): Do NOT ignore
7750 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7751 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7752 received.
7753 (handle_no_resumed): Remove code handling a live inferior with no
7754 threads.
7755 * remote.c (has_single_non_exited_thread): New.
7756 (remote_target::update_thread_list): Do not delete a thread if is
7757 the last thread of the process.
7758 * thread.c (thread_select): Call delete_exited_threads instead of
7759 prune_threads.
7760
6ad82919
TBA
77612020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7762
7763 * infrun.c (stop_all_threads): Enable/disable thread events of all
7764 targets. Move a debug message denoting the end of the function
7765 into the SCOPED_EXIT block.
7766
d890404b
TBA
77672020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7768
7769 * process-stratum-target.h: Include <set>.
7770 (all_non_exited_process_targets, switch_to_target_no_thread): New
7771 function declarations.
7772 * process-stratum-target.c (all_non_exited_process_targets)
7773 (switch_to_target_no_thread): New function implementations.
7774
293b3ebc
TBA
77752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7776
7777 * infrun.c (handle_inferior_event): Extract out a piece of code
7778 into...
7779 (mark_non_executing_threads): ...this new function.
7780
7ca9b62a
TBA
77812020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7782
7783 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7784 use.
7785
fc75c28b
TBA
77862020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7787
7788 * regcache.c (regcache_read_pc_protected): New function
7789 implementation that returns 0 if the PC cannot read via
7790 'regcache_read_pc'.
7791 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7792 instead of 'regcache_read_pc'.
7793 (keep_going_pass_signal): Ditto.
7794
a89febbd
TT
77952020-05-13 Tom Tromey <tromey@adacore.com>
7796
7797 * ada-lang.c (align_value): Remove.
7798 (ada_template_to_fixed_record_type_1): Use align_up.
7799
f7e23710
TBA
78002020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7801
7802 * async-event.c: Update the copyright year.
7803 * async-event.h: Update the copyright year.
7804
02ff80c2
SM
78052020-05-12 Simon Marchi <simon.marchi@efficios.com>
7806
7807 * objfiles.h (is_addr_in_objfile,
7808 shared_objfile_contains_address_p): Return bool.
7809 * objfile.c (is_addr_in_objfile,
7810 shared_objfile_contains_address_p): Return bool.
7811
4fd6c7e8
TT
78122020-05-11 Tom Tromey <tromey@adacore.com>
7813
7814 * cli/cli-cmds.c (info_command): Restore.
7815 (_initialize_cli_cmds): Use add_prefix_command for "info".
7816 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7817
5eb68a39
TT
78182020-05-11 Tom Tromey <tromey@adacore.com>
7819
7820 * ada-lang.c (ada_value_primitive_field): Now public.
7821 * ada-lang.h (ada_value_primitive_field): Declare.
7822 * ada-valprint.c (print_field_values): Use
7823 ada_value_primitive_field for wrapper fields.
7824
7666722f
TV
78252020-05-11 Tom de Vries <tdevries@suse.de>
7826
7827 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7828 MODULE_DOMAIN.
7829
3ee6bb11
TV
78302020-05-11 Tom de Vries <tdevries@suse.de>
7831
7832 PR symtab/25941
7833 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7834 with length 0, if not gdb-produced.
7835 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7836
43434996
TV
78372020-05-09 Tom de Vries <tdevries@suse.de>
7838
7839 PR gdb/25955
7840 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7841 calculation.
7842
2f78cffc
TT
78432020-05-09 Tom Tromey <tom@tromey.com>
7844
7845 * top.c (server_command): Now bool.
7846 * top.h (server_command): Now bool.
7847
4f7bc5ed
TT
78482020-05-08 Tom Tromey <tromey@adacore.com>
7849
7850 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7851 already being processed.
7852
8be4b118
TT
78532020-05-08 Tom Tromey <tom@tromey.com>
7854
7855 * printcmd.c (struct display) <next>: Remove.
7856 <display>: New constructor.
7857 <exp_string>: Now a std::string.
7858 <enabled_p>: Now a bool.
7859 (display_number): Move definition earlier.
7860 (displays): Rename from display_chain. Now a std::vector.
7861 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7862 (display_command): Update.
7863 (do_one_display, disable_display)
7864 (enable_disable_display_command, do_enable_disable_display):
7865 Update.
7866 (free_display): Remove.
7867 (clear_displays): Rewrite.
7868 (delete_display): Update.
7869 (map_display_numbers): Use function_view. Remove "data"
7870 parameter. Update.
7871 (do_delete_display): Remove.
7872 (undisplay_command): Update.
7873 (do_one_display, do_displays, disable_display)
7874 (info_display_command): Update.
7875 (do_enable_disable_display): Remove.
7876 (enable_disable_display_command)
7877 (clear_dangling_display_expressions): Update.
7878
94c93c35
TT
78792020-05-08 Tom Tromey <tom@tromey.com>
7880
7881 * symtab.c (set_symbol_cache_size)
7882 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7883 (maintenance_print_symbol_cache_statistics): Update.
7884 * symmisc.c (print_symbol_bcache_statistics)
7885 (print_objfile_statistics, maintenance_print_objfiles)
7886 (maintenance_info_symtabs, maintenance_check_symtabs)
7887 (maintenance_expand_symtabs, maintenance_info_line_tables):
7888 Update.
7889 * symfile-debug.c (set_debug_symfile): Update.
7890 * source.c (forget_cached_source_info): Update.
7891 * python/python.c (gdbpy_progspaces): Update.
7892 * psymtab.c (maintenance_info_psymtabs): Update.
7893 * probe.c (parse_probes): Update.
7894 * linespec.c (iterate_over_all_matching_symtabs)
7895 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7896 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7897 * exec.c (exec_target::close): Update.
7898 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7899 * breakpoint.c (print_one_breakpoint_location)
7900 (create_longjmp_master_breakpoint)
7901 (create_std_terminate_master_breakpoint): Update.
7902 * progspace.c (program_spaces): Now a std::vector.
7903 (maybe_new_address_space): Update.
7904 (add_program_space): Remove.
7905 (program_space::program_space): Update.
7906 (remove_program_space): Update.
7907 (number_of_program_spaces): Remove.
7908 (print_program_space, update_address_spaces): Update.
7909 * progspace.h (program_spaces): Change type.
7910 (ALL_PSPACES): Remove.
7911 (number_of_program_spaces): Don't declare.
7912 (struct program_space) <next>: Remove.
7913
a1fd1ac9
TT
79142020-05-08 Tom Tromey <tom@tromey.com>
7915
7916 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7917 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7918 (enable_break): Update.
7919 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7920 (frv_fdpic_find_canonical_descriptor): Update.
7921 (frv_fetch_objfile_link_map): Update.
7922 * progspace.c (program_space::free_all_objfiles): Update.
7923 (program_space::solibs): New method.
7924 * progspace.h (struct program_space) <solibs>: New method.
7925 * solist.h (master_so_list): Don't declare.
7926 (ALL_SO_LIBS): Remove.
7927 * solib.h (so_list_head): Remove.
7928 (update_solib_list): Update comment.
7929 * solib.c (master_so_list): Remove.
7930 (solib_used, update_solib_list, solib_add)
7931 (info_sharedlibrary_command, clear_solib)
7932 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7933
38eae084
TT
79342020-05-08 Tom Tromey <tom@tromey.com>
7935
7936 * extension.c (extension_languages): Now a std::array.
7937 (ALL_EXTENSION_LANGUAGES): Remove.
7938 (get_ext_lang_defn, get_ext_lang_of_file)
7939 (eval_ext_lang_from_control_command): Update.
7940 (finish_ext_lang_initialization)
7941 (auto_load_ext_lang_scripts_for_objfile)
7942 (ext_lang_type_printers::ext_lang_type_printers)
7943 (apply_ext_lang_type_printers)
7944 (ext_lang_type_printers::~ext_lang_type_printers)
7945 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7946 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7947 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7948 (get_matching_xmethod_workers, ext_lang_colorize)
7949 (ext_lang_before_prompt): Update.
7950 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7951
596dc4ad
TT
79522020-05-08 Tom Tromey <tom@tromey.com>
7953
7954 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7955 overload.
7956 <swap_string, m_string>: Remove.
7957 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7958 Update.
7959 * stabsread.c (define_symbol, read_type): Update.
7960 * linespec.c (find_linespec_symbols): Update.
7961 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7962 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7963 * dbxread.c (read_dbx_symtab): Update.
7964 * cp-support.h (cp_canonicalize_string_full)
7965 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7966 Return unique_xmalloc_ptr.
7967 * cp-support.c (inspect_type): Update.
7968 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7969 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7970 Likewise.
7971 * c-typeprint.c (print_name_maybe_canonical): Update.
7972 * break-catch-throw.c (check_status_exception_catchpoint):
7973 Update.
7974
bf4cb9be
TV
79752020-05-08 Tom de Vries <tdevries@suse.de>
7976
7977 * infrun.c (follow_fork): Copy current_line and current_symtab to
7978 child thread.
7979
a1b68f28
SM
79802020-05-07 Simon Marchi <simon.marchi@efficios.com>
7981
7982 * async-event.c (struct async_signal_handler, struct
7983 async_event_handler): Reformat, remove typedef.
7984
98d48915
SM
79852020-05-07 Simon Marchi <simon.marchi@efficios.com>
7986
7987 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7988 access thistype->main_type->dyn_prop_list directly.
7989
7aa91313
SM
79902020-05-07 Simon Marchi <simon.marchi@efficios.com>
7991
7992 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7993 (remove_dyn_prop): Remove. Update all users to use
7994 type::remove_dyn_prop.
7995 * gdbtypes.c (remove_dyn_prop): Rename to...
7996 (type::remove_dyn_prop): ... this.
7997
5c54719c
SM
79982020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7999
8000 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8001 (add_dyn_prop): Remove. Update all users to use
8002 type::add_dyn_prop.
8003 * gdbtypes.c (add_dyn_prop): Rename to...
8004 (type::add_dyn_prop): ... this.
8005
24e99c6c
SM
80062020-05-07 Simon Marchi <simon.marchi@efficios.com>
8007
8008 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8009 (get_dyn_prop): Remove. Update all users to use
8010 type::dyn_prop.
8011 * gdbtypes.c (get_dyn_prop): Rename to...
8012 (type::dyn_prop): ... this.
8013
0d4bf016
SM
80142020-05-06 Simon Marchi <simon.marchi@efficios.com>
8015
8016 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8017
ac4a4f1c
SM
80182020-05-06 Simon Marchi <simon.marchi@efficios.com>
8019
8020 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8021 instruction, skip it if it's there.
8022
a3bbacc1
SM
80232020-05-05 Simon Marchi <simon.marchi@efficios.com>
8024
8025 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8026
c3236f84
SM
80272020-05-04 Simon Marchi <simon.marchi@efficios.com>
8028
8029 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8030 * gdbtypes.c (recursive_dump_type): Remove use of
8031 TYPE_INCOMPLETE.
8032
3b6acaee
TT
80332020-05-03 Tom Tromey <tom@tromey.com>
8034
8035 * breakpoint.c (catch_command, tcatch_command): Remove.
8036 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8037 add_show_prefix_cmd.
8038 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8039 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8040 Remove.
8041 (add_internal_problem_command): Use add_basic_prefix_cmd,
8042 add_show_prefix_cmd.
8043 * mips-tdep.c (set_mipsfpu_command): Remove.
8044 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8045 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8046 (_initialize_index_cache): Use add_basic_prefix_cmd.
8047 * memattr.c (dummy_cmd): Remove.
8048 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8049 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8050 (_initialize_tui_win): Use add_basic_prefix_cmd,
8051 add_show_prefix_cmd.
8052 * cli/cli-logging.c (set_logging_command): Remove.
8053 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8054 add_show_prefix_cmd.
8055 (show_logging_command): Remove.
8056 * target.c (target_command): Remove.
8057 (add_target): Use add_basic_prefix_cmd.
8058
a51119cd
HD
80592020-05-02 Hannes Domani <ssbssa@yahoo.de>
8060
8061 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8062
652fc23a 80632020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8064
652fc23a
PW
8065 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8066 info_command.
8067
117539e6
KR
80682020-04-30 Kamil Rytarowski <n54@gmx.com>
8069
8070 * nbsd-nat.c (nbsd_enable_proc_events)
8071 (nbsd_nat_target::post_startup_inferior): Add.
8072 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8073 (nbsd_nat_target::update_thread_list): Rewrite.
8074 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8075 "PTRACE_LWP_CREATE".
8076 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8077
102e38eb 80782020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8079
102e38eb
PW
8080 * stack.c (_initialize_stack): Remove duplicated creation
8081 of "frame" command and "f" alias.
8082
ee9d1e5f
HD
80832020-04-30 Hannes Domani <ssbssa@yahoo.de>
8084
8085 PR gdb/18706
8086 * gdbtypes.c (check_typedef): Calculate size of array of
8087 stubbed type.
8088
627c7fb8
HD
80892020-04-30 Hannes Domani <ssbssa@yahoo.de>
8090
8091 PR gdb/15559
8092 * i386-tdep.c (i386_push_dummy_call): Call
8093 i386_thiscall_push_dummy_call.
8094 (i386_thiscall_push_dummy_call): New function.
8095 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8096 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8097 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8098
ffc2844e
SM
80992020-04-29 Simon Marchi <simon.marchi@efficios.com>
8100
8101 * gdbarch.sh (do_read): Add shellcheck disable directive for
8102 warning SC2162.
8103
1207375d
SM
81042020-04-29 Simon Marchi <simon.marchi@efficios.com>
8105
8106 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8107 "referenced but not assigned" warning.
8108
9fdb2916
SM
81092020-04-29 Simon Marchi <simon.marchi@efficios.com>
8110
8111 * gdbarch.sh: Remove code that sets fallbackdefault.
8112
759cea5e
SM
81132020-04-29 Simon Marchi <simon.marchi@efficios.com>
8114
8115 * gdbarch.sh: Use shell operators && and || instead of
8116 -a and -o.
8117
cb02ab24
SM
81182020-04-29 Simon Marchi <simon.marchi@efficios.com>
8119
8120 * gdbarch.sh: Use $(...) instead of `...`.
8121
a6fc5ffc
SM
81222020-04-29 Simon Marchi <simon.marchi@efficios.com>
8123
8124 * gdbarch.sh: Use double quotes around variables.
8125
8d113d13
SM
81262020-04-29 Simon Marchi <simon.marchi@efficios.com>
8127
8128 * gdbarch.sh: Use %s with printf, instead of variables in the
8129 format string.
8130
ed6acedd
TT
81312020-04-29 Tom Tromey <tromey@adacore.com>
8132
8133 PR ada/25875:
8134 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8135 type fields here.
8136 (read_enumeration_type): Call
8137 update_enumeration_type_from_children later. Update comments.
8138 (process_enumeration_scope): Don't create type fields.
8139
b68b1b58
KR
81402020-04-29 Kamil Rytarowski <n54@gmx.com>
8141
8142 * nbsd-tdep.c: Include "xml-syscall.h".
8143 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8144
f94b2e03
KR
81452020-04-29 Kamil Rytarowski <n54@gmx.com>
8146
8147 * nbsd-nat.c: Include "sys/wait.h".
8148 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8149 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8150 (nbsd_nat_target::remove_exec_catchpoint)
8151 (nbsd_nat_target::set_syscall_catchpoint): Add.
8152 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8153 (nbsd_nat_target::insert_exec_catchpoint)
8154 (nbsd_nat_target::remove_exec_catchpoint)
8155 (nbsd_nat_target::set_syscall_catchpoint): Add.
8156 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8157 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8158 `nbsd_get_syscall_number'.
8159
fc49bc72
TT
81602020-04-29 Tom Tromey <tom@tromey.com>
8161
8162 * stack.c (print_block_frame_labels): Remove.
8163
d642b692
HD
81642020-04-29 Hannes Domani <ssbssa@yahoo.de>
8165
8166 PR gdb/17320
8167 * ada-valprint.c (val_print_packed_array_elements): Move array
8168 end bracket to new line.
8169 (ada_val_print_string): Remove extra spaces before first array
8170 element.
8171 * c-valprint.c (c_value_print_array): Likewise.
8172 * m2-valprint.c (m2_print_array_contents): Likewise.
8173 (m2_value_print_inner): Likewise.
8174 * p-valprint.c (pascal_value_print_inner): Likewise.
8175 * valprint.c (generic_val_print_array): Likewise.
8176 (value_print_array_elements): Move first array element and array
8177 end bracket to new line.
8178
ea90f227
TV
81792020-04-29 Tom de Vries <tdevries@suse.de>
8180
8181 PR symtab/25889
8182 * linespec.c (find_method): Fix ix calculation.
8183
4498ef4f
KR
81842020-04-28 Kamil Rytarowski <n54@gmx.com>
8185
8186 * syscalls/update-netbsd.sh: New file.
8187 * syscalls/netbsd.xml: Regenerate.
8188 * data-directory/Makefile.in: Register `netbsd.xml' in
8189 `SYSCALLS_FILES'.
8190
a55e30b5
SM
81912020-04-28 Simon Marchi <simon.marchi@efficios.com>
8192
8193 * syscalls/update-freebsd.sh: Add double quotes.
8194
2b2fbab8
TT
81952020-04-28 Tom Tromey <tom@tromey.com>
8196
8197 * NEWS: Update.
8198 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8199 (cmdpy_init): Allow class_tui.
8200
a65189c9
TV
82012020-04-28 Mark Williams <mark@myosotissp.com>
8202
8203 PR gdb/24480
8204 * dwarf2read.c: Add missing assingments to list_in_scope when
8205 start_symtab was already called.
8206
1b95cdb7
SM
82072020-04-28 Simon Marchi <simon.marchi@efficios.com>
8208
8209 PR gdb/25881
8210 * dwarf2/read.c (offset_map_type): Use
8211 gdb:hash_enum<sect_offset> as hash function.
8212
15cd93d0
TV
82132020-04-28 Tom de Vries <tdevries@suse.de>
8214
8215 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8216 with DW_AT_signature.
8217
1eb39914
SM
82182020-04-27 Simon Marchi <simon.marchi@efficios.com>
8219
8220 * configure.ac: Remove check for fs_base/gs_base in
8221 user_regs_struct.
8222 * configure: Re-generate.
8223 * config.in: Re-generate.
8224 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8225 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8226 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8227
991a3e2e
LM
82282020-04-27 Luis Machado <luis.machado@linaro.org>
8229
8230 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8231 problematic inline frame unwinding situation.
8232 * frame.c (frame_id_computed_p): New function.
8233 * frame.h (frame_id_computed_p): New prototype.
8234
361ba0e8
TT
82352020-04-26 Tom Tromey <tom@tromey.com>
8236
8237 * command.h (enum command_class) <class_pseudo>: Remove.
8238
bc3609fd
PW
82392020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8240
8241 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8242 and whitespace.
8243
b9771db7
KR
82442020-04-25 Kamil Rytarowski <n54@gmx.com>
8245
ec16513e
SM
8246 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8247 `PT_GET_PROCESS_STATE' block.
b9771db7 8248
7151c1af
TT
82492020-04-24 Tom Tromey <tom@tromey.com>
8250
8251 * symtab.h (symbol_get_demangled_name): Don't declare.
8252 * symtab.c (symbol_get_demangled_name): Remove.
8253 (general_symbol_info::natural_name)
8254 (general_symbol_info::demangled_name): Update.
8255
906bb4c5
TT
82562020-04-24 Tom Tromey <tom@tromey.com>
8257
8258 PR rust/25025:
8259 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8260
bcfe6157
TT
82612020-04-24 Tom Tromey <tom@tromey.com>
8262
8263 PR symtab/12707:
8264 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8265 exists.
8266 (new_symbol): Likewise.
8267 * compile/compile-object-load.c (get_out_value_type): Use
8268 symbol_matches_search_name.
8269
f049a313
TT
82702020-04-24 Tom Tromey <tom@tromey.com>
8271
8272 * dwarf2/read.c (add_partial_symbol): Do not call
8273 compute_and_set_names.
8274
76e288d1
TT
82752020-04-24 Tom Tromey <tom@tromey.com>
8276
8277 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8278 overload.
8279
2467f4f6
TT
82802020-04-24 Tom Tromey <tom@tromey.com>
8281
8282 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8283 (add_psymbol_to_list): New overload. Make old overload call new
8284 one.
8285 * psympriv.h (add_psymbol_to_list): New overload.
8286
e61108c9
TT
82872020-04-24 Tom Tromey <tom@tromey.com>
8288
8289 * dwarf2/read.c (partial_die_info::read) <case
8290 DW_AT_linkage_name>: Use value_as_string.
8291 (dwarf2_string_attr): Use value_as_string.
8292 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8293 method.
8294 * dwarf2/attribute.c (attribute::value_as_string): New method.
8295
8c87a452
TT
82962020-04-24 Tom Tromey <tom@tromey.com>
8297
8298 * symtab.c (general_symbol_info::natural_name)
8299 (general_symbol_info::demangled_name): Check for language_rust.
8300
787de330
TT
83012020-04-24 Tom Tromey <tom@tromey.com>
8302
8303 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8304 (dwarf2_physname): ... from here.
8305 (partial_die_info::read): Add Rust "{" hack.
8306
ff985671
TT
83072020-04-24 Tom Tromey <tom@tromey.com>
8308
8309 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8310 method.
8311 (symbol_set_demangled_name): Don't declare.
8312 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8313 symbol_set_demangled_name.
8314 (general_symbol_info::set_language)
8315 (general_symbol_info::compute_and_set_names): Update.
8316 * minsyms.c (minimal_symbol_reader::install): Update.
8317 * dwarf2/read.c (new_symbol): Update.
8318
1acda803
TT
83192020-04-24 Tom Tromey <tromey@adacore.com>
8320
8321 PR python/23662:
8322 * python/py-type.c (convert_field): Handle
8323 FIELD_LOC_KIND_DWARF_BLOCK.
8324 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8325 (typy_get_dynamic): Nw function.
8326 (type_object_getset): Add "dynamic".
8327 * NEWS: Add entry.
8328
d656f129
TT
83292020-04-24 Tom Tromey <tromey@adacore.com>
8330
8331 * ada-typeprint.c (print_choices, print_variant_part)
8332 (print_record_field_types_dynamic): New functions.
8333 (print_record_field_types): Use print_record_field_types_dynamic.
8334
7d79de9a
TT
83352020-04-24 Tom Tromey <tromey@adacore.com>
8336
8337 * dwarf2/read.c (handle_data_member_location): New overload.
8338 (dwarf2_add_field): Use it.
8339 (decode_locdesc): Add "computed" parameter. Update comment.
8340 * gdbtypes.c (is_dynamic_type_internal): Also look for
8341 FIELD_LOC_KIND_DWARF_BLOCK.
8342 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8343 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8344 virtual base classes.
8345 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8346 FIELD_LOC_KIND_DWARF_BLOCK.
8347
f8e89861
TT
83482020-04-24 Tom Tromey <tromey@adacore.com>
8349
8350 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8351 * gdbtypes.c (is_dynamic_type_internal): Check
8352 TYPE_HAS_DYNAMIC_LENGTH.
8353 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8354 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8355 New macros.
8356 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8357 constant.
8358
9c6a1327
TT
83592020-04-24 Tom Tromey <tromey@adacore.com>
8360
8361 * dwarf2/read.c (struct variant_field): Rewrite.
8362 (struct variant_part_builder): New.
8363 (struct nextfield): Remove "variant" field. Add "offset".
8364 (struct field_info): Add "current_variant_part" and
8365 "variant_parts".
8366 (alloc_discriminant_info): Remove.
8367 (alloc_rust_variant): New function.
8368 (quirk_rust_enum): Update.
8369 (dwarf2_add_field): Set "offset" member. Don't handle
8370 DW_TAG_variant_part.
8371 (offset_map_type): New typedef.
8372 (convert_variant_range, create_one_variant)
8373 (create_one_variant_part, create_variant_parts)
8374 (add_variant_property): New functions.
8375 (dwarf2_attach_fields_to_type): Call add_variant_property.
8376 (read_structure_type): Don't handle DW_TAG_variant_part.
8377 (handle_variant_part, handle_variant): New functions.
8378 (handle_struct_member_die): Use them.
8379 (process_structure_scope): Don't handle variant parts.
8380 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8381 (struct discriminant_info): Remove.
8382 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8383 (struct main_type) <flag_discriminated_union>: Remove.
8384 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8385 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8386 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8387 Update.
8388 * valops.c (value_union_variant): Remove.
8389 * value.h (value_union_variant): Don't declare.
8390
b249d2c2
TT
83912020-04-24 Tom Tromey <tromey@adacore.com>
8392
8393 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8394 (ada_value_primitive_packed_val): Update.
8395 * ada-valprint.c (ada_value_print_1): Update.
8396 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8397 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8398 just an address. Use evaluate_for_locexpr_baton.
8399 (dwarf2_evaluate_property): Update.
8400 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8401 array_view.
8402 * findvar.c (default_read_var_value): Update.
8403 * gdbtypes.c (compute_variant_fields_inner)
8404 (resolve_dynamic_type_internal): Update.
8405 (resolve_dynamic_type): Change type of valaddr parameter.
8406 * gdbtypes.h (resolve_dynamic_type): Update.
8407 * valarith.c (value_subscripted_rvalue): Update.
8408 * value.c (value_from_contents_and_address): Update.
8409
61122aa9
TT
84102020-04-24 Tom Tromey <tromey@adacore.com>
8411
8412 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8413 "push_initial_value" parameter.
8414 (dwarf2_evaluate_property): Likewise.
8415 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8416
ef83a141
TT
84172020-04-24 Tom Tromey <tromey@adacore.com>
8418
8419 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8420 (variant::matches, compute_variant_fields_recurse)
8421 (compute_variant_fields_inner, compute_variant_fields): New
8422 functions.
8423 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8424 Use resolved_type after type is made.
8425 (operator==): Add new cases.
8426 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8427 (struct discriminant_range, struct variant, struct variant_part):
8428 New.
8429 (union dynamic_prop_data) <variant_parts, original_type>: New
8430 members.
8431 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8432 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8433 constants.
8434 * value.c (unpack_bits_as_long): Now public.
8435 * value.h (unpack_bits_as_long): Declare.
8436
675127ec
TT
84372020-04-24 Tom Tromey <tromey@adacore.com>
8438
8439 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8440 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8441
9852ceef
HD
84422020-04-24 Hannes Domani <ssbssa@yahoo.de>
8443
8444 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8445
7632c6ce
KR
84462020-04-24 Kamil Rytarowski <n54@gmx.com>
8447
8448 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8449 (remove_fork_catchpoint, post_startup_inferior)
8450 (post_attach): Move...
8451 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8452 (remove_fork_catchpoint, post_startup_inferior)
8453 (post_attach): ...here.
8454 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8455 (remove_fork_catchpoint, post_startup_inferior)
8456 (post_attach): Move...
8457 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8458 (remove_fork_catchpoint, post_startup_inferior)
8459 (post_attach): ...here.
8460
7be2bb4f
TT
84612020-04-24 Tom Tromey <tromey@adacore.com>
8462
8463 * nat/windows-nat.h (struct windows_thread_info)
8464 <pc_adjusted>: New member.
8465 * windows-nat.c (windows_fetch_one_register): Check
8466 pc_adjusted.
8467 (windows_nat_target::get_windows_debug_event)
8468 (windows_nat_target::wait): Set pc_adjusted.
8469
f80cb3b4
TV
84702020-04-24 Tom de Vries <tdevries@suse.de>
8471
8472 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8473 Run gdb-add-index inside temp dir.
8474
29514b87
TT
84752020-04-23 Tom Tromey <tromey@adacore.com>
8476
8477 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8478 in loop.
8479
5939967b
LM
84802020-04-23 Luis Machado <luis.machado@linaro.org>
8481
8482 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8483 get_frame_register instead of gdbarch_unwind_pc.
8484
70bc38f5
TV
84852020-04-23 Tom de Vries <tdevries@suse.de>
8486
8487 * symtab.c (lookup_global_symbol): Prefer def over decl.
8488
de82891c
TV
84892020-04-23 Tom de Vries <tdevries@suse.de>
8490
8491 PR symtab/25807
8492 * block.c (best_symbol, better_symbol): Promote to external.
8493 * block.h (best_symbol, better_symbol): Declare.
8494 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8495 decl.
8496
ecc6c606
TT
84972020-04-23 Tom Tromey <tromey@adacore.com>
8498
8499 PR ada/25837:
8500 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8501 "const char *", not a "const std::string &".
8502 <name_and_matcher::operator==>: Update.
8503 * unittests/lookup_name_info-selftests.c: Change type of
8504 "result".
8505
740480b8
TT
85062020-04-23 Tom Tromey <tom@tromey.com>
8507
8508 * inferior.h (iterate_over_inferiors): Don't declare.
8509 * inferior.c (iterate_over_inferiors): Remove.
8510 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8511 Remove.
8512 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8513 use iterate_over_inferiors.
8514 (darwin_resume_inferior_it)
8515 (struct resume_inferior_threads_param)
8516 (darwin_resume_inferior_threads_it): Remove.
8517 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8518
ae3ab1f0
TV
85192020-04-23 Tom de Vries <tdevries@suse.de>
8520
8521 * blockframe.c (find_pc_partial_function): Use
8522 find_pc_sect_compunit_symtab rather than
8523 objfile->sf->qf->find_pc_sect_compunit_symtab.
8524
317d2668
TV
85252020-04-22 Tom de Vries <tdevries@suse.de>
8526
8527 PR symtab/25764
8528 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8529 in psymtabs.
8530
eea9e357
TV
85312020-04-22 Tom de Vries <tdevries@suse.de>
8532
8533 PR symtab/25801
8534 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8535 symtabs.
8536
3d5afab3
TV
85372020-04-22 Tom de Vries <tdevries@suse.de>
8538
8539 PR symtab/25700
8540 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8541 CU if already created.
8542
d43b7a2d
TBA
85432020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8544
8545 * infrun.c (displaced_step_fixup): Switch to the event_thread
8546 before calling displaced_step_restore, not after.
8547
d89edf9b
MM
85482020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8549
8550 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8551 its inferior is not recorded by us.
8552 (record_btrace_target_open): Replace call to
8553 all_non_exited_threads () with call to current_inferior
8554 ()->non_exited_threads ().
8555 (record_btrace_target::stop_recording): Likewise.
8556 (record_btrace_target::close): Likewise.
8557 (record_btrace_target::wait): Likewise.
8558 (record_btrace_target::record_stop_replaying): Likewise.
8559
5897fd49
MM
85602020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8561
8562 * btrace.c (btrace_enable): Throw an error on double enables and
8563 when enabling recording fails.
8564 (btrace_disable): Throw an error if the thread is not recorded.
8565
1a476b6d
MM
85662020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8567
8568 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8569 request if we do not have a thread_info.
8570
4778a5f8
TV
85712020-04-21 Tom de Vries <tdevries@suse.de>
8572
8573 PR gdb/25471
8574 * thread.c
8575 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8576 exception in get_frame_id.
8577
0fa7617d
TT
85782020-04-20 Tom Tromey <tromey@adacore.com>
8579
8580 * python/python.c (struct gdbpy_event): Mark move constructor as
8581 noexcept.
8582 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8583 constructor as noexcept.
8584 * completer.h (struct completion_result): Mark move constructor as
8585 noexcept.
8586 * completer.c (completion_result::completion_result): Use
8587 initialization style. Don't call reset_match_list.
8588
ad23bda0
MS
85892020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8590
8591 * MAINTAINERS (Write After Approval): Add myself.
8592
45e1f031
TT
85932020-04-18 Tom Tromey <tom@tromey.com>
8594
8595 * windows-tdep.c (init_w32_command_list)
8596 (w32_prefix_command_valid): Restore.
8597 (_initialize_windows_tdep): Call init_w32_command_list.
8598
08feed99
TT
85992020-04-18 Tom Tromey <tom@tromey.com>
8600
8601 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8602 * value.c (value_fn_field): Update.
8603 * valops.c (find_function_in_inferior)
8604 (value_allocate_space_in_inferior): Update.
8605 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8606 Update.
8607 * tui/tui-source.c (tui_source_window::set_contents): Update.
8608 * symtab.c (lookup_global_or_static_symbol)
8609 (find_function_start_sal_1, skip_prologue_sal)
8610 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8611 * symmisc.c (dump_msymbols, dump_symtab_1)
8612 (maintenance_print_one_line_table): Update.
8613 * symfile.c (init_entry_point_info, section_is_mapped)
8614 (list_overlays_command, simple_read_overlay_table)
8615 (simple_overlay_update_1): Update.
8616 * stap-probe.c (handle_stap_probe): Update.
8617 * stabsread.c (dbx_init_float_type, define_symbol)
8618 (read_one_struct_field, read_enum_type, read_range_type): Update.
8619 * source.c (info_line_command): Update.
8620 * python/python.c (gdbpy_source_objfile_script)
8621 (gdbpy_execute_objfile_script): Update.
8622 * python/py-type.c (save_objfile_types): Update.
8623 * python/py-objfile.c (py_free_objfile): Update.
8624 * python/py-inferior.c (python_new_objfile): Update.
8625 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8626 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8627 (maintenance_check_psymtabs): Update.
8628 * printcmd.c (info_address_command): Update.
8629 * objfiles.h (struct objfile) <arch>: New method, from
8630 get_objfile_arch.
8631 (get_objfile_arch): Don't declare.
8632 * objfiles.c (get_objfile_arch): Remove.
8633 (filter_overlapping_sections): Update.
8634 * minsyms.c (msymbol_is_function): Update.
8635 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8636 (output_nondebug_symbol): Update.
8637 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8638 (mdebug_expand_psymtab): Update.
8639 * machoread.c (macho_add_oso_symfile): Update.
8640 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8641 Update.
8642 * linux-fork.c (checkpoint_command): Update.
8643 * linespec.c (convert_linespec_to_sals): Update.
8644 * jit.c (finalize_symtab): Update.
8645 * infrun.c (insert_exception_resume_from_probe): Update.
8646 * ia64-tdep.c (ia64_find_unwind_table): Update.
8647 * hppa-tdep.c (internalize_unwinds): Update.
8648 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8649 Update.
8650 * gcore.c (call_target_sbrk): Update.
8651 * elfread.c (record_minimal_symbol, elf_symtab_read)
8652 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8653 (elf_gnu_ifunc_resolve_by_got): Update.
8654 * dwarf2/read.c (create_addrmap_from_index)
8655 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8656 (read_debug_names_from_section)
8657 (process_psymtab_comp_unit_reader, add_partial_symbol)
8658 (add_partial_subprogram, process_full_comp_unit)
8659 (read_file_scope, read_func_scope, read_lexical_block_scope)
8660 (read_call_site_scope, dwarf2_ranges_read)
8661 (dwarf2_record_block_ranges, dwarf2_add_field)
8662 (mark_common_block_symbol_computed, read_tag_pointer_type)
8663 (read_tag_string_type, dwarf2_init_float_type)
8664 (dwarf2_init_complex_target_type, read_base_type)
8665 (partial_die_info::read, partial_die_info::read)
8666 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8667 (dwarf2_fetch_die_loc_sect_off): Update.
8668 * dwarf2/loc.c (dwarf2_find_location_expression)
8669 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8670 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8671 (dwarf2_loc_desc_get_symbol_read_needs)
8672 (locexpr_describe_location_piece, locexpr_describe_location_1)
8673 (loclist_describe_location): Update.
8674 * dwarf2/index-write.c (write_debug_names): Update.
8675 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8676 * dtrace-probe.c (dtrace_process_dof): Update.
8677 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8678 (process_one_symbol): Update.
8679 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8680 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8681 (coff_read_enum_type): Update.
8682 * cli/cli-cmds.c (edit_command, list_command): Update.
8683 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8684 * breakpoint.c (create_overlay_event_breakpoint)
8685 (create_longjmp_master_breakpoint)
8686 (create_std_terminate_master_breakpoint)
8687 (create_exception_master_breakpoint, get_sal_arch): Update.
8688 * block.c (block_gdbarch): Update.
8689 * annotate.c (annotate_source_line): Update.
8690
0743fc83
TT
86912020-04-17 Tom Tromey <tromey@adacore.com>
8692
8693 * auto-load.c (show_auto_load_cmd): Remove.
8694 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8695 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8696 (maintenance_print_arc_command): Remove.
8697 * tui/tui-win.c (tui_command): Remove.
8698 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8699 * tui/tui-layout.c (tui_layout_command): Remove.
8700 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8701 * python/python.c (user_set_python, user_show_python): Remove.
8702 (_initialize_python): Use add_basic_prefix_cmd,
8703 add_show_prefix_cmd.
8704 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8705 (install_gdb_commands): Use add_basic_prefix_cmd,
8706 add_show_prefix_cmd.
8707 (info_guile_command): Remove.
8708 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8709 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8710 add_show_prefix_cmd.
8711 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8712 Remove do_set and do_show parameters.
8713 * cli/cli-style.c (set_style, show_style): Remove.
8714 (_initialize_cli_style): Use add_basic_prefix_cmd,
8715 add_show_prefix_cmd.
8716 (cli_style_option::add_setshow_commands): Remove do_set and
8717 do_show parameters.
8718 (cli_style_option::add_setshow_commands): Use
8719 add_basic_prefix_cmd, add_show_prefix_cmd.
8720 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8721 (set_style_name): Remove.
8722 * cli/cli-dump.c (dump_command, append_command): Remove.
8723 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8724 (tekhex_dump_command, binary_dump_command)
8725 (binary_append_command): Remove.
8726 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8727 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8728 (init_w32_command_list): Remove; move into ...
8729 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8730 * valprint.c (set_print, show_print, set_print_raw)
8731 (show_print_raw): Remove.
8732 (_initialize_valprint): Use add_basic_prefix_cmd,
8733 add_show_prefix_cmd.
8734 * typeprint.c (set_print_type, show_print_type): Remove.
8735 (_initialize_typeprint): Use add_basic_prefix_cmd,
8736 add_show_prefix_cmd.
8737 * record.c (set_record_command, show_record_command): Remove.
8738 (_initialize_record): Use add_basic_prefix_cmd,
8739 add_show_prefix_cmd.
8740 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8741 add_show_prefix_cmd.
8742 (info_command, show_command, set_debug, show_debug): Remove.
8743 * top.h (set_history, show_history): Don't declare.
8744 * top.c (set_history, show_history): Remove.
8745 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8746 (unset_tdesc_cmd): Remove.
8747 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8748 add_show_prefix_cmd.
8749 * symtab.c (info_module_command): Remove.
8750 (_initialize_symtab): Use add_basic_prefix_cmd.
8751 * symfile.c (overlay_command): Remove.
8752 (_initialize_symfile): Use add_basic_prefix_cmd.
8753 * sparc64-tdep.c (info_adi_command): Remove.
8754 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8755 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8756 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8757 add_show_prefix_cmd.
8758 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8759 (_initialize_serial): Use add_basic_prefix_cmd,
8760 add_show_prefix_cmd.
8761 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8762 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8763 add_show_prefix_cmd.
8764 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8765 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8766 add_show_prefix_cmd.
8767 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8768 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8769 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8770 add_show_prefix_cmd.
8771 * remote.c (remote_command, set_remote_cmd): Remove.
8772 (_initialize_remote): Use add_basic_prefix_cmd.
8773 * record-full.c (set_record_full_command)
8774 (show_record_full_command): Remove.
8775 (_initialize_record_full): Use add_basic_prefix_cmd,
8776 add_show_prefix_cmd.
8777 * record-btrace.c (cmd_set_record_btrace)
8778 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8779 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8780 (cmd_show_record_btrace_pt): Remove.
8781 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8782 add_show_prefix_cmd.
8783 * ravenscar-thread.c (set_ravenscar_command)
8784 (show_ravenscar_command): Remove.
8785 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8786 add_show_prefix_cmd.
8787 * mips-tdep.c (show_mips_command, set_mips_command)
8788 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8789 add_show_prefix_cmd.
8790 * maint.c (maintenance_command, maintenance_info_command)
8791 (maintenance_check_command, maintenance_print_command)
8792 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8793 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8794 add_show_prefix_cmd.
8795 (show_per_command_cmd): Remove.
8796 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8797 Remove.
8798 (maintenance_show_test_settings_cmd): Remove.
8799 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8800 add_show_prefix_cmd.
8801 * maint-test-options.c (maintenance_test_options_command):
8802 Remove.
8803 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8804 * macrocmd.c (macro_command): Remove
8805 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8806 * language.c (set_check, show_check): Remove.
8807 (_initialize_language): Use add_basic_prefix_cmd,
8808 add_show_prefix_cmd.
8809 * infcmd.c (unset_command): Remove.
8810 (_initialize_infcmd): Use add_basic_prefix_cmd.
8811 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8812 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8813 add_show_prefix_cmd.
8814 * go32-nat.c (go32_info_dos_command): Remove.
8815 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8816 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8817 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8818 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8819 (_initialize_frame): Use add_basic_prefix_cmd,
8820 add_show_prefix_cmd.
8821 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8822 (_initialize_dcache): Use add_basic_prefix_cmd,
8823 add_show_prefix_cmd.
8824 * cp-support.c (maint_cplus_command): Remove.
8825 (_initialize_cp_support): Use add_basic_prefix_cmd.
8826 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8827 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8828 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8829 add_basic_prefix_cmd, add_show_prefix_cmd.
8830 * breakpoint.c (save_command): Remove.
8831 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8832 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8833 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8834 add_show_prefix_cmd.
8835 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8836 (set_ada_command, show_ada_command): Remove.
8837 (_initialize_ada_language): Use add_basic_prefix_cmd,
8838 add_show_prefix_cmd.
8839 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8840
3557f442
KR
88412020-04-16 Kamil Rytarowski <n54@gmx.com>
8842
8843 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8844 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8845
16197208
SM
88462020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8847
8848 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8849 warning messages.
8850
00ac85d3
SM
88512020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8852
8853 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8854 import table is not at beginning of .idata section.
8855
381ce63f
PA
88562020-04-16 Pedro Alves <palves@redhat.com>
8857
8858 * inferior.c (delete_inferior): Use delete operator directly
8859 instead of delete_program_space.
8860 * progspace.c (add_program_space): New, factored out from
8861 program_space::program_space.
8862 (remove_program_space): New, factored out from
8863 delete_program_space.
8864 (program_space::program_space): Remove intro comment. Rewrite.
8865 (program_space::~program_space): Remove intro comment. Call
8866 remove_program_space.
8867 (delete_program_space): Delete.
8868 * progspace.h (program_space::program_space): Make explicit. Move
8869 intro comment here, adjusted.
8870 (program_space::~program_space): Move intro comment here,
8871 adjusted.
8872 (delete_program_space): Remove.
8873
a010605f
TT
88742020-04-16 Tom Tromey <tromey@adacore.com>
8875
8876 * windows-nat.c (windows_nat::handle_access_violation): New
8877 function.
8878 * nat/windows-nat.h (handle_access_violation): Declare.
8879 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8880 windows-nat.c. Call handle_access_violation.
8881
efba5c23
TV
88822020-04-16 Tom de Vries <tdevries@suse.de>
8883
8884 PR symtab/25791
8885 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8886 CUs without psymtab.
8887
97ed802d
KB
88882020-04-16 Kevin Buettner <kevinb@redhat.com>
8889
8890 * python/python.c (do_start_initialization): Don't call
8891 PyEval_InitThreads for Python 3.9 and beyond.
8892
c7d64809
KR
88932020-04-15 Kamil Rytarowski <n54@gmx.com>
8894
8895 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8896 thread functions.
8897 (obsd_nat_target::wait): Likewise.
8898
ce127a96
TT
88992020-04-15 Tom Tromey <tromey@adacore.com>
8900
8901 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8902 (DEBUG_EXCEPT): Use debug_printf.
8903
99f1bc6a
AB
89042020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8905
8906 * completer.c (class completion_tracker::completion_hash_entry)
8907 <hash_name>: New member function.
8908 (completion_tracker::discard_completions): New callback to hash a
8909 completion_hash_entry, pass this to htab_create_alloc.
8910
a0e9b532
JT
89112016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8912
8913 * windows-nat.c (windows_make_so): Warn rather than stopping with
8914 an error if realpath() fails.
8915
06ca5dd4
KR
89162020-04-14 Kamil Rytarowski <n54@gmx.com>
8917
8918 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8919 (nbsd_nat_target::info_proc): Add do_status.
8920
194d088f
TV
89212020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8922 Tom de Vries <tdevries@suse.de>
8923
8924 PR symtab/25718
8925 * psympriv.h (struct partial_symtab::read_symtab)
8926 (struct partial_symtab::expand_psymtab)
8927 (struct partial_symtab::read_dependencies): Update comments.
8928 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8929 read_symtab for includer.
8930 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8931 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8932 (struct dwarf2_include_psymtab::m_readin): Remove.
8933 (struct dwarf2_include_psymtab::includer): New member function.
8934 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8935
c1a66c06
TV
89362020-04-14 Tom de Vries <tdevries@suse.de>
8937
8938 PR symtab/25720
8939 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8940 with NULL symbol_matcher and lookup_name.
8941 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8942 and lookup_name.
8943 * dwarf2/read.c (dw2_expand_symtabs_matching)
8944 (dw2_debug_names_expand_symtabs_matching): Same.
8945 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8946 Make lookup_name a pointer. Update comment.
8947 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8948 lookup_name being a pointer.
8949 * symfile.c (expand_symtabs_matching): Same.
8950 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8951 * linespec.c (iterate_over_all_matching_symtabs): Same.
8952
400b5eca
TT
89532020-04-13 Tom Tromey <tom@tromey.com>
8954
8955 * run-on-main-thread.c: Update include.
8956 * unittests/main-thread-selftests.c: Update include.
8957 * tui/tui-win.c: Update include.
8958 * tui/tui-io.c: Update include.
8959 * tui/tui-interp.c: Update include.
8960 * tui/tui-hooks.c: Update include.
8961 * top.h: Update include.
8962 * top.c: Update include.
8963 * ser-base.c: Update include.
8964 * remote.c: Update include.
8965 * remote-notif.c: Update include.
8966 * remote-fileio.c: Update include.
8967 * record-full.c: Update include.
8968 * record-btrace.c: Update include.
8969 * python/python.c: Update include.
8970 * posix-hdep.c: Update include.
8971 * mingw-hdep.c: Update include.
8972 * mi/mi-main.c: Update include.
8973 * mi/mi-interp.c: Update include.
8974 * main.c: Update include.
8975 * linux-nat.c: Update include.
8976 * interps.c: Update include.
8977 * infrun.c: Update include.
8978 * inf-loop.c: Update include.
8979 * event-top.c: Update include.
8980 * event-loop.c: Move to ../gdbsupport/.
8981 * event-loop.h: Move to ../gdbsupport/.
8982 * async-event.h: Update include.
8983 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8984
93b54c8e
TT
89852020-04-13 Tom Tromey <tom@tromey.com>
8986
8987 * tui/tui-win.c: Include async-event.h.
8988 * remote.c: Include async-event.h.
8989 * remote-notif.c: Include async-event.h.
8990 * record-full.c: Include async-event.h.
8991 * record-btrace.c: Include async-event.h.
8992 * infrun.c: Include async-event.h.
8993 * event-top.c: Include async-event.h.
8994 * event-loop.h: Move some declarations to async-event.h.
8995 * event-loop.c: Don't include ser-event.h or top.h. Move some
8996 code to async-event.c.
8997 * async-event.h: New file.
8998 * async-event.c: New file.
8999 * Makefile.in (COMMON_SFILES): Add async-event.c.
9000 (HFILES_NO_SRCDIR): Add async-event.h.
9001
c1cd3163
TT
90022020-04-13 Tom Tromey <tom@tromey.com>
9003
9004 * utils.c (flush_streams): New function.
9005 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9006
29f2bf4f
TT
90072020-04-13 Tom Tromey <tom@tromey.com>
9008
9009 * event-loop.c (handle_file_event): Use warning, not
9010 printf_unfiltered.
9011
98029d02
TT
90122020-04-13 Tom Tromey <tom@tromey.com>
9013
9014 * event-loop.c: Include <chrono>.
9015
06cc9596
TT
90162020-04-13 Tom Tromey <tom@tromey.com>
9017
9018 * gdb_select.h: Move to ../gdbsupport/.
9019 * event-loop.c: Update include path.
9020 * top.c: Update include path.
9021 * ser-base.c: Update include path.
9022 * ui-file.c: Update include path.
9023 * ser-tcp.c: Update include path.
9024 * guile/scm-ports.c: Update include path.
9025 * posix-hdep.c: Update include path.
9026 * ser-unix.c: Update include path.
9027 * gdb_usleep.c: Update include path.
9028 * mingw-hdep.c: Update include path.
9029 * inflow.c: Update include path.
9030 * infrun.c: Update include path.
9031 * event-top.c: Update include path.
9032
8ae8e197
TT
90332020-04-13 Tom Tromey <tom@tromey.com>
9034
9035 * configure: Rebuild.
9036 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9037
58cf28e8
TT
90382020-04-13 Tom Tromey <tom@tromey.com>
9039
9040 * event-loop.h (start_event_loop): Don't declare.
9041 * event-loop.c (start_event_loop): Move...
9042 * main.c (start_event_loop): ...here. Now static.
9043
b7f999ae
SDJ
90442020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9045
9046 * MAINTAINERS: Update my email address.
9047
1085dfd4
KR
90482020-04-12 Kamil Rytarowski <n54@gmx.com>
9049
9050 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9051 IP_ALL.
9052
49d1d1f5
KR
90532020-04-12 Kamil Rytarowski <n54@gmx.com>
9054
9055 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9056 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9057
b4848d2a
KR
90582020-04-12 Kamil Rytarowski <n54@gmx.com>
9059
9060 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9061 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9062
51c133d5
KR
90632020-04-12 Kamil Rytarowski <n54@gmx.com>
9064
9065 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9066
54b8cbd0
KR
90672020-04-11 Kamil Rytarowski <n54@gmx.com>
9068
9069 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9070 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9071 (nbsd_nat_target::info_proc): New functions.
9072 * nbsd-nat.c (kinfo_get_vmmap): New function.
9073 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9074 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9075 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9076 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9077 functions.
9078 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9079 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9080 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9081 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9082 (KINFO_VME_FLAG_GROWS_DOWN): New.
9083
cf83625d
AS
90842020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9085
9086 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9087 bit shift.
9088
0c4311ab
TT
90892020-04-10 Tom Tromey <tromey@adacore.com>
9090
9091 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9092
3e65b3e9
TT
90932020-04-10 Tom Tromey <tromey@adacore.com>
9094
9095 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9096 separate debug files.
9097
13302e95
HD
90982020-04-10 Hannes Domani <ssbssa@yahoo.de>
9099
9100 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9101 Move to...
9102 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9103 ... here.
9104 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9105 Check for STATUS_WX86_BREAKPOINT.
9106 (windows_nat_target::wait): Same.
9107
bdfc1e8a
TV
91082020-04-10 Tom de Vries <tdevries@suse.de>
9109
9110 PR cli/25808
9111 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9112
f4460aec
SM
91132020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9114
9115 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9116 (Write After Approval): Remove Tom de Vries.
9117
a25198bb
BE
91182020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9119
9120 revert partially:
9121 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9122
aac66a4c
SM
9123 * buildsym.c (record_line): Fix undefined behavior and preserve
9124 lines at eof.
a25198bb 9125
206c98a6
KR
91262020-04-09 Kamil Rytarowski <n54@gmx.com>
9127
9128 * auxv.h (svr4_auxv_parse): New.
9129 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9130 and generic_auxv_parse.
9131 (svr4_auxv_parse): Add.
9132 * obsd-tdep.c: Include "auxv.h".
9133 (obsd_auxv_parse): Remove.
9134 (obsd_init_abi): Remove comment.
9135 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9136 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9137 * nbsd-tdep.c: Include "auxv.h".
9138 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9139
71fbdbaf
TT
91402020-04-08 Tom Tromey <tromey@adacore.com>
9141
9142 * nat/windows-nat.h (last_wait_event): Don't declare.
9143 (wait_for_debug_event): Update comment.
9144 * nat/windows-nat.c (last_wait_event): Now static.
9145
2c1d95e8
TT
91462020-04-08 Tom Tromey <tromey@adacore.com>
9147
9148 * windows-nat.c (wait_for_debug_event): Move to
9149 nat/windows-nat.c.
9150 * nat/windows-nat.h (wait_for_debug_event): Declare.
9151 * nat/windows-nat.c (wait_for_debug_event): Move from
9152 windows-nat.c. No longer static.
9153
d2977bc4
TT
91542020-04-08 Tom Tromey <tromey@adacore.com>
9155
9156 * windows-nat.c (get_windows_debug_event): Use
9157 fetch_pending_stop.
9158 * nat/windows-nat.h (fetch_pending_stop): Declare.
9159 * nat/windows-nat.c (fetch_pending_stop): New function.
9160
e758e19c
TT
91612020-04-08 Tom Tromey <tromey@adacore.com>
9162
9163 * windows-nat.c (windows_continue): Use matching_pending_stop and
9164 continue_last_debug_event.
9165 * nat/windows-nat.h (matching_pending_stop)
9166 (continue_last_debug_event): Declare.
9167 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9168 (matching_pending_stop, continue_last_debug_event): New
9169 functions.
9170
8d30e395
TT
91712020-04-08 Tom Tromey <tromey@adacore.com>
9172
9173 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9174 (handle_exception_result): Move to nat/windows-nat.h.
9175 (DEBUG_EXCEPTION_SIMPLE): Remove.
9176 (windows_nat::handle_ms_vc_exception): New function.
9177 (handle_exception): Move to nat/windows-nat.c.
9178 (get_windows_debug_event): Update.
9179 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9180 nat/windows-nat.c.
9181 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9182 (handle_exception_result): Move from windows-nat.c.
9183 (handle_exception): Declare.
9184 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9185 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9186 windows-nat.c.
9187
29de418d
TT
91882020-04-08 Tom Tromey <tromey@adacore.com>
9189
9190 * windows-nat.c (exception_count, event_count): Remove.
9191 (handle_exception, get_windows_debug_event)
9192 (do_initial_windows_stuff): Update.
9193
a816ba18
TT
91942020-04-08 Tom Tromey <tromey@adacore.com>
9195
9196 * windows-nat.c (windows_nat::handle_load_dll)
9197 (windows_nat::handle_unload_dll): Rename. No longer static.
9198 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9199 Declare.
9200
a00caa12
TT
92012020-04-08 Tom Tromey <tromey@adacore.com>
9202
9203 * complaints.h (stop_whining): Declare at top-level.
9204 (complaint): Don't declare stop_whining.
9205
d41b524f
TT
92062020-04-08 Tom Tromey <tromey@adacore.com>
9207
9208 * windows-nat.c (windows_nat::handle_output_debug_string):
9209 Rename. No longer static.
9210 * nat/windows-nat.h (handle_output_debug_string): Declare.
9211
3c76026d
TT
92122020-04-08 Tom Tromey <tromey@adacore.com>
9213
9214 * windows-nat.c (current_process_handle, current_process_id)
9215 (main_thread_id, last_sig, current_event, last_wait_event)
9216 (current_windows_thread, desired_stop_thread_id, pending_stops)
9217 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9218 (display_selectors, fake_create_process)
9219 (get_windows_debug_event): Update.
9220 * nat/windows-nat.h (current_process_handle, current_process_id)
9221 (main_thread_id, last_sig, current_event, last_wait_event)
9222 (current_windows_thread, desired_stop_thread_id, pending_stops)
9223 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9224 * nat/windows-nat.c (current_process_handle, current_process_id)
9225 (main_thread_id, last_sig, current_event, last_wait_event)
9226 (current_windows_thread, desired_stop_thread_id, pending_stops)
9227 (siginfo_er): New globals. Move from windows-nat.c.
9228
9d8679cc
TT
92292020-04-08 Tom Tromey <tromey@adacore.com>
9230
9231 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9232 (handle_load_dll): Update.
9233 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9234
28688adf
TT
92352020-04-08 Tom Tromey <tromey@adacore.com>
9236
9237 * windows-nat.c (enum thread_disposition_type): Move to
9238 nat/windows-nat.h.
9239 (windows_nat::thread_rec): Rename from thread_rec. No longer
9240 static.
9241 (windows_add_thread, windows_nat_target::fetch_registers)
9242 (windows_nat_target::store_registers, handle_exception)
9243 (windows_nat_target::resume, get_windows_debug_event)
9244 (windows_nat_target::get_tib_address)
9245 (windows_nat_target::thread_name)
9246 (windows_nat_target::thread_alive): Update.
9247 * nat/windows-nat.h (enum thread_disposition_type): Move from
9248 windows-nat.c.
9249 (thread_rec): Declare.
9250
4834dad0
TT
92512020-04-08 Tom Tromey <tromey@adacore.com>
9252
9253 * windows-nat.c: Add "using namespace".
9254 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9255 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9256
65bafd5b
TT
92572020-04-08 Tom Tromey <tromey@adacore.com>
9258
9259 * nat/windows-nat.h (struct windows_thread_info): Declare
9260 destructor.
9261 * nat/windows-nat.c (~windows_thread_info): New.
9262
0a4afda3
TT
92632020-04-08 Tom Tromey <tromey@adacore.com>
9264
9265 PR gdb/22992
9266 * windows-nat.c (current_event): Update comment.
9267 (last_wait_event, desired_stop_thread_id): New globals.
9268 (struct pending_stop): New.
9269 (pending_stops): New global.
9270 (windows_nat_target) <stopped_by_sw_breakpoint>
9271 <supports_stopped_by_sw_breakpoint>: New methods.
9272 (windows_fetch_one_register): Add assertions. Adjust PC.
9273 (windows_continue): Handle pending stops. Suspend other threads
9274 when stepping. Use last_wait_event
9275 (wait_for_debug_event): New function.
9276 (get_windows_debug_event): Use wait_for_debug_event. Handle
9277 pending stops. Queue spurious stops.
9278 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9279 (windows_nat_target::kill): Use wait_for_debug_event.
9280 * nat/windows-nat.h (struct windows_thread_info)
9281 <stopped_at_software_breakpoint>: New field.
9282 * nat/windows-nat.c (windows_thread_info::resume): Clear
9283 stopped_at_software_breakpoint.
9284
8e61ebec
TT
92852020-04-08 Tom Tromey <tromey@adacore.com>
9286
9287 * windows-nat.c (enum thread_disposition_type): New.
9288 (thread_rec): Replace "get_context" parameter with "disposition";
9289 change type.
9290 (windows_add_thread, windows_nat_target::fetch_registers)
9291 (windows_nat_target::store_registers, handle_exception)
9292 (windows_nat_target::resume, get_windows_debug_event)
9293 (windows_nat_target::get_tib_address)
9294 (windows_nat_target::thread_name)
9295 (windows_nat_target::thread_alive): Update.
9296
98a03287
TT
92972020-04-08 Tom Tromey <tromey@adacore.com>
9298
9299 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9300 (windows_continue): Use windows_continue::resume.
9301 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9302 resume>: Declare new methods.
9303 * nat/windows-nat.c: New file.
9304 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9305
7c7411bc
TT
93062020-04-08 Tom Tromey <tromey@adacore.com>
9307
9308 * windows-nat.c (windows_add_thread, windows_delete_thread)
9309 (windows_nat_target::fetch_registers)
9310 (windows_nat_target::store_registers, fake_create_process)
9311 (windows_nat_target::resume, windows_nat_target::resume)
9312 (get_windows_debug_event, windows_nat_target::wait)
9313 (windows_nat_target::pid_to_str)
9314 (windows_nat_target::get_tib_address)
9315 (windows_nat_target::get_ada_task_ptid)
9316 (windows_nat_target::thread_name)
9317 (windows_nat_target::thread_alive): Use lwp, not tid.
9318
2950fdf7
TT
93192020-04-08 Tom Tromey <tromey@adacore.com>
9320
9321 * windows-nat.c (handle_exception)
9322 (windows_nat_target::thread_name): Update.
9323 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9324 <name>: Now unique_xmalloc_ptr.
9325
62fe396b
TT
93262020-04-08 Tom Tromey <tromey@adacore.com>
9327
9328 * windows-nat.c (thread_rec)
9329 (windows_nat_target::fetch_registers): Update.
9330 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9331 Update comment.
9332 <debug_registers_changed, reload_context>: Now bool.
9333
e9534bd2
TT
93342020-04-08 Tom Tromey <tromey@adacore.com>
9335
9336 * windows-nat.c (windows_add_thread): Use new.
9337 (windows_init_thread_list, windows_delete_thread): Use delete.
9338 (get_windows_debug_event): Update.
9339 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9340 destructor, and initializers.
9341
ae1f8880
TT
93422020-04-08 Tom Tromey <tromey@adacore.com>
9343
9344 * windows-nat.c (struct windows_thread_info): Remove.
9345 * nat/windows-nat.h: New file.
9346
55a1e039
TT
93472020-04-08 Tom Tromey <tromey@adacore.com>
9348
9349 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9350 (thread_rec, windows_add_thread, windows_delete_thread)
9351 (windows_continue): Update.
9352
93366324
TT
93532020-04-08 Tom Tromey <tromey@adacore.com>
9354
9355 * windows-nat.c (struct windows_thread_info): Remove typedef.
9356 (thread_head): Remove.
9357 (thread_list): New global.
9358 (thread_rec, windows_add_thread, windows_init_thread_list)
9359 (windows_delete_thread, windows_continue): Update.
9360
0f2265e2
SM
93612020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9362
9363 * windows-tdep.h (windows_init_abi): Add comment.
9364 (cygwin_init_abi): New declaration.
9365 * windows-tdep.c: Split signal enumeration in two, one for
9366 Windows and one for Cygwin.
9367 (windows_gdb_signal_to_target): Only deal with signal of the
9368 Windows OS ABI.
9369 (cygwin_gdb_signal_to_target): New function.
9370 (windows_init_abi): Rename to windows_init_abi_common, don't set
9371 gdb_signal_to_target gdbarch method. Add new new function with
9372 this name.
9373 (cygwin_init_abi): New function.
9374 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9375 comment. Don't call windows_init_abi.
9376 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9377 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9378 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9379 i386_windows_init_abi_common, don't call windows_init_abi. Add
9380 a new function of this name.
9381 (i386_cygwin_init_abi): New function.
9382 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9383 OS ABI Cygwin.
9384
3810f182
SM
93852020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9386
9387 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9388 parameter.c.
9389 (dwarf2_read_gdb_index): Update.
9390
063f8e80
KR
93912020-04-07 Kamil Rytarowski <n54@gmx.com>
9392
9393 * nbsd-tdep.c: Include "objfiles.h".
9394 (nbsd_skip_solib_resolver): New.
9395 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9396
85a9510c 93972020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9398
9399 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9400 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9401 with DW_LLE_base_addressx are being emitted in DWARFv5.
9402 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9403 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9404 unsigned integer.
9405
9fc3eaae 94062020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9407
9408 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9409 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9410 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9411 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9412 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9413 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9414 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9415
9416
41144253 94172020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9418
9419 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9420 (read_loclist_index): New function definition.
9421 (lookup_loclist_base): New function definition.
9422 (read_loclist_header): New function definition.
9423 (dwarf2_cu): Add loclist_base and loclist_header field.
9424 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9425 (read_full_die_1): Read the value of DW_AT_loclists_base.
9426 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9427 (read_attribute_value): Handle DW_FORM_loclistx.
9428 (skip_one_die): Handle DW_FORM_loclistx.
9429 (loclist_header): New structure declaration.
9430 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9431
9f4e76a4
SM
94322020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9433
9434 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9435 constructor. Remove `addr` parameter from other constructor and
9436 add `per_cu` parameter.
9437 * dwarf2/read.c (create_partial_symtab): Update.
9438
25c11aca
TV
94392020-04-07 Tom de Vries <tdevries@suse.de>
9440
9441 PR symtab/25796
9442 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9443 (partial_die_info::fixup): Inherit has_const_value.
9444
5707e24b
TV
94452020-04-07 Tom de Vries <tdevries@suse.de>
9446
9447 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9448 symbols without address.
9449
05f00e22
KR
94502020-04-06 Kamil Rytarowski <n54@gmx.com>
9451
9452 * nbsd-nat.h (struct thread_info): Add forward declaration.
9453 (nbsd_nat_target::thread_alive): Add.
9454 (nbsd_nat_target::thread_name): Likewise.
9455 (nbsd_nat_target::update_thread_list): Likewise.
9456 (update_thread_list::post_attach): Likewise.
9457 (post_attach::pid_to_str): Likewise.
9458 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9459 (nbsd_thread_lister): Add.
9460 (nbsd_nat_target::thread_alive): Likewise.
9461 (nbsd_nat_target::thread_name): Likewise.
9462 (nbsd_add_threads): Likewise.
9463 (update_thread_list::post_attach): Likewise.
9464 (nbsd_nat_target::update_thread_list): Likewise.
9465 (post_attach::pid_to_str): Likewise.
9466
6ee448cc
TT
94672020-04-06 Tom Tromey <tromey@adacore.com>
9468
9469 * ada-valprint.c (print_variant_part): Extract the variant field.
9470 (print_field_values): Use the field as the outer value when
9471 recursing.
9472
dea34e8c
TT
94732020-04-06 Tom Tromey <tromey@adacore.com>
9474
9475 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9476 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9477 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9478 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9479 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9480
93689ce9
TT
94812020-04-06 Tom Tromey <tromey@adacore.com>
9482
9483 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9484 TYPE_CODE_ERROR.
9485
79743962
KR
94862020-04-06 Kamil Rytarowski <n54@gmx.com>
9487
9488 * nbsd-tdep.c: Include "gdbarch.h".
9489 Define enum with NetBSD signal numbers.
9490 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9491 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9492 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9493 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9494 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9495 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9496 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9497 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9498 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9499 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9500 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9501 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9502
9e7c9a03
HD
95032020-04-03 Hannes Domani <ssbssa@yahoo.de>
9504
9505 PR gdb/25325
9506 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9507
d9e49b61
TT
95082020-04-03 Tom Tromey <tromey@adacore.com>
9509
9510 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9511 Read constant block.
9512
e0fc5c3f
SM
95132020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9514
9515 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9516 (gdb_bfd_get_full_section_contents): New declaration.
9517 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9518 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9519 gdb_bfd_get_full_section_contents.
9520
e2ff18a0
SM
95212020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9522
9523 * exec.c (build_section_table): Replace internal_error with
9524 gdb_assert.
9525 (section_table_xfer_memory_partial): Likewise.
9526 * mdebugread.c (parse_partial_symbols): Likewise.
9527 * psymtab.c (lookup_partial_symbol): Likewise.
9528 * utils.c (wrap_here): Likewise.
9529
0830d301
TT
95302020-04-02 Tom Tromey <tromey@adacore.com>
9531
9532 * f-lang.c (build_fortran_types): Use arch_type to initialize
9533 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9534
e7da7f8f
TT
95352020-04-02 Tom Tromey <tromey@adacore.com>
9536
9537 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9538 of attributes.
9539
c90d28ac
AB
95402020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9541 Bernd Edlinger <bernd.edlinger@hotmail.de>
9542 Tom Tromey <tromey@adacore.com>
9543
9544 * buildsym.c (buildsym_compunit::record_line): Remove
9545 deduplication code.
9546
1aa98955
TV
95472020-04-02 Tom de Vries <tdevries@suse.de>
9548
9549 PR ada/24671
9550 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9551
d3214198
TV
95522020-04-02 Tom de Vries <tdevries@suse.de>
9553
9554 * dwarf2/read.c (dwarf2_gdb_index_functions,
9555 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9556 NULL.
9557 * psymtab.c (psym_lookup_global_symbol_language): New function.
9558 (psym_functions): Init psym_lookup_global_symbol_language with
9559 psym_lookup_global_symbol_language.
9560 * symfile-debug.c (debug_sym_quick_functions): Init
9561 lookup_global_symbol_language with NULL.
9562 * symfile.c (set_initial_language): Remove fixme comment.
9563 * symfile.h (struct quick_symbol_functions): Add
9564 lookup_global_symbol_language.
9565 * symtab.c (find_quick_global_symbol_language): New function.
9566 (find_main_name): Use find_quick_global_symbol_language.
9567
2836752f
SM
95682020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9569
9570 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9571
64dc2d4b
BE
95722020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9573
9574 * buildsym.c (record_line): Fix undefined behavior and preserve
9575 lines at eof.
9576
bbe3dc41
BE
95772020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9578
9579 * buildsym.c (record_line): Fix the resizing condition.
9580
6b4a335b
TT
95812020-04-01 Tom Tromey <tom@tromey.com>
9582
9583 * value.h (value_literal_complex): Add comment.
9584 * valops.c (value_literal_complex): Refer to value.h.
9585
3638a098
TT
95862020-04-01 Tom Tromey <tom@tromey.com>
9587
9588 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9589 (scalar_type): New rule, from typebase.
9590 (typebase): Use scalar_type. Recognize complex types.
9591 (field_name): Handle FLOAT_KEYWORD.
9592 (ident_tokens): Add _Complex and __complex__.
9593
c34e8714
TT
95942020-04-01 Tom Tromey <tom@tromey.com>
9595
9596 PR exp/25299:
9597 * valarith.c (promotion_type, complex_binop): New functions.
9598 (scalar_binop): Handle complex numbers. Use promotion_type.
9599 (value_pos, value_neg, value_complement): Handle complex numbers.
9600
fa649bb7
TT
96012020-04-01 Tom Tromey <tom@tromey.com>
9602
9603 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9604 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9605 (parse_number): Handle complex numbers.
9606
981c08ce
TT
96072020-04-01 Tom Tromey <tom@tromey.com>
9608
9609 * c-valprint.c (c_decorations): Change complex suffix to "i".
9610
4c99290d
TT
96112020-04-01 Tom Tromey <tom@tromey.com>
9612
9613 * valprint.c (generic_value_print_complex): Use accessors.
9614 * value.h (value_real_part, value_imaginary_part): Declare.
9615 * valops.c (value_real_part, value_imaginary_part): New
9616 functions.
9617 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9618
5b930b45
TT
96192020-04-01 Tom Tromey <tom@tromey.com>
9620
9621 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9622 (read_range_type): Update.
9623 * mdebugread.c (basic_type): Update.
9624 * go-lang.c (build_go_types): Use init_complex_type.
9625 * gdbtypes.h (struct main_type) <complex_type>: New member.
9626 (init_complex_type): Update.
9627 (arch_complex_type): Don't declare.
9628 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9629 Make name if none given. Use alloc_type_copy. Look for cached
9630 complex type.
9631 (arch_complex_type): Remove.
9632 (gdbtypes_post_init): Use init_complex_type.
9633 * f-lang.c (build_fortran_types): Use init_complex_type.
9634 * dwarf2/read.c (read_base_type): Update.
9635 * d-lang.c (build_d_types): Use init_complex_type.
9636 * ctfread.c (read_base_type): Update.
9637
53cccef1
TBA
96382020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9639
9640 * infrun.c (stop_all_threads): Update assertion, plus when
9641 stopping threads, take into account that we might be trying
9642 to stop an all-stop target.
9643 (stop_waiting): Call 'stop_all_threads' if there exists a
9644 non-stop target.
9645
a0714d30
TBA
96462020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9647
9648 * target.h (exists_non_stop_target): New function declaration.
9649 * target.c (exists_non_stop_target): New function.
9650
60e22c1e
HD
96512020-04-01 Hannes Domani <ssbssa@yahoo.de>
9652
9653 PR gdb/24789
9654 * eval.c (is_integral_or_integral_reference): New function.
9655 (evaluate_subexp_standard): Allow integer references in
9656 pointer arithmetic.
9657
e139a727
TBA
96582020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9659
9660 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9661 check for no ptid in the stop reply when the target is non-stop.
9662
e0802d59
TT
96632020-04-01 Tom Tromey <tromey@adacore.com>
9664
9665 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9666 "name" parameter to rvalue reference. Initialize m_name_holder.
9667 <lookup_name_info>: New overloads.
9668 <name>: Return gdb::string_view.
9669 <c_str>: New method.
9670 <make_ignore_params>: Update.
9671 <search_name_hash>: Update.
9672 <language_lookup_name>: Return const char *.
9673 <m_name>: Change type.
9674 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9675 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9676 (lookup_name_info::match_any): Update.
9677 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9678 Update.
9679 * minsyms.c (linkage_name_str): Update.
9680 * language.c (default_symbol_name_matcher): Update.
9681 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9682 Update.
9683 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9684 (ada_lookup_name_info::ada_lookup_name_info): Update.
9685 (literal_symbol_name_matcher): Update.
9686
8c072cb6
TT
96872020-04-01 Tom Tromey <tromey@adacore.com>
9688
9689 * psymtab.c (psymtab_search_name): Remove function.
9690 (psym_lookup_symbol): Create search name and lookup name here.
9691 (lookup_partial_symbol): Remove "name" parameter; add
9692 lookup_name.
9693 (psym_expand_symtabs_for_function): Update.
9694
6f29a534
TT
96952020-03-31 Joel Jones <joelkevinjones@gmail.com>
9696
9697 PR tui/25597:
9698 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9699
af62665e
TT
97002020-03-31 Tom Tromey <tromey@adacore.com>
9701
9702 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9703 memcpy.
9704
d1a89da5
NC
97052020-03-30 Nelson Chu <nelson.chu@sifive.com>
9706
9707 * features/riscv/32bit-csr.xml: Regenerated.
9708 * features/riscv/64bit-csr.xml: Regenerated.
9709
d8af9068
TT
97102020-03-30 Tom Tromey <tromey@adacore.com>
9711
9712 * ada-valprint.c (print_variant_part): Update.
9713 * ada-lang.h (ada_which_variant_applies): Update.
9714 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9715 outer_valaddr parameters; replace with "outer" value parameter.
9716 (to_fixed_variant_branch_type): Update.
9717
227c0bf4
PFC
97182020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9719
9720 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9721 <list>. Remove inclusion of observable.h.
9722 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9723 (struct arch_lwp_info): New struct.
9724 (class ppc_linux_dreg_interface): New class.
9725 (struct ppc_linux_process_info): New struct.
9726 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9727 <low_new_clone, low_forget_process, low_prepare_to_resume>
9728 <copy_thread_dreg_state, mark_thread_stale>
9729 <mark_debug_registers_changed, register_hw_breakpoint>
9730 <clear_hw_breakpoint, register_wp, clear_wp>
9731 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9732 <num_memory_accesses, get_trigger_type>
9733 <create_watchpoint_request, hwdebug_point_cmp>
9734 <init_arch_lwp_info, get_arch_lwp_info>
9735 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9736 methods.
9737 <struct ptid_hash>: New inner struct.
9738 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9739 members.
9740 (saved_dabr_value, hwdebug_info, max_slots_number)
9741 (struct hw_break_tuple, struct thread_points, ppc_threads)
9742 (have_ptrace_hwdebug_interface)
9743 (hwdebug_find_thread_points_by_tid)
9744 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9745 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9746 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9747 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9748 use m_dreg_interface.
9749 (hwdebug_point_cmp): Change to...
9750 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9751 reference arguments instead of pointers.
9752 (ppc_linux_nat_target::ranged_break_num_registers): Use
9753 m_dreg_interface.
9754 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9755 m_dreg_interface. Call register_hw_breakpoint.
9756 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9757 m_dreg_interface. Call clear_hw_breakpoint.
9758 (get_trigger_type): Change to...
9759 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9760 comment.
9761 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9762 use m_dreg_interface. Call register_hw_breakpoint.
9763 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9764 use m_dreg_interface. Call clear_hw_breakpoint.
9765 (can_use_watchpoint_cond_accel): Change to...
9766 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9767 method. Update comment, use m_dreg_interface and
9768 m_process_info.
9769 (calculate_dvc): Change to...
9770 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9771 m_dreg_interface.
9772 (num_memory_accesses): Change to...
9773 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9774 (check_condition): Change to...
9775 (ppc_linux_nat_target::check_condition): ...this method.
9776 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9777 comment, use m_dreg_interface.
9778 (create_watchpoint_request): Change to...
9779 (ppc_linux_nat_target::create_watchpoint_request): ...this
9780 method. Use m_dreg_interface.
9781 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9782 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9783 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9784 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9785 (ppc_linux_nat_target::low_forget_process)
9786 (ppc_linux_nat_target::low_new_fork)
9787 (ppc_linux_nat_target::low_new_clone)
9788 (ppc_linux_nat_target::low_delete_thread)
9789 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9790 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9791 only call mark_thread_stale.
9792 (ppc_linux_thread_exit): Remove.
9793 (ppc_linux_nat_target::stopped_data_address): Change to...
9794 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9795 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9796 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9797 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9798 comment. Call low_stopped_data_address.
9799 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9800 m_dreg_interface.
9801 (ppc_linux_nat_target::masked_watch_num_registers): Use
9802 m_dreg_interface.
9803 (ppc_linux_nat_target::copy_thread_dreg_state)
9804 (ppc_linux_nat_target::mark_thread_stale)
9805 (ppc_linux_nat_target::mark_debug_registers_changed)
9806 (ppc_linux_nat_target::register_hw_breakpoint)
9807 (ppc_linux_nat_target::clear_hw_breakpoint)
9808 (ppc_linux_nat_target::register_wp)
9809 (ppc_linux_nat_target::clear_wp)
9810 (ppc_linux_nat_target::init_arch_lwp_info)
9811 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9812 (_initialize_ppc_linux_nat): Remove observer callback.
9813
4db10d8f
PFC
98142020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9815
9816 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9817 (ppc_linux_nat_target::auxv_parse)
9818 (ppc_linux_nat_target::read_description)
9819 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9820 Move up.
9821
1310c1b0
PFC
98222020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9823
9824 * linux-nat.h (low_new_clone): New method.
9825 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9826
69b037c3
SM
98272020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9828
9829 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9830 (dbx_expand_psymtab): ... this.
9831 (start_psymtab): Update.
9832 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9833 (mdebug_expand_psymtab): ... this.
9834 (parse_partial_symbols): Update.
9835 (new_psymtab): Update.
9836 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9837 (xcoff_expand_psymtab): ... this.
9838 (xcoff_start_psymtab): Update.
9839
48993951
SM
98402020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9841
9842 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9843 <expand_dependencies>: ... this.
9844 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9845 (partial_symtab::expand_dependencies): ... this.
9846 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9847 Update.
9848 (dwarf2_psymtab::expand_psymtab): Update.
9849 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9850 * mdebugread.c (psymtab_to_symtab_1): Update.
9851 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9852
3ad83046
SM
98532020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9854
9855 * psympriv.h (discard_psymtab): Remove.
9856 * dbxread.c (dbx_end_psymtab): Update.
9857 * xcoffread.c (xcoff_end_psymtab): Update.
9858
4d1b9ab6
TT
98592020-03-28 Tom Tromey <tom@tromey.com>
9860
9861 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9862 comment.
9863
f1749218
TT
98642020-03-28 Tom Tromey <tom@tromey.com>
9865
9866 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9867
ebea7626
HD
98682020-03-27 Hannes Domani <ssbssa@yahoo.de>
9869
9870 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9871
a879b4d5
JB
98722020-03-26 John Baldwin <jhb@FreeBSD.org>
9873
9874 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9875
0826b30a
TT
98762020-03-26 Tom Tromey <tom@tromey.com>
9877
9878 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9879 (mark_common_block_symbol_computed, read_tag_string_type)
9880 (attr_to_dynamic_prop, read_subrange_type): Update.
9881 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9882 to be methods on struct attribute.
9883 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9884 (read_call_site_scope, partial_die_info::read)
9885 (partial_die_info::read, lookup_die_type, follow_die_ref):
9886 Update.
9887 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9888 from dwarf2_get_ref_die_offset.
9889 (attribute::constant_value): New method, from
9890 dwarf2_get_attr_constant_value.
9891 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9892 Declare method.
9893 <constant_value>: New method.
9894
2b2558bf
TT
98952020-03-26 Tom Tromey <tom@tromey.com>
9896
9897 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9898 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9899 (dwarf_type_encoding_name): Move to stringify.c.
9900 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9901 * dwarf2/stringify.c: New file.
9902 * dwarf2/stringify.h: New file.
9903
eeb64781
TT
99042020-03-26 Tom Tromey <tom@tromey.com>
9905
9906 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9907 Rewrite.
9908
a39fdb41
TT
99092020-03-26 Tom Tromey <tom@tromey.com>
9910
9911 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9912 methods.
9913 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9914 (lookup_ranges_base): Likewise.
9915 (read_cutu_die_from_dwo, read_full_die_1): Update.
9916
436c571c
TT
99172020-03-26 Tom Tromey <tom@tromey.com>
9918
9919 * dwarf2/read.c (read_import_statement, read_file_scope)
9920 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9921 (read_lexical_block_scope, read_call_site_scope)
9922 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9923 (handle_struct_member_die, process_structure_scope)
9924 (update_enumeration_type_from_children)
9925 (process_enumeration_scope, read_array_type, read_common_block)
9926 (read_namespace, read_module, read_subroutine_type): Update.
9927 (sibling_die): Remove.
9928
052c8bb8
TT
99292020-03-26 Tom Tromey <tom@tromey.com>
9930
9931 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9932 (build_type_psymtabs_reader, read_structure_type)
9933 (read_enumeration_type, read_full_die_1): Update.
9934 (dwarf2_attr_no_follow): Move to die.h.
9935 * dwarf2/die.h (struct die_info) <attr>: New method.
9936
2b24b6e4
TT
99372020-03-26 Tom Tromey <tom@tromey.com>
9938
9939 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9940 <base_address>: Now an optional.
9941 (dwarf2_find_base_address, dwarf2_rnglists_process)
9942 (dwarf2_ranges_process, fill_in_loclist_baton)
9943 (dwarf2_symbol_mark_computed): Update.
9944
c2d50fd0
TT
99452020-03-26 Tom Tromey <tom@tromey.com>
9946
9947 * dwarf2/read.c (struct die_info): Move to die.h.
9948 * dwarf2/die.h: New file.
9949
0df7ad3a
TT
99502020-03-26 Tom Tromey <tom@tromey.com>
9951
9952 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9953 * dwarf2/read.c
9954 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9955 Move to line-header.c.
9956 (read_checked_initial_length_and_offset, read_formatted_entries):
9957 Likewise.
9958 (dwarf_decode_line_header): Split into two.
9959 * dwarf2/line-header.c
9960 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9961 Move from read.c.
9962 (read_checked_initial_length_and_offset, read_formatted_entries):
9963 Likewise.
9964 (dwarf_decode_line_header): New function, split from read.c.
9965
86c0bb4c
TT
99662020-03-26 Tom Tromey <tom@tromey.com>
9967
9968 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9969 Declare method.
9970 * dwarf2/read.c (read_attribute_value): Update.
9971 (dwarf2_per_objfile::read_line_string): Rename from
9972 read_indirect_line_string.
9973 (read_formatted_entries): Update.
9974
2ef46c2f
TT
99752020-03-26 Tom Tromey <tom@tromey.com>
9976
9977 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9978 variable.
9979
4f9c1eda
TT
99802020-03-26 Tom Tromey <tom@tromey.com>
9981
9982 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9983 const.
9984 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9985 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9986 parameter const.
9987
5a0e026f
TT
99882020-03-26 Tom Tromey <tom@tromey.com>
9989
9990 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9991 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9992 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9993 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9994
8844c11b
TT
99952020-03-26 Tom Tromey <tom@tromey.com>
9996
9997 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9998 file_names_size, file_full_name, file_file_name>: Use const.
9999 <file_name_at, file_names>: Add const overload.
10000 * dwarf2/line-header.c (line_header::file_file_name)
10001 (line_header::file_full_name): Update.
10002
c90ec28a
TT
100032020-03-26 Tom Tromey <tom@tromey.com>
10004
10005 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10006 (macro_start_file, consume_improper_spaces)
10007 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10008 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10009 (dwarf_decode_macros): Move to macro.c.
10010 * dwarf2/macro.c: New file.
10011 * dwarf2/macro.h: New file.
10012 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10013
4f44ae6c
TT
100142020-03-26 Tom Tromey <tom@tromey.com>
10015
10016 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10017 method.
10018 * dwarf2/section.c: New method. From
10019 read_indirect_string_at_offset_from.
10020 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10021 (read_indirect_string_at_offset_from): Move to section.c.
10022 (read_indirect_string_at_offset): Rewrite.
10023 (read_indirect_line_string_at_offset): Remove.
10024 (read_indirect_string, read_indirect_line_string)
10025 (dwarf_decode_macro_bytes): Update.
10026
a0194fa8
TT
100272020-03-26 Tom Tromey <tom@tromey.com>
10028
10029 * dwarf2/section.h (struct dwarf2_section_info)
10030 <overload_complaint>: Declare.
10031 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10032 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10033 Rename from dwarf2_section_buffer_overflow_complaint.
10034 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10035 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10036
3d27bbdb
TT
100372020-03-26 Tom Tromey <tom@tromey.com>
10038
10039 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10040 Declare.
10041 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10042 Move from read.c.
10043 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10044 to section.c.
10045
9eac9650
TT
100462020-03-26 Tom Tromey <tom@tromey.com>
10047
10048 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10049
bf80d710
TT
100502020-03-26 Tom Tromey <tom@tromey.com>
10051
10052 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10053 "builder".
10054 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10055 parameter.
10056 (dwarf_decode_macros): Update.
10057
0314b390
TT
100582020-03-26 Tom Tromey <tom@tromey.com>
10059
10060 * dwarf2/read.c (read_attribute_value): Update.
10061 (read_indirect_string_from_dwz): Move to dwz.c; change into
10062 method.
10063 (dwarf_decode_macro_bytes): Update.
10064 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10065 * dwarf2/dwz.c: New file.
10066 * Makefile.in (COMMON_SFILES): Add dwz.c.
10067
9fda78b6
TT
100682020-03-26 Tom Tromey <tom@tromey.com>
10069
10070 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10071 * dwarf2/read.c: Add include.
10072 * dwarf2/index-write.c: Add include.
10073 * dwarf2/index-cache.c: Add include.
10074 * dwarf2/dwz.h: New file.
10075
33aa3c10
TT
100762020-03-25 Tom Tromey <tom@tromey.com>
10077
10078 * compile/compile-object-load.c (get_out_value_type): Mention
10079 correct symbol name in error message.
10080
d503b685
HD
100812020-03-25 Hannes Domani <ssbssa@yahoo.de>
10082
10083 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10084
7b1eff95
TV
100852020-03-25 Tom de Vries <tdevries@suse.de>
10086
10087 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10088 * symmisc.c (dump_symtab_1): Print user and includes fields.
10089 (maintenance_info_symtabs): Same.
10090
dd895392
AB
100912020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10092
10093 PR gdb/25534
10094 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10095 (riscv_regcache_cooked_write): New function.
10096 (riscv_push_dummy_call): Use new function.
10097 (riscv_return_value): Likewise.
10098
5ab2fbf1
SM
100992020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10100
10101 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10102 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10103 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10104 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10105 * infrun.c (follow_fork): Likewise.
10106 (follow_fork_inferior): Likewise.
10107 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10108 * linux-nat.h (class linux_nat_target): Likewise.
10109 * remote.c (class remote_target) <follow_fork>: Likewise.
10110 (remote_target::follow_fork): Likewise.
10111 * target-delegates.c: Re-generate.
10112 * target.c (default_follow_fork): Likewise.
10113 (target_follow_fork): Likewise.
10114 * target.h (struct target_ops) <follow_fork>: Likewise.
10115 (target_follow_fork): Likewise.
10116
a64fafb5
TV
101172020-03-24 Tom de Vries <tdevries@suse.de>
10118
10119 * psymtab.c (maintenance_info_psymtabs): Print user field.
10120
fe26d3a3
TT
101212020-03-20 Tom Tromey <tromey@adacore.com>
10122
10123 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10124 const.
10125 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10126 const.
10127
c884cc46
SM
101282020-03-20 Simon Marchi <simon.marchi@efficios.com>
10129
10130 * ptrace.m4: Don't check for ptrace declaration.
10131 * config.in: Re-generate.
10132 * configure: Re-generate.
10133 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10134 not defined.
10135
1ff700c2
KR
101362020-03-20 Kamil Rytarowski <n54@gmx.com>
10137
10138 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10139 `PTRACE_TYPE_RET'.
10140 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10141 * sparc-nat.c (gdb_ptrace): Likewise.
10142 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10143
f7d4f0b1
TT
101442020-03-20 Tom Tromey <tromey@adacore.com>
10145
10146 * c-exp.y (lex_one_token): Fix assert.
10147
f67210ff
TT
101482020-03-20 Tom Tromey <tromey@adacore.com>
10149
10150 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10151 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10152 strncpy call.
10153
1773be9e
TT
101542020-03-20 Tom Tromey <tromey@adacore.com>
10155
10156 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10157
70304be9
TT
101582020-03-20 Tom Tromey <tromey@adacore.com>
10159
10160 * ada-valprint.c (print_variant_part): Remove parameters; switch
10161 to value-based API.
10162 (print_field_values): Likewise.
10163 (ada_val_print_struct_union): Likewise.
10164 (ada_value_print_1): Update.
10165
9faa006d
KR
101662020-03-20 Kamil Rytarowski <n54@gmx.com>
10167
10168 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10169 nbsd_nat_target instead of inf_ptrace_target.
10170 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10171 nbsd_nat_target.
10172
4a90f062
KR
101732020-03-20 Kamil Rytarowski <n54@gmx.com>
10174
10175 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10176 it to the ptrace call.
10177 * (store_registers): Likewise.
10178
101792020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10180
10181 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10182 it to the ptrace call.
10183 * (store_registers): Likewise.
10184
2d07da27
LM
101852020-03-19 Luis Machado <luis.machado@linaro.org>
10186
10187 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10188 valid, fetch vg value from ptrace.
10189
f09db380
KR
101902020-03-19 Kamil Rytarowski <n54@gmx.com>
10191 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10192 * inf-ptrace.c: Likewise.
10193 * (gdb_ptrace): Add.
10194 * (inf_ptrace_target::resume): Update.
10195 * (inf_ptrace_target::xfer_partial): Likewise.
10196 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10197 * (inf_ptrace_peek_poke): Update.
10198
fcc7376e
KR
101992020-03-19 Kamil Rytarowski <n54@gmx.com>
10200
10201 * x86-bsd-nat.c (gdb_ptrace): New.
10202 * (x86bsd_dr_set): Add new argument `ptid'.
10203 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10204 x86bsd_dr_set_addr): Update.
10205
cada5fc9
AB
102062020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10207
10208 * remote.c (remote_target::process_stop_reply): Handle events for
10209 all threads differently.
10210
19a2740f
AB
102112020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10212
10213 * completer.c (completion_tracker::remove_completion): Define new
10214 function.
10215 * completer.h (completion_tracker::remove_completion): Declare new
10216 function.
10217 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10218 when adding a C++ function symbol.
10219
724fd9ba
AB
102202020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10221
10222 * completer.c (completion_tracker::completion_hash_entry): Define
10223 new class.
10224 (advance_to_filename_complete_word_point): Call
10225 recompute_lowest_common_denominator.
10226 (completion_tracker::completion_tracker): Call discard_completions
10227 to setup the hash table.
10228 (completion_tracker::discard_completions): Allow for being called
10229 from the constructor, pass new equal function, and element deleter
10230 when constructing the hash table. Initialise new class member
10231 variables.
10232 (completion_tracker::maybe_add_completion): Remove use of
10233 m_entries_vec, and store more information into m_entries_hash.
10234 (completion_tracker::recompute_lcd_visitor): New function, most
10235 content taken from...
10236 (completion_tracker::recompute_lowest_common_denominator):
10237 ...here, this now just visits each item in the hash calling the
10238 above visitor.
10239 (completion_tracker::build_completion_result): Remove use of
10240 m_entries_vec, call recompute_lowest_common_denominator.
10241 * completer.h (completion_tracker::have_completions): Remove use
10242 of m_entries_vec.
10243 (completion_tracker::completion_hash_entry): Declare new class.
10244 (completion_tracker::recompute_lowest_common_denominator): Change
10245 function signature.
10246 (completion_tracker::recompute_lcd_visitor): Declare new function.
10247 (completion_tracker::m_entries_vec): Delete.
10248 (completion_tracker::m_entries_hash): Initialize to NULL.
10249 (completion_tracker::m_lowest_common_denominator_valid): New
10250 member variable.
10251 (completion_tracker::m_lowest_common_denominator_max_length): New
10252 member variable.
10253
5a82b8a1
KR
102542020-03-17 Kamil Rytarowski <n54@gmx.com>
10255
10256 * regformats/regdef.h: Put reg in gdb namespace.
10257
fb516a69
KR
102582020-03-17 Kamil Rytarowski <n54@gmx.com>
10259
10260 * i386-bsd-nat.c (gdb_ptrace): New.
10261 * (i386bsd_fetch_inferior_registers,
10262 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10263 * (i386bsd_fetch_inferior_registers,
10264 i386bsd_store_inferior_registers) Use gdb_ptrace.
10265
1c0aa1fb
KR
102662020-03-17 Kamil Rytarowski <n54@gmx.com>
10267
10268 * amd64-bsd-nat.c (gdb_ptrace): New.
10269 * (amd64bsd_fetch_inferior_registers,
10270 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10271 * (amd64bsd_fetch_inferior_registers,
10272 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10273
5ccd2fb7
KR
102742020-03-17 Kamil Rytarowski <n54@gmx.com>
10275
10276 * user-regs.c (user_reg::read): Rename to...
10277 (user_reg::xread): ...this.
10278 * (append_user_reg): Rename argument `read' to `xread'.
10279 * (user_reg_add_builtin): Likewise.
10280 * (user_reg_add): Likewise.
10281 * (value_of_user_reg): Likewise.
10282
2108a63a
KR
102832020-03-17 Kamil Rytarowski <n54@gmx.com>
10284
10285 * sparc-nat.c (gdb_ptrace): New.
10286 * sparc-nat.c (sparc_fetch_inferior_registers)
10287 (sparc_store_inferior_registers) Remove obsolete comment.
10288 * sparc-nat.c (sparc_fetch_inferior_registers)
10289 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10290 * sparc-nat.c (sparc_fetch_inferior_registers)
10291 (sparc_store_inferior_registers) Use gdb_ptrace.
10292
a225c9a8
KR
102932020-03-17 Kamil Rytarowski <n54@gmx.com>
10294
10295 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10296 it to the ptrace call.
10297 * sh-nbsd-nat.c (store_registers): Likewise.
10298
98097623
KR
102992020-03-17 Kamil Rytarowski <n54@gmx.com>
10300
10301 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10302 nbsd_nat_target instead of inf_ptrace_target.
10303 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10304 nbsd_nat_target.
10305
9e38d619
KR
103062020-03-17 Kamil Rytarowski <n54@gmx.com>
10307
10308 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10309
a2ecbe9f
KR
103102020-03-17 Kamil Rytarowski <n54@gmx.com>
10311
10312 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10313 <sys/sysctl.h>.
10314 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10315
58990295
TV
103162020-03-17 Tom de Vries <tdevries@suse.de>
10317
10318 PR gdb/23710
10319 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10320 fields.
10321 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10322 fields.
10323 (process_imported_unit_die): Skip import of c++ CUs.
10324
771dd3a8
TT
103252020-03-16 Tom Tromey <tom@tromey.com>
10326
10327 * p-valprint.c (pascal_object_print_value): Initialize
10328 base_value.
10329
817a7585
AK
103302020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10331 Shahab Vahedi <shahab@synopsys.com>
10332
10333 * Makefile.in: Add arch/arc.o
10334 * configure.tgt: Likewise.
10335 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10336 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10337 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10338 * arc-tdep.h (arc_read_description): Add proto type.
10339 * arch/arc.c: New file.
10340 * arch/arc.h: Likewise.
10341 * features/Makefile: Replace old target descriptions with new.
10342 * features/arc-arcompact.c: Remove.
10343 * features/arc-arcompact.xml: Likewise.
10344 * features/arc-v2.c: Likewise
10345 * features/arc-v2.xml: Likewise
10346 * features/arc/aux-arcompact.xml: New file.
10347 * features/arc/aux-v2.xml: Likewise.
10348 * features/arc/core-arcompact.xml: Likewise.
10349 * features/arc/core-v2.xml: Likewise.
10350 * features/arc/aux-arcompact.c: Generate.
10351 * features/arc/aux-v2.c: Likewise.
10352 * features/arc/core-arcompact.c: Likewise.
10353 * features/arc/core-v2.c: Likewise.
10354 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10355
67430cd0
TT
103562020-03-16 Tom Tromey <tromey@adacore.com>
10357
10358 PR gdb/25663:
10359 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10360 putting value into bcache.
10361
30efb6c7
SM
103622020-03-16 Simon Marchi <simon.marchi@efficios.com>
10363
10364 PR gdb/21500
10365 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10366 to...
10367 (amd64_windows_init_abi_common): ... this. Don't set size of
10368 long type.
10369 (amd64_windows_init_abi): New function.
10370 (amd64_cygwin_init_abi): New function.
10371 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10372 the Cygwin OS ABI.
10373 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10374 comment.
10375
8db52437
SM
103762020-03-16 Simon Marchi <simon.marchi@efficios.com>
10377
10378 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10379 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10380 (pe_import_directory_entry): New struct type.
10381 (is_linked_with_cygwin_dll): New function.
10382 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10383 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10384 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10385
5982a56a
SM
103862020-03-16 Simon Marchi <simon.marchi@efficios.com>
10387
10388 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10389 i386_cygwin_core_osabi_sniffer.
10390
7a1998df
SM
103912020-03-16 Simon Marchi <simon.marchi@efficios.com>
10392
10393 * i386-cygwin-tdep.c: Rename to...
10394 * i386-windows-tdep.c: ... this.
10395 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10396 i386-windows-tdep.c.
10397 * configure.tgt: Likewise.
10398
053205cc
SM
103992020-03-16 Simon Marchi <simon.marchi@efficios.com>
10400
10401 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10402 * osabi.c (gdb_osabi_names): Add "Windows".
10403 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10404 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10405 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10406 i386_cygwin_osabi_sniffer.
10407 (_initialize_i386_cygwin_tdep): Register OS ABI
10408 GDB_OSABI_WINDOWS for i386.
10409 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10410 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10411 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10412 for x86-64.
10413 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10414 when the target matches '*-*-mingw*'.
10415
fe4b2ee6
SM
104162020-03-16 Simon Marchi <simon.marchi@efficios.com>
10417
10418 * defs.h (enum gdb_osabi): Move to...
10419 * osabi.h (enum gdb_osabi): ... here.
10420 * gdbarch.sh: Include osabi.h in gdbarch.h.
10421 * gdbarch.h: Re-generate.
10422
cb9b645d
SM
104232020-03-16 Simon Marchi <simon.marchi@efficios.com>
10424
10425 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10426 function.
10427 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10428
3293bbaf
TT
104292020-03-14 Tom Tromey <tom@tromey.com>
10430
10431 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10432 for C++.
10433 (c_type_print_modifier): Likewise. Add "language" parameter.
10434 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10435 (c_type_print_base_1): Update.
10436 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10437 constants.
10438 * type-stack.c (type_stack::insert): Handle tp_atomic and
10439 tp_restrict.
10440 (type_stack::follow_type_instance_flags): Likewise.
10441 (type_stack::follow_types): Likewise. Merge type-following code.
10442 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10443 (space_identifier, cv_with_space_id)
10444 (const_or_volatile_or_space_identifier_noopt)
10445 (const_or_volatile_or_space_identifier): Remove.
10446 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10447 rules.
10448 (ptr_operator, typebase): Update.
10449 (enum token_flag) <FLAG_C>: New constant.
10450 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10451 "_Atomic".
10452 (lex_one_token): Handle FLAG_C.
10453
154151a6
KR
104542020-03-14 Kamil Rytarowski <n54@gmx.com>
10455
10456 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10457 it to the ptrace call.
10458 * m68k-bsd-nat.c (store_registers): Likewise.
10459
bc107784
KR
104602020-03-14 Kamil Rytarowski <n54@gmx.com>
10461
10462 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10463 gdb_byte *.
10464 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10465 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10466 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10467
01a80117
KR
104682020-03-14 Kamil Rytarowski <n54@gmx.com>
10469
10470 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10471 nbsd_nat_target instead of inf_ptrace_target.
10472 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10473 nbsd_nat_target.
10474
f90280ca
KR
104752020-03-14 Kamil Rytarowski <n54@gmx.com>
10476
10477 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10478 register_t.
10479
6def66f1
KR
104802020-03-14 Kamil Rytarowski <n54@gmx.com>
10481
10482 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10483 it to the ptrace call.
10484 * alpha-bsd-nat.c (store_registers): Likewise.
10485
66eaca97
KR
104862020-03-14 Kamil Rytarowski <n54@gmx.com>
10487
10488 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10489 includes.
10490 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10491 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10492 fill_fpregset): Likewise.
10493
4fed520b
KR
104942020-03-14 Kamil Rytarowski <n54@gmx.com>
10495
10496 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10497 nbsd_nat_target instead of inf_ptrace_target.
10498 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10499 nbsd_nat_target.
10500
2190cf06
KR
105012020-03-14 Kamil Rytarowski <n54@gmx.com>
10502
10503 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10504 register_t.
10505
75c56d3d
KR
105062020-03-14 Kamil Rytarowski <n54@gmx.com>
10507
10508 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10509 it to the ptrace call.
10510 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10511 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10512 * arm-nbsd-nat.c (store_register): Likewise.
10513 * arm-nbsd-nat.c (store_regs): Likewise.
10514 * arm-nbsd-nat.c (store_fp_register): Likewise.
10515 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10516
6018d381
KR
105172020-03-14 Kamil Rytarowski <n54@gmx.com>
10518
10519 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10520 nbsd_nat_target instead of inf_ptrace_target.
10521 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10522 nbsd_nat_target.
10523
013f99f0
KR
105242020-03-14 Kamil Rytarowski <n54@gmx.com>
10525
10526 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10527 it to the ptrace call.
10528 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10529
12753073
KR
105302020-03-14 Kamil Rytarowski <n54@gmx.com>
10531
6227b330
KR
10532 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10533 it to the ptrace call.
10534 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10535
105362020-03-14 Kamil Rytarowski <n54@gmx.com>
10537
10538 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10539 gdb_byte *.
12753073
KR
10540 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10541
d5be5fa4
KR
105422020-03-14 Kamil Rytarowski <n54@gmx.com>
10543
10544 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10545 instead of inf_ptrace_target.
10546 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10547 nbsd_nat_target.
10548
8110f842
KR
105492020-03-14 Kamil Rytarowski <n54@gmx.com>
10550
10551 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10552 register_t.
10553
52feded7
KR
105542020-03-14 Kamil Rytarowski <n54@gmx.com>
10555
10556 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10557 register_t.
10558
25567eee
KR
105592020-03-14 Kamil Rytarowski <n54@gmx.com>
10560
10561 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10562 register_t.
10563
426a9c18
TT
105642020-03-13 Tom Tromey <tom@tromey.com>
10565
10566 * value.h (val_print): Don't declare.
10567 * valprint.h (val_print_array_elements)
10568 (val_print_scalar_formatted, generic_val_print): Don't declare.
10569 * valprint.c (generic_val_print_array): Take a struct value.
10570 (generic_val_print_ptr, generic_val_print_memberptr)
10571 (generic_val_print_bool, generic_val_print_int)
10572 (generic_val_print_char, generic_val_print_complex)
10573 (generic_val_print): Remove.
10574 (generic_value_print): Update.
10575 (do_val_print): Remove unused parameters. Don't call
10576 la_val_print.
10577 (val_print): Remove.
10578 (common_val_print): Update. Don't call value_check_printable.
10579 (val_print_scalar_formatted, val_print_array_elements): Remove.
10580 * rust-lang.c (rust_val_print): Remove.
10581 (rust_language_defn): Update.
10582 * p-valprint.c (pascal_val_print): Remove.
10583 (pascal_value_print_inner): Update.
10584 (pascal_object_print_val_fields, pascal_object_print_val):
10585 Remove.
10586 (pascal_object_print_static_field): Update.
10587 * p-lang.h (pascal_val_print): Don't declare.
10588 * p-lang.c (pascal_language_defn): Update.
10589 * opencl-lang.c (opencl_language_defn): Update.
10590 * objc-lang.c (objc_language_defn): Update.
10591 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10592 * m2-lang.h (m2_val_print): Don't declare.
10593 * m2-lang.c (m2_language_defn): Update.
10594 * language.h (struct language_defn) <la_val_print>: Remove.
10595 * language.c (unk_lang_value_print_inner): Rename. Change
10596 argument types.
10597 (unknown_language_defn, auto_language_defn): Update.
10598 * go-valprint.c (go_val_print): Remove.
10599 * go-lang.h (go_val_print): Don't declare.
10600 * go-lang.c (go_language_defn): Update.
10601 * f-valprint.c (f_val_print): Remove.
10602 * f-lang.h (f_value_print): Don't declare.
10603 * f-lang.c (f_language_defn): Update.
10604 * d-valprint.c (d_val_print): Remove.
10605 * d-lang.h (d_value_print): Don't declare.
10606 * d-lang.c (d_language_defn): Update.
10607 * cp-valprint.c (cp_print_value_fields)
10608 (cp_print_value_fields_rtti, cp_print_value): Remove.
10609 (cp_print_static_field): Update.
10610 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10611 (c_val_print_struct, c_val_print_union, c_val_print_int)
10612 (c_val_print_memberptr, c_val_print): Remove.
10613 * c-lang.h (c_val_print_array, cp_print_value_fields)
10614 (cp_print_value_fields_rtti): Don't declare.
10615 * c-lang.c (c_language_defn, cplus_language_defn)
10616 (asm_language_defn, minimal_language_defn): Update.
10617 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10618 (ada_val_print_enum): Take a struct value.
10619 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10620 (ada_val_print): Remove.
10621 (ada_value_print_1): Update.
10622 (printable_val_type): Remove.
10623 * ada-lang.h (ada_val_print): Don't declare.
10624 * ada-lang.c (ada_language_defn): Update.
10625
42331a1e
TT
106262020-03-13 Tom Tromey <tom@tromey.com>
10627
10628 * valprint.c (do_val_print): Update.
10629 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10630 a struct value.
10631 (value_to_value_object_no_release): Declare.
10632 * python/py-value.c (value_to_value_object_no_release): New
10633 function.
10634 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10635 struct value.
10636 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10637 function.
10638 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10639 a struct value.
10640 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10641 Declare.
10642 (gdbscm_apply_val_pretty_printer): Take a struct value.
10643 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10644 value.
10645 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10646 value.
10647 * extension-priv.h (struct extension_language_ops)
10648 <apply_val_pretty_printer>: Take a struct value.
10649 * cp-valprint.c (cp_print_value): Create a struct value.
10650 (cp_print_value): Update.
10651
3a916a97
TT
106522020-03-13 Tom Tromey <tom@tromey.com>
10653
10654 * ada-valprint.c (print_field_values): Call common_val_print.
10655
b59eac37
TT
106562020-03-13 Tom Tromey <tom@tromey.com>
10657
10658 * ada-valprint.c (val_print_packed_array_elements): Remove
10659 bitoffset and val parameters. Call common_val_print.
10660 (ada_val_print_string): Remove offset, address, and original_value
10661 parameters.
10662 (ada_val_print_array): Update.
10663 (ada_value_print_array): New function.
10664 (ada_value_print_1): Call it.
10665
03371129
TT
106662020-03-13 Tom Tromey <tom@tromey.com>
10667
10668 * ada-valprint.c (ada_value_print): Use common_val_print.
10669
2e088f8b
TT
106702020-03-13 Tom Tromey <tom@tromey.com>
10671
10672 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10673
39ef85a8
TT
106742020-03-13 Tom Tromey <tom@tromey.com>
10675
10676 * ada-valprint.c (ada_value_print_num): New function.
10677 (ada_value_print_1): Use it.
10678
b9fa6e07
TT
106792020-03-13 Tom Tromey <tom@tromey.com>
10680
10681 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10682
416595d6
TT
106832020-03-13 Tom Tromey <tom@tromey.com>
10684
10685 * ada-valprint.c (ada_value_print_ptr): New function.
10686 (ada_value_print_1): Use it.
10687
5b5e15ec
TT
106882020-03-13 Tom Tromey <tom@tromey.com>
10689
10690 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10691 call common_val_print.
10692 (ada_val_print_1): Update.
10693 (ada_value_print_1): New function.
10694 (ada_value_print_inner): Rewrite.
10695
fbf54e75
TT
106962020-03-13 Tom Tromey <tom@tromey.com>
10697
10698 * cp-valprint.c (cp_print_value_fields): Update.
10699 (cp_print_value): New function.
10700
64b653ca
TT
107012020-03-13 Tom Tromey <tom@tromey.com>
10702
10703 * m2-valprint.c (m2_value_print_inner): Use
10704 cp_print_value_fields.
10705 * cp-valprint.c (cp_print_value_fields): New function.
10706 * c-valprint.c (c_value_print_struct): New function.
10707 (c_value_print_inner): Use c_value_print_struct.
10708 * c-lang.h (cp_print_value_fields): Declare.
10709
6999f067
TT
107102020-03-13 Tom Tromey <tom@tromey.com>
10711
10712 * c-valprint.c (c_value_print_array): New function.
10713 (c_value_print_inner): Use it.
10714
ce80b8bd
TT
107152020-03-13 Tom Tromey <tom@tromey.com>
10716
10717 * c-valprint.c (c_value_print_memberptr): New function.
10718 (c_value_print_inner): Use it.
10719
2faac269
TT
107202020-03-13 Tom Tromey <tom@tromey.com>
10721
10722 * c-valprint.c (c_value_print_int): New function.
10723 (c_value_print_inner): Use it.
10724
da3e2c29
TT
107252020-03-13 Tom Tromey <tom@tromey.com>
10726
10727 * c-valprint.c (c_value_print_ptr): New function.
10728 (c_value_print_inner): Use it.
10729
50836231
TT
107302020-03-13 Tom Tromey <tom@tromey.com>
10731
10732 * c-valprint.c (c_value_print_inner): Rewrite.
10733
4f412b6e
TT
107342020-03-13 Tom Tromey <tom@tromey.com>
10735
10736 * valprint.c (generic_value_print_complex): New function.
10737 (generic_value_print): Use it.
10738
f5354008
TT
107392020-03-13 Tom Tromey <tom@tromey.com>
10740
10741 * valprint.c (generic_val_print_float): Don't call
10742 val_print_scalar_formatted.
10743 (generic_val_print, generic_value_print): Update.
10744
3eec3b05
TT
107452020-03-13 Tom Tromey <tom@tromey.com>
10746
10747 * valprint.c (generic_value_print_char): New function
10748 (generic_value_print): Use it.
10749
fdddfccb
TT
107502020-03-13 Tom Tromey <tom@tromey.com>
10751
10752 * valprint.c (generic_value_print_int): New function.
10753 (generic_value_print): Use it.
10754
6dde7521
TT
107552020-03-13 Tom Tromey <tom@tromey.com>
10756
10757 * valprint.c (generic_value_print_bool): New function.
10758 (generic_value_print): Use it.
10759
4112d2e6
TT
107602020-03-13 Tom Tromey <tom@tromey.com>
10761
10762 * valprint.c (generic_val_print_func): Simplify.
10763 (generic_val_print, generic_value_print): Update.
10764
65786af6
TT
107652020-03-13 Tom Tromey <tom@tromey.com>
10766
10767 * valprint.c (generic_val_print_flags): Remove.
10768 (generic_val_print, generic_value_print): Update.
10769 (val_print_type_code_flags): Add original_value parameter.
10770
40f3ce18
TT
107712020-03-13 Tom Tromey <tom@tromey.com>
10772
10773 * valprint.c (generic_val_print): Update.
10774 (generic_value_print): Update.
10775 * valprint.c (generic_val_print_enum): Don't call
10776 val_print_scalar_formatted.
10777
2a5b130b
TT
107782020-03-13 Tom Tromey <tom@tromey.com>
10779
10780 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10781 * valprint.c (generic_value_print_ptr): New function.
10782
abc66ce9
TT
107832020-03-13 Tom Tromey <tom@tromey.com>
10784
10785 * valprint.c (generic_value_print): Rewrite.
10786
07a32858
TT
107872020-03-13 Tom Tromey <tom@tromey.com>
10788
10789 * p-valprint.c (pascal_object_print_value_fields)
10790 (pascal_object_print_value): New functions.
10791
64d64d3a
TT
107922020-03-13 Tom Tromey <tom@tromey.com>
10793
10794 * p-valprint.c (pascal_value_print_inner): Rewrite.
10795
6a95a1f5
TT
107962020-03-13 Tom Tromey <tom@tromey.com>
10797
10798 * f-valprint.c (f_value_print_innner): Rewrite.
10799
59fcdac6
TT
108002020-03-13 Tom Tromey <tom@tromey.com>
10801
10802 * m2-valprint.c (m2_print_unbounded_array): New overload.
10803 (m2_print_unbounded_array): Update.
10804 (m2_print_array_contents): Take a struct value.
10805 (m2_value_print_inner): Rewrite.
10806
d133c3e1
TT
108072020-03-13 Tom Tromey <tom@tromey.com>
10808
10809 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10810 (d_value_print_inner): New function.
10811 * d-lang.h (d_value_print_inner): Declare.
10812 * d-lang.c (d_language_defn): Use d_value_print_inner.
10813
23b0f06b
TT
108142020-03-13 Tom Tromey <tom@tromey.com>
10815
10816 * go-valprint.c (go_value_print_inner): New function.
10817 * go-lang.h (go_value_print_inner): Declare.
10818 * go-lang.c (go_language_defn): Use go_value_print_inner.
10819
5f56f7cb
TT
108202020-03-13 Tom Tromey <tom@tromey.com>
10821
10822 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10823 API.
10824 (rust_val_print): Rewrite.
10825 (rust_value_print_inner): New function, from rust_val_print.
10826 (rust_language_defn): Use rust_value_print_inner.
10827
26792ee0
TT
108282020-03-13 Tom Tromey <tom@tromey.com>
10829
10830 * ada-valprint.c (ada_value_print_inner): New function.
10831 * ada-lang.h (ada_value_print_inner): Declare.
10832 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10833
24051bbe
TT
108342020-03-13 Tom Tromey <tom@tromey.com>
10835
10836 * f-valprint.c (f_value_print_innner): New function.
10837 * f-lang.h (f_value_print_innner): Declare.
10838 * f-lang.c (f_language_defn): Use f_value_print_innner.
10839
c0941be6
TT
108402020-03-13 Tom Tromey <tom@tromey.com>
10841
10842 * p-valprint.c (pascal_value_print_inner): New function.
10843 * p-lang.h (pascal_value_print_inner): Declare.
10844 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10845
62c4663d
TT
108462020-03-13 Tom Tromey <tom@tromey.com>
10847
10848 * m2-valprint.c (m2_value_print_inner): New function.
10849 * m2-lang.h (m2_value_print_inner): Declare.
10850 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10851
62182190
TT
108522020-03-13 Tom Tromey <tom@tromey.com>
10853
10854 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10855 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10856 * c-valprint.c (c_value_print_inner): New function.
10857 * c-lang.h (c_value_print_inner): Declare.
10858 * c-lang.c (c_language_defn, cplus_language_defn)
10859 (asm_language_defn, minimal_language_defn): Use
10860 c_value_print_inner.
10861
1e592a8a
TT
108622020-03-13 Tom Tromey <tom@tromey.com>
10863
10864 * p-valprint.c (pascal_object_print_value_fields): Now static.
10865 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10866
7fe471e9
TT
108672020-03-13 Tom Tromey <tom@tromey.com>
10868
10869 * c-valprint.c (c_val_print_array): Simplify.
10870
d121c6ce
TT
108712020-03-13 Tom Tromey <tom@tromey.com>
10872
10873 * valprint.c (value_print_array_elements): New function.
10874 * valprint.h (value_print_array_elements): Declare.
10875
4dba70ee
TT
108762020-03-13 Tom Tromey <tom@tromey.com>
10877
10878 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10879 * mips-tdep.c (mips_print_register): Use
10880 value_print_scalar_formatted.
10881
4f9ae810
TT
108822020-03-13 Tom Tromey <tom@tromey.com>
10883
10884 * valprint.h (value_print_scalar_formatted): Declare.
10885 * valprint.c (value_print_scalar_formatted): New function.
10886
156bfec9
TT
108872020-03-13 Tom Tromey <tom@tromey.com>
10888
10889 * valprint.h (generic_value_print): Declare.
10890 * valprint.c (generic_value_print): New function.
10891
2b4e573d
TT
108922020-03-13 Tom Tromey <tom@tromey.com>
10893
10894 * valprint.c (do_val_print): Call la_value_print_inner, if
10895 available.
10896 * rust-lang.c (rust_language_defn): Update.
10897 * p-lang.c (pascal_language_defn): Update.
10898 * opencl-lang.c (opencl_language_defn): Update.
10899 * objc-lang.c (objc_language_defn): Update.
10900 * m2-lang.c (m2_language_defn): Update.
10901 * language.h (struct language_defn) <la_value_print_inner>: New
10902 member.
10903 * language.c (unknown_language_defn, auto_language_defn): Update.
10904 * go-lang.c (go_language_defn): Update.
10905 * f-lang.c (f_language_defn): Update.
10906 * d-lang.c (d_language_defn): Update.
10907 * c-lang.c (c_language_defn, cplus_language_defn)
10908 (asm_language_defn, minimal_language_defn): Update.
10909 * ada-lang.c (ada_language_defn): Update.
10910
a1f6a07c
TT
109112020-03-13 Tom Tromey <tom@tromey.com>
10912
10913 * c-valprint.c (c_value_print): Use common_val_print.
10914
410cf315
TT
109152020-03-13 Tom Tromey <tom@tromey.com>
10916
10917 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10918
72a45c93
TT
109192020-03-13 Tom Tromey <tom@tromey.com>
10920
10921 * f-valprint.c (f77_print_array_1, f_val_print): Use
10922 common_val_print.
10923
040f66bd
TT
109242020-03-13 Tom Tromey <tom@tromey.com>
10925
10926 * riscv-tdep.c (riscv_print_one_register_info): Use
10927 common_val_print.
10928
a6e05a6c
TT
109292020-03-13 Tom Tromey <tom@tromey.com>
10930
10931 * mi/mi-main.c (output_register): Use common_val_print.
10932
3444c526
TT
109332020-03-13 Tom Tromey <tom@tromey.com>
10934
10935 * infcmd.c (default_print_one_register_info): Use
10936 common_val_print.
10937
c2a44efe
TT
109382020-03-13 Tom Tromey <tom@tromey.com>
10939
10940 * valprint.h (common_val_print_checked): Declare.
10941 * valprint.c (common_val_print_checked): New function.
10942 * stack.c (print_frame_arg): Use common_val_print_checked.
10943
b0c26e99
TT
109442020-03-13 Tom Tromey <tom@tromey.com>
10945
10946 * valprint.c (do_val_print): New function, from val_print.
10947 (val_print): Use do_val_print.
10948 (common_val_print): Use do_val_print.
10949
ce3acbe9
TT
109502020-03-13 Tom Tromey <tom@tromey.com>
10951
10952 * valprint.c (value_print): Use scoped_value_mark.
10953
96c7f873
TV
109542020-03-13 Tom de Vries <tdevries@suse.de>
10955
10956 PR symtab/25646
10957 * psymtab.c (partial_symtab::partial_symtab): Don't set
10958 globals_offset and statics_offset. Push element onto
10959 current_global_psymbols and current_static_psymbols stacks.
10960 (concat): New function.
10961 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10962 element from current_global_psymbols and current_static_psymbols
10963 stacks. Concat popped elements to global_psymbols and
10964 static_symbols.
10965 (add_psymbol_to_list): Use current_global_psymbols and
10966 current_static_psymbols stacks.
10967 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10968 current_static_psymbols fields.
10969
6ba0a321
CB
109702020-03-12 Christian Biesinger <cbiesinger@google.com>
10971
10972 * corelow.c (sniff_core_bfd): Remove.
10973 (class core_target) <m_core_vec>: Remove.
10974 (core_target::core_target): Update.
10975 (core_file_fns): Remove.
10976 (deprecated_add_core_fns): Remove.
10977 (default_core_sniffer): Remove.
10978 (sniff_core_bfd): Remove.
10979 (default_check_format): Remove.
10980 (gdb_check_format): Remove.
10981 (core_target_open): Update.
10982 (core_target::get_core_register_section): Update.
10983 (get_core_registers_cb): Update.
10984 (core_target::fetch_registers): Update.
10985 * gdbcore.h (struct core_fns): Remove.
10986 (deprecated_add_core_fns): Remove.
10987 (default_core_sniffer): Remove.
10988 (default_check_format): Remove.
10989
227031b2
TT
109902020-03-12 Tom Tromey <tom@tromey.com>
10991
10992 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10993 CORE_ADDR.
10994 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10995
53807e9f
TT
109962020-03-12 Tom Tromey <tom@tromey.com>
10997
10998 * remote.c (remote_target::download_tracepoint)
10999 (remote_target::enable_tracepoint)
11000 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11001 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11002 sprintf_vma.
11003
64f25102
TT
110042020-03-12 Tom Tromey <tom@tromey.com>
11005
11006 * symfile-mem.c: Update CORE_ADDR size assert.
11007
272cd5a3
SM
110082020-03-12 Simon Marchi <simon.marchi@efficios.com>
11009
11010 * selftest.m4: Move to gdbsupport/.
11011 * acinclude.m4: Update path to selftest.m4.
11012
74cd3f9d
SM
110132020-03-12 Simon Marchi <simon.marchi@efficios.com>
11014
11015 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11016 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11017 gdbarch-selfselftests.c and selftest-arch.c.
11018 (SUBDIR_UNITTESTS_OBS): Rename to...
11019 (SELFTESTS_OBS): ... this.
11020 (COMMON_SFILES): Remove disasm-selftests.c and
11021 gdbarch-selftests.c.
11022 * configure.ac: Don't add selftest-arch.{c,o} to
11023 CONFIG_{SRCS,OBS}.
11024 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11025 preprocessor conditions.
11026
db6878ac
SM
110272020-03-12 Simon Marchi <simon.marchi@efficios.com>
11028
11029 * configure.ac: Don't source bfd/development.sh.
11030 * selftest.m4: Modify comment.
11031 * configure: Re-generate.
11032
4d696a5c
SM
110332020-03-12 Simon Marchi <simon.marchi@efficios.com>
11034
11035 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11036 not "true" or "false".
11037 * configure: Re-generate.
11038
8dd8e1c7
CB
110392020-03-12 Christian Biesinger <cbiesinger@google.com>
11040
11041 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11042 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11043 renamed to arm_nbsd_supply_gregset.
11044 (fetch_register): Update to call arm_nbsd_supply_gregset.
11045 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11046 (arm_netbsd_nat_target::fetch_registers): Update.
11047 (fetch_elfcore_registers): Removed.
11048 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11049 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11050 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11051 not require NetBSD system headers.
11052 (arm_nbsd_regset): New struct.
11053 (arm_nbsd_iterate_over_regset_sections): New function.
11054 (arm_netbsd_init_abi_common): Updated to call
11055 set_gdbarch_iterate_over_regset_sections.
11056 * arm-nbsd-tdep.h: New file.
11057
dd69bf7a
KB
110582020-03-11 Kevin Buettner <kevinb@redhat.com>
11059
11060 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11061 recursion.
11062
a0761e34
SM
110632020-03-11 Simon Marchi <simon.marchi@efficios.com>
11064
11065 * configure: Re-generate.
11066
e7a82140
TT
110672020-03-11 Tom Tromey <tromey@adacore.com>
11068
11069 * ada-typeprint.c (print_choices): Fix comment.
11070
dcc050c8
AB
110712020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11072
11073 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11074 previous item in the list, when the list has no items.
11075
1c33af77
TV
110762020-03-11 Tom de Vries <tdevries@suse.de>
11077
11078 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11079 PROP_LOCLIST handling code.
11080
8c95582d
AB
110812020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11082
11083 * buildsym-legacy.c (record_line): Pass extra parameter to
11084 record_line.
11085 * buildsym.c (buildsym_compunit::record_line): Take an extra
11086 parameter, reduce duplication in the line table, and record the
11087 is_stmt flag in the line table.
11088 * buildsym.h (buildsym_compunit::record_line): Add extra
11089 parameter.
11090 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11091 non-statement lines.
11092 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11093 this to the symtab builder.
11094 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11095 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11096 through to dwarf_record_line_1.
11097 * infrun.c (process_event_stop_test): When stepping, don't stop at
11098 a non-statement instruction, and only refresh the step info when
11099 we land in the middle of a line's range. Also add an extra
11100 comment.
11101 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11102 field.
11103 * record-btrace.c (btrace_find_line_range): Only record lines
11104 marked as is-statement.
11105 * stack.c (frame_show_address): Show the frame address if we are
11106 in a non-statement sal.
11107 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11108 (maintenance_print_one_line_table): Print a header for the is_stmt
11109 column, and include is_stmt information in the output.
11110 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11111 preference to non-statements.
11112 (find_pcs_for_symtab_line): Prefer is-statement entries.
11113 (find_line_common): Likewise.
11114 * symtab.h (struct linetable_entry): Add is_stmt field.
11115 (struct symtab_and_line): Likewise.
11116 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11117 arranging the line table.
11118
e4003a34
TV
111192020-03-07 Tom de Vries <tdevries@suse.de>
11120
11121 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11122 DIE.
11123
e8932576
TT
111242020-03-07 Tom Tromey <tom@tromey.com>
11125
11126 * valops.c (value_literal_complex): Remove obsolete comment.
11127 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11128 comment.
11129
29734269
SM
111302020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11131
11132 * infrun.h: Forward-declare thread_info.
11133 (set_step_info): Add thread_info parameter, add doc.
11134 * infrun.c (set_step_info): Add thread_info parameter, move doc
11135 to header.
11136 * infrun.c (process_event_stop_test): Pass thread to
11137 set_step_info call.
11138 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11139 set_step_info.
11140 (prepare_one_step): Add thread_info parameter, pass it to
11141 set_step_frame and prepare_one_step (recursive) call.
11142 (step_1): Pass thread to prepare_one_step call.
11143 (step_command_fsm::should_stop): Pass thread to
11144 prepare_one_step.
11145 (until_next_fsm): Pass thread to set_step_frame call.
11146 (finish_command): Pass thread to set_step_info call.
11147
b7d64b29
HD
111482020-03-06 Hannes Domani <ssbssa@yahoo.de>
11149
11150 * windows-tdep.c (windows_solib_create_inferior_hook):
11151 Check if inferior is running.
11152
09f2921c
TV
111532020-03-06 Tom de Vries <tdevries@suse.de>
11154
11155 * NEWS: Fix "the the".
11156 * ctfread.c: Same.
11157
fd760e79
TV
111582020-03-06 Tom de Vries <tdevries@suse.de>
11159
11160 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11161
20ea4a60
AB
111622020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11163
11164 * .dir-locals.el: Add a comment referencing the other copies of
11165 this file.
11166
0afbabf0
JB
111672020-03-05 John Baldwin <jhb@FreeBSD.org>
11168
11169 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11170 psargs.
11171
842806cb
TBA
111722020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11173
11174 * .gitattributes: New file.
11175
be1e3d3e
TT
111762020-03-04 Tom Tromey <tom@tromey.com>
11177
11178 * symmisc.c (print_symbol_bcache_statistics)
11179 (print_objfile_statistics): Update.
11180 * symfile.c (allocate_symtab): Use intern.
11181 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11182 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11183 macro_cache>: Remove.
11184 <string_cache>: New member.
11185 (struct objfile) <intern>: New methods.
11186 * elfread.c (elf_symtab_read): Use intern.
11187 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11188 (dwarf2_compute_name, dwarf2_physname)
11189 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11190 names.
11191 (guess_partial_die_structure_name): Update.
11192 (partial_die_info::fixup): Intern name.
11193 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11194 name.
11195 (dwarf2_name): Intern name. Update.
11196 * buildsym.c (buildsym_compunit::get_macro_table): Use
11197 string_cache.
11198
4e7625fd
TT
111992020-03-04 Tom Tromey <tom@tromey.com>
11200
11201 * jit.c (bfd_open_from_target_memory): Make "target" const.
11202 * corefile.c (gnutarget): Now const.
11203 * gdbcore.h (gnutarget): Now const.
11204
46f9f931
HD
112052020-03-04 Hannes Domani <ssbssa@yahoo.de>
11206
11207 * NEWS: Mention support for WOW64 processes.
11208 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11209 (amd64_windows_segment_register_p): Remove static.
11210 (_initialize_amd64_windows_nat): Update.
11211 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11212 * i386-windows-nat.c (context_offset): Update.
11213 (i386_mappings): Rename and remove static.
11214 (i386_windows_segment_register_p): Remove static.
11215 (_initialize_i386_windows_nat): Update.
11216 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11217 (STATUS_WX86_SINGLE_STEP): New macro.
11218 (EnumProcessModulesEx): New macro.
11219 (Wow64SuspendThread): New macro.
11220 (Wow64GetThreadContext): New macro.
11221 (Wow64SetThreadContext): New macro.
11222 (Wow64GetThreadSelectorEntry): New macro.
11223 (windows_set_context_register_offsets): Add static.
11224 (windows_set_segment_register_p): Likewise.
11225 (windows_add_thread): Adapt for WOW64 processes.
11226 (windows_fetch_one_register): Likewise.
11227 (windows_nat_target::fetch_registers): Likewise.
11228 (windows_store_one_register): Likewise.
11229 (display_selector): Likewise.
11230 (display_selectors): Likewise.
11231 (handle_exception): Likewise.
11232 (windows_continue): Likewise.
11233 (windows_nat_target::resume): Likewise.
11234 (windows_add_all_dlls): Likewise.
11235 (do_initial_windows_stuff): Likewise.
11236 (windows_nat_target::attach): Likewise.
11237 (windows_get_exec_module_filename): Likewise.
11238 (windows_nat_target::create_inferior): Likewise.
11239 (windows_xfer_siginfo): Likewise.
11240 (_initialize_loadable): Initialize Wow64SuspendThread,
11241 Wow64GetThreadContext, Wow64SetThreadContext,
11242 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11243 * windows-nat.h (windows_set_context_register_offsets):
11244 Remove declaration.
11245 (windows_set_segment_register_p): Likewise.
11246 (i386_windows_segment_register_p): Add declaration.
11247 (amd64_windows_segment_register_p): Likewise.
11248
440cf44e
LM
112492020-03-04 Luis Machado <luis.machado@linaro.org>
11250
11251 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11252 in "info registers" for AArch64/ARM.
11253
11254 The change caused "info registers" to not print GPR's.
11255
11256 gdb/ChangeLog:
11257
11258 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11259
11260 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11261 when reg->group is empty and reggroup is not.
11262
1009d92f
TT
112632020-03-03 Tom Tromey <tromey@adacore.com>
11264
11265 * dwarf2/frame.c (struct dwarf2_frame_cache)
11266 <checked_tailcall_bottom, entry_cfa_sp_offset,
11267 entry_cfa_sp_offset_p>: Remove members.
11268 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11269 (dwarf2_frame_prev_register): Don't call
11270 dwarf2_tailcall_sniffer_first.
11271 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11272 * frame-unwind.c (add_unwinder): New fuction.
11273 (frame_unwind_init): Use it. Add tailcall unwinder.
11274
5e5d66b6
AB
112752020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11276 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11277
11278 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11279 value should be printed as true.
11280
584cf46d
HD
112812020-03-03 Hannes Domani <ssbssa@yahoo.de>
11282
11283 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11284 (windows_init_abi): Set and use windows_so_ops.
11285
7b973adc
SDJ
112862020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11287
11288 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11289 when verifying if dealing with a convenience variable.
11290
bb7b70ab
LM
112912020-03-03 Luis Machado <luis.machado@linaro.org>
11292
11293 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11294
9822cb57
SM
112952020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11296
11297 * infrun.c (gdbarch_supports_displaced_stepping): New.
11298 (use_displaced_stepping): Break up conditions in smaller pieces.
11299 Use gdbarch_supports_displaced_stepping.
11300 (displaced_step_prepare_throw): Use
11301 gdbarch_supports_displaced_stepping.
11302
63e163f2
AB
113032020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11304
11305 * NEWS: Mention new behaviour of the history filename.
11306 * top.c (write_history_p): Add comment.
11307 (show_write_history_p): Add header comment, give a different
11308 message when history writing is on, but the history filename is
11309 empty.
11310 (history_filename): Add comment.
11311 (history_filename_empty): New function.
11312 (show_history_filename): Add header comment, give a different
11313 message when the filename is empty.
11314 (init_history): Compare history_filename against nullptr, and only
11315 read history if the filename is not empty.
11316 (set_history_filename): Add header comment, and only make
11317 non-empty filenames absolute.
11318 (init_main): Make the filename argument to 'set history filename'
11319 optional.
11320
81b86b97
CB
113212020-03-02 Christian Biesinger <cbiesinger@google.com>
11322
11323 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11324 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11325 (fetch_fp_register): Update.
11326 (fetch_fp_regs): Update.
11327 (store_fp_register): Update.
11328 (store_fp_regs): Update.
11329 (arm_netbsd_nat_target::read_description): New function.
11330 (fetch_elfcore_registers): Update.
11331
24ed6739
AB
113322020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11333
11334 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11335 general_thread if the stop reply is missing a thread-id.
11336 (remote_target::process_stop_reply): Use the first non-exited
11337 thread if the target didn't pass a thread-id.
11338 * infrun.c (do_target_wait): Move call to
11339 switch_to_inferior_no_thread to ....
11340 (do_target_wait_1): ... here.
11341
a84bb2a0
JT
113422020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11343
11344 * debuginfod-support.c: Include defs.h first.
11345
658dadf0
TV
113462020-02-28 Tom de Vries <tdevries@suse.de>
11347
11348 * symfile.c (set_initial_language): Use default language for lookup.
11349
4ebe4877
SM
113502020-02-28 Simon Marchi <simon.marchi@efficios.com>
11351
11352 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11353 reader variable, pass `this` to read_cutu_die_from_dwo.
11354
e5da1139
AM
113552020-02-27 Aaron Merey <amerey@redhat.com>
11356
11357 * source.c (open_source_file): Check for nullptr when computing
11358 srcpath.
11359
317f7127
TT
113602020-02-27 Tom Tromey <tromey@adacore.com>
11361
11362 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11363 member.
11364 (dwarf2_add_field): Don't update nfields.
11365 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11366
3104d9ee
AB
113672020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11368
11369 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11370 abs.
11371
b83470bf
TT
113722020-02-26 Tom Tromey <tom@tromey.com>
11373
11374 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11375 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11376 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11377 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11378 per_cu_data.
11379
edfe0a0c
TT
113802020-02-26 Tom Tromey <tom@tromey.com>
11381
11382 * dwarf2/index-write.c (psym_index_map): Change type.
11383 (add_address_entry_worker, write_one_signatured_type)
11384 (recursively_count_psymbols, recursively_write_psymbols)
11385 (class debug_names, psyms_seen_size, write_gdbindex)
11386 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11387
0d79cdc4
AM
113882020-02-26 Aaron Merey <amerey@redhat.com>
11389
11390 * Makefile.in: Handle optional debuginfod support.
11391 * NEWS: Update.
11392 * README: Add --with-debuginfod summary.
11393 * config.in: Regenerate.
11394 * configure: Regenerate.
11395 * configure.ac: Handle optional debuginfod support.
11396 * debuginfod-support.c: debuginfod helper functions.
11397 * debuginfod-support.h: Ditto.
11398 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11399 summary.
11400 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11401 when a dwz file cannot be found.
11402 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11403 debuginfo file cannot be found.
11404 * source.c (open_source_file): Query debuginfod servers when a
11405 source file cannot be found.
11406 * top.c (print_gdb_configuration): Include
11407 --{with,without}-debuginfod in the output.
11408
b65ce565
JG
114092020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11410
11411 * thread.c (thr_try_catch_cmd): Print thread name.
11412
d4c9a4f8
SM
114132020-02-26 Simon Marchi <simon.marchi@efficios.com>
11414
11415 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11416 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11417 dwarf2_fetch_die_type_sect_off): Move to...
11418 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11419 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11420 dwarf2_fetch_die_type_sect_off): ... here.
11421 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11422 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11423 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11424
0dce4280
TV
114252020-02-26 Tom de Vries <tdevries@suse.de>
11426
11427 PR gdb/25603
11428 * symfile.c (set_initial_language): Exit-early if
11429 language_mode == language_mode_manual.
11430
450a1bfc
SM
114312020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11432
11433 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11434 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11435 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11436
9e80cfa1
AB
114372020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11438
11439 * gdbtypes.c (create_array_type_with_stride): Handle negative
11440 array strides.
11441 * valarith.c (value_subscripted_rvalue): Likewise.
11442
09624f1f
LM
114432020-02-25 Luis Machado <luis.machado@linaro.org>
11444
11445 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11446
8cb5117c
SM
114472020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11448
11449 * loc.h (dwarf2_get_die_type): Move to...
11450 * read.h (dwarf2_get_die_type): ... here.
11451 * read.c (dwarf2_get_die_type): Move doc to header.
11452
c325c44e
JB
114532020-02-25 Joel Brobecker <brobecker@adacore.com>
11454
11455 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11456 'gnulib/Makefile.in' to the list.
11457
4ac93832
TT
114582020-02-24 Tom Tromey <tom@tromey.com>
11459
11460 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11461 Remove.
11462 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11463 XOBNEWVEC.
11464
197400e8
TT
114652020-02-24 Tom Tromey <tom@tromey.com>
11466
11467 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11468 New method.
11469 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11470 (dw2_do_instantiate_symtab, dw2_get_file_names)
11471 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11472
76935768
TT
114732020-02-24 Tom Tromey <tom@tromey.com>
11474
11475 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11476 make_scoped_restore.
11477 (dwarf2_psymtab::read_symtab): Don't clear
11478 reading_partial_symbols.
11479
a88ef40d
TV
114802020-02-24 Tom de Vries <tdevries@suse.de>
11481
11482 PR gdb/25592
11483 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11484
c9af6521
TV
114852020-02-24 Tom de Vries <tdevries@suse.de>
11486
11487 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11488 commands layout next/prev/regs.
11489
5707a07a
TT
114902020-02-22 Tom Tromey <tom@tromey.com>
11491
11492 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11493 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11494
3b0fb49e
TT
114952020-02-22 Tom Tromey <tom@tromey.com>
11496
11497 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11498
283be8bf
TT
114992020-02-22 Tom Tromey <tom@tromey.com>
11500
11501 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11502 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11503 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11504 * tui/tui.c (_initialize_tui): Add usage text.
11505
ca793b96
TT
115062020-02-22 Tom Tromey <tom@tromey.com>
11507
11508 * tui/tui-win.c (tui_set_focus_command)
11509 (tui_set_win_height_command): Use error_no_arg.
11510 (_initialize_tui_win): Update help text.
11511 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11512
432b5c40
TT
115132020-02-22 Tom Tromey <tom@tromey.com>
11514
11515 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11516 * tui/tui-disasm.h (struct tui_disasm_window)
11517 <display_start_addr>: Declare.
11518 * tui/tui-source.h (struct tui_source_window)
11519 <display_start_addr>: Declare.
11520 * tui/tui-winsource.h (struct tui_source_window_base)
11521 <show_source_line, display_start_addr>: New methods.
11522 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11523 Rename and move to protected section.
11524 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11525 (tui_source_window_base::do_erase_source_content): Update.
11526 (tui_source_window_base::show_source_line): Now a method.
11527 (tui_source_window_base::show_source_content)
11528 (tui_source_window_base::tui_source_window_base)
11529 (tui_source_window_base::rerender)
11530 (tui_source_window_base::refill)
11531 (tui_source_window_base::do_scroll_horizontal)
11532 (tui_source_window_base::set_is_exec_point_at)
11533 (tui_source_window_base::update_breakpoint_info)
11534 (tui_source_window_base::update_exec_info): Update.
11535 * tui/tui-source.c (tui_source_window::set_contents)
11536 (tui_source_window::showing_source_p)
11537 (tui_source_window::do_scroll_vertical)
11538 (tui_source_window::location_matches_p)
11539 (tui_source_window::line_is_displayed): Update.
11540 (tui_source_window::display_start_addr): New method.
11541 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11542 (tui_disasm_window::do_scroll_vertical)
11543 (tui_disasm_window::location_matches_p): Update.
11544 (tui_disasm_window::display_start_addr): New method.
11545
01b1af32
TT
115462020-02-22 Tom Tromey <tom@tromey.com>
11547
11548 * NEWS: Add entry for gdb.register_window_type.
11549 * tui/tui-layout.h (window_factory): New typedef.
11550 (tui_register_window): Declare.
11551 * tui/tui-layout.c (saved_tui_windows): New global.
11552 (tui_apply_current_layout): Use it.
11553 (tui_register_window): New function.
11554 * python/python.c (do_start_initialization): Call
11555 gdbpy_initialize_tui.
11556 (python_GdbMethods): Add "register_window_type" function.
11557 * python/python-internal.h (gdbpy_register_tui_window)
11558 (gdbpy_initialize_tui): Declare.
11559 * python/py-tui.c: New file.
11560 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11561
fc96d20b
TT
115622020-02-22 Tom Tromey <tom@tromey.com>
11563
11564 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11565
935c78c0
TT
115662020-02-22 Tom Tromey <tom@tromey.com>
11567
11568 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11569 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11570 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11571 (tui_set_win_focus_to): Move from tui-win.c.
11572
0240c8f1
TT
115732020-02-22 Tom Tromey <tom@tromey.com>
11574
11575 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11576 functions.
11577 (known_window_types): New global.
11578 (tui_get_window_by_name): Reimplement.
11579 (initialize_known_windows): New function.
11580 (validate_window_name): Rewrite.
11581 (_initialize_tui_layout): Call initialize_known_windows.
11582
fdb01f0c
TT
115832020-02-22 Tom Tromey <tom@tromey.com>
11584
11585 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11586 Remove constants.
11587 * tui/tui-winsource.h (struct tui_source_window_base)
11588 <tui_source_window_base>: Remove parameter.
11589 * tui/tui-winsource.c
11590 (tui_source_window_base::tui_source_window_base): Remove
11591 parameter.
11592 (tui_source_window_base::refill): Update.
11593 * tui/tui-stack.h (struct tui_locator_window)
11594 <tui_locator_window>: Update.
11595 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11596 Default the constructor.
11597 * tui/tui-regs.h (struct tui_data_item_window)
11598 <tui_data_item_window>: Default the constructor.
11599 (struct tui_data_window) <tui_data_window>: Likewise.
11600 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11601 Default the constructor.
11602 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11603 Default the constructor.
11604 <type>: Remove.
11605 (struct tui_win_info) <tui_win_info>: Default the constructor.
11606 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11607 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11608 Default the constructor.
11609
865a5aec
TT
116102020-02-22 Tom Tromey <tom@tromey.com>
11611
11612 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11613 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11614 * tui/tui-win.c (tui_resize_all): Don't call
11615 tui_delete_invisible_windows.
11616 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11617 done.
11618 (tui_set_layout): Update.
11619 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11620 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11621 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11622
e098d18c
TT
116232020-02-22 Tom Tromey <tom@tromey.com>
11624
11625 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11626 correctly.
11627
eb9c8874
TT
116282020-02-22 Tom Tromey <tom@tromey.com>
11629
11630 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11631
7eed1a8e
TT
116322020-02-22 Tom Tromey <tom@tromey.com>
11633
11634 * tui/tui-winsource.h (struct tui_source_window_iterator)
11635 <inner_iterator>: New etytypedef.
11636 <tui_source_window_iterator>: Take "end" parameter.
11637 <tui_source_window_iterator>: Take iterator.
11638 <operator*, advance>: Update.
11639 <m_iter>: Change type.
11640 <m_end>: New field.
11641 (struct tui_source_windows) <begin, end>: Update.
11642 * tui/tui-layout.c (tui_windows): New global.
11643 (tui_apply_current_layout): Clear tui_windows.
11644 (tui_layout_window::apply): Update tui_windows.
11645 * tui/tui-data.h (tui_windows): Declare.
11646 (all_tui_windows): Now inline function.
11647 (class tui_window_iterator, struct all_tui_windows): Remove.
11648
7c043ba6
TT
116492020-02-22 Tom Tromey <tom@tromey.com>
11650
11651 PR tui/17850:
11652 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11653 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11654 "height" argument.
11655 (class tui_layout_window) <get_sizes>: Likewise.
11656 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11657 argument.
11658 <get_sizes>: Add "height" argument.
11659 <m_vertical>: New field.
11660 * tui/tui-layout.c (tui_layout_split::clone): Update.
11661 (tui_layout_split::get_sizes): Add "height" argument.
11662 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11663 (tui_new_layout_command): Parse "-horizontal".
11664 (_initialize_tui_layout): Update help string.
11665 (tui_layout_split::specification): Add "-horizontal" when needed.
11666 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11667 argument.
11668 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11669 New methods.
11670
6bc56648
TT
116712020-02-22 Tom Tromey <tom@tromey.com>
11672
11673 * tui/tui-layout.h (enum tui_adjust_result): New.
11674 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11675 (class tui_layout_window) <adjust_size>: Return
11676 tui_adjust_result. Rewrite.
11677 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11678 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11679
c22fef7e
TT
116802020-02-22 Tom Tromey <tom@tromey.com>
11681
11682 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11683 parameter and return types.
11684 (class tui_layout_base) <specification>: Add "depth".
11685 (class tui_layout_window) <specification>: Add "depth".
11686 (class tui_layout_split) <specification>: Add "depth".
11687 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11688 and return types.
11689 (tui_new_layout_command): Parse sub-layouts.
11690 (_initialize_tui_layout): Update help string.
11691 (tui_layout_window::specification): Add "depth".
11692 (add_layout_command): Update.
11693
ee325b61
TT
116942020-02-22 Tom Tromey <tom@tromey.com>
11695
11696 * NEWS: Add "tui new-layout" item.
11697 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11698 Add new-layout command to help text.
11699 (validate_window_name): New function.
11700 (tui_new_layout_command): New function.
11701 (_initialize_tui_layout): Register "new-layout".
11702 (tui_layout_window::specification): New method.
11703 (tui_layout_window::specification): New method.
11704 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11705 method.
11706 (class tui_layout_window) <specification>: New method.
11707 (class tui_layout_split) <specification>: New method.
11708
416eb92d
TT
117092020-02-22 Tom Tromey <tom@tromey.com>
11710
11711 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11712 * tui/tui-win.c (window_name_completer): Update comment.
11713 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11714 Declare method.
11715 (class tui_layout_window) <replace_window>: Likewise.
11716 (class tui_layout_split) <replace_window>: Likewise.
11717 (tui_set_layout): Don't declare.
11718 (tui_set_initial_layout): Declare function.
11719 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11720 (asm_regs_layout): New globals.
11721 (tui_current_layout, show_layout): Remove.
11722 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11723 (find_layout, tui_apply_layout): New function.
11724 (layout_completer): Remove.
11725 (tui_next_layout): Reimplement.
11726 (tui_next_layout_command): New function.
11727 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11728 (tui_regs_layout): Reimplement.
11729 (tui_regs_layout_command): New function.
11730 (extract_display_start_addr): Rewrite.
11731 (next_layout, prev_layout): Remove.
11732 (tui_layout_window::replace_window): New method.
11733 (tui_layout_split::replace_window): New method.
11734 (destroy_layout): New function.
11735 (layout_list): New global.
11736 (add_layout_command): New function.
11737 (initialize_layouts): Update.
11738 (tui_layout_command): New function.
11739 (_initialize_tui_layout): Install "layout" commands.
11740 * tui/tui-data.h (enum tui_layout_type): Remove.
11741 (tui_current_layout): Don't declare.
11742
0dbc2fc7
TT
117432020-02-22 Tom Tromey <tom@tromey.com>
11744
11745 * tui/tui-regs.c (tui_reg_layout): Remove.
11746 (tui_reg_command): Use tui_regs_layout.
11747 * tui/tui-layout.h (tui_reg_command): Declare.
11748 * tui/tui-layout.c (tui_reg_command): New function.
11749
5afe342e
TT
117502020-02-22 Tom Tromey <tom@tromey.com>
11751
11752 * tui/tui.c (tui_rl_delete_other_windows): Call
11753 tui_remove_some_windows.
11754 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11755 Declare method.
11756 (class tui_layout_window) <remove_windows>: New method.
11757 (class tui_layout_split) <remove_windows>: Declare.
11758 (tui_remove_some_windows): Declare.
11759 * tui/tui-layout.c (tui_remove_some_windows): New function.
11760 (tui_layout_split::remove_windows): New method.
11761
427326a8
TT
117622020-02-22 Tom Tromey <tom@tromey.com>
11763
11764 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11765 * tui/tui-layout.h (tui_next_layout): Declare.
11766 * tui/tui-layout.c (tui_next_layout): New function.
11767
3fe12b6d
TT
117682020-02-22 Tom Tromey <tom@tromey.com>
11769
11770 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11771 correct coordinates.
11772
59b8b5d2
TT
117732020-02-22 Tom Tromey <tom@tromey.com>
11774
11775 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11776 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11777 DATA_WIN case.
11778
2a3d458b
TT
117792020-02-22 Tom Tromey <tom@tromey.com>
11780
11781 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11782 TUI_DISASM_WIN, not tui_win_list.
11783
3f0cbb04
TT
117842020-02-22 Tom Tromey <tom@tromey.com>
11785
11786 * valprint.c (generic_val_print_enum_1)
11787 (val_print_type_code_flags): Style member names.
11788 * rust-lang.c (val_print_struct, rust_print_enum)
11789 (rust_print_struct_def, rust_internal_print_type): Style member
11790 names.
11791 * p-valprint.c (pascal_object_print_value_fields): Style member
11792 names. Only call fprintf_symbol_filtered for static members.
11793 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11794 * f-valprint.c (f_val_print): Style member names.
11795 * f-typeprint.c (f_type_print_base): Style member names.
11796 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11797 call fprintf_symbol_filtered for static members.
11798 (cp_print_class_member): Style member names.
11799 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11800 member names.
11801 * ada-valprint.c (ada_print_scalar): Style enum names.
11802 (ada_val_print_enum): Likewise.
11803 * ada-typeprint.c (print_enum_type): Style enum names.
11804
d4d947ae
TT
118052020-02-21 Tom Tromey <tom@tromey.com>
11806
11807 * psympriv.h (struct partial_symtab): Update comment.
11808
e94e944b
TT
118092020-02-21 Tom Tromey <tromey@adacore.com>
11810
11811 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11812 type is CORE_ADDR.
11813
1eb73179
TV
118142020-02-21 Tom de Vries <tdevries@suse.de>
11815
11816 PR gdb/25534
11817 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11818 if dependencies[i]->user != NULL.
11819
4f180d53
AT
118202020-02-21 Ali Tamur <tamur@google.com>
11821
11822 * dwarf2/read.c (dwarf2_name): Add null check.
11823
22b6cd70
TT
118242020-02-20 Tom Tromey <tom@tromey.com>
11825
11826 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11827 ">=", in binary search.
11828 (dwarf2_find_containing_comp_unit): New overload.
11829 (run_test): New self-test.
11830 (_initialize_dwarf2_read): Register new test.
11831
bd0cf5a6
NC
118322020-02-20 Nelson Chu <nelson.chu@sifive.com>
11833
11834 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11835 * riscv-tdep.h: Likewise.
11836 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11837 rv32-only CSR.
11838 * features/riscv/64bit-csr.xml: Regenerated.
11839
3f702acd
SDJ
118402020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11841 Tom Tromey <tom@tromey.com>
11842
11843 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11844 of 'fputc_unfiltered'.
11845 (putchar_unfiltered): Call 'fputc_unfiltered'.
11846 (fputc_unfiltered): Call 'fputs_unfiltered'.
11847
d13c7322
AB
118482020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11849
11850 * config.in: Regenerate.
11851 * configure: Regenerate.
11852 * configure.ac: Add --with-python-libdir option.
11853 * main.c: Use WITH_PYTHON_LIBDIR.
11854
869d8950
TT
118552020-02-19 Tom Tromey <tom@tromey.com>
11856
11857 * symtab.c (general_symbol_info::compute_and_set_names): Use
11858 obstack_strndup. Simplify call to symbol_set_demangled_name.
11859
298e9637
SM
118602020-02-19 Simon Marchi <simon.marchi@efficios.com>
11861
11862 * dwarf2/read.c (allocate_signatured_type_table,
11863 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11864 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11865 Remove objfile parameter, update all callers.
11866
08410482
DE
118672020-02-19 Doug Evans <dje@google.com>
11868
11869 PR rust/25535
11870 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11871 rust_enum_variant calculation.
11872
dfdeeca1
TT
118732020-02-19 Tom Tromey <tromey@adacore.com>
11874
11875 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11876
2ef5453b
TT
118772020-02-19 Tom Tromey <tromey@adacore.com>
11878
11879 * ada-lang.c (cache_symbol): Use obstack_strdup.
11880
9f1528a1
AB
118812020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11882
11883 * configure: Regenerate.
11884
d3c22fa8
TT
118852020-02-19 Tom Tromey <tromey@adacore.com>
11886
11887 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11888 NULL check.
11889
bf84f706
MR
118902020-02-19 Maciej W. Rozycki <macro@wdc.com>
11891
11892 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11893
d1c9b20f
AB
118942020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11895
11896 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11897 if GDBSERVER is not defined.
11898 (riscv_tdesc_cache): Likewise, also store const target_desc.
11899 (STATIC_IN_GDB): Define.
11900 (riscv_create_target_description): Update declaration with
11901 STATIC_IN_GDB.
11902 (riscv_lookup_target_description): New function, only define if
11903 GDBSERVER is not defined.
11904 * arch/riscv.h (riscv_create_target_description): Declare only
11905 when GDBSERVER is defined.
11906 (riscv_lookup_target_description): New declaration when GDBSERVER
11907 is not defined.
11908 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11909 (riscv_linux_read_features): ...this, and return
11910 riscv_gdbarch_features instead of target_desc.
11911 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11912 (riscv_linux_read_description): Rename to...
11913 (riscv_linux_read_features): ...this.
11914 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11915 Update to use riscv_gdbarch_features and
11916 riscv_lookup_target_description.
11917 * riscv-tdep.c (riscv_find_default_target_description): Use
11918 riscv_lookup_target_description instead of
11919 riscv_create_target_description.
11920
373d7ac0
SM
119212020-02-18 Simon Marchi <simon.marchi@efficios.com>
11922
11923 * valprint.c (generic_val_print_enum_1): When printing a flag
11924 enum with value 0 and there is no enumerator with value 0, print
11925 just "0" instead of "(unknown: 0x0)".
11926
b29a2df0
SM
119272020-02-18 Simon Marchi <simon.marchi@efficios.com>
11928
11929 * valprint.c (generic_val_print_enum_1): Print unknown part of
11930 flag enum in hex.
11931
6740f0cc
SM
119322020-02-18 Simon Marchi <simon.marchi@efficios.com>
11933
11934 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11935 flag enums to contain duplicate enumerators.
11936 * valprint.c (generic_val_print_enum_1): Update comment.
11937
edd45eb0
SM
119382020-02-18 Simon Marchi <simon.marchi@efficios.com>
11939
11940 * dwarf2/read.c: Include "count-one-bits.h".
11941 (update_enumeration_type_from_children): If an enumerator has
11942 multiple bits set, don't treat the enumeration as a "flag enum".
11943 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11944 of flag enums have 0 or 1 bit set.
11945
6d0cf446
BE
119462020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11947
11948 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11949 conversion.
11950 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11951 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11952 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11953 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11954 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11955
7001c1b7
SM
119562020-02-18 Simon Marchi <simon.marchi@efficios.com>
11957
11958 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11959
fdb61c6c
SM
119602020-02-14 Simon Marchi <simon.marchi@efficios.com>
11961
11962 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11963 displaced_step_closure_up.
11964 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11965 (struct displaced_step_closure_up):
11966 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11967 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11968 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11969 Likewise.
11970 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11971 * gdbarch.c, gdbarch.h: Re-generate.
11972 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11973 displaced_step_closure_up.
11974 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11975 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11976 * infrun.h (displaced_step_closure_up): New type alias.
11977 (struct displaced_step_inferior_state) <step_closure>: Change
11978 type to displaced_step_closure_up.
11979 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11980 displaced_step_closure_up.
11981 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11982
a4a38eb4
TT
119832020-02-14 Tom Tromey <tom@tromey.com>
11984
11985 * minidebug.c (gnu_debug_key): New global.
11986 (find_separate_debug_file_in_section): Use it.
11987
e8217e61
SM
119882020-02-14 Simon Marchi <simon.marchi@efficios.com>
11989
11990 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11991 std::unique_ptr.
11992 * gdbarch.c: Re-generate.
11993 * gdbarch.h: Re-generate.
11994 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11995 change.
11996 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11997 type to std::unique_ptr.
11998 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11999 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12000 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12001 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12002 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12003 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12004 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12005 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12006 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12007
d8d83535
SM
120082020-02-14 Simon Marchi <simon.marchi@efficios.com>
12009
12010 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12011 std::unique_ptr.
12012 (displaced_step_clear): Rename to...
12013 (displaced_step_reset): ... this. Just call displaced->reset ().
12014 (displaced_step_clear_cleanup): Rename to...
12015 (displaced_step_reset_cleanup): ... this.
12016 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12017 (displaced_step_fixup): Likewise.
12018 (resume_1): Likewise.
12019 (handle_inferior_event): Restore child's memory before calling
12020 displaced_step_fixup on the parent.
12021 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12022 to std::unique_ptr.
12023 <step_closure>: Change type to std::unique_ptr.
12024
5f661e03
SM
120252020-02-14 Simon Marchi <simon.marchi@efficios.com>
12026
12027 * arm-tdep.c: Include count-one-bits.h.
12028 (cleanup_block_store_pc): Use count_one_bits.
12029 (cleanup_block_load_pc): Use count_one_bits.
12030 (arm_copy_block_xfer): Use count_one_bits.
12031 (thumb2_copy_block_xfer): Use count_one_bits.
12032 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12033 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12034 (thumb_get_next_pcs_raw): Use count_one_bits.
12035 (arm_get_next_pcs_raw): Use count_one_bits_l.
12036 * arch/arm.c (bitcount): Remove.
12037 * arch/arm.h (bitcount): Remove.
12038
8084e579
TT
120392020-02-14 Tom Tromey <tromey@adacore.com>
12040
12041 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12042 Update.
12043 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12044 * dwarf2/loc.c (call_site_find_chain_1): Return
12045 unique_xmalloc_ptr.
12046 (call_site_find_chain): Likewise.
12047
258bf0ee
RB
120482020-02-14 Richard Biener <rguenther@suse.de>
12049
12050 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12051 on expression with division operators.
12052
f98a8458
AKS
120532020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12054
12055 * MAINTAINERS (Write After Approval): Adding myself.
12056
d1437c0e
TT
120572020-02-12 Tom Tromey <tom@tromey.com>
12058
12059 * event-loop.c (event_data, gdb_event, event_handler_func):
12060 Remove.
12061
3d4560f7
TT
120622020-02-12 Tom Tromey <tom@tromey.com>
12063
12064 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12065 (dwarf2_frame_objfile_data): Add comment.
12066 (find_comp_unit, set_comp_unit): New functions.
12067 (dwarf2_frame_find_fde): Use find_comp_unit.
12068 (dwarf2_build_frame_info): Use set_comp_unit.
12069
21982304
TT
120702020-02-12 Tom Tromey <tom@tromey.com>
12071
12072 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12073 (comp_unit): Don't initialize objfile.
12074 (execute_cfa_program): Add text_offset parameter.
12075 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12076 (dwarf2_frame_cache): Update.
12077 (dwarf2_build_frame_info): Don't set "objfile" member.
12078
4debb237
TT
120792020-02-12 Tom Tromey <tom@tromey.com>
12080
12081 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12082 (decode_frame_entry): Likewise.
12083 (dwarf2_build_frame_info): Update.
12084
0d404d44
TT
120852020-02-12 Tom Tromey <tom@tromey.com>
12086
12087 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12088 (decode_frame_entry_1): Use the comp_unit obstack.
12089
a7a3ae5c
TT
120902020-02-12 Tom Tromey <tom@tromey.com>
12091
12092 * dwarf2/frame.c (struct comp_unit): Add initializers and
12093 constructor.
12094 (dwarf2_frame_objfile_data): Store a comp_unit.
12095 (dwarf2_frame_find_fde): Update.
12096 (dwarf2_build_frame_info): Use "new".
12097
a9d65418
TT
120982020-02-12 Tom Tromey <tom@tromey.com>
12099
12100 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12101 (dwarf2_fde_table): Typedef for std::vector.
12102 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12103 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12104 (decode_frame_entry): Update.
12105 (dwarf2_build_frame_info): Use "new".
12106
7559c217
CB
121072020-02-12 Christian Biesinger <cbiesinger@google.com>
12108
12109 * arm-tdep.c (arm_gdbarch_init): Update.
12110 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12111 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12112 have_neon, is_m>: Change to bool.
12113
aeefc73c
CB
121142020-02-12 Christian Biesinger <cbiesinger@google.com>
12115
12116 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12117
d27b8e5f
TT
121182020-02-12 Tom Tromey <tom@tromey.com>
12119
12120 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12121
cd5900f3
HD
121222020-02-12 Hannes Domani <ssbssa@yahoo.de>
12123
12124 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12125 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12126
f056b22b
TT
121272020-02-11 Tom Tromey <tom@tromey.com>
12128
12129 * psymtab.h: Update comment.
12130
f92ff6b5
TT
121312020-02-11 Tom Tromey <tom@tromey.com>
12132
12133 * gdb_obstack.h (struct auto_obstack): Use
12134 DISABLE_COPY_AND_ASSIGN.
12135
3fd6912b
TT
121362020-02-11 Tom Tromey <tom@tromey.com>
12137
12138 * dwarf2/frame.h (struct objfile): Don't forward declare.
12139
69ed9b74
CB
121402020-02-11 Christian Biesinger <cbiesinger@google.com>
12141
12142 * cris-tdep.c (cris_supply_gregset): Change signature to match
12143 what struct regset expects.
12144 (cris_regset): New struct.
12145 (fetch_core_registers): Remove.
12146 (cris_iterate_over_regset_sections): New function.
12147 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12148 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12149
bda874f6
CB
121502020-02-11 Christian Biesinger <cbiesinger@google.com>
12151
12152 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12153 registers.
12154
754e1564
CB
121552020-02-11 Christian Biesinger <cbiesinger@google.com>
12156
12157 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12158
8ddd8e0e
SM
121592020-02-11 Simon Marchi <simon.marchi@efficios.com>
12160
12161 * configure: Re-generate.
12162
898e7f60
SM
121632020-02-11 Simon Marchi <simon.marchi@efficios.com>
12164
12165 * configure: Re-generate.
12166
58df732b
SM
121672020-02-11 Simon Marchi <simon.marchi@efficios.com>
12168
12169 * acinclude: Update warning.m4 path.
12170 * warning.m4: Move to gdbsupport.
12171
da5bd37e
TT
121722020-02-11 Tom Tromey <tromey@adacore.com>
12173
12174 * remote.c (remote_console_output): Update.
12175 * printcmd.c (printf_command): Update.
12176 * event-loop.c (gdb_wait_for_event): Update.
12177 * linux-nat.c (sigchld_handler): Update.
12178 * remote-sim.c (gdb_os_write_stdout): Update.
12179 (gdb_os_flush_stdout): Update.
12180 (gdb_os_flush_stderr): Update.
12181 (gdb_os_write_stderr): Update.
12182 * exceptions.c (print_exception): Update.
12183 * remote-fileio.c (remote_fileio_func_read): Update.
12184 (remote_fileio_func_write): Update.
12185 * tui/tui.c (tui_enable): Update.
12186 * tui/tui-interp.c (tui_interp::init): Update.
12187 * utils.c (init_page_info): Update.
12188 (putchar_unfiltered, fputc_unfiltered): Update.
12189 (gdb_flush): Update.
12190 (emit_style_escape): Update.
12191 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12192 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12193 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12194 (stderr_file::write): Update.
12195 (stderr_file::puts): Update.
12196 * ui-file.h (ui_file_isatty, ui_file_write)
12197 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12198 (ui_file_puts): Don't declare.
12199
85f0dd3c
TV
122002020-02-10 Tom de Vries <tdevries@suse.de>
12201
12202 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12203 sentinel to char *.
12204
2e927613
TV
122052020-02-09 Tom de Vries <tdevries@suse.de>
12206
12207 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12208 filename if it matches "<artificial>".
12209
6bafc845
HD
122102020-02-09 Hannes Domani <ssbssa@yahoo.de>
12211
12212 * windows-tdep.c (struct enum_value_name): New struct.
12213 (create_enum): New function.
12214 (windows_get_siginfo_type): Create and use enum types.
12215
7928d571
HD
122162020-02-09 Hannes Domani <ssbssa@yahoo.de>
12217
12218 * NEWS: Mention $_siginfo support for Windows.
12219 * windows-nat.c (handle_exception): Set siginfo_er.
12220 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12221 (windows_xfer_siginfo): New function.
12222 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12223 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12224 (init_windows_gdbarch_data): New function.
12225 (get_windows_gdbarch_data): New function.
12226 (windows_get_siginfo_type): New function.
12227 (windows_init_abi): Register windows_get_siginfo_type.
12228 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12229
6751ebae
TT
122302020-02-08 Tom Tromey <tom@tromey.com>
12231
12232 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12233 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12234 <keep>: Declare method.
12235 <m_keep>: Remove member.
12236 <~cutu_reader>: Remove.
12237 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12238 (cutu_reader::cutu_reader): Update.
12239 (cutu_reader::keep): Rename from ~cutu_reader.
12240 (process_psymtab_comp_unit, build_type_psymtabs_1)
12241 (process_skeletonless_type_unit, load_partial_comp_unit)
12242 (load_full_comp_unit, dwarf2_read_addr_index)
12243 (read_signatured_type): Update.
12244
135f5437
TT
122452020-02-08 Tom Tromey <tom@tromey.com>
12246
12247 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12248 "want_partial_unit" parameter.
12249 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12250 Inline check for DW_TAG_partial_unit.
12251 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12252
9f66ff1c
TT
122532020-02-08 Tom Tromey <tom@tromey.com>
12254
12255 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12256 read.c.
12257 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12258 read.c.
12259
c8a7a66f
TT
122602020-02-08 Tom Tromey <tom@tromey.com>
12261
12262 * dwarf2/read.c (read_address): Move to comp-unit.c.
12263 (dwarf2_rnglists_process, dwarf2_ranges_process)
12264 (read_attribute_value, dwarf_decode_lines_1)
12265 (var_decode_location, decode_locdesc): Update.
12266 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12267 read.c. Remove "cu" parameter.
12268 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12269 method.
12270
8266302d
TT
122712020-02-08 Tom Tromey <tom@tromey.com>
12272
12273 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12274 (read_indirect_line_string): Update.
12275 * dwarf2/comp-unit.c (read_offset): Remove.
12276 (read_comp_unit_head): Update.
12277 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12278 method.
12279 (read_offset): Don't declare.
12280
4057dfde
TT
122812020-02-08 Tom Tromey <tom@tromey.com>
12282
12283 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12284 * dwarf2/read.c (struct comp_unit_head): Move to
12285 dwarf2/comp-unit.h.
12286 (enum class rcuh_kind): Move to comp-unit.h.
12287 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12288 (read_comp_unit_head, error_check_comp_unit_head)
12289 (read_and_check_comp_unit_head): Move to comp-unit.c.
12290 (read_offset, dwarf_unit_type_name): Likewise.
12291 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12292 (cutu_reader::cutu_reader, read_call_site_scope)
12293 (find_partial_die, follow_die_offset): Update.
12294 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12295
24aa364d
TT
122962020-02-08 Tom Tromey <tom@tromey.com>
12297
12298 * dwarf2/read.c (read_offset_1): Move to leb.c.
12299 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12300 (dwarf_decode_macro_bytes): Update.
12301 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12302 * dwarf2/leb.h (read_offset): Declare.
12303
2c7d5afc
TT
123042020-02-08 Tom Tromey <tom@tromey.com>
12305
12306 * dwarf2/read.c (dwarf2_section_size): Remove.
12307 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12308 Update.
12309 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12310
4075cb26
TT
123112020-02-08 Tom Tromey <tom@tromey.com>
12312
12313 * dwarf2/read.c (read_initial_length): Move to leb.c.
12314 * dwarf2/leb.h (read_initial_length): Declare.
12315 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12316 handle_nonstd parameter.
12317 * dwarf2/frame.c (read_initial_length): Remove.
12318 (decode_frame_entry_1): Update.
12319
09ba997f
TT
123202020-02-08 Tom Tromey <tom@tromey.com>
12321
12322 * dwarf2/loc.c (dwarf2_find_location_expression)
12323 (dwarf_evaluate_loc_desc::get_tls_address)
12324 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12325 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12326 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12327 (dwarf2_compile_property_to_c)
12328 (dwarf2_loc_desc_get_symbol_read_needs)
12329 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12330 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12331 (loclist_describe_location, loclist_tracepoint_var_ref)
12332 (loclist_generate_c_location): Update.
12333 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12334 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12335 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12336 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12337 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12338 (dwarf2_per_cu_data::addr_size)
12339 (dwarf2_per_cu_data::ref_addr_size)
12340 (dwarf2_per_cu_data::text_offset)
12341 (dwarf2_per_cu_data::addr_type): Now methods.
12342 (per_cu_header_read_in): Make per_cu "const".
12343 (dwarf2_version): Remove.
12344 (dwarf2_per_cu_data::int_type): Now a method.
12345 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12346 (set_die_type, read_array_type, read_subrange_index_type)
12347 (read_tag_string_type, read_subrange_type): Update.
12348 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12349 offset_size, ref_addr_size, text_offset, addr_type, version,
12350 objfile, int_type, addr_sized_int_type>: Declare methods.
12351
96c738c0
TT
123522020-02-08 Tom Tromey <tom@tromey.com>
12353
12354 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12355 Move earlier.
12356
8fdd972c
TT
123572020-02-08 Tom Tromey <tom@tromey.com>
12358
12359 * dwarf2/read.h (dwarf_line_debug): Declare.
12360 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12361 * dwarf2/read.c: Move line_header code to new files.
12362 (dwarf_line_debug): No longer static.
12363 * dwarf2/line-header.c: New file.
12364 * dwarf2/line-header.h: New file.
12365
03075812
TT
123662020-02-08 Tom Tromey <tom@tromey.com>
12367
12368 * dwarf2/read.c (struct line_header) <file_full_name,
12369 file_file_name>: Return unique_xmalloc_ptr.
12370 (line_header::file_file_name): Update.
12371 (line_header::file_full_name): Update.
12372 (dw2_get_file_names_reader): Update.
12373 (macro_start_file): Update.
12374
bb822404
TT
123752020-02-08 Tom Tromey <tom@tromey.com>
12376
12377 * dwarf2/read.c (struct line_header) <file_full_name,
12378 file_file_name>: Declare methods.
12379 (dw2_get_file_names_reader): Update.
12380 (file_file_name): Now a method.
12381 (file_full_name): Likewise.
12382 (macro_start_file): Update.
12383
009b64fc
TT
123842020-02-08 Tom Tromey <tom@tromey.com>
12385
12386 * dwarf2/read.c (dwarf_always_disassemble)
12387 (show_dwarf_always_disassemble): Move to loc.c.
12388 (_initialize_dwarf2_read): Move "always-disassemble" registration
12389 to loc.c.
12390 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12391 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12392 static.
12393 (show_dwarf_always_disassemble): Move from read.c.
12394 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12395
5895093f
TT
123962020-02-08 Tom Tromey <tom@tromey.com>
12397
12398 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12399 (create_quick_file_names_table): Return htab_up.
12400 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12401 Update.
12402 * dwarf2/read.h (struct dwarf2_per_objfile)
12403 <quick_file_names_table>: Now htab_up.
12404
b3b32279
TT
124052020-02-08 Tom Tromey <tom@tromey.com>
12406
12407 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12408
1d33d811
TT
124092020-02-08 Tom Tromey <tom@tromey.com>
12410
12411 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12412 Rewrite.
12413 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12414 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12415 (abbrev_table::abbrev_table): No longer inline.
12416 (ABBREV_HASH_SIZE): Remove.
12417 (abbrev_table::m_abbrevs): Now an htab_up.
12418
86de1d91
TT
124192020-02-08 Tom Tromey <tom@tromey.com>
12420
12421 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12422 (cutu_reader): Update.
12423 (build_type_psymtabs_1): Update.
12424 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12425 (abbrev_table::alloc_abbrev): Update.
12426 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12427 (abbrev_table::read): New static method, renamed from
12428 abbrev_table_read_table.
12429 (abbrev_table::alloc_abbrev)
12430 (abbrev_table::add_abbrev): Now private.
12431 (abbrev_table::abbrev_table): Now private.
12432 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12433
0335378b
TT
124342020-02-08 Tom Tromey <tom@tromey.com>
12435
12436 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12437 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12438 htab_up.
12439
48b490f2
TT
124402020-02-08 Tom Tromey <tom@tromey.com>
12441
12442 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12443 htab_up.
12444 (lookup_dwo_unit_in_dwp): Update.
12445 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12446 on obstack.
12447
bc68fb19
TT
124482020-02-08 Tom Tromey <tom@tromey.com>
12449
12450 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12451 obstack.
12452
d15acc42
TT
124532020-02-08 Tom Tromey <tom@tromey.com>
12454
12455 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12456 line_header_hash.
12457 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12458 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12459 Change type to htab_up.
12460
eaa5fa8b
TT
124612020-02-08 Tom Tromey <tom@tromey.com>
12462
12463 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12464 htab_up. Don't allocate on obstack.
12465 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12466 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12467 Change type to htab_up.
12468
b0b6a987
TT
124692020-02-08 Tom Tromey <tom@tromey.com>
12470
12471 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12472 Change type to htab_up.
12473 * dwarf2/read.c (create_signatured_type_table_from_index)
12474 (create_signatured_type_table_from_debug_names)
12475 (create_all_type_units, add_type_unit)
12476 (lookup_dwo_signatured_type, lookup_signatured_type)
12477 (process_skeletonless_type_unit): Update.
12478 (create_debug_type_hash_table, create_debug_types_hash_table):
12479 Change type of types_htab.
12480 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12481 htab_up. Don't allocate on obstack.
12482 (create_cus_hash_table): Change type of cus_htab parameter.
12483 (struct dwo_file) <cus, tus>: Now htab_up.
12484 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12485 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12486 (queue_and_load_all_dwo_tus): Update.
12487 * dwarf2/index-write.c (write_gdbindex): Update.
12488 (write_debug_names): Update.
12489
39856def
TT
124902020-02-08 Tom Tromey <tom@tromey.com>
12491
12492 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12493 dwarf2/read.c. Remove "next" member. Add constructor ntad
12494 destructor.
12495 (struct dwarf2_per_objfile) <queue>: New member.
12496 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12497 dwarf2/read.h.
12498 (dwarf2_queue, dwarf2_queue_tail): Remove.
12499 (class dwarf2_queue_guard): Add parameter to constructor. Use
12500 DISABLE_COPY_AND_ASSIGN.
12501 <m_per_objfile>: New member.
12502 <~dwarf2_queue_guard>: Rewrite.
12503 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12504 Update.
12505 (~dwarf2_queue_item): New.
12506
3e225074
TT
125072020-02-08 Tom Tromey <tom@tromey.com>
12508
12509 * dwarf2/read.c (struct die_info) <has_children>: New member.
12510 (dw2_get_file_names_reader): Remove has_children.
12511 (dw2_get_file_names): Update.
12512 (read_cutu_die_from_dwo): Remove has_children.
12513 (cutu_reader::init_tu_and_read_dwo_dies)
12514 (cutu_reader::cutu_reader): Update.
12515 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12516 Remove has_children.
12517 (build_type_psymtabs_1, process_skeletonless_type_unit)
12518 (load_partial_comp_unit, load_full_comp_unit): Update.
12519 (create_dwo_cu_reader): Remove has_children.
12520 (create_cus_hash_table, read_die_and_children): Update.
12521 (read_full_die_1,read_full_die): Remove has_children.
12522 (read_signatured_type): Update.
12523 (class cutu_reader) <has_children>: Remove.
12524
82ca8957
TT
125252020-02-08 Tom Tromey <tom@tromey.com>
12526
12527 * dwarf2/expr.c: Rename from dwarf2expr.c.
12528 * dwarf2/expr.h: Rename from dwarf2expr.h.
12529 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12530 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12531 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12532 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12533 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12534 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12535 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12536 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12537 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12538 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12539 * dwarf2/loc.c: Rename from dwarf2loc.c.
12540 * dwarf2/loc.h: Rename from dwarf2loc.h.
12541 * dwarf2/read.c: Rename from dwarf2read.c.
12542 * dwarf2/read.h: Rename from dwarf2read.h.
12543 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12544 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12545 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12546 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12547 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12548 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12549 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12550 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12551 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12552 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12553 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12554 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12555 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12556 Update.
12557 * Makefile.in (COMMON_SFILES): Update.
12558 (HFILES_NO_SRCDIR): Update.
12559
9e35d499
TT
125602020-02-08 Tom Tromey <tom@tromey.com>
12561
12562 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12563 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12564
1eba2311
TT
125652020-02-08 Tom Tromey <tom@tromey.com>
12566
12567 * dwarf2read.h (struct die_info): Don't declare.
12568
e41c2da2
TT
125692020-02-08 Tom Tromey <tom@tromey.com>
12570
12571 * dwarf2read.h (die_info_ptr): Remove typedef.
12572
4fc6c0d5
TT
125732020-02-08 Tom Tromey <tom@tromey.com>
12574
12575 * dwarf2read.c (read_call_site_scope)
12576 (handle_data_member_location, dwarf2_add_member_fn)
12577 (mark_common_block_symbol_computed, read_common_block)
12578 (attr_to_dynamic_prop, partial_die_info::read)
12579 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12580 (dwarf2_symbol_mark_computed, set_die_type): Update.
12581 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12582 method.
12583 (attr_form_is_block): Don't declare.
12584 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12585
cd6c91b4
TT
125862020-02-08 Tom Tromey <tom@tromey.com>
12587
12588 * dwarf2read.c (dwarf2_find_base_address, )
12589 (read_call_site_scope, rust_containing_type)
12590 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12591 (handle_data_member_location, dwarf2_add_member_fn)
12592 (get_alignment, read_structure_type, process_structure_scope)
12593 (mark_common_block_symbol_computed, read_common_block)
12594 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12595 (partial_die_info::read, read_attribute_value, new_symbol)
12596 (lookup_die_type, dwarf2_get_ref_die_offset)
12597 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12598 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12599 (dwarf2_symbol_mark_computed): Update.
12600 * dwarf2/attribute.h (struct attribute) <value_as_address,
12601 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12602 methods.
12603 (value_as_address, attr_form_is_section_offset)
12604 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12605 * dwarf2/attribute.c (attribute::value_as_address)
12606 (attribute::form_is_section_offset, attribute::form_is_constant)
12607 (attribute::form_is_ref): Now methods.
12608
162dce55
TT
126092020-02-08 Tom Tromey <tom@tromey.com>
12610
12611 * dwarf2read.c (struct attribute, DW_STRING)
12612 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12613 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12614 (attr_form_is_block, attr_form_is_section_offset)
12615 (attr_form_is_constant, attr_form_is_ref): Move.
12616 * dwarf2/attribute.h: New file.
12617 * dwarf2/attribute.c: New file, from dwarf2read.c.
12618 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12619
3054dd54
TT
126202020-02-08 Tom Tromey <tom@tromey.com>
12621
12622 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12623 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12624 Move.
12625 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12626 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12627 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12628 abbrev.c.
12629 * dwarf2/abbrev.h: New file.
12630 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12631 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12632
96b79293
TT
126332020-02-08 Tom Tromey <tom@tromey.com>
12634
12635 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12636 (dwarf2_section_size, dwarf2_get_section_info)
12637 (create_signatured_type_table_from_debug_names)
12638 (create_addrmap_from_aranges, read_debug_names_from_section)
12639 (get_gdb_index_contents_from_section, read_comp_unit_head)
12640 (error_check_comp_unit_head, read_abbrev_offset)
12641 (create_debug_type_hash_table, init_cu_die_reader)
12642 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12643 (read_comp_units_from_section, create_cus_hash_table)
12644 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12645 (create_dwp_v2_section, dwarf2_rnglists_process)
12646 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12647 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12648 (read_indirect_string_from_dwz, read_addr_index_1)
12649 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12650 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12651 (fill_in_loclist_baton): Update.
12652 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12653 get_containing_section, get_bfd_owner, get_bfd_section,
12654 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12655 (dwarf2_read_section, get_section_name, get_section_file_name)
12656 (get_containing_section, get_section_bfd_owner)
12657 (get_section_bfd_section, get_section_name, get_section_file_name)
12658 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12659 declare.
12660 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12661 (dwarf2_section_info::get_bfd_owner)
12662 (dwarf2_section_info::get_bfd_section)
12663 (dwarf2_section_info::get_name)
12664 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12665 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12666 (dwarf2_section_info::read): Now methods.
12667 * dwarf-index-write.c (class debug_names): Update.
12668
2c86cff9
TT
126692020-02-08 Tom Tromey <tom@tromey.com>
12670
12671 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12672 Move to dwarf2/section.h.
12673 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12674 (get_section_bfd_section, get_section_name)
12675 (get_section_file_name, get_section_id, get_section_flags)
12676 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12677 dwarf2/section.c.
12678 * dwarf2/section.h: New file.
12679 * dwarf2/section.c: New file, from dwarf2read.c.
12680 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12681
f4382c45
TT
126822020-02-08 Tom Tromey <tom@tromey.com>
12683
12684 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12685 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12686 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12687 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12688 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12689 * dwarf2/leb.h: New file, from dwarf2read.c.
12690 * dwarf2/leb.c: New file, from dwarf2read.c.
12691 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12692 Remove.
12693 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12694 (COMMON_SFILES): Add dwarf2/leb.c.
12695
01840b7a
JB
126962020-02-08 Joel Brobecker <brobecker@adacore.com>
12697
12698 GDB 9.1 released.
12699
dfcb27e4
IB
127002020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12701
12702 PR gdb/25190:
aac66a4c
SM
12703 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12704 * gdb/remote.c (remote_console_output): Update.
12705 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12706 (ui_file_puts): ...this.
12707 * gdb/ui-file.h (ui_file_puts): Add declaration.
12708 * gdb/utils.c (emit_style_escape): Update.
12709 (flush_wrap_buffer): Update.
12710 (fputs_maybe_filtered): Update.
12711 (fputs_unfiltered): Add function.
dfcb27e4 12712
faa17681
IB
127132020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12714
aac66a4c
SM
12715 * gdb/event-loop.c (gdb_wait_for_event): Update.
12716 * gdb/printcmd.c (printf_command): Update.
12717 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12718 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12719 (gdb_os_flush_stderr): Update.
12720 * gdb/remote.c (remote_console_output): Update.
12721 * gdb/ui-file.c (gdb_flush): Rename to...
12722 (ui_file_flush): ...this.
12723 (stderr_file::write): Update.
12724 (stderr_file::puts): Update.
12725 * gdb/ui-file.h (gdb_flush): Rename to...
12726 (ui_file_flush): ...this.
12727 * gdb/utils.c (gdb_flush): Add function.
12728 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12729
5abbbe1d
TT
127302020-02-07 Tom Tromey <tromey@adacore.com>
12731
12732 PR breakpoints/24915:
12733 * source.c (find_and_open_source): Do not check basenames_may_differ.
12734
919adfe8
TT
127352020-02-07 Tom Tromey <tom@tromey.com>
12736
12737 * README: Update gdbserver documentation.
12738 * gdbserver: Move to top level.
12739 * configure.tgt (build_gdbserver): Remove.
12740 * configure.ac: Remove --enable-gdbserver.
12741 * configure: Rebuild.
12742 * Makefile.in (distclean): Don't mention gdbserver.
12743
1d5d29e7
SV
127442020-02-06 Shahab Vahedi <shahab@synopsys.com>
12745
12746 * source-cache.c (source_cache::ensure): Surround
12747 get_plain_source_lines with a try/catch.
12748 (source_cache::get_line_charpos): Get rid of try/catch
12749 and only check for the return value of "ensure".
12750 * tui/tui-source.c (tui_source_window::set_contents):
12751 Simplify "nlines" calculation.
12752
6eb1129c
SV
127532020-02-06 Shahab Vahedi <shahab@synopsys.com>
12754
12755 * MAINTAINERS (Write After Approval): Add myself.
12756
c6a42d11
CB
127572020-02-05 Christian Biesinger <cbiesinger@google.com>
12758
12759 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12760 function call.
12761
c8ecdda6
CB
127622020-02-05 Christian Biesinger <cbiesinger@google.com>
12763
12764 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12765
f6480e70
MR
127662020-02-05 Maciej W. Rozycki <macro@wdc.com>
12767
12768 * nat/riscv-linux-tdesc.h: New file.
12769 * nat/riscv-linux-tdesc.c: New file, taking code from...
12770 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12771 ... here.
12772 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12773 NATDEPFILES.
12774
dcc9fbc6
AB
127752020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12776
12777 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12778 we don't set the fake simulator ptid to the null_ptid.
12779
719546c4
SM
127802020-02-03 Simon Marchi <simon.marchi@efficios.com>
12781
12782 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12783 * gdbthread.h (class thread_info) <resumed>: Likewise.
12784 * infrun.c (resume_1): Likewise.
12785 (proceed): Likewise.
12786 (infrun_thread_stop_requested): Likewise.
12787 (stop_all_threads): Likewise.
12788 (handle_inferior_event): Likewise.
12789 (restart_threads): Likewise.
12790 (finish_step_over): Likewise.
12791 (keep_going_stepped_thread): Likewise.
12792 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12793 (linux_handle_extended_wait): Likewise.
12794 * record-btrace.c (get_thread_current_frame_id): Likewise.
12795 * record-full.c (record_full_wait_1): Likewise.
12796 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12797 * target.c (target_resume): Likewise.
12798 * thread.c (set_running_thread): Likewise.
12799
e409c542
AKS
128002020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12801
12802 * f-valprint.c (f77_print_array_1): Changed datatype of index
12803 variable to LONGEST from int to enable it to contain bound
12804 values correctly.
12805
ee98c0da
MR
128062020-02-03 Maciej W. Rozycki <macro@wdc.com>
12807
12808 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12809 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12810 offsets according to FLEN determined.
12811 (riscv_linux_nat_target::read_description): Determine FLEN
12812 dynamically.
12813 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12814 according to FLEN determined.
12815 (riscv_linux_nat_target::store_registers): Likewise.
12816
aa66aac4
SV
128172020-02-01 Shahab Vahedi <shahab@synopsys.com>
12818
12819 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12820 when reg->group is empty and reggroup is not.
12821
fd9faca8
TT
128222020-01-31 Tom Tromey <tromey@adacore.com>
12823
12824 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12825 Call beneath target's mourn_inferior after unpushing.
12826
42330a68
AB
128272020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12828
12829 PR tui/9765
12830 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12831 have enough lines to fill the screen, still return the lowest
12832 address we found.
12833
7a27a45b
AB
128342020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12835
12836 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12837 '-', '<', and '>' commands.
12838
c47f70e2
PA
128392020-01-29 Pedro Alves <palves@redhat.com>
12840 Sergio Durigan Junior <sergiodj@redhat.com>
12841
12842 * infcmd.c (construct_inferior_arguments): Assert that
12843 'argc' is greater than 0.
12844
5133a315
LM
128452020-01-29 Luis Machado <luis.machado@linaro.org>
12846
12847 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12848 (BRK_INSN_MASK): Define to 0xd4200000.
12849 (aarch64_program_breakpoint_here_p): New function.
12850 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12851 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12852 breakpoint.c.
12853 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12854 breakpoint.h
12855 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12856 call gdbarch_program_breakpoint_here_p.
12857 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12858 default_program_breakpoint_here_p, changed return type to bool and
12859 simplified.
12860 * breakpoint.h (program_breakpoint_here): Moved prototype to
12861 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12862 return type to bool.
12863 * gdbarch.c: Regenerate.
12864 * gdbarch.h: Regenerate.
12865 * gdbarch.sh (program_breakpoint_here_p): New method.
12866 * infrun.c (handle_signal_stop): Call
12867 gdbarch_program_breakpoint_here_p.
12868
168f8c6b
TT
128692020-01-26 Tom Tromey <tom@tromey.com>
12870
12871 * ctfread.c (struct ctf_fp_info): Reindent.
12872 (_initialize_ctfread): Remove.
12873
128a391f
TT
128742020-01-26 Tom Tromey <tom@tromey.com>
12875
12876 * psymtab.c (partial_map_expand_apply)
12877 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12878 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12879 (psym_print_stats, psym_expand_symtabs_for_function)
12880 (psym_map_symbol_filenames, psym_map_matching_symbols)
12881 (psym_expand_symtabs_matching)
12882 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12883 (maintenance_check_psymtabs): Use new methods.
12884 * psympriv.h (struct partial_symtab) <readin_p,
12885 get_compunit_symtab>: New methods.
12886 <readin, compunit_symtab>: Remove members.
12887 (struct standard_psymtab): New.
12888 (struct legacy_psymtab): Derive from standard_psymtab.
12889 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12890 standard_psymtab.
12891 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12892
0494dbec
TT
128932020-01-26 Tom Tromey <tom@tromey.com>
12894
12895 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12896 read_dependencies. Add assert.
12897 * psymtab.c (partial_symtab::read_dependencies): New method.
12898 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12899 method.
12900 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12901 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12902 read_dependencies.
12903 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12904 Add assert.
12905
8566b89b
TT
129062020-01-26 Tom Tromey <tom@tromey.com>
12907
12908 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12909 Call expand_psymtab.
12910 (xcoff_read_symtab): Call expand_psymtab.
12911 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12912 legacy_expand_psymtab.
12913 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12914 method.
12915 (struct legacy_psymtab) <expand_psymtab>: Implement.
12916 <legacy_expand_psymtab>: New member.
12917 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12918 (parse_partial_symbols): Set legacy_expand_psymtab.
12919 (psymtab_to_symtab_1): Change argument order. Call
12920 expand_psymtab.
12921 (new_psymtab): Set legacy_expand_psymtab.
12922 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12923 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12924 expand_psymtab.
12925 (dwarf2_psymtab::expand_psymtab): Rename from
12926 psymtab_to_symtab_1. Call expand_psymtab.
12927 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12928 (dbx_end_psymtab): Likewise.
12929 (dbx_psymtab_to_symtab_1): Change argument order. Call
12930 expand_psymtab.
12931 (dbx_read_symtab): Call expand_psymtab.
12932 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12933 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12934 (ctf_psymtab::read_symtab): Call expand_psymtab.
12935
077cbab2
TT
129362020-01-26 Tom Tromey <tom@tromey.com>
12937
12938 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12939 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12940 messages.
12941 * mdebugread.c (mdebug_read_symtab): Remove prints.
12942 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12943 assert.
12944 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12945
891813be
TT
129462020-01-26 Tom Tromey <tom@tromey.com>
12947
12948 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12949 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12950 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12951 legacy_symtab.
12952 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12953 * psymtab.c (psymtab_to_symtab): Call method.
12954 (dump_psymtab): Update.
12955 * psympriv.h (struct partial_symtab): Add virtual destructor.
12956 <read_symtab>: New method.
12957 (struct legacy_symtab): New.
12958 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12959 (struct pst_map) <pst>: Now a legacy_psymtab.
12960 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12961 (new_psymtab): Use legacy_psymtab.
12962 * dwarf2read.h (struct dwarf2_psymtab): New.
12963 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12964 * dwarf2read.c (dwarf2_create_include_psymtab)
12965 (dwarf2_build_include_psymtabs, create_type_unit_group)
12966 (create_partial_symtab, process_psymtab_comp_unit_reader)
12967 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12968 (set_partial_user): Use dwarf2_psymtab.
12969 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12970 (psymtab_to_symtab_1, process_full_comp_unit)
12971 (process_full_type_unit, dwarf2_ranges_read)
12972 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12973 (dwarf_decode_lines): Use dwarf2_psymtab.
12974 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12975 (add_address_entry_worker, write_one_signatured_type)
12976 (recursively_count_psymbols, recursively_write_psymbols)
12977 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12978 (write_debug_names): Likewise.
12979 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12980 <pst>: Now a legacy_psymtab.
12981 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12982 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12983 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12984 * ctfread.c (struct ctf_psymtab): New.
12985 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12986 ctf_psymtab.
12987 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12988 (create_partial_symtab): Return a ctf_psymtab.
12989 (scan_partial_symbols): Update.
12990
c3693a1d
TT
129912020-01-26 Tom Tromey <tom@tromey.com>
12992
12993 * xcoffread.c (xcoff_start_psymtab): Use new.
12994 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12995 renamed from start_psymtab_common.
12996 * psympriv.h (struct partial_symtab): Add new constructor.
12997 (start_psymtab_common): Don't declare.
12998 * mdebugread.c (parse_partial_symbols): Use new.
12999 * dwarf2read.c (create_partial_symtab): Use new.
13000 * dbxread.c (start_psymtab): Use new.
13001 * ctfread.c (create_partial_symtab): Use new.
13002
32caafd0
TT
130032020-01-26 Tom Tromey <tom@tromey.com>
13004
13005 * xcoffread.c (xcoff_end_psymtab): Use new.
13006 * psymtab.c (start_psymtab_common): Use new.
13007 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13008 Update.
13009 * psympriv.h (struct partial_symtab): Add parameters to
13010 constructor. Don't inline.
13011 (allocate_psymtab): Don't declare.
13012 * mdebugread.c (new_psymtab): Use new.
13013 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13014 * dbxread.c (dbx_end_psymtab): Use new.
13015
abaa2f23
TT
130162020-01-26 Tom Tromey <tom@tromey.com>
13017
13018 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13019 allocate_psymtab. Update documentation.
13020 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13021 allocate_psymtab. Do not use new.
13022 (allocate_psymtab): Use new. Update.
13023
6d94535f
TT
130242020-01-26 Tom Tromey <tom@tromey.com>
13025
13026 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13027 * psymtab.c (psym_print_stats): Update.
13028 * psympriv.h (struct partial_symtab) <readin,
13029 psymtabs_addrmap_supported, anonymous>: Now bool.
13030 * mdebugread.c (psymtab_to_symtab_1): Update.
13031 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13032 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13033 (process_full_comp_unit, process_full_type_unit): Update.
13034 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13035 * ctfread.c (psymtab_to_symtab): Update.
13036
6f17252b
TT
130372020-01-26 Tom Tromey <tom@tromey.com>
13038
13039 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13040 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13041 * psymtab.c (psymtab_storage): Delete psymtabs.
13042 (psymtab_storage::allocate_psymtab): Use new.
13043 (psymtab_storage::discard_psymtab): Use delete.
13044 * psympriv.h (struct partial_symtab): Add constructor and
13045 initializers.
13046
f6f1cebc
TT
130472020-01-26 Tom Tromey <tom@tromey.com>
13048
13049 * machoread.c: Do not include psympriv.h.
13050
e47e48f6
PW
130512020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13052
13053 * NEWS: Mention the new option and the set/show commands.
13054
a2fedca9
PW
130552020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13056
13057 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13058 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13059 (validate_exec_file): New variables, enums, functions.
13060 (exec_file_locate_attach, print_section_info): Style the filenames.
13061 (_initialize_exec): Install show_exec_file_mismatch_command and
13062 set_exec_file_mismatch_command.
13063 * gdbcore.h (validate_exec_file): Declare.
13064 * infcmd.c (attach_command): Call validate_exec_file.
13065 * remote.c ( remote_target::remote_add_inferior): Likewise.
13066
7ffa82e1
AB
130672020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13068
13069 * frame.c (find_frame_sal): Move call to get_next_frame into more
13070 inner scope.
13071 * inline-frame.c (inilne_state) <inline_state>: Update argument
13072 types.
13073 (inilne_state) <skipped_symbol>: Rename to...
13074 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13075 (skip_inline_frames): Build vector of skipped symbols and use this
13076 to reate the inline_state.
13077 (inline_skipped_symbol): Add a comment and some assertions, fetch
13078 skipped symbol from the list.
13079
3d92a3e3
AB
130802020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13081
13082 * buildsym.c (lte_is_less_than): Delete.
13083 (buildsym_compunit::end_symtab_with_blockvector): Create local
13084 lambda function to sort line table entries, and use
13085 std::stable_sort instead of std::sort.
13086 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13087 markers when looking for a previous line.
13088
94a72be7
AB
130892020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13090
13091 * dwarf2read.c (lnp_state_machine::record_line): Include
13092 end_sequence parameter in debug print out. Record the line if we
13093 are at an end_sequence marker even if it's not the start of a
13094 statement.
13095 * symmisc.c (maintenance_print_one_line_table): Print end of
13096 sequence markers with 'END' not '0'.
13097
53af73bf
PA
130982020-01-24 Pedro Alves <palves@redhat.com>
13099
13100 PR gdb/25410
13101 * thread.c (scoped_restore_current_thread::restore): Use
13102 switch_to_inferior_no_thread.
13103 * exec.c: Include "progspace-and-thread.h".
13104 (add_target_sections, remove_target_sections):
13105 scoped_restore_current_pspace_and_thread instead of
13106 scoped_restore_current_thread.
13107 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13108 and aspace to the inferior before calling clone_program_space.
13109 Remove stale comment.
13110
3050c6f4
CB
131112020-01-24 Christian Biesinger <cbiesinger@google.com>
13112
13113 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13114 (arm_netbsd_nat_target::fetch_registers): ...this.
13115 (arm_nbsd_nat_target::store_registers): Rename to...
13116 (arm_netbsd_nat_target::store_registers): ...this.
13117
73685c7e
CB
131182020-01-24 Christian Biesinger <cbiesinger@google.com>
13119
13120 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13121 register_t.
13122
89203d40
CB
131232020-01-24 Christian Biesinger <cbiesinger@google.com>
13124
13125 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13126 Update comment.
13127 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13128 Likewise.
13129 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13130 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13131 the correct replacement (iterate_over_regset_sections).
13132 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13133 Update comment.
13134
1ba1ac88
AB
131352020-01-24 Graham Markall <graham.markall@embecosm.com>
13136
13137 PR gdb/23718
13138 * gdb/python/python.c (execute_gdb_command): Call
13139 async_enable_stdin in catch block.
13140
f3364a6d
AB
131412020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13142
13143 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13144 SWITCH_THRU_ALL_UIS.
13145
733d0a67
AB
131462020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13147
13148 PR tui/9765
13149 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13150 comment, add extra parameter, and update to store previous symbol
13151 when appropriate.
13152 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13153 add extra parameter.
13154 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13155 remove unneeded parameter, add try/catch around gdb_print_insn,
13156 rewrite to add items to asm_lines vector.
13157 (tui_find_backward_disassembly_start_address): New function.
13158 (tui_find_disassembly_address): Updated throughout.
13159 (tui_disasm_window::set_contents): Update for changes to
13160 tui_disassemble.
13161 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13162 number of lines to scroll.
13163
b3b3bada
SM
131642020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13165
13166 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13167 (SECT_OFF_DATA): Likewise.
13168 (SECT_OFF_RODATA): Likewise.
13169 (SECT_OFF_TEXT): Likewise.
13170 (SECT_OFF_BSS): Likewise.
13171 (struct objfile) <text_section_offset, data_section_offset>: New
13172 methods.
13173 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13174 objfile::text_section_offset.
13175 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13176 * coffread.c (coff_symtab_read): Likewise.
13177 (enter_linenos): Likewise.
13178 (process_coff_symbol): Likewise.
13179 * ctfread.c (get_objfile_text_range): Likewise.
13180 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13181 Use objfile::data_section_offset.
13182 * dwarf2-frame.c (execute_cfa_program): Use
13183 objfile::text_section_offset.
13184 (dwarf2_frame_find_fde): Likewise.
13185 * dwarf2read.c (create_addrmap_from_index): Likewise.
13186 (create_addrmap_from_aranges): Likewise.
13187 (dw2_find_pc_sect_compunit_symtab): Likewise.
13188 (process_psymtab_comp_unit_reader): Likewise.
13189 (add_partial_symbol): Likewise.
13190 (add_partial_subprogram): Likewise.
13191 (process_full_comp_unit): Likewise.
13192 (read_file_scope): Likewise.
13193 (read_func_scope): Likewise.
13194 (read_lexical_block_scope): Likewise.
13195 (read_call_site_scope): Likewise.
13196 (dwarf2_rnglists_process): Likewise.
13197 (dwarf2_ranges_process): Likewise.
13198 (dwarf2_ranges_read): Likewise.
13199 (dwarf_decode_lines_1): Likewise.
13200 (new_symbol): Likewise.
13201 (dwarf2_fetch_die_loc_sect_off): Likewise.
13202 (dwarf2_per_cu_text_offset): Likewise.
13203 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13204 * hppa-tdep.c (read_unwind_info): Likewise.
13205 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13206 * psympriv.h (struct partial_symtab): Likewise.
13207 * psymtab.c (find_pc_sect_psymtab): Likewise.
13208 * solib-svr4.c (enable_break): Likewise.
13209 * stap-probe.c (relocate_address): Use
13210 objfile::data_section_offset.
13211 * xcoffread.c (enter_line_range): Use
13212 objfile::text_section_offset.
13213 (read_xcoff_symtab): Likewise.
13214
ab53f382
SM
132152020-01-23 Simon Marchi <simon.marchi@efficios.com>
13216
13217 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13218 declaration to narrower scopes.
13219
e7eee665
SM
132202020-01-23 Simon Marchi <simon.marchi@efficios.com>
13221
13222 * darwin-nat.h (struct darwin_exception_msg, enum
13223 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13224 Move up.
13225 (class darwin_nat_target) <wait_1, check_new_threads,
13226 decode_exception_message, decode_message, stop_inferior,
13227 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13228 * darwin-nat.c (darwin_check_new_threads): Rename to...
13229 (darwin_nat_target::check_new_threads): ... this.
13230 (darwin_suspend_inferior_it): Remove.
13231 (darwin_decode_exception_message): Rename to...
13232 (darwin_nat_target::decode_exception_message): ... this.
13233 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13234 (darwin_decode_message): Rename to...
13235 (darwin_nat_target::decode_message): ... this.
13236 (cancel_breakpoint): Rename to...
13237 (darwin_nat_target::cancel_breakpoint): ... this.
13238 (darwin_wait): Rename to...
13239 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13240 instead of iterate_over_inferiors.
13241 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13242 (darwin_stop_inferior): Rename to...
13243 (darwin_nat_target::stop_inferior): ... this.
13244 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13245 (darwin_init_thread_list): Rename to...
13246 (darwin_nat_target::init_thread_list): ... this.
13247 (darwin_ptrace_him): Rename to...
13248 (darwin_nat_target::ptrace_him): ... this.
13249 (darwin_nat_target::create_inferior): Pass lambda function to
13250 fork_inferior.
13251 (darwin_nat_target::detach): Call stop_inferior instead of
13252 darwin_stop_inferior.
13253 * fork-inferior.h (fork_inferior): Change init_trace_fun
13254 parameter to gdb::function_view.
13255 * fork-inferior.c (fork_inferior): Likewise.
13256
c162ed3e
HD
132572020-01-23 Hannes Domani <ssbssa@yahoo.de>
13258
13259 * i386-cygwin-tdep.c (core_process_module_section): Update.
13260 * windows-nat.c (struct lm_info_windows): Add text_offset.
13261 (windows_xfer_shared_libraries): Update.
13262 * windows-tdep.c (windows_xfer_shared_library):
13263 Add text_offset_cached argument.
13264 * windows-tdep.h (windows_xfer_shared_library): Update.
13265
a1237872
SM
132662020-01-21 Simon Marchi <simon.marchi@efficios.com>
13267
13268 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13269
b3ee6dd9
SM
132702020-01-21 Simon Marchi <simon.marchi@efficios.com>
13271
13272 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13273 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13274 replace with range-based for.
13275 (gdbsim_interrupt_inferior): Remove.
13276 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13277 with a range-based for. Inline code from
13278 gdbsim_interrupt_inferior.
13279
f9fac3c8
SM
132802020-01-21 Simon Marchi <simon.marchi@efficios.com>
13281
13282 * infrun.c (proceed): Fix indentation.
13283
f6474de9
TT
132842020-01-21 Tom Tromey <tromey@adacore.com>
13285
13286 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13287 * python/python.c (python_extension_ops): Update.
13288 (gdbpy_colorize): New function.
13289 * python/lib/gdb/__init__.py (colorize): New function.
13290 * extension.h (ext_lang_colorize): Declare.
13291 * extension.c (ext_lang_colorize): New function.
13292 * extension-priv.h (struct extension_language_ops) <colorize>: New
13293 member.
13294 * cli/cli-style.c (_initialize_cli_style): Update help text.
13295
f0c702d4
LM
132962020-01-21 Luis Machado <luis.machado@linaro.org>
13297
13298 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13299 <cond>: Change type to bool.
13300 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13301 (aarch64_displaced_step_cb): Likewise.
13302 (aarch64_displaced_step_tb): Likewise.
13303
1ab139e5
LM
133042020-01-21 Luis Machado <luis.machado@linaro.org>
13305
13306 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13307 output.
13308
0c271889
LM
133092020-01-21 Luis Machado <luis.machado@linaro.org>
13310
13311 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13312 <pc_adjust>: Adjust the documentation.
13313 (aarch64_displaced_step_fixup): Check if PC really moved before
13314 adjusting it.
13315
4d89c1c7
TT
133162020-01-19 Tom Tromey <tom@tromey.com>
13317
13318 * disasm.c (~gdb_disassembler): New destructor.
13319 (gdb_buffered_insn_length): Call disassemble_free_target.
13320 * disasm.h (class gdb_disassembler): Declare destructor. Use
13321 DISABLE_COPY_AND_ASSIGN.
13322
c0ab21c2
TT
133232020-01-19 Tom Tromey <tom@tromey.com>
13324
13325 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13326 (die_reader_func_ftype): Remove.
13327 (cutu_reader): New class.
13328 (dw2_get_file_names_reader): Remove "data" parameter.
13329 (dw2_get_file_names): Use cutu_reader.
13330 (create_debug_type_hash_table): Update.
13331 (read_cutu_die_from_dwo): Update comment.
13332 (lookup_dwo_unit): Add dwo_name parameter.
13333 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13334 die_reader_func_ftype and data parameters.
13335 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13336 Remove die_reader_func_ftype and data parameters.
13337 (~cutu_reader): New; from init_cutu_and_read_dies.
13338 (cutu_reader::cutu_reader): Rename from
13339 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13340 and data parameters.
13341 (init_cutu_and_read_dies_simple): Remove.
13342 (struct process_psymtab_comp_unit_data): Remove.
13343 (process_psymtab_comp_unit_reader): Remove data parameter; add
13344 want_partial_unit and pretend_language parameters.
13345 (process_psymtab_comp_unit): Use cutu_reader.
13346 (build_type_psymtabs_reader): Remove data parameter.
13347 (build_type_psymtabs_1): Use cutu_reader.
13348 (process_skeletonless_type_unit): Likewise.
13349 (load_partial_comp_unit_reader): Remove.
13350 (load_partial_comp_unit): Use cutu_reader.
13351 (load_full_comp_unit_reader): Remove.
13352 (load_full_comp_unit): Use cutu_reader.
13353 (struct create_dwo_cu_data): Remove.
13354 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13355 dwo_unit parameters.
13356 (create_cus_hash_table): Use cutu_reader.
13357 (struct dwarf2_read_addr_index_data): Remove.
13358 (dwarf2_read_addr_index_reader): Remove.
13359 (dwarf2_read_addr_index): Use cutu_reader.
13360 (read_signatured_type_reader): Remove.
13361 (read_signatured_type): Use cutu_reader.
13362
45bbae5c
TT
133632020-01-19 Tom Tromey <tom@tromey.com>
13364
13365 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13366 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13367 (tui_wrefresh): Declare.
13368 * tui/tui-wingeneral.c (suppress_output): New global.
13369 (tui_suppress_output, ~tui_suppress_output): New constructor and
13370 destructor.
13371 (tui_wrefresh): New function.
13372 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13373 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13374 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13375 method.
13376 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13377 tui_wrefresh.
13378 (tui_data_window::no_refresh): New method.
13379 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13380 (tui_reg_command): Use tui_suppress_output
13381 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13382 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13383 method.
13384 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13385
4f13c1c0
TT
133862020-01-19 Tom Tromey <tom@tromey.com>
13387
13388 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13389 Handle case where symtab is null.
13390
fa47e446
SM
133912020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13392
13393 * linux-fork.c (one_fork_p): Simplify.
13394
26f42329
SM
133952020-01-17 Simon Marchi <simon.marchi@efficios.com>
13396
13397 * top.c (struct qt_args): Remove.
13398 (kill_or_detach): Change return type to void, replace `void *`
13399 parameter with a proper one.
13400 (print_inferior_quit_action): Likewise.
13401 (quit_confirm): Use range-based for loop to iterate over inferiors.
13402 (quit_force): Likewise.
13403
a9ac81b1
SM
134042020-01-17 Simon Marchi <simon.marchi@efficios.com>
13405
13406 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13407 `void *` parameter with proper parameters.
13408 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13409 (print_one_inferior): Change return type to void, replace `void *`
13410 parameter with proper parameters.
13411 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13412 inferiors.
13413 (get_other_inferior): Remove.
13414 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13415 inferiors.
13416
788eca49
SM
134172020-01-17 Simon Marchi <simon.marchi@efficios.com>
13418
13419 * mi/mi-interp.c (report_initial_inferior): Remove.
13420 (mi_interp::init): Use range-based for to iterate over inferiors.
13421
d9bc85b6
SM
134222020-01-17 Simon Marchi <simon.marchi@efficios.com>
13423
13424 * python/py-inferior.c (build_inferior_list): Remove.
13425 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13426
40c94099
CB
134272020-01-16 Christian Biesinger <cbiesinger@google.com>
13428
13429 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13430 (btrace_stitch_trace): Likewise.
13431 * charset.c (intermediate_encoding): Likewise (vaild).
13432 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13433 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13434 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13435
e0cdfe3c
HD
134362020-01-16 Hannes Domani <ssbssa@yahoo.de>
13437
13438 * windows-tdep.c (windows_get_tlb_type):
13439 Add rtl_user_process_parameters type.
13440
790f1718 134412020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13442 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13443
13444 PR build/24805
13445 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13446 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13447 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13448 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13449 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13450 (ps_plog): Redeclare exported functions with default visibility.
13451
3112ed97
NA
134522020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13453
13454 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13455 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13456
8dc3273e
SM
134572020-01-15 Simon Marchi <simon.marchi@efficios.com>
13458
13459 * infcmd.c (post_create_inferior): Use get_thread_regcache
13460 instead of get_current_regcache.
13461
ff47f4f0
TT
134622020-01-14 Tom Tromey <tom@tromey.com>
13463
13464 PR symtab/12535:
13465 * python/python.c (gdbpy_decode_line): Treat empty string the same
13466 as no argument.
13467
975f45b7
TT
134682020-01-14 Tom Tromey <tom@tromey.com>
13469
13470 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13471
25e57356
TT
134722020-01-14 Tom Tromey <tom@tromey.com>
13473
13474 * nat/linux-btrace.c: Don't include <config.h>.
13475 * nat/linux-ptrace.c: Don't include <config.h>.
13476 * nat/x86-linux-dregs.c: Don't include <config.h>.
13477
05ea2a05
TT
134782020-01-14 Tom Tromey <tom@tromey.com>
13479
13480 * configure: Rebuild.
13481 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13482
01027315
TT
134832020-01-14 Tom Tromey <tom@tromey.com>
13484
13485 * nat/x86-linux-dregs.c: Include configh.h.
13486 * nat/linux-ptrace.c: Include configh.h.
13487 * nat/linux-btrace.c: Include configh.h.
13488 * defs.h: Include config.h, bfd.h.
13489 * configure.ac: Don't source common.host.
13490 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13491 * configure: Rebuild.
13492 * acinclude.m4: Update path.
13493 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13494 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13495 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13496 (CLIBS): Add LIBSUPPORT.
13497 (CDEPS): Likewise.
13498 (COMMON_SFILES): Remove gdbsupport files.
13499 (HFILES_NO_SRCDIR): Likewise.
13500 (stamp-version): Update path to create-version.sh.
13501 (ALLDEPFILES): Remove gdbsupport files.
13502
b2ceabe8
TT
135032020-01-14 Tom Tromey <tom@tromey.com>
13504
13505 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13506 USE_WIN32API when needed.
13507 * configure.ac (USE_WIN32API): Don't define.
13508 (WIN32LIBS): Use WIN32APILIBS.
13509 * configure: Rebuild.
13510
25c51f71
TT
135112020-01-14 Tom Tromey <tom@tromey.com>
13512
13513 * configure: Rebuild.
13514 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13515
717c684d
BE
135162020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13517
13518 * skip.c (skip_function_command): Make skip w/o arguments use the
13519 name of the inlined function if pc is inside any inlined function.
13520
7da6a5b9
LM
135212020-01-14 Luis Machado <luis.machado@linaro.org>
13522
13523 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13524 * infrun.c (resume_1): Likewise.
13525 (handle_inferior_event): Remove stale comment.
13526 * linux-nat.c (linux_nat_target::resume): Update comments.
13527 (save_stop_reason): Likewise.
13528 (linux_nat_filter_event): Likewise.
13529 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13530
44e4c775
AB
135312020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13532
13533 * elfread.c (record_minimal_symbol): Set section index to 0 for
13534 non-allocatable sections.
13535
18a8505e
AT
13536
135372020-01-13 Ali Tamur <tamur@google.com>
13538
13539 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13540 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13541 to gdb::optional. Update comments.
13542 (dwo_file): Update comments.
13543 (read_attribute): Update API to take an additional out parameter,
13544 need_reprocess. This is used to mark attributes that need other
13545 attributes (e.g. str_offsets_base) for correct computation which may not
13546 have been read yet.
13547 (read_attribute_reprocess): New function declaration.
13548 (read_addr_index): Likewise.
13549 (read_dwo_str_index): Likewise.
13550 (read_stub_str_index): Likewise.
13551 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13552 (lookup_addr_base): New function definition.
13553 (lookup_ranges_base): Likewise.
13554 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13555 lookup_ranges_base.
13556 (init_cutu_and_read_dies): Update comments.
13557 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13558 unit. This is used to inherit parent's str_offsets_base and addr_base.
13559 Update comments.
13560 (init_cutu_and_read_dies_simple): Reflect API changes.
13561 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13562 (create_cus_hash_table): Change API to take parent compile unit.
13563 Reflect API changes.
13564 (open_and_init_dwo_file): Reflect API changes.
13565 (dwarf2_get_pc_bounds): Update comments.
13566 (dwarf2_record_block_ranges): Likewise.
13567 (read_full_die_1): Change implementation to reprocess attributes that
13568 need str_offsets_base and addr_base.
13569 (partial_die_info::read): Likewise.
13570 (read_attribute_reprocess): New function definition.
13571 (read_attribute_value): Change API to take an additional out parameter,
13572 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13573 when a non-dwo compile unit has index based attributes.
13574 (read_attribute): Reflect API changes.
13575 (read_addr_index_1): Reflect API changes. Update comments.
13576 (dwarf2_read_addr_index_data): Reflect API changes.
13577 (dwarf2_read_addr_index): Likewise.
13578 (read_str_index): Change API and implementation. This becomes a helper
13579 to be used by the new string index related methods. Update error
13580 message and comments.
13581 (read_dwo_str_index): New function definition.
13582 (read_stub_str_index): Likewise.
13583 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13584 * symfile.h (dwarf2_debug_sections): Likewise.
13585 * xcoffread.c (dwarf2_debug_sections): Likewise.
13586
0cac9354
SM
135872020-01-13 Simon Marchi <simon.marchi@efficios.com>
13588
13589 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13590 core_reg_sect type to gdb_byte *.
13591 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13592 * cris-tdep.c (fetch_core_registers): Likewise.
13593 * corelow.c (core_target::get_core_register_section): Change
13594 type of `contents` to gdb::byte_vector.
13595
9a6d629c
AB
135962020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13597
13598 * tui/tui-wingeneral.c (box_win): Position the title in the center
13599 of the border.
13600
d8b2f9e3
SM
136012020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13602
13603 * corelow.c (core_target::get_core_register_section): Use
13604 std::vector instead of alloca.
13605
bb564c58
SM
136062020-01-13 Simon Marchi <simon.marchi@efficios.com>
13607
13608 * warning.m4: Add -Wmissing-declarations to build_warnings.
13609 * configure: Re-generate.
13610
6b366111
SM
136112020-01-13 Simon Marchi <simon.marchi@efficios.com>
13612
13613 * python/python.c (init__gdb_module): Add declaration.
13614
6c265988
SM
136152020-01-13 Simon Marchi <simon.marchi@efficios.com>
13616
13617 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13618 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13619 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13620 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13621 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13622 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13623 * ada-exp.y (_initialize_ada_exp): Add declaration.
13624 * ada-lang.c (_initialize_ada_language): Add declaration.
13625 * ada-tasks.c (_initialize_tasks): Add declaration.
13626 * agent.c (_initialize_agent): Add declaration.
13627 * aix-thread.c (_initialize_aix_thread): Add declaration.
13628 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13629 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13630 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13631 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13632 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13633 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13634 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13635 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13636 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13637 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13638 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13639 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13640 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13641 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13642 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13643 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13644 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13645 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13646 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13647 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13648 * annotate.c (_initialize_annotate): Add declaration.
13649 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13650 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13651 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13652 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13653 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13654 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13655 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13656 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13657 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13658 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13659 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13660 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13661 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13662 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13663 * auto-load.c (_initialize_auto_load): Add declaration.
13664 * auxv.c (_initialize_auxv): Add declaration.
13665 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13666 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13667 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13668 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13669 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13670 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13671 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13672 * breakpoint.c (_initialize_breakpoint): Add declaration.
13673 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13674 * btrace.c (_initialize_btrace): Add declaration.
13675 * charset.c (_initialize_charset): Add declaration.
13676 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13677 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13678 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13679 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13680 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13681 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13682 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13683 * coffread.c (_initialize_coffread): Add declaration.
13684 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13685 * compile/compile.c (_initialize_compile): Add declaration.
13686 * complaints.c (_initialize_complaints): Add declaration.
13687 * completer.c (_initialize_completer): Add declaration.
13688 * copying.c (_initialize_copying): Add declaration.
13689 * corefile.c (_initialize_core): Add declaration.
13690 * corelow.c (_initialize_corelow): Add declaration.
13691 * cp-abi.c (_initialize_cp_abi): Add declaration.
13692 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13693 * cp-support.c (_initialize_cp_support): Add declaration.
13694 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13695 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13696 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13697 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13698 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13699 * ctfread.c (_initialize_ctfread): Add declaration.
13700 * d-lang.c (_initialize_d_language): Add declaration.
13701 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13702 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13703 * dbxread.c (_initialize_dbxread): Add declaration.
13704 * dcache.c (_initialize_dcache): Add declaration.
13705 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13706 * disasm.c (_initialize_disasm): Add declaration.
13707 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13708 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13709 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13710 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13711 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13712 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13713 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13714 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13715 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13716 * elfread.c (_initialize_elfread): Add declaration.
13717 * exec.c (_initialize_exec): Add declaration.
13718 * extension.c (_initialize_extension): Add declaration.
13719 * f-lang.c (_initialize_f_language): Add declaration.
13720 * f-valprint.c (_initialize_f_valprint): Add declaration.
13721 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13722 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13723 * filesystem.c (_initialize_filesystem): Add declaration.
13724 * findcmd.c (_initialize_mem_search): Add declaration.
13725 * findvar.c (_initialize_findvar): Add declaration.
13726 * fork-child.c (_initialize_fork_child): Add declaration.
13727 * frame-base.c (_initialize_frame_base): Add declaration.
13728 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13729 * frame.c (_initialize_frame): Add declaration.
13730 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13731 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13732 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13733 * gcore.c (_initialize_gcore): Add declaration.
13734 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13735 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13736 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13737 * gdbarch.c (_initialize_gdbarch): Add declaration.
13738 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13739 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13740 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13741 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13742 * go-lang.c (_initialize_go_language): Add declaration.
13743 * go32-nat.c (_initialize_go32_nat): Add declaration.
13744 * guile/guile.c (_initialize_guile): Add declaration.
13745 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13746 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13747 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13748 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13749 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13750 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13751 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13752 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13753 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13754 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13755 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13756 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13757 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13758 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13759 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13760 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13761 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13762 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13763 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13764 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13765 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13766 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13767 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13768 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13769 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13770 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13771 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13772 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13773 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13774 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13775 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13776 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13777 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13778 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13779 * infcall.c (_initialize_infcall): Add declaration.
13780 * infcmd.c (_initialize_infcmd): Add declaration.
13781 * inflow.c (_initialize_inflow): Add declaration.
13782 * infrun.c (_initialize_infrun): Add declaration.
13783 * interps.c (_initialize_interpreter): Add declaration.
13784 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13785 * jit.c (_initialize_jit): Add declaration.
13786 * language.c (_initialize_language): Add declaration.
13787 * linux-fork.c (_initialize_linux_fork): Add declaration.
13788 * linux-nat.c (_initialize_linux_nat): Add declaration.
13789 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13790 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13791 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13792 * m2-lang.c (_initialize_m2_language): Add declaration.
13793 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13794 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13795 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13796 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13797 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13798 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13799 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13800 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13801 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13802 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13803 * machoread.c (_initialize_machoread): Add declaration.
13804 * macrocmd.c (_initialize_macrocmd): Add declaration.
13805 * macroscope.c (_initialize_macroscope): Add declaration.
13806 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13807 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13808 * maint.c (_initialize_maint_cmds): Add declaration.
13809 * mdebugread.c (_initialize_mdebugread): Add declaration.
13810 * memattr.c (_initialize_mem): Add declaration.
13811 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13812 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13813 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13814 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13815 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13816 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13817 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13818 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13819 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13820 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13821 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13822 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13823 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13824 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13825 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13826 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13827 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13828 * mipsread.c (_initialize_mipsread): Add declaration.
13829 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13830 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13831 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13832 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13833 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13834 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13835 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13836 * nto-procfs.c (_initialize_procfs): Add declaration.
13837 * objc-lang.c (_initialize_objc_language): Add declaration.
13838 * observable.c (_initialize_observer): Add declaration.
13839 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13840 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13841 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13842 * osabi.c (_initialize_gdb_osabi): Add declaration.
13843 * osdata.c (_initialize_osdata): Add declaration.
13844 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13845 * parse.c (_initialize_parse): Add declaration.
13846 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13847 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13848 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13849 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13850 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13851 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13852 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13853 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13854 * printcmd.c (_initialize_printcmd): Add declaration.
13855 * probe.c (_initialize_probe): Add declaration.
13856 * proc-api.c (_initialize_proc_api): Add declaration.
13857 * proc-events.c (_initialize_proc_events): Add declaration.
13858 * proc-service.c (_initialize_proc_service): Add declaration.
13859 * procfs.c (_initialize_procfs): Add declaration.
13860 * producer.c (_initialize_producer): Add declaration.
13861 * psymtab.c (_initialize_psymtab): Add declaration.
13862 * python/python.c (_initialize_python): Add declaration.
13863 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13864 * record-btrace.c (_initialize_record_btrace): Add declaration.
13865 * record-full.c (_initialize_record_full): Add declaration.
13866 * record.c (_initialize_record): Add declaration.
13867 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13868 * regcache.c (_initialize_regcache): Add declaration.
13869 * reggroups.c (_initialize_reggroup): Add declaration.
13870 * remote-notif.c (_initialize_notif): Add declaration.
13871 * remote-sim.c (_initialize_remote_sim): Add declaration.
13872 * remote.c (_initialize_remote): Add declaration.
13873 * reverse.c (_initialize_reverse): Add declaration.
13874 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13875 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13876 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13877 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13878 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13879 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13880 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13881 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13882 Add declaration.
13883 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13884 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13885 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13886 * rust-exp.y (_initialize_rust_exp): Add declaration.
13887 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13888 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13889 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13890 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13891 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13892 * score-tdep.c (_initialize_score_tdep): Add declaration.
13893 * ser-go32.c (_initialize_ser_dos): Add declaration.
13894 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13895 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13896 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13897 * ser-uds.c (_initialize_ser_socket): Add declaration.
13898 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13899 * serial.c (_initialize_serial): Add declaration.
13900 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13901 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13902 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13903 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13904 * skip.c (_initialize_step_skip): Add declaration.
13905 * sol-thread.c (_initialize_sol_thread): Add declaration.
13906 * solib-aix.c (_initialize_solib_aix): Add declaration.
13907 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13908 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13909 * solib-frv.c (_initialize_frv_solib): Add declaration.
13910 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13911 * solib-target.c (_initialize_solib_target): Add declaration.
13912 * solib.c (_initialize_solib): Add declaration.
13913 * source-cache.c (_initialize_source_cache): Add declaration.
13914 * source.c (_initialize_source): Add declaration.
13915 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13916 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13917 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13918 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13919 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13920 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13921 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13922 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13923 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13924 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13925 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13926 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13927 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13928 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13929 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13930 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13931 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13932 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13933 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13934 * stabsread.c (_initialize_stabsread): Add declaration.
13935 * stack.c (_initialize_stack): Add declaration.
13936 * stap-probe.c (_initialize_stap_probe): Add declaration.
13937 * std-regs.c (_initialize_frame_reg): Add declaration.
13938 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13939 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13940 * symfile.c (_initialize_symfile): Add declaration.
13941 * symmisc.c (_initialize_symmisc): Add declaration.
13942 * symtab.c (_initialize_symtab): Add declaration.
13943 * target.c (_initialize_target): Add declaration.
13944 * target-connection.c (_initialize_target_connection): Add
13945 declaration.
13946 * target-dcache.c (_initialize_target_dcache): Add declaration.
13947 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13948 * thread.c (_initialize_thread): Add declaration.
13949 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13950 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13951 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13952 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13953 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13954 * tracectf.c (_initialize_ctf): Add declaration.
13955 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13956 * tracefile.c (_initialize_tracefile): Add declaration.
13957 * tracepoint.c (_initialize_tracepoint): Add declaration.
13958 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13959 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13960 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13961 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13962 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13963 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13964 * tui/tui.c (_initialize_tui): Add declaration.
13965 * typeprint.c (_initialize_typeprint): Add declaration.
13966 * ui-style.c (_initialize_ui_style): Add declaration.
13967 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13968 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13969 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13970 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13971 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13972 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13973 * unittests/filtered_iterator-selftests.c
13974 (_initialize_filtered_iterator_selftests): Add declaration.
13975 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13976 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13977 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13978 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13979 * unittests/main-thread-selftests.c
13980 (_initialize_main_thread_selftests): Add declaration.
13981 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13982 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13983 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13984 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13985 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13986 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13987 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13988 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13989 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13990 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13991 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13992 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13993 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13994 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13995 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13996 declaration.
13997 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13998 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13999 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14000 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14001 * user-regs.c (_initialize_user_regs): Add declaration.
14002 * utils.c (_initialize_utils): Add declaration.
14003 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14004 * valops.c (_initialize_valops): Add declaration.
14005 * valprint.c (_initialize_valprint): Add declaration.
14006 * value.c (_initialize_values): Add declaration.
14007 * varobj.c (_initialize_varobj): Add declaration.
14008 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14009 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14010 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14011 * windows-nat.c (_initialize_windows_nat): Add declaration.
14012 (_initialize_check_for_gdb_ini): Add declaration.
14013 (_initialize_loadable): Add declaration.
14014 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14015 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14016 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14017 * xcoffread.c (_initialize_xcoffread): Add declaration.
14018 * xml-support.c (_initialize_xml_support): Add declaration.
14019 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14020 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14021 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14022 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14023
e2de1eec
SM
140242020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14025
14026 * regformats/regdat.sh: Generate declaration for init function.
14027
e0037b4c
SM
140282020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14029
14030 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14031 up.
14032 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14033 close_one_inferior>: New methods.
14034 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14035 pass down target to find_inferior_pid.
14036 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14037 Pass down target to find_inferior_ptid.
14038 (gdbsim_target::create_inferior): Pass down target to
14039 add_thread_silent.
14040 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14041 target down to find_inferior_ptid and switch_to_thread.
14042 (gdbsim_target::close): Update to call close_one_inferior.
14043 (struct resume_data): Remove.
14044 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14045 directly, rather than through a void pointer.
14046 (gdbsim_target::resume): Update to call resume_one_inferior.
14047
58920b5b
SM
140482020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14049
14050 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14051
4ec89149
PA
140522020-01-12 Pedro Alves <palves@redhat.com>
14053
14054 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14055 directly for the current inferior instead of
14056 discard_all_inferiors.
14057 (discard_all_inferiors): Delete.
14058
7c392d1d
TT
140592020-01-11 Tom Tromey <tom@tromey.com>
14060
14061 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14062 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14063 deprecated_safe_get_selected_frame.
14064
d9ebdab7
TBA
140652020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14066
14067 * inferior.c (print_inferior): Switch inferior before printing it.
14068
f3c469b9
PA
140692020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14070 Pedro Alves <palves@redhat.com>
14071
14072 * progspace-and-thread.c (switch_to_program_space_and_thread):
14073 Assert there's an inferior for PSPACE. Use
14074 switch_to_inferior_no_thread to switch the inferior too.
14075 * progspace.c (program_space::~program_space): Call
14076 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14077 (program_space::free_all_objfiles): Don't call clear_symtab_users
14078 here.
14079 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14080
65c574f6
PA
140812020-01-10 Pedro Alves <palves@redhat.com>
14082
14083 * NEWS: Mention multi-target debugging, "info connections", and
14084 "add-inferior -no-connection".
14085
2f4fcf00
PA
140862020-01-10 Pedro Alves <palves@redhat.com>
14087
14088 * infrun.c: Include "target-connection.h".
14089 (check_multi_target_resumption): New.
14090 (proceed): Call it.
14091 * target-connection.c (make_target_connection_string): Make
14092 extern.
14093 * target-connection.h (make_target_connection_string): Declare.
14094
121b3efd
PA
140952020-01-10 Pedro Alves <palves@redhat.com>
14096
14097 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14098 * inferior.c (uiout_field_connection): New function.
14099 (print_inferior): Add new "connection-id" column.
14100 (add_inferior_command): Show connection number/string of added
14101 inferior.
14102 * process-stratum-target.h
14103 (process_stratum_target::connection_string): New virtual method.
14104 (process_stratum_target::connection_number): New field.
14105 * remote.c (remote_target::connection_string): New override.
14106 * target-connection.c: New file.
14107 * target-connection.h: New file.
14108 * target.c (decref_target): Remove process_stratum targets from
14109 the connection list.
14110 (target_stack::push): Add process_stratum targets to the
14111 connection list.
14112
4f837581
PA
141132020-01-10 Pedro Alves <palves@redhat.com>
14114
14115 Revert:
14116 2016-04-12 Pedro Alves <palves@redhat.com>
14117 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14118 Remove references to name.
14119 * serial.h (struct serial) <name>: Delete.
14120
f4ec508e
PA
141212020-01-10 Pedro Alves <palves@redhat.com>
14122
14123 * gdbarch-selftests.c (register_to_value_test): Remove "target
14124 already pushed" check.
14125
5b6d1e4f
PA
141262020-01-10 Pedro Alves <palves@redhat.com>
14127 John Baldwin <jhb@FreeBSD.org>
14128
14129 * aarch64-linux-nat.c
14130 (aarch64_linux_nat_target::thread_architecture): Adjust.
14131 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14132 (task_command_1): Likewise.
14133 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14134 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14135 (aix_thread_target::store_registers)
14136 (aix_thread_target::thread_alive): Adjust.
14137 * amd64-fbsd-tdep.c: Include "inferior.h".
14138 (amd64fbsd_get_thread_local_address): Pass down target.
14139 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14140 thread's gdbarch instead of target_gdbarch.
14141 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14142 get_last_target_status.
14143 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14144 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14145 inferiors.
14146 (update_inserted_breakpoint_locations): Skip if inferiors with no
14147 execution.
14148 (update_global_location_list): When handling moribund locations,
14149 find representative inferior for location's pspace, and use thread
14150 count of its process_stratum target.
14151 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14152 * bsd-uthread.c (bsd_uthread_target::wait): Use
14153 as_process_stratum_target and adjust thread_change_ptid and
14154 add_thread calls.
14155 (bsd_uthread_target::update_thread_list): Use
14156 as_process_stratum_target and adjust find_thread_ptid,
14157 thread_change_ptid and add_thread calls.
14158 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14159 find_thread_ptid call.
14160 * corelow.c (add_to_thread_list): Adjust add_thread call.
14161 (core_target_open): Adjust add_thread_silent and thread_count
14162 calls.
14163 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14164 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14165 * event-top.c (async_disconnect): Pop targets from all inferiors.
14166 * exec.c (add_target_sections): Push exec target on all inferiors
14167 sharing the program space.
14168 (remove_target_sections): Remove the exec target from all
14169 inferiors sharing the program space.
14170 (exec_on_vfork): New.
14171 * exec.h (exec_on_vfork): Declare.
14172 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14173 Pass it down.
14174 (fbsd_nat_target::update_thread_list): Adjust.
14175 (fbsd_nat_target::resume): Adjust.
14176 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14177 down.
14178 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14179 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14180 get_thread_arch_regcache call.
14181 * fork-child.c (gdb_startup_inferior): Pass target down to
14182 startup_inferior and set_executing.
14183 * gdbthread.h (struct process_stratum_target): Forward declare.
14184 (add_thread, add_thread_silent, add_thread_with_info)
14185 (in_thread_list): Add process_stratum_target parameter.
14186 (find_thread_ptid(inferior*, ptid_t)): New overload.
14187 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14188 parameter.
14189 (all_threads()): Delete overload.
14190 (all_threads, all_non_exited_threads): Add process_stratum_target
14191 parameter.
14192 (all_threads_safe): Use brace initialization.
14193 (thread_count): Add process_stratum_target parameter.
14194 (set_resumed, set_running, set_stop_requested, set_executing)
14195 (threads_are_executing, finish_thread_state): Add
14196 process_stratum_target parameter.
14197 (switch_to_thread): Use is_current_thread.
14198 * i386-fbsd-tdep.c: Include "inferior.h".
14199 (i386fbsd_get_thread_local_address): Pass down target.
14200 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14201 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14202 have_inferiors check.
14203 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14204 (inf_ptrace_target::attach): Adjust.
14205 * infcall.c (run_inferior_call): Adjust.
14206 * infcmd.c (run_command_1): Pass target to
14207 scoped_finish_thread_state.
14208 (proceed_thread_callback): Skip inferiors with no execution.
14209 (continue_command): Rename 'all_threads' local to avoid hiding
14210 'all_threads' function. Adjust get_last_target_status call.
14211 (prepare_one_step): Adjust set_running call.
14212 (signal_command): Use user_visible_resume_target. Compare thread
14213 pointers instead of inferior_ptid.
14214 (info_program_command): Adjust to pass down target.
14215 (attach_command): Mark target's 'thread_executing' flag.
14216 (stop_current_target_threads_ns): New, factored out from ...
14217 (interrupt_target_1): ... this. Switch inferior before making
14218 target calls.
14219 * inferior-iter.h
14220 (struct all_inferiors_iterator, struct all_inferiors_range)
14221 (struct all_inferiors_safe_range)
14222 (struct all_non_exited_inferiors_range): Filter on
14223 process_stratum_target too. Remove explicit.
14224 * inferior.c (inferior::inferior): Push dummy target on target
14225 stack.
14226 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14227 Add process_stratum_target parameter, and pass it down.
14228 (have_live_inferiors): Adjust.
14229 (switch_to_inferior_and_push_target): New.
14230 (add_inferior_command, clone_inferior_command): Handle
14231 "-no-connection" parameter. Use
14232 switch_to_inferior_and_push_target.
14233 (_initialize_inferior): Mention "-no-connection" option in
14234 the help of "add-inferior" and "clone-inferior" commands.
14235 * inferior.h: Include "process-stratum-target.h".
14236 (interrupt_target_1): Use bool.
14237 (struct inferior) <push_target, unpush_target, target_is_pushed,
14238 find_target_beneath, top_target, process_target, target_at,
14239 m_stack>: New.
14240 (discard_all_inferiors): Delete.
14241 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14242 (all_inferiors, all_non_exited_inferiors): Add
14243 process_stratum_target parameter.
14244 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14245 (target_last_proc_target): New global.
14246 (follow_fork_inferior): Push target on new inferior. Pass target
14247 to add_thread_silent. Call exec_on_vfork. Handle target's
14248 reference count.
14249 (follow_fork): Adjust get_last_target_status call. Also consider
14250 target.
14251 (follow_exec): Push target on new inferior.
14252 (struct execution_control_state) <target>: New field.
14253 (user_visible_resume_target): New.
14254 (do_target_resume): Call target_async.
14255 (resume_1): Set target's threads_executing flag. Consider resume
14256 target.
14257 (commit_resume_all_targets): New.
14258 (proceed): Also consider resume target. Skip threads of inferiors
14259 with no execution. Commit resumtion in all targets.
14260 (start_remote): Pass current inferior to wait_for_inferior.
14261 (infrun_thread_stop_requested): Consider target as well. Pass
14262 thread_info pointer to clear_inline_frame_state instead of ptid.
14263 (infrun_thread_thread_exit): Consider target as well.
14264 (random_pending_event_thread): New inferior parameter. Use it.
14265 (do_target_wait): Rename to ...
14266 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14267 down.
14268 (threads_are_resumed_pending_p, do_target_wait): New.
14269 (prepare_for_detach): Adjust calls.
14270 (wait_for_inferior): New inferior parameter. Handle it. Use
14271 do_target_wait_1 instead of do_target_wait.
14272 (fetch_inferior_event): Adjust. Switch to representative
14273 inferior. Pass target down.
14274 (set_last_target_status): Add process_stratum_target parameter.
14275 Save target in global.
14276 (get_last_target_status): Add process_stratum_target parameter and
14277 handle it.
14278 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14279 (context_switch): Check inferior_ptid == null_ptid before calling
14280 inferior_thread().
14281 (get_inferior_stop_soon): Pass down target.
14282 (wait_one): Rename to ...
14283 (poll_one_curr_target): ... this.
14284 (struct wait_one_event): New.
14285 (wait_one): New.
14286 (stop_all_threads): Adjust.
14287 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14288 event's target.
14289 (switch_back_to_stepped_thread): Also consider target.
14290 (print_stop_event): Update.
14291 (normal_stop): Update. Also consider the resume target.
14292 * infrun.h (wait_for_inferior): Remove declaration.
14293 (user_visible_resume_target): New declaration.
14294 (get_last_target_status, set_last_target_status): New
14295 process_stratum_target parameter.
14296 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14297 process_stratum_target parameter, and use it.
14298 (clear_inline_frame_state (thread_info*)): New.
14299 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14300 process_stratum_target parameter.
14301 (clear_inline_frame_state (thread_info*)): Declare.
14302 * linux-fork.c (delete_checkpoint_command): Pass target down to
14303 find_thread_ptid.
14304 (checkpoint_command): Adjust.
14305 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14306 instead of just tweaking inferior_ptid.
14307 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14308 (exit_lwp): Pass target down to find_thread_ptid.
14309 (attach_proc_task_lwp_callback): Pass target down to
14310 add_thread/set_running/set_executing.
14311 (linux_nat_target::attach): Pass target down to
14312 thread_change_ptid.
14313 (get_detach_signal): Pass target down to find_thread_ptid.
14314 Consider last target status's target.
14315 (linux_resume_one_lwp_throw, resume_lwp)
14316 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14317 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14318 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14319 (linux_nat_target::async_wait_fd): New.
14320 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14321 target down.
14322 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14323 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14324 * linux-thread-db.c (struct thread_db_info::process_target): New
14325 field.
14326 (add_thread_db_info): Save target.
14327 (get_thread_db_info): New process_stratum_target parameter. Also
14328 match target.
14329 (delete_thread_db_info): New process_stratum_target parameter.
14330 Also match target.
14331 (thread_from_lwp): Adjust to pass down target.
14332 (thread_db_notice_clone): Pass down target.
14333 (check_thread_db_callback): Pass down target.
14334 (try_thread_db_load_1): Always push the thread_db target.
14335 (try_thread_db_load, record_thread): Pass target down.
14336 (thread_db_target::detach): Pass target down. Always unpush the
14337 thread_db target.
14338 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14339 target down. Always unpush the thread_db target.
14340 (find_new_threads_callback, thread_db_find_new_threads_2)
14341 (thread_db_target::update_thread_list): Pass target down.
14342 (thread_db_target::pid_to_str): Pass current inferior down.
14343 (thread_db_target::get_thread_local_address): Pass target down.
14344 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14345 target down.
14346 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14347 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14348 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14349 (procfs_init_inferior): Rename to ...
14350 (procfs_target::procfs_init_inferior): ... this and adjust.
14351 (procfs_target::create_inferior, procfs_notice_thread)
14352 (procfs_do_thread_registers): Adjust.
14353 * ppc-fbsd-tdep.c: Include "inferior.h".
14354 (ppcfbsd_get_thread_local_address): Pass down target.
14355 * proc-service.c (ps_xfer_memory): Switch current inferior and
14356 program space as well.
14357 (get_ps_regcache): Pass target down.
14358 * process-stratum-target.c
14359 (process_stratum_target::thread_address_space)
14360 (process_stratum_target::thread_architecture): Pass target down.
14361 * process-stratum-target.h
14362 (process_stratum_target::threads_executing): New field.
14363 (as_process_stratum_target): New.
14364 * ravenscar-thread.c
14365 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14366 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14367 down.
14368 * record-btrace.c (record_btrace_target::info_record): Adjust.
14369 (record_btrace_target::record_method)
14370 (record_btrace_target::record_is_replaying)
14371 (record_btrace_target::fetch_registers)
14372 (get_thread_current_frame_id, record_btrace_target::resume)
14373 (record_btrace_target::wait, record_btrace_target::stop): Pass
14374 target down.
14375 * record-full.c (record_full_wait_1): Switch to event thread.
14376 Pass target down.
14377 * regcache.c (regcache::regcache)
14378 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14379 process_stratum_target parameter and handle it.
14380 (current_thread_target): New global.
14381 (get_thread_regcache): Add process_stratum_target parameter and
14382 handle it. Switch inferior before calling target method.
14383 (get_thread_regcache): Pass target down.
14384 (get_thread_regcache_for_ptid): Pass target down.
14385 (registers_changed_ptid): Add process_stratum_target parameter and
14386 handle it.
14387 (registers_changed_thread, registers_changed): Pass target down.
14388 (test_get_thread_arch_aspace_regcache): New.
14389 (current_regcache_test): Define a couple local test_target_ops
14390 instances and use them for testing.
14391 (readwrite_regcache): Pass process_stratum_target parameter.
14392 (cooked_read_test, cooked_write_test): Pass mock_target down.
14393 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14394 (get_thread_arch_aspace_regcache): Add process_stratum_target
14395 parameter.
14396 (regcache::target): New method.
14397 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14398 (regcache::registers_changed_ptid): Add process_stratum_target
14399 parameter.
14400 (regcache::m_target): New field.
14401 (registers_changed_ptid): Add process_stratum_target parameter.
14402 * remote.c (remote_state::supports_vCont_probed): New field.
14403 (remote_target::async_wait_fd): New method.
14404 (remote_unpush_and_throw): Add remote_target parameter.
14405 (get_current_remote_target): Adjust.
14406 (remote_target::remote_add_inferior): Push target.
14407 (remote_target::remote_add_thread)
14408 (remote_target::remote_notice_new_inferior)
14409 (get_remote_thread_info): Pass target down.
14410 (remote_target::update_thread_list): Skip threads of inferiors
14411 bound to other targets. (remote_target::close): Don't discard
14412 inferiors. (remote_target::add_current_inferior_and_thread)
14413 (remote_target::process_initial_stop_replies)
14414 (remote_target::start_remote)
14415 (remote_target::remote_serial_quit_handler): Pass down target.
14416 (remote_target::remote_unpush_target): New remote_target
14417 parameter. Unpush the target from all inferiors.
14418 (remote_target::remote_unpush_and_throw): New remote_target
14419 parameter. Pass it down.
14420 (remote_target::open_1): Check whether the current inferior has
14421 execution instead of checking whether any inferior is live. Pass
14422 target down.
14423 (remote_target::remote_detach_1): Pass down target. Use
14424 remote_unpush_target.
14425 (extended_remote_target::attach): Pass down target.
14426 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14427 (remote_target::append_resumption): Pass down target.
14428 (remote_target::append_pending_thread_resumptions)
14429 (remote_target::remote_resume_with_hc, remote_target::resume)
14430 (remote_target::commit_resume): Pass down target.
14431 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14432 (remote_target::interrupt_query)
14433 (remote_target::remove_new_fork_children)
14434 (remote_target::check_pending_events_prevent_wildcard_vcont)
14435 (remote_target::remote_parse_stop_reply)
14436 (remote_target::process_stop_reply): Pass down target.
14437 (first_remote_resumed_thread): New remote_target parameter. Pass
14438 it down.
14439 (remote_target::wait_as): Pass down target.
14440 (unpush_and_perror): New remote_target parameter. Pass it down.
14441 (remote_target::readchar, remote_target::remote_serial_write)
14442 (remote_target::getpkt_or_notif_sane_1)
14443 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14444 down target.
14445 (remote_target::mourn_inferior): Pass down target. Use
14446 remote_unpush_target.
14447 (remote_target::core_of_thread)
14448 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14449 (remote_target::pid_to_exec_file)
14450 (remote_target::thread_handle_to_thread_info): Pass down target.
14451 (remote_target::async_wait_fd): New.
14452 * riscv-fbsd-tdep.c: Include "inferior.h".
14453 (riscv_fbsd_get_thread_local_address): Pass down target.
14454 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14455 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14456 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14457 Adjust.
14458 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14459 * solib-svr4.c (enable_break): Pass down target.
14460 * spu-multiarch.c (parse_spufs_run): Pass down target.
14461 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14462 * target-delegates.c: Regenerate.
14463 * target.c (g_target_stack): Delete.
14464 (current_top_target): Return the current inferior's top target.
14465 (target_has_execution_1): Refer to the passed-in inferior's top
14466 target.
14467 (target_supports_terminal_ours): Check whether the initial
14468 inferior was already created.
14469 (decref_target): New.
14470 (target_stack::push): Incref/decref the target.
14471 (push_target, push_target, unpush_target): Adjust.
14472 (target_stack::unpush): Defref target.
14473 (target_is_pushed): Return bool. Adjust to refer to the current
14474 inferior's target stack.
14475 (dispose_inferior): Delete, and inline parts ...
14476 (target_preopen): ... here. Only dispose of the current inferior.
14477 (target_detach): Hold strong target reference while detaching.
14478 Pass target down.
14479 (target_thread_name): Add assertion.
14480 (target_resume): Pass down target.
14481 (target_ops::beneath, find_target_at): Adjust to refer to the
14482 current inferior's target stack.
14483 (get_dummy_target): New.
14484 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14485 has a thread running.
14486 (initialize_targets): Rename to ...
14487 (_initialize_target): ... this.
14488 * target.h: Include "gdbsupport/refcounted-object.h".
14489 (struct target_ops): Inherit refcounted_object.
14490 (target_ops::shortname, target_ops::longname): Make const.
14491 (target_ops::async_wait_fd): New method.
14492 (decref_target): Declare.
14493 (struct target_ops_ref_policy): New.
14494 (target_ops_ref): New typedef.
14495 (get_dummy_target): Declare function.
14496 (target_is_pushed): Return bool.
14497 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14498 (all_matching_threads_iterator::all_matching_threads_iterator):
14499 Handle filter target.
14500 * thread-iter.h (struct all_matching_threads_iterator, struct
14501 all_matching_threads_range, class all_non_exited_threads_range):
14502 Filter by target too. Remove explicit.
14503 * thread.c (threads_executing): Delete.
14504 (inferior_thread): Pass down current inferior.
14505 (clear_thread_inferior_resources): Pass down thread pointer
14506 instead of ptid_t.
14507 (add_thread_silent, add_thread_with_info, add_thread): Add
14508 process_stratum_target parameter. Use it for thread and inferior
14509 searches.
14510 (is_current_thread): New.
14511 (thread_info::deletable): Use it.
14512 (find_thread_ptid, thread_count, in_thread_list)
14513 (thread_change_ptid, set_resumed, set_running): New
14514 process_stratum_target parameter. Pass it down.
14515 (set_executing): New process_stratum_target parameter. Pass it
14516 down. Adjust reference to 'threads_executing'.
14517 (threads_are_executing): New process_stratum_target parameter.
14518 Adjust reference to 'threads_executing'.
14519 (set_stop_requested, finish_thread_state): New
14520 process_stratum_target parameter. Pass it down.
14521 (switch_to_thread): Also match inferior.
14522 (switch_to_thread): New process_stratum_target parameter. Pass it
14523 down.
14524 (update_threads_executing): Reimplement.
14525 * top.c (quit_force): Pop targets from all inferior.
14526 (gdb_init): Don't call initialize_targets.
14527 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14528 Declare.
14529 (windows_add_thread, windows_delete_thread): Adjust.
14530 (get_windows_debug_event): Rename to ...
14531 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14532 * tracefile-tfile.c (tfile_target_open): Pass down target.
14533 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14534 Forward declare.
14535 (switch_to_thread): Add process_stratum_target parameter.
14536 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14537 parameter. Use it.
14538 (mi_on_resume): Pass target down.
14539 * nat/fork-inferior.c (startup_inferior): Add
14540 process_stratum_target parameter. Pass it down.
14541 * nat/fork-inferior.h (startup_inferior): Add
14542 process_stratum_target parameter.
14543 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14544
75c6c844
PA
145452020-01-10 Pedro Alves <palves@redhat.com>
14546
14547 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14548 directly. Instead find the first thread in the thread list and
14549 use switch_to_thread.
14550
78f2c40a
PA
145512020-01-10 Pedro Alves <palves@redhat.com>
14552
14553 * remote.c (remote_target::remote_add_inferior): Don't bind a
14554 process to the current inferior if the current inferior is already
14555 bound to a process.
14556
e7af6c70
TBA
145572020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14558 Pedro Alves <palves@redhat.com>
14559
14560 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14561 If no process is specified, return null_ptid instead of
14562 inferior_ptid.
14563 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14564 TARGET_WAITKIND_SIGNALLED with no pid.
14565
31ba933e
PA
145662020-01-10 Pedro Alves <palves@redhat.com>
14567
14568 * remote.c (first_remote_resumed_thread): New.
14569 (remote_target::wait_as): Use it as default event_ptid instead of
14570 inferior_ptid.
14571
735fc2ca
PA
145722020-01-10 Pedro Alves <palves@redhat.com>
14573
14574 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14575
c17e02e1
PA
145762020-01-10 Pedro Alves <palves@redhat.com>
14577
14578 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14579 not -1.
14580
ab1ddbcf
PA
145812020-01-10 Pedro Alves <palves@redhat.com>
14582
14583 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14584 ptid to get_last_target_status.
14585 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14586 ptid to get_last_target_status.
14587 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14588 get_last_target_status.
14589 (info_program_command): Don't pass a target_waitstatus to
14590 get_last_target_status.
14591 * infrun.c (init_wait_for_inferior): Use
14592 nullify_last_target_wait_ptid.
14593 (get_last_target_status): Handle nullptr arguments.
14594 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14595 (print_stop_event): Don't pass a ptid to get_last_target_status.
14596 (normal_stop): Don't pass a ptid to get_last_target_status.
14597 * infrun.h (get_last_target_status, set_last_target_status): Move
14598 comments here and update.
14599 (nullify_last_target_wait_ptid): Declare.
14600 * linux-fork.c (fork_load_infrun_state): Remove local extern
14601 declaration of nullify_last_target_wait_ptid.
14602 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14603 to get_last_target_status.
14604
f3f8ece4
PA
146052020-01-10 Pedro Alves <palves@redhat.com>
14606
14607 * gdbthread.h (scoped_restore_current_thread)
14608 <dont_restore, restore, m_dont_restore>: Declare.
14609 * thread.c (thread_alive): Add assertion. Return bool.
14610 (switch_to_thread_if_alive): New.
14611 (prune_threads): Switch inferior/thread.
14612 (print_thread_info_1): Switch thread before calling target methods.
14613 (scoped_restore_current_thread::restore): New, factored out from
14614 ...
14615 (scoped_restore_current_thread::~scoped_restore_current_thread):
14616 ... this.
14617 (scoped_restore_current_thread::scoped_restore_current_thread):
14618 Add assertion.
14619 (thread_apply_all_command, thread_select): Use
14620 switch_to_thread_if_alive.
14621 * infrun.c (proceed, restart_threads, handle_signal_stop)
14622 (switch_back_to_stepped_thread): Switch current thread before
14623 calling target methods.
14624
db2d40f7
PA
146252020-01-10 Pedro Alves <palves@redhat.com>
14626
14627 * inferior.c (switch_to_inferior_no_thread): New function,
14628 factored out from ...
14629 (inferior_command): ... here.
14630 * inferior.h (switch_to_inferior_no_thread): Declare.
14631 * mi/mi-main.c (run_one_inferior): Use
14632 switch_to_inferior_no_thread.
14633
bd420a2d
PA
146342020-01-10 Pedro Alves <palves@redhat.com>
14635
14636 * infcmd.c (kill_command): Remove dead code.
14637
ddf5db90
PA
146382020-01-10 Pedro Alves <palves@redhat.com>
14639
14640 * remote.c (remote_target::mourn_inferior): No longer check
14641 whether the target is running.
14642
5018ce90
PA
146432020-01-10 Pedro Alves <palves@redhat.com>
14644
14645 * corelow.c (core_target::has_execution): Change parameter type to
14646 inferior pointer.
14647 * inferior.c (number_of_live_inferiors): Use
14648 inferior::has_execution instead of target_has_execution_1.
14649 * inferior.h (inferior::has_execution): New.
14650 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14651 inferior::has_execution instead of target_has_execution_1.
14652 * process-stratum-target.c
14653 (process_stratum_target::has_execution): Change parameter type to
14654 inferior pointer. Check the inferior's PID instead of
14655 inferior_ptid.
14656 * process-stratum-target.h
14657 (process_stratum_target::has_execution): Change parameter type to
14658 inferior pointer.
14659 * record-full.c (record_full_core_target::has_execution): Change
14660 parameter type to inferior pointer.
14661 * target.c (target_has_execution_1): Change parameter type to
14662 inferior pointer.
14663 (target_has_execution_current): Adjust.
14664 * target.h (target_ops::has_execution): Change parameter type to
14665 inferior pointer.
14666 (target_has_execution_1): Change parameter type to inferior
14667 pointer. Change return type to bool.
14668 * tracefile.h (tracefile_target::has_execution): Change parameter
14669 type to inferior pointer.
14670
74375d18
PA
146712020-01-10 Pedro Alves <palves@redhat.com>
14672
14673 * exceptions.c (print_flush): Remove current_top_target() check.
14674
acdf84a6
PA
146752020-01-10 Pedro Alves <palves@redhat.com>
14676
14677 * remote.c (show_remote_exec_file): Show the current inferior's
14678 exec-file instead of the command variable's value.
14679
ec506636
PA
146802020-01-10 Pedro Alves <palves@redhat.com>
14681
14682 * record-full.c (record_full_resume_ptid): New global.
14683 (record_full_target::resume): Set it.
14684 (record_full_wait_1): Use record_full_resume_ptid instead of
14685 inferior_ptid.
14686
873657b9
PA
146872020-01-10 Pedro Alves <palves@redhat.com>
14688
14689 * gdbthread.h (scoped_restore_current_thread)
14690 <dont_restore, restore, m_dont_restore>: Declare.
14691 * thread.c (thread_alive): Add assertion. Return bool.
14692 (switch_to_thread_if_alive): New.
14693 (prune_threads): Switch inferior/thread.
14694 (print_thread_info_1): Switch thread before calling target methods.
14695 (scoped_restore_current_thread::restore): New, factored out from
14696 ...
14697 (scoped_restore_current_thread::~scoped_restore_current_thread):
14698 ... this.
14699 (scoped_restore_current_thread::scoped_restore_current_thread):
14700 Add assertion.
14701 (thread_apply_all_command, thread_select): Use
14702 switch_to_thread_if_alive.
14703
7f0ae84c
GB
147042020-01-10 George Barrett <bob@bob131.so>
14705
14706 * stap-probe.c (stap_modify_semaphore): Don't check for null
14707 semaphores.
14708 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14709 for null semaphores.
14710
f5a7c406
AB
147112020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14712
14713 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14714 all source windows, and maintain horizontal scroll status while
14715 doing so.
14716
9ae6bf64
TT
147172020-01-09 Tom Tromey <tom@tromey.com>
14718
14719 PR tui/18932:
14720 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14721 update_source_window, not print_source_lines.
14722
b2efe70c
AB
147232020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14724
14725 * tui/tui.c (tui_enable): Register tui hooks after calling
14726 tui_display_main.
14727
5f23a082
CB
147282020-01-09 Christian Biesinger <cbiesinger@google.com>
14729
14730 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14731
3061113b
SM
147322020-01-08 Simon Marchi <simon.marchi@efficios.com>
14733
14734 * thread.c (print_thread_info_1): Fix indentation.
14735
57d75002
CB
147362020-01-09 Christian Biesinger <cbiesinger@google.com>
14737
14738 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14739 unique_xmalloc_ptr outside the if to always free the demangled name.
14740
6a053cb1
TT
147412020-01-08 Tom Tromey <tromey@adacore.com>
14742
14743 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14744 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14745 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14746 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14747 Remove.
14748 (section_offsets): New typedef.
14749 * symtab.c (fixup_section, get_msymbol_address): Update.
14750 * symmisc.c (dump_msymbols): Update.
14751 * symfile.h (relative_addr_info_to_section_offsets)
14752 (symfile_map_offsets_to_segments): Update.
14753 * symfile.c (build_section_addr_info_from_objfile)
14754 (init_objfile_sect_indices): Update.
14755 (struct place_section_arg): Change type of "offsets".
14756 (place_section): Update.
14757 (relative_addr_info_to_section_offsets): Change type of
14758 "section_offsets". Remove "num_sections" parameter.
14759 (default_symfile_offsets, syms_from_objfile_1)
14760 (set_objfile_default_section_offset): Update.
14761 (reread_symbols): No need to preserve section offsets by hand.
14762 (symfile_map_offsets_to_segments): Change type of "offsets".
14763 * stap-probe.c (relocate_address): Update.
14764 * stabsread.h (process_one_symbol): Update.
14765 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14766 (solib_target_relocate_section_addresses): Update.
14767 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14768 Update.
14769 * solib-frv.c (frv_relocate_main_executable): Update.
14770 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14771 * solib-aix.c (solib_aix_get_section_offsets): Change return
14772 type.
14773 (solib_aix_solib_create_inferior_hook): Update.
14774 * remote.c (remote_target::get_offsets): Update.
14775 * psymtab.c (find_pc_sect_psymtab): Update.
14776 * psympriv.h (struct partial_symbol) <address, text_low,
14777 text_high>: Update.
14778 * objfiles.h (obj_section_offset): Update.
14779 (struct objfile) <section_offsets>: Change type.
14780 <num_sections>: Remove.
14781 (objfile_relocate): Update.
14782 * objfiles.c (entry_point_address_query): Update
14783 (relocate_one_symbol): Change type of "section_offsets".
14784 (objfile_relocate1, objfile_relocate1): Change type of
14785 "new_offsets".
14786 (objfile_rebase1): Update.
14787 * mipsread.c (mipscoff_symfile_read): Update.
14788 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14789 parameter.
14790 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14791 (parse_external, psymtab_to_symtab_1): Update.
14792 * machoread.c (macho_symfile_offsets): Update.
14793 * ia64-tdep.c (ia64_find_unwind_table): Update.
14794 * hppa-tdep.c (read_unwind_info): Update.
14795 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14796 * dwarf2read.c (create_addrmap_from_index)
14797 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14798 (process_psymtab_comp_unit_reader, add_partial_symbol)
14799 (add_partial_subprogram, process_full_comp_unit)
14800 (read_file_scope, read_func_scope, read_lexical_block_scope)
14801 (read_call_site_scope, dwarf2_rnglists_process)
14802 (dwarf2_ranges_process, dwarf2_ranges_read)
14803 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14804 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14805 Update.
14806 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14807 Update.
14808 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14809 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14810 (process_one_symbol): Change type of "section_offsets".
14811 * ctfread.c (get_objfile_text_range): Update.
14812 * coffread.c (coff_symtab_read, enter_linenos)
14813 (process_coff_symbol): Update.
14814 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14815 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14816
456e800a
TT
148172020-01-08 Tom Tromey <tromey@adacore.com>
14818
14819 * dwarf2read.c (parse_macro_definition): Use std::string.
14820 (parse_macro_definition): Likewise.
14821
6dfa2fc2
TT
148222020-01-08 Tom Tromey <tromey@adacore.com>
14823
14824 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14825 (ATTR_ALLOC_CHUNK): Remove.
14826
421d1616
TT
148272020-01-08 Tom Tromey <tromey@adacore.com>
14828
14829 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14830
43816ebc
TT
148312020-01-08 Tom Tromey <tromey@adacore.com>
14832
14833 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14834 (dwarf2_compute_name, open_dwo_file): Likewise.
14835 (process_enumeration_scope): Use std::vector.
14836 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14837 (partial_die_info::fixup, dwarf2_start_subfile)
14838 (guess_full_die_structure_name, dwarf2_name): Likewise.
14839 (determine_prefix): Update.
14840 (guess_full_die_structure_name): Make return type const.
14841 (partial_die_full_name): Return unique_xmalloc_ptr.
14842 (DW_FIELD_ALLOC_CHUNK): Remove.
14843
4212d509
TT
148442020-01-07 Tom Tromey <tromey@adacore.com>
14845
14846 PR build/24937:
14847 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14848
06a6207a
JT
148492020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14850
14851 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14852
153d79c4
AB
148532020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14854
14855 * stack.c (print_frame_info): Move disassemble_next_line code
14856 inside source_print block.
14857
66182876
EZ
148582020-01-06 Eli Zaretskii <eliz@gnu.org>
14859
14860 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14861 gdb/signals.h, as we are now using native signal symbols.
14862
cbfa8581
SV
148632020-01-06 Shahab Vahedi <shahab@synopsys.com>
14864
14865 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14866 overflow by an early check of content vs threshold.
aac66a4c 14867 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14868 Likewise.
14869
3f602821
EZ
148702020-01-06 Eli Zaretskii <eliz@gnu.org>
14871
14872 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14873
a08c904d
JT
148742020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14875
14876 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14877 export table if no section contains it's RVA.
14878
89a65580
EZ
148792020-01-06 Eli Zaretskii <eliz@gnu.org>
14880
14881 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14882
8b7fcda2
HD
148832020-01-06 Hannes Domani <ssbssa@yahoo.de>
14884
14885 * source.c (print_source_lines_base): Set last_line_listed.
14886
a61b4f69
SV
148872020-01-06 Shahab Vahedi <shahab@synopsys.com>
14888
14889 * tui/tui-disasm.c: Remove trailing spaces.
14890
559e7e50
EZ
148912020-01-06 Eli Zaretskii <eliz@gnu.org>
14892 Pedro Alves <palves@redhat.com>
14893
14894 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14895 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14896 (windows_gdb_signal_to_target): New function, uses the above
14897 enumeration to convert GDB internal signal codes to equivalent
14898 Windows codes.
14899 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14900 * windows-nat.c: Include "gdb_wait.h".
14901 (get_windows_debug_event): Extract the fatal exception from the
14902 exit status and convert to the equivalent Posix signal number.
14903 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14904 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14905 * gdbsupport/gdb_wait.c: New file, implements
14906 windows_status_to_termsig.
14907 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14908 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14909
f2302a34
AB
149102020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14911
14912 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14913 show_layout.
14914
6a5206eb
LM
149152020-01-05 Luis Machado <luis.machado@linaro.org>
14916
14917 * aarch64-linux-nat.c
14918 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14919 and bfd_mach_aarch64.
14920
6ec1d75e
PW
149212020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14922
14923 * ui-file.c (stdio_file::can_emit_style_escape)
14924 (tee_file::can_emit_style_escape): Ensure style is used also on
14925 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14926 to gdb_stdout.
14927 * main.c (set_gdb_data_directory): Use file style to output the
14928 warning that the given pathname is not a directory.
14929 * top.c (show_history_filename, gdb_safe_append_history)
14930 (show_gdb_datadir): Use file style.
14931
44f81a76
HD
149322020-01-03 Hannes Domani <ssbssa@yahoo.de>
14933
14934 * solib-target.c (struct lm_info_target):
14935 Change offsets to be a unique_xmalloc_ptr.
14936 (solib_target_relocate_section_addresses): Update.
14937
25057eb0
HD
149382020-01-03 Hannes Domani <ssbssa@yahoo.de>
14939
14940 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14941
6e2118f5
BE
149422020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14943
14944 * MAINTAINERS (Write After Approval): Add myself.
14945
8133c7dc
LM
149462020-01-02 Luis Machado <luis.machado@linaro.org>
14947
14948 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14949 Cell BE architecture.
14950 * target.h (struct target_ops) <thread_architecture>: Likewise.
14951
48189bec
HD
149522020-01-01 Hannes Domani <ssbssa@yahoo.de>
14953
14954 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14955
ead1063b
HD
149562020-01-01 Hannes Domani <ssbssa@yahoo.de>
14957
14958 * MAINTAINERS (Write After Approval): Add myself.
14959
e5d78223
JB
149602020-01-01 Joel Brobecker <brobecker@adacore.com>
14961
14962 * gdbarch.sh: Update copyright year range of generated files.
14963
b811d2c2
JB
149642020-01-01 Joel Brobecker <brobecker@adacore.com>
14965
14966 Update copyright year range in all GDB files.
14967
5f4def5c
JB
149682020-01-01 Joel Brobecker <brobecker@adacore.com>
14969
14970 * copyright.py: Convert to Python 3.
14971
51fd4002
JB
149722020-01-01 Joel Brobecker <brobecker@adacore.com>
14973
14974 * copyright.py: Adapt after move of gnulib directory from gdb
14975 directory to toplevel directory.
14976
5fb651f2
JB
149772020-01-01 Joel Brobecker <brobecker@adacore.com>
14978
14979 * copyright.py (main): Exit if run from the wrong directory.
14980
5dd8bf88
JB
149812020-01-01 Joel Brobecker <brobecker@adacore.com>
14982
14983 * top.c (print_gdb_version): Change copyright year to 2020.
14984
9f71dacb 149852020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14986
9f71dacb 14987 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14988
9f71dacb 14989For older changes see ChangeLog-2019.
c906108c
SS
14990\f
14991Local Variables:
14992mode: change-log
14993left-margin: 8
14994fill-column: 74
14995version-control: never
57da7796 14996coding: utf-8
c906108c 14997End: