]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Style more output of "disassemble" command
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b2701685
TT
12020-10-08 Tom Tromey <tom@tromey.com>
2
3 * cli/cli-cmds.c (print_disassembly): Style function name and
4 addresses. Add _() wrappers.
5
ada508b6
SV
62020-10-08 Shahab Vahedi <shahab@synopsys.com>
7
8 * NEWS: Mention ARC support in GDBserver.
9
51a948fd
AB
102020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
11
12 * arch/aarch32.c (aarch32_create_target_description): Release
13 unique_ptr returned from allocate_target_description.
14 * arch/aarch64.c (aarch64_create_target_description): Likewise.
15 * arch/amd64.c (amd64_create_target_description): Likewise.
16 * arch/arc.c (arc_create_target_description): Likewise.
17 * arch/arm.c (arm_create_target_description): Likewise.
18 * arch/i386.c (i386_create_target_description): Likewise.
19 * arch/riscv.c (riscv_create_target_description): Update return
20 type. Handle allocate_target_description returning a unique_ptr.
21 (riscv_lookup_target_description): Update to handle unique_ptr.
22 * arch/tic6x.c (tic6x_create_target_description): Release
23 unique_ptr returned from allocate_target_description.
24 * features/microblaze-with-stack-protect.c: Regenerate.
25 * features/microblaze.c: Regenerate.
26 * features/mips-dsp-linux.c: Regenerate.
27 * features/mips-linux.c: Regenerate.
28 * features/mips64-dsp-linux.c: Regenerate.
29 * features/mips64-linux.c: Regenerate.
30 * features/nds32.c: Regenerate.
31 * features/nios2.c: Regenerate.
32 * features/or1k.c: Regenerate.
33 * features/rs6000/powerpc-32.c: Regenerate.
34 * features/rs6000/powerpc-32l.c: Regenerate.
35 * features/rs6000/powerpc-403.c: Regenerate.
36 * features/rs6000/powerpc-403gc.c: Regenerate.
37 * features/rs6000/powerpc-405.c: Regenerate.
38 * features/rs6000/powerpc-505.c: Regenerate.
39 * features/rs6000/powerpc-601.c: Regenerate.
40 * features/rs6000/powerpc-602.c: Regenerate.
41 * features/rs6000/powerpc-603.c: Regenerate.
42 * features/rs6000/powerpc-604.c: Regenerate.
43 * features/rs6000/powerpc-64.c: Regenerate.
44 * features/rs6000/powerpc-64l.c: Regenerate.
45 * features/rs6000/powerpc-7400.c: Regenerate.
46 * features/rs6000/powerpc-750.c: Regenerate.
47 * features/rs6000/powerpc-860.c: Regenerate.
48 * features/rs6000/powerpc-altivec32.c: Regenerate.
49 * features/rs6000/powerpc-altivec32l.c: Regenerate.
50 * features/rs6000/powerpc-altivec64.c: Regenerate.
51 * features/rs6000/powerpc-altivec64l.c: Regenerate.
52 * features/rs6000/powerpc-e500.c: Regenerate.
53 * features/rs6000/powerpc-e500l.c: Regenerate.
54 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
55 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
56 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
57 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
58 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
59 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
60 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
61 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
62 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
63 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
64 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
65 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
66 * features/rs6000/powerpc-vsx32.c: Regenerate.
67 * features/rs6000/powerpc-vsx32l.c: Regenerate.
68 * features/rs6000/powerpc-vsx64.c: Regenerate.
69 * features/rs6000/powerpc-vsx64l.c: Regenerate.
70 * features/rs6000/rs6000.c: Regenerate.
71 * features/rx.c: Regenerate.
72 * features/s390-gs-linux64.c: Regenerate.
73 * features/s390-linux32.c: Regenerate.
74 * features/s390-linux32v1.c: Regenerate.
75 * features/s390-linux32v2.c: Regenerate.
76 * features/s390-linux64.c: Regenerate.
77 * features/s390-linux64v1.c: Regenerate.
78 * features/s390-linux64v2.c: Regenerate.
79 * features/s390-te-linux64.c: Regenerate.
80 * features/s390-tevx-linux64.c: Regenerate.
81 * features/s390-vx-linux64.c: Regenerate.
82 * features/s390x-gs-linux64.c: Regenerate.
83 * features/s390x-linux64.c: Regenerate.
84 * features/s390x-linux64v1.c: Regenerate.
85 * features/s390x-linux64v2.c: Regenerate.
86 * features/s390x-te-linux64.c: Regenerate.
87 * features/s390x-tevx-linux64.c: Regenerate.
88 * features/s390x-vx-linux64.c: Regenerate.
89 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
90 from allocate_target_description.
91 * target-descriptions.c (allocate_target_description): Update
92 return type.
93 (print_c_tdesc::visit_pre): Release unique_ptr returned from
94 allocate_target_description.
95
485c47e5
TT
962020-10-07 Tom Tromey <tromey@adacore.com>
97
98 * unittests/search-memory-selftests.c: New file.
99 * Makefile.in (SELFTESTS_SRCS): Add
100 unittests/search-memory-selftests.c.
101
3a135a91
TT
1022020-10-07 Tom Tromey <tromey@adacore.com>
103
104 PR gdb/16930:
105 * findcmd.c (_initialize_mem_search): Mention that the range is
106 inclusive.
107
4a72de73
TT
1082020-10-07 Tom Tromey <tromey@adacore.com>
109
110 * target.h (simple_search_memory): Don't declare.
111 * target.c (simple_search_memory): Move to gdbsupport.
112 (default_search_memory): Update.
113 * remote.c (remote_target::search_memory): Update.
114
a038ffd8
SM
1152020-10-07 Simon Marchi <simon.marchi@efficios.com>
116
117 * Makefile.in (COMPILE): Add CXXFLAGS.
118 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
119 (check-headers): Add CXXFLAGS.
120
cc463201
AK
1212020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
122
123 * arc-linux-tdep.h: New file.
124 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
125 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
126 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
127 arc_linux_gregset, arc_linux_v2_regset,
128 arc_linux_iterate_over_regset_sections,
129 arc_linux_core_read_description): Implement.
130 (arc_linux_init_osabi): Set iterate_over_regset_sections.
131 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
132 (arc_gdbarch_features_create): Add.
133 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
134
e4bd363f
SV
1352020-10-07 Shahab Vahedi <shahab@synopsys.com>
136
137 * arch/arc.h: Rename "arc_gdbarch_features" to
138 "arc_arch_features".
139 * arc-tdep.h: Likewise.
140 * arc-tdep.c: Likewise.
141
b68bef99
TBA
1422020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
143
144 * infcmd.c (attach_command): Remove the redundant call to
145 `clear_proceed_status`.
146
4641551a
KR
1472020-10-07 Kamil Rytarowski <n54@gmx.com>
148
149 * nat/netbsd-nat.c (write_memory, read_memory): Update.
150
91e5e8db
KR
1512020-10-07 Kamil Rytarowski <n54@gmx.com>
152
153 * nat/netbsd-nat.c (write_memory, read_memory): Add.
154 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
155 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
156
64c03bdb
SM
1572020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
158
159 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
160 (_initialize_break_catch_sig): Don't allocate array.
161
31a8f60f
AB
1622020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
163
164 * symtab.c (find_pc_line): Return unmapped addresses when the
165 requested address is also unmapped.
166
9e6dbd8b
SM
1672020-10-05 Simon Marchi <simon.marchi@efficios.com>
168
169 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
170 tui/tui-out.h.
171
a1d217e8
SM
1722020-10-05 Simon Marchi <simon.marchi@efficios.com>
173
174 * amd64-windows-tdep.c (amd64_windows_return_value): Use
175 type::is_vector instead of TYPE_VECTOR.
176
7d144117
SM
1772020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
178
179 * auto-load.c (auto_load_objfile_script_1): Don't use
180 debugfile_holder as temporary variable when stripping drive
181 letter.
182
cd096ec8
HD
1832020-10-05 Hannes Domani <ssbssa@yahoo.de>
184
185 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
186 Add TYPE_CODE_COMPLEX.
187 (amd64_windows_return_value): Fix types returned via XMM0.
188
b58e7f72
AH
1892020-10-05 Alan Hayward <alan.hayward@arm.com>
190
191 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
192 AArch64/ARM maintainers.
193
8d378f27
SM
1942020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
195
196 * NEWS: Mention set/show debug event-loop.
197
d5519913
TT
1982020-10-02 Tom Tromey <tromey@adacore.com>
199
200 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
201 REG_EXTENDED.
202
18b67edc
SM
2032020-10-02 Simon Marchi <simon.marchi@efficios.com>
204
205 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
206 * procfs.c (procfs_inferior_created): Remove.
207 (_initialize_procfs): Don't register procfs_inferior_created.
208
6b01403b
SM
2092020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
210
211 * async-event.c (invoke_async_signal_handlers): Add debug
212 print.
213 (check_async_event_handlers): Likewise.
214 * event-top.c (show_debug_event_loop): New function.
215 (_initialize_event_top): Register "set debug event-loop"
216 setting.
217
ba988419
SM
2182020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
219
220 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
221 * debug.h: Remove.
222 * infrun.c: Include gdbsupport/common-debug.h.
223 * linux-nat.c: Likewise.
224
db20ebdf
SM
2252020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
226
227 * async-event.h (create_async_signal_handler): Add name
228 parameter.
229 (create_async_event_handler): Likewise.
230 * async-event.c (struct async_signal_handler) <name>: New field.
231 (struct async_event_handler) <name>: New field.
232 (create_async_signal_handler): Assign name.
233 (create_async_event_handler): Assign name.
234 * event-top.c (async_init_signals): Pass name when creating
235 handler.
236 * infrun.c (_initialize_infrun): Likewise.
237 * record-btrace.c (record_btrace_push_target): Likewise.
238 * record-full.c (record_full_open): Likewise.
239 * remote-notif.c (remote_notif_state_allocate): Likewise.
240 * remote.c (remote_target::open_1): Likewise.
241 * tui/tui-win.c (tui_initialize_win): Likewise.
242
2554f6f5
SM
2432020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
244
245 * async-event.c (initialize_async_signal_handlers): Pass name to
246 add_file_handler
247 * event-top.c (ui_register_input_event_handler): Likewise.
248 * linux-nat.c (linux_nat_target::async): Likewise.
249 * run-on-main-thread.c (_initialize_run_on_main_thread):
250 Likewise
251 * ser-base.c (reschedule): Likewise.
252 (ser_base_async): Likewise.
253 * tui/tui-io.c: Likewise.
254 * top.h (struct ui) <num>: New field.
255 * top.c (highest_ui_num): New variable.
256 (ui::ui): Initialize num.
257
a7aba266
SM
2582020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
259
260 * observable.h <inferior_created>: Remove parameters. Update all
261 listeners.
262 * inferior.h (post_create_inferior): Remove target parameter.
263 Update all callers.
264
048fde1e 2652020-10-02 Nitika Achra <Nitika.Achra@amd.com>
266
267 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
268 and DW_MACRO_undef_strx.
269 (dwarf_decode_macros): Likewise
270 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
271 which is the value of DW_AT_str_offsets_base.
272 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
273 str_offsets_base.
274
064280be
KR
2752020-10-01 Kamil Rytarowski <n54@gmx.com>
276
277 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
278
6ff33035
KR
2792020-10-01 Kamil Rytarowski <n54@gmx.com>
280
281 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
282 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
283
1eb6eb79
KR
2842020-10-01 Kamil Rytarowski <n54@gmx.com>
285
286 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
287
95eb9e54
TV
2882020-09-30 Tom de Vries <tdevries@suse.de>
289
290 PR symtab/26683
291 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
292
cae21f8e
TT
2932020-09-30 Tom Tromey <tromey@adacore.com>
294
295 * dwarf2/read.c (handle_variant): Use constant_value.
296
529908cb
TT
2972020-09-29 Tom Tromey <tom@tromey.com>
298
299 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
300 (read_file_scope, dwarf2_get_pc_bounds)
301 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
302 (read_structure_type, handle_struct_member_die)
303 (read_enumeration_type, read_array_type, read_set_type)
304 (read_tag_pointer_type, read_tag_reference_type)
305 (read_subroutine_type, read_base_type, read_subrange_type)
306 (read_full_die_1, partial_die_info::read)
307 (partial_die_info::read, by, new_symbol)
308 (dwarf2_const_value_data, dwarf2_const_value_attr)
309 (dump_die_shallow, dwarf2_fetch_constant_bytes)
310 (prepare_one_comp_unit): Update.
311 * dwarf2/attribute.h (DW_UNSND): Remove.
312
c45bc3f8
TT
3132020-09-29 Tom Tromey <tom@tromey.com>
314
315 * dwarf2/read.c (read_func_scope, prototyped_function_p)
316 (read_subroutine_type, partial_die_info::read)
317 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
318 (dwarf2_add_member_fn): Update.
319 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
320 * dwarf2/attribute.c (attribute::as_boolean): New method.
321
23dca5c3
TT
3222020-09-29 Tom Tromey <tom@tromey.com>
323
324 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
325 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
326 method.
327 * dwarf2/attribute.c (attribute::as_virtuality): New method.
328
52c14d11
TT
3292020-09-29 Tom Tromey <tom@tromey.com>
330
331 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
332 the attribute's form.
333
e8e5c158
TT
3342020-09-29 Tom Tromey <tom@tromey.com>
335
336 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
337 (dwarf2_add_member_fn): Update.
338 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
339 * dwarf2/attribute.c (attribute::defaulted): New method, from
340 is_valid_DW_AT_defaulted.
341
d4df075e
TT
3422020-09-29 Tom Tromey <tom@tromey.com>
343
344 * dwarf2/read.c (dw2_get_file_names_reader)
345 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
346 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
347 (dwarf2_symbol_mark_computed): Use as_unsigned.
348 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
349 method.
350 <form_is_section_offset>: Update comment.
351
bf23a268
TT
3522020-09-29 Tom Tromey <tom@tromey.com>
353
354 * dwarf2/read.c (dwarf2_access_attribute): Rename from
355 dwarf2_default_access_attribute. Look up attribute.
356 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
357 Update.
358
7a5f294d
TT
3592020-09-29 Tom Tromey <tom@tromey.com>
360
361 * dwarf2/read.c (skip_one_die): Update.
362 (read_full_die_1): Change how reprocessing is done.
363 (partial_die_info::read): Update.
364 (read_attribute_value): Remove need_reprocess parameter.
365 (read_attribute): Likewise.
366 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
367 New method.
368
36d378cf
TT
3692020-09-29 Tom Tromey <tom@tromey.com>
370
371 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
372 (dwarf2_const_value_attr, dump_die_shallow)
373 (dwarf2_fetch_constant_bytes): Update.
374 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
375 comment.
376 <set_address>: New method.
377 (DW_ADDR): Remove.
378 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
379 (attribute::as_string, attribute::as_address): Add assert.
380
fe56917a
TT
3812020-09-29 Tom Tromey <tom@tromey.com>
382
383 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
384 (read_attribute_reprocess, read_attribute_value): Update.
385 (read_attribute): Clear requires_reprocessing.
386 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
387 form_requires_reprocessing>: New methods.
388 <string_init>: Clear requires_reprocessing.
389 <set_unsigned_reprocess>: New method.
390 <name>: Shrink by one bit.
391 <requires_reprocessing>: New member.
392 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
393 method.
394
414ad644
TT
3952020-09-29 Tom Tromey <tom@tromey.com>
396
397 * dwarf2/read.c (read_attribute_value): Update.
398 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
399 set_unsigned>: New methods.
400 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
401
1bc397c5
TT
4022020-09-29 Tom Tromey <tom@tromey.com>
403
404 * dwarf2/read.c (get_alignment, read_array_order)
405 (read_attribute_value, dwarf2_const_value_attr)
406 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
407 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
408 New methods.
409 (DW_SND): Remove.
410
630ed6b9
TT
4112020-09-29 Tom Tromey <tom@tromey.com>
412
413 * dwarf2/read.c (read_attribute_value, lookup_die_type)
414 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
415 Update.
416 * dwarf2/attribute.h (struct attribute) <as_signature,
417 set_signature>: New methods.
418 (DW_SIGNATURE): Remove.
419
9d2246fc
TT
4202020-09-29 Tom Tromey <tom@tromey.com>
421
422 * dwarf2/read.c (read_call_site_scope)
423 (handle_data_member_location, dwarf2_add_member_fn)
424 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
425 (partial_die_info::read, read_attribute_value)
426 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
427 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
428 (dwarf2_symbol_mark_computed): Update.
429 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
430 methods.
431 (DW_BLOCK): Remove.
432 * dwarf2/attribute.c (attribute::form_is_block): Add
433 DW_FORM_data16.
434
c6481205
TT
4352020-09-29 Tom Tromey <tom@tromey.com>
436
437 * dwarf2/read.c (read_cutu_die_from_dwo)
438 (read_attribute_reprocess, read_attribute_value, read_attribute)
439 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
440 (dwarf2_fetch_constant_bytes): Update.
441 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
442 <set_string_noncanonical, set_string_canonical>: New methods.
443 <string_is_canonical>: Update comment.
444 <canonical_string_p>: Add assert.
445 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
446 * dwarf2/attribute.c (attribute::form_is_string): New method.
447 (attribute::string): Use it.
448
3b64bf15
TT
4492020-09-29 Tom Tromey <tom@tromey.com>
450
451 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
452 (dump_die_shallow): Use canonical_string_p.
453 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
454 method.
455
2c830f54
TT
4562020-09-29 Tom Tromey <tom@tromey.com>
457
458 * dwarf2/read.c (partial_die_info::read)
459 (dwarf2_const_value_attr, anonymous_struct_prefix, )
460 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
461 attribute::as_string.
462
6c412691
TT
4632020-09-29 Tom Tromey <tom@tromey.com>
464
465 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
466 DW_ADDR.
467 (attribute::string): Don't use DW_STRING.
468 (attribute::get_ref_die_offset): Don't use DW_UNSND.
469 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
470
95f982e5
TT
4712020-09-29 Tom Tromey <tom@tromey.com>
472
473 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
474 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
475 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
476 * dwarf2/attribute.h (struct attribute): Rename methods.
477 * dwarf2/attribute.c (attribute::as_address): Rename from
478 value_as_address.
479 (attribute::as_string): Rename from value_as_string.
480
f800b00e
TT
4812020-09-29 Tom Tromey <tom@tromey.com>
482
483 * dwarf2/read.c (partial_die_info::read) <case
484 DW_AT_linkage_name>: Use value_as_string.
485 (dwarf2_string_attr): Use value_as_string.
486 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
487 method.
488 * dwarf2/attribute.c (attribute::value_as_string): New method.
489
de38d64a
PA
4902020-09-29 Pedro Alves <pedro@palves.net>
491
492 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
493 defined before using '#pragma GCC diagnostic' instead of checking
494 __clang__.
495
9aed480c
TT
4962020-09-28 Tom Tromey <tom@tromey.com>
497
498 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
499 (handle_signal_stop): Update.
500 * procfs.c (procfs_target::insert_watchpoint): Update.
501 * target.h (target_have_steppable_watchpoint): Now a function.
502
8a3ecb79
TT
5032020-09-28 Tom Tromey <tom@tromey.com>
504
505 * infrun.c (set_schedlock_func): Update.
506 * target.h (target_can_lock_scheduler): Now a function.
507
55f6301a
TT
5082020-09-28 Tom Tromey <tom@tromey.com>
509
510 * inferior.h (class inferior) <has_execution>: Update.
511 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
512 * valops.c (find_function_in_inferior)
513 (value_allocate_space_in_inferior): Update.
514 * top.c (kill_or_detach): Update.
515 * target.c (target_preopen, set_target_permissions): Update.
516 (target_has_execution_current): Remove.
517 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
518 Update.
519 * solib.c (update_solib_list, reload_shared_libraries): Update.
520 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
521 * solib-dsbt.c (enable_break): Update.
522 * score-tdep.c (score7_fetch_inst): Update.
523 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
524 Update.
525 * remote.c (remote_target::start_remote)
526 (remote_target::remote_check_symbols, remote_target::open_1)
527 (remote_target::remote_detach_1, remote_target::verify_memory)
528 (remote_target::xfer_partial, remote_target::read_description)
529 (remote_target::get_min_fast_tracepoint_insn_len): Update.
530 * record-full.c (record_full_open_1): Update.
531 * record-btrace.c (record_btrace_target_open): Update.
532 * objc-lang.c (lookup_objc_class, lookup_child_selector)
533 (value_nsstring): Update.
534 * linux-thread-db.c (add_thread_db_info)
535 (thread_db_find_new_threads_silently, check_thread_db_callback)
536 (try_thread_db_load_1, record_thread): Update.
537 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
538 Update.
539 * linux-fork.c (checkpoint_command): Update.
540 * infrun.c (set_non_stop, set_observer_mode)
541 (check_multi_target_resumption, for_each_just_stopped_thread)
542 (maybe_remove_breakpoints, normal_stop)
543 (class infcall_suspend_state): Update.
544 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
545 (info_program_command, attach_command): Update.
546 * infcall.c (call_function_by_hand_dummy): Update.
547 * inf-loop.c (inferior_event_handler): Update.
548 * gcore.c (gcore_command, derive_heap_segment): Update.
549 * exec.c (exec_file_command): Update.
550 * eval.c (evaluate_subexp): Update.
551 * compile/compile.c (compile_to_object): Update.
552 * cli/cli-dump.c (restore_command): Update.
553 * breakpoint.c (update_watchpoint)
554 (update_inserted_breakpoint_locations)
555 (insert_breakpoint_locations, get_bpstat_thread): Update.
556 * target.h (target_has_execution): Remove macro.
557 (target_has_execution_current): Don't declare.
558 (target_has_execution): Rename from target_has_execution_1. Add
559 argument default.
560
05374cfd
TT
5612020-09-28 Tom Tromey <tom@tromey.com>
562
563 * mi/mi-main.c (exec_reverse_continue)
564 (mi_cmd_list_target_features): Update.
565 * infrun.c (set_exec_direction_func): Update.
566 * target.c (default_execution_direction): Update.
567 * reverse.c (exec_reverse_once): Update.
568 * target.h (target_can_execute_reverse): Now a function.
569
9dccd06e
TT
5702020-09-28 Tom Tromey <tom@tromey.com>
571
572 * tui/tui-regs.c (tui_get_register)
573 (tui_data_window::show_registers): Update.
574 * thread.c (scoped_restore_current_thread::restore)
575 (scoped_restore_current_thread::scoped_restore_current_thread):
576 Update.
577 * regcache-dump.c (regcache_print): Update.
578 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
579 Update.
580 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
581 * mep-tdep.c (current_me_module, current_options): Update.
582 * linux-thread-db.c (thread_db_load): Update.
583 * infcmd.c (registers_info, info_vector_command)
584 (info_float_command): Update.
585 * ia64-tdep.c (ia64_frame_prev_register)
586 (ia64_sigtramp_frame_prev_register): Update.
587 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
588 * gcore.c (derive_stack_segment): Update.
589 * frame.c (get_current_frame, has_stack_frames): Update.
590 * findvar.c (language_defn::read_var_value): Update.
591 * arm-tdep.c (arm_pc_is_thumb): Update.
592 * target.c (target_has_registers): Rename from
593 target_has_registers_1.
594 * target.h (target_has_registers): Remove macro.
595 (target_has_registers): Rename from target_has_registers_1.
596
841de120
TT
5972020-09-28 Tom Tromey <tom@tromey.com>
598
599 * windows-tdep.c (tlb_make_value): Update.
600 * tui/tui-regs.c (tui_data_window::show_registers): Update.
601 * thread.c (scoped_restore_current_thread::restore)
602 (scoped_restore_current_thread::scoped_restore_current_thread)
603 (thread_command): Update.
604 * stack.c (backtrace_command_1, frame_apply_level_command)
605 (frame_apply_all_command, frame_apply_command): Update.
606 * infrun.c (siginfo_make_value, restore_infcall_control_state):
607 Update.
608 * gcore.c (derive_stack_segment): Update.
609 * frame.c (get_current_frame, has_stack_frames): Update.
610 * auxv.c (info_auxv_command): Update.
611 * ada-tasks.c (ada_build_task_list): Update.
612 * target.c (target_has_stack): Rename from target_has_stack_1.
613 * target.h (target_has_stack): Remove macro.
614 (target_has_stack): Rename from target_has_stack_1.
615
a739972c
TT
6162020-09-28 Tom Tromey <tom@tromey.com>
617
618 * target.c (target_has_memory): Rename from target_has_memory_1.
619 * tui/tui-regs.c (tui_data_window::show_registers): Update.
620 * thread.c (scoped_restore_current_thread::restore)
621 (scoped_restore_current_thread::scoped_restore_current_thread):
622 Update.
623 * frame.c (get_current_frame, has_stack_frames): Update.
624 * target.h (target_has_memory): Remove macro.
625 (target_has_memory): Rename from target_has_memory_1.
626
5b8a4776
TT
6272020-09-28 Tom Tromey <tom@tromey.com>
628
629 * target.c (target_has_all_memory_1): Remove.
630 * target.h (target_has_all_memory): Remove define.
631 (target_has_all_memory_1): Don't declare.
632
bd356ec6
SM
6332020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
634
635 * ser-base.c: Adjust comments formatting.
636
2c72d5e5
TT
6372020-09-27 Tom Tromey <tom@tromey.com>
638
639 PR tui/25342:
640 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
641
35a98237
TT
6422020-09-27 Tom Tromey <tom@tromey.com>
643
644 PR tui/25342:
645 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
646
9e820dec
TT
6472020-09-27 Tom Tromey <tom@tromey.com>
648
649 * unittests/tui-selftests.c: Update.
650 * tui/tui-winsource.h (struct tui_source_window_base)
651 <extra_margin, show_line_number, refresh_pad>: New methods.
652 <m_max_length, m_pad>: New members.
653 (tui_copy_source_line): Update.
654 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
655 first_col, line_width, ndigits parameters. Add length.
656 (tui_source_window_base::show_source_line): Write to pad. Line
657 number now 0-based.
658 (tui_source_window_base::refresh_pad): New method.
659 (tui_source_window_base::show_source_content): Write to pad. Call
660 refresh_pad.
661 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
662 not refill.
663 (tui_source_window_base::update_exec_info): Call
664 show_line_number.
665 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
666 method.
667 <m_digits>: New member.
668 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
669 and m_max_length.
670 (tui_source_window::show_line_number): New method.
671 * tui/tui-io.h (tui_puts): Fix comment.
672 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
673 m_max_length.
674
c15c15c8
TT
6752020-09-27 Tom Tromey <tom@tromey.com>
676
677 * tui/tui-winsource.c
678 (tui_source_window_base::set_is_exec_point_at): Don't call
679 show_source_line.
680
149830c1
TT
6812020-09-27 Tom Tromey <tom@tromey.com>
682
683 * python/py-tui.c (class tui_py_window) <refresh_window>: New
684 method.
685 <erase>: Update.
686 <cursor_x, cursor_y>: Remove.
687 <m_inner_window>: New member.
688 (tui_py_window::rerender): Create inner window.
689 (tui_py_window::output): Write to inner window.
690
8f9929bb
GR
6912020-09-26 Gareth Rees <grees@undo.io> (tiny change)
692
693 PR python/26586
694 * cli/cli-script.c (execute_control_commands): don't set
695 instream to nullptr here as this breaks the from_tty argument
696 to gdb.execute in Python.
697 (execute_user_command): set instream to nullptr here instead.
698
956bdb59
SM
6992020-09-25 Simon Marchi <simon.marchi@efficios.com>
700
701 * infrun.h (infrun_debug_printf): Fix formatting.
702 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
703
3b93626b
SJ
7042020-09-25 Saagar Jha <saagar@saagarjha.com>
705
706 * compile/compile-object-load.h (struct munmap_list): Add
707 explicitly-defined move constructor.
708
b551a89f
TT
7092020-09-24 Tom Tromey <tromey@adacore.com>
710
711 PR tui/26638:
712 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
713 method.
714 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
715 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
716 (tui_prev_win): Rewrite.
717
99bb393f
HD
7182020-09-23 Hannes Domani <ssbssa@yahoo.de>
719
720 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
721 in WOW64 processes as SIGINT.
722 * nat/windows-nat.h: Make wow64_process a shared variable.
723 * windows-nat.c: Remove static wow64_process variable.
724
20a5fcbd
TT
7252020-09-23 Tom Tromey <tom@tromey.com>
726
727 PR symtab/25470:
728 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
729 offset and bit size.
730 * printcmd.c (print_scalar_formatted): Handle zero-length
731 integer.
732 (print_scalar_formatted): Use bit_size_differs_p.
733 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
734 constant.
735 (union type_specific): <int_stuff>: New member.
736 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
737 methods.
738 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
739 TYPE_SPECIFIC_FIELD.
740 (recursive_dump_type, copy_type_recursive): Update.
741 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
742 DW_AT_data_bit_offset.
743
bac51ab7
TT
7442020-09-23 Tom Tromey <tom@tromey.com>
745
746 * utils.h (class gdb_argv): Add move operators.
747 <append>: New methods.
748 * compile/compile.c (build_argc_argv): Remove.
749 (compile_args_argc): Remove.
750 (compile_args_argv): Change type.
751 (set_compile_args): Simplify.
752 (append_args): Remove.
753 (filter_args): Remove argcp parameter.
754 (get_args): Return gdb_argv. Simplify.
755 (compile_to_object): Update.
756
92677124
TT
7572020-09-23 Tom Tromey <tom@tromey.com>
758
759 * compile/compile-object-run.c (do_module_cleanup)
760 <~do_module_cleanup> :Remove.
761 (do_module_cleanup): Update.
762 * compile/compile-object-load.h (struct munmap_list): Add move
763 assignment operator.
764 <source_file>: Now a std::string.
765 <munmap_list>: Rename. No longer a pointer.
766 * compile/compile-object-load.c (struct setup_sections_data): Add
767 constructor.
768 <setup_one_section>: Declare.
769 <munmap_list>: Move earlier.
770 <m_bfd>: New member.
771 <m_last_size, m_last_section_first, m_last_prot,
772 m_last_max_alignment>: Rename, add initializers where needed.
773 (setup_sections_data::setup_one_section): Rename from
774 setup_sections. Update.
775 (compile_object_load): Update. Don't use bfd_map_over_sections.
776
e616f60a
TT
7772020-09-23 Tom Tromey <tom@tromey.com>
778
779 * compile/compile-object-run.c (struct do_module_cleanup): Add
780 parameters to constructor. Update destructor.
781 <source_file, scope, scope_data, out_value_type, out_value_addr,
782 munmap_list_head, objfile_name_string>: Remove.
783 <module>: New member.
784 (do_module_cleanup): Update.
785 (compile_object_run): Update.
786
e947a848
TT
7872020-09-23 Tom Tromey <tom@tromey.com>
788
789 * compile/compile.c (eval_compile_command): Update.
790 * compile/compile-object-run.h (compile_object_run): Take a
791 compile_module_up.
792 * compile/compile-object-run.c (compile_object_run): Take a
793 compile_module_up.
794 * compile/compile-object-load.h (struct compile_module): Add
795 constructor, destructor.
796 (compile_module_up): New typedef.
797 (compile_object_load): Return compile_object_up.
798 * compile/compile-object-load.c (compile_object_load): Return
799 compile_module_up.
800
0dbf6ee6
TT
8012020-09-23 Tom Tromey <tom@tromey.com>
802
803 * compile/compile-object-run.c (struct do_module_cleanup): Add
804 constructor, destructor.
805 <objfile_name_string>: Don't use struct hack.
806 (do_module_cleanup): Use delete.
807 (compile_object_run): Use new.
808
ebe824f5
TT
8092020-09-23 Tom Tromey <tom@tromey.com>
810
811 * compile/compile-cplus-types.c
812 (compile_cplus_convert_struct_or_union): Use std::vector.
813 (compile_cplus_convert_func): Likewise.
814 * compile/compile-c-types.c (convert_func): Use std::vector.
815
5dd918d9
TT
8162020-09-21 Tom Tromey <tromey@adacore.com>
817
818 * sparc-tdep.c (sparc32_skip_prologue): Use
819 skip_prologue_using_sal.
820
5486c517
TT
8212020-09-19 Tom Tromey <tom@tromey.com>
822
823 * symfile.c (add_section_size_callback): Remove.
824 (load_one_section): Rename from load_section_callback. Change
825 parameters.
826 (generic_load): Use foreach.
827
8a6bb1d1
TT
8282020-09-19 Tom Tromey <tom@tromey.com>
829
830 * exec.c (add_to_section_table): Remove.
831 (build_section_table): Use foreach.
832
08f93a1a
TT
8332020-09-19 Tom Tromey <tom@tromey.com>
834
835 * elfread.c (elf_locate_sections): Change parameters.
836 (elf_symfile_read): Use foreach.
837
03cd72b8
TT
8382020-09-19 Tom Tromey <tom@tromey.com>
839
840 * cli/cli-dump.c (struct callback_data): Remove.
841 (restore_one_section): Rename from restore_section_callback.
842 Change parameters.
843 (restore_binary_file): Change parameters.
844 (restore_command): Use foreach.
845
f4f2b85f
TT
8462020-09-19 Tom Tromey <tom@tromey.com>
847
848 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
849 (gcore_copy_callback): Likewise.
850 (gcore_memory_sections): Use foreach.
851
b35c1d1c
TT
8522020-09-19 Tom Tromey <tom@tromey.com>
853
854 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
855 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
856 parameters.
857 (generic_elf_osabi_sniffer): Use foreach.
858 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
859 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
860
5bb6e9dd
TT
8612020-09-19 Tom Tromey <tom@tromey.com>
862
863 * dwarf2/read.c (locate_dwz_sections): Change parameters.
864 (dwarf2_get_dwz_file): Use foreach.
865 (dwarf2_locate_dwo_sections): Change parameters.
866 (open_and_init_dwo_file): Use foreach.
867 (dwarf2_locate_common_dwp_sections): Change parameters.
868 (open_and_init_dwp_file): Use foreach.
869
ad7277da
TT
8702020-09-19 Tom Tromey <tom@tromey.com>
871
872 * symfile.h: (find_lowest_section): Don't declare.
873 * symfile.c (find_lowest_section): Now static. Change
874 parameters.
875 (struct place_section_arg): Remove.
876 (place_section): Change parameters.
877 (addr_info_make_relative): Use foreach.
878 (symfile_dummy_outputs): Remove.
879 (default_symfile_relocate): Use foreach.
880
cb814f2e
TT
8812020-09-19 Tom Tromey <tom@tromey.com>
882
883 * objfiles.c (add_to_objfile_sections): Rename from
884 add_to_objfile_sections_full.
885 (add_to_objfile_sections): Remove.
886 (build_objfile_section_table): Use foreach.
887
3cabfd26
TT
8882020-09-19 Tom Tromey <tom@tromey.com>
889
890 * stap-probe.c (get_stap_base_address_1): Remove.
891 (get_stap_base_address): Use foreach.
892
1ce51eb5
TT
8932020-09-19 Tom Tromey <tom@tromey.com>
894
895 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
896 parameters.
897 (gdb_bfd_close_or_warn): Use foreach.
898
a190fabb
TT
8992020-09-19 Tom Tromey <tom@tromey.com>
900
901 * corelow.c (add_to_thread_list): Change parameters.
902 (core_target_open): Use foreach.
903
cafb0d81
TT
9042020-09-19 Tom Tromey <tom@tromey.com>
905
906 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
907 existing function.
908
c8d5abea
AB
9092020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
910
911 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
912 for arrays.
913
6d816919
AB
9142020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
915
916 * eval.c: Remove 'f-lang.h' include.
917 (value_f90_subarray): Moved to f-lang.c.
918 (eval_call): Renamed to...
919 (evaluate_subexp_do_call): ...this, is no longer static, header
920 comment moved into header file.
921 (evaluate_funcall): Update call to eval_call.
922 (skip_undetermined_arglist): Moved to f-lang.c.
923 (fortran_value_subarray): Likewise.
924 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
925 moved to evaluate_subexp_f.
926 (calc_f77_array_dims): Moved to f-lang.c
927 * expprint.c (print_subexp_funcall): New function.
928 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
929 moved to print_subexp_f, OP_FUNCALL uses new function.
930 (dump_subexp_body_funcall): New function.
931 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
932 moved to dump_subexp_f, OP_FUNCALL uses new function.
933 * expression.h (evaluate_subexp_do_call): Declare.
934 * f-lang.c (value_f90_subarray): Moved from eval.c.
935 (skip_undetermined_arglist): Likewise.
936 (calc_f77_array_dims): Likewise.
937 (fortran_value_subarray): Likewise.
938 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
939 (operator_length_f): Likewise.
940 (print_subexp_f): Likewise.
941 (dump_subexp_body_f): Likewise.
942 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
943 declaration of this operation to here.
944 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
945 support moved to operator_length_f.
946 * parser-defs.h (dump_subexp_body_funcall): Declare.
947 (print_subexp_funcall): Declare.
948 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
949 fortran-operator.def.
950
8c37706a
AB
9512020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
952
953 * eval.c (fortran_value_subarray): New function, content is taken
954 from...
955 (evaluate_subexp_standard): ...here, in two places. Now arrays
956 and strings both call the new function.
957 (calc_f77_array_dims): Add header comment, handle strings.
958
14f9473c
VC
9592020-09-18 Victor Collod <vcollod@nvidia.com>
960
961 PR gdb/26635
962 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
963 (i386_analyze_prologue): Call i386_skip_endbr.
964
b60cea74
TT
9652020-09-18 Tom Tromey <tromey@adacore.com>
966
967 * windows-nat.c (struct windows_nat_target) <wait>: Update.
968 (windows_nat_target::wait): Update.
969 * target/wait.h (enum target_wait_flag): New. Use
970 DEF_ENUM_FLAGS_TYPE.
971 * target/target.h (target_wait): Change type of options.
972 * target.h (target_options_to_string, default_target_wait):
973 Update.
974 (struct target_ops) <wait>: Change type of options.
975 * target.c (target_wait, default_target_wait, do_option): Change
976 type of "options".
977 (target_options_to_string): Likewise.
978 * target-delegates.c: Rebuild.
979 * target-debug.h (target_debug_print_target_wait_flags): Rename
980 from target_debug_print_options.
981 * sol-thread.c (class sol_thread_target) <wait>: Update.
982 (sol_thread_target::wait): Update.
983 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
984 (rs6000_nat_target::wait): Update.
985 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
986 Update.
987 (remote_target::wait_ns, remote_target::wait_as): Change type of
988 "options".
989 (remote_target::wait): Update.
990 * remote-sim.c (struct gdbsim_target) <wait>: Update.
991 (gdbsim_target::wait): Update.
992 * record-full.c (class record_full_base_target) <wait>: Update.
993 (record_full_wait_1): Change type of "options".
994 (record_full_base_target::wait): Update.
995 * record-btrace.c (class record_btrace_target) <wait>: Update.
996 (record_btrace_target::wait): Update.
997 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
998 Update.
999 (ravenscar_thread_target::wait): Update.
1000 * procfs.c (class procfs_target) <wait>: Update.
1001 (procfs_target::wait): Update.
1002 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1003 * obsd-nat.c (obsd_nat_target::wait): Update.
1004 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1005 (nto_procfs_target::wait): Update.
1006 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1007 * nbsd-nat.c (nbsd_wait): Change type of "options".
1008 (nbsd_nat_target::wait): Update.
1009 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1010 (thread_db_target::wait): Update.
1011 * linux-nat.h (class linux_nat_target) <wait>: Update.
1012 * linux-nat.c (linux_nat_target::wait): Update.
1013 (linux_nat_wait_1): Update.
1014 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1015 "options".
1016 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1017 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1018 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1019 (go32_nat_target::wait): Update.
1020 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1021 * gnu-nat.c (gnu_nat_target::wait): Update.
1022 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1023 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1024 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1025 * darwin-nat.c (darwin_nat_target::wait): Update.
1026 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1027 (bsd_uthread_target::wait): Update.
1028 * aix-thread.c (class aix_thread_target) <wait>: Update.
1029 (aix_thread_target::wait): Update.
1030
0295dde6
AB
10312020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1032
1033 * compile/compile-object-run.c (create_copied_type_recursive): New
1034 function.
1035 (compile_object_run): Use new function.
1036
d3483b43
JT
10372020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1038
1039 * NEWS: Mention x86_64 Cygwin core file support.
1040
e7d612ad
JT
10412020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1042
1043 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1044 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1045
aff9d387
JT
10462020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1047
62a5151b
JT
1048 * windows-tdep.h: Add prototypes.
1049 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1050 (i386_windows_core_pid_to_str): Move and rename ...
1051 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1052 (windows_core_pid_to_str): ... and here.
1053 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1054
10552020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1056 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1057 (amd64_windows_init_abi_common): ... and register.
1058
7d155da3
JT
10592020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1060
1061 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1062 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1063
e8ef12b9
PA
10642020-09-18 Pedro Alves <pedro@palves.net>
1065
1066 PR gdb/26631
1067 * thread.c (thread_find_command): Switch inferior before calling
1068 target methods.
1069
c1e1314d
TT
10702020-09-17 Tom Tromey <tromey@adacore.com>
1071
1072 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1073 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1074 (tdesc_arch_data_up): New typedef.
1075 (tdesc_use_registers, tdesc_data_alloc): Update.
1076 (tdesc_data_cleanup): Don't declare.
1077 * target-descriptions.c (tdesc_data_alloc): Return a
1078 tdesc_arch_data_up.
1079 (tdesc_arch_data_deleter::operator()): Rename from
1080 tdesc_data_cleanup. Change argument type.
1081 (tdesc_use_registers): Change early_data to an rvalue reference.
1082 (tdesc_use_registers): Don't use delete.
1083 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1084 * s390-tdep.c (s390_gdbarch_init): Update.
1085 * rx-tdep.c (rx_gdbarch_init): Update.
1086 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1087 * riscv-tdep.c (riscv_gdbarch_init): Update.
1088 * or1k-tdep.c (or1k_gdbarch_init): Update.
1089 * nios2-tdep.c (nios2_gdbarch_init): Update.
1090 * nds32-tdep.c (nds32_gdbarch_init): Update.
1091 * mips-tdep.c (mips_gdbarch_init): Update.
1092 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1093 * m68k-tdep.c (m68k_gdbarch_init): Update.
1094 * i386-tdep.c (i386_gdbarch_init): Update.
1095 * arm-tdep.c (arm_gdbarch_init): Update.
1096 * arc-tdep.c (arc_tdesc_init): Update.
1097 (arc_gdbarch_init): Update.
1098 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1099
0363df3d
HD
11002020-09-17 Hannes Domani <ssbssa@yahoo.de>
1101
1102 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1103 for WOW64 processes.
1104
280a9412
TT
11052020-09-17 Tom Tromey <tom@tromey.com>
1106
1107 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1108
6108fd18
TT
11092020-09-17 Tom Tromey <tom@tromey.com>
1110
1111 * value.c (preserve_values): Update.
1112 * python/py-type.c (save_objfile_types): Update.
1113 * guile/scm-type.c (save_objfile_types): Update.
1114 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1115 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1116 * compile/compile-object-run.c (compile_object_run): Update.
1117
fa9b1164
TT
11182020-09-17 Tom Tromey <tom@tromey.com>
1119
1120 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1121 Remove.
1122 <m_table>: Now htab_up.
1123 * typeprint.c (typedef_hash_table::recursively_update)
1124 (typedef_hash_table::add_template_parameters)
1125 (typedef_hash_table::typedef_hash_table): Update.
1126 (typedef_hash_table::~typedef_hash_table): Remove.
1127 (typedef_hash_table::typedef_hash_table)
1128 (typedef_hash_table::find_global_typedef)
1129 (typedef_hash_table::find_typedef): Update.
1130
eb53f105
TT
11312020-09-17 Tom Tromey <tom@tromey.com>
1132
1133 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1134
7a8a5d47
TT
11352020-09-17 Tom Tromey <tom@tromey.com>
1136
1137 * linespec.c (class decode_compound_collector)
1138 <~decode_compound_collector>: Remove.
1139 <m_unique_syms>: Now htab_up.
1140 (decode_compound_collector::operator ()): Update.
1141 (class symtab_collector) <~symtab_collector>: Remove.
1142 <m_symtab_table>: Now htab_up.
1143 (symtab_collector::operator ()): Update.
1144
99032cfc
TT
11452020-09-17 Tom Tromey <tom@tromey.com>
1146
1147 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1148 (filename_seen_cache::clear): Update.
1149 (~filename_seen_cache): Remove.
1150 (filename_seen_cache::seen): Update.
1151 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1152 htab_up.
1153 <~filename_seen_cache>: Remove.
1154 <traverse>: Update.
1155
32580f6d
TT
11562020-09-17 Tom Tromey <tom@tromey.com>
1157
1158 * completer.c (completion_tracker::discard_completions)
1159 (completion_tracker::~completion_tracker)
1160 (completion_tracker::maybe_add_completion)
1161 (completion_tracker::remove_completion)
1162 (completion_tracker::recompute_lowest_common_denominator)
1163 (completion_tracker::build_completion_result): Update.
1164 * completer.h (class completion_tracker) <have_completions>:
1165 Update.
1166 <m_entries_hash>: Now htab_up.
1167
c1fb9836
TT
11682020-09-17 Tom Tromey <tom@tromey.com>
1169
1170 * breakpoint.c (ambiguous_names_p): Use htab_up.
1171
88f07206
TT
11722020-09-17 Tom Tromey <tom@tromey.com>
1173
1174 * auto-load.c (struct auto_load_pspace_info)
1175 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1176 <loaded_script_files, loaded_script_texts>: Change type to
1177 htab_up.
1178 (~auto_load_pspace_info) Remove.
1179 (init_loaded_scripts_info, maybe_add_script_file)
1180 (maybe_add_script_text, auto_load_info_scripts): Update.
1181
9519b2ee
TT
11822020-09-17 Tom Tromey <tromey@adacore.com>
1183
1184 * c-exp.y (name_obstack): Now static.
1185
d2cd4113
CC
11862020-09-17 Chungyi Chi <demonic@csie.io>
1187
1188 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1189
b650a282
SM
11902020-09-16 Simon Marchi <simon.marchi@efficios.com>
1191
1192 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1193 (add_solib_catchpoint): Likewise.
1194 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1195 to bool.
1196 (add_solib_catchpoint): Change int parameter/variable to bool.
1197 (catch_load_or_unload): Likewise.
1198 (init_catchpoint): Likewise.
1199 (create_fork_vfork_event_catchpoint): Likewise.
1200 (catch_fork_command_1): Likewise.
1201 (catch_exec_command_1): Likewise.
1202
4d0bcfcf
SM
12032020-09-16 Simon Marchi <simon.marchi@efficios.com>
1204
1205 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1206 Change instance_flags to m_instance_flags.
1207
fe830662
TT
12082020-09-16 Tom Tromey <tromey@adacore.com>
1209
1210 PR gdb/26598:
1211 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1212
fe5ddfc3
JB
12132020-09-16 John Baldwin <jhb@FreeBSD.org>
1214
1215 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1216 PL_FLAG_EXEC.
1217 (fbsd_nat_target::insert_exec_catchpoint)
1218 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1219 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1220 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1221
e911c666
JB
12222020-09-16 John Baldwin <jhb@FreeBSD.org>
1223
1224 * configure.ac: Remove check for kinfo_getvmmap().
1225 * configure, config.in: Regenerate.
1226 * fbsd-nat.c (fbsd_read_mapping): Remove
1227 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1228 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1229 kinfo_get_vmmap() are always present.
1230
1f17d372
JB
12312020-09-16 John Baldwin <jhb@FreeBSD.org>
1232
1233 * fbsd-nat.c: Always include support for
1234 TARGET_OBJECT_SIGNAL_INFO.
1235
bcb1da7f
JB
12362020-09-16 John Baldwin <jhb@FreeBSD.org>
1237
1238 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1239 sysctl and remove procfs fallback.
1240
5515f729
JB
12412020-09-16 John Baldwin <jhb@FreeBSD.org>
1242
1243 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1244 * fbsd-nat.h: Likewise.
1245
da1df1db
TBA
12462020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1247
1248 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1249 argument.
1250
0e25e767
AB
12512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1252
1253 * ada-lang.c (ada_language_data): Delete.
1254 (ada_language): Remove references to ada_language_data.
1255 * c-lang.c (c_language_data): Delete.
1256 (c_language): Remove references to c_language_data.
1257 (cplus_language_data): Delete.
1258 (cplus_language): Remove references to cplus_language_data.
1259 (asm_language_data): Delete.
1260 (asm_language): Remove references to asm_language_data.
1261 (minimal_language_data): Delete.
1262 (minimal_language): Remove references to minimal_language_data.
1263 * d-lang.c (d_language_data): Delete.
1264 (d_language): Remove references to d_language_data.
1265 * f-lang.c (f_language_data): Delete.
1266 (f_language): Remove references to f_language_data.
1267 * go-lang.c (go_language_data): Delete.
1268 (go_language): Remove references to go_language_data.
1269 * language.c (unknown_language_data): Delete.
1270 (unknown_language): Remove references to unknown_language_data.
1271 (auto_language_data): Delete.
1272 (auto_language): Remove references to auto_language_data.
1273 * language.h (language_data): Delete struct.
1274 (language_defn): No longer inherit from language_data.
1275 * m2-lang.c (m2_language_data): Delete.
1276 (m2_language): Remove references to m2_language_data.
1277 * objc-lang.c (objc_language_data): Delete.
1278 (objc_language): Remove references to objc_language_data.
1279 * opencl-lang.c (opencl_language_data): Delete.
1280 (opencl_language): Remove references to opencl_language_data.
1281 * p-lang.c (pascal_language_data): Delete.
1282 (pascal_language): Remove references to pascal_language_data.
1283 * rust-lang.c (rust_language_data): Delete.
1284 (rust_language): Remove references to rust_language_data.
1285
b7c6e27d
AB
12862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1287
1288 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1289 initializer.
1290 (ada_language::opcode_print_table): New member function.
1291 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1292 (c_language::opcode_print_table): New member function.
1293 (cplus_language_data): Remove la_op_print_tab initializer.
1294 (cplus_language::opcode_print_table): New member function.
1295 (asm_language_data): Remove la_op_print_tab initializer.
1296 (asm_language::opcode_print_table): New member function.
1297 (minimal_language_data): Remove la_op_print_tab initializer.
1298 (minimal_language::opcode_print_table): New member function.
1299 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1300 (d_language::opcode_print_table): New member function.
1301 * expprint.c (print_subexp_standard): Update call to
1302 opcode_print_table.
1303 (op_string): Likewise.
1304 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1305 (f_language::opcode_print_table): New member function.
1306 * go-lang.c (go_language_data): Remove la_op_print_tab
1307 initializer.
1308 (go_language::opcode_print_table): New member function.
1309 * language.c (unknown_language_data): Remove la_op_print_tab
1310 initializer.
1311 (unknown_language::opcode_print_table): New member function.
1312 (auto_language_data): Remove la_op_print_tab initializer.
1313 (auto_language::opcode_print_table): New member function.
1314 * language.h (language_data): Remove la_op_print_tab field.
1315 (language_defn::opcode_print_table): Declare new member function.
1316 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1317 initializer.
1318 (m2_language::opcode_print_table): New member function.
1319 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1320 initializer.
1321 (objc_language::opcode_print_table): New member function.
1322 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1323 initializer.
1324 (opencl_language::opcode_print_table): New member function.
1325 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1326 initializer.
1327 (pascal_language::opcode_print_table): New member function.
1328 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1329 initializer.
1330 (rust_language::opcode_print_table): New member function.
1331
5aba6ebe
AB
13322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1333
1334 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1335 (ada_language::expression_ops): New member function.
1336 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1337 (c_language::expression_ops): New member function.
1338 (cplus_language_data): Remove la_exp_desc initializer.
1339 (cplus_language::expression_ops): New member function.
1340 (asm_language_data): Remove la_exp_desc initializer.
1341 (asm_language::expression_ops): New member function.
1342 (minimal_language_data): Remove la_exp_desc initializer.
1343 (minimal_language::expression_ops): New member function.
1344 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1345 (d_language::expression_ops): New member function.
1346 * eval.c (evaluate_subexp): Update call to expression_ops.
1347 * expprint.c (print_subexp): Likewise.
1348 (op_name): Likewise.
1349 (dump_subexp_body): Likewise.
1350 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1351 (f_language::expression_ops): New member function.
1352 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1353 (go_language::expression_ops): New member function.
1354 * language.c (language_defn::expression_ops): New function.
1355 (unknown_language_data): Remove la_exp_desc initializer.
1356 (auto_language_data): Likewise.
1357 * language.h (language_data): Remove la_exp_desc field.
1358 (language_defn::expression_ops): Declare new member function.
1359 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1360 (m2_language::expression_ops): New member function.
1361 * objc-lang.c (objc_language_data): Remove la_exp_desc
1362 initializer.
1363 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1364 initializer.
1365 (opencl_language::expression_ops): New member function.
1366 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1367 * parse.c (operator_length): Update call to expression_ops.
1368 (exp_iterate): Likewise.
1369 * rust-lang.c (rust_language_data): Remove la_exp_desc
1370 initializer.
1371 (ruse_language::expression_ops): New member function.
1372
b63a3f3f
AB
13732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1374
1375 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1376 initializer.
1377 (ada_language::varobj_ops): New member function.
1378 * c-lang.c (c_language_data): Remove la_varobj_ops
1379 initializer.
1380 (cplus_language_data): Likewise.
1381 (cplus_language::varobj_ops): New member function.
1382 (asm_language_data): Remove la_varobj_ops initializer.
1383 (minimal_language_data): Likewise.
1384 * d-lang.c (d_language_data): Likewise.
1385 * f-lang.c (f_language_data): Likewise.
1386 * go-lang.c (go_language_data): Likewise.
1387 * language.c (language_defn::varobj_ops): New function.
1388 (unknown_language_data): Remove la_varobj_ops
1389 initializer.
1390 (auto_language_data): Likewise.
1391 * language.h (language_data): Remove la_varobj_ops field.
1392 (language_defn::varobj_ops): Declare new member function.
1393 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1394 * objc-lang.c (objc_language_data): Likewise.
1395 * opencl-lang.c (opencl_language_data): Likewise.
1396 * p-lang.c (pascal_language_data): Likewise.
1397 * rust-lang.c (rust_language_data): Likewise.
1398 * varobj.c (varobj_create): Update call to varobj_ops.
1399 * varobj.h (default_varobj_ops): Delete define.
1400
1ac14a04
AB
14012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1402
1403 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1404 initializer.
1405 * c-lang.c (c_language_data): Likewise.
1406 (c_language::macro_expansion): New member function.
1407 (cplus_language_data): Likewise.
1408 (cplus_language::macro_expansion): New member function.
1409 (asm_language_data): Likewise.
1410 (asm_language::macro_expansion): New member function.
1411 (minimal_language_data): Likewise.
1412 (minimal_language::macro_expansion): New member function.
1413 * d-lang.c (d_language_data): Remove la_macro_expansion
1414 initializer.
1415 * f-lang.c (f_language_data): Likewise.
1416 * go-lang.c (go_language_data): Likewise.
1417 * language.c (unknown_language_data): Likewise.
1418 (auto_language_data): Likewise.
1419 * language.h (language_data): Remove la_macro_expansion field.
1420 (language_defn::macro_expansion): New member function.
1421 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1422 initializer.
1423 * objc-lang.c (objc_language_data): Likewise.
1424 (objc_language::macro_expansion): New member function.
1425 * opencl-lang.c (opencl_language_data): Likewise.
1426 (opencl_language::macro_expansion): New member function.
1427 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1428 initializer.
1429 * rust-lang.c (rust_language_data): Likewise.
1430 * symtab.c (default_collect_symbol_completion_matches_break_on):
1431 Update call to macro_expansion.
1432
3a3440fb
AB
14332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1434
1435 * ada-lang.c (ada_language_data): Remove la_array_ordering
1436 initializer.
1437 * c-lang.c (c_language_data): Likewise.
1438 (cplus_language_data): Likewise.
1439 (asm_language_data): Likewise.
1440 (minimal_language_data): Likewise.
1441 * d-lang.c (d_language_data): Likewise.
1442 * dwarf2/read.c (read_array_order): Update for call to
1443 array_ordering.
1444 * f-lang.c (f_language_data): Remove la_array_ordering
1445 initializer.
1446 (f_language::array_ordering): New member function.
1447 * go-lang.c (go_language_data): Remove la_array_ordering
1448 initializer.
1449 * language.c (unknown_language_data): Likewise.
1450 (auto_language_data): Likewise.
1451 * language.h (language_data): Delete la_array_ordering field.
1452 (language_defn::array_ordering): New member function.
1453 * m2-lang.c (m2_language_data): Remove la_array_ordering
1454 initializer.
1455 * objc-lang.c (objc_language_data): Likewise.
1456 * opencl-lang.c (opencl_language_data): Likewise.
1457 * p-lang.c (pascal_language_data): Likewise.
1458 * rust-lang.c (rust_language_data): Likewise.
1459
0d201fa4
AB
14602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1461
1462 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1463 initializer.
1464 * c-lang.c (c_language_data): Likewise.
1465 (cplus_language_data): Likewise.
1466 (asm_language_data): Likewise.
1467 (minimal_language_data): Likewise.
1468 * d-lang.c (d_language_data): Likewise.
1469 * f-lang.c (f_language_data): Likewise.
1470 (f_language::case_sensitivity): New member function.
1471 * go-lang.c (go_language_data): Remove la_case_sensitivity
1472 initializer.
1473 * language.c (enum case_mode): Moved here from language.h.
1474 (case_mode): Make static.
1475 (show_case_command): Update for case_sensitivity being a method.
1476 (set_case_command): Likewise.
1477 (set_range_case): Likewise.
1478 (unknown_language_data): Remove la_case_sensitivity initializer.
1479 (auto_language_data): Likewise.
1480 * language.h (case_mode): Delete, move enum declaration to
1481 language.c.
1482 (language_data): Delete la_case_sensitivity field.
1483 (language_defn::case_sensitivity): New member function.
1484 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1485 initializer.
1486 * objc-lang.c (objc_language_data): Likewise.
1487 * opencl-lang.c (opencl_language_data): Likewise.
1488 * p-lang.c (pascal_language_data): Likewise.
1489 * rust-lang.c (rust_language_data): Likewise.
1490
efdf6a73
AB
14912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1492
1493 * ada-lang.c (ada_language_data): Remove la_range_check
1494 initializer.
1495 * c-lang.c (c_language_data): Likewise.
1496 (cplus_language_data): Likewise.
1497 (asm_language_data): Likewise.
1498 (minimal_language_data): Likewise.
1499 * d-lang.c (d_language_data): Likewise.
1500 * f-lang.c (f_language_data): Likewise.
1501 (f_language::range_checking_on_by_default): New member function.
1502 * go-lang.c (go_language_data): Remove la_range_check initializer.
1503 * language.c (enum range_mode): Moved here from language.h.
1504 (range_mode): Made static.
1505 (show_range_command): Update to use
1506 range_checking_on_by_default.
1507 (set_range_command): Likewise.
1508 (set_range_case): Likewise.
1509 (unknown_language_data): Remove la_range_check initializer.
1510 (auto_language_data): Likewise.
1511 * language.h (range_mode): Delete. Enum definition moved to
1512 language.c.
1513 (language_data): Remove la_range_check field.
1514 (language_defn::range_checking_on_by_default): New member
1515 function.
1516 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1517 (m2_language::range_checking_on_by_default): New member function.
1518 * objc-lang.c (objc_language_data): Remove la_range_check
1519 initializer.
1520 * opencl-lang.c (opencl_language_data): Likewise.
1521 * p-lang.c (pascal_language_data): Likewise.
1522 (pascal_language::range_checking_on_by_default): New member
1523 function.
1524 * rust-lang.c (rust_language_data): Remove la_range_check
1525 initializer.
1526 (rust_language::range_checking_on_by_default): New member
1527 function.
1528
bf92aec5
AB
15292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1530
1531 * dwarf2/read.c (dwarf2_physname): Remove special case for
1532 language_go.
1533 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1534 member function.
1535
d3355e4d
AB
15362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1537
1538 * ada-lang.c (ada_language_data): Remove
1539 la_store_sym_names_in_linkage_form_p initializer.
1540 (ada_language::store_sym_names_in_linkage_form_p): New member
1541 function.
1542 * c-lang.c (c_language_data): Remove
1543 la_store_sym_names_in_linkage_form_p initializer.
1544 (c_language::store_sym_names_in_linkage_form_p): New member
1545 function.
1546 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1547 initializer.
1548 (asm_language_data): Likewise.
1549 (asm_language::store_sym_names_in_linkage_form_p): New member
1550 function.
1551 (minimal_language_data): Remove
1552 la_store_sym_names_in_linkage_form_p initializer.
1553 (minimal_language::store_sym_names_in_linkage_form_p): New member
1554 function.
1555 * d-lang.c (d_language_data): Remove
1556 la_store_sym_names_in_linkage_form_p initializer.
1557 * dwarf2/read.c (dwarf2_physname): Update call to
1558 store_sym_names_in_linkage_form_p.
1559 * f-lang.c (f_language_data): Remove
1560 la_store_sym_names_in_linkage_form_p initializer.
1561 * go-lang.c (go_language_data): Remove
1562 la_store_sym_names_in_linkage_form_p initializer.
1563 * language.c (unknown_language_data): Remove
1564 la_store_sym_names_in_linkage_form_p initializer.
1565 (unknown_language::store_sym_names_in_linkage_form_p): New member
1566 function.
1567 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1568 initializer.
1569 (auto_language::store_sym_names_in_linkage_form_p): New member
1570 function.
1571 * language.h (language_data): Remove
1572 la_store_sym_names_in_linkage_form_p member variable.
1573 (language_defn::store_sym_names_in_linkage_form_p): New member
1574 function.
1575 * m2-lang.c (m2_language_data): Remove
1576 la_store_sym_names_in_linkage_form_p initializer.
1577 * objc-lang.c (objc_language_data): Likewise.
1578 * opencl-lang.c (opencl_language_data): Likewise.
1579 * p-lang.c (pascal_language_data): Likewise.
1580 * rust-lang.c (rust_language_data): Likewise.
1581
22c12a6c
AB
15822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1583
1584 * ada-lang.c (ada_language_data): Remove string_lower_bound
1585 initializer.
1586 * c-lang.c (c_language_data): Likewise.
1587 (cplus_language_data): Likewise.
1588 (asm_language_data): Likewise.
1589 (minimal_language_data): Likewise.
1590 * d-lang.c (d_language_data): Likewise.
1591 * f-lang.c (f_language_data): Likewise.
1592 * go-lang.c (go_language_data): Likewise.
1593 * language.c (unknown_language_data): Likewise.
1594 (auto_language_data): Likewise.
1595 * language.h (language_data): Remove string_lower_bound field.
1596 (language_defn::string_lower_bound): New member function.
1597 * m2-lang.c (m2_language_data): Remove string_lower_bound
1598 initializer.
1599 (m2_language::string_lower_bound): New member function.
1600 * objc-lang.c (objc_language_data): Remove string_lower_bound
1601 initializer.
1602 * opencl-lang.c (opencl_language_data): Likewise.
1603 * p-lang.c (pascal_language_data): Likewise.
1604 * rust-lang.c (rust_language_data): Likewise.
1605 * valops.c (value_cstring): Update call to string_lower_bound.
1606 (value_string): Likewise.
1607 * value.c (allocate_repeated_value): Likewise.
1608
1c236ddd
AB
16092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1610
1611 * valops.c (value_repeat): Fix incorrect argument name in comment.
1612
67bd3fd5
AB
16132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1614
1615 * ada-lang.c (ada_language_data): Remove c_style_arrays
1616 initializer.
1617 (ada_language::c_style_arrays_p): New member fuction.
1618 * c-lang.c (c_language_data): Remove c_style_arrays
1619 initializer.
1620 (cplus_language_data): Likewise.
1621 (asm_language_data): Likewise.
1622 (minimal_language_data): Likewise.
1623 * d-lang.c (d_language_data): Likewise.
1624 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1625 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1626 (f_language::c_style_arrays_p): New member function.
1627 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1628 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1629 * language.c (unknown_language_data): Remove c_style_arrays
1630 initializer.
1631 (auto_language_data): Likewise.
1632 * language.h (language_data): Remove c_style_arrays field.
1633 (language_defn::c_style_arrays_p): New member function.
1634 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1635 (m2_language::c_style_arrays_p): New member function.
1636 * objc-lang.c (objc_language_data): Remove c_style_arrays
1637 initializer.
1638 * opencl-lang.c (opencl_language_data): Likewise.
1639 * p-lang.c (pascal_language_data): Likewise.
1640 * rust-lang.c (rust_language_data): Likewise.
1641 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1642 and update local variable to a bool.
1643 * valops.c (value_cast): Update call to c_style_arrays_p.
1644 (value_array): Likewise.
1645 * value.c (coerce_array): Likewise.
1646
85967615
AB
16472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1648
1649 * ada-lang.c (ada_language_data): Remove la_language initializer.
1650 * c-lang.c (c_language_data): Likewise.
1651 (cplus_language_data): Likewise.
1652 (asm_language_data): Likewise.
1653 (minimal_language_data): Likewise.
1654 * d-lang.c (d_language_data): Likewise.
1655 * f-lang.c (f_language_data): Likewise.
1656 * go-lang.c (go_language_data): Likewise.
1657 * language.c (unknown_language_data): Likewise.
1658 (auto_language_data): Likewise.
1659 * language.h (language_data): Remove la_language field.
1660 (language_defn::language_defn): Initialise la_language field.
1661 (language_defn::la_language): New member variable.
1662 * m2-lang.c (m2_language_data): Remove la_language field.
1663 * objc-lang.c (objc_language_data): Likewise.
1664 * opencl-lang.c (opencl_language_data): Likewise.
1665 * p-lang.c (pascal_language_data): Likewise.
1666 * rust-lang.c (rust_language_data): Likewise.
1667
e171d6f1
AB
16682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1669
1670 * ada-lang.c (ada_extensions): Delete, moved into
1671 ada_language::filename_extensions.
1672 (ada_language_data): Remove la_filename_extensions initializer.
1673 (ada_language::filename_extensions): New member function.
1674 * c-lang.c (c_extensions): Delete, moved into
1675 c_language::filename_extensions.
1676 (c_language_data): Remove la_filename_extensions initializer.
1677 (c_language::filename_extensions): New member function.
1678 (cplus_extensions): Delete, moved into
1679 cplus_language::filename_extensions.
1680 (cplus_language_data): Remove la_filename_extensions initializer.
1681 (cplus_language::filename_extensions): New member function.
1682 (asm_extensions): Delete, moved into
1683 asm_language::filename_extensions.
1684 (asm_language_data): Remove la_filename_extensions initializer.
1685 (asm_language::filename_extensions): New member function.
1686 (minimal_language_data): Remove la_filename_extensions
1687 initializer.
1688 * d-lang.c (d_extensions): Delete, moved into
1689 d_language::filename_extensions.
1690 (d_language_data): Remove la_filename_extensions initializer.
1691 (d_language::filename_extensions): New member function.
1692 * f-lang.c (f_extensions): Delete, moved into
1693 f_language::filename_extensions.
1694 (f_language_data): Remove la_filename_extensions initializer.
1695 (f_language::filename_extensions): New member function.
1696 * go-lang.c (go_language_data): Remove la_filename_extensions
1697 initializer.
1698 * language.c (add_set_language_command): Update now that
1699 filename_extensions returns a vector.
1700 (unknown_language_data): Remove la_filename_extensions
1701 initializer.
1702 (auto_language_data): Likewise.
1703 * language.h (language_data): Remove la_filename_extensions field.
1704 (language_defn::filename_extensions): New member function.
1705 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1706 initializer.
1707 * objc-lang.c (objc_extensions): Delete, moved into
1708 objc_language::filename_extensions.
1709 (objc_language_data): Remove la_filename_extensions initializer.
1710 (objc_language::filename_extensions): New member function.
1711 * opencl-lang.c (opencl_language_data): Remove
1712 la_filename_extensions initializer.
1713 * p-lang.c (pascal_extensions): Delete, moved into
1714 pascal_language::filename_extensions.
1715 (pascal_language_data): Remove la_filename_extensions initializer.
1716 (pascal_language::filename_extensions): New member function.
1717 * rust-lang.c (rust_extensions): Delete, moved into
1718 rust_language::filename_extensions.
1719 (rust_language_data): Remove la_filename_extensions initializer.
1720 (rust_language::filename_extensions): New member function.
1721 * symfile.c (add_filename_language): Add new assert.
1722
6f7664a9
AB
17232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1724
1725 * ada-lang.c (ada_language_data): Remove la_name and
1726 la_natural_name initializers.
1727 (ada_language::name): New member function.
1728 (ada_language::natural_name): New member function.
1729 * c-lang.c (c_language_data): Remove la_name and
1730 la_natural_name initializers.
1731 (c_language::name): New member function.
1732 (c_language::natural_name): New member function.
1733 (cplus_language_data): Remove la_name and
1734 la_natural_name initializers.
1735 (cplus_language::name): New member function.
1736 (cplus_language::natural_name): New member function.
1737 (asm_language_data): Remove la_name and
1738 la_natural_name initializers.
1739 (asm_language::name): New member function.
1740 (asm_language::natural_name): New member function.
1741 (minimal_language_data): Remove la_name and
1742 la_natural_name initializers.
1743 (minimal_language::name): New member function.
1744 (minimal_language::natural_name): New member function.
1745 * compile/compile.c (compile_to_object): Update call to
1746 lanugage_defn::name.
1747 * d-lang.c (d_language_data): Remove la_name and
1748 la_natural_name initializers.
1749 (d_language::name): New member function.
1750 (d_language::natural_name): New member function.
1751 * expprint.c (print_subexp_standard): Update call to
1752 language_defn::name.
1753 (dump_raw_expression): Likewise
1754 (dump_prefix_expression): Likewise.
1755 * f-lang.c (f_language_data): Remove la_name and
1756 la_natural_name initializers.
1757 (f_language::name): New member function.
1758 (f_language::natural_name): New member function.
1759 * go-lang.c (go_language_data): Remove la_name and
1760 la_natural_name initializers.
1761 (go_language::name): New member function.
1762 (go_language::natural_name): New member function.
1763 * language.c (show_language_command): Update call to
1764 language_defn::name.
1765 (set_language_command): Likewise.
1766 (language_enum): Likewise.
1767 (language_str): Likewise.
1768 (add_set_language_command): Likewise, use
1769 language_defn::natural_name in the doc string.
1770 (unknown_language_data): Remove la_name and
1771 la_natural_name initializers.
1772 (unknown_language::name): New member function.
1773 (unknown_language::natural_name): New member function.
1774 (auto_language_data): Remove la_name and
1775 la_natural_name initializers.
1776 (auto_language::name): New member function.
1777 (auto_language::natural_name): New member function.
1778 (language_lookup_primitive_type_as_symbol): Update call to
1779 language_defn::name.
1780 * language.h (language_data): Remove la_name and la_natural_name
1781 member variables.
1782 (language_defn::name): New member function.
1783 (language_defn::natural_name): New member function.
1784 * m2-lang.c (m2_language_data): Remove la_name and
1785 la_natural_name initializers.
1786 (m2_language::name): New member function.
1787 (m2_language::natural_name): New member function.
1788 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1789 language_defn::natural_name.
1790 * objc-lang.c (objc_language_data): Remove la_name and
1791 la_natural_name initializers.
1792 (objc_language::name): New member function.
1793 (objc_language::natural_name): New member function.
1794 * opencl-lang.c (opencl_language_data): Remove la_name and
1795 la_natural_name initializers.
1796 (opencl_language::name): New member function.
1797 (opencl_language::natural_name): New member function.
1798 * p-lang.c (pascal_language_data): Remove la_name and
1799 la_natural_name initializers.
1800 (pascal_language::name): New member function.
1801 (pascal_language::natural_name): New member function.
1802 * rust-lang.c (rust_language_data): Remove la_name and
1803 la_natural_name initializers.
1804 (rust_language::name): New member function.
1805 (rust_language::natural_name): New member function.
1806 * symtab.c (lookup_language_this): Update call to
1807 language_defn::name.
1808
5bae7c4e
AB
18092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1810
1811 * ada-lang.c (ada_language_data): Remove la_name_of_this
1812 initializer.
1813 * ax-gdb.c (gen_expr): Update call to name_of_this.
1814 * c-exp.y (classify_name): Likewise.
1815 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1816 (cplus_language_data): Likewise.
1817 (cplus_language::name_of_this): New member function.
1818 (asm_language_data): Remove la_name_of_this initializer.
1819 (minimal_language_data): Likewise.
1820 * d-lang.c (d_language_data): Likewise.
1821 (d_language::name_of_this): New member function.
1822 * expprint.c (print_subexp_standard): Update call to name_of_this.
1823 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1824 * go-lang.c (go_language_data): Likewise.
1825 * language.c (unknown_language_data): Likewise.
1826 (unknown_language::name_of_this): New member function.
1827 (auto_language_data): Remove la_name_of_this initializer.
1828 (auto_language::name_of_this): New member function.
1829 * language.h (language_data): Delete la_name_of_this member
1830 variable.
1831 (language_defn::name_of_this): New member function.
1832 * m2-lang.c (m2_language_data): Remove la_name_of_this
1833 initializer.
1834 * objc-lang.c (objc_language_data): Likewise.
1835 (objc_language::name_of_this): New member function.
1836 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1837 initializer.
1838 * p-lang.c (pascal_language_data): Likewise.
1839 (pascal_language::name_of_this): New member function.
1840 * rust-lang.c (rust_language_data): Remove la_name_of_this
1841 initializer.
1842 * symtab.c (lookup_language_this): Update call to name_of_this.
1843 (lookup_symbol_aux): Likewise.
1844 * valops.c (value_of_this): Likewise.
1845
22e3f3ed
AB
18462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1847
1848 * ada-lang.c (ada_language_data): Remove
1849 la_struct_too_deep_ellipsis initializer.
1850 (ada_language::struct_too_deep_ellipsis): New member function.
1851 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1852 initializer.
1853 (cplus_language_data): Likewise.
1854 (asm_language_data): Likewise.
1855 (minimal_language_data): Likewise.
1856 * cp-valprint.c (cp_print_value): Update call to
1857 struct_too_deep_ellipsis.
1858 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1859 initializer.
1860 * f-lang.c (f_language_data): Likewise.
1861 (f_language::struct_too_deep_ellipsis): New member function.
1862 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1863 initializer.
1864 * language.c (unknown_language_data): Likewise.
1865 (auto_language_data): Likewise.
1866 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1867 member variable.
1868 (language_defn::struct_too_deep_ellipsis): New member function.
1869 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1870 initializer.Q
1871 * objc-lang.c (objc_language_data): Likewise.
1872 * opencl-lang.c (opencl_language_data): Likewise.
1873 * p-lang.c (pascal_language_data): Likewise.
1874 * rust-lang.c (rust_language_data): Likewise.
1875 * valprint.c (val_print_check_max_depth): Update call to
1876 struct_too_deep_ellipsis.
1877
ed29e1c7
FW
18782020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1879
1880 * MAINTAINERS (Write After Approval): Add myself.
1881
12d8f940
TT
18822020-09-15 Tom Tromey <tom@tromey.com>
1883
1884 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1885 Remove.
1886
6b5a7bc7
TT
18872020-09-15 Tom Tromey <tom@tromey.com>
1888
1889 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1890 and TYPE_CODE_METHODPTR cases.
1891 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1892 (c_value_print_inner): Update.
1893 * valprint.c (generic_value_print_memberptr): New function, from
1894 c_value_print_memberptr.
1895 (generic_value_print): Use it. Call cplus_print_method_ptr.
1896
47f0e2ff
TT
18972020-09-15 Tom Tromey <tromey@adacore.com>
1898
1899 * python/python-internal.h (PyInt_FromLong): Remove define.
1900 * python/py-value.c (convert_value_from_python): Use
1901 gdb_py_object_from_longest.
1902 * python/py-type.c (typy_get_code): Use
1903 gdb_py_object_from_longest.
1904 * python/py-symtab.c (salpy_get_line): Use
1905 gdb_py_object_from_longest.
1906 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1907 gdb_py_object_from_longest.
1908 * python/py-record.c (recpy_gap_reason_code): Use
1909 gdb_py_object_from_longest.
1910 * python/py-record-btrace.c (recpy_bt_insn_size)
1911 (recpy_bt_func_level, btpy_list_count): Use
1912 gdb_py_object_from_longest.
1913 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1914 gdb_py_object_from_longest. Fix error handling.
1915 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1916 gdb_py_object_from_longest.
1917 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1918 gdb_py_object_from_longest.
1919 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1920 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1921 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1922
512116ce
TT
19232020-09-15 Tom Tromey <tromey@adacore.com>
1924
1925 * python/python.c (gdbpy_parameter_value): Use
1926 gdb_py_object_from_ulongest.
1927
4ab1029c
TT
19282020-09-15 Tom Tromey <tromey@adacore.com>
1929
1930 * python/py-infevents.c (create_register_changed_event_object):
1931 Use gdb_py_object_from_longest.
1932 * python/py-exitedevent.c (create_exited_event_object): Use
1933 gdb_py_object_from_longest.
1934
062534d4
TT
19352020-09-15 Tom Tromey <tromey@adacore.com>
1936
1937 * python/python.c (gdbpy_parameter_value): Use
1938 gdb_py_object_from_longest.
1939 * python/py-type.c (convert_field, typy_range): Use
1940 gdb_py_object_from_longest.
1941 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1942 gdb_py_object_from_longest.
1943 * python/py-lazy-string.c (stpy_get_length): Use
1944 gdb_py_object_from_longest.
1945 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1946 gdb_py_object_from_longest.
1947 * python/py-infevents.c (create_memory_changed_event_object): Use
1948 gdb_py_object_from_longest.
1949 * python/py-inferior.c (infpy_get_num): Use
1950 gdb_py_object_from_longest.
1951 (infpy_get_pid): Likewise.
1952
d1cab987
TT
19532020-09-15 Tom Tromey <tromey@adacore.com>
1954
1955 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1956 defines.
1957 * python/py-value.c (valpy_long): Use
1958 gdb_py_object_from_ulongest.
1959 * python/py-symtab.c (salpy_get_pc): Use
1960 gdb_py_object_from_ulongest.
1961 (salpy_get_last): Likewise.
1962 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1963 gdb_py_object_from_ulongest.
1964 * python/py-lazy-string.c (stpy_get_address): Use
1965 gdb_py_object_from_ulongest.
1966 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1967 * python/py-arch.c (archpy_disassemble): Use
1968 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1969 error handling.
1970
4bde49dc
TT
19712020-09-15 Tom Tromey <tromey@adacore.com>
1972
1973 * python/python-internal.h (gdb_py_long_from_longest): Remove
1974 defines.
1975 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1976 * python/py-type.c (convert_field, typy_get_sizeof): Use
1977 gdb_py_object_from_longest.
1978 * python/py-record-btrace.c (btpy_list_index): Use
1979 gdb_py_object_from_longest.
1980
37431074
TT
19812020-09-15 Tom Tromey <tromey@adacore.com>
1982
1983 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1984 * python/py-record.c (recpy_element_number): Use
1985 gdb_py_object_from_longest.
1986 (recpy_gap_number): Likewise.
1987
cbe25684
TT
19882020-09-15 Tom Tromey <tromey@adacore.com>
1989
1990 * top.c (ui::ui): Update.
1991 (highest_ui_num): Remove.
1992 * top.h (struct ui) <num>: Remove.
1993
db92ac45
TT
19942020-09-15 Tom Tromey <tromey@adacore.com>
1995
1996 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1997 * ui-style.c (ansi_regex_text): Now array.
1998 * rust-exp.y (number_regex_text): Now array.
1999 * linespec.c (linespec_quote_characters): Now array.
2000 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2001 Now arrays.
2002
d2b31b67
SM
20032020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2004
2005 * debuginfod-support.c (debuginfod_client_deleter): New.
2006 (debuginfod_client_up): New.
2007 (debuginfod_init): Return debuginfod_client_up.
2008 (debuginfod_source_query): Adjust.
2009 (debuginfod_debuginfo_query): Adjust.
2010
3246bd8e
SM
20112020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2012
2013 * debuginfod-support.c (debuginfod_source_query): Use
2014 make_unique_xstrdup.
2015
10242f36
SM
20162020-09-14 Simon Marchi <simon.marchi@efficios.com>
2017
2018 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2019 with `type::instance_flags`.
2020
e1044e6a
MM
20212020-09-14 Michael Mullin <masmullin@gmail.com>
2022
2023 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2024 Remove baton parameter.
2025
04902b09
PA
20262020-09-14 Pedro Alves <pedro@palves.net>
2027
2028 * Makefile.in (SELFTESTS_SRCS): Add
2029 unittests/enum-flags-selftests.c.
2030 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2031 btrace_function_flags instead of enum btrace_function_flag.
2032 * compile/compile-c-types.c (convert_qualified): Use
2033 enum_flags::raw.
2034 * compile/compile-cplus-symbols.c (convert_one_symbol)
2035 (convert_symbol_bmsym):
2036 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2037 (compile_cplus_convert_struct_or_union_methods)
2038 (compile_cplus_instance::convert_qualified_base):
2039 * go-exp.y (parse_string_or_char): Add cast to int.
2040 * unittests/enum-flags-selftests.c: New file.
2041 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2042 type to btrace_thread_flags from btrace_thread_flag.
2043 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2044 local's type to btrace_thread_flags from btrace_thread_flag. Add
2045 cast in DEBUG call.
2046
69896a2c
PA
20472020-09-14 Pedro Alves <pedro@palves.net>
2048
2049 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2050 * gdbtypes.c (address_space_name_to_int): Rename to ...
2051 (address_space_name_to_type_instance_flags): ... this.
2052 (address_space_int_to_name): Rename to ...
2053 (address_space_type_instance_flags_to_name): ... this.
2054 * gdbtypes.h (address_space_name_to_int): Rename to ...
2055 (address_space_name_to_type_instance_flags): ... this.
2056 (address_space_int_to_name): Rename to ...
2057 (address_space_type_instance_flags_to_name): ... this.
2058 * type-stack.c (type_stack::insert): Adjust to rename.
2059 * type-stack.h (type_stack::insert): Likewise.
2060
314ad88d
PA
20612020-09-14 Pedro Alves <pedro@palves.net>
2062 Andrew Burgess <andrew.burgess@embecosm.com>
2063
2064 * avr-tdep.c (avr_address_class_type_flags): Return
2065 type_instance_flags.
2066 (avr_address_class_type_flags_to_name): Take a
2067 type_instance_flags.
2068 (avr_address_class_name_to_type_flags): Return bool and take a
2069 type_instance_flags.
2070 * d-lang.c (build_d_types): Use type::set_instance_flags.
2071 * ft32-tdep.c (ft32_address_class_type_flags): Return
2072 type_instance_flags.
2073 (ft32_address_class_type_flags_to_name): Take a
2074 type_instance_flags.
2075 (ft32_address_class_name_to_type_flags): Return bool and take a
2076 type_instance_flags.
2077 (ft32_gdbarch_init): Use type::set_instance_flags.
2078 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2079 * gdbarch.h, gdbarch.c: Regenerate.
2080 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2081 (address_class_name_to_type_flags): Use type_instance_flags and
2082 bool.
2083 * gdbtypes.c (address_space_name_to_int)
2084 (address_space_int_to_name, make_qualified_type): Use
2085 type_instance_flags.
2086 (make_qualified_type): Use type_instance_flags and
2087 type::set_instance_flags.
2088 (make_type_with_address_space, make_cv_type, make_vector_type)
2089 (check_typedef): Use type_instance_flags.
2090 (recursive_dump_type): Cast type_instance_flags to unsigned for
2091 printing.
2092 (copy_type_recursive): Use type::set_instance_flags.
2093 (gdbtypes_post_init): Use type::set_instance_flags.
2094 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2095 <m_instance_flags>: ... this.
2096 <instance_flags, set_instance_flags>: New methods.
2097 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2098 (SET_TYPE_INSTANCE_FLAGS): New.
2099 (address_space_name_to_int, address_space_int_to_name)
2100 (make_type_with_address_space): Pass flags using
2101 type_instance_flags instead of int.
2102 * stabsread.c (cleanup_undefined_types_noname): Use
2103 type::set_instance_flags.
2104 * s390-tdep.c (s390_address_class_type_flags): Return
2105 type_instance_flags.
2106 (s390_address_class_type_flags_to_name): Take a
2107 type_instance_flags.
2108 (s390_address_class_name_to_type_flags): Return bool and take a
2109 type_instance_flags.
2110 * type-stack.c (type_stack::follow_types): Use
2111 type_instance_flags.
2112 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2113
27087b7f
TT
21142020-09-14 Tom Tromey <tromey@adacore.com>
2115
2116 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2117 * x86-tdep.c (x86_is_thunk_register_name)
2118 (x86_in_indirect_branch_thunk): Update.
2119 * sparc64-tdep.c (sparc64_fpu_register_names)
2120 (sparc64_cp0_register_names, sparc64_register_names)
2121 (sparc64_pseudo_register_names): Now const.
2122 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2123 cp0_registers_num>: Now const.
2124 * sparc-tdep.c (sparc_core_register_names)
2125 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2126 (sparc32_pseudo_register_names): Now const.
2127 (validate_tdesc_registers): Update.
2128 * rust-lang.c (rust_extensions): Now const.
2129 * p-lang.c (p_extensions): Now const.
2130 * objc-lang.c (objc_extensions): Now const.
2131 * nto-tdep.c (nto_thread_state_str): Now const.
2132 * moxie-tdep.c (moxie_register_names): Now const.
2133 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2134 Now const.
2135 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2136 (mips_linux_reg_names): Now const.
2137 (mips_gdbarch_init): Update.
2138 * microblaze-tdep.c (microblaze_register_names): Now const.
2139 * m68k-tdep.c (m68k_register_names): Now const.
2140 * m32r-tdep.c (m32r_register_names): Now const.
2141 * ia64-tdep.c (ia64_register_names): Now const.
2142 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2143 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2144 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2145 ymm_avx512_register_names, pkeys_register_names>: Now const.
2146 * i386-tdep.c (i386_register_names, i386_zmm_names)
2147 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2148 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2149 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2150 * f-lang.c (f_extensions): Now const.
2151 * d-lang.c (d_extensions): Now const.
2152 * csky-tdep.c (csky_register_names): Now const.
2153 * charset.c (default_charset_names, charset_enum): Now const.
2154 (_initialize_charset): Update.
2155 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2156 const.
2157 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2158 (bsd_uthread_solib_loaded): Update.
2159 (bsd_uthread_state): Now const.
2160 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2161 (amd64_ymm_avx512_names, amd64_ymmh_names)
2162 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2163 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2164 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2165 (amd64_dword_names): Now const.
2166 * agent.c (can_use_agent_enum): Now const.
2167 * ada-tasks.c (task_states, long_task_states): Now const.
2168 * ada-lang.c (known_runtime_file_name_patterns)
2169 (known_auxiliary_function_name_patterns, attribute_names)
2170 (standard_exc, ada_extensions): Now const.
2171
89806626
SM
21722020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2173
2174 * bcache.h (struct bcache) <bcache>: Remove constructor.
2175 <m_hash_function, m_compare_function>: Remove.
2176 <~bcache>: Make virtual.
2177 <compare>: Remove static method, introduce virtual method.
2178 <default_hash>: Remove.
2179 <hash>: New virtual method.
2180 * bcache.c (bcache::expand_hash_table): Update.
2181 (bcache::insert): Update.
2182 (bcache::hash): New.
2183 (bcache::compare): Update comment and parameter names.
2184 * gdbtypes.c (types_deeply_equal): Update.
2185 * psymtab.h (struct psymbol_bcache): New struct.
2186 (class psymtab_storage) <psymtab_storage>: Make default.
2187 <psymbol_cache>: Change type to psymbol_bcache.
2188 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2189 (psymbol_hash): Change to...
2190 (psymbol_bcache::hash): ... this.
2191 (psymbol_compare): Change to...
2192 (psymbol_bcache::compare): ... this.
2193
677c92fe
SM
21942020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2195
2196 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2197 checking for initial lwp.
2198
3eba3a01
TT
21992020-09-14 Tom Tromey <tromey@adacore.com>
2200
2201 * m68k-tdep.c (m68k_extract_return_value): Use
2202 pointer_result_regnum.
2203 (m68k_store_return_value): Likewise.
2204 (m68k_reg_struct_return_p): Handle vectors and arrays.
2205 (m68k_return_value): Handle arrays.
2206 (m68k_svr4_return_value): Fix single-element aggregate handling.
2207 Handle long double. Adjust for embedded ABI.
2208 (m68k_svr4_init_abi): Set pointer_result_regnum.
2209 (m68k_embedded_init_abi): New function.
2210 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2211 (m68k_osabi_sniffer): New function.
2212 (_initialize_m68k_tdep): Register osabi sniffer.
2213 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2214 member.
2215
33f4dd48
SM
22162020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2217
2218 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2219 with gdb::unique_xmalloc_ptr<char>.
2220
8400a90d
SM
22212020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2222
2223 * xml-support.h (xml_fetch_another): Change type to be a
2224 function_view.
2225 (xml_process_xincludes): Remove baton parameter.
2226 (xml_fetch_content_from_file): Change baton parameter to
2227 dirname.
2228 * xml-support.c (struct xinclude_parsing_data)
2229 <xinclude_parsing_data>: Remove baton parameter.
2230 <fetcher_baton>: Remove.
2231 (xinclude_start_include): Adjust.
2232 (xml_process_xincludes): Adjust.
2233 (xml_fetch_content_from_file): Replace baton parameter with
2234 dirname.
2235 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2236 (xml_init_syscalls_info): Use a lambda.
2237 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2238 (file_read_description_xml): Use a lambda.
2239 (fetch_available_features_from_target): Change baton parameter
2240 to target_ops.
2241 (target_read_description_xml): Use a lambda.
2242 (target_fetch_description_xml): Use a lambda.
2243 (string_read_description_xml): Update.
2244
04f5bab2
SM
22452020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2246
2247 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2248 uses with type::endianity_is_not_default.
2249
db558e34
SM
22502020-09-14 Simon Marchi <simon.marchi@efficios.com>
2251
2252 * gdbtypes.h (struct type) <endianity_is_not_default,
2253 set_endianity_is_not_default>: New methods.
2254 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2255 type::endianity_is_not_default, change all write call sites to
2256 use type::set_endianity_is_not_default.
2257
22c4c60c
SM
22582020-09-14 Simon Marchi <simon.marchi@efficios.com>
2259
2260 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2261 uses with type::is_fixed_instance.
2262
9cdd0d12
SM
22632020-09-14 Simon Marchi <simon.marchi@efficios.com>
2264
2265 * gdbtypes.h (struct type) <is_fixed_instance,
2266 set_is_fixed_instance>: New methods.
2267 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2268 write call sites to use type::set_is_fixed_instance.
2269
0becda7a
SM
22702020-09-14 Simon Marchi <simon.marchi@efficios.com>
2271
2272 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2273 uses with type::is_gnu_ifunc.
2274
03cc7249
SM
22752020-09-14 Simon Marchi <simon.marchi@efficios.com>
2276
2277 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2278 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2279 use type::set_is_gnu_ifunc.
2280
3f46044c
SM
22812020-09-14 Simon Marchi <simon.marchi@efficios.com>
2282
2283 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2284 uses with type::stub_is_supported.
2285
9baccff6
SM
22862020-09-14 Simon Marchi <simon.marchi@efficios.com>
2287
2288 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2289 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2290 use type::set_stub_is_supported.
2291
bd63c870
SM
22922020-09-14 Simon Marchi <simon.marchi@efficios.com>
2293
2294 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2295 uses with type::is_vector.
2296
2062087b
SM
22972020-09-14 Simon Marchi <simon.marchi@efficios.com>
2298
2299 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2300 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2301 use type::set_is_vector.
2302
a409645d
SM
23032020-09-14 Simon Marchi <simon.marchi@efficios.com>
2304
2305 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2306 uses with type::has_varargs.
2307
1d6286ed
SM
23082020-09-14 Simon Marchi <simon.marchi@efficios.com>
2309
2310 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2311 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2312 use type::set_has_varargs.
2313
7f9f399b
SM
23142020-09-14 Simon Marchi <simon.marchi@efficios.com>
2315
2316 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2317 uses with type::is_prototyped.
2318
27e69b7a
SM
23192020-09-14 Simon Marchi <simon.marchi@efficios.com>
2320
2321 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2322 New methods.
2323 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2324 call sites to use type::set_is_prototyped.
2325
d2183968
SM
23262020-09-14 Simon Marchi <simon.marchi@efficios.com>
2327
2328 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2329 uses with type::target_is_stub.
2330
8f53807e
SM
23312020-09-14 Simon Marchi <simon.marchi@efficios.com>
2332
2333 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2334 New methods.
2335 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2336 sites to use type::set_target_is_stub.
2337
e46d3488
SM
23382020-09-14 Simon Marchi <simon.marchi@efficios.com>
2339
2340 * gdbtypes.h (TYPE_STUB): Remove, replace all
2341 uses with type::is_stub.
2342
b4b73759
SM
23432020-09-14 Simon Marchi <simon.marchi@efficios.com>
2344
2345 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2346 (TYPE_STUB): Use type::is_stub, change all write call sites to
2347 use type::set_is_stub.
2348
20ce4123
SM
23492020-09-14 Simon Marchi <simon.marchi@efficios.com>
2350
2351 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2352 type::has_no_signedness.
2353
15152a54
SM
23542020-09-14 Simon Marchi <simon.marchi@efficios.com>
2355
2356 * gdbtypes.h (struct type) <has_no_signedness,
2357 set_has_no_signedness>: New methods.
2358 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2359 call sites to use type::set_has_no_signedness.
2360
c6d940a9
SM
23612020-09-14 Simon Marchi <simon.marchi@efficios.com>
2362
2363 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2364 type::is_unsigned.
2365
653223d3
SM
23662020-09-14 Simon Marchi <simon.marchi@efficios.com>
2367
2368 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2369 methods.
2370 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2371 sites to use type::set_is_unsigned.
2372
55ea94da 23732020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2374 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2375
e851246a
SM
2376 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2377 pointer and stack frame offset when unwinding.
55ea94da 2378
6791b117
PA
23792020-09-13 Pedro Alves <pedro@palves.net>
2380
2381 * NEWS: Document "-break-insert --qualified".
2382 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2383
77f2120b
PA
23842020-09-13 Pedro Alves <pedro@palves.net>
2385
2386 * linespec.c (classify_mtype, compare_msyms): Delete.
2387 (search_minsyms_for_name): Remove classification logic. Instead
2388 filter out trampoline symbols if we also found an external
2389 function of the same name.
2390
ed6a896c
JB
23912020-09-13 Joel Brobecker <brobecker@adacore.com>
2392
2393 * NEWS: Create a new section for the next release branch.
2394 Rename the section of the current branch, now that it has
2395 been cut.
2396
32aea73e
JB
23972020-09-13 Joel Brobecker <brobecker@adacore.com>
2398
2399 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2400 * version.in: Bump version to 11.0.50.DATE-git.
2401
8087c3fa
JB
24022020-09-12 Joel Brobecker <brobecker@adacore.com>
2403
2404 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2405
2a67f09d
FW
24062020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2407 Felix Willgerodt <Felix.Willgerodt@intel.com>
2408
2409 * gdbarch.sh: Added bfloat16 type.
2410 * gdbarch.c: Regenerated.
2411 * gdbarch.h: Regenerated.
2412 * gdbtypes.c (floatformats_bfloat16): New struct.
2413 (gdbtypes_post_init): Add builtin_bfloat16.
2414 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2415 (floatformats_bfloat16): New struct.
2416 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2417 (i386_ymm_type): Add field "v16_bfloat16"
2418 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2419 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2420 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2421 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2422 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2423 * features/i386/64bit-avx512.c: Regenerated.
2424 * features/i386/64bit-sse.xml: Add bfloat16 type.
2425 * features/i386/64bit-sse.c: Regenerated.
2426
1347d111
FW
24272020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2428
2429 * i386-tdep.c (i386_zmm_type): Fix field names.
2430 (i386_ymm_type): Fix field names.
2431
7a4e8e7d
TBA
24322020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2433
2434 * breakpoint.c: Fix typo in the help message of the
2435 "set breakpoint condition-evaluation" command.
2436
cf4ac4be
KR
24372020-09-10 Kamil Rytarowski <n54@gmx.com>
2438
2439 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2440 * (nbsd_nat_target::pid_to_exec_file)
2441 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2442 (nbsd_nat_target::post_startup_inferior)
2443 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2444 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2445 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2446 * (nbsd_thread_lister): Remove.
2447
f404573e
KR
24482020-09-10 Kamil Rytarowski <n54@gmx.com>
2449
2450 * fork-inferior.c (startup_inferior): Avoid double free.
2451
1ccb2c17
KR
24522020-09-10 Kamil Rytarowski <n54@gmx.com>
2453
2454 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2455 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2456
feedfcc7
KR
24572020-09-10 Kamil Rytarowski <n54@gmx.com>
2458
2459 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2460 * netbsd-nat.c: Include <sys/ptrace.h>.
2461 * (netbsd_nat::enable_proc_events): Add.
2462
c489f8c6
KR
24632020-09-10 Kamil Rytarowski <n54@gmx.com>
2464
2465 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2466 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2467 (netbsd_nat::for_each_thread): Add.
2468 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2469 "gdbsupport/common-debug.h".
2470 * (netbsd_nat::netbsd_thread_lister)
2471 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2472 (netbsd_nat::for_each_thread): Add.
2473
330662f6
KR
24742020-09-10 Kamil Rytarowski <n54@gmx.com>
2475
2476 * netbsd-nat.h: Include <unistd.h>.
2477 * (netbsd_nat::pid_to_exec_file): Add.
2478 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2479 * (netbsd_nat::pid_to_exec_file) Add.
2480
70b67307
KR
24812020-09-10 Kamil Rytarowski <n54@gmx.com>
2482
2483 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2484
99cf6da6
KR
24852020-09-10 Kamil Rytarowski <n54@gmx.com>
2486
2487 * netbsd-nat.h: New file.
2488 * netbsd-nat.c: Likewise.
2489
1b788fb6
TT
24902020-09-09 Tom Tromey <tromey@adacore.com>
2491
2492 * ada-lang.c (remove_extra_symbols): Do not increment when
2493 removing an element
2494
03b0a45f
TT
24952020-09-08 Tom Tromey <tromey@adacore.com>
2496
2497 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2498
3cae4447
TT
24992020-09-08 Tom Tromey <tromey@adacore.com>
2500
2501 PR win32/25302:
2502 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2503 (gdb_bfd_init_data): New function.
2504 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2505
7f08fd51
TBA
25062020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2507
2508 * infrun.c (fetch_inferior_event): Use
2509 `switch_to_target_no_thread` to switch the target.
2510
3e6ff933
TT
25112020-09-06 Tom Tromey <tom@tromey.com>
2512
2513 * symfile.h (dwarf2_free_objfile): Don't declare.
2514
e56798df
AKS
25152020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2516
2517 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2518 to match 16 byte real/complex type generated by Flang compiler.
2519
8f5c6526
TV
25202020-09-03 Tom de Vries <tdevries@suse.de>
2521
2522 PR breakpoint/26546
2523 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2524 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2525
c5065df0
SM
25262020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2527
2528 * maint.c (index_digits): New function.
2529 (struct maint_print_section_data): Remove.
2530 (print_bfd_section_info): Remove print_data parameter, add arg
2531 and index_digits.
2532 (print_objfile_section_info): Likewise.
2533 (print_bfd_section_info_maybe_relocated): Likewise (plus
2534 objfile).
2535 (maintenance_info_sections): Adjust calls.
2536
02c6f3f1
TT
25372020-09-02 Tom Tromey <tromey@adacore.com>
2538
2539 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2540 for null pointers.
2541 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2542
ef5e5b0b
SM
25432020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2544
2545 * bcache.h (struct bcache) <insert>: Change type of `added` to
2546 pointer to bool.
2547 * bcache.c (bcache::insert): Likewise.
2548 * gdbtypes.c (check_types_worklist): Adjust.
2549 * psymtab.c (add_psymbol_to_bcache): Adjust.
2550
973695d6
KB
25512020-08-31 Kevin Buettner <kevinb@redhat.com>
2552
2553 * corelow.c (unordered_set): Include.
2554 (class core_target): Add field 'm_core_unavailable_mappings'.
2555 (core_target::build_file_mappings): Print only one warning
2556 per inaccessible file. Add unavailable/broken mappings
2557 to m_core_unavailable_mappings.
2558 (core_target::xfer_partial): Call...
2559 (core_target::xfer_memory_via_mappings): New method.
2560
264fc0e2
SM
25612020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2562
2563 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2564 type to bool.
2565
2de01bdb
SM
25662020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2567
2568 * dwarf2/read.c (struct field_info): Fix indentation.
2569
f3bd50f1
SM
25702020-08-31 Simon Marchi <simon.marchi@efficios.com>
2571
2572 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2573 ordering in comment.
2574 * frame.c (frame_id_eq): Fix indentation.
2575
22b9b4b0
SL
25762020-08-31 Scott Linder <scott@scottlinder.com>
2577 Simon Marchi <simon.marchi@efficios.com>
2578
2579 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2580 inline frame ids in outer frame.
2581
84154d16
SM
25822020-08-31 Simon Marchi <simon.marchi@efficios.com>
2583
2584 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2585 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2586 (outer_frame_id): Use FID_STACK_OUTER instead of
2587 FID_STACK_INVALID.
2588 (frame_id_p): Don't check for outer_frame_id.
2589
8efaf6b3
SM
25902020-08-31 Simon Marchi <simon.marchi@efficios.com>
2591
2592 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2593 regnum/frame in value. Call allocate_value_lazy.
2594 * frame.c (frame_unwind_register_value): Use
2595 val_print_not_saved.
2596
fe1fe7ea
SM
25972020-08-31 Simon Marchi <simon.marchi@efficios.com>
2598
2599 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2600
f7c7700d
PA
26012020-08-29 Pedro Alves <pedro@palves.net>
2602
2603 * progspace.c (print_program_space): Use all_inferiors. Switch to
2604 the inferior before calling target_pid_to_str.
2605
e0814aae
TT
26062020-08-28 Tom Tromey <tom@tromey.com>
2607
2608 * xcoffread.c (xcoff_end_psymtab): Update comment.
2609 * dbxread.c (dbx_end_psymtab): Update comment.
2610
626d2320
TV
26112020-08-28 Tom de Vries <tdevries@suse.de>
2612
2613 PR breakpoint/26544
2614 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2615 event_location.
2616 (create_breakpoint): Same.
2617 (base_breakpoint_decode_location): Same.
2618 (bkpt_create_sals_from_location): Same.
2619 (bkpt_decode_location): Same.
2620 (bkpt_probe_create_sals_from_location): Same.
2621 (bkpt_probe_decode_location): Same.
2622 (tracepoint_create_sals_from_location): Same.
2623 (tracepoint_decode_location): Same.
2624 (tracepoint_probe_decode_location): Same.
2625 (strace_marker_create_sals_from_location): Same.
2626 (strace_marker_decode_location): Same.
2627 (create_sals_from_location_default): Same.
2628 (decode_location_default): Same.
2629 * breakpoint.h (struct breakpoint_ops): Same.
2630 (create_breakpoint): Same.
2631 * linespec.h (decode_line_full): Same.
2632 * linespec.c (decode_line_full): Same. Throw error if
2633 result.size () == 0.
2634
df631783
PA
26352020-08-27 Pedro Alves <pedro@palves.net>
2636
2637 PR gdb/26524
2638 * breakpoint.c (until_break_fsm) <location_breakpoint,
2639 caller_breakpoint>: Delete fields.
2640 <breakpoints>: New field.
2641 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2642 two individual breakpoints.
2643 (until_break_fsm::should_stop): Loop over breakpoints in the
2644 breakpoint vector.
2645 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2646 vector.
2647 (until_break_command): Handle location expanding into multiple
2648 sals.
2649
b2b38aa4
PA
26502020-08-27 Pedro Alves <pedro@palves.net>
2651
2652 PR gdb/26523
2653 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2654 bp_until breakpoints user-specified locations. Update intro
2655 comment.
2656
b886559f
SM
26572020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2658
2659 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2660 gdb_bfd_sections): New.
2661 * maint.c (print_bfd_section_info): Change param type to
2662 maint_print_section_data.
2663 (print_objfile_section_info): Likewise.
2664 (print_bfd_section_info_maybe_relocated): Likewise.
2665 (maintenance_info_sections): Use gdb_bfd_sections.
2666
4c6e63bf
SV
26672020-08-25 Shahab Vahedi <shahab@synopsys.com>
2668
2669 * MAINTAINERS: Add ARC target and maintainer.
2670
8d7f0635
AK
26712020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2672
2673 * configure.tgt: ARC support for GNU/Linux.
2674 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2675 * arc-linux-tdep.c: New file.
2676 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2677 * arc-tdep.c (arc_write_pc): Use it.
2678
fdd8731b
SV
26792020-08-25 Shahab Vahedi <shahab@synopsys.com>
2680
2681 * arc-tdep.c (arc_check_for_hardware_loop): New.
2682 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2683
22459524
SV
26842020-08-25 Shahab Vahedi <shahab@synopsys.com>
2685
2686 * arc-tdep.h: Include "gdbarch.h".
2687
995d3a19
SV
26882020-08-25 Shahab Vahedi <shahab@synopsys.com>
2689
2690 * arch/arc.h
2691 (arc_gdbarch_features): New class to stir the selection of target XML.
2692 (arc_create_target_description): Use FEATURES to choose XML target.
2693 (arc_lookup_target_description): Use arc_create_target_description
2694 to create _new_ target descriptions or return the already created
2695 ones if the FEATURES is the same.
2696 * arch/arc.c: Implementation of prototypes described above.
2697 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2698 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2699 * arc-tdep.c (*_feature_name): Make feature names consistent.
2700 (arc_register_feature): A new struct to hold information about
2701 registers of a particular target/feature.
2702 (arc_check_tdesc_feature): Check if XML provides registers in
2703 compliance with ARC_REGISTER_FEATURE structs.
2704 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2705 (determine_*_reg_feature_set): Which feature name to look for.
2706 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2707 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2708 to expected ISA enums to be used in arc_gdbarch_features structs.
2709 * features/Makefile (FEATURE_XMLFILES): Add new files.
2710 * gdb/features/arc/v1-aux.c: New file.
2711 * gdb/features/arc/v1-aux.xml: Likewise.
2712 * gdb/features/arc/v1-core.c: Likewise.
2713 * gdb/features/arc/v1-core.xml: Likewise.
2714 * gdb/features/arc/v2-aux.c: Likewise.
2715 * gdb/features/arc/v2-aux.xml: Likewise.
2716 * gdb/features/arc/v2-core.c: Likewise.
2717 * gdb/features/arc/v2-core.xml: Likewise.
2718 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2719
3945d2d7
GM
27202020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2721 Andrew Burgess <andrew.burgess@embecosm.com>
2722
2723 PR m2/26372
fc5d6901 2724 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2725 an assert. Remove single element array indexing pattern as the
2726 MULTI_SUBSCRIPT support will handle this case too.
2727
2677f2d3
SM
27282020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2729
2730 * value.h (valprint_check_validity): Move declaration from
2731 here...
2732 * valprint.h (valprint_check_validity): ... to here.
2733
c426fddb
SM
27342020-08-24 Simon Marchi <simon.marchi@efficios.com>
2735
2736 * debug.h: New file.
2737 * debug.c (debug_prefixed_vprintf): New function.
2738 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2739 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2740
1eb8556f
SM
27412020-08-24 Simon Marchi <simon.marchi@efficios.com>
2742
2743 * infrun.h (infrun_debug_printf_1): New function declaration.
2744 (infrun_debug_printf): New macro.
2745 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2746 throughout.
2747 (infrun_debug_printf): New function.
2748 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2749 (handle_jit_event): Likewise.
2750
b8fff44e
MW
27512020-08-21 Mark Wielaard <mark@klomp.org>
2752
2753 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2754
d19c3068
SM
27552020-08-22 Simon Marchi <simon.marchi@efficios.com>
2756
2757 * frame.c (enum class frame_id_status): New.
2758 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2759 (fprintf_frame): Update.
2760 (compute_frame_id): Set frame id status to "computing" on entry.
2761 Set it back to "not_computed" on failure and to "computed" on
2762 success.
2763 (get_frame_id): Assert the frame id is not being computed.
2764 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2765 (create_new_frame): Likewise.
2766 (frame_cleanup_after_sniffer): Update assert.
2767
b70e516e
SM
27682020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2769
2770 * regcache.c (pid_ptid_regcache_map): New type.
2771 (target_ptid_regcache_map): Remove.
2772 (target_pid_ptid_regcache_map): New type.
2773 (regcaches): Change type to target_pid_ptid_regcache_map.
2774 (get_thread_arch_aspace_regcache): Update.
2775 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2776 case.
2777 (regcaches_size): Update.
2778 (regcache_count): Update.
2779 (registers_changed_ptid_target_pid_test): New.
2780 (_initialize_regcache): Register new test.
2781
cdd9148a
SM
27822020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2783
2784 * regcache.c (regcache_count): New.
2785 (struct regcache_test_data): New.
2786 (regcache_test_data_up): New.
2787 (populate_regcaches_for_test): New.
2788 (regcaches_test): Remove.
2789 (get_thread_arch_aspace_regcache_test): New.
2790 (registers_changed_ptid_all_test): New.
2791 (registers_changed_ptid_target_test): New.
2792 (registers_changed_ptid_target_ptid_test): New.
2793 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2794 (_initialize_regcache): Register new tests.
2795
dd125343
SM
27962020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2797
2798 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2799 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2800 gdbarch and aspace parameter. Use current inferior's aspace.
2801 Validate regcache's arch value.
2802 (regcaches_test): Update.
2803
3ee93972
SM
28042020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2805
2806 * regcache.c (regcaches_test): Call registers_changed.
2807
33bf4c5c
TBA
28082020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2809
2810 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2811
c2fd7fae
AKS
28122020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2813
2814 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2815 to find the end of prologue for flang compiled binaries.
2816 * arm-tdep.c (arm_skip_prologue): Likewise.
2817 * i386-tdep.c (i386_skip_prologue): Likewise.
2818 * producer.c (producer_is_llvm): New function.
2819 (producer_parsing_tests): Added new tests for clang/flang.
2820 * producer.h (producer_is_llvm): New declaration.
2821
9327494e
SM
28222020-08-18 Simon Marchi <simon.marchi@efficios.com>
2823
2824 * linux-nat.c (linux_nat_debug_printf): New function.
2825 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2826
d138725a
AM
28272020-08-18 Aaron Merey <amerey@redhat.com>
2828
2829 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2830 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2831 (CLIBS): Add DEBUGINFOD_LIBS.
2832
f9b11e6b
ST
28332020-08-17 Sergei Trofimovich <siarheit@google.com>
2834
2835 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2836 'gdbarch_num_regs'.
2837
3ae7ab99
TT
28382020-08-17 Tom Tromey <tromey@adacore.com>
2839
2840 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2841 ada_get_decoded_value returns NULL.
2842
b017825f
TT
28432020-08-17 Tom Tromey <tromey@adacore.com>
2844
2845 * python/py-inferior.c (infpy_search_memory): Use
2846 gdb_py_object_from_ulongest.
2847 * python/py-infevents.c (create_inferior_call_event_object)
2848 (create_memory_changed_event_object): Use
2849 gdb_py_object_from_ulongest.
2850 * python/py-linetable.c (ltpy_entry_get_pc): Use
2851 gdb_py_object_from_ulongest.
2852
7635cf79
SM
28532020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2854
2855 * loc.c (class symbol_needs_eval_context): Fix indentation.
2856
f54be24b
SM
28572020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2858
2859 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2860 bool.
2861
53d5a2a5
TV
28622020-08-17 Tom de Vries <tdevries@suse.de>
2863
2864 PR gdb/26393
2865 * gdbtypes.c (dump_dynamic_prop): New function.
2866 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2867
547ce8f0
TV
28682020-08-15 Tom de Vries <tdevries@suse.de>
2869
2870 PR backtrace/26390
2871 * stack.c (print_frame_args): Temporarily set the selected
2872 frame to FRAME while printing the frame's arguments.
2873
6ea815e7
PFC
28742020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2875
2876 PR breakpoints/26385
2877 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2878 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2879
6e562fa3
PFC
28802020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2881
2882 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2883 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2884 and >= to check return value instead of == -1 and != -1.
2885
d369b608
SM
28862020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2887
2888 * utils.h (class gdb_argv) <as_array_view>: New method.
2889 * utils.c (gdb_argv_as_array_view_test): New.
2890 (_initialize_utils): Register selftest.
2891 * maint.c (maintenance_selftest): Use the new method.
2892
b31488a3
KR
28932020-08-13 Kamil Rytarowski <n54@gmx.com>
2894
2895 * target.h (supports_dumpcore, dumpcore): New
2896 function declarations.
2897 * target.c (supports_dumpcore, dumpcore): New
2898 functions.
2899 * target-delegates.c: Rebuild.
2900 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2901 and target_dumpcore ().
2902
002a3166
AM
29032020-08-13 Aaron Merey <amerey@redhat.com>
2904
2905 * debuginfod-support.c: Replace global variables with user_data.
2906
ece5bc8a
SM
29072020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2908
2909 * maint.c (maintenance_selftest): Split args and pass array_view
2910 to run_tests.
2911
6d8a0a5e
LM
29122020-08-12 Luis Machado <luis.machado@linaro.org>
2913
2914 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2915 type's length.
2916 Use %s and pulongest to print the length.
2917
7cf663a9
PA
29182020-08-12 Pedro Alves <palves@redhat.com>
2919
2920 * NEWS: Move "Multi-target debugging support" item to the
2921 "Changes since GDB 9" section.
2922
27c7b875
PA
29232020-08-12 Pedro Alves <palves@redhat.com>
2924
2925 PR gdb/26336
2926 * progspace.c (program_space::remove_objfile): Invalidate the
2927 frame cache.
2928
1796a2a1
TV
29292020-08-11 Tom de Vries <tdevries@suse.de>
2930
2931 * MAINTAINERS: Mark ms1 as deleted.
2932
f8e3fe0d
LM
29332020-08-10 Luis Machado <luis.machado@linaro.org>
2934
2935 PR gdb/26310
2936
2937 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2938 act accordingly.
2939 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2940 movz/str/stur/stp skipping behavior.
2941
cc308722
LM
29422020-08-10 Luis Machado <luis.machado@linaro.org>
2943
2944 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2945 struct user_sve_header instead of struct sve_context.
2946
041d9819
SM
29472020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2948
2949 * read.h (dwarf2_fetch_die_loc_sect_off,
2950 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2951 `void *` parameter with function_view.
2952 * read.c (dwarf2_fetch_die_loc_sect_off,
2953 dwarf2_fetch_die_loc_cu_off): Likewise.
2954 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2955 (per_cu_dwarf_call): Adjust.
2956 (get_frame_address_in_block_wrapper): Remove.
2957 (indirect_synthetic_pointer): Adjust.
2958 (get_ax_pc): Remove.
2959 (dwarf2_compile_expr_to_ax): Adjust.
2960
38f8aa06
TV
29612020-08-08 Tom de Vries <tdevries@suse.de>
2962
2963 PR build/26344
2964 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2965 constructor.
2966 * regcache.c (get_thread_arch_aspace_regcache): Same.
2967
a52b3ae2
TT
29682020-08-07 Tom Tromey <tromey@adacore.com>
2969
2970 * ravenscar-thread.c
2971 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2972 New method.
2973 (ravenscar_thread_target::wait): Check
2974 runtime_initialized.
2975 (ravenscar_thread_target::prepare_to_store)
2976 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2977 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2978 (ravenscar_thread_target::stopped_by_watchpoint)
2979 (ravenscar_thread_target::stopped_data_address)
2980 (ravenscar_thread_target::core_of_thread): Use
2981 scoped_restore_current_thread and
2982 set_base_thread_from_ravenscar_task.
2983
0e29517d
TT
29842020-08-07 Tom Tromey <tromey@adacore.com>
2985
2986 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2987
592f9bd7
TT
29882020-08-07 Tom Tromey <tromey@adacore.com>
2989
2990 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2991 update_inferior_ptid before update_thread_list.
2992 (temporarily_change_regcache_ptid): New class.
2993 (ravenscar_thread_target::fetch_registers)
2994 (ravenscar_thread_target::store_registers)
2995 (ravenscar_thread_target::prepare_to_store): Use base thread when
2996 forwarding operation.
2997
39e2018a
TT
29982020-08-07 Tom Tromey <tromey@adacore.com>
2999
3000 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3001 "is_pid" case.
3002
2080266b
TT
30032020-08-07 Tom Tromey <tromey@adacore.com>
3004
3005 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3006 New methods.
3007 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3008 first.
3009 (ravenscar_thread_target::add_thread): Rename from
3010 ravenscar_add_thread.
3011 (ravenscar_thread_target::update_thread_list): Use a lambda.
3012 (ravenscar_thread_target::xfer_partial): New method.
3013
78c02f21
TT
30142020-08-07 Tom Tromey <tromey@adacore.com>
3015
3016 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3017 gdb::function_view.
3018 (iterate_over_live_ada_tasks): Change type of argument.
3019 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3020 of argument.
3021
d5d833af
TT
30222020-08-07 Tom Tromey <tromey@adacore.com>
3023
3024 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3025 Remove.
3026 (ravenscar_thread_target::extra_thread_info): Remove.
3027 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3028 defer to target beneath for non-Ravenscar threads.
3029
a8ac85bb
TT
30302020-08-07 Tom Tromey <tromey@adacore.com>
3031
3032 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3033 get_base_thread_from_ravenscar_task>: Now methods.
3034 <m_cpu_map>: New member.
3035 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3036 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3037 (ravenscar_thread_target::task_is_currently_active): Update.
3038 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3039 Now a method.
3040 (ravenscar_thread_target::add_active_thread): Put initial thread
3041 into the m_cpu_map.
3042
550ab58d
TT
30432020-08-07 Tom Tromey <tromey@adacore.com>
3044
3045 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3046 event_ptid.
3047
e9546579
TT
30482020-08-07 Tom Tromey <tromey@adacore.com>
3049
3050 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3051 runtime_initialized.
3052
3d4470e5
TT
30532020-08-07 Tom Tromey <tromey@adacore.com>
3054
3055 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3056 add_active_thread.
3057 (ravenscar_thread_target::add_active_thread): Now public.
3058 (ravenscar_inferior_created): Call add_active_thread after pushing
3059 the target.
3060
888bdb2b
SM
30612020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3062
3063 * regcache.c (ptid_regcache_map): New type.
3064 (target_ptid_regcache_map): New type.
3065 (regcaches): Change type to target_ptid_regcache_map.
3066 (get_thread_arch_aspace_regcache): Update to regcaches' new
3067 type.
3068 (regcache_thread_ptid_changed): Likewise.
3069 (registers_changed_ptid): Likewise.
3070 (regcaches_size): Likewise.
3071 (regcaches_test): Update.
3072 (regcache_thread_ptid_changed): Update.
3073 * regcache.h (regcache_up): New type.
3074 * gdbsupport/ptid.h (hash_ptid): New struct.
3075
b161a60d
SM
30762020-08-07 Simon Marchi <simon.marchi@efficios.com>
3077
3078 * observable.h (thread_ptid_changed): Add parameter
3079 `process_stratum_target *`.
3080 * infrun.c (infrun_thread_ptid_changed): Add parameter
3081 `process_stratum_target *` and use it.
3082 (selftests): New namespace.
3083 (infrun_thread_ptid_changed): New function.
3084 (_initialize_infrun): Register selftest.
3085 * regcache.c (regcache_thread_ptid_changed): Add parameter
3086 `process_stratum_target *` and use it.
3087 (regcache_thread_ptid_changed): New function.
3088 (_initialize_regcache): Register selftest.
3089 * thread.c (thread_change_ptid): Pass target to
3090 thread_ptid_changed observable.
3091
d2854d8d
CT
30922020-08-06 Caroline Tice <cmtice@google.com>
3093
fe4c3d43
SM
3094 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3095 (struct dwp_sections): Update field comments. Add loclists and
3096 rnglists fields.
3097 (struct virtual_v2_dwo_sections): Rename struct to
3098 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3099 size & offset fields for loclists and rnglists.
3100 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3101 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3102 skipping dummy type units.
3103 (create_dwp_hash_table): Update the large comment above the function to
3104 discuss Version 5 DWP files as well, with references. Update all the
3105 version checks in the function to check for version 5 as well. Add new
3106 section at the end to create dwp hash table for version 5.
3107 (create_dwp_v2_section): Rename function to
3108 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3109 Add V5 to error message text.
3110 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3111 into calls to create_dwp_v2_or_v5_section.
3112 (create_dwo_unit_in_dwp_v5): New function.
3113 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3114 check for version2; add else clause to handle version 5.
3115 (open_and_init_dwo_file): Add code to check dwarf version & only call
3116 create_debug_types_hash_table (with sections.types) if version is not 5;
3117 else call create_debug_type_hash_table, with sections.info.
3118 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3119 version 5.
3120 (dwarf2_locate_v5_dwp_sections): New function.
3121 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3122 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3123
159ed7d9
SM
31242020-08-06 Simon Marchi <simon.marchi@efficios.com>
3125
3126 * regcache.h (class regcache): Remove friend
3127 registers_changed_ptid.
3128 <regcache_thread_ptid_changed>: Remove.
3129 <regcaches>: Remove.
3130 * regcache.c (regcache::regcaches): Rename to...
3131 (regcaches): ... this. Make static.
3132 (get_thread_arch_aspace_regcache): Update.
3133 (regcache::regcache_thread_ptid_changed): Rename to...
3134 (regcache_thread_ptid_changed): ... this. Update.
3135 (class regcache_access): Remove.
3136 (regcaches_test): Update.
3137 (_initialize_regcache): Update.
3138 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3139 <forward_list>.
3140
174981ae
SM
31412020-08-06 Simon Marchi <simon.marchi@efficios.com>
3142
3143 * regcache.h (class regcache) <current_regcache>: Rename to...
3144 <regcaches>: ... this. Move doc here.
3145 * regcache.c (regcache::current_regcache) Rename to...
3146 (regcache::regcaches): ... this. Move doc to header.
3147 (get_thread_arch_aspace_regcache): Update.
3148 (regcache::regcache_thread_ptid_changed): Update.
3149 (registers_changed_ptid): Update.
3150 (class regcache_access) <current_regcache_size>: Rename to...
3151 <regcaches_size>: ... this.
3152 (current_regcache_test): Rename to...
3153 (regcaches_test): ... this.
3154 (_initialize_regcache): Update.
3155
ed908db6
VC
31562020-08-06 Victor Collod <vcollod@nvidia.com>
3157
3158 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3159
b5582ab7
KB
31602020-08-05 Kevin Buettner <kevinb@redhat.com>
3161
3162 * corelow.c (core_target::build_file_mappings): Don't output
3163 null pathname in warning.
3164
ea946b86
SM
31652020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3166
3167 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3168 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3169 gdb.dwarf2/dw2-single-line-discriminators.exp,
3170 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3171
57d02173
TT
31722020-08-05 Tom Tromey <tromey@adacore.com>
3173
3174 PR rust/26197:
3175 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3176 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3177 Fix off-by-one and type size errors in ordinary case.
3178
5555c86d
TV
31792020-08-05 Tom de Vries <tdevries@suse.de>
3180
3181 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3182 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3183
97916bfe
SM
31842020-08-04 Simon Marchi <simon.marchi@efficios.com>
3185
3186 * frame.h (frame_id_p): Return bool.
3187 (frame_id_artificial_p): Return bool.
3188 (frame_id_eq): Return bool.
3189 (has_stack_frames): Return bool.
3190 (get_selected_frame): Fix typo in comment.
3191 (get_frame_pc_if_available): Return bool.
3192 (get_frame_address_in_block_if_available): Return bool.
3193 (get_frame_func_if_available): Return bool.
3194 (read_frame_register_unsigned): Return bool.
3195 (get_frame_register_bytes): Return bool.
3196 (safe_frame_unwind_memory): Return bool.
3197 (deprecated_frame_register_read): Return bool.
3198 (frame_unwinder_is): Return bool.
3199 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3200 bool.
3201 <this_id::p>: Likewise.
3202 <prev_p>: Likewise.
3203 (frame_stash_add): Return bool.
3204 (get_frame_id): Use bool.
3205 (frame_id_build_special) Use bool.
3206 (frame_id_build_unavailable_stack): Use bool.
3207 (frame_id_build): Use bool.
3208 (frame_id_p): Return bool, use true/false instead of 1/0.
3209 (frame_id_artificial_p): Likewise.
3210 (frame_id_eq): Likewise.
3211 (frame_id_inner): Likewise.
3212 (get_frame_func_if_available): Likewise.
3213 (read_frame_register_unsigned): Likewise.
3214 (deprecated_frame_register_read): Likewise.
3215 (get_frame_register_bytes): Likewise.
3216 (has_stack_frames): Likewise.
3217 (inside_main_func): Likewise.
3218 (inside_entry_func): Likewise.
3219 (get_frame_pc_if_available): Likewise.
3220 (get_frame_address_in_block_if_available): Likewise.
3221 (frame_unwinder_is): Likewise.
3222 (safe_frame_unwind_memory): Likewise.
3223 (frame_unwind_arch): Likewise.
3224
fedfee88
SM
32252020-08-04 Simon Marchi <simon.marchi@efficios.com>
3226
3227 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3228 type to cached_copy_status.
3229 (fprintf_frame): Adjust.
3230 (get_frame_func_if_available): Adjust.
3231 (frame_cleanup_after_sniffer): Adjust.
3232
6cfa9b59
MW
32332020-08-04 Mark Wielaard <mark@klomp.org>
3234
3235 * MAINTAINERS (Write After Approval): Update email address.
3236
66d6346b
SM
32372020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3238
3239 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3240 dynamic_prop::const_val.
3241
8a6d5e35
SM
32422020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3243
3244 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3245 dynamic_prop::kind.
3246
51d6067d
SM
32472020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3248
3249 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3250
b26e2ae7
JM
32512020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3252
3253 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3254
39791af2
JM
32552020-08-04 Weimin Pan <weimin.pan@oracle.com>
3256 Jose E. Marchesi <jose.marchesi@oracle.com>
3257
3258 * configure.tgt: Add entry for bpf-*-*.
3259 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3260 (ALLDEPFILES): Add bpf-tdep.c.
3261 * bpf-tdep.c: New file.
3262 * MAINTAINERS: Add bpf target and maintainer.
3263 * NEWS: Mention the support for the new target.
3264
521894aa
TV
32652020-08-04 Tom de Vries <tdevries@suse.de>
3266
3267 PR symtab/23270
3268 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3269 Error.
3270
5d6356e9
JB
32712020-08-03 John Baldwin <jhb@FreeBSD.org>
3272
3273 * syscalls/freebsd.xml: Regenerate.
3274
0cf82b81
JB
32752020-08-03 John Baldwin <jhb@FreeBSD.org>
3276
3277 * syscalls/update-freebsd.sh: Fix usage and year range.
3278
8f34b746
TV
32792020-08-03 Tom de Vries <tdevries@suse.de>
3280
3281 PR symtab/26333
3282 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3283 DW_LNE_lo_user/DW_LNE_hi_user range.
3284
5e500d33
SM
32852020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3286
3287 PR ada/26318
3288 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3289 kind.
3290
78319c15
TBA
32912020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3292
3293 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3294
4c55e970
TBA
32952020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3296
3297 * breakpoint.c (set_breakpoint_condition): Update the condition
3298 expressions after checking that the input condition string parses
3299 successfully and does not contain junk at the end.
3300
1e620590
TBA
33012020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3302
3303 * breakpoint.c (set_breakpoint_condition): Update the
3304 condition string after parsing the new condition successfully.
3305
c8693053
RO
33062020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3307
3308 * proc-api.c (_STRUCTURED_PROC): Don't define.
3309 * proc-events.c: Likewise.
3310 * proc-flags.c: Likewise.
3311 * proc-why.c: Likewise.
3312 * procfs.c: Likewise.
3313
3314 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3315 * configure, config.in: Regenerate.
3316
5a99adb8
TV
33172020-07-30 Tom de Vries <tdevries@suse.de>
3318
3319 PR build/26320
3320 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3321 m_red/m_green/m_blue in a union.
3322
8ba83e91
TV
33232020-07-29 Tom de Vries <tdevries@suse.de>
3324
3325 PR tdep/26280
3326 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3327
f75a0693
AB
33282020-07-28 Tom Tromey <tromey@adacore.com>
3329
3330 PR symtab/26270:
3331 * symtab.h (find_pc_partial_function_sym): Declare.
3332 * cli/cli-cmds.c (disassemble_command): Use
3333 find_pc_partial_function_sym. Check asm_demangle.
3334 * blockframe.c (cache_pc_function_sym): New global.
3335 (cache_pc_function_name): Remove.
3336 (clear_pc_function_cache): Update.
3337 (find_pc_partial_function_sym): New function, from
3338 find_pc_partial_function.
3339 (find_pc_partial_function): Rewrite using
3340 find_pc_partial_function_sym.
3341
16f3242c
TT
33422020-07-28 Tom Tromey <tromey@adacore.com>
3343
3344 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3345 help. Add usage.
3346
4888741a
TT
33472020-07-28 Tom Tromey <tromey@adacore.com>
3348
3349 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3350 <DW_OP_GNU_variable_value>: Cast to address type.
3351
4d46f402
KR
33522020-07-28 Kamil Rytarowski <n54@gmx.com>
3353
3354 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3355 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3356 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3357 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3358 (nbsd_get_siginfo_type): New.
3359 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3360 (_initialize_nbsd_tdep): New.
3361
d70f978b
L
33622020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3363
3364 PR binutils/26301
3365 * configure: Regenerated.
3366
377170fa
L
33672020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3368
3369 PR binutils/26301
3370 * configure: Regenerated.
3371
43d5901d
AB
33722020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3373
3374 * python/py-frame.c: Remove 'user-regs.h' include.
3375 (frapy_read_register): Rewrite to make use of
3376 gdbpy_parse_register_id.
3377 * python/py-registers.c (gdbpy_parse_register_id): New function,
3378 moved here from python/py-unwind.c. Updated the return type, and
3379 also accepts register descriptor objects.
3380 * python/py-unwind.c: Remove 'user-regs.h' include.
3381 (pyuw_parse_register_id): Moved to python/py-registers.c.
3382 (unwind_infopy_add_saved_register): Update to use
3383 gdbpy_parse_register_id.
3384 (pending_framepy_read_register): Likewise.
3385 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3386
14fa8fb3
AB
33872020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3388
3389 * python/py-registers.c: Add 'user-regs.h' include.
3390 (register_descriptor_iter_find): New function.
3391 (register_descriptor_iterator_object_methods): New static global
3392 methods array.
3393 (register_descriptor_iterator_object_type): Add pointer to methods
3394 array.
3395
ddce1758
JB
33962020-07-27 John Baldwin <jhb@FreeBSD.org>
3397
3398 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3399 for all architectures on FreeBSD 11.3 and later.
3400
a4089f52
TT
34012020-07-27 Tom Tromey <tromey@adacore.com>
3402
3403 * gcore.h (load_corefile): Don't declare.
3404
95420d30
TV
34052020-07-27 Tom de Vries <tdevries@suse.de>
3406
3407 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3408 * config.in: Regenerate.
3409 * configure: Regenerate.
3410
05a6b8c2
EZ
34112020-07-26 Eli Zaretskii <eliz@gnu.org>
3412
3413 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3414 ws2tcpip.h. When checking whether socklen_t type is defined, use
3415 ws2tcpip.h if it is available and sys/socket.h isn't.
3416 * configure: Regenerate.
3417 * config.in: Regenerate.
3418
e79eb02f
AB
34192020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3420
3421 PR fortran/23051
3422 PR fortran/26139
3423 * valops.c (value_ind): Pass address to
3424 readjust_indirect_value_type.
3425 * value.c (readjust_indirect_value_type): Make parameter
3426 non-const, and add extra address parameter. Resolve original type
3427 before using it.
3428 * value.h (readjust_indirect_value_type): Update function
3429 signature and comment.
3430
876518dd
TV
34312020-07-25 Tom de Vries <tdevries@suse.de>
3432
3433 PR symtab/26243
3434 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3435 entries.
3436
f6720b1c
AM
34372020-07-24 Aaron Merey <amerey@redhat.com>
3438
3439 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3440 * configure: Rebuild.
3441
513487e1
KB
34422020-07-23 Kevin Buettner <kevinb@redhat.com>
3443
3444 PR corefiles/26294
3445 * corelow.c (_initialize_corelow): Add period to help text
3446 for "maintenance print core-file-backed-mappings".
3447
e7bc9db8
PA
34482020-07-23 Pedro Alves <pedro@palves.net>
3449
3450 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3451 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3452 meanwhile.
3453 * frame.c (frame_cache_generation, get_frame_cache_generation):
3454 New.
3455 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3456 (get_prev_frame_if_no_cycle): On exception, don't touch
3457 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3458 * frame.h (get_frame_cache_generation): Declare.
3459
90fcc466
TV
34602020-07-23 Tom de Vries <tdevries@suse.de>
3461
3462 PR tui/26282
3463 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3464 New default constructor.
3465
78344df7
AB
34662020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3467
3468 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3469 exclude non-statement entries.
3470
b089853a
KB
34712020-07-22 Kevin Buettner <kevinb@redhat.com>
3472
3473 * NEWS (New commands): Mention new command
3474 "maintenance print core-file-backed-mappings".
3475
09c2f5d4
KB
34762020-07-22 Kevin Buettner <kevinb@redhat.com>
3477
3478 * corelow.c (gdbcmd.h): Include.
3479 (core_target::info_proc_mappings): New method.
3480 (get_current_core_target): New function.
3481 (maintenance_print_core_file_backed_mappings): New function.
3482 (_initialize_corelow): Add core-file-backed-mappings to
3483 "maint print" commands.
3484
9c5ec5c2 34852020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3486
9c5ec5c2
KB
3487 * linux-tdep.c (dump_note_entry_p): New function.
3488 (linux_dump_mapping_p_ftype): New typedef.
3489 (linux_find_memory_regions_full): Add new parameter,
3490 should_dump_mapping_p.
3491 (linux_find_memory_regions): Adjust call to
3492 linux_find_memory_regions_full.
3493 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3494 call to linux_find_memory_regions_full.
3495
db082f59
KB
34962020-07-22 Kevin Buettner <kevinb@redhat.com>
3497
3498 * corelow.c (solist.h, unordered_map): Include.
3499 (class core_target): Add field m_core_file_mappings and
3500 method build_file_mappings.
3501 (core_target::core_target): Call build_file_mappings.
3502 (core_target::~core_target): Free memory associated with
3503 m_core_file_mappings.
3504 (core_target::build_file_mappings): New method.
3505 (core_target::xfer_partial): Use m_core_file_mappings
3506 for memory transfers.
3507 * linux-tdep.c (linux_read_core_file_mappings): New
3508 function.
3509 (linux_core_info_proc_mappings): Rewrite to use
3510 linux_read_core_file_mappings.
3511 (linux_init_abi): Register linux_read_core_file_mappings.
3512
7e183d27
KB
35132020-07-22 Kevin Buettner <kevinb@redhat.com>
3514
3515 * arch-utils.c (default_read_core_file_mappings): New function.
3516 * arch-utils.c (default_read_core_file_mappings): Declare.
3517 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3518 * gdbarch.h, gdbarch.c: Regenerate.
3519
2735d421
KB
35202020-07-22 Kevin Buettner <kevinb@redhat.com>
3521
3522 PR corefiles/25631
3523 * corelow.c (core_target:xfer_partial): Revise
3524 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3525 case after first checking the stratum beneath the core
3526 target.
3527 (has_all_memory): Return true.
3528 * target.c (raw_memory_xfer_partial): Revise comment
3529 regarding use of has_all_memory.
3530
e56cb451
KB
35312020-07-22 Kevin Buettner <kevinb@redhat.com>
3532
3533 * exec.h (section_table_xfer_memory): Revise declaration,
3534 replacing section name parameter with an optional callback
3535 predicate.
3536 * exec.c (section_table_xfer_memory): Likewise.
3537 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3538 of section_table_xfer_memory.
3539
32fa152e
TT
35402020-07-22 Tom Tromey <tromey@adacore.com>
3541
3542 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3543 lookup_symbol_search_name.
3544
a67a1c41
AB
35452020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3546
3547 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3548 redundant local variable.
3549 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3550 reference, not pointer, update code accordingly.
3551
a7b4ff4f
SM
35522020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3553 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3554
3555 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3556 * jit.c (jit_breakpoint_re_set_internal): Use the
3557 `skip_jit_symbol_lookup` field.
3558
2340e834
SM
35592020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3560 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3561
3562 * jit.c (jit_read_descriptor): Define the descriptor address once,
3563 use twice.
3564 (jit_breakpoint_deleted): Move the declaration of the loop variable
3565 `iter` into the loop header.
3566 (jit_breakpoint_re_set_internal): Move the declaration of the local
3567 variable `objf_data` to the first point of definition.
3568 (jit_event_handler): Move the declaration of local variables
3569 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3570 Rename `objf` to `jited`.
3571
c1072906
SM
35722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3573
3574 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3575 Remove.
3576 * jit.c (get_jiter_objfile_data): Update.
3577
c8474dc3
TBA
35782020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3579 Simon Marchi <simon.marchi@polymtl.ca>
3580
3581 * jit.c (struct jit_program_space_data): Remove.
3582 (jit_program_space_key): Remove.
3583 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3584 stuff.
3585 (get_jit_program_space_data): Remove.
3586 (jit_breakpoint_deleted): Iterate on all of the program space's
3587 objfiles.
3588 (jit_inferior_init): Likewise.
3589 (jit_breakpoint_re_set_internal): Likewise. Also change return
3590 type to void.
3591 (jit_breakpoint_re_set): Pass current_program_space to
3592 jit_breakpoint_re_set_internal.
3593
77208eb7
SM
35942020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3595
3596 * jit.h (struct jiter_objfile_data) <cached_code_address,
3597 jit_breakpoint>: Move to here from ...
3598 * jit.c (jit_program_space_data): ... here.
3599 (jiter_objfile_data::~jiter_objfile_data): Update.
3600 (jit_breakpoint_deleted): Update.
3601 (jit_breakpoint_re_set_internal): Update.
3602
8c1c720f
SM
36032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3604
3605 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3606 checks.
3607 (jit_read_descriptor): Remove NULL check.
3608 (jit_event_handler): Add an assertion.
3609
0e74a041
SM
36102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3611
3612 * jit.h (struct jit_objfile_data): Split into...
3613 (struct jiter_objfile_data): ... this ...
3614 (struct jited_objfile_data): ... and this.
3615 * objfiles.h (struct objfile) <jit_data>: Remove.
3616 <jiter_data, jited_data>: New fields.
3617 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3618 (jiter_objfile_data::~jiter_objfile_data): ... this.
3619 (get_jit_objfile_data): Rename to ...
3620 (get_jiter_objfile_data): ... this.
3621 (add_objfile_entry): Update.
3622 (jit_read_descriptor): Use get_jiter_objfile_data.
3623 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3624 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3625 (jit_inferior_exit_hook): Use objfile's jited_data field.
3626
238b5c9f
SM
36272020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3628
3629 * jit.h: Forward-declare `struct minimal_symbol`.
3630 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3631 constructor, destructor, and an objfile* field.
3632 * jit.c (jit_objfile_data): Remove.
3633 (struct jit_objfile_data): Migrate from here to jit.h.
3634 (jit_objfile_data::~jit_objfile_data): New destructor
3635 implementation with code moved from free_objfile_data.
3636 (free_objfile_data): Delete.
3637 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3638 (jit_find_objf_with_entry_addr): Ditto.
3639 (jit_inferior_exit_hook): Ditto.
3640 (_initialize_jit): Remove the call to
3641 register_objfile_data_with_cleanup.
3642 * objfiles.h (struct objfile) <jit_data>: New field.
3643
fe053b9e
TBA
36442020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3645
3646 * jit.h: Forward-declare `struct objfile`.
3647 (jit_event_handler): Add a second parameter, the JITer objfile.
3648 * jit.c (jit_read_descriptor): Change the signature to take the
3649 JITer objfile as an argument instead of the jit_program_space_data.
3650 (jit_inferior_init): Update the call to jit_read_descriptor.
3651 (jit_event_handler): Use the new JITer objfile argument when calling
3652 jit_read_descriptor.
3653 * breakpoint.c (handle_jit_event): Update the call to
3654 jit_event_handler to pass the JITer objfile.
3655
4cec0c66
JB
36562020-07-21 John Baldwin <jhb@FreeBSD.org>
3657
3658 * gdbarch.c: Regenerate.
3659 * gdbarch.h: Regenerate.
3660 * gdbarch.sh (handle_segmentation_fault): Remove method.
3661 * infrun.c (handle_segmentation_fault): Remove.
3662 (print_signal_received_reason): Remove call to
3663 handle_segmentation_fault.
3664
0e42f66a
JB
36652020-07-21 John Baldwin <jhb@FreeBSD.org>
3666
3667 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3668 Rename to sparc64_linux_report_signal_info and add siggnal
3669 argument.
3670 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3671 instead of sparc64_linux_handle_segmentation_fault.
3672
77bdfeb2
JB
36732020-07-21 John Baldwin <jhb@FreeBSD.org>
3674
3675 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3676 i386_linux_report_signal_info instead of
3677 i386_linux_handle_segmentation_fault.
3678 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3679 to i386_linux_report_signal_info and add siggnal argument.
3680 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3681 of i386_linux_handle_segmentation_fault.
3682 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3683 to i386_linux_report_signal_info and add siggnal argument.
3684
ad97bfc5
JB
36852020-07-21 John Baldwin <jhb@FreeBSD.org>
3686
3687 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3688 hook if present.
3689
272bb05c
JB
36902020-07-21 John Baldwin <jhb@FreeBSD.org>
3691
3692 * gdbarch.c: Regenerate.
3693 * gdbarch.h: Regenerate.
3694 * gdbarch.sh (report_signal_info): New method.
3695 * infrun.c (print_signal_received_reason): Invoke gdbarch
3696 report_signal_info hook if present.
3697
baf8791e
AB
36982020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3699
3700 * python/py-registers.c : Add 'unordered_map' include.
3701 (gdbpy_new_reggroup): Renamed to...
3702 (gdbpy_get_reggroup): ...this. Update to only create register
3703 group descriptors when needed.
3704 (gdbpy_reggroup_iter_next): Update.
3705
f7306dac
AB
37062020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3707
3708 * python/py-registers.c (gdbpy_register_object_data): New static
3709 global.
3710 (gdbpy_register_object_data_init): New function.
3711 (gdbpy_new_register_descriptor): Renamed to...
3712 (gdbpy_get_register_descriptor): ...this, and update to reuse
3713 existing register descriptors where possible.
3714 (gdbpy_register_descriptor_iter_next): Update.
3715 (gdbpy_initialize_registers): Register new gdbarch data.
3716
05c309a8
SM
37172020-07-21 Simon Marchi <simon.marchi@efficios.com>
3718
3719 * linux-nat.c (stopped_pids): Make static.
3720
d1fd641e
SM
37212020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3722
3723 PR ada/26235
3724 * gdbtypes.c (ada_discrete_type_low_bound,
3725 ada_discrete_type_high_bound): Handle undefined bounds.
3726
1de14d77
KR
37272020-07-21 Kamil Rytarowski <n54@gmx.com>
3728
3729 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3730 declaration.
3731 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3732 function.
3733
ed810cc7
JB
37342020-07-20 John Baldwin <jhb@FreeBSD.org>
3735
3736 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3737 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3738 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3739 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3740 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3741 method.
3742
ae5369e7
LC
37432020-07-20 Ludovic Courtès <ludo@gnu.org>
3744
3745 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3746 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3747 which are deprecated in Guile 3.0.
3748 * configure.ac (try_guile_versions): Add "guile-3.0".
3749 * configure (try_guile_versions): Regenerate.
3750 * NEWS: Update entry.
3751
68cf161c
LC
37522020-07-20 Ludovic Courtès <ludo@gnu.org>
3753 Doug Evans <dje@google.com>
3754
3755 PR gdb/21104
3756 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3757 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3758 USING_GUILE_BEFORE_2_2.
3759 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3760 Change type to 'scm_t_port_type *'.
3761 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3762 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3763 parameter and honor it. Update callers.
3764 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3765 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3766 functions.
3767 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3768 USING_GUILE_BEFORE_2_2.
3769 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3770 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3771 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3772 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3773 and 'SCM_PORT_TYPE'.
3774 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3775 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3776 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3777 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3778 [!USING_GUILE_BEFORE_2_2]: New functions.
3779 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3780 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3781 'gdbscm_memory_port_read'.
3782 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3783 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3784 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3785 function.
3786 (ioscm_init_memory_port): Remove.
3787 (ioscm_init_memory_port_stream): New function
3788 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3789 function.
3790 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3791 Return scm_from_uint (0).
3792 (gdbscm_set_memory_port_read_buffer_size_x)
3793 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3794 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3795 Return scm_from_uint (0).
3796 (gdbscm_set_memory_port_write_buffer_size_x)
3797 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3798 * configure.ac (try_guile_versions): Add "guile-2.2".
3799 * configure: Regenerate.
3800 * NEWS: Add entry.
3801
aee91db3
TT
38022020-07-18 Tom Tromey <tom@tromey.com>
3803
3804 * linux-nat.c (linux_multi_process): Remove.
3805 (linux_nat_target::supports_multi_process): Return true.
3806
0e267416
AB
38072020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3808
3809 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3810 (riscv_lookup_target_description): Return pointer out of
3811 unique_ptr.
3812 * target-descriptions.c (allocate_target_description): Add
3813 comment.
3814 (target_desc_deleter::operator()): Likewise.
3815 * target-descriptions.h (struct target_desc_deleter): Moved to
3816 gdbsupport/tdesc.h.
3817 (target_desc_up): Likewise.
3818
f80c8ec4
TT
38192020-07-17 Tom Tromey <tromey@adacore.com>
3820
3821 * linux-nat.c (linux_nat_target::supports_non_stop)
3822 (linux_nat_target::always_non_stop_p): Use "true".
3823 (linux_nat_target::supports_disable_randomization): Use "true" and
3824 "false".
3825
d0ce17d8
CT
38262020-07-16 Caroline Tice <cmtice@google.com>
3827
3828 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3829 (RNGLIST_HEADER_SIZE64): New constant definition.
3830 (struct dwop_section_names): Add rnglists_dwo.
3831 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3832 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3833 (struct dwo_sections): Add rnglists field.
3834 (read_attribut_reprocess): Add tag parameter.
3835 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3836 (cu_debug_rnglists_section): New function (decl & definition).
3837 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3838 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3839 die whose range is being checked; get rnglist section from
3840 cu_debug_rnglists_section, to get from either objfile or dwo file as
3841 appropriate. Add cases for DW_RLE_base_addressx,
3842 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3843 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3844 test inside if-condition and updating complaint message.
3845 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3846 dwarf2_rnglists_process.
3847 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3848 dwarf2_ranges_process.
3849 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3850 need_ranges_base and update comment appropriately. Also pass die tag
3851 to dwarf2_ranges_read.
3852 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3853 need_ranges_base and update comment appropriately. Also pass die tag
3854 to dwarf2_ranges_process.
3855 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3856 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3857 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3858 need_ranges_base and update comment appropriately. Also pass die tag
3859 to read_attribute_reprocess and dwarf2_ranges_read.
3860 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3861 and update function comment appropriately.
3862 (read_loclist_index): Call read_loclists_rnglists_header instead of
3863 read_loclist_header.
3864 (read_rnglist_index): New function.
3865 (read_attribute_reprocess): Add tag parameter. Add code for
3866 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3867 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3868
3dcc261c
AB
38692020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3870
3871 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3872 being resolved.
3873
ccb9eba6
AB
38742020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3875
3876 * arch-utils.c (show_architecture): Update formatting of messages.
3877
cf88be68
SM
38782020-07-12 Simon Marchi <simon.marchi@efficios.com>
3879
3880 * gdbtypes.h (struct type) <bounds>: Handle array and string
3881 types.
3882 * ada-lang.c (assign_aggregate): Use type::bounds on
3883 array/string type.
3884 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3885 * c-varobj.c (c_number_of_children): Likewise.
3886 (c_describe_child): Likewise.
3887 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3888 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3889 (f_type_print_base): Likewise.
3890 * f-valprint.c (f77_array_offset_tbl): Likewise.
3891 (f77_get_upperbound): Likewise.
3892 (f77_print_array_1): Likewise.
3893 * guile/scm-type.c (gdbscm_type_range): Likewise.
3894 * m2-typeprint.c (m2_array): Likewise.
3895 (m2_is_long_set_of_type): Likewise.
3896 * m2-valprint.c (get_long_set_bounds): Likewise.
3897 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3898 * python/py-type.c (typy_range): Likewise.
3899 * rust-lang.c (rust_internal_print_type): Likewise.
3900 * type-stack.c (type_stack::follow_types): Likewise.
3901 * valarith.c (value_subscripted_rvalue): Likewise.
3902 * valops.c (value_cast): Likewise.
3903
509971ae
SM
39042020-07-12 Simon Marchi <simon.marchi@efficios.com>
3905
3906 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3907 callers to use the equivalent accessor methods.
3908
107406b7
SM
39092020-07-12 Simon Marchi <simon.marchi@efficios.com>
3910
3911 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3912 (struct type) <bit_stride>: New method.
3913 (TYPE_BIT_STRIDE): Remove.
3914 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3915
bb789949
SM
39162020-07-12 Simon Marchi <simon.marchi@efficios.com>
3917
3918 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3919 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3920 callers to use the equivalent accessor methods instead.
3921
39498edb
SM
39222020-07-12 Simon Marchi <simon.marchi@efficios.com>
3923
3924 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3925 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3926 callers to use the equivalent accessor methods instead.
3927
3b606f38
SM
39282020-07-12 Simon Marchi <simon.marchi@efficios.com>
3929
3930 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3931 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3932 to use dynamic_prop::kind.
3933
064d9cb9
SM
39342020-07-12 Simon Marchi <simon.marchi@efficios.com>
3935
3936 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3937 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3938 to get the bound property's kind and check against
3939 PROP_UNDEFINED.
3940
5537ddd0
SM
39412020-07-12 Simon Marchi <simon.marchi@efficios.com>
3942
3943 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3944 all callers to use type::range_bounds followed by
3945 dynamic_prop::{low,high}.
3946
8c2e4e06
SM
39472020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3948
3949 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3950 const_val, set_const_val, baton, set_locexpr, set_loclist,
3951 set_addr_offset, variant_parts, set_variant_parts,
3952 original_type, set_original_type>: New methods.
3953 <kind>: Rename to...
3954 <m_kind>: ... this. Update all users to use the new methods
3955 instead.
3956 <data>: Rename to...
3957 <m_data>: ... this. Update all users to use the new methods
3958 instead.
3959
7c6f2712
SM
39602020-07-12 Simon Marchi <simon.marchi@efficios.com>
3961
3962 * gdbtypes.c (get_discrete_bounds): Return failure if
3963 the range type's bounds are not both defined and constant
3964 values.
3965 (get_array_bounds): Update comment. Remove undefined bound check.
3966
599088e3
SM
39672020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3968
3969 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3970 the type::bounds method directly.
3971
c4dfcb36
SM
39722020-07-12 Simon Marchi <simon.marchi@efficios.com>
3973
3974 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3975 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3976 are used to set the range type's bounds to use set_bounds.
3977
0a278aa7
PW
39782020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3979
3980 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3981
cce20f10
PA
39822020-07-10 Pedro Alves <pedro@palves.net>
3983
3984 * gdbthread.h (inferior_ref): Define.
3985 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3986 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3987 * thread.c
3988 (scoped_restore_current_thread::restore):
3989 Adjust to gdb::ref_ptr.
3990 (scoped_restore_current_thread::~scoped_restore_current_thread):
3991 Remove manual decref handling.
3992 (scoped_restore_current_thread::scoped_restore_current_thread):
3993 Adjust to use
3994 inferior_ref::new_reference/thread_info_ref::new_reference.
3995 Incref the thread before calling get_frame_id instead of after.
3996 Let TARGET_CLOSE_ERROR propagate.
3997
6d7aa592
PA
39982020-07-10 Pedro Alves <pedro@palves.net>
3999
4000 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4001 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4002 NOT_AVAILABLE_ERROR.
4003 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4004 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4005
b3e3a4c1
SM
40062020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4007 Pedro Alves <pedro@palves.net>
4008
4009 PR gdb/26199
4010 * infrun.c (threads_are_resumed_pending_p): Delete.
4011 (do_target_wait): Remove threads_are_executing and
4012 threads_are_resumed_pending_p checks from the inferior_matches
4013 lambda. Update comments.
4014
d6cc5d98
PA
40152020-07-10 Pedro Alves <pedro@palves.net>
4016
4017 PR gdb/26199
4018 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4019 executing threads.
4020
7d3badc6
PA
40212020-07-10 Pedro Alves <pedro@palves.net>
4022
4023 PR gdb/26199
4024 * infrun.c (handle_no_resumed): Handle multiple targets.
4025
42bd97a6
PA
40262020-07-10 Pedro Alves <pedro@palves.net>
4027
4028 PR gdb/26199
4029 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4030 target_is_async_p.
4031
43667cc6
PA
40322020-07-10 Pedro Alves <pedro@palves.net>
4033
4034 PR gdb/26199
4035 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4036 threads, not all threads.
4037
96118d11
PA
40382020-07-10 Pedro Alves <pedro@palves.net>
4039
4040 PR gdb/26199
4041 * remote.c (remote_target::open_1): Pass remote target pointer as
4042 data to create_async_event_handler.
4043 (remote_async_inferior_event_handler): Mark async event handler
4044 before returning if the remote target still has either pending
4045 events or unacknowledged notifications.
4046
54904d81
JB
40472020-07-10 John Baldwin <jhb@FreeBSD.org>
4048
4049 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4050 declaration.
4051 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4052 function.
4053
f37e5866
JB
40542020-07-09 John Baldwin <jhb@FreeBSD.org>
4055
4056 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4057 inferior_ptid.
4058
fc238d4a
JB
40592020-07-09 John Baldwin <jhb@FreeBSD.org>
4060
4061 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4062 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4063 AT_FREEBSD_PS_STRINGS.
4064
6e2469ff
HD
40652020-07-08 Hannes Domani <ssbssa@yahoo.de>
4066
4067 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4068 of debugfile path on Windows.
4069
d1076c41
JB
40702020-07-08 John Baldwin <jhb@FreeBSD.org>
4071
4072 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4073 argument to 'data'.
4074
15f3b077
TT
40752020-07-08 Tom Tromey <tromey@adacore.com>
4076
4077 * ada-lang.c (ada_exception_message_1): Use read_memory.
4078
9fc501fd
AB
40792020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4080
4081 PR python/22748
4082 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4083 special handling for inline frames.
4084 * findvar.c (value_of_register_lazy): Skip inline frames when
4085 creating lazy register values.
4086 * frame.c (frame_id_computed_p): Delete definition.
4087 * frame.h (frame_id_computed_p): Delete declaration.
4088
64cb3757
AB
40892020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4090
4091 * NEWS: Mention additions to Python API.
4092 * python/py-arch.c (archpy_register_groups): New function.
4093 (arch_object_methods): Add 'register_groups' method.
4094 * python/py-registers.c (reggroup_iterator_object): New struct.
4095 (reggroup_object): New struct.
4096 (gdbpy_new_reggroup): New function.
4097 (gdbpy_reggroup_to_string): New function.
4098 (gdbpy_reggroup_name): New function.
4099 (gdbpy_reggroup_iter): New function.
4100 (gdbpy_reggroup_iter_next): New function.
4101 (gdbpy_new_reggroup_iterator): New function
4102 (gdbpy_initialize_registers): Register new types.
4103 (reggroup_iterator_object_type): Define new Python type.
4104 (gdbpy_reggroup_getset): New static global.
4105 (reggroup_object_type): Define new Python type.
4106 * python/python-internal.h
4107
0f767f94
AB
41082020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4109
4110 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4111 * python/py-arch.c (archpy_registers): New function.
4112 (arch_object_methods): Add 'registers' method.
4113 * python/py-registers.c: New file.
4114 * python/python-internal.h
4115 (gdbpy_new_register_descriptor_iterator): Declare.
4116 (gdbpy_initialize_registers): Declare.
4117 * python/python.c (do_start_initialization): Call
4118 gdbpy_initialize_registers.
4119 * NEWS: Mention additions to the Python API.
4120
87dbc774
AB
41212020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4122
4123 * NEWS: Mention new Python API method.
4124 * python/py-unwind.c (pending_framepy_architecture): New function.
4125 (pending_frame_object_methods): Add architecture method.
4126
3bc98c0c
AB
41272020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4128
4129 * gdbarch.c: Regenerate.
4130 * gdbarch.h: Regenerate.
4131 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4132 (gdbarch_data): Use internal_error for the case where
4133 deprecated_set_gdbarch_data was originally needed.
4134 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4135 and use passed in obstack.
4136 (libunwind_frame_set_descr): Should no longer get back NULL from
4137 gdbarch_data.
4138 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4139 type.
4140 * user-regs.c (user_regs_init): Update parameters, and use passed
4141 in obstack.
4142 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4143 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4144
d8cc8af6
TV
41452020-07-06 Tom de Vries <tdevries@suse.de>
4146
4147 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4148 End-Of-Sequence in lte_is_less_than.
4149 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4150 "gdb: Don't reorder line table entries too much when sorting".
4151
947f7597
TV
41522020-07-06 Tom de Vries <tdevries@suse.de>
4153
4154 PR tui/26205
4155 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4156
1e7c1b22
TV
41572020-07-05 Tom de Vries <tdevries@suse.de>
4158
4159 PR build/26187
4160 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4161 std::uncaught_exceptions instead of deprecated
4162 std::uncaught_exception.
4163
a36158ec
SM
41642020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4165
4166 * macroexp.h (macro_stringify): Return
4167 gdb::unique_xmalloc_ptr<char>.
4168 * macroexp.c (macro_stringify): Likewise.
4169 * macrotab.c (fixup_definition): Update.
4170
14d960c8
SM
41712020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4172
4173 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4174 (lex_one_token): Update.
4175 * macroexp.c (struct macro_buffer) <release>: Return
4176 gdb::unique_xmalloc_ptr<char>.
4177 (macro_stringify): Update.
4178 (macro_expand): Update.
4179 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4180 * macroexp.h (macro_expand_next): Likewise.
4181
211d5b1c
SM
41822020-07-02 Simon Marchi <simon.marchi@efficios.com>
4183
4184 * macroexp.h (macro_lookup_ftype): Remove.
4185 (macro_expand, macro_expand_once, macro_expand_next): Remove
4186 lookup function parameters, add scope parameter.
4187 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4188 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4189 * macroscope.h (standard_macro_lookup): Change parameter type
4190 to macro_scope.
4191 * macroscope.c (standard_macro_lookup): Likewise.
4192 * c-exp.y (lex_one_token): Update.
4193 * macrocmd.c (macro_expand_command): Likewise.
4194 (macro_expand_once_command): Likewise.
4195
b1a35af2
SM
41962020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4197
4198 * inf-loop.c (inferior_event_handler): Remove client_data param.
4199 * inf-loop.h (inferior_event_handler): Likewise.
4200 * infcmd.c (step_1): Adjust.
4201 * infrun.c (proceed): Adjust.
4202 (fetch_inferior_event): Remove client_data param.
4203 (infrun_async_inferior_event_handler): Adjust.
4204 * infrun.h (fetch_inferior_event): Remove `void *` param.
4205 * linux-nat.c (handle_target_event): Adjust.
4206 * record-btrace.c (record_btrace_handle_async_inferior_event):
4207 Adjust.
4208 * record-full.c (record_full_async_inferior_event_handler):
4209 Adjust.
4210 * remote.c (remote_async_inferior_event_handler): Adjust.
4211
1cdf9e33
TT
42122020-07-01 Tom Tromey <tom@tromey.com>
4213
4214 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4215 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4216
32c1e210
TT
42172020-07-01 Tom Tromey <tom@tromey.com>
4218
4219 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4220 tui_gen_win_info.
4221 (tui_win_info::make_window): Merge with
4222 tui_gen_win_info::make_window.
4223 (tui_win_info::make_visible): Move from tui_gen_win_info.
4224 * tui/tui-win.c (tui_win_info::max_width): Move from
4225 tui_gen_win_info.
4226 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4227 type.
4228 <window_factory>: Likewise.
4229 * tui/tui-layout.c (tui_win_info::resize): Move from
4230 tui_gen_win_info.
4231 (make_standard_window): Change return type.
4232 (get_locator_window, tui_get_window_by_name): Likewise.
4233 (tui_layout_window::apply): Remove a cast.
4234 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4235 (struct tui_win_info): Merge with tui_gen_win_info.
4236 (struct tui_gen_win_info): Remove.
4237
a30cb6da
TT
42382020-07-01 Tom Tromey <tom@tromey.com>
4239
4240 * tui/tui-stack.h (struct tui_locator_window): Derive from
4241 tui_win_info.
4242 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4243 <can_box>: New method.
4244
1eb2161f
TT
42452020-07-01 Tom Tromey <tom@tromey.com>
4246
4247 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4248
7134f2eb
TT
42492020-07-01 Tom Tromey <tom@tromey.com>
4250
4251 * tui/tui-regs.c (tui_data_window::display_registers_from)
4252 (tui_data_window::display_registers_from)
4253 (tui_data_window::first_data_item_displayed)
4254 (tui_data_window::delete_data_content_windows): Update.
4255 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4256 Remove.
4257 (tui_data_window::check_register_values): Update.
4258 (tui_data_item_window::rerender): Add parameters. Update.
4259 (tui_data_item_window::refresh_window): Remove.
4260 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4261 virtual.
4262 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4263 tui_gen_win_info.
4264 <refresh_window, max_height, min_height>: Remove.
4265 <rerender>: Add parameters.
4266 <x, y, visible>: New members.
4267 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4268 <m_item_width>: New member.
4269
22b7b041
TT
42702020-07-01 Tom Tromey <tom@tromey.com>
4271
4272 * tui/tui-regs.c (tui_data_window::show_register_group)
4273 (tui_data_window::check_register_values): Update.
4274 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4275 from item_no.
4276
c9753adb
TT
42772020-07-01 Tom Tromey <tom@tromey.com>
4278
4279 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4280 useless "if".
4281
9ab26b4a
TT
42822020-07-01 Tom Tromey <tom@tromey.com>
4283
4284 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4285 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4286
e555083f
TT
42872020-07-01 Tom Tromey <tom@tromey.com>
4288
4289 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4290 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4291 (struct tui_line_or_address): Move from tui-data.h.
4292 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4293 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4294 (tui_cmd_window, tui_source_window_base, tui_source_window)
4295 (tui_disasm_window): Don't declare.
4296 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4297 to tui-winsource.h.
4298 (SINGLE_KEY): Move to tui-stack.c.
4299
7a02bab7
TT
43002020-07-01 Tom Tromey <tom@tromey.com>
4301
4302 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4303 std::string.
4304 * tui/tui-regs.c (class tab_expansion_file): New.
4305 (tab_expansion_file::write): New method.
4306 (tui_register_format): Change return type. Use
4307 tab_expansion_file.
4308 (tui_get_register, tui_data_window::display_registers_from)
4309 (tui_data_item_window::rerender): Update.
4310 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4311 * tui/tui-io.c (tui_expand_tabs): Remove.
4312
ea68593b
TT
43132020-07-01 Tom Tromey <tom@tromey.com>
4314
4315 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4316
a8caed5d
FS
43172020-07-01 Fangrui Song <maskray@google.com>
4318
4319 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4320
9cdf9820
AKS
43212020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4322
4323 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4324 forms for DW_AT_associated and DW_AT_allocated attributes,
4325 which is already checked in function attr_to_dynamic_prop.
4326
a1520ad8
TT
43272020-06-30 Tom Tromey <tromey@adacore.com>
4328
4329 * dwarf2/read.c (quirk_rust_enum): Correctly call
4330 alloc_rust_variant for default-less enum.
4331
5ac58899
TT
43322020-06-30 Tom Tromey <tromey@adacore.com>
4333
4334 PR build/26183:
4335 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4336 gdb::to_string.
4337
19b187a9
SM
43382020-06-29 Simon Marchi <simon.marchi@efficios.com>
4339
4340 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4341 * gdbarch.h: Re-generate.
4342
cd4c4c07
TT
43432020-06-28 Tom Tromey <tom@tromey.com>
4344
4345 * command.h (cmd_types): Remove.
4346 (cmd_type): Don't declare.
4347 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4348 typedef.
4349 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4350 * cli/cli-decode.c (cmd_type): Remove.
4351
05779d57
PA
43522020-06-27 Pedro Alves <palves@redhat.com>
4353
4354 * fork-child.c (prefork_hook): Adjust.
4355 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4356 Delete.
4357 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4358 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4359 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4360 Remove declarations.
4361 (struct inferior) <set_tty, tty>: New methods.
4362 (struct inferior) <terminal>: Rename to ...
4363 (struct inferior) <m_terminal>: ... this and make private.
4364 * main.c (captured_main_1): Adjust.
4365 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4366 (mi_cmd_inferior_tty_show): Adjust.
4367 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4368 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4369
1776e3e5
NA
43702020-06-26 Nick Alcock <nick.alcock@oracle.com>
4371
4372 * configure.ac: Add --enable-libctf: handle --disable-static
4373 properly.
4374 * acinclude.m4: sinclude ../config/enable.m4.
4375 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4376 (LIBCTF): Substitute in.
4377 (CTF_DEPS): New, likewise.
4378 (CLIBS): libctf needs symbols from libbfd: move earlier.
4379 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4380 flags.
4381 * ctfread.c: Surround in ENABLE_LIBCTF.
4382 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4383 * configure: Regenerate.
4384 * config.in: Likewise.
4385
58373b80
SM
43862020-06-25 Simon Marchi <simon.marchi@efficios.com>
4387
4388 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4389
277474ee
SM
43902020-06-25 Simon Marchi <simon.marchi@efficios.com>
4391
4392 * inferior.h (struct inferior) <terminal>: Change type to
4393 gdb::unique_xmalloc_ptr<char>.
4394 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4395 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4396 field, adjust to unique pointer.
4397 (get_inferior_io_terminal): Adjust to unique pointer.
4398
6d74da72
AB
43992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4400
4401 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4402 registers, not just the known core set of registers.
4403
2e52d038
AB
44042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4405
4406 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4407 fflags, frm, and fcsr registers.
4408 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4409 restore groups.
4410 (riscv_tdesc_unknown_reg): New function.
4411 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4412 tdesc_use_registers.
4413 * riscv-tdep.h (struct gdbarch_tdep): Add
4414 unknown_csrs_first_regnum, unknown_csrs_count,
4415 duplicate_fflags_regnum, duplicate_frm_regnum, and
4416 duplicate_fcsr_regnum fields.
4417
be64fd07
AB
44182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4419
4420 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4421 callback, use the callback (when not null) to help number unknown
4422 registers.
4423 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4424 (tdesc_use_registers): Add extra parameter to declaration.
4425
3b9fce96
AB
44262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4427
4428 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4429 in the file.
4430 (class riscv_pending_register_alias): Likewise.
4431 (riscv_register_feature::register_info): Change 'required_p' field
4432 to 'required', and change its type. Add 'check' member function.
4433 (riscv_register_feature::register_info::check): Define new member
4434 function.
4435 (riscv_xreg_feature): Change initialisation of 'required' field.
4436 (riscv_freg_feature): Likewise.
4437 (riscv_virtual_feature): Likewise.
4438 (riscv_csr_feature): Likewise.
4439 (riscv_check_tdesc_feature): Take extra parameter, the csr
4440 tdesc_feature, rewrite the function to use the new
4441 riscv_register_feature::register_info::check function.
4442 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4443
865bad26
AB
44442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4445
4446 * features/Makefile: Remove all references to the deleted files
4447 below.
4448 * features/riscv/32bit-csr.c: Deleted.
4449 * features/riscv/32bit-csr.xml: Deleted.
4450 * features/riscv/64bit-csr.c: Deleted.
4451 * features/riscv/64bit-csr.xml: Deleted.
4452 * features/riscv/rebuild-csr-xml.sh: Deleted.
4453
ed69cbc8
AB
44542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4455
4456 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4457 whitespace error for declaration of names member variable.
4458 (struct riscv_register_feature): Add new prefer_first_name member
4459 variable, and fix whitespace error in declaration of registers.
4460 (riscv_xreg_feature): Initialize prefer_first_name field.
4461 (riscv_freg_feature): Likewise.
4462 (riscv_virtual_feature): Likewise.
4463 (riscv_csr_feature): Likewise.
4464 (riscv_register_name): Expand on comments. Remove register name
4465 modifications for CSR and virtual registers.
4466
4445e8f5
AB
44672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4468
4469 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4470 errors.
4471
767a879e
AB
44722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4473
4474 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4475 riscv-opc.h.
4476 (class riscv_pending_register_alias): New class.
4477 (riscv_check_tdesc_feature): Take vector of pending aliases and
4478 populate it as appropriate.
4479 (riscv_setup_register_aliases): Delete.
4480 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4481 to riscv_check_tdesc_feature in all cases. Use the vector to
4482 create the register aliases.
4483
bb6e55f3
RO
44842020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4485
4486 * sol2-tdep.c (sol2_static_transform_name): Remove.
4487 (sol2_init_abi): Don't register it.
4488 * gdbarch.sh (static_transform_name): Remove.
4489 * gdbarch.c, gdbarch.h: Regenerate.
4490
4491 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4492 gdbarch_static_transform_name.
4493 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4494 * stabsread.c (define_symbol) <'X'>: Remove.
4495 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4496 handling.
4497 <'V'>: Likewise.
4498 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4499 <'S'>: Remove call to gdbarch_static_transform_name.
4500
c6d36836
RO
45012020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4502
4503 * procfs.c (procfs_pre_trace): New function.
4504 (procfs_target::create_inferior): Pass it to fork_inferior.
4505
a7e6196b
RO
45062020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4507
4508 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4509 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4510 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4511 sol2-tdep.o, sparc-sol2-tdep.o.
4512 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4513 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4514 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4515 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4516
d412e696
RO
45172020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4518
4519 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4520 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4521 Call sol2_init_abi.
4522 Remove calls to set_gdbarch_skip_solib_resolver,
4523 set_gdbarch_core_pid_to_str.
4524 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4525 (i386_sol2_static_transform_name): Remove.
4526 (i386_sol2_init_abi): Call sol2_init_abi.
4527 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4528 set_gdbarch_static_transform_name,
4529 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4530 Use sol2_sigtramp_p.
4531 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4532 (sol2_sigtramp_p): New function.
4533 (sol2_static_transform_name): New function.
4534 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4535 (sol2_init_abi): New function.
4536 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4537 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4538 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4539 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4540 (sparc_sol2_static_transform_name): Remove.
4541 (sparc32_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,
4545 set_gdbarch_core_pid_to_str.
4546 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4547 (sparc_sol2_static_transform_name): Remove
4548 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4549 call sol2_sigtramp_p.
4550 (sparc64_sol2_init_abi): Call sol2_init_abi.
4551 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4552 set_gdbarch_static_transform_name,
4553 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4554
a8654e7d
PW
45552020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4556
4557 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4558 * exec.c (validate_exec_file): If from_tty, set both
4559 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4560 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4561 and from_tty, unconditionally ask a confirmation.
4562
caa7fd04
AB
45632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4564
4565 * target-descriptions.c (tdesc_architecture_name): Protect against
4566 NULL pointer dereference.
4567 (maint_print_xml_tdesc_cmd): New function.
4568 (_initialize_target_descriptions): Register new 'maint print
4569 xml-tdesc' command and give it the filename completer.
4570 * NEWS: Mention new 'maint print xml-tdesc' command.
4571
fbf42f4e
AB
45722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4573
4574 * target-descriptions.c (class tdesc_compatible_info): New class.
4575 (struct target_desc): Change type of compatible vector.
4576 (tdesc_compatible_p): Update for change in type of
4577 target_desc::compatible.
4578 (tdesc_compatible_info_list): New function.
4579 (tdesc_compatible_info_arch_name): New function.
4580 (tdesc_add_compatible): Update for change in type of
4581 target_desc::compatible.
4582 (print_c_tdesc::visit_pre): Likewise.
4583
20821f4e
AB
45842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4585
4586 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4587 whitespace to underscore.
4588 (maint_print_c_tdesc_cmd): Use fake filename for target
4589 descriptions that came from the target.
4590 (_initialize_target_descriptions): Add filename command completion
4591 for 'maint print c-tdesc'.
4592
1fb5ee62
SM
45932020-06-23 Simon Marchi <simon.marchi@efficios.com>
4594
4595 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4596 lines.
4597
fc3ecb3e
SM
45982020-06-23 Simon Marchi <simon.marchi@efficios.com>
4599
4600 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4601 lines.
4602 (dwarf2_find_location_expression): Likewise.
4603 (call_site_parameter_matches): Likewise.
4604 (dwarf2_compile_expr_to_ax): Likewise.
4605 (disassemble_dwarf_expression): Likewise.
4606 (loclist_describe_location): Likewise.
4607
236ef034
PA
46082020-06-23 Pedro Alves <palves@redhat.com>
4609
4610 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4611 progspace-and-thread.h. Include scoped-mock-context.h instead.
4612 (register_to_value_test): Use scoped_mock_context.
4613 * regcache.c: Include "scoped-mock-context.h".
4614 (cooked_read_test): Don't error out if a target is already pushed.
4615 Use scoped_mock_context. Adjust.
4616 * scoped-mock-context.h: New file.
4617
39e7ecca
AB
46182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4619
4620 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4621 initializer.
4622 (ada_language::is_string_type_p): New member function.
4623 * c-lang.c (c_language_data): Delete la_is_string_type_p
4624 initializer.
4625 (cplus_language_data): Likewise.
4626 (asm_language_data): Likewise.
4627 (minimal_language_data): Likewise.
4628 * d-lang.c (d_language_data): Likewise.
4629 * f-lang.c (f_is_string_type_p): Delete function, implementation
4630 moved to f_language::is_string_type_p.
4631 (f_language_data): Delete la_is_string_type_p initializer.
4632 (f_language::is_string_type_p): New member function,
4633 implementation from f_is_string_type_p.
4634 * go-lang.c (go_is_string_type_p): Delete function, implementation
4635 moved to go_language::is_string_type_p.
4636 (go_language_data): Delete la_is_string_type_p initializer.
4637 (go_language::is_string_type_p): New member function,
4638 implementation from go_is_string_type_p.
4639 * language.c (language_defn::is_string_type_p): Define new member
4640 function.
4641 (default_is_string_type_p): Make static, add comment copied from
4642 header file.
4643 (unknown_language_data): Delete la_is_string_type_p initializer.
4644 (unknown_language::is_string_type_p): New member function.
4645 (auto_language_data): Delete la_is_string_type_p initializer.
4646 (auto_language::is_string_type_p): New member function.
4647 * language.h (language_data): Delete la_is_string_type_p field.
4648 (language_defn::is_string_type_p): Declare new function.
4649 (default_is_string_type_p): Delete desclaration, move comment to
4650 definition.
4651 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4652 moved to m2_language::is_string_type_p.
4653 (m2_language_data): Delete la_is_string_type_p initializer.
4654 (m2_language::is_string_type_p): New member function,
4655 implementation from m2_is_string_type_p.
4656 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4657 initializer.
4658 * opencl-lang.c (opencl_language_data): Likewise.
4659 * p-lang.c (pascal_is_string_type_p): Delete function,
4660 implementation moved to pascal_language::is_string_type_p.
4661 (pascal_language_data): Delete la_is_string_type_p initializer.
4662 (pascal_language::is_string_type_p): New member function,
4663 implementation from pascal_is_string_type_p.
4664 * rust-lang.c (rust_is_string_type_p): Delete function,
4665 implementation moved to rust_language::is_string_type_p.
4666 (rust_language_data): Delete la_is_string_type_p initializer.
4667 (rust_language::is_string_type_p): New member function,
4668 implementation from rust_is_string_type_p.
4669 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4670 is_string_type_p.
4671
4ffc13fb
AB
46722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4673
4674 * ada-lang.c (ada_language_data): Delete la_print_typedef
4675 initializer.
4676 (ada_language::print_typedef): New member function.
4677 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4678 (cplus_language_data): Likewise.
4679 (asm_language_data): Likewise.
4680 (minimal_language_data): Likewise.
4681 * d-lang.c (d_language_data): Likewise.
4682 * f-lang.c (f_language_data): Likewise.
4683 (f_language::print_typedef): New member function.
4684 * go-lang.c (go_language_data): Delete la_print_typedef
4685 initializer.
4686 * language.c (language_defn::print_typedef): Define member
4687 function.
4688 (unknown_language_data): Delete la_print_typedef initializer.
4689 (unknown_language::print_typedef): New member function.
4690 (auto_language_data): Delete la_print_typedef initializer.
4691 (auto_language::print_typedef): New member function.
4692 * language.h (language_data): Delete la_print_typedef field.
4693 (language_defn::print_typedef): Declare new member function.
4694 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4695 (default_print_typedef): Delete declaration.
4696 * m2-lang.c (m2_language_data): Delete la_print_typedef
4697 initializer.
4698 (m2_language::print_typedef): New member function.
4699 * objc-lang.c (objc_language_data): Delete la_print_typedef
4700 initializer.
4701 * opencl-lang.c (opencl_language_data): Likewise.
4702 * p-lang.c (pascal_language_data): Likewise.
4703 (pascal_language::print_typedef): New member function.
4704 * rust-lang.c (rust_print_typedef): Delete function,
4705 implementation moved to rust_language::print_typedef.
4706 (rust_language): Delete la_print_typedef initializer.
4707 (rust_language::print_typedef): New member function,
4708 implementation from rust_print_typedef.
4709 * typeprint.c (default_print_typedef): Delete.
4710
d711ee67
AB
47112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4712
4713 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4714 (ada_language::printstr): New member function.
4715 * c-lang.c (c_language_data): Delete la_printstr initializer.
4716 (cplus_language_data): Likewise.
4717 (asm_language_data): Likewise.
4718 (minimal_language_data): Likewise.
4719 * d-lang.c (d_language_data): Likewise.
4720 * f-lang.c (f_printstr): Rename to f_language::printstr.
4721 (f_language_data): Delete la_printstr initializer.
4722 (f_language::printstr): New member function, implementation from
4723 f_printstr.
4724 * go-lang.c (go_language_data): Delete la_printstr initializer.
4725 * language.c (language_defn::printstr): Define new member
4726 function.
4727 (unk_lang_printstr): Delete.
4728 (unknown_language_data): Delete la_printstr initializer.
4729 (unknown_language::printstr): New member function.
4730 (auto_language_data): Delete la_printstr initializer.
4731 (auto_language::printstr): New member function.
4732 * language.h (language_data): Delete la_printstr field.
4733 (language_defn::printstr): Declare new member function.
4734 (LA_PRINT_STRING): Update call to printstr.
4735 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4736 (m2_language_data): Delete la_printstr initializer.
4737 (m2_language::printstr): New member function, implementation from
4738 m2_printstr.
4739 * objc-lang.c (objc_language_data): Delete la_printstr
4740 initializer.
4741 * opencl-lang.c (opencl_language_data): Likewise.
4742 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4743 (pascal_language_data): Delete la_printstr initializer.
4744 (pascal_language::printstr): New member function, implementation
4745 from pascal_printstr.
4746 * p-lang.h (pascal_printstr): Delete declaration.
4747 * rust-lang.c (rust_printstr): Update header comment.
4748 (rust_language_data): Delete la_printstr initializer.
4749 (rust_language::printstr): New member function.
4750
52b50f2c
AB
47512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4752
4753 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4754 (ada_language::printchar): New member function.
4755 * c-lang.c (c_language_data): Delete la_printchar initializer.
4756 (cplus_language_data): Likewise.
4757 (asm_language_data): Likewise.
4758 (minimal_language_data): Likewise.
4759 * d-lang.c (d_language_data): Likewise.
4760 * f-lang.c (f_printchar): Rename to f_language::printchar.
4761 (f_language_data): Delete la_printchar initializer.
4762 (f_language::printchar): New member function, implementation from
4763 f_printchar.
4764 * go-lang.c (go_language_data): Delete la_printchar initializer.
4765 * language.c (unk_lang_printchar): Delete.
4766 (language_defn::printchar): Define new member function.
4767 (unknown_language_data): Delete la_printchar initializer.
4768 (unknown_language::printchar): New member function.
4769 (auto_language_data): Delete la_printchar initializer.
4770 (auto_language::printchar): New member function.
4771 * language.h (language_data): Delete la_printchar field.
4772 (language_defn::printchar): Declare new member function.
4773 (LA_PRINT_CHAR): Update call to printchar.
4774 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4775 (m2_language::printchar): New member function.
4776 * objc-lang.c (objc_language_data): Delete la_printchar
4777 initializer.
4778 * opencl-lang.c (opencl_language_data): Likewise.
4779 * p-lang.c (pascal_language_data): Delete la_printchar
4780 initializer.
4781 (pascal_language::printchar): New member function.
4782 * rust-lang.c (rust_printchar): Rename to
4783 rust_language::printchar.
4784 (rust_language_data): Delete la_printchar initializer.
4785 (rust_language::printchar): New member function, implementation
4786 from rust_printchar.
4787
ec8cec5b
AB
47882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4789
4790 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4791 (ada_language_data): Delete la_emitchar initializer.
4792 (ada_language::emitchar): New member function, implementation from
4793 emit_char.
4794 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4795 (cplus_language_data): Likewise.
4796 (asm_language_data): Likewise.
4797 (minimal_language_data): Likewise.
4798 * d-lang.c (d_language_data): Likewise.
4799 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4800 (f_language_data): Delete la_emitchar initializer.
4801 (f_language::emitchar): New member function, implementation from
4802 f_emit_char.
4803 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4804 * language.c (unk_lang_emit_char): Delete.
4805 (language_defn::emitchar): New member function definition.
4806 (unknown_language_data): Delete la_emitchar initializer.
4807 (unknown_language::emitchar): New member function.
4808 (auto_language_data): Delete la_emitchar initializer.
4809 (auto_language::emitchar): New member function.
4810 * language.h (language_data): Delete la_emitchar field.
4811 (language_defn::emitchar): New member field declaration.
4812 (LA_EMIT_CHAR): Update call to emitchar.
4813 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4814 (m2_language_data): Delete la_emitchar initializer.
4815 (m2_language::emitchar): New member function, implementation from
4816 m2_emit_char.
4817 * objc-lang.c (objc_language_data): Delete la_emitchar
4818 initializer.
4819 * opencl-lang.c (opencl_language_data): Likewise.
4820 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4821 (pascal_language_data): Delete la_emitchar initializer.
4822 (pascal_language::emitchar): New member function, implementation
4823 from pascal_emit_char.
4824 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4825 (rust_language_data): Delete la_emitchar initializer.
4826 (rust_language::emitchar): New member function, implementation
4827 from rust_emitchar.
4828
1bf9c363
AB
48292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4830
4831 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4832 (ada_language_data): Delete la_post_parser initializer.
4833 (ada_language::post_parser): New member function.
4834 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4835 (cplus_language_data): Likewise.
4836 (asm_language_data): Likewise.
4837 (minimal_language_data): Likewise.
4838 * d-lang.c (d_language_data): Likewise.
4839 * f-lang.c (f_language_data): Likewise.
4840 * go-lang.c (go_language_data): Likewise.
4841 * language.c (unknown_language_data): Likewise.
4842 (auto_language_data): Likewise.
4843 * language.h (language_data): Delete la_post_parser field.
4844 (language_defn::post_parser): New member function.
4845 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4846 * objc-lang.c (objc_language_data): Likewise.
4847 * opencl-lang.c (opencl_language_data): Likewise.
4848 * p-lang.c (pascal_language_data): Likewise.
4849 * parse.c (parse_exp_in_context): Update call to post_parser.
4850 (null_post_parser): Delete definition.
4851 * parser-defs.h (null_post_parser): Delete declaration.
4852 * rust-lang.c (rust_language_data): Delete la_post_parser
4853 initializer.
4854
87afa652
AB
48552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4856
4857 * ada-lang.c (parse): Rename to ada_language::parser.
4858 (ada_language_data): Delete la_parser initializer.
4859 (ada_language::parser): New member function, implementation from
4860 parse.
4861 * c-lang.c (c_language_data): Delete la_parser initializer.
4862 (cplus_language_data): Likewise.
4863 (asm_language_data): Likewise.
4864 (minimal_language_data): Likewise.
4865 * d-lang.c (d_language_data): Likewise.
4866 (d_language::parser): New member function.
4867 * f-lang.c (f_language_data): Delete la_parser initializer.
4868 (f_language::parser): New member function.
4869 * go-lang.c (go_language_data): Delete la_parser initializer.
4870 (go_language::parser): New member function.
4871 * language.c (unk_lang_parser): Delete.
4872 (language_defn::parser): Define new member function.
4873 (unknown_language_data): Delete la_parser initializer.
4874 (unknown_language::parser): New member function.
4875 (auto_language_data): Delete la_parser initializer.
4876 (auto_language::parser): New member function.
4877 * language.h (language_data): Delete la_parser field.
4878 (language_defn::parser): Declare new member function.
4879 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4880 (m2_language::parser): New member function.
4881 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4882 * opencl-lang.c (opencl_language_data): Likewise.
4883 * p-lang.c (pascal_language_data): Likewise.
4884 (pascal_language::parser): New member function.
4885 * parse.c (parse_exp_in_context): Update call to parser.
4886 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4887 (rust_language::parser): New member function.
4888
37825800
AB
48892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4890
4891 * top.c (print_gdb_configuration): Print --with-python-libdir
4892 configuration value.
4893
5b860c93
PW
48942020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4895
4896 * NEWS: Mention change to the alias command.
4897
cf00cd6f
PW
48982020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4899
4900 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4901 (alias_command_completer)
4902 (make_alias_options_def_group): New functions.
4903 (alias_opts, alias_option_defs): New struct and array.
4904 (alias_usage_error): Update usage.
4905 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4906 Use option framework.
4907 (_initialize_cli_cmds): Update alias command help.
4908 Update aliases command help.
4909 (show_user):
4910 Add NULL for new default_args lookup_cmd argument.
4911 (valid_command_p): Rename to validate_aliased_command.
4912 Add NULL for new default_args lookup_cmd argument. Verify that the
4913 aliased_command has no default args.
4914 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4915 (lookup_cmd_1, lookup_cmd): New argument default_args.
4916 (add_alias_cmd):
4917 Add NULL for new default_args lookup_cmd argument.
4918 (print_help_for_command): Show default args under the layout
4919 alias some_alias = some_aliased_cmd some_alias_default_arg.
4920 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4921 xfree default_args in destructor.
4922 * cli/cli-script.c (process_next_line, do_define_command):
4923 Add NULL for new default_args lookup_cmd argument.
4924 * command.h: Declare new default_args argument in lookup_cmd
4925 and lookup_cmd_1.
4926 * completer.c (complete_line_internal_1):
4927 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4928 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4929 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4930 Likewise.
4931 * infcmd.c (_initialize_infcmd): Likewise.
4932 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4933 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4934 * python/py-param.c (add_setshow_generic): Likewise.
4935 * remote.c (_initialize_remote): Likewise.
4936 * top.c (execute_command): Prepend default_args if command has some.
4937 (set_verbose):
4938 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4939 * tracepoint.c (validate_actionline, encode_actions_1):
4940 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4941
bd920864
TBA
49422020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4943
4944 * jit.c (jit_read_descriptor): Use bool as the return type.
4945 (jit_breakpoint_re_set_internal): Use bool as the return type.
4946 Invert the return value logic; return true if the jit breakpoint
4947 has been successfully initialized.
4948 (jit_inferior_init): Update the call to
4949 jit_breakpoint_re_set_internal.
4950
f8098322
PA
49512020-06-22 Pedro Alves <palves@redhat.com>
4952
4953 PR gdb/25939
4954 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4955 Use the current inferior instead. Don't return
4956 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4957 wait again.
4958 * sol-thread.c (sol_thread_target::wait): Don't reference
4959 inferior_ptid.
4960 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4961 (sol_update_thread_list_callback): Use the current inferior's pid
4962 instead of inferior_ptid.
4963
196535a6
RO
49642020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4965
4966 * procfs.c: Cleanup many comments.
4967
4968 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4969 (AFTER_WATCHFLAG): Replace by value.
4970
4971 (MAIN_PROC_NAME_FORMAT): Inline ...
4972 (create_procinfo): ... here.
4973
4974 (procfs_debug_inferior): Remove SYS_exec handling.
4975 (syscall_is_exec): Likewise.
4976 (procfs_set_exec_trap): Likewise.
4977
4978 (syscall_is_lwp_exit): Inline in callers.
4979 (syscall_is_exit): Likewise.
4980 (syscall_is_exec): Likewise.
4981 (syscall_is_lwp_create): Likewise.
4982
4983 (invalidate_cache): Remove #if 0 code.
4984
4985 (make_signal_thread_runnable): Remove.
4986 (procfs_target::resume): Remove #if 0 code.
4987
cf6f3e86
RO
49882020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4989
4990 PR gdb/25939
4991 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4992 call ...
4993 (procfs_target::create_inferior): ... here.
4994
48e9cc84
PW
49952020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4996
4997 * exec.c (validate_exec_file): Ensure the build-id is up to
4998 date by calling reopen_exec_file (that checks file timestamp
4999 to decide to re-read the file).
5000
3922b302
PA
50012020-06-18 Pedro Alves <palves@redhat.com>
5002
5003 PR gdb/25412
5004 * gdbthread.h (delete_thread, delete_thread_silent)
5005 (find_thread_ptid): Update comments.
5006 * thread.c (current_thread_): New global.
5007 (is_current_thread): Move higher, and reimplement.
5008 (inferior_thread): Reimplement.
5009 (set_thread_exited): Use bool. Add assertions.
5010 (add_thread_silent): Simplify thread-reuse handling by always
5011 calling delete_thread.
5012 (delete_thread): Remove intro comment.
5013 (find_thread_ptid): Skip exited threads.
5014 (switch_to_thread_no_regs): Write to current_thread_.
5015 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5016 INFERIOR_PTID. Clear current_thread_.
5017
6dbdab44
PA
50182020-06-18 Pedro Alves <palves@redhat.com>
5019
5020 * aix-thread.c (pd_update): Use switch_to_thread.
5021
2da4b788
PA
50222020-06-18 Pedro Alves <palves@redhat.com>
5023
5024 * ravenscar-thread.c (ravenscar_thread_target): Update.
5025 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5026 (ravenscar_thread_target::add_active_thread): ... this. Don't
5027 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5028 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5029
50838d1b
PA
50302020-06-18 Pedro Alves <palves@redhat.com>
5031
5032 * nat/windows-nat.c (current_windows_thread): Remove.
5033 * nat/windows-nat.h (current_windows_thread): Remove.
5034 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5035 Adjust.
5036 (display_selectors): Adjust to fetch the current
5037 windows_thread_info based on inferior_ptid.
5038 (fake_create_process): No longer write to current_windows_thread.
5039 (windows_nat_target::get_windows_debug_event):
5040 Don't set inferior_ptid or current_windows_thread.
5041 (windows_nat_target::wait): Adjust to not rely on
5042 current_windows_thread.
5043 (do_initial_windows_stuff): Now a method of windows_nat_target.
5044 Switch to the last_ptid thread.
5045 (windows_nat_target::attach): Adjust.
5046 (windows_nat_target::detach): Use switch_to_no_thread instead of
5047 writing to inferior_ptid directly.
5048 (windows_nat_target::create_inferior): Adjust.
5049
31ce04e9
PA
50502020-06-18 Pedro Alves <palves@redhat.com>
5051
5052 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5053
1ee1a363
PA
50542020-06-18 Pedro Alves <palves@redhat.com>
5055
5056 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5057 after creating it, instead of writing to inferior_ptid. Don't
5058 write to inferior_ptid.
5059
6d350754
PA
50602020-06-18 Pedro Alves <palves@redhat.com>
5061
5062 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5063
5d971d48
PA
50642020-06-18 Pedro Alves <palves@redhat.com>
5065
5066 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5067 it, instead of writing to inferior_ptid.
5068
86e57d1b
PA
50692020-06-18 Pedro Alves <palves@redhat.com>
5070
5071 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5072 to inferior_ptid.
5073
f2e1c129
PA
50742020-06-18 Pedro Alves <palves@redhat.com>
5075
5076 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5077 instead of writing to inferior_ptid directly.
5078
60db1b85
PA
50792020-06-18 Pedro Alves <palves@redhat.com>
5080
5081 * corelow.c (core_target::close): Use switch_to_no_thread instead
5082 of writing to inferior_ptid directly.
5083 (add_to_thread_list, core_target_open): Use switch_to_thread
5084 instead of writing to inferior_ptid directly.
5085
fe7d6a8d
PA
50862020-06-18 Pedro Alves <palves@redhat.com>
5087
5088 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5089 inferior_ptid.
5090 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5091 inferior_ptid.
5092 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5093 inferior_ptid directly.
5094 (darwin_nat_target::init_thread_list): Switch to thread, instead
5095 of writing to inferior_ptid.
5096 (darwin_nat_target::attach): Don't write to inferior_ptid.
5097 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5098
975f8708
PA
50992020-06-18 Pedro Alves <palves@redhat.com>
5100
5101 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5102 thread.
5103 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5104 Instead use switch_to_thread.
5105 (gnu_nat_target::detach): Use switch_to_no_thread
5106 instead of writing to inferior_ptid directly. Used passed-in
5107 inferior instead of looking up the inferior by pid.
5108
1a204730
PA
51092020-06-18 Pedro Alves <palves@redhat.com>
5110
5111 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5112 inferior_ptid.
5113
ebe84f23
PA
51142020-06-18 Pedro Alves <palves@redhat.com>
5115
5116 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5117 inferior_ptid.
5118 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5119 thread.
5120 (nto_procfs_target::detach): Avoid referencing
5121 inferior_ptid. Use switch_to_no_thread instead of writing to
5122 inferior_ptid directly.
5123 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5124 instead of writing to inferior_ptid directly.
5125 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5126 to thread.
5127
191f02e5
PA
51282020-06-18 Pedro Alves <palves@redhat.com>
5129
5130 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5131 after creating it, instead of writing to inferior_ptid.
5132 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5133 to inferior_ptid directly.
5134 (gdbsim_target::wait): Don't write to inferior_ptid.
5135
0ac55310
PA
51362020-06-18 Pedro Alves <palves@redhat.com>
5137
5138 * remote.c (remote_target::remote_notice_new_inferior): Use
5139 switch_to_thread instead of writing to inferior_ptid directly.
5140 (remote_target::add_current_inferior_and_thread): Use
5141 switch_to_no_thread instead of writing to inferior_ptid directly.
5142 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5143 and switch_to_thread instead of using set_current_inferior or
5144 writing to inferior_ptid directly.
5145
5233f39b
PA
51462020-06-18 Pedro Alves <palves@redhat.com>
5147
5148 * tracectf.c (ctf_target_open): Switch to added thread instead of
5149 writing to inferior_ptid directly.
5150 (ctf_target::close): Use switch_to_no_thread instead of writing to
5151 inferior_ptid directly.
5152
087e161b
PA
51532020-06-18 Pedro Alves <palves@redhat.com>
5154
5155 * tracefile-tfile.c (tfile_target_open): Don't write to
5156 inferior_ptid directly, instead switch to added thread.
5157 (tfile_target::close): Use switch_to_no_thread instead of writing
5158 to inferior_ptid directly.
5159
7fb43e53
PA
51602020-06-18 Pedro Alves <palves@redhat.com>
5161
5162 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5163 (procfs_target::detach): Use switch_to_no_thread
5164 instead of writing to inferior_ptid directly.
5165 (do_attach): Change return type to void. Switch to the added
5166 thread.
5167 (procfs_target::create_inferior): Switch to the added thread.
5168 (procfs_do_thread_registers): Don't write to inferior_ptid.
5169
18493a00
PA
51702020-06-18 Pedro Alves <palves@redhat.com>
5171
5172 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5173 of writing to inferior_ptid.
5174 (scoped_restore_exited_inferior): Delete.
5175 (handle_vfork_child_exec_or_exit): Simplify using
5176 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5177 instead of writing to inferior_ptid.
5178 (THREAD_STOPPED_BY): Delete.
5179 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5180 (thread_stopped_by_hw_breakpoint): Delete.
5181 (save_waitstatus): Use
5182 scoped_restore_current_thread+switch_to_thread, and call
5183 target_stopped_by_watchpoint instead of
5184 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5185 instead of thread_stopped_by_sw_breakpoint, and
5186 target_stopped_by_hw_breakpoint instead of
5187 thread_stopped_by_hw_breakpoint.
5188 (handle_inferior_event)
5189 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5190 inferior_ptid directly, nor
5191 set_current_inferior/set_current_program_space. Use
5192 switch_to_thread / switch_to_inferior_no_thread instead.
5193
a0776b13
PA
51942020-06-18 Pedro Alves <palves@redhat.com>
5195
5196 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5197 instead of writing to inferior_ptid.
5198
6155c136
PA
51992020-06-18 Pedro Alves <palves@redhat.com>
5200
5201 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5202 added thread.
5203 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5204 to the added thread.
5205 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5206 instead of writing to inferior_ptid.
5207
c5316fc6
PA
52082020-06-18 Pedro Alves <palves@redhat.com>
5209
5210 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5211 (register_to_value_test): Mock a program_space too. Heap-allocate
5212 the address space. Don't write to inferior_ptid. Use
5213 switch_to_thread instead.
5214
8df01799
PA
52152020-06-18 Pedro Alves <palves@redhat.com>
5216
5217 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5218 Delete.
5219 (find_signalled_thread()): New, factored out from
5220 linux_make_corefile_notes and adjusted to handle exited threads.
5221 (linux_make_corefile_notes): Adjust to use the new
5222 find_signalled_thread.
5223
41792d68
PA
52242020-06-18 Pedro Alves <palves@redhat.com>
5225
5226 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5227 of saving/restoring inferior_ptid.
5228
612f258a
TT
52292020-06-17 Tom Tromey <tom@tromey.com>
5230
5231 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5232 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5233 declare.
5234 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5235
efb763a5
SM
52362020-06-15 Simon Marchi <simon.marchi@efficios.com>
5237
5238 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5239 of partial symtabs.
5240
2951f6c0
SM
52412020-06-17 Simon Marchi <simon.marchi@efficios.com>
5242
5243 * regformats/reg-arm.dat: Remove.
5244 * regformats/reg-bfin.dat: Remove.
5245 * regformats/reg-cris.dat: Remove.
5246 * regformats/reg-crisv32.dat: Remove.
5247 * regformats/reg-m32r.dat: Remove.
5248 * regformats/reg-tilegx.dat: Remove.
5249 * regformats/reg-tilegx32.dat: Remove.
5250
7d458ea5
SM
52512020-06-17 Simon Marchi <simon.marchi@efficios.com>
5252
5253 * features/Makefile (WHICH): Remove arm files.
5254 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5255 * regformats/arm/arm-with-neon.dat: Remove.
5256 * regformats/arm/arm-with-vfpv2.dat: Remove.
5257 * regformats/arm/arm-with-vfpv3.dat: Remove.
5258
3af96c0d
SM
52592020-06-17 Simon Marchi <simon.marchi@efficios.com>
5260
5261 * features/Makefile (XMLTOC): Remove rx.xml.
5262
b25e22fd
PA
52632020-06-17 Pedro Alves <palves@redhat.com>
5264
5265 * gdbthread.h (thread_control_state) <trap_expected> Update
5266 comments.
5267
a78a19b1
AB
52682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5269
5270 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5271 ada_language::lookup_symbol_nonlocal.
5272 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5273 (ada_language::lookup_symbol_nonlocal): New member function,
5274 implementation from ada_lookup_symbol_nonlocal.
5275 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5276 initializer.
5277 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5278 initializer.
5279 (cplus_language::lookup_symbol_nonlocal): New member function.
5280 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5281 (minimal_language_data) Likewise.
5282 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5283 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5284 initializer.
5285 (d_language::lookup_symbol_nonlocal): New member function.
5286 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5287 initializer.
5288 (f_language::lookup_symbol_nonlocal): New member function.
5289 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5290 initializer.
5291 * language.c (unknown_language_data): Likewise.
5292 (auto_language_data): Likewise.
5293 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5294 field.
5295 (language_defn::lookup_symbol_nonlocal): New member function.
5296 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5297 initializer.
5298 * objc-lang.c (objc_language_data): Likewise.
5299 * opencl-lang.c (opencl_language_data): Likewise.
5300 * p-lang.c (pascal_language_data): Likewise.
5301 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5302 rust_language::lookup_symbol_nonlocal.
5303 (rust_language_data): Delete la_lookup_symbol_nonlocal
5304 initializer.
5305 (rust_language::lookup_symbol_nonlocal): New member function,
5306 implementation from rust_lookup_symbol_nonlocal.
5307 * symtab.c (lookup_symbol_aux): Update call to
5308 lookup_symbol_nonlocal.
5309 (basic_lookup_symbol_nonlocal): Rename to...
5310 (language_defn::lookup_symbol_nonlocal): ...this, and update
5311 header comment. Remove language_defn parameter, and replace with
5312 uses of `this'.
5313 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5314
ebe2334e
AB
53152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5316
5317 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5318 initializer.
5319 (ada_language::value_print_inner): New member function.
5320 * c-lang.c (c_language_data): Delete la_value_print_inner
5321 initializer.
5322 (cplus_language_data): Likewise.
5323 (asm_language_data): Likewise.
5324 (minimal_language_data): Likewise.
5325 * d-lang.c (d_language_data): Likewise.
5326 (d_language::value_print_inner): New member function.
5327 * f-lang.c (f_language_data): Delete la_value_print_inner
5328 initializer.
5329 (f_language::value_print_inner): New member function.
5330 * f-lang.h (f_value_print_innner): Rename to...
5331 (f_value_print_inner): ...this (note spelling of 'inner').
5332 * f-valprint.c (f_value_print_innner): Rename to...
5333 (f_value_print_inner): ...this (note spelling of 'inner').
5334 * go-lang.c (go_language_data): Delete la_value_print_inner
5335 initializer.
5336 (go_language::value_print_inner): New member function.
5337 * language.c (language_defn::value_print_inner): Define new member
5338 function.
5339 (unk_lang_value_print_inner): Delete.
5340 (unknown_language_data): Delete la_value_print_inner initializer.
5341 (unknown_language::value_print_inner): New member function.
5342 (auto_language_data): Delete la_value_print_inner initializer.
5343 (auto_language::value_print_inner): New member function.
5344 * language.h (language_data): Delete la_value_print_inner field.
5345 (language_defn::value_print_inner): Delcare new member function.
5346 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5347 initializer.
5348 (m2_language::value_print_inner): New member function.
5349 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5350 initializer.
5351 * opencl-lang.c (opencl_language_data): Likewise.
5352 * p-lang.c (pascal_language_data): Likewise.
5353 (pascal_language::value_print_inner): New member function.
5354 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5355 initializer.
5356 (rust_language::value_print_inner): New member function.
5357 * valprint.c (do_val_print): Update call to value_print_inner.
5358
a1d1fa3e
AB
53592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5360
5361 * ada-lang.c (ada_language_data): Delete la_value_print
5362 initializer.
5363 (ada_language::value_print): New member function.
5364 * c-lang.c (c_language_data): Delete la_value_print initializer.
5365 (cplus_language_data): Likewise.
5366 (asm_language_data): Likewise.
5367 (minimal_language_data): Likewise.
5368 * d-lang.c (d_language_data): Likewise.
5369 * f-lang.c (f_language_data): Likewise.
5370 * go-lang.c (go_language_data): Likewise.
5371 * language.c (unk_lang_value_print): Delete.
5372 (language_defn::value_print): Define new member function.
5373 (unknown_language_data): Delete la_value_print initializer.
5374 (unknown_language::value_print): New member function.
5375 (auto_language_data): Delete la_value_print initializer.
5376 (auto_language::value_print): New member function.
5377 * language.h (language_data): Delete la_value_print field.
5378 (language_defn::value_print): Declare new member function.
5379 (LA_VALUE_PRINT): Update call to value_print.
5380 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5381 * objc-lang.c (objc_language_data): Likewise.
5382 * opencl-lang.c (opencl_language_data): Likewise.
5383 * p-lang.c (pascal_language_data): Likewise.
5384 (pascal_language::value_print): New member function.
5385 * rust-lang.c (rust_language_data): Delete la_value_print
5386 initializer.
5387
f16a9f57
AB
53882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5389
5390 * ada-lang.c (ada_watch_location_expression): Rename to
5391 ada_language::watch_location_expression.
5392 (ada_language_data): Delete la_watch_location_expression
5393 initializer.
5394 (ada_language::watch_location_expression): New member function,
5395 implementation from ada_watch_location_expression.
5396 * breakpoint.c (watch_command_1): Update call to
5397 watch_location_expression.
5398 * c-lang.c (c_watch_location_expression): Rename to
5399 language_defn::watch_location_expression.
5400 (c_language_data): Delete la_watch_location_expression
5401 initializer.
5402 (cplus_language_data): Likewise.
5403 (asm_language_data): Likewise.
5404 (minimal_language_data): Likewise.
5405 * c-lang.h (c_watch_location_expression): Delete declaration.
5406 * d-lang.c (d_language_data): Delete la_watch_location_expression
5407 initializer.
5408 * f-lang.c (f_language_data): Likewise.
5409 * go-lang.c (go_language_data): Likewise.
5410 * language.c (language_defn::watch_location_expression): Member
5411 function implementation from c_watch_location_expression.
5412 (unknown_language_data): Delete la_watch_location_expression
5413 initializer.
5414 (auto_language_data): Likewise.
5415 * language.h (language_data): Delete la_watch_location_expression
5416 field.
5417 (language_defn::watch_location_expression): Declare new member
5418 function.
5419 * m2-lang.c (m2_language_data): Delete
5420 la_watch_location_expression initializer.
5421 * objc-lang.c (objc_language_data): Likewise.
5422 * opencl-lang.c (opencl_language_data): Likewise.
5423 * p-lang.c (pascal_language_data): Likewise.
5424 * rust-lang.c (rust_watch_location_expression): Rename to
5425 rust_language::watch_location_expression.
5426 (rust_language_data): Delete la_watch_location_expression
5427 initializer.
5428 (rust_language::watch_location_expression): New member function,
5429 implementation from rust_watch_location_expression.
5430
7e56227d
AB
54312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5432
5433 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5434 ada_language::collect_symbol_completion_matches.
5435 (ada_language_data): Delete la_collect_symbol_completion_matches
5436 initializer.
5437 (ada_language::collect_symbol_completion_matches): New member
5438 function, implementation from
5439 ada_collect_symbol_completion_matches.
5440 * c-lang.c (c_language_data): Delete
5441 la_collect_symbol_completion_matches initializer.
5442 (cplus_language_data): Likewise.
5443 (asm_language_data): Likewise.
5444 (minimal_language_data): Likewise.
5445 * d-lang.c (d_language_data): Likewise.
5446 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5447 f_language::collect_symbol_completion_matches.
5448 (f_language_data): Delete la_collect_symbol_completion_matches
5449 initializer.
5450 (f_language::collect_symbol_completion_matches) New member
5451 function, implementation from f_collect_symbol_completion_matches.
5452 * go-lang.c (go_language_data): Delete
5453 la_collect_symbol_completion_matches initializer.
5454 * language.c (unknown_language_data): Likewise.
5455 (auto_language_data): Likewise.
5456 * language.h (language_data): Delete
5457 la_collect_symbol_completion_matches field.
5458 (language_defn::collect_symbol_completion_matches): New member
5459 function.
5460 * m2-lang.c (m2_language_data): Delete
5461 la_collect_symbol_completion_matches initializer.
5462 * objc-lang.c (objc_language_data): Likewise.
5463 * opencl-lang.c (opencl_language_data): Likewise.
5464 * p-lang.c (pascal_language_data): Likewise.
5465 * rust-lang.c (rust_language_data): Likewise.
5466 * symtab.c (default_collect_symbol_completion_matches): Delete.
5467 (collect_symbol_completion_matches): Update call to
5468 collect_symbol_completion_matches.
5469 (collect_symbol_completion_matches_type): Likewise.
5470 * symtab.h (default_collect_symbol_completion_matches): Delete
5471 declaration.
5472
53fc67f8
AB
54732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5474
5475 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5476 (ada_language_data): Delete la_word_break_characters initializer.
5477 (ada_language::word_break_characters): New member function.
5478 * c-lang.c (c_language_data): Delete la_word_break_characters
5479 initializer.
5480 (cplus_language_data): Likewise.
5481 (asm_language_data): Likewise.
5482 (minimal_language_data): Likewise.
5483 * completer.c: Update global comment.
5484 (advance_to_expression_complete_word_point): Update call to
5485 word_break_characters.
5486 (complete_files_symbols): Likewise.
5487 (complete_line_internal_1): Likewise.
5488 (default_completer_handle_brkchars): Likewise.
5489 (skip_quoted_chars): Likewise.
5490 * d-lang.c (d_language_data): Delete la_word_break_characters
5491 initializer.
5492 * f-lang.c (f_word_break_characters): Delete.
5493 (f_language_data): Delete la_word_break_characters initializer.
5494 (f_language::word_break_characters): New member function.
5495 * go-lang.c (go_language_data): Delete la_word_break_characters
5496 initializer.
5497 * language.c (unknown_language_data): Likewise.
5498 (auto_language_data): Likewise.
5499 * language.h (default_word_break_characters): Move declaration to
5500 earlier in the file.
5501 (language_data): Delete la_word_break_characters field.
5502 (language_defn::word_break_characters): New member function.
5503 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5504 initializer.
5505 * objc-lang.c (objc_language_data): Likewise.
5506 * opencl-lang.c (opencl_language_data): Likewise.
5507 * p-lang.c (pascal_language_data): Likewise.
5508 * rust-lang.c (rust_language_data): Likewise.
5509
c9debfb9
AB
55102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5511
5512 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5513 (ada_language_data): Delete la_get_symbol_name_matcher
5514 initializer.
5515 (language_defn::get_symbol_name_matcher_inner): New member
5516 function.
5517 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5518 initializer.
5519 (cplus_language_data): Likewise.
5520 (cplus_language::get_symbol_name_matcher_inner): New member
5521 function.
5522 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5523 (minimal_language_data): Likewise.
5524 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5525 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5526 initializer.
5527 * dictionary.c (iter_match_first_hashed): Update call to
5528 get_symbol_name_matcher.
5529 (iter_match_next_hashed): Likewise.
5530 (iter_match_next_linear): Likewise.
5531 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5532 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5533 initializer.
5534 (f_language::get_symbol_name_matcher_inner): New member function.
5535 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5536 initializer.
5537 * language.c (default_symbol_name_matcher): Update header comment,
5538 make static.
5539 (language_defn::get_symbol_name_matcher): New definition.
5540 (language_defn::get_symbol_name_matcher_inner): Likewise.
5541 (get_symbol_name_matcher): Delete.
5542 (unknown_language_data): Delete la_get_symbol_name_matcher
5543 initializer.
5544 (auto_language_data): Likewise.
5545 * language.h (language_data): Delete la_get_symbol_name_matcher
5546 field.
5547 (language_defn::get_symbol_name_matcher): New member function.
5548 (language_defn::get_symbol_name_matcher_inner): Likewise.
5549 (default_symbol_name_matcher): Delete declaration.
5550 * linespec.c (find_methods): Update call to
5551 get_symbol_name_matcher.
5552 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5553 initializer.
5554 * minsyms.c (lookup_minimal_symbol): Update call to
5555 get_symbol_name_matcher.
5556 (iterate_over_minimal_symbols): Likewise.
5557 * objc-lang.c (objc_language_data): Delete
5558 la_get_symbol_name_matcher initializer.
5559 * opencl-lang.c (opencl_language_data): Likewise.
5560 * p-lang.c (pascal_language_data): Likewise.
5561 * psymtab.c (psymbol_name_matches): Update call to
5562 get_symbol_name_matcher.
5563 * rust-lang.c (rust_language_data): Delete
5564 la_get_symbol_name_matcher initializer.
5565 * symtab.c (symbol_matches_search_name): Update call to
5566 get_symbol_name_matcher.
5567 (compare_symbol_name): Likewise.
5568
9a49ad8c
AB
55692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5570
5571 * ada-lang.c (ada_language_data): Delete la_compute_program
5572 initializer.
5573 * c-lang.c (c_language_data): Likewise.
5574 (c_language::compute_program): New member function.
5575 (cplus_language_data): Delete la_compute_program initializer.
5576 (cplus_language::compute_program): New member function.
5577 (asm_language_data): Delete la_compute_program initializer.
5578 (minimal_language_data): Likewise.
5579 * c-lang.h (c_compute_program): Update comment.
5580 (cplus_compute_program): Likewise.
5581 * compile/compile-c-support.c (c_compute_program): Likewise.
5582 (cplus_compute_program): Likewise.
5583 * compile/compile.c (compile_to_object): Update call to
5584 la_compute_program.
5585 * d-lang.c (d_language_data): Delete la_compute_program
5586 initializer.
5587 * f-lang.c (f_language_data): Likewise.
5588 * go-lang.c (go_language_data): Likewise.
5589 * language.c (unknown_language_data): Likewise.
5590 (auto_language_data): Likewise.
5591 * language.h (language_data): Delete la_compute_program field.
5592 (language_defn::compute_program): New member function.
5593 * m2-lang.c (m2_language_data): Delete la_compute_program
5594 initializer.
5595 * objc-lang.c (objc_language_data): Likewise.
5596 * opencl-lang.c (opencl_language_data): Likewise.
5597 * p-lang.c (pascal_language_data): Likewise.
5598 * rust-lang.c (rust_language_data): Likewise.
5599
eff93b4d
AB
56002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5601
5602 * ada-lang.c (ada_language_data) Delete
5603 la_class_name_from_physname initializer.
5604 * c-lang.c (c_language_data): Likewise.
5605 (cplus_language_data): Likewise.
5606 (cplus_language::class_name_from_physname): New member function.
5607 (asm_language_data): Delete la_class_name_from_physname
5608 initializer.
5609 (minimal_language_data): Likewise.
5610 * d-lang.c (d_language_data): Likewise.
5611 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5612 method on language_defn class.
5613 (guess_full_die_structure_name): Likewise.
5614 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5615 initializer.
5616 * go-lang.c (go_language_data): Likewise.
5617 * language.c (language_class_name_from_physname): Delete.
5618 (unk_lang_class_name): Delete.
5619 (unknown_language_data): Delete la_class_name_from_physname
5620 initializer.
5621 (auto_language_data): Likewise.
5622 * language.h (language_data): Delete la_class_name_from_physname
5623 field.
5624 (language_defn::class_name_from_physname): New function.
5625 (language_class_name_from_physname): Delete declaration.
5626 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5627 initializer.
5628 * objc-lang.c (objc_language_data): Likewise.
5629 * opencl-lang.c (opencl_language_data): Likewise.
5630 * p-lang.c (pascal_language_data): Likewise.
5631 * rust-lang.c (rust_language_data): Likewise.
5632
de543742
TT
56332020-06-16 Tom Tromey <tom@tromey.com>
5634
5635 * tui/tui-data.h (STATUS_NAME): New macro.
5636 * tui/tui-layout.c (tui_remove_some_windows)
5637 (initialize_known_windows, tui_register_window)
5638 (tui_layout_split::remove_windows, initialize_layouts)
5639 (tui_new_layout_command): Don't use hard-coded window names.
5640
a350efd4
TT
56412020-06-16 Tom Tromey <tom@tromey.com>
5642
5643 PR tui/25348:
5644 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5645 tui_initialize_readline. Only run once. Call rl_initialize.
5646 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5647 tui_initialize_readline.
5648 * tui/tui-io.c (tui_setup_io): Call
5649 tui_ensure_readline_initialized.
5650 * tui/tui-interp.c (tui_interp::init): Update.
5651
39ec0490
TT
56522020-06-16 Tom Tromey <tom@tromey.com>
5653
5654 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5655 Also preserve the status window.
5656
d2d1ea20
TT
56572020-06-16 Tom Tromey <tom@tromey.com>
5658
5659 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5660 where m_window==nullptr.
5661
66920317
TT
56622020-06-15 Tom Tromey <tromey@adacore.com>
5663
5664 * windows-nat.c (windows_nat::handle_output_debug_string):
5665 Update.
5666 (windows_nat::handle_ms_vc_exception): Update.
5667 * target.h (target_read_string): Change API.
5668 * target.c (target_read_string): Change API.
5669 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5670 Update.
5671 * solib-frv.c (frv_current_sos): Update.
5672 * solib-dsbt.c (dsbt_current_sos): Update.
5673 * solib-darwin.c (darwin_current_sos): Update.
5674 * linux-thread-db.c (inferior_has_bug): Update.
5675 * expprint.c (print_subexp_standard): Update.
5676 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5677 (ada_exception_message_1): Update.
5678
a5d871dd
TT
56792020-06-15 Tom Tromey <tromey@adacore.com>
5680
5681 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5682
670e35fa
TT
56832020-06-15 Tom Tromey <tromey@adacore.com>
5684
5685 * valprint.c (read_string): Update comment.
5686 * target.c (MIN): Remove.
5687 (target_read_string): Rewrite.
5688
f5272a3b
TT
56892020-06-15 Tom Tromey <tromey@adacore.com>
5690
5691 * corefile.c (read_memory_string): Remove.
5692 * ada-valprint.c (ada_value_print_ptr): Update.
5693 * ada-lang.h (ada_tag_name): Change return type.
5694 * ada-lang.c (type_from_tag): Update.
5695 (ada_tag_name_from_tsd): Change return type. Use
5696 target_read_string.
5697 (ada_tag_name): Likewise.
5698 * gdbcore.h (read_memory_string): Don't declare.
5699
2c074f49
HD
57002020-06-14 Hannes Domani <ssbssa@yahoo.de>
5701
5702 * symtab.c (rbreak_command): Ignore Windows drive colon.
5703
6a17d503
SM
57042020-06-12 Simon Marchi <simon.marchi@efficios.com>
5705
5706 * NEWS: Mention removed GDBserver host support.
5707
453c733f
NC
57082020-06-12 Nelson Chu <nelson.chu@sifive.com>
5709
5710 * features/riscv/rebuild-csr-xml.sh: Updated.
5711
2b4e6a3f
TT
57122020-06-11 Tom Tromey <tom@tromey.com>
5713
5714 PR gdb/18318:
5715 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5716
4412332f
JG
57172020-06-09 Jonny Grant <jg@jguk.org>
57182020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5719
5720 * main.c (captured_main_1): Don't print new line after help.
5721 (print_gdb_help): add mailing list and IRC channel information
5722 to --help. Add new lines between items in the footer. Remove
5723 quotes around bug url.
5724
2f33032a
KS
57252020-06-11 Keith Seitz <keiths@redhat.com>
5726
5727 PR gdb/21356
5728 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5729 Resolve typedefs for type length calculations.
5730
7ab96794
TV
57312020-06-10 Tom de Vries <tdevries@suse.de>
5732
5733 PR ada/24713
5734 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5735 (write_psymbols): Enable .gdb_index for ada.
5736 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5737 ada.
5738
e5f3ece2
TV
57392020-06-10 Tom de Vries <tdevries@suse.de>
5740
5741 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5742 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5743 namei" instead of "const char *name" argument.
5744 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5745 dw2_symtab_iter_init.
5746
940da03e
SM
57472020-06-08 Simon Marchi <simon.marchi@efficios.com>
5748
5749 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5750 to use type::field and field::type instead.
5751
b6cdac4b
SM
57522020-06-08 Simon Marchi <simon.marchi@efficios.com>
5753
5754 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5755 to use field::type instead.
5756
5d14b6e5
SM
57572020-06-08 Simon Marchi <simon.marchi@efficios.com>
5758
5759 * gdbtypes.h (struct field) <type, set_type>: New methods.
5760 Rename `type` field to...
5761 <m_type>: ... this. Change references throughout to use type or
5762 set_type methods.
5763 (FIELD_TYPE): Use field::type. Change call sites that modify
5764 the field's type to use field::set_type instead.
5765
3d967001
SM
57662020-06-08 Simon Marchi <simon.marchi@efficios.com>
5767
5768 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5769 to use type::index_type instead.
5770
262abc0d
SM
57712020-06-08 Simon Marchi <simon.marchi@efficios.com>
5772
5773 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5774 methods.
5775 (TYPE_INDEX_TYPE): Use type::index_type.
5776 * gdbtypes.c (create_array_type_with_stride): Likewise.
5777
82836c92
TT
57782020-06-07 Tom Tromey <tom@tromey.com>
5779
5780 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5781 parameter.
5782 (generic_value_print): Update.
5783
940dace9
AB
57842020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5785
5786 Revert commit 982a38f60b0.
5787 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5788
982a38f6
AB
57892020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5790
5791 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5792 avoid use after free.
5793
82f06518
TV
57942020-06-05 Tom de Vries <tdevries@suse.de>
5795
5796 * NEWS: Fix typos.
5797
f8c41851
SM
57982020-06-04 Simon Marchi <simon.marchi@efficios.com>
5799
5800 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5801 the per_bfd object.
5802 (dwarf2_read_debug_names): Likewise.
5803 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5804 object when re-using a per_bfd object with an index.
5805
f9b5d5ea
TV
58062020-06-03 Tom de Vries <tdevries@suse.de>
5807
5808 PR symtab/26046
5809 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5810 children for C++.
5811 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5812 DW_TAG_subprogram.
5813
f6eee2d0
AB
58142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5815
5816 * ada-lang.c (ada_language_data): Delete skip_trampoline
5817 initializer.
5818 * c-lang.c (c_language_data): Likewise.
5819 (cplus_language_data): Likewise.
5820 (cplus_language::skip_trampoline): New member function.
5821 (asm_language_data): Delete skip_trampoline initializer.
5822 (minimal_language_data): Likewise.
5823 * d-lang.c (d_language_data): Likewise.
5824 * f-lang.c (f_language_data): Likewise.
5825 * go-lang.c (go_language_data): Likewise.
5826 * language.c (unk_lang_trampoline): Delete function.
5827 (skip_language_trampoline): Update.
5828 (unknown_language_data): Delete skip_trampoline initializer.
5829 (auto_language_data): Likewise.
5830 * language.h (language_data): Delete skip_trampoline field.
5831 (language_defn::skip_trampoline): New function.
5832 * m2-lang.c (m2_language_data): Delete skip_trampoline
5833 initializer.
5834 * objc-lang.c (objc_skip_trampoline): Delete function, move
5835 implementation to objc_language::skip_trampoline.
5836 (objc_language_data): Delete skip_trampoline initializer.
5837 (objc_language::skip_trampoline): New member function with
5838 implementation from objc_skip_trampoline.
5839 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5840 initializer.
5841 * p-lang.c (pascal_language_data): Likewise.
5842 * rust-lang.c (rust_language_data): Likewise.
5843
0a50df5d
AB
58442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5845
5846 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5847 (ada_language::demangle): New member function.
5848 * c-lang.c (c_language_data): Delete la_demangle initializer.
5849 (cplus_language_data): Delete la_demangle initializer.
5850 (cplus_language::demangle): New member function.
5851 (asm_language_data): Delete la_demangle initializer.
5852 (minimal_language_data): Delete la_demangle initializer.
5853 * d-lang.c (d_language_data): Delete la_demangle initializer.
5854 (d_language::demangle): New member function.
5855 * f-lang.c (f_language_data): Delete la_demangle initializer.
5856 (f_language::demangle): New member function.
5857 * go-lang.c (go_language_data): Delete la_demangle initializer.
5858 (go_language::demangle): New member function.
5859 * language.c (language_demangle): Update.
5860 (unk_lang_demangle): Delete.
5861 (unknown_language_data): Delete la_demangle initializer.
5862 (unknown_language::demangle): New member function.
5863 (auto_language_data): Delete la_demangle initializer.
5864 (auto_language::demangle): New member function.
5865 * language.h (language_data): Delete la_demangle field.
5866 (language_defn::demangle): New function.
5867 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5868 * objc-lang.c (objc_language_data): Delete la_demangle
5869 initializer.
5870 (objc_language::demangle): New member function.
5871 * opencl-lang.c (opencl_language_data): Delete la_demangle
5872 initializer.
5873 * p-lang.c (pascal_language_data): Likewise.
5874 * rust-lang.c (rust_language_data): Likewise.
5875 (rust_language::demangle): New member function.
5876
fbfb0a46
AB
58772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5878
5879 * ada-lang.c (ada_language_data): Delete la_print_type
5880 initializer.
5881 (ada_language::print_type): New member function.
5882 * c-lang.c (c_language_data): Delete la_print_type initializer.
5883 (c_language::print_type): New member function.
5884 (cplus_language_data): Delete la_print_type initializer.
5885 (cplus_language::print_type): New member function.
5886 (asm_language_data): Delete la_print_type initializer.
5887 (asm_language::print_type): New member function.
5888 (minimal_language_data): Delete la_print_type initializer.
5889 (minimal_language::print_type): New member function.
5890 * d-lang.c (d_language_data): Delete la_print_type initializer.
5891 (d_language::print_type): New member function.
5892 * f-lang.c (f_language_data): Delete la_print_type initializer.
5893 (f_language::print_type): New member function.
5894 * go-lang.c (go_language_data): Delete la_print_type initializer.
5895 (go_language::print_type): New member function.
5896 * language.c (unk_lang_print_type): Delete.
5897 (unknown_language_data): Delete la_print_type initializer.
5898 (unknown_language::print_type): New member function.
5899 (auto_language_data): Delete la_print_type initializer.
5900 (auto_language::print_type): New member function.
5901 * language.h (language_data): Delete la_print_type field.
5902 (language_defn::print_type): New function.
5903 (LA_PRINT_TYPE): Update.
5904 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5905 (m2_language::print_type): New member function.
5906 * objc-lang.c (objc_language_data): Delete la_print_type
5907 initializer.
5908 (objc_language::print_type): New member function.
5909 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5910 to opencl_language::print_type.
5911 (opencl_language_data): Delete la_print_type initializer.
5912 (opencl_language::print_type): New member function, implementation
5913 from opencl_print_type.
5914 * p-lang.c (pascal_language_data): Delete la_print_type
5915 initializer.
5916 (pascal_language::print_type): New member function.
5917 * rust-lang.c (rust_print_type): Delete, implementation moved to
5918 rust_language::print_type.
5919 (rust_language_data): Delete la_print_type initializer.
5920 (rust_language::print_type): New member function, implementation
5921 from rust_print_type.
5922
6f827019
AB
59232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5924
5925 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5926 implementation moves to...
5927 (ada_language::sniff_from_mangled_name): ...here. Update return
5928 type.
5929 (ada_language_data): Delete la_sniff_from_mangled_name
5930 initializer.
5931 * c-lang.c (c_language_data): Likewise.
5932 (cplus_language_data): Likewise.
5933 (cplus_language::sniff_from_mangled_name): New member function,
5934 implementation taken from gdb_sniff_from_mangled_name.
5935 (asm_language_data): Delete la_sniff_from_mangled_name
5936 initializer.
5937 (minimal_language_data): Likewise.
5938 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5939 implementation moves to cplus_language::sniff_from_mangled_name.
5940 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5941 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5942 moves to...
5943 (d_language::sniff_from_mangled_name): ...here.
5944 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5945 * f-lang.c (f_language_data): Likewise.
5946 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5947 moves to...
5948 (go_language::sniff_from_mangled_name): ...here.
5949 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5950 * language.c (language_sniff_from_mangled_name): Delete.
5951 (unknown_language_data): Delete la_sniff_from_mangled_name
5952 initializer.
5953 (auto_language_data): Likewise.
5954 * language.h (language_data): Delete la_sniff_from_mangled_name
5955 field.
5956 (language_defn::sniff_from_mangled_name): New function.
5957 (language_sniff_from_mangled_name): Delete declaration.
5958 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5959 field.
5960 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5961 implementation moves to...
5962 (objc_language::sniff_from_mangled_name): ...here.
5963 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5964 * opencl-lang.c (opencl_language_data): Likewise.
5965 * p-lang.c (pascal_language_data): Likewise.
5966 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5967 implementation moves to...
5968 (rust_language::sniff_from_mangled_name): ...here.
5969 (rust_language_data): Delete la_sniff_from_mangled_name
5970 initializer.
5971 * symtab.c (symbol_find_demangled_name): Call
5972 sniff_from_mangled_name member function.
5973
fb8006fd
AB
59742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5975
5976 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5977 initializer.
5978 * c-lang.c (c_language_data): Likewise.
5979 (cplus_language_data): Likewise.
5980 (cplus_language::search_name_hash): New member function.
5981 (asm_language_data): Delete la_search_name_hash initializer.
5982 (minimal_language_data): Likewise.
5983 * d-lang.c (d_language_data): Likewise.
5984 * dictionary.c (default_search_name_hash): Rename to...
5985 (language_defn::search_name_hash): ...this.
5986 * f-lang.c (f_language_data): Likewise.
5987 (f_language::search_name_hash): New member function.
5988 * go-lang.c (go_language_data): Delete la_search_name_hash
5989 initializer.
5990 * language.c (unknown_language_data): Likewise.
5991 (auto_language_data): Likewise.
5992 * language.h (struct language_data): Delete la_search_name_hash
5993 field.
5994 (language_defn::search_name_hash): Declare new member function.
5995 (default_search_name_hash): Delete declaration.
5996 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5997 initializer.
5998 * objc-lang.c (objc_language_data): Likewise.
5999 * opencl-lang.c (opencl_language_data): Likewise.
6000 * p-lang.c (pascal_language_data): Likewise.
6001 * rust-lang.c (rust_language_data): Likewise.
6002 * symtab.c (search_name_hash): Update call.
6003
8e25bafe
AB
60042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6005
6006 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6007 initializer.
6008 * c-lang.c (class compile_instance): Declare.
6009 (c_language_data): Delete la_get_compile_instance initializer.
6010 (c_language::get_compile_instance): New member function.
6011 (cplus_language_data): Delete la_get_compile_instance initializer.
6012 (cplus_language::get_compile_instance): New member function.
6013 (asm_language_data): Delete la_get_compile_instance initializer.
6014 (minimal_language_data): Likewise.
6015 * c-lang.h (c_get_compile_context): Update comment.
6016 (cplus_get_compile_context): Update comment.
6017 * compile/compile.c (compile_to_object): Update calls, don't rely
6018 on function pointer being NULL.
6019 * d-lang.c (d_language_data): Delete la_get_compile_instance
6020 initializer.
6021 * f-lang.c (f_language_data): Likewise.
6022 * go-lang.c (go_language_data): Likewise.
6023 * language.c (unknown_language_data): Likewise.
6024 (auto_language_data): Likewise.
6025 * language.h (language_data): Delete la_get_compile_instance field.
6026 (language_defn::get_compile_instance): New member function.
6027 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6028 initializer.
6029 * objc-lang.c (objc_language_data): Likewise.
6030 * opencl-lang.c (opencl_language_data): Likewise.
6031 * p-lang.c (pascal_language_data): Likewise.
6032 * rust-lang.c (rust_language_data): Likewise.
6033
4009ee92
AB
60342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6035
6036 * ada-lang.c (ada_add_all_symbols): Update comment.
6037 (ada_iterate_over_symbols): Delete, move implementation to...
6038 (ada_language::iterate_over_symbols): ...here, a new member
6039 function, rewrite to use range based for loop.
6040 (ada_language_data): Delete la_iterate_over_symbols initializer.
6041 * c-lang.c (c_language_data): Likewise.
6042 (cplus_language_data): Likewise.
6043 (asm_language_data): Likewise.
6044 (minimal_language_data): Likewise.
6045 * d-lang.c (d_language_data): Likewise.
6046 * f-lang.c (f_language_data): Likewise.
6047 * go-lang.c (go_language_data): Likewise.
6048 * language.c (unknown_language_data): Likewise.
6049 (auto_language_data): Likewise.
6050 * language.h (language_data): Delete la_iterate_over_symbols field.
6051 (language_defn::iterate_over_symbols): New member function.
6052 (LA_ITERATE_OVER_SYMBOLS): Update.
6053 * linespec.c (iterate_over_all_matching_symtabs): Update.
6054 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6055 initializer.
6056 * objc-lang.c (objc_language_data): Likewise.
6057 * opencl-lang.c (opencl_language_data): Likewise.
6058 * p-lang.c (pascal_language_data): Likewise.
6059 * rust-lang.c (rust_language_data): Likewise.
6060
54f4ca46
AB
60612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6062
6063 * ada-lang.c (ada_language_data): Delete
6064 la_lookup_transparent_type initializer.
6065 * c-lang.c (c_language_data): Likewise.
6066 (cplus_language_data): Likewise.
6067 (cplus_language::lookup_transparent_type): New member function.
6068 (asm_language_data): Delete la_lookup_transparent_type
6069 initializer.
6070 (minimal_language_data): Likewise.
6071 * d-lang.c (d_language_data): Likewise.
6072 * f-lang.c (f_language_data): Likewise.
6073 * go-lang.c (go_language_data): Likewise.
6074 * language.c (unknown_language_data): Likewise.
6075 (auto_language_data): Likewise.
6076 * language.h (struct language_data): Delete
6077 la_lookup_transparent_type field.
6078 (language_defn::lookup_transparent_type): New member function.
6079 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6080 initializer.
6081 * objc-lang.c (objc_language_data): Likewise.
6082 * opencl-lang.c (opencl_language_data): Likewise.
6083 * p-lang.c (pascal_language_data): Likewise.
6084 * rust-lang.c (rust_language_data): Likewise.
6085 * symtab.c (symbol_matches_domain): Update call.
6086
1fb314aa
AB
60872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6088
6089 * ada-lang.c (ada_language_arch_info): Delete function, move
6090 implementation to...
6091 (ada_language::language_arch_info): ...here, a new member
6092 function.
6093 (ada_language_data): Delete la_language_arch_info.
6094 * c-lang.c (c_language_data): Likewise.
6095 (c_language::language_arch_info): New member function.
6096 (cplus_language_arch_info): Delete function, move
6097 implementation to...
6098 (cplus_language::language_arch_info): ...here, a new member
6099 function.
6100 (cplus_language_data): Delete la_language_arch_info.
6101 (asm_language_data): Likewise.
6102 (asm_language::language_arch_info): New member function.
6103 (minimal_language_data): Delete la_language_arch_info.
6104 (minimal_language::language_arch_info): New member function.
6105 * d-lang.c (d_language_arch_info): Delete function, move
6106 implementation to...
6107 (d_language::language_arch_info): ...here, a new member
6108 function.
6109 (d_language_data): Delete la_language_arch_info.
6110 * f-lang.c (f_language_arch_info): Delete function, move
6111 implementation to...
6112 (f_language::language_arch_info): ...here, a new member
6113 function.
6114 (f_language_data): Delete la_language_arch_info.
6115 * go-lang.c (go_language_arch_info): Delete function, move
6116 implementation to...
6117 (go_language::language_arch_info): ...here, a new member
6118 function.
6119 (go_language_data): Delete la_language_arch_info.
6120 * language.c (unknown_language_data): Likewise.
6121 (unknown_language::language_arch_info): New member function.
6122 (auto_language_data): Delete la_language_arch_info.
6123 (auto_language::language_arch_info): New member function.
6124 (language_gdbarch_post_init): Update call to
6125 la_language_arch_info.
6126 * language.h (language_data): Delete la_language_arch_info
6127 function pointer.
6128 (language_defn::language_arch_info): New function.
6129 * m2-lang.c (m2_language_arch_info): Delete function, move
6130 implementation to...
6131 (m2_language::language_arch_info): ...here, a new member
6132 function.
6133 (m2_language_data): Delete la_language_arch_info.
6134 * objc-lang.c (objc_language_arch_info): Delete function, move
6135 implementation to...
6136 (objc_language::language_arch_info): ...here, a new member
6137 function.
6138 (objc_language_data): Delete la_language_arch_info.
6139 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6140 implementation to...
6141 (opencl_language::language_arch_info): ...here, a new member
6142 function.
6143 (opencl_language_data): Delete la_language_arch_info.
6144 * p-lang.c (pascal_language_arch_info): Delete function, move
6145 implementation to...
6146 (pascal_language::language_arch_info): ...here, a new member
6147 function.
6148 (pascal_language_data): Delete la_language_arch_info.
6149 * rust-lang.c (rust_language_arch_info): Delete function, move
6150 implementation to...
6151 (rust_language::language_arch_info): ...here, a new member
6152 function.
6153 (rust_language_data): Delete la_language_arch_info.
6154
48448202
AB
61552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6156
6157 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6158 initializer.
6159 * c-lang.c (c_language_data): Likewise.
6160 (cplus_language_data): Likewise.
6161 (cplus_language::pass_by_reference_info): New method.
6162 (asm_language_data): Delete la_pass_by_reference initializer.
6163 (minimal_language_data): Likewise.
6164 * cp-abi.c (cp_pass_by_reference): Remove use of
6165 default_pass_by_reference.
6166 * d-lang.c (d_language_data): Likewise.
6167 * f-lang.c (f_language_data): Likewise.
6168 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6169 default_pass_by_reference.
6170 * go-lang.c (go_language_data): Likewise.
6171 * language.c (language_pass_by_reference): Update.
6172 (default_pass_by_reference): Delete.
6173 (unknown_language_data): Delete la_pass_by_reference
6174 initializer.
6175 (auto_language_data): Likewise.
6176 * language.h (struct language_data): Delete la_pass_by_reference
6177 field.
6178 (language_defn::pass_by_reference_info): New member function.
6179 (default_pass_by_reference): Delete declaration.
6180 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6181 initializer.
6182 * objc-lang.c (objc_language_data): Likewise.
6183 * opencl-lang.c (opencl_language_data): Likewise.
6184 * p-lang.c (pascal_language_data): Likewise.
6185 * rust-lang.c (rust_language_data): Likewise.
6186
15e5fd35
AB
61872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6188
6189 * ada-lang.c (ada_read_var_value): Delete function, move
6190 implementation to...
6191 (ada_language::read_var_value): ...here.
6192 (ada_language_data): Delete la_read_var_value initializer.
6193 * c-lang.c (c_language_data): Likewise.
6194 (cplus_language_data): Likewise.
6195 (minimal_language_data): Likewise.
6196 * d-lang.c (d_language_data): Likewise.
6197 * f-lang.c (f_language_data): Likewise.
6198 * findvar.c (default_read_var_value): Rename to...
6199 (language_defn::read_var_value): ...this.
6200 * findvar.c (read_var_value): Update header comment, and change to
6201 call member function instead of function pointer.
6202 * go-lang.c (go_language_data): Likewise.
6203 * language.c (unknown_language_data): Delete la_read_var_value
6204 initializer.
6205 (auto_language_data): Likewise.
6206 * language.h (struct language_data): Delete la_read_var_value
6207 field.
6208 (language_defn::read_var_value): New member function.
6209 (default_read_var_value): Delete declaration.
6210 * m2-lang.c (m2_language_data): Delete la_read_var_value
6211 initializer.
6212 * objc-lang.c (objc_language_data): Likewise.
6213 * opencl-lang.c (opencl_language_data): Likewise.
6214 * p-lang.c (pascal_language_data): Likewise.
6215 * rust-lang.c (rust_language_data): Likewise.
6216 * value.h (default_read_var_value): Delete declaration.
6217
5bd40f2a
AB
62182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6219
6220 * ada-lang.c (ada_print_array_index): Delete function, move
6221 implementation to...
6222 (ada_language::print_array_index): ...here.
6223 (ada_language_data): Delete la_print_array_index initializer.
6224 * c-lang.c (c_language_data): Likewise.
6225 (cplus_language_data): Likewise.
6226 (minimal_language_data): Likewise.
6227 * d-lang.c (d_language_data): Likewise.
6228 * f-lang.c (f_language_data): Likewise.
6229 * go-lang.c (go_language_data): Likewise.
6230 * language.c (default_print_array_index): Delete function, move
6231 implementation to...
6232 (language_defn::print_array_index): ...here.
6233 (unknown_language_data): Delete la_print_array_index initializer.
6234 (auto_language_data): Likewise.
6235 * language.h (struct language_data): Delete la_print_array_index
6236 field.
6237 (language_defn::print_array_index): New member function.
6238 (LA_PRINT_ARRAY_INDEX): Update.
6239 (default_print_array_index): Delete declaration.
6240 * m2-lang.c (m2_language_data): Delete la_print_array_index
6241 initializer.
6242 * objc-lang.c (objc_language_data): Likewise.
6243 * opencl-lang.c (opencl_language_data): Likewise.
6244 * p-lang.c (pascal_language_data): Likewise.
6245 * rust-lang.c (rust_language_data): Likewise.
6246
0874fd07
AB
62472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6248
6249 * gdb/ada-lang.c (ada_language_defn): Convert to...
6250 (ada_language_data): ...this.
6251 (class ada_language): New class.
6252 (ada_language_defn): New static global.
6253 * gdb/c-lang.c (c_language_defn): Convert to...
6254 (c_language_data): ...this.
6255 (class c_language): New class.
6256 (c_language_defn): New static global.
6257 (cplus_language_defn): Convert to...
6258 (cplus_language_data): ...this.
6259 (class cplus_language): New class.
6260 (cplus_language_defn): New static global.
6261 (asm_language_defn): Convert to...
6262 (asm_language_data): ...this.
6263 (class asm_language): New class.
6264 (asm_language_defn): New static global.
6265 (minimal_language_defn): Convert to...
6266 (minimal_language_data): ...this.
6267 (class minimal_language): New class.
6268 (minimal_language_defn): New static global.
6269 * gdb/d-lang.c (d_language_defn): Convert to...
6270 (d_language_data): ...this.
6271 (class d_language): New class.
6272 (d_language_defn): New static global.
6273 * gdb/f-lang.c (f_language_defn): Convert to...
6274 (f_language_data): ...this.
6275 (class f_language): New class.
6276 (f_language_defn): New static global.
6277 * gdb/go-lang.c (go_language_defn): Convert to...
6278 (go_language_data): ...this.
6279 (class go_language): New class.
6280 (go_language_defn): New static global.
6281 * gdb/language.c (unknown_language_defn): Remove declaration.
6282 (current_language): Initialize to nullptr, real initialization is
6283 moved to _initialize_language.
6284 (languages): Delete global.
6285 (language_defn::languages): Define.
6286 (set_language_command): Use language_defn::languages.
6287 (set_language): Likewise.
6288 (range_error): Likewise.
6289 (language_enum): Likewise.
6290 (language_def): Likewise.
6291 (add_set_language_command): Use language_def::languages for the
6292 language list, and language_def to lookup language pointers.
6293 (skip_language_trampoline): Use language_defn::languages.
6294 (unknown_language_defn): Convert to...
6295 (unknown_language_data): ...this.
6296 (class unknown_language): New class.
6297 (unknown_language_defn): New static global.
6298 (auto_language_defn): Convert to...
6299 (auto_language_data): ...this.
6300 (class auto_language): New class.
6301 (auto_language_defn): New static global.
6302 (language_gdbarch_post_init): Use language_defn::languages.
6303 (_initialize_language): Initialize current_language.
6304 * gdb/language.h (struct language_defn): Rename to...
6305 (struct language_data): ...this.
6306 (struct language_defn): New.
6307 (auto_language_defn): Delete.
6308 (unknown_language_defn): Delete.
6309 (minimal_language_defn): Delete.
6310 (ada_language_defn): Delete.
6311 (asm_language_defn): Delete.
6312 (c_language_defn): Delete.
6313 (cplus_language_defn): Delete.
6314 (d_language_defn): Delete.
6315 (f_language_defn): Delete.
6316 (go_language_defn): Delete.
6317 (m2_language_defn): Delete.
6318 (objc_language_defn): Delete.
6319 (opencl_language_defn): Delete.
6320 (pascal_language_defn): Delete.
6321 (rust_language_defn): Delete.
6322 * gdb/m2-lang.c (m2_language_defn): Convert to...
6323 (m2_language_data): ...this.
6324 (class m2_language): New class.
6325 (m2_language_defn): New static global.
6326 * gdb/objc-lang.c (objc_language_defn): Convert to...
6327 (objc_language_data): ...this.
6328 (class objc_language): New class.
6329 (objc_language_defn): New static global.
6330 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6331 (opencl_language_data): ...this.
6332 (class opencl_language): New class.
6333 (opencl_language_defn): New static global.
6334 * gdb/p-lang.c (pascal_language_defn): Convert to...
6335 (pascal_language_data): ...this.
6336 (class pascal_language): New class.
6337 (pascal_language_defn): New static global.
6338 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6339 language pointer, update comment format.
6340 * gdb/rust-lang.c (rust_language_defn): Convert to...
6341 (rust_language_data): ...this.
6342 (class rust_language): New class.
6343 (rust_language_defn): New static global.
6344
1313c56e
AB
63452020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6346
6347 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6348 member variable.
6349 <m_stmt_at_address>: New member variable.
6350 (lnp_state_machine::record_line): Don't record some lines, update
6351 tracking of is_stmt at the same address.
6352 (lnp_state_machine::lnp_state_machine): Initialise new member
6353 variables.
6354
b7ed9f3d
ST
63552020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6356
6357 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6358 "-include gnu-nat-mig.h".
6359 * gnu-nat-mig.h: New file.
6360 * gnu-nat.c: Include "gnu-nat-mig.h".
6361 (exc_server, msg_reply_server, notify_server,
6362 process_reply_server): Remove declarations.
6363
14a8ad62
ST
63642020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6365
6366 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6367 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6368 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6369 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6370 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6371 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6372 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6373 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6374 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6375 to gnu_nat_target class.
6376 * gnu-nat.c: Likewise.
6377 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6378 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6379 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6380 object.
6381 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6382 instead of `gnu_target'.
6383
0af5e106
ST
63842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6385
6386 * i386-gnu-tdep.c: Include "gdbcore.h"
6387 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6388 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6389 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6390 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6391 i386_gnu_sigcontext_addr): New functions
6392 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6393 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6394 tdep.
6395
078f2fc9
ST
63962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6397
6398 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6399 before fork_inferior call. Avoid calling it if target_is_pushed returns
6400 true.
6401
53dff92c
ST
64022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6403
6404 * gnu-nat.h (gnu_target): New variable declaration.
6405 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6406 gnu_target.
6407 * gnu-nat.c (gnu_target): New variable.
6408 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6409 add_thread_silent, and add_thread calls.
6410 (gnu_nat_target::create_inferior): Pass gnu_target to
6411 add_thread_silent, thread_change_ptid call.
6412 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6413 call.
6414
5a8b8627
ST
64152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6416
6417 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6418 (gnu_nat_target::find_memory_regions): Remove unused
6419 `old_address' variable.
6420
366f550a
ST
64212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6422
6423 * gnu-nat.c: Include "gdbarch.h".
6424
f14871bf
ST
64252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6426
6427 * reply_mig_hack.awk (Error return): Cast function through
6428 void *, to bypass compiler function call check.
6429
c6887cfb
ST
64302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6431
6432 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6433 $(srcdir)/reply_mig_hack.awk.
6434
6930bffe
ST
64352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6436
6437 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6438
112c22ed
JG
64392020-05-30 Jonny Grant <jg@jguk.org>
6440
6441 * configure.ac (ACX_BUGURL): change bug URL to https.
6442
f68f85b5
PA
64432020-05-30 Pedro Alves <palves@redhat.com>
6444
6445 * cp-support.c (replace_typedefs_template): New.
6446 (replace_typedefs_qualified_name): Handle
6447 DEMANGLE_COMPONENT_TEMPLATE.
6448
976ca316
SM
64492020-05-29 Simon Marchi <simon.marchi@efficios.com>
6450
6451 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6452 dwarf2/index-cache.h, dwarf2/index-write.c,
6453 dwarf2/index-write.h, dwarf2/line-header.c,
6454 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6455 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6456 variables and fields from `dwarf2_per_objfile` to just
6457 `per_objfile` throughout.
6458
989ade05
SM
64592020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6460
6461 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6462 <push_dwarf_reg_entry_value>: Add comment.
6463
c47bae85
KB
64642020-05-28 Kevin Buettner <kevinb@redhat.com>
6465 Keith Seitz <keiths@redhat.com>
6466
6467 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6468 instead of PyEval_ReleaseLock.
6469 (class gdbpy_gil): Move to earlier in file.
6470 (finalize_python): Set gdb_python_initialized.
6471 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6472 when not initialized.
6473
44486dcf
SM
64742020-05-28 Simon Marchi <simon.marchi@efficios.com>
6475
6476 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6477 <push_dwarf_reg_entry_value>: Remove assert. Override
6478 per_objfile with caller_per_objfile.
6479
f030440d
TV
64802020-05-28 Tom de Vries <tdevries@suse.de>
6481
6482 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6483 PR gold/15646 workaround to symbol kind "type".
6484
f0fbb768
TT
64852020-05-27 Tom Tromey <tromey@adacore.com>
6486
6487 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6488
af0b2a3e
TT
64892020-05-27 Tom Tromey <tromey@adacore.com>
6490
6491 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6492 Use htab_find_with_hash.
6493 <add_abbrev>: Remove "abbrev_number" parameter.
6494 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6495 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6496 (hash_abbrev): Add comment.
6497 (abbrev_table::lookup_abbrev): Move to header file.
6498 (abbrev_table::read): Update.
6499
7d00ffec
TT
65002020-05-27 Tom Tromey <tromey@adacore.com>
6501
6502 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6503 method.
6504 <canonical_name>: New member.
6505 <raw_name>: Rename from "name".
6506 (partial_die_info): Initialize canonical_name.
6507 (scan_partial_symbols): Check raw_name.
6508 (partial_die_parent_scope, partial_die_full_name)
6509 (add_partial_symbol, add_partial_subprogram)
6510 (add_partial_enumeration, load_partial_dies): Use "name" method.
6511 (partial_die_info::name): New method.
6512 (partial_die_info::read, guess_partial_die_structure_name)
6513 (partial_die_info::fixup): Update.
6514
697bba18
TT
65152020-05-27 Tom Tromey <tromey@adacore.com>
6516
6517 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6518 <get_ref_die_offset>: Inline.
6519 <get_ref_die_offset_complaint>: New method.
6520 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6521 (attribute::get_ref_die_offset_complaint): Rename from
6522 get_ref_die_offset. Just issue complaint.
6523
c17ace43
HD
65242020-05-27 Hannes Domani <ssbssa@yahoo.de>
6525
6526 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6527
96445f0b
HD
65282020-05-27 Hannes Domani <ssbssa@yahoo.de>
6529
6530 * exec.c (exec_file_attach): Use errno value of first openp failure.
6531
ac637ec3
HD
65322020-05-27 Hannes Domani <ssbssa@yahoo.de>
6533
6534 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6535 Don't close thread handle.
6536
17ee85fc
TT
65372020-05-27 Tom Tromey <tom@tromey.com>
6538 Simon Marchi <simon.marchi@efficios.com>
6539
6540 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6541 shared_ptr.
6542 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6543 member.
6544 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6545 dwarf2_per_bfd_objfile_data_key>: New globals.
6546 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6547 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6548 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6549 shared.
6550 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6551 short-circuit when sharing.
6552 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6553 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6554
39b16f87
SM
65552020-05-27 Simon Marchi <simon.marchi@efficios.com>
6556
6557 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6558 to...
6559 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6560 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6561
fcf23d5b
SM
65622020-05-27 Simon Marchi <simon.marchi@efficios.com>
6563
6564 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6565 build_name_components, find_name_components_bounds>:
6566 Add per_objfile parameter.
6567 (struct mapped_index) <symbol_name_at>: Likewise.
6568 (struct mapped_debug_names): Remove constructor.
6569 <dwarf2_per_objfile>: Remove field.
6570 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6571 (mapped_index_base::find_name_components_bounds,
6572 mapped_index_base::build_name_components,
6573 dw2_expand_symtabs_matching_symbol): Likewise.
6574 (class mock_mapped_index) <symbol_name_at>: Likewise.
6575 (check_match): Likewise.
6576 (check_find_bounds_finds): Likewise.
6577 (test_mapped_index_find_name_component_bounds): Update.
6578 (CHECK_MATCH): Update.
6579 (dw2_expand_symtabs_matching): Update.
6580 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6581 per_objfile parameter.
6582 <find_vec_in_debug_names>: Likewise.
6583 <m_per_objfile>: New field.
6584 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6585 parameter.
6586 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6587 (dw2_debug_names_iterator::next): Update.
6588 (dw2_debug_names_lookup_symbol): Update.
6589 (dw2_debug_names_expand_symtabs_for_function): Update.
6590 (dw2_debug_names_map_matching_symbols): Update.
6591 (dw2_debug_names_expand_symtabs_matching): Update.
6592 (dwarf2_read_debug_names): Update.
6593
7188ed02
SM
65942020-05-27 Simon Marchi <simon.marchi@efficios.com>
6595
6596 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6597 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6598 move to dwarf2_per_objfile.
6599 <read_in_chain>: Remove.
6600 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6601 remove_all_cus, age_comp_units>: New methods.
6602 <m_dwarf2_cus>: New member.
6603 (struct dwarf2_per_cu_data) <cu>: Remove.
6604 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6605 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6606 moved to methods of dwarf2_per_objfile.
6607 (dwarf2_clear_marks): Remove.
6608 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6609 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6610 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6611 (dwarf2_per_objfile::remove_all_cus): New.
6612 (class free_cached_comp_units) <~free_cached_comp_units>:
6613 Update.
6614 (load_cu): Update.
6615 (dw2_do_instantiate_symtab): Adjust.
6616 (fill_in_sig_entry_from_dwo_entry): Adjust.
6617 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6618 (cutu_reader::cutu_reader): Likewise.
6619 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6620 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6621 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6622 and dwarf2_per_objfile::age_comp_units.
6623 (load_partial_comp_unit): Update.
6624 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6625 (process_queue): Likewise.
6626 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6627 backlink.
6628 (dwarf2_read_addr_index): Likewise.
6629 (follow_die_offset): Likewise.
6630 (dwarf2_fetch_die_loc_sect_off): Likewise.
6631 (dwarf2_fetch_constant_bytes): Likewise.
6632 (dwarf2_fetch_die_type_sect_off): Likewise.
6633 (follow_die_sig_1): Likewise.
6634 (load_full_type_unit): Likewise.
6635 (read_signatured_type): Likewise.
6636 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6637 (dwarf2_cu::~dwarf2_cu): Remove.
6638 (dwarf2_per_objfile::get_cu): New.
6639 (dwarf2_per_objfile::set_cu): New.
6640 (age_cached_comp_units): Rename to...
6641 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6642 to std::unordered_map.
6643 (free_one_cached_comp_unit): Rename to...
6644 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6645 to std::unordered_map.
6646 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6647 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6648 a dwarf2_per_objfile in data.
6649 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6650 (dwarf2_clear_marks): Remove.
6651
2e671100
SM
66522020-05-27 Simon Marchi <simon.marchi@efficios.com>
6653
6654 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6655 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6656 (init_tu_and_read_dwo_dies): Likewise.
6657 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6658 (cutu_reader::cutu_reader): Likewise.
6659 (load_partial_comp_unit): Likewise.
6660 (process_psymtab_comp_unit): Update.
6661 (build_type_psymtabs_1): Update.
6662 (process_skeletonless_type_unit): Update.
6663 (load_full_comp_unit): Update.
6664 (find_partial_die): Update.
6665 (dwarf2_read_addr_index): Update.
6666 (read_signatured_type): Update.
6667
2e6a9f79
SM
66682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6669
6670 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6671 m_header_read_in>: New fields.
6672 <get_header>: New method.
6673 * dwarf2/read.c (per_cu_header_read_in): Remove.
6674 (dwarf2_per_cu_data::get_header): New.
6675 (dwarf2_per_cu_data::addr_size): Update.
6676 (dwarf2_per_cu_data::offset_size): Update.
6677 (dwarf2_per_cu_data::ref_addr_size): Update.
6678
1b555f17
SM
66792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6680
6681 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6682 (dw2_do_instantiate_symtab): Update.
6683 (queue_and_load_all_dwo_tus): Change parameter from
6684 dwarf2_per_cu_data to dwarf2_cu.
6685 (dwarf2_fetch_die_loc_sect_off): Update.
6686 (dwarf2_fetch_constant_bytes): Update.
6687 (dwarf2_fetch_die_type_sect_off): Update.
6688
8fc0b21d
SM
66892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6690
6691 * dwarf2/read.c (process_full_comp_unit,
6692 process_full_type_unit): Remove per_cu, per_objfile paramters.
6693 Add dwarf2_cu parameter.
6694 (process_queue): Update.
6695
168c9250
SM
66962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6697
6698 * dwarf2/read.c (create_cu_from_index_list): Replace
6699 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6700 (create_cus_from_index_list): Likewise.
6701 (create_cus_from_index): Likewise.
6702 (create_signatured_type_table_from_index): Likewise.
6703 (create_cus_from_debug_names_list): Likewise.
6704 (create_cus_from_debug_names): Likewise.
6705 (dwarf2_read_gdb_index): Update.
6706 (dwarf2_read_debug_names): Update.
6707
e286671b
TT
67082020-05-27 Tom Tromey <tom@tromey.com>
6709 Simon Marchi <simon.marchi@efficios.com>
6710
6711 * dwarf2/read.h (struct dwarf2_per_objfile)
6712 <get_type_for_signatured_type, set_type_for_signatured_type>:
6713 New methods.
6714 <m_type_map>: New member.
6715 (struct signatured_type) <type>: Remove.
6716 * dwarf2/read.c
6717 (dwarf2_per_objfile::get_type_for_signatured_type,
6718 dwarf2_per_objfile::set_type_for_signatured_type): New.
6719 (get_signatured_type): Use new methods.
6720
8adb8487
TT
67212020-05-27 Tom Tromey <tom@tromey.com>
6722 Simon Marchi <simon.marchi@efficios.com>
6723
6724 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6725 (struct dwarf2_per_objfile) <type_units>: New member.
6726 <get_type_unit_group_unshareable>: New method.
6727 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6728 num_symtabs, symtabs>: Remove; move to
6729 type_unit_group_unshareable.
6730 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6731 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6732 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6733
127bbf4b
SM
67342020-05-27 Simon Marchi <simon.marchi@efficios.com>
6735
6736 * dwarf2/read.h (struct dwarf2_per_cu_data):
6737 <dwarf2_per_objfile>: Remove.
6738 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6739 dwarf2_per_objfile.
6740 (create_signatured_type_table_from_index): Likewise.
6741 (create_signatured_type_table_from_debug_names): Likewise.
6742 (create_debug_type_hash_table): Likewise.
6743 (fill_in_sig_entry_from_dwo_entry): Likewise.
6744 (create_type_unit_group): Likewise.
6745 (read_comp_units_from_section): Likewise.
6746 (create_cus_hash_table): Likewise.
6747
f6e649dd
SM
67482020-05-27 Simon Marchi <simon.marchi@efficios.com>
6749
6750 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6751 dwarf2_per_cu_data::dwarf2_per_objfile.
6752 (compute_compunit_symtab_includes): Likewise.
6753 (dwarf2_cu::start_symtab): Likewise.
6754
aa66c379
SM
67552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6756
6757 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6758 parameter.
6759 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6760 (read_namespace_alias): Update.
6761 (lookup_die_type): Update.
6762 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6763 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6764 Update.
6765 (disassemble_dwarf_expression): Update.
6766
120ce1b5
SM
67672020-05-27 Simon Marchi <simon.marchi@efficios.com>
6768
6769 * dwarf2/read.h (struct dwarf2_queue_item): Add
6770 dwarf2_per_objfile parameter, assign new parameter.
6771 <per_objfile>: New field.
6772 * dwarf2/read.c (free_one_cached_comp_unit): Add
6773 dwarf2_per_objfile parameter.
6774 (queue_comp_unit): Likewise.
6775 (dw2_do_instantiate_symtab): Update.
6776 (process_psymtab_comp_unit): Update.
6777 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6778 (process_imported_unit_die): Update.
6779 (queue_and_load_dwo_tu): Update.
6780 (follow_die_offset): Update.
6781 (follow_die_sig_1): Update.
6782
9f47c707
SM
67832020-05-27 Simon Marchi <simon.marchi@efficios.com>
6784
6785 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6786 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6787 (read_call_site_scope): Assign per_objfile.
6788 (dwarf2_per_cu_data::objfile): Remove.
6789 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6790 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6791 dwarf2_per_objfile parameter.
6792 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6793 dwarf2_per_objfile parameter.
6794 (dwarf_expr_reg_to_entry_parameter): Add output
6795 dwarf2_per_objfile parameter.
6796 (locexpr_get_frame_base): Update.
6797 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6798 <push_dwarf_reg_entry_value>: Update.
6799 <call_site_to_target_addr>: Update.
6800 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6801 parameter.
6802 (value_of_dwarf_reg_entry): Update.
6803 (rw_pieced_value): Update.
6804 (indirect_synthetic_pointer): Update.
6805 (dwarf2_evaluate_property): Update.
6806 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6807 parameter.
6808 (locexpr_read_variable): Update.
6809 (locexpr_get_symbol_read_needs): Update.
6810 (loclist_read_variable): Update.
6811
14095eb3
SM
68122020-05-27 Simon Marchi <simon.marchi@efficios.com>
6813
6814 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6815 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6816 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6817 parameter.
6818 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6819 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6820 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6821 parameter.
6822 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6823 sect_variable_value): Add dwarf2_per_objfile parameter.
6824 (class dwarf_evaluate_loc_desc) <dwarf_call,
6825 dwarf_variable_value>: Update.
6826 (fetch_const_value_from_synthetic_pointer): Add
6827 dwarf2_per_objfile parameter.
6828 (fetch_const_value_from_synthetic_pointer): Update.
6829 (coerced_pieced_ref): Update.
6830 (class symbol_needs_eval_context) <dwarf_call,
6831 dwarf_variable_value>: Update.
6832 (dwarf2_compile_expr_to_ax): Update.
6833
3c3cd3d4
SM
68342020-05-27 Simon Marchi <simon.marchi@efficios.com>
6835
6836 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6837 parameter.
6838 (dwarf2_evaluate_loc_desc_full): Update.
6839
82ca3f51
SM
68402020-05-27 Simon Marchi <simon.marchi@efficios.com>
6841
6842 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6843 parameter.
6844 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6845 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6846 dwarf2_per_objfile parameter.
6847 (decode_debug_loc_dwo_addresses): Likewise.
6848 (dwarf2_find_location_expression): Update.
6849 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6850 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6851 parameter.
6852 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6853 parameter.
6854 (locexpr_describe_location_1): Likewise.
6855 (locexpr_describe_location): Update.
6856
4b167ea1
SM
68572020-05-27 Simon Marchi <simon.marchi@efficios.com>
6858
6859 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6860 Remove.
6861 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6862 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6863 (dwarf2_compile_property_to_c): Update.
6864 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6865 use text offset from objfile.
6866 (locexpr_tracepoint_var_ref): Update.
6867 (locexpr_generate_c_location): Update.
6868 (loclist_describe_location): Update.
6869 (loclist_tracepoint_var_ref): Update.
6870 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6871 dwarf2_per_objfile parameter.
6872 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6873 use text offset from objfile.
6874 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6875
89b07335
SM
68762020-05-27 Simon Marchi <simon.marchi@efficios.com>
6877
6878 * dwarf2/expr.h (struct dwarf_expr_context)
6879 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6880 <offset>: Remove.
6881 <per_objfile>: New member.
6882 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6883 dwarf2_per_objfile parameter. Don't set offset, set
6884 per_objfile.
6885 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6886 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6887 a dwarf2_per_objfile object instead of an offset.
6888 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6889 constructor.
6890 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6891 to dwarf2_expr_executor constructor. Don't set offset.
6892 (dwarf2_fetch_cfa_info): Update.
6893 (struct dwarf2_frame_cache) <text_offset>: Remove.
6894 <per_objfile>: New field.
6895 (dwarf2_frame_cache): Update.
6896 (dwarf2_frame_prev_register): Update.
6897 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6898 <dwarf_evaluate_loc_desc>: Add constructor.
6899 (dwarf2_evaluate_loc_desc_full): Update.
6900 (dwarf2_locexpr_baton_eval): Update.
6901 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6902 Add constructor.
6903 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6904
293e7e51
SM
69052020-05-27 Simon Marchi <simon.marchi@efficios.com>
6906
6907 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6908 addr_sized_int_type>: Move to dwarf2_cu.
6909 <int_type>: Move to dwarf2_per_objfile.
6910 (struct dwarf2_per_objfile) <int_type>: Move here.
6911 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6912 addr_sized_int_type>: Move here.
6913 (read_func_scope): Update.
6914 (read_array_type): Update.
6915 (read_tag_string_type): Update.
6916 (attr_to_dynamic_prop): Update.
6917 (dwarf2_per_cu_data::int_type): Rename to...
6918 (dwarf2_per_objfile::int_type): ... this.
6919 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6920 (dwarf2_cu::addr_sized_int_type): ... this.
6921 (read_subrange_type): Update.
6922 (dwarf2_per_cu_data::addr_type): Rename to...
6923 (dwarf2_cu::addr_type): ... this.
6924 (set_die_type): Update.
6925
64874a40
SM
69262020-05-27 Simon Marchi <simon.marchi@efficios.com>
6927
6928 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6929 data through per_cu->cu.
6930
4ab09049
SM
69312020-05-27 Simon Marchi <simon.marchi@efficios.com>
6932
6933 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6934 dwarf2_per_cu_data parameter fo dwarf2_cu.
6935 (lookup_dwo_type_unit): Likewise.
6936 (read_cutu_die_from_dwo): Likewise.
6937 (lookup_dwo_unit): Likewise.
6938 (open_and_init_dwo_file): Likewise.
6939 (lookup_dwo_cutu): Likewise.
6940 (lookup_dwo_comp_unit): Likewise.
6941 (lookup_dwo_type_unit): Likewise.
6942 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6943 (cutu_reader::cutu_reader): Update.
6944
47b14e86
SM
69452020-05-27 Simon Marchi <simon.marchi@efficios.com>
6946
6947 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6948 parameter.
6949 (process_full_type_unit): Likewise.
6950 (process_queue): Update.
6951
43182c09
SM
69522020-05-27 Simon Marchi <simon.marchi@efficios.com>
6953
6954 * dwarf2/read.c (recursively_compute_inclusions): Add
6955 dwarf2_per_objfile parameter.
6956 (compute_compunit_symtab_includes): Likewise.
6957 (process_cu_includes): Update.
6958
7aa104c4
SM
69592020-05-27 Simon Marchi <simon.marchi@efficios.com>
6960
6961 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6962 parameter.
6963 (create_type_unit_group): Update.
6964 (process_psymtab_comp_unit_reader): Update.
6965 (build_type_psymtabs_reader): Update.
6966
e3beb21d
SM
69672020-05-27 Simon Marchi <simon.marchi@efficios.com>
6968
6969 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6970 object through m_this_cu->cu.
6971
d460f660
SM
69722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6973
6974 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6975 the info parameter.
6976 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6977
ab432490
SM
69782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6979
6980 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6981 per_objfile parameter.
6982 (load_full_type_unit): Add per_objfile parameter.
6983 (read_signatured_type): Likewise.
6984 (load_full_comp_unit): Likewise.
6985 (load_cu): Likewise.
6986 (dw2_do_instantiate_symtab): Likewise.
6987 (dw2_get_file_names): Likewise.
6988 (dw2_map_symtabs_matching_filename): Update.
6989 (dw_expand_symtabs_matching_file_matcher): Update.
6990 (dw2_map_symbol_filenames): Update.
6991 (process_psymtab_comp_unit): Add per_objfile parameter.
6992 (build_type_psymtabs_1): Update.
6993 (process_skeletonless_type_unit): Update.
6994 (dwarf2_build_psymtabs_hard): Update.
6995 (load_partial_comp_unit): Add per_objfile parameter.
6996 (scan_partial_symbols): Update.
6997 (load_full_comp_unit): Add per_objfile parameter.
6998 (process_imported_unit_die): Update.
6999 (create_cus_hash_table): Update.
7000 (find_partial_die): Update.
7001 (dwarf2_read_addr_index): Update.
7002 (follow_die_offset): Update.
7003 (dwarf2_fetch_die_loc_sect_off): Update.
7004 (dwarf2_fetch_constant_bytes): Update.
7005 (dwarf2_fetch_die_type_sect_off): Update.
7006 (follow_die_sig_1): Update.
7007 (load_full_type_unit): Add per_objfile parameter.
7008 (read_signatured_type): Likewise.
7009
313bad1b
SM
70102020-05-27 Simon Marchi <simon.marchi@efficios.com>
7011
7012 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7013 of objfile_name.
7014
c3699833
SM
70152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7016
7017 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7018 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7019 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7020 field.
7021 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7022 (create_cus_from_index): Update.
7023 (dwarf2_read_gdb_index): Update.
7024 (create_cus_from_debug_names): Update.
7025 (dwarf2_read_debug_names): Update.
7026 (get_abbrev_section_for_cu): Update.
7027 (create_all_comp_units): Update.
7028 (read_attribute_value): Update.
7029 (get_debug_line_section): Update.
7030 * dwarf2/index-cache.c (index_cache::store): Update.
7031 * dwarf2/index-write.c (save_gdb_index_command): Update.
7032 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7033
1859c670
SM
70342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7035
7036 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7037 member.
7038 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7039 dwarf2_per_cu_data::per_bfd.
7040 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7041 (create_type_unit_group): Likewise.
7042 (queue_comp_unit): Remove reference to
7043 per_cu->dwarf2_per_objfile.
7044 (maybe_queue_comp_unit): Likewise.
7045 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7046 (create_cus_hash_table): Assign new field.
7047
5e22e966
SM
70482020-05-27 Simon Marchi <simon.marchi@efficios.com>
7049
7050 * dwarf2/read.c: Replace
7051 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7052 dwarf2_cu->per_objfile throughout.
7053
97a1449a
SM
70542020-05-27 Simon Marchi <simon.marchi@efficios.com>
7055
7056 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7057 parameter, don't use per_cu->dwarf2_per_objfile.
7058 (dw2_instantiate_symtab): Likewise.
7059 (dw2_find_last_source_symtab): Update.
7060 (dw2_map_expand_apply): Update.
7061 (dw2_lookup_symbol): Update.
7062 (dw2_expand_symtabs_for_function): Update.
7063 (dw2_expand_all_symtabs): Update.
7064 (dw2_expand_symtabs_with_fullname): Update.
7065 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7066 don't use per_cu->dwarf2_per_objfile.
7067 (dw2_expand_marked_cus): Update.
7068 (dw2_find_pc_sect_compunit_symtab): Update.
7069 (dw2_debug_names_lookup_symbol): Update.
7070 (dw2_debug_names_expand_symtabs_for_function): Update.
7071 (dw2_debug_names_map_matching_symbols): Update.
7072 (dwarf2_psymtab::expand_psymtab): Update.
7073
9e021579
SM
70742020-05-27 Simon Marchi <simon.marchi@efficios.com>
7075
7076 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7077 <per_objfile>: New member.
7078 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7079 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7080 call to dwarf2_cu.
7081 (cutu_reader::cutu_reader): Update.
7082 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7083
ae090bdb
SM
70842020-05-27 Simon Marchi <simon.marchi@efficios.com>
7085
7086 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7087 struct dwarf2_per_objfile.
7088 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7089 dwarf2_per_bfd.
7090 * dwarf2/read.c (set_die_type): Update.
7091 (get_die_type_at_offset): Update.
7092
af758d11
SM
70932020-05-27 Tom Tromey <tom@tromey.com>
7094 Simon Marchi <simon.marchi@efficios.com>
7095
7096 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7097 method.
7098 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7099 get_symtab, set_symtab>: New methods.
7100 <m_symtabs>: New field.
7101 (struct dwarf2_psymtab): Derive from partial_symtab.
7102 <readin_p, get_compunit_symtab>: Declare methods.
7103 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7104 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7105 New methods.
7106 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7107 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7108 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7109 (dw2_symtab_iter_next, dw2_print_stats)
7110 (dw2_expand_symtabs_with_fullname)
7111 (dw2_expand_symtabs_matching_one)
7112 (dw_expand_symtabs_matching_file_matcher)
7113 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7114 (dw2_debug_names_iterator::next)
7115 (dw2_debug_names_map_matching_symbols)
7116 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7117 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7118 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7119 New methods.
7120 (get_compunit_symtab, process_full_comp_unit)
7121 (process_full_type_unit): Update.
7122 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7123
5989a64e
SM
71242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7125
7126 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7127 then introduce a new dwarf2_per_objfile type.
7128 <read_line_string>: Move to the new dwarf2_per_objfile type.
7129 <objfile>: Likewise.
7130 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7131 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7132 dwarf2_per_objfile->per_bfd.
7133 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7134 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7135 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7136 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7137 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7138 (dwarf2_per_objfile::locate_sections): Rename to...
7139 (dwarf2_per_bfd::locate_sections): ... this.
7140 (dwarf2_per_objfile::get_cutu): Rename to...
7141 (dwarf2_per_bfd::get_cutu): ... this.
7142 (dwarf2_per_objfile::get_cu): Rename to...
7143 (dwarf2_per_bfd::get_cu): ... this.
7144 (dwarf2_per_objfile::get_tu): Rename to...
7145 (dwarf2_per_bfd::get_tu): ... this.
7146 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7147 (dwarf2_per_bfd::allocate_per_cu): ... this.
7148 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7149 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7150 (get_gdb_index_contents_ftype): Change parameter from
7151 dwarf2_per_objfile to dwarf2_per_bfd.
7152 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7153 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7154
a50264ba
TT
71552020-05-27 Tom Tromey <tom@tromey.com>
7156 Simon Marchi <simon.marchi@efficios.com>
7157
7158 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7159 (allocate_piece_closure): Set "per_objfile" member.
7160 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7161 (locexpr_describe_location, loclist_describe_location): Use new
7162 member.
7163 * dwarf2/read.c (read_call_site_scope)
7164 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7165 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7166 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7167 handle_data_member_location): Set per_objfile member.
7168 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7169 member.
7170 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7171
d3473f0c
TT
71722020-05-27 Tom Tromey <tom@tromey.com>
7173
7174 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7175 allocate_signatured_type>: Declare new methods.
7176 <m_num_psymtabs>: New member.
7177 (struct dwarf2_per_cu_data) <index>: New member.
7178 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7179 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7180 (create_cu_from_index_list): Use allocate_per_cu.
7181 (create_signatured_type_table_from_index)
7182 (create_signatured_type_table_from_debug_names)
7183 (create_debug_type_hash_table, add_type_unit)
7184 (read_comp_units_from_section): Use allocate_signatured_type.
7185
5717c425
TT
71862020-05-27 Tom Tromey <tom@tromey.com>
7187
7188 * psymtab.c (partial_map_expand_apply)
7189 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7190 (psym_lookup_global_symbol_language)
7191 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7192 (psym_print_stats, psym_expand_symtabs_for_function)
7193 (psym_map_symbol_filenames, psym_map_matching_symbols)
7194 (psym_expand_symtabs_matching)
7195 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7196 (maintenance_check_psymtabs): Update.
7197 * psympriv.h (struct partial_symtab) <readin_p,
7198 get_compunit_symtab>: Add objfile parameter.
7199 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7200 Likewise.
7201 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7202 get_compunit_symtab>: Likewise.
7203 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7204
45940949
TT
72052020-05-27 Tom Tromey <tom@tromey.com>
7206
7207 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7208 member.
7209 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7210 (create_cu_from_index_list)
7211 (create_signatured_type_table_from_index)
7212 (create_signatured_type_table_from_debug_names)
7213 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7214 (dwarf2_create_include_psymtab)
7215 (create_debug_type_hash_table, add_type_unit)
7216 (create_type_unit_group, read_comp_units_from_section)
7217 (dwarf2_compute_name, create_cus_hash_table)
7218 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7219 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7220 obstack.
7221 (dw2_get_real_path): Likewise. Change argument to
7222 dwarf2_per_objfile.
7223
f8c6d152
LM
72242020-05-27 Luis Machado <luis.machado@linaro.org>
7225
7226 PR tdep/26000
7227 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7228 for ldrd (immediate).
7229
e98d2e6d
PW
72302020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7231
7232 * command.h: Add comment giving the name of class_tui.
7233 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7234 create the fake command for the help for class_tui.
7235
53a47a3e
TT
72362020-05-26 Tom Tromey <tromey@adacore.com>
7237
7238 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7239 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7240 (val_atr): New function.
7241 (value_val_atr): Use it.
7242 * ada-valprint.c (print_optional_low_bound): Change low bound
7243 handling for enums.
7244 (val_print_packed_array_elements): Don't call discrete_position.
7245 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7246 discrete_position for enum types.
7247 * language.c (default_print_array_index): Change type.
7248 * language.h (struct language_defn) <la_print_array_index>: Add
7249 index_type parameter, change type of index_value.
7250 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7251 (default_print_array_index): Update.
7252 * valprint.c (maybe_print_array_index): Don't call
7253 value_from_longest. Update.
7254 (value_print_array_elements): Don't call discrete_position.
7255
0bc2354b
TT
72562020-05-26 Tom Tromey <tromey@adacore.com>
7257
7258 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7259 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7260
1218a4bf
CDA
72612020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7262
7263 PR gdb/13519
7264 * avr-tdep.c (avr_integer_to_address): Return data or code
7265 address accordingly to the second 'type' argument of the
7266 function.
7267
92651b1d
MW
72682020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7269
7270 * infcmd.c, inferior.h: (construct_inferior_arguments):
7271 Moved function from here to gdbsupport/common-inferior.{h,cc}
7272
0a4f5f8c
TT
72732020-05-23 Tom Tromey <tom@tromey.com>
7274
7275 Revert commit eca1f90c:
7276 * NEWS: Remove entry for completion styling.
7277 * completer.c (_rl_completion_prefix_display_length): Move
7278 declaration later.
7279 (gdb_fnprint): Revert.
7280 (gdb_display_match_list_1): Likewise.
7281 * cli/cli-style.c (completion_prefix_style)
7282 (completion_difference_style, completion_suffix_style): Remove.
7283 (_initialize_cli_style): Revert.
7284 * cli/cli-style.h (completion_prefix_style)
7285 (completion_difference_style, completion_suffix_style): Don't
7286 declare.
7287
e08bd6c5
PA
72882020-05-24 Pedro Alves <palves@redhat.com>
7289
7290 * symtab.c (completion_list_add_name): Return boolean indication
7291 of whether the symbol matched.
7292 (completion_list_add_symbol): Don't try to remove C++ aliases if
7293 the symbol didn't match in the first place.
7294 * symtab.h (completion_list_add_name): Return bool.
7295
ceacbf6e
SM
72962020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7297
7298 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7299 type::field.
7300
26f16254
JB
73012020-05-23 Joel Brobecker <brobecker@adacore.com>
7302
7303 GDB 9.2 released.
7304
eca1f90c
TT
73052020-05-23 Tom Tromey <tom@tromey.com>
7306
7307 * NEWS: Add entry for completion styling.
7308 * completer.c (_rl_completion_prefix_display_length): Move
7309 declaration earlier.
7310 (gdb_fnprint): Use completion_style.
7311 (gdb_display_match_list_1): Likewise.
7312 * cli/cli-style.c (completion_prefix_style)
7313 (completion_difference_style, completion_suffix_style): New
7314 globals.
7315 (_initialize_cli_style): Register new globals.
7316 * cli/cli-style.h (completion_prefix_style)
7317 (completion_difference_style, completion_suffix_style): Declare.
7318
51e2cfa2
PA
73192020-05-23 Pedro Alves <palves@redhat.com>
7320
7321 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7322 (parse_escape): Use ISDIGIT instead of isdigit.
7323 (puts_debug): Use gdb_isprint instead of isprint.
7324 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7325 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7326 ISSPACE instead of isspace.
7327 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7328 instead of isspace.
7329 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7330 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7331 instead of isxdigit and ISDIGIT instead of isdigit.
7332
80fc5e77
SM
73332020-05-22 Simon Marchi <simon.marchi@efficios.com>
7334
7335 * gdbtypes.h (struct type) <field>: New method.
7336 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7337 or type::field.
7338
3cabb6b0
SM
73392020-05-22 Simon Marchi <simon.marchi@efficios.com>
7340
7341 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7342 (TYPE_FIELDS): Use type::fields. Change all call sites that
7343 modify the propery to use type::set_fields instead.
7344
1f704f76
SM
73452020-05-22 Simon Marchi <simon.marchi@efficios.com>
7346
7347 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7348 type::num_fields instead.
7349
5e33d5f4
SM
73502020-05-22 Simon Marchi <simon.marchi@efficios.com>
7351
7352 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7353 methods.
7354 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7355 that modify the number of fields to use type::set_num_fields
7356 instead.
7357
9392ebb3
TT
73582020-05-22 Tom Tromey <tromey@adacore.com>
7359
7360 * compile/compile-object-load.h (munmap_list_free): Don't
7361 declare.
7362
7c13f4e8
AB
73632020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7364
7365 * annotate.c (annotate_source_line): Update return type, add call
7366 to update current symtab and line.
7367 * annotate.h (annotate_source_line): Update return type, and
7368 extend header comment.
7369 * source.c (info_line_command): Check annotation_level before
7370 calling annotate_source_line.
7371 * stack.c (print_frame_info): If calling annotate_source_line
7372 returns true, then don't print any other source line information.
7373
aa370940
SM
73742020-05-21 Simon Marchi <simon.marchi@efficios.com>
7375
7376 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7377
84d53fa9
SM
73782020-05-21 Simon Marchi <simon.marchi@efficios.com>
7379
7380 * coffread.c (patch_type): Remove NULL check before xfree.
7381 * corefile.c (set_gnutarget): Likewise.
7382 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7383 * exec.c (build_section_table): Likewise.
7384 * remote.c (remote_target::pass_signals): Likewise.
7385 * utils.c (n_spaces): Likewise.
7386 * cli/cli-script.c (document_command): Likewise.
7387 * i386-windows-tdep.c (core_process_module_section): Likewise.
7388 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7389
9d428aae
SM
73902020-05-20 Simon Marchi <simon.marchi@efficios.com>
7391
7392 * symfile.c (reread_symbols): Clear objfile's section_offsets
7393 vector and section indices, re-compute them by calling
7394 sym_offsets.
7395
250106a7
TT
73962020-05-20 Tom Tromey <tromey@adacore.com>
7397
7398 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7399 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7400
9a0bacfb
TV
74012020-05-20 Tom de Vries <tdevries@suse.de>
7402
7403 PR symtab/25833
7404 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7405
7b958a48
AM
74062020-05-20 Alan Modra <amodra@gmail.com>
7407
7408 PR 25993
7409 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7410 bfd_set_filename.
7411 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7412 passed to bfd_set_filename.
7413 * symfile-mem.c (add_vsyscall_page): Likewise for string
7414 passed to symbol_file_add_from_memory.
7415 (symbol_file_add_from_memory): Make name param a const char* and
7416 don't strdup.
7417
c7e97679
AM
74182020-05-20 Alan Modra <amodra@gmail.com>
7419
7420 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7421 rather than accessing bfd->filename directly.
7422 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7423 and use bfd_section_name.
7424 * dwarf2/frame.c (decode_frame_entry): Likewise.
7425 * exec.c (exec_set_section_address): Likewise.
7426 * solib-aix.c (solib_aix_bfd_open): Likewise.
7427 * stap-probe.c (get_stap_base_address): Likewise.
7428 * symfile.c (reread_symbols): Likewise.
7429
563c591b
TT
74302020-05-19 Tom Tromey <tromey@adacore.com>
7431
7432 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7433
f408d82c
SM
74342020-05-19 Simon Marchi <simon.marchi@efficios.com>
7435
7436 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7437
98c59b52
PA
74382020-05-19 Pedro Alves <palves@redhat.com>
7439
7440 * NEWS (set exec-file-mismatch): Adjust entry.
7441 * exec.c: Include "build-id.h".
7442 (validate_exec_file): Try to match build IDs instead of filenames.
7443 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7444 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7445 and pass down 'warn_if_slow'.
7446 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7447 gdb_bfd_open_closure to pass it down.
7448 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7449
4111f652
PA
74502020-05-19 Pedro Alves <palves@redhat.com>
7451
7452 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7453 * target.c (target_fileio_open_1): Rename to target_fileio_open
7454 and make extern. Use bool.
7455 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7456 (target_fileio_read_alloc_1): Adjust.
7457 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7458 (target_fileio_open_warn_if_slow): Delete declaration.
7459
ad80db5b
PA
74602020-05-19 Pedro Alves <palves@redhat.com>
7461
7462 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7463 Adjust all callers.
7464
1d6ce4d3
YS
74652020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7466
7467 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7468 whether disp is negative.
7469
9005fbbb
SM
74702020-05-19 Simon Marchi <simon.marchi@efficios.com>
7471
7472 * symfile.h (struct symfile_segment_data)
7473 <~symfile_segment_data>: Remove.
7474 <segment_info>: Change to std::vector.
7475 * symfile.c (default_symfile_segments): Update.
7476 * elfread.c (elf_symfile_segments): Update.
7477
68b888ff
SM
74782020-05-19 Simon Marchi <simon.marchi@efficios.com>
7479
7480 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7481 <segments>: New.
7482 <segment_bases, segment_sizes>: Remove.
7483 * symfile.c (default_symfile_segments): Update.
7484 * elfread.c (elf_symfile_segments): Update.
7485 * remote.c (remote_target::get_offsets): Update.
7486 * solib-target.c (solib_target_relocate_section_addresses):
7487 Update.
7488
62982abd
SM
74892020-05-19 Simon Marchi <simon.marchi@efficios.com>
7490
7491 * symfile.h (struct symfile_segment_data): Initialize fields.
7492 <~symfile_segment_data>: Add.
7493 (symfile_segment_data_up): New.
7494 (struct sym_fns) <sym_segments>: Return a
7495 symfile_segment_data_up.
7496 (default_symfile_segments): Return a symfile_segment_data_up.
7497 (free_symfile_segment_data): Remove.
7498 (get_symfile_segment_data): Return a symfile_segment_data_up.
7499 * symfile.c (default_symfile_segments): Likewise.
7500 (get_symfile_segment_data): Likewise.
7501 (free_symfile_segment_data): Remove.
7502 (symfile_find_segment_sections): Update.
7503 * elfread.c (elf_symfile_segments): Return a
7504 symfile_segment_data_up.
7505 * remote.c (remote_target::get_offsets): Update.
7506 * solib-target.c (solib_target_relocate_section_addresses):
7507 Update.
7508 * symfile-debug.c (debug_sym_segments): Return a
7509 symfile_segment_data_up.
7510
7f204339
RO
75112020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7512
e52a0f1b
RO
7513 PR build/25981
7514 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7515 Hardcode register numbers.
7516
7f204339
RO
7517 PR build/25981
7518 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7519 procfs_find_LDT_entry): Remove.
7520 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7521 procfs_find_LDT_entry): Remove.
7522 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7523 Remove.
7524
7f32a4d5
PA
75252020-05-17 Pedro Alves <palves@redhat.com>
7526 Andrew Burgess <andrew.burgess@embecosm.com>
7527 Keno Fischer <keno@juliacomputing.com>
7528
7529 PR gdb/25741
7530 * breakpoint.c (build_target_condition_list): Update comments.
7531 (build_target_command_list): Update comments and skip matching
7532 locations.
7533 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7534 a separate function. Simplify "set breakpoint auto-hw off"
7535 handling.
7536 (insert_breakpoints): Update comment.
7537 (tracepoint_locations_match): New parameter. For breakpoints,
7538 compare location types too, if the caller wants to.
7539 (handle_automatic_hardware_breakpoints): New functions.
7540 (bp_location_is_less_than): Also sort by location type and
7541 hardware breakpoint length.
7542 (update_global_location_list): Handle "set breakpoint auto-hw on"
7543 here.
7544 (update_breakpoint_locations): Ask breakpoint_locations_match to
7545 ignore location types.
7546
7d93a1e0
SM
75472020-05-16 Simon Marchi <simon.marchi@efficios.com>
7548
7549 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7550 type::name instead.
7551
d0e39ea2
SM
75522020-05-16 Simon Marchi <simon.marchi@efficios.com>
7553
7554 * gdbtypes.h (struct type) <name, set_name>: New methods.
7555 (TYPE_CODE): Use type::name. Change all call sites used to set
7556 the name to use type::set_name instead.
7557
2dab0c7b
TT
75582020-05-16 Tom Tromey <tom@tromey.com>
7559
7560 * top.c (quit_force): Update.
7561 * infrun.c (handle_no_resumed): Update.
7562 * top.h (all_uis): New function.
7563 (ALL_UIS): Remove.
7564
59f7bd8d
SM
75652020-05-16 Simon Marchi <simon.marchi@efficios.com>
7566
7567 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7568
9bf058f0
PA
75692020-05-16 Pedro Alves <palves@redhat.com>
7570
7571 * ia64-linux-nat.c
7572 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7573 Declare method.
7574 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7575
8f86ae1a
SM
75762020-05-15 Simon Marchi <simon.marchi@efficios.com>
7577
7578 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7579 (sparc64_adi_info): Likewise.
7580
d6bc0792
TT
75812020-05-15 Tom Tromey <tom@tromey.com>
7582
7583 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7584 block_objfile.
7585 (lookup_objfile_from_block): Remove.
7586 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7587 (lookup_global_symbol): Use block_objfile.
7588 * symtab.h (lookup_objfile_from_block): Don't declare.
7589 * printcmd.c (clear_dangling_display_expressions): Use
7590 block_objfile.
7591 * parse.c (operator_check_standard): Use block_objfile.
7592
8c14c3a3
TT
75932020-05-15 Tom Tromey <tom@tromey.com>
7594
7595 * language.c (language_alloc_type_symbol): Set
7596 SYMBOL_SECTION.
7597 * symtab.c (initialize_objfile_symbol): Remove.
7598 (allocate_symbol): Remove.
7599 (allocate_template_symbol): Remove.
7600 * dwarf2/read.c (fixup_go_packaging): Use "new".
7601 (new_symbol): Use "new".
7602 (read_variable): Don't call initialize_objfile_symbol. Use
7603 "new".
7604 (read_func_scope): Use "new".
7605 * xcoffread.c (process_xcoff_symbol): Don't call
7606 initialize_objfile_symbol.
7607 (SYMBOL_DUP): Remove.
7608 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7609 "new".
7610 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7611 (allocate_template_symbol): Don't declare.
7612 (struct symbol): Add copy constructor. Change defaults.
7613 * jit.c (finalize_symtab): Use "new".
7614 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7615 Use "new".
7616 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7617 (common_block_end): Use "new".
7618 * mdebugread.c (parse_symbol): Use "new".
7619 (new_symbol): Likewise.
7620
5b4a1a8d
PW
76212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7622
7623 * NEWS: Mention changes to help and apropos.
7624
57b4f16e
PW
76252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7626
7627 * command.h (enum command_class): Improve comments, document
7628 that class_alias is for user-defined aliases, give the class
7629 name for each class, remove unused class_xdb.
7630 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7631 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7632 by a precise class.
7633 * infcmd.c (_initialize_infcmd): Likewise.
7634 * reverse.c (_initialize_reverse): Likewise.
7635 * stack.c (_initialize_stack): Likewise.
7636 * symfile.c (_initialize_symfile): Likewise.
7637 * tracepoint.c (_initialize_tracepoint): Likewise.
7638
7c05caf7
PW
76392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7640
7641 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7642 when their aliased command is traversed.
7643 (help_cmd): Add fput_command_names_styled call to
7644 output command name and aliases when command has an alias.
7645
3b3aaacb
PW
76462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7647
7648 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7649 * cli/cli-decode.c (help_cmd_list): Declare as static,
7650 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7651 a command together with the command.
7652 (fput_command_name_styled, fput_command_names_styled): New functions.
7653 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7654 fput_command_name_styled.
7655 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7656 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7657
7aa1b46f
PW
76582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7659
7660 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7661 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7662 * command.h (cmd_show_list): Likewise.
7663 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7664 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7665
89bcba74
PW
76662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7667
7668 * unittests/command-def-selftests.c (traverse_command_structure):
7669 Verify all commands of a list have the same prefix command and
7670 that only the top cmdlist commands have a null prefix.
7671
3f4d92eb
PW
76722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7673
7674 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7675 as prefix, not one of its aliases.
7676 (set_cmd_prefix): Remove.
7677 (do_add_cmd): Centralize the setting of the prefix of a command, when
7678 command is defined after its full chain of prefix commands.
7679 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7680 (add_setshow_cmd_full): Likewise.
7681 (update_prefix_field_of_prefixed_commands): New function.
7682 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7683 update_prefix_field_of_prefixed_commands.
7684 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7685 addresses of remote_set_cmdlist and remote_show_cmdlist given
7686 as argument, not the address of an argument.
7687 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7688 * gdb/remote.c (_initialize_remote): Likewise.
7689
0605465f
PW
76902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7691
7692 * cli/cli-cmds.c (alias_command): Check for an existing alias
7693 using lookup_cmd_composition, as valid_command_p is too strict
7694 and forbids aliases that are the prefix of an existing alias
7695 or command.
7696 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7697 command is properly recognised as a valid command.
7698
58e6ac70
PW
76992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7700
7701 * unittests/help-doc-selftests.c: Rename to
7702 unittests/command-def-selftests.c
7703 * unittests/command-def-selftests.c (help_doc_tests): Update some
7704 comments.
7705 (command_structure_tests, traverse_command_structure): New namespace
7706 and function.
7707 (command_structure_invariants_tests): New function.
7708 (_initialize_command_def_selftests) Renamed from
7709 _initialize_help_doc_selftests, register command_structure_invariants
7710 selftest.
7711
a7b9ceb8
PW
77122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7713
7714 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7715 an alias of 'show'.
7716
b2188a06
JB
77172020-05-15 Joel Brobecker <brobecker@adacore.com>
7718
7719 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7720 ada_is_fixed_point_type. Update all callers.
7721 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7722 all callers.
7723 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7724 Update all callers.
7725 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7726 print_fixed_point_type. Update all callers.
7727 * ada-valprint.c (ada_value_print_num): Replace call to
7728 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7729
a51951c2
KB
77302020-05-14 Kevin Buettner <kevinb@redhat.com>
7731
7732 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7733 processors.
7734 (cpu_supports_bts): Add CV_AMD case.
7735
29d6859f
LM
77362020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7737 Simon Marchi <simon.marchi@efficios.com>
7738
7739 * infrun.c (stop_all_threads): Collect multiple wait events at
7740 each pass.
7741
78134374
SM
77422020-05-14 Simon Marchi <simon.marchi@efficios.com>
7743
7744 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7745 type::code instead.
7746
67607e24
SM
77472020-05-14 Simon Marchi <simon.marchi@efficios.com>
7748
7749 * gdbtypes.h (struct type) <code, set_code>: New methods.
7750 (TYPE_CODE): Use type::code. Change all call sites used to set
7751 the code to use type::set_code instead.
7752
a05575d3
TBA
77532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7754 Tom de Vries <tdevries@suse.de>
7755 Pedro Alves <palves@redhat.com>
7756
7757 PR threads/25478
7758 * infrun.c (stop_all_threads): Do NOT ignore
7759 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7760 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7761 received.
7762 (handle_no_resumed): Remove code handling a live inferior with no
7763 threads.
7764 * remote.c (has_single_non_exited_thread): New.
7765 (remote_target::update_thread_list): Do not delete a thread if is
7766 the last thread of the process.
7767 * thread.c (thread_select): Call delete_exited_threads instead of
7768 prune_threads.
7769
6ad82919
TBA
77702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7771
7772 * infrun.c (stop_all_threads): Enable/disable thread events of all
7773 targets. Move a debug message denoting the end of the function
7774 into the SCOPED_EXIT block.
7775
d890404b
TBA
77762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7777
7778 * process-stratum-target.h: Include <set>.
7779 (all_non_exited_process_targets, switch_to_target_no_thread): New
7780 function declarations.
7781 * process-stratum-target.c (all_non_exited_process_targets)
7782 (switch_to_target_no_thread): New function implementations.
7783
293b3ebc
TBA
77842020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7785
7786 * infrun.c (handle_inferior_event): Extract out a piece of code
7787 into...
7788 (mark_non_executing_threads): ...this new function.
7789
7ca9b62a
TBA
77902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7791
7792 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7793 use.
7794
fc75c28b
TBA
77952020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7796
7797 * regcache.c (regcache_read_pc_protected): New function
7798 implementation that returns 0 if the PC cannot read via
7799 'regcache_read_pc'.
7800 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7801 instead of 'regcache_read_pc'.
7802 (keep_going_pass_signal): Ditto.
7803
a89febbd
TT
78042020-05-13 Tom Tromey <tromey@adacore.com>
7805
7806 * ada-lang.c (align_value): Remove.
7807 (ada_template_to_fixed_record_type_1): Use align_up.
7808
f7e23710
TBA
78092020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7810
7811 * async-event.c: Update the copyright year.
7812 * async-event.h: Update the copyright year.
7813
02ff80c2
SM
78142020-05-12 Simon Marchi <simon.marchi@efficios.com>
7815
7816 * objfiles.h (is_addr_in_objfile,
7817 shared_objfile_contains_address_p): Return bool.
7818 * objfile.c (is_addr_in_objfile,
7819 shared_objfile_contains_address_p): Return bool.
7820
4fd6c7e8
TT
78212020-05-11 Tom Tromey <tromey@adacore.com>
7822
7823 * cli/cli-cmds.c (info_command): Restore.
7824 (_initialize_cli_cmds): Use add_prefix_command for "info".
7825 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7826
5eb68a39
TT
78272020-05-11 Tom Tromey <tromey@adacore.com>
7828
7829 * ada-lang.c (ada_value_primitive_field): Now public.
7830 * ada-lang.h (ada_value_primitive_field): Declare.
7831 * ada-valprint.c (print_field_values): Use
7832 ada_value_primitive_field for wrapper fields.
7833
7666722f
TV
78342020-05-11 Tom de Vries <tdevries@suse.de>
7835
7836 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7837 MODULE_DOMAIN.
7838
3ee6bb11
TV
78392020-05-11 Tom de Vries <tdevries@suse.de>
7840
7841 PR symtab/25941
7842 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7843 with length 0, if not gdb-produced.
7844 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7845
43434996
TV
78462020-05-09 Tom de Vries <tdevries@suse.de>
7847
7848 PR gdb/25955
7849 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7850 calculation.
7851
2f78cffc
TT
78522020-05-09 Tom Tromey <tom@tromey.com>
7853
7854 * top.c (server_command): Now bool.
7855 * top.h (server_command): Now bool.
7856
4f7bc5ed
TT
78572020-05-08 Tom Tromey <tromey@adacore.com>
7858
7859 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7860 already being processed.
7861
8be4b118
TT
78622020-05-08 Tom Tromey <tom@tromey.com>
7863
7864 * printcmd.c (struct display) <next>: Remove.
7865 <display>: New constructor.
7866 <exp_string>: Now a std::string.
7867 <enabled_p>: Now a bool.
7868 (display_number): Move definition earlier.
7869 (displays): Rename from display_chain. Now a std::vector.
7870 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7871 (display_command): Update.
7872 (do_one_display, disable_display)
7873 (enable_disable_display_command, do_enable_disable_display):
7874 Update.
7875 (free_display): Remove.
7876 (clear_displays): Rewrite.
7877 (delete_display): Update.
7878 (map_display_numbers): Use function_view. Remove "data"
7879 parameter. Update.
7880 (do_delete_display): Remove.
7881 (undisplay_command): Update.
7882 (do_one_display, do_displays, disable_display)
7883 (info_display_command): Update.
7884 (do_enable_disable_display): Remove.
7885 (enable_disable_display_command)
7886 (clear_dangling_display_expressions): Update.
7887
94c93c35
TT
78882020-05-08 Tom Tromey <tom@tromey.com>
7889
7890 * symtab.c (set_symbol_cache_size)
7891 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7892 (maintenance_print_symbol_cache_statistics): Update.
7893 * symmisc.c (print_symbol_bcache_statistics)
7894 (print_objfile_statistics, maintenance_print_objfiles)
7895 (maintenance_info_symtabs, maintenance_check_symtabs)
7896 (maintenance_expand_symtabs, maintenance_info_line_tables):
7897 Update.
7898 * symfile-debug.c (set_debug_symfile): Update.
7899 * source.c (forget_cached_source_info): Update.
7900 * python/python.c (gdbpy_progspaces): Update.
7901 * psymtab.c (maintenance_info_psymtabs): Update.
7902 * probe.c (parse_probes): Update.
7903 * linespec.c (iterate_over_all_matching_symtabs)
7904 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7905 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7906 * exec.c (exec_target::close): Update.
7907 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7908 * breakpoint.c (print_one_breakpoint_location)
7909 (create_longjmp_master_breakpoint)
7910 (create_std_terminate_master_breakpoint): Update.
7911 * progspace.c (program_spaces): Now a std::vector.
7912 (maybe_new_address_space): Update.
7913 (add_program_space): Remove.
7914 (program_space::program_space): Update.
7915 (remove_program_space): Update.
7916 (number_of_program_spaces): Remove.
7917 (print_program_space, update_address_spaces): Update.
7918 * progspace.h (program_spaces): Change type.
7919 (ALL_PSPACES): Remove.
7920 (number_of_program_spaces): Don't declare.
7921 (struct program_space) <next>: Remove.
7922
a1fd1ac9
TT
79232020-05-08 Tom Tromey <tom@tromey.com>
7924
7925 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7926 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7927 (enable_break): Update.
7928 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7929 (frv_fdpic_find_canonical_descriptor): Update.
7930 (frv_fetch_objfile_link_map): Update.
7931 * progspace.c (program_space::free_all_objfiles): Update.
7932 (program_space::solibs): New method.
7933 * progspace.h (struct program_space) <solibs>: New method.
7934 * solist.h (master_so_list): Don't declare.
7935 (ALL_SO_LIBS): Remove.
7936 * solib.h (so_list_head): Remove.
7937 (update_solib_list): Update comment.
7938 * solib.c (master_so_list): Remove.
7939 (solib_used, update_solib_list, solib_add)
7940 (info_sharedlibrary_command, clear_solib)
7941 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7942
38eae084
TT
79432020-05-08 Tom Tromey <tom@tromey.com>
7944
7945 * extension.c (extension_languages): Now a std::array.
7946 (ALL_EXTENSION_LANGUAGES): Remove.
7947 (get_ext_lang_defn, get_ext_lang_of_file)
7948 (eval_ext_lang_from_control_command): Update.
7949 (finish_ext_lang_initialization)
7950 (auto_load_ext_lang_scripts_for_objfile)
7951 (ext_lang_type_printers::ext_lang_type_printers)
7952 (apply_ext_lang_type_printers)
7953 (ext_lang_type_printers::~ext_lang_type_printers)
7954 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7955 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7956 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7957 (get_matching_xmethod_workers, ext_lang_colorize)
7958 (ext_lang_before_prompt): Update.
7959 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7960
596dc4ad
TT
79612020-05-08 Tom Tromey <tom@tromey.com>
7962
7963 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7964 overload.
7965 <swap_string, m_string>: Remove.
7966 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7967 Update.
7968 * stabsread.c (define_symbol, read_type): Update.
7969 * linespec.c (find_linespec_symbols): Update.
7970 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7971 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7972 * dbxread.c (read_dbx_symtab): Update.
7973 * cp-support.h (cp_canonicalize_string_full)
7974 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7975 Return unique_xmalloc_ptr.
7976 * cp-support.c (inspect_type): Update.
7977 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7978 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7979 Likewise.
7980 * c-typeprint.c (print_name_maybe_canonical): Update.
7981 * break-catch-throw.c (check_status_exception_catchpoint):
7982 Update.
7983
bf4cb9be
TV
79842020-05-08 Tom de Vries <tdevries@suse.de>
7985
7986 * infrun.c (follow_fork): Copy current_line and current_symtab to
7987 child thread.
7988
a1b68f28
SM
79892020-05-07 Simon Marchi <simon.marchi@efficios.com>
7990
7991 * async-event.c (struct async_signal_handler, struct
7992 async_event_handler): Reformat, remove typedef.
7993
98d48915
SM
79942020-05-07 Simon Marchi <simon.marchi@efficios.com>
7995
7996 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7997 access thistype->main_type->dyn_prop_list directly.
7998
7aa91313
SM
79992020-05-07 Simon Marchi <simon.marchi@efficios.com>
8000
8001 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8002 (remove_dyn_prop): Remove. Update all users to use
8003 type::remove_dyn_prop.
8004 * gdbtypes.c (remove_dyn_prop): Rename to...
8005 (type::remove_dyn_prop): ... this.
8006
5c54719c
SM
80072020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8008
8009 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8010 (add_dyn_prop): Remove. Update all users to use
8011 type::add_dyn_prop.
8012 * gdbtypes.c (add_dyn_prop): Rename to...
8013 (type::add_dyn_prop): ... this.
8014
24e99c6c
SM
80152020-05-07 Simon Marchi <simon.marchi@efficios.com>
8016
8017 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8018 (get_dyn_prop): Remove. Update all users to use
8019 type::dyn_prop.
8020 * gdbtypes.c (get_dyn_prop): Rename to...
8021 (type::dyn_prop): ... this.
8022
0d4bf016
SM
80232020-05-06 Simon Marchi <simon.marchi@efficios.com>
8024
8025 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8026
ac4a4f1c
SM
80272020-05-06 Simon Marchi <simon.marchi@efficios.com>
8028
8029 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8030 instruction, skip it if it's there.
8031
a3bbacc1
SM
80322020-05-05 Simon Marchi <simon.marchi@efficios.com>
8033
8034 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8035
c3236f84
SM
80362020-05-04 Simon Marchi <simon.marchi@efficios.com>
8037
8038 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8039 * gdbtypes.c (recursive_dump_type): Remove use of
8040 TYPE_INCOMPLETE.
8041
3b6acaee
TT
80422020-05-03 Tom Tromey <tom@tromey.com>
8043
8044 * breakpoint.c (catch_command, tcatch_command): Remove.
8045 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8046 add_show_prefix_cmd.
8047 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8048 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8049 Remove.
8050 (add_internal_problem_command): Use add_basic_prefix_cmd,
8051 add_show_prefix_cmd.
8052 * mips-tdep.c (set_mipsfpu_command): Remove.
8053 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8054 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8055 (_initialize_index_cache): Use add_basic_prefix_cmd.
8056 * memattr.c (dummy_cmd): Remove.
8057 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8058 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8059 (_initialize_tui_win): Use add_basic_prefix_cmd,
8060 add_show_prefix_cmd.
8061 * cli/cli-logging.c (set_logging_command): Remove.
8062 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8063 add_show_prefix_cmd.
8064 (show_logging_command): Remove.
8065 * target.c (target_command): Remove.
8066 (add_target): Use add_basic_prefix_cmd.
8067
a51119cd
HD
80682020-05-02 Hannes Domani <ssbssa@yahoo.de>
8069
8070 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8071
652fc23a 80722020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8073
652fc23a
PW
8074 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8075 info_command.
8076
117539e6
KR
80772020-04-30 Kamil Rytarowski <n54@gmx.com>
8078
8079 * nbsd-nat.c (nbsd_enable_proc_events)
8080 (nbsd_nat_target::post_startup_inferior): Add.
8081 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8082 (nbsd_nat_target::update_thread_list): Rewrite.
8083 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8084 "PTRACE_LWP_CREATE".
8085 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8086
102e38eb 80872020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8088
102e38eb
PW
8089 * stack.c (_initialize_stack): Remove duplicated creation
8090 of "frame" command and "f" alias.
8091
ee9d1e5f
HD
80922020-04-30 Hannes Domani <ssbssa@yahoo.de>
8093
8094 PR gdb/18706
8095 * gdbtypes.c (check_typedef): Calculate size of array of
8096 stubbed type.
8097
627c7fb8
HD
80982020-04-30 Hannes Domani <ssbssa@yahoo.de>
8099
8100 PR gdb/15559
8101 * i386-tdep.c (i386_push_dummy_call): Call
8102 i386_thiscall_push_dummy_call.
8103 (i386_thiscall_push_dummy_call): New function.
8104 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8105 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8106 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8107
ffc2844e
SM
81082020-04-29 Simon Marchi <simon.marchi@efficios.com>
8109
8110 * gdbarch.sh (do_read): Add shellcheck disable directive for
8111 warning SC2162.
8112
1207375d
SM
81132020-04-29 Simon Marchi <simon.marchi@efficios.com>
8114
8115 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8116 "referenced but not assigned" warning.
8117
9fdb2916
SM
81182020-04-29 Simon Marchi <simon.marchi@efficios.com>
8119
8120 * gdbarch.sh: Remove code that sets fallbackdefault.
8121
759cea5e
SM
81222020-04-29 Simon Marchi <simon.marchi@efficios.com>
8123
8124 * gdbarch.sh: Use shell operators && and || instead of
8125 -a and -o.
8126
cb02ab24
SM
81272020-04-29 Simon Marchi <simon.marchi@efficios.com>
8128
8129 * gdbarch.sh: Use $(...) instead of `...`.
8130
a6fc5ffc
SM
81312020-04-29 Simon Marchi <simon.marchi@efficios.com>
8132
8133 * gdbarch.sh: Use double quotes around variables.
8134
8d113d13
SM
81352020-04-29 Simon Marchi <simon.marchi@efficios.com>
8136
8137 * gdbarch.sh: Use %s with printf, instead of variables in the
8138 format string.
8139
ed6acedd
TT
81402020-04-29 Tom Tromey <tromey@adacore.com>
8141
8142 PR ada/25875:
8143 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8144 type fields here.
8145 (read_enumeration_type): Call
8146 update_enumeration_type_from_children later. Update comments.
8147 (process_enumeration_scope): Don't create type fields.
8148
b68b1b58
KR
81492020-04-29 Kamil Rytarowski <n54@gmx.com>
8150
8151 * nbsd-tdep.c: Include "xml-syscall.h".
8152 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8153
f94b2e03
KR
81542020-04-29 Kamil Rytarowski <n54@gmx.com>
8155
8156 * nbsd-nat.c: Include "sys/wait.h".
8157 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8158 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8159 (nbsd_nat_target::remove_exec_catchpoint)
8160 (nbsd_nat_target::set_syscall_catchpoint): Add.
8161 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8162 (nbsd_nat_target::insert_exec_catchpoint)
8163 (nbsd_nat_target::remove_exec_catchpoint)
8164 (nbsd_nat_target::set_syscall_catchpoint): Add.
8165 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8166 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8167 `nbsd_get_syscall_number'.
8168
fc49bc72
TT
81692020-04-29 Tom Tromey <tom@tromey.com>
8170
8171 * stack.c (print_block_frame_labels): Remove.
8172
d642b692
HD
81732020-04-29 Hannes Domani <ssbssa@yahoo.de>
8174
8175 PR gdb/17320
8176 * ada-valprint.c (val_print_packed_array_elements): Move array
8177 end bracket to new line.
8178 (ada_val_print_string): Remove extra spaces before first array
8179 element.
8180 * c-valprint.c (c_value_print_array): Likewise.
8181 * m2-valprint.c (m2_print_array_contents): Likewise.
8182 (m2_value_print_inner): Likewise.
8183 * p-valprint.c (pascal_value_print_inner): Likewise.
8184 * valprint.c (generic_val_print_array): Likewise.
8185 (value_print_array_elements): Move first array element and array
8186 end bracket to new line.
8187
ea90f227
TV
81882020-04-29 Tom de Vries <tdevries@suse.de>
8189
8190 PR symtab/25889
8191 * linespec.c (find_method): Fix ix calculation.
8192
4498ef4f
KR
81932020-04-28 Kamil Rytarowski <n54@gmx.com>
8194
8195 * syscalls/update-netbsd.sh: New file.
8196 * syscalls/netbsd.xml: Regenerate.
8197 * data-directory/Makefile.in: Register `netbsd.xml' in
8198 `SYSCALLS_FILES'.
8199
a55e30b5
SM
82002020-04-28 Simon Marchi <simon.marchi@efficios.com>
8201
8202 * syscalls/update-freebsd.sh: Add double quotes.
8203
2b2fbab8
TT
82042020-04-28 Tom Tromey <tom@tromey.com>
8205
8206 * NEWS: Update.
8207 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8208 (cmdpy_init): Allow class_tui.
8209
a65189c9
TV
82102020-04-28 Mark Williams <mark@myosotissp.com>
8211
8212 PR gdb/24480
8213 * dwarf2read.c: Add missing assingments to list_in_scope when
8214 start_symtab was already called.
8215
1b95cdb7
SM
82162020-04-28 Simon Marchi <simon.marchi@efficios.com>
8217
8218 PR gdb/25881
8219 * dwarf2/read.c (offset_map_type): Use
8220 gdb:hash_enum<sect_offset> as hash function.
8221
15cd93d0
TV
82222020-04-28 Tom de Vries <tdevries@suse.de>
8223
8224 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8225 with DW_AT_signature.
8226
1eb39914
SM
82272020-04-27 Simon Marchi <simon.marchi@efficios.com>
8228
8229 * configure.ac: Remove check for fs_base/gs_base in
8230 user_regs_struct.
8231 * configure: Re-generate.
8232 * config.in: Re-generate.
8233 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8234 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8235 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8236
991a3e2e
LM
82372020-04-27 Luis Machado <luis.machado@linaro.org>
8238
8239 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8240 problematic inline frame unwinding situation.
8241 * frame.c (frame_id_computed_p): New function.
8242 * frame.h (frame_id_computed_p): New prototype.
8243
361ba0e8
TT
82442020-04-26 Tom Tromey <tom@tromey.com>
8245
8246 * command.h (enum command_class) <class_pseudo>: Remove.
8247
bc3609fd
PW
82482020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8249
8250 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8251 and whitespace.
8252
b9771db7
KR
82532020-04-25 Kamil Rytarowski <n54@gmx.com>
8254
ec16513e
SM
8255 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8256 `PT_GET_PROCESS_STATE' block.
b9771db7 8257
7151c1af
TT
82582020-04-24 Tom Tromey <tom@tromey.com>
8259
8260 * symtab.h (symbol_get_demangled_name): Don't declare.
8261 * symtab.c (symbol_get_demangled_name): Remove.
8262 (general_symbol_info::natural_name)
8263 (general_symbol_info::demangled_name): Update.
8264
906bb4c5
TT
82652020-04-24 Tom Tromey <tom@tromey.com>
8266
8267 PR rust/25025:
8268 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8269
bcfe6157
TT
82702020-04-24 Tom Tromey <tom@tromey.com>
8271
8272 PR symtab/12707:
8273 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8274 exists.
8275 (new_symbol): Likewise.
8276 * compile/compile-object-load.c (get_out_value_type): Use
8277 symbol_matches_search_name.
8278
f049a313
TT
82792020-04-24 Tom Tromey <tom@tromey.com>
8280
8281 * dwarf2/read.c (add_partial_symbol): Do not call
8282 compute_and_set_names.
8283
76e288d1
TT
82842020-04-24 Tom Tromey <tom@tromey.com>
8285
8286 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8287 overload.
8288
2467f4f6
TT
82892020-04-24 Tom Tromey <tom@tromey.com>
8290
8291 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8292 (add_psymbol_to_list): New overload. Make old overload call new
8293 one.
8294 * psympriv.h (add_psymbol_to_list): New overload.
8295
e61108c9
TT
82962020-04-24 Tom Tromey <tom@tromey.com>
8297
8298 * dwarf2/read.c (partial_die_info::read) <case
8299 DW_AT_linkage_name>: Use value_as_string.
8300 (dwarf2_string_attr): Use value_as_string.
8301 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8302 method.
8303 * dwarf2/attribute.c (attribute::value_as_string): New method.
8304
8c87a452
TT
83052020-04-24 Tom Tromey <tom@tromey.com>
8306
8307 * symtab.c (general_symbol_info::natural_name)
8308 (general_symbol_info::demangled_name): Check for language_rust.
8309
787de330
TT
83102020-04-24 Tom Tromey <tom@tromey.com>
8311
8312 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8313 (dwarf2_physname): ... from here.
8314 (partial_die_info::read): Add Rust "{" hack.
8315
ff985671
TT
83162020-04-24 Tom Tromey <tom@tromey.com>
8317
8318 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8319 method.
8320 (symbol_set_demangled_name): Don't declare.
8321 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8322 symbol_set_demangled_name.
8323 (general_symbol_info::set_language)
8324 (general_symbol_info::compute_and_set_names): Update.
8325 * minsyms.c (minimal_symbol_reader::install): Update.
8326 * dwarf2/read.c (new_symbol): Update.
8327
1acda803
TT
83282020-04-24 Tom Tromey <tromey@adacore.com>
8329
8330 PR python/23662:
8331 * python/py-type.c (convert_field): Handle
8332 FIELD_LOC_KIND_DWARF_BLOCK.
8333 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8334 (typy_get_dynamic): Nw function.
8335 (type_object_getset): Add "dynamic".
8336 * NEWS: Add entry.
8337
d656f129
TT
83382020-04-24 Tom Tromey <tromey@adacore.com>
8339
8340 * ada-typeprint.c (print_choices, print_variant_part)
8341 (print_record_field_types_dynamic): New functions.
8342 (print_record_field_types): Use print_record_field_types_dynamic.
8343
7d79de9a
TT
83442020-04-24 Tom Tromey <tromey@adacore.com>
8345
8346 * dwarf2/read.c (handle_data_member_location): New overload.
8347 (dwarf2_add_field): Use it.
8348 (decode_locdesc): Add "computed" parameter. Update comment.
8349 * gdbtypes.c (is_dynamic_type_internal): Also look for
8350 FIELD_LOC_KIND_DWARF_BLOCK.
8351 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8352 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8353 virtual base classes.
8354 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8355 FIELD_LOC_KIND_DWARF_BLOCK.
8356
f8e89861
TT
83572020-04-24 Tom Tromey <tromey@adacore.com>
8358
8359 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8360 * gdbtypes.c (is_dynamic_type_internal): Check
8361 TYPE_HAS_DYNAMIC_LENGTH.
8362 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8363 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8364 New macros.
8365 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8366 constant.
8367
9c6a1327
TT
83682020-04-24 Tom Tromey <tromey@adacore.com>
8369
8370 * dwarf2/read.c (struct variant_field): Rewrite.
8371 (struct variant_part_builder): New.
8372 (struct nextfield): Remove "variant" field. Add "offset".
8373 (struct field_info): Add "current_variant_part" and
8374 "variant_parts".
8375 (alloc_discriminant_info): Remove.
8376 (alloc_rust_variant): New function.
8377 (quirk_rust_enum): Update.
8378 (dwarf2_add_field): Set "offset" member. Don't handle
8379 DW_TAG_variant_part.
8380 (offset_map_type): New typedef.
8381 (convert_variant_range, create_one_variant)
8382 (create_one_variant_part, create_variant_parts)
8383 (add_variant_property): New functions.
8384 (dwarf2_attach_fields_to_type): Call add_variant_property.
8385 (read_structure_type): Don't handle DW_TAG_variant_part.
8386 (handle_variant_part, handle_variant): New functions.
8387 (handle_struct_member_die): Use them.
8388 (process_structure_scope): Don't handle variant parts.
8389 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8390 (struct discriminant_info): Remove.
8391 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8392 (struct main_type) <flag_discriminated_union>: Remove.
8393 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8394 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8395 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8396 Update.
8397 * valops.c (value_union_variant): Remove.
8398 * value.h (value_union_variant): Don't declare.
8399
b249d2c2
TT
84002020-04-24 Tom Tromey <tromey@adacore.com>
8401
8402 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8403 (ada_value_primitive_packed_val): Update.
8404 * ada-valprint.c (ada_value_print_1): Update.
8405 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8406 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8407 just an address. Use evaluate_for_locexpr_baton.
8408 (dwarf2_evaluate_property): Update.
8409 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8410 array_view.
8411 * findvar.c (default_read_var_value): Update.
8412 * gdbtypes.c (compute_variant_fields_inner)
8413 (resolve_dynamic_type_internal): Update.
8414 (resolve_dynamic_type): Change type of valaddr parameter.
8415 * gdbtypes.h (resolve_dynamic_type): Update.
8416 * valarith.c (value_subscripted_rvalue): Update.
8417 * value.c (value_from_contents_and_address): Update.
8418
61122aa9
TT
84192020-04-24 Tom Tromey <tromey@adacore.com>
8420
8421 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8422 "push_initial_value" parameter.
8423 (dwarf2_evaluate_property): Likewise.
8424 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8425
ef83a141
TT
84262020-04-24 Tom Tromey <tromey@adacore.com>
8427
8428 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8429 (variant::matches, compute_variant_fields_recurse)
8430 (compute_variant_fields_inner, compute_variant_fields): New
8431 functions.
8432 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8433 Use resolved_type after type is made.
8434 (operator==): Add new cases.
8435 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8436 (struct discriminant_range, struct variant, struct variant_part):
8437 New.
8438 (union dynamic_prop_data) <variant_parts, original_type>: New
8439 members.
8440 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8441 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8442 constants.
8443 * value.c (unpack_bits_as_long): Now public.
8444 * value.h (unpack_bits_as_long): Declare.
8445
675127ec
TT
84462020-04-24 Tom Tromey <tromey@adacore.com>
8447
8448 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8449 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8450
9852ceef
HD
84512020-04-24 Hannes Domani <ssbssa@yahoo.de>
8452
8453 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8454
7632c6ce
KR
84552020-04-24 Kamil Rytarowski <n54@gmx.com>
8456
8457 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8458 (remove_fork_catchpoint, post_startup_inferior)
8459 (post_attach): Move...
8460 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8461 (remove_fork_catchpoint, post_startup_inferior)
8462 (post_attach): ...here.
8463 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8464 (remove_fork_catchpoint, post_startup_inferior)
8465 (post_attach): Move...
8466 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8467 (remove_fork_catchpoint, post_startup_inferior)
8468 (post_attach): ...here.
8469
7be2bb4f
TT
84702020-04-24 Tom Tromey <tromey@adacore.com>
8471
8472 * nat/windows-nat.h (struct windows_thread_info)
8473 <pc_adjusted>: New member.
8474 * windows-nat.c (windows_fetch_one_register): Check
8475 pc_adjusted.
8476 (windows_nat_target::get_windows_debug_event)
8477 (windows_nat_target::wait): Set pc_adjusted.
8478
f80cb3b4
TV
84792020-04-24 Tom de Vries <tdevries@suse.de>
8480
8481 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8482 Run gdb-add-index inside temp dir.
8483
29514b87
TT
84842020-04-23 Tom Tromey <tromey@adacore.com>
8485
8486 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8487 in loop.
8488
5939967b
LM
84892020-04-23 Luis Machado <luis.machado@linaro.org>
8490
8491 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8492 get_frame_register instead of gdbarch_unwind_pc.
8493
70bc38f5
TV
84942020-04-23 Tom de Vries <tdevries@suse.de>
8495
8496 * symtab.c (lookup_global_symbol): Prefer def over decl.
8497
de82891c
TV
84982020-04-23 Tom de Vries <tdevries@suse.de>
8499
8500 PR symtab/25807
8501 * block.c (best_symbol, better_symbol): Promote to external.
8502 * block.h (best_symbol, better_symbol): Declare.
8503 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8504 decl.
8505
ecc6c606
TT
85062020-04-23 Tom Tromey <tromey@adacore.com>
8507
8508 PR ada/25837:
8509 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8510 "const char *", not a "const std::string &".
8511 <name_and_matcher::operator==>: Update.
8512 * unittests/lookup_name_info-selftests.c: Change type of
8513 "result".
8514
740480b8
TT
85152020-04-23 Tom Tromey <tom@tromey.com>
8516
8517 * inferior.h (iterate_over_inferiors): Don't declare.
8518 * inferior.c (iterate_over_inferiors): Remove.
8519 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8520 Remove.
8521 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8522 use iterate_over_inferiors.
8523 (darwin_resume_inferior_it)
8524 (struct resume_inferior_threads_param)
8525 (darwin_resume_inferior_threads_it): Remove.
8526 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8527
ae3ab1f0
TV
85282020-04-23 Tom de Vries <tdevries@suse.de>
8529
8530 * blockframe.c (find_pc_partial_function): Use
8531 find_pc_sect_compunit_symtab rather than
8532 objfile->sf->qf->find_pc_sect_compunit_symtab.
8533
317d2668
TV
85342020-04-22 Tom de Vries <tdevries@suse.de>
8535
8536 PR symtab/25764
8537 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8538 in psymtabs.
8539
eea9e357
TV
85402020-04-22 Tom de Vries <tdevries@suse.de>
8541
8542 PR symtab/25801
8543 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8544 symtabs.
8545
3d5afab3
TV
85462020-04-22 Tom de Vries <tdevries@suse.de>
8547
8548 PR symtab/25700
8549 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8550 CU if already created.
8551
d43b7a2d
TBA
85522020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8553
8554 * infrun.c (displaced_step_fixup): Switch to the event_thread
8555 before calling displaced_step_restore, not after.
8556
d89edf9b
MM
85572020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8558
8559 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8560 its inferior is not recorded by us.
8561 (record_btrace_target_open): Replace call to
8562 all_non_exited_threads () with call to current_inferior
8563 ()->non_exited_threads ().
8564 (record_btrace_target::stop_recording): Likewise.
8565 (record_btrace_target::close): Likewise.
8566 (record_btrace_target::wait): Likewise.
8567 (record_btrace_target::record_stop_replaying): Likewise.
8568
5897fd49
MM
85692020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8570
8571 * btrace.c (btrace_enable): Throw an error on double enables and
8572 when enabling recording fails.
8573 (btrace_disable): Throw an error if the thread is not recorded.
8574
1a476b6d
MM
85752020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8576
8577 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8578 request if we do not have a thread_info.
8579
4778a5f8
TV
85802020-04-21 Tom de Vries <tdevries@suse.de>
8581
8582 PR gdb/25471
8583 * thread.c
8584 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8585 exception in get_frame_id.
8586
0fa7617d
TT
85872020-04-20 Tom Tromey <tromey@adacore.com>
8588
8589 * python/python.c (struct gdbpy_event): Mark move constructor as
8590 noexcept.
8591 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8592 constructor as noexcept.
8593 * completer.h (struct completion_result): Mark move constructor as
8594 noexcept.
8595 * completer.c (completion_result::completion_result): Use
8596 initialization style. Don't call reset_match_list.
8597
ad23bda0
MS
85982020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8599
8600 * MAINTAINERS (Write After Approval): Add myself.
8601
45e1f031
TT
86022020-04-18 Tom Tromey <tom@tromey.com>
8603
8604 * windows-tdep.c (init_w32_command_list)
8605 (w32_prefix_command_valid): Restore.
8606 (_initialize_windows_tdep): Call init_w32_command_list.
8607
08feed99
TT
86082020-04-18 Tom Tromey <tom@tromey.com>
8609
8610 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8611 * value.c (value_fn_field): Update.
8612 * valops.c (find_function_in_inferior)
8613 (value_allocate_space_in_inferior): Update.
8614 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8615 Update.
8616 * tui/tui-source.c (tui_source_window::set_contents): Update.
8617 * symtab.c (lookup_global_or_static_symbol)
8618 (find_function_start_sal_1, skip_prologue_sal)
8619 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8620 * symmisc.c (dump_msymbols, dump_symtab_1)
8621 (maintenance_print_one_line_table): Update.
8622 * symfile.c (init_entry_point_info, section_is_mapped)
8623 (list_overlays_command, simple_read_overlay_table)
8624 (simple_overlay_update_1): Update.
8625 * stap-probe.c (handle_stap_probe): Update.
8626 * stabsread.c (dbx_init_float_type, define_symbol)
8627 (read_one_struct_field, read_enum_type, read_range_type): Update.
8628 * source.c (info_line_command): Update.
8629 * python/python.c (gdbpy_source_objfile_script)
8630 (gdbpy_execute_objfile_script): Update.
8631 * python/py-type.c (save_objfile_types): Update.
8632 * python/py-objfile.c (py_free_objfile): Update.
8633 * python/py-inferior.c (python_new_objfile): Update.
8634 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8635 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8636 (maintenance_check_psymtabs): Update.
8637 * printcmd.c (info_address_command): Update.
8638 * objfiles.h (struct objfile) <arch>: New method, from
8639 get_objfile_arch.
8640 (get_objfile_arch): Don't declare.
8641 * objfiles.c (get_objfile_arch): Remove.
8642 (filter_overlapping_sections): Update.
8643 * minsyms.c (msymbol_is_function): Update.
8644 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8645 (output_nondebug_symbol): Update.
8646 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8647 (mdebug_expand_psymtab): Update.
8648 * machoread.c (macho_add_oso_symfile): Update.
8649 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8650 Update.
8651 * linux-fork.c (checkpoint_command): Update.
8652 * linespec.c (convert_linespec_to_sals): Update.
8653 * jit.c (finalize_symtab): Update.
8654 * infrun.c (insert_exception_resume_from_probe): Update.
8655 * ia64-tdep.c (ia64_find_unwind_table): Update.
8656 * hppa-tdep.c (internalize_unwinds): Update.
8657 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8658 Update.
8659 * gcore.c (call_target_sbrk): Update.
8660 * elfread.c (record_minimal_symbol, elf_symtab_read)
8661 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8662 (elf_gnu_ifunc_resolve_by_got): Update.
8663 * dwarf2/read.c (create_addrmap_from_index)
8664 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8665 (read_debug_names_from_section)
8666 (process_psymtab_comp_unit_reader, add_partial_symbol)
8667 (add_partial_subprogram, process_full_comp_unit)
8668 (read_file_scope, read_func_scope, read_lexical_block_scope)
8669 (read_call_site_scope, dwarf2_ranges_read)
8670 (dwarf2_record_block_ranges, dwarf2_add_field)
8671 (mark_common_block_symbol_computed, read_tag_pointer_type)
8672 (read_tag_string_type, dwarf2_init_float_type)
8673 (dwarf2_init_complex_target_type, read_base_type)
8674 (partial_die_info::read, partial_die_info::read)
8675 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8676 (dwarf2_fetch_die_loc_sect_off): Update.
8677 * dwarf2/loc.c (dwarf2_find_location_expression)
8678 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8679 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8680 (dwarf2_loc_desc_get_symbol_read_needs)
8681 (locexpr_describe_location_piece, locexpr_describe_location_1)
8682 (loclist_describe_location): Update.
8683 * dwarf2/index-write.c (write_debug_names): Update.
8684 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8685 * dtrace-probe.c (dtrace_process_dof): Update.
8686 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8687 (process_one_symbol): Update.
8688 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8689 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8690 (coff_read_enum_type): Update.
8691 * cli/cli-cmds.c (edit_command, list_command): Update.
8692 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8693 * breakpoint.c (create_overlay_event_breakpoint)
8694 (create_longjmp_master_breakpoint)
8695 (create_std_terminate_master_breakpoint)
8696 (create_exception_master_breakpoint, get_sal_arch): Update.
8697 * block.c (block_gdbarch): Update.
8698 * annotate.c (annotate_source_line): Update.
8699
0743fc83
TT
87002020-04-17 Tom Tromey <tromey@adacore.com>
8701
8702 * auto-load.c (show_auto_load_cmd): Remove.
8703 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8704 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8705 (maintenance_print_arc_command): Remove.
8706 * tui/tui-win.c (tui_command): Remove.
8707 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8708 * tui/tui-layout.c (tui_layout_command): Remove.
8709 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8710 * python/python.c (user_set_python, user_show_python): Remove.
8711 (_initialize_python): Use add_basic_prefix_cmd,
8712 add_show_prefix_cmd.
8713 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8714 (install_gdb_commands): Use add_basic_prefix_cmd,
8715 add_show_prefix_cmd.
8716 (info_guile_command): Remove.
8717 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8718 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8719 add_show_prefix_cmd.
8720 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8721 Remove do_set and do_show parameters.
8722 * cli/cli-style.c (set_style, show_style): Remove.
8723 (_initialize_cli_style): Use add_basic_prefix_cmd,
8724 add_show_prefix_cmd.
8725 (cli_style_option::add_setshow_commands): Remove do_set and
8726 do_show parameters.
8727 (cli_style_option::add_setshow_commands): Use
8728 add_basic_prefix_cmd, add_show_prefix_cmd.
8729 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8730 (set_style_name): Remove.
8731 * cli/cli-dump.c (dump_command, append_command): Remove.
8732 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8733 (tekhex_dump_command, binary_dump_command)
8734 (binary_append_command): Remove.
8735 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8736 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8737 (init_w32_command_list): Remove; move into ...
8738 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8739 * valprint.c (set_print, show_print, set_print_raw)
8740 (show_print_raw): Remove.
8741 (_initialize_valprint): Use add_basic_prefix_cmd,
8742 add_show_prefix_cmd.
8743 * typeprint.c (set_print_type, show_print_type): Remove.
8744 (_initialize_typeprint): Use add_basic_prefix_cmd,
8745 add_show_prefix_cmd.
8746 * record.c (set_record_command, show_record_command): Remove.
8747 (_initialize_record): Use add_basic_prefix_cmd,
8748 add_show_prefix_cmd.
8749 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8750 add_show_prefix_cmd.
8751 (info_command, show_command, set_debug, show_debug): Remove.
8752 * top.h (set_history, show_history): Don't declare.
8753 * top.c (set_history, show_history): Remove.
8754 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8755 (unset_tdesc_cmd): Remove.
8756 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8757 add_show_prefix_cmd.
8758 * symtab.c (info_module_command): Remove.
8759 (_initialize_symtab): Use add_basic_prefix_cmd.
8760 * symfile.c (overlay_command): Remove.
8761 (_initialize_symfile): Use add_basic_prefix_cmd.
8762 * sparc64-tdep.c (info_adi_command): Remove.
8763 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8764 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8765 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8766 add_show_prefix_cmd.
8767 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8768 (_initialize_serial): Use add_basic_prefix_cmd,
8769 add_show_prefix_cmd.
8770 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8771 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8772 add_show_prefix_cmd.
8773 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8774 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8775 add_show_prefix_cmd.
8776 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8777 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8778 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8779 add_show_prefix_cmd.
8780 * remote.c (remote_command, set_remote_cmd): Remove.
8781 (_initialize_remote): Use add_basic_prefix_cmd.
8782 * record-full.c (set_record_full_command)
8783 (show_record_full_command): Remove.
8784 (_initialize_record_full): Use add_basic_prefix_cmd,
8785 add_show_prefix_cmd.
8786 * record-btrace.c (cmd_set_record_btrace)
8787 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8788 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8789 (cmd_show_record_btrace_pt): Remove.
8790 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8791 add_show_prefix_cmd.
8792 * ravenscar-thread.c (set_ravenscar_command)
8793 (show_ravenscar_command): Remove.
8794 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8795 add_show_prefix_cmd.
8796 * mips-tdep.c (show_mips_command, set_mips_command)
8797 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8798 add_show_prefix_cmd.
8799 * maint.c (maintenance_command, maintenance_info_command)
8800 (maintenance_check_command, maintenance_print_command)
8801 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8802 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8803 add_show_prefix_cmd.
8804 (show_per_command_cmd): Remove.
8805 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8806 Remove.
8807 (maintenance_show_test_settings_cmd): Remove.
8808 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8809 add_show_prefix_cmd.
8810 * maint-test-options.c (maintenance_test_options_command):
8811 Remove.
8812 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8813 * macrocmd.c (macro_command): Remove
8814 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8815 * language.c (set_check, show_check): Remove.
8816 (_initialize_language): Use add_basic_prefix_cmd,
8817 add_show_prefix_cmd.
8818 * infcmd.c (unset_command): Remove.
8819 (_initialize_infcmd): Use add_basic_prefix_cmd.
8820 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8821 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8822 add_show_prefix_cmd.
8823 * go32-nat.c (go32_info_dos_command): Remove.
8824 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8825 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8826 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8827 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8828 (_initialize_frame): Use add_basic_prefix_cmd,
8829 add_show_prefix_cmd.
8830 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8831 (_initialize_dcache): Use add_basic_prefix_cmd,
8832 add_show_prefix_cmd.
8833 * cp-support.c (maint_cplus_command): Remove.
8834 (_initialize_cp_support): Use add_basic_prefix_cmd.
8835 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8836 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8837 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8838 add_basic_prefix_cmd, add_show_prefix_cmd.
8839 * breakpoint.c (save_command): Remove.
8840 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8841 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8842 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8843 add_show_prefix_cmd.
8844 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8845 (set_ada_command, show_ada_command): Remove.
8846 (_initialize_ada_language): Use add_basic_prefix_cmd,
8847 add_show_prefix_cmd.
8848 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8849
3557f442
KR
88502020-04-16 Kamil Rytarowski <n54@gmx.com>
8851
8852 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8853 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8854
16197208
SM
88552020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8856
8857 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8858 warning messages.
8859
00ac85d3
SM
88602020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8861
8862 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8863 import table is not at beginning of .idata section.
8864
381ce63f
PA
88652020-04-16 Pedro Alves <palves@redhat.com>
8866
8867 * inferior.c (delete_inferior): Use delete operator directly
8868 instead of delete_program_space.
8869 * progspace.c (add_program_space): New, factored out from
8870 program_space::program_space.
8871 (remove_program_space): New, factored out from
8872 delete_program_space.
8873 (program_space::program_space): Remove intro comment. Rewrite.
8874 (program_space::~program_space): Remove intro comment. Call
8875 remove_program_space.
8876 (delete_program_space): Delete.
8877 * progspace.h (program_space::program_space): Make explicit. Move
8878 intro comment here, adjusted.
8879 (program_space::~program_space): Move intro comment here,
8880 adjusted.
8881 (delete_program_space): Remove.
8882
a010605f
TT
88832020-04-16 Tom Tromey <tromey@adacore.com>
8884
8885 * windows-nat.c (windows_nat::handle_access_violation): New
8886 function.
8887 * nat/windows-nat.h (handle_access_violation): Declare.
8888 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8889 windows-nat.c. Call handle_access_violation.
8890
efba5c23
TV
88912020-04-16 Tom de Vries <tdevries@suse.de>
8892
8893 PR symtab/25791
8894 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8895 CUs without psymtab.
8896
97ed802d
KB
88972020-04-16 Kevin Buettner <kevinb@redhat.com>
8898
8899 * python/python.c (do_start_initialization): Don't call
8900 PyEval_InitThreads for Python 3.9 and beyond.
8901
c7d64809
KR
89022020-04-15 Kamil Rytarowski <n54@gmx.com>
8903
8904 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8905 thread functions.
8906 (obsd_nat_target::wait): Likewise.
8907
ce127a96
TT
89082020-04-15 Tom Tromey <tromey@adacore.com>
8909
8910 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8911 (DEBUG_EXCEPT): Use debug_printf.
8912
99f1bc6a
AB
89132020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8914
8915 * completer.c (class completion_tracker::completion_hash_entry)
8916 <hash_name>: New member function.
8917 (completion_tracker::discard_completions): New callback to hash a
8918 completion_hash_entry, pass this to htab_create_alloc.
8919
a0e9b532
JT
89202016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8921
8922 * windows-nat.c (windows_make_so): Warn rather than stopping with
8923 an error if realpath() fails.
8924
06ca5dd4
KR
89252020-04-14 Kamil Rytarowski <n54@gmx.com>
8926
8927 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8928 (nbsd_nat_target::info_proc): Add do_status.
8929
194d088f
TV
89302020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8931 Tom de Vries <tdevries@suse.de>
8932
8933 PR symtab/25718
8934 * psympriv.h (struct partial_symtab::read_symtab)
8935 (struct partial_symtab::expand_psymtab)
8936 (struct partial_symtab::read_dependencies): Update comments.
8937 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8938 read_symtab for includer.
8939 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8940 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8941 (struct dwarf2_include_psymtab::m_readin): Remove.
8942 (struct dwarf2_include_psymtab::includer): New member function.
8943 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8944
c1a66c06
TV
89452020-04-14 Tom de Vries <tdevries@suse.de>
8946
8947 PR symtab/25720
8948 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8949 with NULL symbol_matcher and lookup_name.
8950 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8951 and lookup_name.
8952 * dwarf2/read.c (dw2_expand_symtabs_matching)
8953 (dw2_debug_names_expand_symtabs_matching): Same.
8954 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8955 Make lookup_name a pointer. Update comment.
8956 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8957 lookup_name being a pointer.
8958 * symfile.c (expand_symtabs_matching): Same.
8959 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8960 * linespec.c (iterate_over_all_matching_symtabs): Same.
8961
400b5eca
TT
89622020-04-13 Tom Tromey <tom@tromey.com>
8963
8964 * run-on-main-thread.c: Update include.
8965 * unittests/main-thread-selftests.c: Update include.
8966 * tui/tui-win.c: Update include.
8967 * tui/tui-io.c: Update include.
8968 * tui/tui-interp.c: Update include.
8969 * tui/tui-hooks.c: Update include.
8970 * top.h: Update include.
8971 * top.c: Update include.
8972 * ser-base.c: Update include.
8973 * remote.c: Update include.
8974 * remote-notif.c: Update include.
8975 * remote-fileio.c: Update include.
8976 * record-full.c: Update include.
8977 * record-btrace.c: Update include.
8978 * python/python.c: Update include.
8979 * posix-hdep.c: Update include.
8980 * mingw-hdep.c: Update include.
8981 * mi/mi-main.c: Update include.
8982 * mi/mi-interp.c: Update include.
8983 * main.c: Update include.
8984 * linux-nat.c: Update include.
8985 * interps.c: Update include.
8986 * infrun.c: Update include.
8987 * inf-loop.c: Update include.
8988 * event-top.c: Update include.
8989 * event-loop.c: Move to ../gdbsupport/.
8990 * event-loop.h: Move to ../gdbsupport/.
8991 * async-event.h: Update include.
8992 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8993
93b54c8e
TT
89942020-04-13 Tom Tromey <tom@tromey.com>
8995
8996 * tui/tui-win.c: Include async-event.h.
8997 * remote.c: Include async-event.h.
8998 * remote-notif.c: Include async-event.h.
8999 * record-full.c: Include async-event.h.
9000 * record-btrace.c: Include async-event.h.
9001 * infrun.c: Include async-event.h.
9002 * event-top.c: Include async-event.h.
9003 * event-loop.h: Move some declarations to async-event.h.
9004 * event-loop.c: Don't include ser-event.h or top.h. Move some
9005 code to async-event.c.
9006 * async-event.h: New file.
9007 * async-event.c: New file.
9008 * Makefile.in (COMMON_SFILES): Add async-event.c.
9009 (HFILES_NO_SRCDIR): Add async-event.h.
9010
c1cd3163
TT
90112020-04-13 Tom Tromey <tom@tromey.com>
9012
9013 * utils.c (flush_streams): New function.
9014 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9015
29f2bf4f
TT
90162020-04-13 Tom Tromey <tom@tromey.com>
9017
9018 * event-loop.c (handle_file_event): Use warning, not
9019 printf_unfiltered.
9020
98029d02
TT
90212020-04-13 Tom Tromey <tom@tromey.com>
9022
9023 * event-loop.c: Include <chrono>.
9024
06cc9596
TT
90252020-04-13 Tom Tromey <tom@tromey.com>
9026
9027 * gdb_select.h: Move to ../gdbsupport/.
9028 * event-loop.c: Update include path.
9029 * top.c: Update include path.
9030 * ser-base.c: Update include path.
9031 * ui-file.c: Update include path.
9032 * ser-tcp.c: Update include path.
9033 * guile/scm-ports.c: Update include path.
9034 * posix-hdep.c: Update include path.
9035 * ser-unix.c: Update include path.
9036 * gdb_usleep.c: Update include path.
9037 * mingw-hdep.c: Update include path.
9038 * inflow.c: Update include path.
9039 * infrun.c: Update include path.
9040 * event-top.c: Update include path.
9041
8ae8e197
TT
90422020-04-13 Tom Tromey <tom@tromey.com>
9043
9044 * configure: Rebuild.
9045 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9046
58cf28e8
TT
90472020-04-13 Tom Tromey <tom@tromey.com>
9048
9049 * event-loop.h (start_event_loop): Don't declare.
9050 * event-loop.c (start_event_loop): Move...
9051 * main.c (start_event_loop): ...here. Now static.
9052
b7f999ae
SDJ
90532020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9054
9055 * MAINTAINERS: Update my email address.
9056
1085dfd4
KR
90572020-04-12 Kamil Rytarowski <n54@gmx.com>
9058
9059 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9060 IP_ALL.
9061
49d1d1f5
KR
90622020-04-12 Kamil Rytarowski <n54@gmx.com>
9063
9064 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9065 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9066
b4848d2a
KR
90672020-04-12 Kamil Rytarowski <n54@gmx.com>
9068
9069 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9070 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9071
51c133d5
KR
90722020-04-12 Kamil Rytarowski <n54@gmx.com>
9073
9074 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9075
54b8cbd0
KR
90762020-04-11 Kamil Rytarowski <n54@gmx.com>
9077
9078 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9079 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9080 (nbsd_nat_target::info_proc): New functions.
9081 * nbsd-nat.c (kinfo_get_vmmap): New function.
9082 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9083 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9084 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9085 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9086 functions.
9087 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9088 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9089 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9090 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9091 (KINFO_VME_FLAG_GROWS_DOWN): New.
9092
cf83625d
AS
90932020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9094
9095 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9096 bit shift.
9097
0c4311ab
TT
90982020-04-10 Tom Tromey <tromey@adacore.com>
9099
9100 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9101
3e65b3e9
TT
91022020-04-10 Tom Tromey <tromey@adacore.com>
9103
9104 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9105 separate debug files.
9106
13302e95
HD
91072020-04-10 Hannes Domani <ssbssa@yahoo.de>
9108
9109 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9110 Move to...
9111 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9112 ... here.
9113 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9114 Check for STATUS_WX86_BREAKPOINT.
9115 (windows_nat_target::wait): Same.
9116
bdfc1e8a
TV
91172020-04-10 Tom de Vries <tdevries@suse.de>
9118
9119 PR cli/25808
9120 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9121
f4460aec
SM
91222020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9123
9124 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9125 (Write After Approval): Remove Tom de Vries.
9126
a25198bb
BE
91272020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9128
9129 revert partially:
9130 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9131
aac66a4c
SM
9132 * buildsym.c (record_line): Fix undefined behavior and preserve
9133 lines at eof.
a25198bb 9134
206c98a6
KR
91352020-04-09 Kamil Rytarowski <n54@gmx.com>
9136
9137 * auxv.h (svr4_auxv_parse): New.
9138 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9139 and generic_auxv_parse.
9140 (svr4_auxv_parse): Add.
9141 * obsd-tdep.c: Include "auxv.h".
9142 (obsd_auxv_parse): Remove.
9143 (obsd_init_abi): Remove comment.
9144 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9145 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9146 * nbsd-tdep.c: Include "auxv.h".
9147 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9148
71fbdbaf
TT
91492020-04-08 Tom Tromey <tromey@adacore.com>
9150
9151 * nat/windows-nat.h (last_wait_event): Don't declare.
9152 (wait_for_debug_event): Update comment.
9153 * nat/windows-nat.c (last_wait_event): Now static.
9154
2c1d95e8
TT
91552020-04-08 Tom Tromey <tromey@adacore.com>
9156
9157 * windows-nat.c (wait_for_debug_event): Move to
9158 nat/windows-nat.c.
9159 * nat/windows-nat.h (wait_for_debug_event): Declare.
9160 * nat/windows-nat.c (wait_for_debug_event): Move from
9161 windows-nat.c. No longer static.
9162
d2977bc4
TT
91632020-04-08 Tom Tromey <tromey@adacore.com>
9164
9165 * windows-nat.c (get_windows_debug_event): Use
9166 fetch_pending_stop.
9167 * nat/windows-nat.h (fetch_pending_stop): Declare.
9168 * nat/windows-nat.c (fetch_pending_stop): New function.
9169
e758e19c
TT
91702020-04-08 Tom Tromey <tromey@adacore.com>
9171
9172 * windows-nat.c (windows_continue): Use matching_pending_stop and
9173 continue_last_debug_event.
9174 * nat/windows-nat.h (matching_pending_stop)
9175 (continue_last_debug_event): Declare.
9176 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9177 (matching_pending_stop, continue_last_debug_event): New
9178 functions.
9179
8d30e395
TT
91802020-04-08 Tom Tromey <tromey@adacore.com>
9181
9182 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9183 (handle_exception_result): Move to nat/windows-nat.h.
9184 (DEBUG_EXCEPTION_SIMPLE): Remove.
9185 (windows_nat::handle_ms_vc_exception): New function.
9186 (handle_exception): Move to nat/windows-nat.c.
9187 (get_windows_debug_event): Update.
9188 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9189 nat/windows-nat.c.
9190 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9191 (handle_exception_result): Move from windows-nat.c.
9192 (handle_exception): Declare.
9193 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9194 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9195 windows-nat.c.
9196
29de418d
TT
91972020-04-08 Tom Tromey <tromey@adacore.com>
9198
9199 * windows-nat.c (exception_count, event_count): Remove.
9200 (handle_exception, get_windows_debug_event)
9201 (do_initial_windows_stuff): Update.
9202
a816ba18
TT
92032020-04-08 Tom Tromey <tromey@adacore.com>
9204
9205 * windows-nat.c (windows_nat::handle_load_dll)
9206 (windows_nat::handle_unload_dll): Rename. No longer static.
9207 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9208 Declare.
9209
a00caa12
TT
92102020-04-08 Tom Tromey <tromey@adacore.com>
9211
9212 * complaints.h (stop_whining): Declare at top-level.
9213 (complaint): Don't declare stop_whining.
9214
d41b524f
TT
92152020-04-08 Tom Tromey <tromey@adacore.com>
9216
9217 * windows-nat.c (windows_nat::handle_output_debug_string):
9218 Rename. No longer static.
9219 * nat/windows-nat.h (handle_output_debug_string): Declare.
9220
3c76026d
TT
92212020-04-08 Tom Tromey <tromey@adacore.com>
9222
9223 * windows-nat.c (current_process_handle, current_process_id)
9224 (main_thread_id, last_sig, current_event, last_wait_event)
9225 (current_windows_thread, desired_stop_thread_id, pending_stops)
9226 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9227 (display_selectors, fake_create_process)
9228 (get_windows_debug_event): Update.
9229 * nat/windows-nat.h (current_process_handle, current_process_id)
9230 (main_thread_id, last_sig, current_event, last_wait_event)
9231 (current_windows_thread, desired_stop_thread_id, pending_stops)
9232 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9233 * nat/windows-nat.c (current_process_handle, current_process_id)
9234 (main_thread_id, last_sig, current_event, last_wait_event)
9235 (current_windows_thread, desired_stop_thread_id, pending_stops)
9236 (siginfo_er): New globals. Move from windows-nat.c.
9237
9d8679cc
TT
92382020-04-08 Tom Tromey <tromey@adacore.com>
9239
9240 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9241 (handle_load_dll): Update.
9242 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9243
28688adf
TT
92442020-04-08 Tom Tromey <tromey@adacore.com>
9245
9246 * windows-nat.c (enum thread_disposition_type): Move to
9247 nat/windows-nat.h.
9248 (windows_nat::thread_rec): Rename from thread_rec. No longer
9249 static.
9250 (windows_add_thread, windows_nat_target::fetch_registers)
9251 (windows_nat_target::store_registers, handle_exception)
9252 (windows_nat_target::resume, get_windows_debug_event)
9253 (windows_nat_target::get_tib_address)
9254 (windows_nat_target::thread_name)
9255 (windows_nat_target::thread_alive): Update.
9256 * nat/windows-nat.h (enum thread_disposition_type): Move from
9257 windows-nat.c.
9258 (thread_rec): Declare.
9259
4834dad0
TT
92602020-04-08 Tom Tromey <tromey@adacore.com>
9261
9262 * windows-nat.c: Add "using namespace".
9263 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9264 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9265
65bafd5b
TT
92662020-04-08 Tom Tromey <tromey@adacore.com>
9267
9268 * nat/windows-nat.h (struct windows_thread_info): Declare
9269 destructor.
9270 * nat/windows-nat.c (~windows_thread_info): New.
9271
0a4afda3
TT
92722020-04-08 Tom Tromey <tromey@adacore.com>
9273
9274 PR gdb/22992
9275 * windows-nat.c (current_event): Update comment.
9276 (last_wait_event, desired_stop_thread_id): New globals.
9277 (struct pending_stop): New.
9278 (pending_stops): New global.
9279 (windows_nat_target) <stopped_by_sw_breakpoint>
9280 <supports_stopped_by_sw_breakpoint>: New methods.
9281 (windows_fetch_one_register): Add assertions. Adjust PC.
9282 (windows_continue): Handle pending stops. Suspend other threads
9283 when stepping. Use last_wait_event
9284 (wait_for_debug_event): New function.
9285 (get_windows_debug_event): Use wait_for_debug_event. Handle
9286 pending stops. Queue spurious stops.
9287 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9288 (windows_nat_target::kill): Use wait_for_debug_event.
9289 * nat/windows-nat.h (struct windows_thread_info)
9290 <stopped_at_software_breakpoint>: New field.
9291 * nat/windows-nat.c (windows_thread_info::resume): Clear
9292 stopped_at_software_breakpoint.
9293
8e61ebec
TT
92942020-04-08 Tom Tromey <tromey@adacore.com>
9295
9296 * windows-nat.c (enum thread_disposition_type): New.
9297 (thread_rec): Replace "get_context" parameter with "disposition";
9298 change type.
9299 (windows_add_thread, windows_nat_target::fetch_registers)
9300 (windows_nat_target::store_registers, handle_exception)
9301 (windows_nat_target::resume, get_windows_debug_event)
9302 (windows_nat_target::get_tib_address)
9303 (windows_nat_target::thread_name)
9304 (windows_nat_target::thread_alive): Update.
9305
98a03287
TT
93062020-04-08 Tom Tromey <tromey@adacore.com>
9307
9308 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9309 (windows_continue): Use windows_continue::resume.
9310 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9311 resume>: Declare new methods.
9312 * nat/windows-nat.c: New file.
9313 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9314
7c7411bc
TT
93152020-04-08 Tom Tromey <tromey@adacore.com>
9316
9317 * windows-nat.c (windows_add_thread, windows_delete_thread)
9318 (windows_nat_target::fetch_registers)
9319 (windows_nat_target::store_registers, fake_create_process)
9320 (windows_nat_target::resume, windows_nat_target::resume)
9321 (get_windows_debug_event, windows_nat_target::wait)
9322 (windows_nat_target::pid_to_str)
9323 (windows_nat_target::get_tib_address)
9324 (windows_nat_target::get_ada_task_ptid)
9325 (windows_nat_target::thread_name)
9326 (windows_nat_target::thread_alive): Use lwp, not tid.
9327
2950fdf7
TT
93282020-04-08 Tom Tromey <tromey@adacore.com>
9329
9330 * windows-nat.c (handle_exception)
9331 (windows_nat_target::thread_name): Update.
9332 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9333 <name>: Now unique_xmalloc_ptr.
9334
62fe396b
TT
93352020-04-08 Tom Tromey <tromey@adacore.com>
9336
9337 * windows-nat.c (thread_rec)
9338 (windows_nat_target::fetch_registers): Update.
9339 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9340 Update comment.
9341 <debug_registers_changed, reload_context>: Now bool.
9342
e9534bd2
TT
93432020-04-08 Tom Tromey <tromey@adacore.com>
9344
9345 * windows-nat.c (windows_add_thread): Use new.
9346 (windows_init_thread_list, windows_delete_thread): Use delete.
9347 (get_windows_debug_event): Update.
9348 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9349 destructor, and initializers.
9350
ae1f8880
TT
93512020-04-08 Tom Tromey <tromey@adacore.com>
9352
9353 * windows-nat.c (struct windows_thread_info): Remove.
9354 * nat/windows-nat.h: New file.
9355
55a1e039
TT
93562020-04-08 Tom Tromey <tromey@adacore.com>
9357
9358 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9359 (thread_rec, windows_add_thread, windows_delete_thread)
9360 (windows_continue): Update.
9361
93366324
TT
93622020-04-08 Tom Tromey <tromey@adacore.com>
9363
9364 * windows-nat.c (struct windows_thread_info): Remove typedef.
9365 (thread_head): Remove.
9366 (thread_list): New global.
9367 (thread_rec, windows_add_thread, windows_init_thread_list)
9368 (windows_delete_thread, windows_continue): Update.
9369
0f2265e2
SM
93702020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9371
9372 * windows-tdep.h (windows_init_abi): Add comment.
9373 (cygwin_init_abi): New declaration.
9374 * windows-tdep.c: Split signal enumeration in two, one for
9375 Windows and one for Cygwin.
9376 (windows_gdb_signal_to_target): Only deal with signal of the
9377 Windows OS ABI.
9378 (cygwin_gdb_signal_to_target): New function.
9379 (windows_init_abi): Rename to windows_init_abi_common, don't set
9380 gdb_signal_to_target gdbarch method. Add new new function with
9381 this name.
9382 (cygwin_init_abi): New function.
9383 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9384 comment. Don't call windows_init_abi.
9385 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9386 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9387 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9388 i386_windows_init_abi_common, don't call windows_init_abi. Add
9389 a new function of this name.
9390 (i386_cygwin_init_abi): New function.
9391 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9392 OS ABI Cygwin.
9393
3810f182
SM
93942020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9395
9396 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9397 parameter.c.
9398 (dwarf2_read_gdb_index): Update.
9399
063f8e80
KR
94002020-04-07 Kamil Rytarowski <n54@gmx.com>
9401
9402 * nbsd-tdep.c: Include "objfiles.h".
9403 (nbsd_skip_solib_resolver): New.
9404 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9405
85a9510c 94062020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9407
9408 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9409 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9410 with DW_LLE_base_addressx are being emitted in DWARFv5.
9411 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9412 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9413 unsigned integer.
9414
9fc3eaae 94152020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9416
9417 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9418 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9419 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9420 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9421 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9422 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9423 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9424
9425
41144253 94262020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9427
9428 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9429 (read_loclist_index): New function definition.
9430 (lookup_loclist_base): New function definition.
9431 (read_loclist_header): New function definition.
9432 (dwarf2_cu): Add loclist_base and loclist_header field.
9433 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9434 (read_full_die_1): Read the value of DW_AT_loclists_base.
9435 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9436 (read_attribute_value): Handle DW_FORM_loclistx.
9437 (skip_one_die): Handle DW_FORM_loclistx.
9438 (loclist_header): New structure declaration.
9439 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9440
9f4e76a4
SM
94412020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9442
9443 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9444 constructor. Remove `addr` parameter from other constructor and
9445 add `per_cu` parameter.
9446 * dwarf2/read.c (create_partial_symtab): Update.
9447
25c11aca
TV
94482020-04-07 Tom de Vries <tdevries@suse.de>
9449
9450 PR symtab/25796
9451 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9452 (partial_die_info::fixup): Inherit has_const_value.
9453
5707e24b
TV
94542020-04-07 Tom de Vries <tdevries@suse.de>
9455
9456 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9457 symbols without address.
9458
05f00e22
KR
94592020-04-06 Kamil Rytarowski <n54@gmx.com>
9460
9461 * nbsd-nat.h (struct thread_info): Add forward declaration.
9462 (nbsd_nat_target::thread_alive): Add.
9463 (nbsd_nat_target::thread_name): Likewise.
9464 (nbsd_nat_target::update_thread_list): Likewise.
9465 (update_thread_list::post_attach): Likewise.
9466 (post_attach::pid_to_str): Likewise.
9467 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9468 (nbsd_thread_lister): Add.
9469 (nbsd_nat_target::thread_alive): Likewise.
9470 (nbsd_nat_target::thread_name): Likewise.
9471 (nbsd_add_threads): Likewise.
9472 (update_thread_list::post_attach): Likewise.
9473 (nbsd_nat_target::update_thread_list): Likewise.
9474 (post_attach::pid_to_str): Likewise.
9475
6ee448cc
TT
94762020-04-06 Tom Tromey <tromey@adacore.com>
9477
9478 * ada-valprint.c (print_variant_part): Extract the variant field.
9479 (print_field_values): Use the field as the outer value when
9480 recursing.
9481
dea34e8c
TT
94822020-04-06 Tom Tromey <tromey@adacore.com>
9483
9484 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9485 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9486 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9487 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9488 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9489
93689ce9
TT
94902020-04-06 Tom Tromey <tromey@adacore.com>
9491
9492 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9493 TYPE_CODE_ERROR.
9494
79743962
KR
94952020-04-06 Kamil Rytarowski <n54@gmx.com>
9496
9497 * nbsd-tdep.c: Include "gdbarch.h".
9498 Define enum with NetBSD signal numbers.
9499 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9500 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9501 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9502 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9503 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9504 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9505 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9506 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9507 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9508 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9509 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9510 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9511
9e7c9a03
HD
95122020-04-03 Hannes Domani <ssbssa@yahoo.de>
9513
9514 PR gdb/25325
9515 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9516
d9e49b61
TT
95172020-04-03 Tom Tromey <tromey@adacore.com>
9518
9519 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9520 Read constant block.
9521
e0fc5c3f
SM
95222020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9523
9524 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9525 (gdb_bfd_get_full_section_contents): New declaration.
9526 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9527 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9528 gdb_bfd_get_full_section_contents.
9529
e2ff18a0
SM
95302020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9531
9532 * exec.c (build_section_table): Replace internal_error with
9533 gdb_assert.
9534 (section_table_xfer_memory_partial): Likewise.
9535 * mdebugread.c (parse_partial_symbols): Likewise.
9536 * psymtab.c (lookup_partial_symbol): Likewise.
9537 * utils.c (wrap_here): Likewise.
9538
0830d301
TT
95392020-04-02 Tom Tromey <tromey@adacore.com>
9540
9541 * f-lang.c (build_fortran_types): Use arch_type to initialize
9542 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9543
e7da7f8f
TT
95442020-04-02 Tom Tromey <tromey@adacore.com>
9545
9546 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9547 of attributes.
9548
c90d28ac
AB
95492020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9550 Bernd Edlinger <bernd.edlinger@hotmail.de>
9551 Tom Tromey <tromey@adacore.com>
9552
9553 * buildsym.c (buildsym_compunit::record_line): Remove
9554 deduplication code.
9555
1aa98955
TV
95562020-04-02 Tom de Vries <tdevries@suse.de>
9557
9558 PR ada/24671
9559 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9560
d3214198
TV
95612020-04-02 Tom de Vries <tdevries@suse.de>
9562
9563 * dwarf2/read.c (dwarf2_gdb_index_functions,
9564 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9565 NULL.
9566 * psymtab.c (psym_lookup_global_symbol_language): New function.
9567 (psym_functions): Init psym_lookup_global_symbol_language with
9568 psym_lookup_global_symbol_language.
9569 * symfile-debug.c (debug_sym_quick_functions): Init
9570 lookup_global_symbol_language with NULL.
9571 * symfile.c (set_initial_language): Remove fixme comment.
9572 * symfile.h (struct quick_symbol_functions): Add
9573 lookup_global_symbol_language.
9574 * symtab.c (find_quick_global_symbol_language): New function.
9575 (find_main_name): Use find_quick_global_symbol_language.
9576
2836752f
SM
95772020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9578
9579 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9580
64dc2d4b
BE
95812020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9582
9583 * buildsym.c (record_line): Fix undefined behavior and preserve
9584 lines at eof.
9585
bbe3dc41
BE
95862020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9587
9588 * buildsym.c (record_line): Fix the resizing condition.
9589
6b4a335b
TT
95902020-04-01 Tom Tromey <tom@tromey.com>
9591
9592 * value.h (value_literal_complex): Add comment.
9593 * valops.c (value_literal_complex): Refer to value.h.
9594
3638a098
TT
95952020-04-01 Tom Tromey <tom@tromey.com>
9596
9597 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9598 (scalar_type): New rule, from typebase.
9599 (typebase): Use scalar_type. Recognize complex types.
9600 (field_name): Handle FLOAT_KEYWORD.
9601 (ident_tokens): Add _Complex and __complex__.
9602
c34e8714
TT
96032020-04-01 Tom Tromey <tom@tromey.com>
9604
9605 PR exp/25299:
9606 * valarith.c (promotion_type, complex_binop): New functions.
9607 (scalar_binop): Handle complex numbers. Use promotion_type.
9608 (value_pos, value_neg, value_complement): Handle complex numbers.
9609
fa649bb7
TT
96102020-04-01 Tom Tromey <tom@tromey.com>
9611
9612 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9613 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9614 (parse_number): Handle complex numbers.
9615
981c08ce
TT
96162020-04-01 Tom Tromey <tom@tromey.com>
9617
9618 * c-valprint.c (c_decorations): Change complex suffix to "i".
9619
4c99290d
TT
96202020-04-01 Tom Tromey <tom@tromey.com>
9621
9622 * valprint.c (generic_value_print_complex): Use accessors.
9623 * value.h (value_real_part, value_imaginary_part): Declare.
9624 * valops.c (value_real_part, value_imaginary_part): New
9625 functions.
9626 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9627
5b930b45
TT
96282020-04-01 Tom Tromey <tom@tromey.com>
9629
9630 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9631 (read_range_type): Update.
9632 * mdebugread.c (basic_type): Update.
9633 * go-lang.c (build_go_types): Use init_complex_type.
9634 * gdbtypes.h (struct main_type) <complex_type>: New member.
9635 (init_complex_type): Update.
9636 (arch_complex_type): Don't declare.
9637 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9638 Make name if none given. Use alloc_type_copy. Look for cached
9639 complex type.
9640 (arch_complex_type): Remove.
9641 (gdbtypes_post_init): Use init_complex_type.
9642 * f-lang.c (build_fortran_types): Use init_complex_type.
9643 * dwarf2/read.c (read_base_type): Update.
9644 * d-lang.c (build_d_types): Use init_complex_type.
9645 * ctfread.c (read_base_type): Update.
9646
53cccef1
TBA
96472020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9648
9649 * infrun.c (stop_all_threads): Update assertion, plus when
9650 stopping threads, take into account that we might be trying
9651 to stop an all-stop target.
9652 (stop_waiting): Call 'stop_all_threads' if there exists a
9653 non-stop target.
9654
a0714d30
TBA
96552020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9656
9657 * target.h (exists_non_stop_target): New function declaration.
9658 * target.c (exists_non_stop_target): New function.
9659
60e22c1e
HD
96602020-04-01 Hannes Domani <ssbssa@yahoo.de>
9661
9662 PR gdb/24789
9663 * eval.c (is_integral_or_integral_reference): New function.
9664 (evaluate_subexp_standard): Allow integer references in
9665 pointer arithmetic.
9666
e139a727
TBA
96672020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9668
9669 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9670 check for no ptid in the stop reply when the target is non-stop.
9671
e0802d59
TT
96722020-04-01 Tom Tromey <tromey@adacore.com>
9673
9674 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9675 "name" parameter to rvalue reference. Initialize m_name_holder.
9676 <lookup_name_info>: New overloads.
9677 <name>: Return gdb::string_view.
9678 <c_str>: New method.
9679 <make_ignore_params>: Update.
9680 <search_name_hash>: Update.
9681 <language_lookup_name>: Return const char *.
9682 <m_name>: Change type.
9683 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9684 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9685 (lookup_name_info::match_any): Update.
9686 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9687 Update.
9688 * minsyms.c (linkage_name_str): Update.
9689 * language.c (default_symbol_name_matcher): Update.
9690 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9691 Update.
9692 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9693 (ada_lookup_name_info::ada_lookup_name_info): Update.
9694 (literal_symbol_name_matcher): Update.
9695
8c072cb6
TT
96962020-04-01 Tom Tromey <tromey@adacore.com>
9697
9698 * psymtab.c (psymtab_search_name): Remove function.
9699 (psym_lookup_symbol): Create search name and lookup name here.
9700 (lookup_partial_symbol): Remove "name" parameter; add
9701 lookup_name.
9702 (psym_expand_symtabs_for_function): Update.
9703
6f29a534
TT
97042020-03-31 Joel Jones <joelkevinjones@gmail.com>
9705
9706 PR tui/25597:
9707 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9708
af62665e
TT
97092020-03-31 Tom Tromey <tromey@adacore.com>
9710
9711 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9712 memcpy.
9713
d1a89da5
NC
97142020-03-30 Nelson Chu <nelson.chu@sifive.com>
9715
9716 * features/riscv/32bit-csr.xml: Regenerated.
9717 * features/riscv/64bit-csr.xml: Regenerated.
9718
d8af9068
TT
97192020-03-30 Tom Tromey <tromey@adacore.com>
9720
9721 * ada-valprint.c (print_variant_part): Update.
9722 * ada-lang.h (ada_which_variant_applies): Update.
9723 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9724 outer_valaddr parameters; replace with "outer" value parameter.
9725 (to_fixed_variant_branch_type): Update.
9726
227c0bf4
PFC
97272020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9728
9729 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9730 <list>. Remove inclusion of observable.h.
9731 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9732 (struct arch_lwp_info): New struct.
9733 (class ppc_linux_dreg_interface): New class.
9734 (struct ppc_linux_process_info): New struct.
9735 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9736 <low_new_clone, low_forget_process, low_prepare_to_resume>
9737 <copy_thread_dreg_state, mark_thread_stale>
9738 <mark_debug_registers_changed, register_hw_breakpoint>
9739 <clear_hw_breakpoint, register_wp, clear_wp>
9740 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9741 <num_memory_accesses, get_trigger_type>
9742 <create_watchpoint_request, hwdebug_point_cmp>
9743 <init_arch_lwp_info, get_arch_lwp_info>
9744 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9745 methods.
9746 <struct ptid_hash>: New inner struct.
9747 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9748 members.
9749 (saved_dabr_value, hwdebug_info, max_slots_number)
9750 (struct hw_break_tuple, struct thread_points, ppc_threads)
9751 (have_ptrace_hwdebug_interface)
9752 (hwdebug_find_thread_points_by_tid)
9753 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9754 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9755 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9756 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9757 use m_dreg_interface.
9758 (hwdebug_point_cmp): Change to...
9759 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9760 reference arguments instead of pointers.
9761 (ppc_linux_nat_target::ranged_break_num_registers): Use
9762 m_dreg_interface.
9763 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9764 m_dreg_interface. Call register_hw_breakpoint.
9765 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9766 m_dreg_interface. Call clear_hw_breakpoint.
9767 (get_trigger_type): Change to...
9768 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9769 comment.
9770 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9771 use m_dreg_interface. Call register_hw_breakpoint.
9772 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9773 use m_dreg_interface. Call clear_hw_breakpoint.
9774 (can_use_watchpoint_cond_accel): Change to...
9775 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9776 method. Update comment, use m_dreg_interface and
9777 m_process_info.
9778 (calculate_dvc): Change to...
9779 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9780 m_dreg_interface.
9781 (num_memory_accesses): Change to...
9782 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9783 (check_condition): Change to...
9784 (ppc_linux_nat_target::check_condition): ...this method.
9785 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9786 comment, use m_dreg_interface.
9787 (create_watchpoint_request): Change to...
9788 (ppc_linux_nat_target::create_watchpoint_request): ...this
9789 method. Use m_dreg_interface.
9790 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9791 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9792 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9793 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9794 (ppc_linux_nat_target::low_forget_process)
9795 (ppc_linux_nat_target::low_new_fork)
9796 (ppc_linux_nat_target::low_new_clone)
9797 (ppc_linux_nat_target::low_delete_thread)
9798 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9799 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9800 only call mark_thread_stale.
9801 (ppc_linux_thread_exit): Remove.
9802 (ppc_linux_nat_target::stopped_data_address): Change to...
9803 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9804 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9805 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9806 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9807 comment. Call low_stopped_data_address.
9808 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9809 m_dreg_interface.
9810 (ppc_linux_nat_target::masked_watch_num_registers): Use
9811 m_dreg_interface.
9812 (ppc_linux_nat_target::copy_thread_dreg_state)
9813 (ppc_linux_nat_target::mark_thread_stale)
9814 (ppc_linux_nat_target::mark_debug_registers_changed)
9815 (ppc_linux_nat_target::register_hw_breakpoint)
9816 (ppc_linux_nat_target::clear_hw_breakpoint)
9817 (ppc_linux_nat_target::register_wp)
9818 (ppc_linux_nat_target::clear_wp)
9819 (ppc_linux_nat_target::init_arch_lwp_info)
9820 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9821 (_initialize_ppc_linux_nat): Remove observer callback.
9822
4db10d8f
PFC
98232020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9824
9825 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9826 (ppc_linux_nat_target::auxv_parse)
9827 (ppc_linux_nat_target::read_description)
9828 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9829 Move up.
9830
1310c1b0
PFC
98312020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9832
9833 * linux-nat.h (low_new_clone): New method.
9834 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9835
69b037c3
SM
98362020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9837
9838 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9839 (dbx_expand_psymtab): ... this.
9840 (start_psymtab): Update.
9841 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9842 (mdebug_expand_psymtab): ... this.
9843 (parse_partial_symbols): Update.
9844 (new_psymtab): Update.
9845 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9846 (xcoff_expand_psymtab): ... this.
9847 (xcoff_start_psymtab): Update.
9848
48993951
SM
98492020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9850
9851 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9852 <expand_dependencies>: ... this.
9853 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9854 (partial_symtab::expand_dependencies): ... this.
9855 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9856 Update.
9857 (dwarf2_psymtab::expand_psymtab): Update.
9858 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9859 * mdebugread.c (psymtab_to_symtab_1): Update.
9860 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9861
3ad83046
SM
98622020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9863
9864 * psympriv.h (discard_psymtab): Remove.
9865 * dbxread.c (dbx_end_psymtab): Update.
9866 * xcoffread.c (xcoff_end_psymtab): Update.
9867
4d1b9ab6
TT
98682020-03-28 Tom Tromey <tom@tromey.com>
9869
9870 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9871 comment.
9872
f1749218
TT
98732020-03-28 Tom Tromey <tom@tromey.com>
9874
9875 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9876
ebea7626
HD
98772020-03-27 Hannes Domani <ssbssa@yahoo.de>
9878
9879 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9880
a879b4d5
JB
98812020-03-26 John Baldwin <jhb@FreeBSD.org>
9882
9883 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9884
0826b30a
TT
98852020-03-26 Tom Tromey <tom@tromey.com>
9886
9887 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9888 (mark_common_block_symbol_computed, read_tag_string_type)
9889 (attr_to_dynamic_prop, read_subrange_type): Update.
9890 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9891 to be methods on struct attribute.
9892 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9893 (read_call_site_scope, partial_die_info::read)
9894 (partial_die_info::read, lookup_die_type, follow_die_ref):
9895 Update.
9896 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9897 from dwarf2_get_ref_die_offset.
9898 (attribute::constant_value): New method, from
9899 dwarf2_get_attr_constant_value.
9900 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9901 Declare method.
9902 <constant_value>: New method.
9903
2b2558bf
TT
99042020-03-26 Tom Tromey <tom@tromey.com>
9905
9906 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9907 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9908 (dwarf_type_encoding_name): Move to stringify.c.
9909 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9910 * dwarf2/stringify.c: New file.
9911 * dwarf2/stringify.h: New file.
9912
eeb64781
TT
99132020-03-26 Tom Tromey <tom@tromey.com>
9914
9915 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9916 Rewrite.
9917
a39fdb41
TT
99182020-03-26 Tom Tromey <tom@tromey.com>
9919
9920 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9921 methods.
9922 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9923 (lookup_ranges_base): Likewise.
9924 (read_cutu_die_from_dwo, read_full_die_1): Update.
9925
436c571c
TT
99262020-03-26 Tom Tromey <tom@tromey.com>
9927
9928 * dwarf2/read.c (read_import_statement, read_file_scope)
9929 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9930 (read_lexical_block_scope, read_call_site_scope)
9931 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9932 (handle_struct_member_die, process_structure_scope)
9933 (update_enumeration_type_from_children)
9934 (process_enumeration_scope, read_array_type, read_common_block)
9935 (read_namespace, read_module, read_subroutine_type): Update.
9936 (sibling_die): Remove.
9937
052c8bb8
TT
99382020-03-26 Tom Tromey <tom@tromey.com>
9939
9940 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9941 (build_type_psymtabs_reader, read_structure_type)
9942 (read_enumeration_type, read_full_die_1): Update.
9943 (dwarf2_attr_no_follow): Move to die.h.
9944 * dwarf2/die.h (struct die_info) <attr>: New method.
9945
2b24b6e4
TT
99462020-03-26 Tom Tromey <tom@tromey.com>
9947
9948 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9949 <base_address>: Now an optional.
9950 (dwarf2_find_base_address, dwarf2_rnglists_process)
9951 (dwarf2_ranges_process, fill_in_loclist_baton)
9952 (dwarf2_symbol_mark_computed): Update.
9953
c2d50fd0
TT
99542020-03-26 Tom Tromey <tom@tromey.com>
9955
9956 * dwarf2/read.c (struct die_info): Move to die.h.
9957 * dwarf2/die.h: New file.
9958
0df7ad3a
TT
99592020-03-26 Tom Tromey <tom@tromey.com>
9960
9961 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9962 * dwarf2/read.c
9963 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9964 Move to line-header.c.
9965 (read_checked_initial_length_and_offset, read_formatted_entries):
9966 Likewise.
9967 (dwarf_decode_line_header): Split into two.
9968 * dwarf2/line-header.c
9969 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9970 Move from read.c.
9971 (read_checked_initial_length_and_offset, read_formatted_entries):
9972 Likewise.
9973 (dwarf_decode_line_header): New function, split from read.c.
9974
86c0bb4c
TT
99752020-03-26 Tom Tromey <tom@tromey.com>
9976
9977 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9978 Declare method.
9979 * dwarf2/read.c (read_attribute_value): Update.
9980 (dwarf2_per_objfile::read_line_string): Rename from
9981 read_indirect_line_string.
9982 (read_formatted_entries): Update.
9983
2ef46c2f
TT
99842020-03-26 Tom Tromey <tom@tromey.com>
9985
9986 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9987 variable.
9988
4f9c1eda
TT
99892020-03-26 Tom Tromey <tom@tromey.com>
9990
9991 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9992 const.
9993 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9994 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9995 parameter const.
9996
5a0e026f
TT
99972020-03-26 Tom Tromey <tom@tromey.com>
9998
9999 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10000 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10001 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10002 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10003
8844c11b
TT
100042020-03-26 Tom Tromey <tom@tromey.com>
10005
10006 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10007 file_names_size, file_full_name, file_file_name>: Use const.
10008 <file_name_at, file_names>: Add const overload.
10009 * dwarf2/line-header.c (line_header::file_file_name)
10010 (line_header::file_full_name): Update.
10011
c90ec28a
TT
100122020-03-26 Tom Tromey <tom@tromey.com>
10013
10014 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10015 (macro_start_file, consume_improper_spaces)
10016 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10017 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10018 (dwarf_decode_macros): Move to macro.c.
10019 * dwarf2/macro.c: New file.
10020 * dwarf2/macro.h: New file.
10021 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10022
4f44ae6c
TT
100232020-03-26 Tom Tromey <tom@tromey.com>
10024
10025 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10026 method.
10027 * dwarf2/section.c: New method. From
10028 read_indirect_string_at_offset_from.
10029 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10030 (read_indirect_string_at_offset_from): Move to section.c.
10031 (read_indirect_string_at_offset): Rewrite.
10032 (read_indirect_line_string_at_offset): Remove.
10033 (read_indirect_string, read_indirect_line_string)
10034 (dwarf_decode_macro_bytes): Update.
10035
a0194fa8
TT
100362020-03-26 Tom Tromey <tom@tromey.com>
10037
10038 * dwarf2/section.h (struct dwarf2_section_info)
10039 <overload_complaint>: Declare.
10040 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10041 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10042 Rename from dwarf2_section_buffer_overflow_complaint.
10043 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10044 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10045
3d27bbdb
TT
100462020-03-26 Tom Tromey <tom@tromey.com>
10047
10048 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10049 Declare.
10050 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10051 Move from read.c.
10052 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10053 to section.c.
10054
9eac9650
TT
100552020-03-26 Tom Tromey <tom@tromey.com>
10056
10057 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10058
bf80d710
TT
100592020-03-26 Tom Tromey <tom@tromey.com>
10060
10061 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10062 "builder".
10063 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10064 parameter.
10065 (dwarf_decode_macros): Update.
10066
0314b390
TT
100672020-03-26 Tom Tromey <tom@tromey.com>
10068
10069 * dwarf2/read.c (read_attribute_value): Update.
10070 (read_indirect_string_from_dwz): Move to dwz.c; change into
10071 method.
10072 (dwarf_decode_macro_bytes): Update.
10073 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10074 * dwarf2/dwz.c: New file.
10075 * Makefile.in (COMMON_SFILES): Add dwz.c.
10076
9fda78b6
TT
100772020-03-26 Tom Tromey <tom@tromey.com>
10078
10079 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10080 * dwarf2/read.c: Add include.
10081 * dwarf2/index-write.c: Add include.
10082 * dwarf2/index-cache.c: Add include.
10083 * dwarf2/dwz.h: New file.
10084
33aa3c10
TT
100852020-03-25 Tom Tromey <tom@tromey.com>
10086
10087 * compile/compile-object-load.c (get_out_value_type): Mention
10088 correct symbol name in error message.
10089
d503b685
HD
100902020-03-25 Hannes Domani <ssbssa@yahoo.de>
10091
10092 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10093
7b1eff95
TV
100942020-03-25 Tom de Vries <tdevries@suse.de>
10095
10096 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10097 * symmisc.c (dump_symtab_1): Print user and includes fields.
10098 (maintenance_info_symtabs): Same.
10099
dd895392
AB
101002020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10101
10102 PR gdb/25534
10103 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10104 (riscv_regcache_cooked_write): New function.
10105 (riscv_push_dummy_call): Use new function.
10106 (riscv_return_value): Likewise.
10107
5ab2fbf1
SM
101082020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10109
10110 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10111 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10112 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10113 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10114 * infrun.c (follow_fork): Likewise.
10115 (follow_fork_inferior): Likewise.
10116 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10117 * linux-nat.h (class linux_nat_target): Likewise.
10118 * remote.c (class remote_target) <follow_fork>: Likewise.
10119 (remote_target::follow_fork): Likewise.
10120 * target-delegates.c: Re-generate.
10121 * target.c (default_follow_fork): Likewise.
10122 (target_follow_fork): Likewise.
10123 * target.h (struct target_ops) <follow_fork>: Likewise.
10124 (target_follow_fork): Likewise.
10125
a64fafb5
TV
101262020-03-24 Tom de Vries <tdevries@suse.de>
10127
10128 * psymtab.c (maintenance_info_psymtabs): Print user field.
10129
fe26d3a3
TT
101302020-03-20 Tom Tromey <tromey@adacore.com>
10131
10132 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10133 const.
10134 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10135 const.
10136
c884cc46
SM
101372020-03-20 Simon Marchi <simon.marchi@efficios.com>
10138
10139 * ptrace.m4: Don't check for ptrace declaration.
10140 * config.in: Re-generate.
10141 * configure: Re-generate.
10142 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10143 not defined.
10144
1ff700c2
KR
101452020-03-20 Kamil Rytarowski <n54@gmx.com>
10146
10147 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10148 `PTRACE_TYPE_RET'.
10149 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10150 * sparc-nat.c (gdb_ptrace): Likewise.
10151 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10152
f7d4f0b1
TT
101532020-03-20 Tom Tromey <tromey@adacore.com>
10154
10155 * c-exp.y (lex_one_token): Fix assert.
10156
f67210ff
TT
101572020-03-20 Tom Tromey <tromey@adacore.com>
10158
10159 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10160 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10161 strncpy call.
10162
1773be9e
TT
101632020-03-20 Tom Tromey <tromey@adacore.com>
10164
10165 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10166
70304be9
TT
101672020-03-20 Tom Tromey <tromey@adacore.com>
10168
10169 * ada-valprint.c (print_variant_part): Remove parameters; switch
10170 to value-based API.
10171 (print_field_values): Likewise.
10172 (ada_val_print_struct_union): Likewise.
10173 (ada_value_print_1): Update.
10174
9faa006d
KR
101752020-03-20 Kamil Rytarowski <n54@gmx.com>
10176
10177 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10178 nbsd_nat_target instead of inf_ptrace_target.
10179 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10180 nbsd_nat_target.
10181
4a90f062
KR
101822020-03-20 Kamil Rytarowski <n54@gmx.com>
10183
10184 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10185 it to the ptrace call.
10186 * (store_registers): Likewise.
10187
101882020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10189
10190 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10191 it to the ptrace call.
10192 * (store_registers): Likewise.
10193
2d07da27
LM
101942020-03-19 Luis Machado <luis.machado@linaro.org>
10195
10196 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10197 valid, fetch vg value from ptrace.
10198
f09db380
KR
101992020-03-19 Kamil Rytarowski <n54@gmx.com>
10200 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10201 * inf-ptrace.c: Likewise.
10202 * (gdb_ptrace): Add.
10203 * (inf_ptrace_target::resume): Update.
10204 * (inf_ptrace_target::xfer_partial): Likewise.
10205 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10206 * (inf_ptrace_peek_poke): Update.
10207
fcc7376e
KR
102082020-03-19 Kamil Rytarowski <n54@gmx.com>
10209
10210 * x86-bsd-nat.c (gdb_ptrace): New.
10211 * (x86bsd_dr_set): Add new argument `ptid'.
10212 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10213 x86bsd_dr_set_addr): Update.
10214
cada5fc9
AB
102152020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10216
10217 * remote.c (remote_target::process_stop_reply): Handle events for
10218 all threads differently.
10219
19a2740f
AB
102202020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10221
10222 * completer.c (completion_tracker::remove_completion): Define new
10223 function.
10224 * completer.h (completion_tracker::remove_completion): Declare new
10225 function.
10226 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10227 when adding a C++ function symbol.
10228
724fd9ba
AB
102292020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10230
10231 * completer.c (completion_tracker::completion_hash_entry): Define
10232 new class.
10233 (advance_to_filename_complete_word_point): Call
10234 recompute_lowest_common_denominator.
10235 (completion_tracker::completion_tracker): Call discard_completions
10236 to setup the hash table.
10237 (completion_tracker::discard_completions): Allow for being called
10238 from the constructor, pass new equal function, and element deleter
10239 when constructing the hash table. Initialise new class member
10240 variables.
10241 (completion_tracker::maybe_add_completion): Remove use of
10242 m_entries_vec, and store more information into m_entries_hash.
10243 (completion_tracker::recompute_lcd_visitor): New function, most
10244 content taken from...
10245 (completion_tracker::recompute_lowest_common_denominator):
10246 ...here, this now just visits each item in the hash calling the
10247 above visitor.
10248 (completion_tracker::build_completion_result): Remove use of
10249 m_entries_vec, call recompute_lowest_common_denominator.
10250 * completer.h (completion_tracker::have_completions): Remove use
10251 of m_entries_vec.
10252 (completion_tracker::completion_hash_entry): Declare new class.
10253 (completion_tracker::recompute_lowest_common_denominator): Change
10254 function signature.
10255 (completion_tracker::recompute_lcd_visitor): Declare new function.
10256 (completion_tracker::m_entries_vec): Delete.
10257 (completion_tracker::m_entries_hash): Initialize to NULL.
10258 (completion_tracker::m_lowest_common_denominator_valid): New
10259 member variable.
10260 (completion_tracker::m_lowest_common_denominator_max_length): New
10261 member variable.
10262
5a82b8a1
KR
102632020-03-17 Kamil Rytarowski <n54@gmx.com>
10264
10265 * regformats/regdef.h: Put reg in gdb namespace.
10266
fb516a69
KR
102672020-03-17 Kamil Rytarowski <n54@gmx.com>
10268
10269 * i386-bsd-nat.c (gdb_ptrace): New.
10270 * (i386bsd_fetch_inferior_registers,
10271 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10272 * (i386bsd_fetch_inferior_registers,
10273 i386bsd_store_inferior_registers) Use gdb_ptrace.
10274
1c0aa1fb
KR
102752020-03-17 Kamil Rytarowski <n54@gmx.com>
10276
10277 * amd64-bsd-nat.c (gdb_ptrace): New.
10278 * (amd64bsd_fetch_inferior_registers,
10279 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10280 * (amd64bsd_fetch_inferior_registers,
10281 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10282
5ccd2fb7
KR
102832020-03-17 Kamil Rytarowski <n54@gmx.com>
10284
10285 * user-regs.c (user_reg::read): Rename to...
10286 (user_reg::xread): ...this.
10287 * (append_user_reg): Rename argument `read' to `xread'.
10288 * (user_reg_add_builtin): Likewise.
10289 * (user_reg_add): Likewise.
10290 * (value_of_user_reg): Likewise.
10291
2108a63a
KR
102922020-03-17 Kamil Rytarowski <n54@gmx.com>
10293
10294 * sparc-nat.c (gdb_ptrace): New.
10295 * sparc-nat.c (sparc_fetch_inferior_registers)
10296 (sparc_store_inferior_registers) Remove obsolete comment.
10297 * sparc-nat.c (sparc_fetch_inferior_registers)
10298 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10299 * sparc-nat.c (sparc_fetch_inferior_registers)
10300 (sparc_store_inferior_registers) Use gdb_ptrace.
10301
a225c9a8
KR
103022020-03-17 Kamil Rytarowski <n54@gmx.com>
10303
10304 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10305 it to the ptrace call.
10306 * sh-nbsd-nat.c (store_registers): Likewise.
10307
98097623
KR
103082020-03-17 Kamil Rytarowski <n54@gmx.com>
10309
10310 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10311 nbsd_nat_target instead of inf_ptrace_target.
10312 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10313 nbsd_nat_target.
10314
9e38d619
KR
103152020-03-17 Kamil Rytarowski <n54@gmx.com>
10316
10317 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10318
a2ecbe9f
KR
103192020-03-17 Kamil Rytarowski <n54@gmx.com>
10320
10321 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10322 <sys/sysctl.h>.
10323 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10324
58990295
TV
103252020-03-17 Tom de Vries <tdevries@suse.de>
10326
10327 PR gdb/23710
10328 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10329 fields.
10330 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10331 fields.
10332 (process_imported_unit_die): Skip import of c++ CUs.
10333
771dd3a8
TT
103342020-03-16 Tom Tromey <tom@tromey.com>
10335
10336 * p-valprint.c (pascal_object_print_value): Initialize
10337 base_value.
10338
817a7585
AK
103392020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10340 Shahab Vahedi <shahab@synopsys.com>
10341
10342 * Makefile.in: Add arch/arc.o
10343 * configure.tgt: Likewise.
10344 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10345 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10346 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10347 * arc-tdep.h (arc_read_description): Add proto type.
10348 * arch/arc.c: New file.
10349 * arch/arc.h: Likewise.
10350 * features/Makefile: Replace old target descriptions with new.
10351 * features/arc-arcompact.c: Remove.
10352 * features/arc-arcompact.xml: Likewise.
10353 * features/arc-v2.c: Likewise
10354 * features/arc-v2.xml: Likewise
10355 * features/arc/aux-arcompact.xml: New file.
10356 * features/arc/aux-v2.xml: Likewise.
10357 * features/arc/core-arcompact.xml: Likewise.
10358 * features/arc/core-v2.xml: Likewise.
10359 * features/arc/aux-arcompact.c: Generate.
10360 * features/arc/aux-v2.c: Likewise.
10361 * features/arc/core-arcompact.c: Likewise.
10362 * features/arc/core-v2.c: Likewise.
10363 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10364
67430cd0
TT
103652020-03-16 Tom Tromey <tromey@adacore.com>
10366
10367 PR gdb/25663:
10368 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10369 putting value into bcache.
10370
30efb6c7
SM
103712020-03-16 Simon Marchi <simon.marchi@efficios.com>
10372
10373 PR gdb/21500
10374 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10375 to...
10376 (amd64_windows_init_abi_common): ... this. Don't set size of
10377 long type.
10378 (amd64_windows_init_abi): New function.
10379 (amd64_cygwin_init_abi): New function.
10380 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10381 the Cygwin OS ABI.
10382 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10383 comment.
10384
8db52437
SM
103852020-03-16 Simon Marchi <simon.marchi@efficios.com>
10386
10387 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10388 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10389 (pe_import_directory_entry): New struct type.
10390 (is_linked_with_cygwin_dll): New function.
10391 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10392 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10393 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10394
5982a56a
SM
103952020-03-16 Simon Marchi <simon.marchi@efficios.com>
10396
10397 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10398 i386_cygwin_core_osabi_sniffer.
10399
7a1998df
SM
104002020-03-16 Simon Marchi <simon.marchi@efficios.com>
10401
10402 * i386-cygwin-tdep.c: Rename to...
10403 * i386-windows-tdep.c: ... this.
10404 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10405 i386-windows-tdep.c.
10406 * configure.tgt: Likewise.
10407
053205cc
SM
104082020-03-16 Simon Marchi <simon.marchi@efficios.com>
10409
10410 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10411 * osabi.c (gdb_osabi_names): Add "Windows".
10412 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10413 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10414 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10415 i386_cygwin_osabi_sniffer.
10416 (_initialize_i386_cygwin_tdep): Register OS ABI
10417 GDB_OSABI_WINDOWS for i386.
10418 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10419 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10420 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10421 for x86-64.
10422 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10423 when the target matches '*-*-mingw*'.
10424
fe4b2ee6
SM
104252020-03-16 Simon Marchi <simon.marchi@efficios.com>
10426
10427 * defs.h (enum gdb_osabi): Move to...
10428 * osabi.h (enum gdb_osabi): ... here.
10429 * gdbarch.sh: Include osabi.h in gdbarch.h.
10430 * gdbarch.h: Re-generate.
10431
cb9b645d
SM
104322020-03-16 Simon Marchi <simon.marchi@efficios.com>
10433
10434 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10435 function.
10436 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10437
3293bbaf
TT
104382020-03-14 Tom Tromey <tom@tromey.com>
10439
10440 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10441 for C++.
10442 (c_type_print_modifier): Likewise. Add "language" parameter.
10443 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10444 (c_type_print_base_1): Update.
10445 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10446 constants.
10447 * type-stack.c (type_stack::insert): Handle tp_atomic and
10448 tp_restrict.
10449 (type_stack::follow_type_instance_flags): Likewise.
10450 (type_stack::follow_types): Likewise. Merge type-following code.
10451 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10452 (space_identifier, cv_with_space_id)
10453 (const_or_volatile_or_space_identifier_noopt)
10454 (const_or_volatile_or_space_identifier): Remove.
10455 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10456 rules.
10457 (ptr_operator, typebase): Update.
10458 (enum token_flag) <FLAG_C>: New constant.
10459 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10460 "_Atomic".
10461 (lex_one_token): Handle FLAG_C.
10462
154151a6
KR
104632020-03-14 Kamil Rytarowski <n54@gmx.com>
10464
10465 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10466 it to the ptrace call.
10467 * m68k-bsd-nat.c (store_registers): Likewise.
10468
bc107784
KR
104692020-03-14 Kamil Rytarowski <n54@gmx.com>
10470
10471 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10472 gdb_byte *.
10473 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10474 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10475 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10476
01a80117
KR
104772020-03-14 Kamil Rytarowski <n54@gmx.com>
10478
10479 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10480 nbsd_nat_target instead of inf_ptrace_target.
10481 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10482 nbsd_nat_target.
10483
f90280ca
KR
104842020-03-14 Kamil Rytarowski <n54@gmx.com>
10485
10486 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10487 register_t.
10488
6def66f1
KR
104892020-03-14 Kamil Rytarowski <n54@gmx.com>
10490
10491 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10492 it to the ptrace call.
10493 * alpha-bsd-nat.c (store_registers): Likewise.
10494
66eaca97
KR
104952020-03-14 Kamil Rytarowski <n54@gmx.com>
10496
10497 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10498 includes.
10499 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10500 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10501 fill_fpregset): Likewise.
10502
4fed520b
KR
105032020-03-14 Kamil Rytarowski <n54@gmx.com>
10504
10505 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10506 nbsd_nat_target instead of inf_ptrace_target.
10507 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10508 nbsd_nat_target.
10509
2190cf06
KR
105102020-03-14 Kamil Rytarowski <n54@gmx.com>
10511
10512 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10513 register_t.
10514
75c56d3d
KR
105152020-03-14 Kamil Rytarowski <n54@gmx.com>
10516
10517 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10518 it to the ptrace call.
10519 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10520 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10521 * arm-nbsd-nat.c (store_register): Likewise.
10522 * arm-nbsd-nat.c (store_regs): Likewise.
10523 * arm-nbsd-nat.c (store_fp_register): Likewise.
10524 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10525
6018d381
KR
105262020-03-14 Kamil Rytarowski <n54@gmx.com>
10527
10528 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10529 nbsd_nat_target instead of inf_ptrace_target.
10530 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10531 nbsd_nat_target.
10532
013f99f0
KR
105332020-03-14 Kamil Rytarowski <n54@gmx.com>
10534
10535 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10536 it to the ptrace call.
10537 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10538
12753073
KR
105392020-03-14 Kamil Rytarowski <n54@gmx.com>
10540
6227b330
KR
10541 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10542 it to the ptrace call.
10543 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10544
105452020-03-14 Kamil Rytarowski <n54@gmx.com>
10546
10547 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10548 gdb_byte *.
12753073
KR
10549 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10550
d5be5fa4
KR
105512020-03-14 Kamil Rytarowski <n54@gmx.com>
10552
10553 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10554 instead of inf_ptrace_target.
10555 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10556 nbsd_nat_target.
10557
8110f842
KR
105582020-03-14 Kamil Rytarowski <n54@gmx.com>
10559
10560 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10561 register_t.
10562
52feded7
KR
105632020-03-14 Kamil Rytarowski <n54@gmx.com>
10564
10565 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10566 register_t.
10567
25567eee
KR
105682020-03-14 Kamil Rytarowski <n54@gmx.com>
10569
10570 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10571 register_t.
10572
426a9c18
TT
105732020-03-13 Tom Tromey <tom@tromey.com>
10574
10575 * value.h (val_print): Don't declare.
10576 * valprint.h (val_print_array_elements)
10577 (val_print_scalar_formatted, generic_val_print): Don't declare.
10578 * valprint.c (generic_val_print_array): Take a struct value.
10579 (generic_val_print_ptr, generic_val_print_memberptr)
10580 (generic_val_print_bool, generic_val_print_int)
10581 (generic_val_print_char, generic_val_print_complex)
10582 (generic_val_print): Remove.
10583 (generic_value_print): Update.
10584 (do_val_print): Remove unused parameters. Don't call
10585 la_val_print.
10586 (val_print): Remove.
10587 (common_val_print): Update. Don't call value_check_printable.
10588 (val_print_scalar_formatted, val_print_array_elements): Remove.
10589 * rust-lang.c (rust_val_print): Remove.
10590 (rust_language_defn): Update.
10591 * p-valprint.c (pascal_val_print): Remove.
10592 (pascal_value_print_inner): Update.
10593 (pascal_object_print_val_fields, pascal_object_print_val):
10594 Remove.
10595 (pascal_object_print_static_field): Update.
10596 * p-lang.h (pascal_val_print): Don't declare.
10597 * p-lang.c (pascal_language_defn): Update.
10598 * opencl-lang.c (opencl_language_defn): Update.
10599 * objc-lang.c (objc_language_defn): Update.
10600 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10601 * m2-lang.h (m2_val_print): Don't declare.
10602 * m2-lang.c (m2_language_defn): Update.
10603 * language.h (struct language_defn) <la_val_print>: Remove.
10604 * language.c (unk_lang_value_print_inner): Rename. Change
10605 argument types.
10606 (unknown_language_defn, auto_language_defn): Update.
10607 * go-valprint.c (go_val_print): Remove.
10608 * go-lang.h (go_val_print): Don't declare.
10609 * go-lang.c (go_language_defn): Update.
10610 * f-valprint.c (f_val_print): Remove.
10611 * f-lang.h (f_value_print): Don't declare.
10612 * f-lang.c (f_language_defn): Update.
10613 * d-valprint.c (d_val_print): Remove.
10614 * d-lang.h (d_value_print): Don't declare.
10615 * d-lang.c (d_language_defn): Update.
10616 * cp-valprint.c (cp_print_value_fields)
10617 (cp_print_value_fields_rtti, cp_print_value): Remove.
10618 (cp_print_static_field): Update.
10619 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10620 (c_val_print_struct, c_val_print_union, c_val_print_int)
10621 (c_val_print_memberptr, c_val_print): Remove.
10622 * c-lang.h (c_val_print_array, cp_print_value_fields)
10623 (cp_print_value_fields_rtti): Don't declare.
10624 * c-lang.c (c_language_defn, cplus_language_defn)
10625 (asm_language_defn, minimal_language_defn): Update.
10626 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10627 (ada_val_print_enum): Take a struct value.
10628 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10629 (ada_val_print): Remove.
10630 (ada_value_print_1): Update.
10631 (printable_val_type): Remove.
10632 * ada-lang.h (ada_val_print): Don't declare.
10633 * ada-lang.c (ada_language_defn): Update.
10634
42331a1e
TT
106352020-03-13 Tom Tromey <tom@tromey.com>
10636
10637 * valprint.c (do_val_print): Update.
10638 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10639 a struct value.
10640 (value_to_value_object_no_release): Declare.
10641 * python/py-value.c (value_to_value_object_no_release): New
10642 function.
10643 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10644 struct value.
10645 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10646 function.
10647 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10648 a struct value.
10649 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10650 Declare.
10651 (gdbscm_apply_val_pretty_printer): Take a struct value.
10652 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10653 value.
10654 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10655 value.
10656 * extension-priv.h (struct extension_language_ops)
10657 <apply_val_pretty_printer>: Take a struct value.
10658 * cp-valprint.c (cp_print_value): Create a struct value.
10659 (cp_print_value): Update.
10660
3a916a97
TT
106612020-03-13 Tom Tromey <tom@tromey.com>
10662
10663 * ada-valprint.c (print_field_values): Call common_val_print.
10664
b59eac37
TT
106652020-03-13 Tom Tromey <tom@tromey.com>
10666
10667 * ada-valprint.c (val_print_packed_array_elements): Remove
10668 bitoffset and val parameters. Call common_val_print.
10669 (ada_val_print_string): Remove offset, address, and original_value
10670 parameters.
10671 (ada_val_print_array): Update.
10672 (ada_value_print_array): New function.
10673 (ada_value_print_1): Call it.
10674
03371129
TT
106752020-03-13 Tom Tromey <tom@tromey.com>
10676
10677 * ada-valprint.c (ada_value_print): Use common_val_print.
10678
2e088f8b
TT
106792020-03-13 Tom Tromey <tom@tromey.com>
10680
10681 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10682
39ef85a8
TT
106832020-03-13 Tom Tromey <tom@tromey.com>
10684
10685 * ada-valprint.c (ada_value_print_num): New function.
10686 (ada_value_print_1): Use it.
10687
b9fa6e07
TT
106882020-03-13 Tom Tromey <tom@tromey.com>
10689
10690 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10691
416595d6
TT
106922020-03-13 Tom Tromey <tom@tromey.com>
10693
10694 * ada-valprint.c (ada_value_print_ptr): New function.
10695 (ada_value_print_1): Use it.
10696
5b5e15ec
TT
106972020-03-13 Tom Tromey <tom@tromey.com>
10698
10699 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10700 call common_val_print.
10701 (ada_val_print_1): Update.
10702 (ada_value_print_1): New function.
10703 (ada_value_print_inner): Rewrite.
10704
fbf54e75
TT
107052020-03-13 Tom Tromey <tom@tromey.com>
10706
10707 * cp-valprint.c (cp_print_value_fields): Update.
10708 (cp_print_value): New function.
10709
64b653ca
TT
107102020-03-13 Tom Tromey <tom@tromey.com>
10711
10712 * m2-valprint.c (m2_value_print_inner): Use
10713 cp_print_value_fields.
10714 * cp-valprint.c (cp_print_value_fields): New function.
10715 * c-valprint.c (c_value_print_struct): New function.
10716 (c_value_print_inner): Use c_value_print_struct.
10717 * c-lang.h (cp_print_value_fields): Declare.
10718
6999f067
TT
107192020-03-13 Tom Tromey <tom@tromey.com>
10720
10721 * c-valprint.c (c_value_print_array): New function.
10722 (c_value_print_inner): Use it.
10723
ce80b8bd
TT
107242020-03-13 Tom Tromey <tom@tromey.com>
10725
10726 * c-valprint.c (c_value_print_memberptr): New function.
10727 (c_value_print_inner): Use it.
10728
2faac269
TT
107292020-03-13 Tom Tromey <tom@tromey.com>
10730
10731 * c-valprint.c (c_value_print_int): New function.
10732 (c_value_print_inner): Use it.
10733
da3e2c29
TT
107342020-03-13 Tom Tromey <tom@tromey.com>
10735
10736 * c-valprint.c (c_value_print_ptr): New function.
10737 (c_value_print_inner): Use it.
10738
50836231
TT
107392020-03-13 Tom Tromey <tom@tromey.com>
10740
10741 * c-valprint.c (c_value_print_inner): Rewrite.
10742
4f412b6e
TT
107432020-03-13 Tom Tromey <tom@tromey.com>
10744
10745 * valprint.c (generic_value_print_complex): New function.
10746 (generic_value_print): Use it.
10747
f5354008
TT
107482020-03-13 Tom Tromey <tom@tromey.com>
10749
10750 * valprint.c (generic_val_print_float): Don't call
10751 val_print_scalar_formatted.
10752 (generic_val_print, generic_value_print): Update.
10753
3eec3b05
TT
107542020-03-13 Tom Tromey <tom@tromey.com>
10755
10756 * valprint.c (generic_value_print_char): New function
10757 (generic_value_print): Use it.
10758
fdddfccb
TT
107592020-03-13 Tom Tromey <tom@tromey.com>
10760
10761 * valprint.c (generic_value_print_int): New function.
10762 (generic_value_print): Use it.
10763
6dde7521
TT
107642020-03-13 Tom Tromey <tom@tromey.com>
10765
10766 * valprint.c (generic_value_print_bool): New function.
10767 (generic_value_print): Use it.
10768
4112d2e6
TT
107692020-03-13 Tom Tromey <tom@tromey.com>
10770
10771 * valprint.c (generic_val_print_func): Simplify.
10772 (generic_val_print, generic_value_print): Update.
10773
65786af6
TT
107742020-03-13 Tom Tromey <tom@tromey.com>
10775
10776 * valprint.c (generic_val_print_flags): Remove.
10777 (generic_val_print, generic_value_print): Update.
10778 (val_print_type_code_flags): Add original_value parameter.
10779
40f3ce18
TT
107802020-03-13 Tom Tromey <tom@tromey.com>
10781
10782 * valprint.c (generic_val_print): Update.
10783 (generic_value_print): Update.
10784 * valprint.c (generic_val_print_enum): Don't call
10785 val_print_scalar_formatted.
10786
2a5b130b
TT
107872020-03-13 Tom Tromey <tom@tromey.com>
10788
10789 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10790 * valprint.c (generic_value_print_ptr): New function.
10791
abc66ce9
TT
107922020-03-13 Tom Tromey <tom@tromey.com>
10793
10794 * valprint.c (generic_value_print): Rewrite.
10795
07a32858
TT
107962020-03-13 Tom Tromey <tom@tromey.com>
10797
10798 * p-valprint.c (pascal_object_print_value_fields)
10799 (pascal_object_print_value): New functions.
10800
64d64d3a
TT
108012020-03-13 Tom Tromey <tom@tromey.com>
10802
10803 * p-valprint.c (pascal_value_print_inner): Rewrite.
10804
6a95a1f5
TT
108052020-03-13 Tom Tromey <tom@tromey.com>
10806
10807 * f-valprint.c (f_value_print_innner): Rewrite.
10808
59fcdac6
TT
108092020-03-13 Tom Tromey <tom@tromey.com>
10810
10811 * m2-valprint.c (m2_print_unbounded_array): New overload.
10812 (m2_print_unbounded_array): Update.
10813 (m2_print_array_contents): Take a struct value.
10814 (m2_value_print_inner): Rewrite.
10815
d133c3e1
TT
108162020-03-13 Tom Tromey <tom@tromey.com>
10817
10818 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10819 (d_value_print_inner): New function.
10820 * d-lang.h (d_value_print_inner): Declare.
10821 * d-lang.c (d_language_defn): Use d_value_print_inner.
10822
23b0f06b
TT
108232020-03-13 Tom Tromey <tom@tromey.com>
10824
10825 * go-valprint.c (go_value_print_inner): New function.
10826 * go-lang.h (go_value_print_inner): Declare.
10827 * go-lang.c (go_language_defn): Use go_value_print_inner.
10828
5f56f7cb
TT
108292020-03-13 Tom Tromey <tom@tromey.com>
10830
10831 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10832 API.
10833 (rust_val_print): Rewrite.
10834 (rust_value_print_inner): New function, from rust_val_print.
10835 (rust_language_defn): Use rust_value_print_inner.
10836
26792ee0
TT
108372020-03-13 Tom Tromey <tom@tromey.com>
10838
10839 * ada-valprint.c (ada_value_print_inner): New function.
10840 * ada-lang.h (ada_value_print_inner): Declare.
10841 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10842
24051bbe
TT
108432020-03-13 Tom Tromey <tom@tromey.com>
10844
10845 * f-valprint.c (f_value_print_innner): New function.
10846 * f-lang.h (f_value_print_innner): Declare.
10847 * f-lang.c (f_language_defn): Use f_value_print_innner.
10848
c0941be6
TT
108492020-03-13 Tom Tromey <tom@tromey.com>
10850
10851 * p-valprint.c (pascal_value_print_inner): New function.
10852 * p-lang.h (pascal_value_print_inner): Declare.
10853 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10854
62c4663d
TT
108552020-03-13 Tom Tromey <tom@tromey.com>
10856
10857 * m2-valprint.c (m2_value_print_inner): New function.
10858 * m2-lang.h (m2_value_print_inner): Declare.
10859 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10860
62182190
TT
108612020-03-13 Tom Tromey <tom@tromey.com>
10862
10863 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10864 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10865 * c-valprint.c (c_value_print_inner): New function.
10866 * c-lang.h (c_value_print_inner): Declare.
10867 * c-lang.c (c_language_defn, cplus_language_defn)
10868 (asm_language_defn, minimal_language_defn): Use
10869 c_value_print_inner.
10870
1e592a8a
TT
108712020-03-13 Tom Tromey <tom@tromey.com>
10872
10873 * p-valprint.c (pascal_object_print_value_fields): Now static.
10874 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10875
7fe471e9
TT
108762020-03-13 Tom Tromey <tom@tromey.com>
10877
10878 * c-valprint.c (c_val_print_array): Simplify.
10879
d121c6ce
TT
108802020-03-13 Tom Tromey <tom@tromey.com>
10881
10882 * valprint.c (value_print_array_elements): New function.
10883 * valprint.h (value_print_array_elements): Declare.
10884
4dba70ee
TT
108852020-03-13 Tom Tromey <tom@tromey.com>
10886
10887 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10888 * mips-tdep.c (mips_print_register): Use
10889 value_print_scalar_formatted.
10890
4f9ae810
TT
108912020-03-13 Tom Tromey <tom@tromey.com>
10892
10893 * valprint.h (value_print_scalar_formatted): Declare.
10894 * valprint.c (value_print_scalar_formatted): New function.
10895
156bfec9
TT
108962020-03-13 Tom Tromey <tom@tromey.com>
10897
10898 * valprint.h (generic_value_print): Declare.
10899 * valprint.c (generic_value_print): New function.
10900
2b4e573d
TT
109012020-03-13 Tom Tromey <tom@tromey.com>
10902
10903 * valprint.c (do_val_print): Call la_value_print_inner, if
10904 available.
10905 * rust-lang.c (rust_language_defn): Update.
10906 * p-lang.c (pascal_language_defn): Update.
10907 * opencl-lang.c (opencl_language_defn): Update.
10908 * objc-lang.c (objc_language_defn): Update.
10909 * m2-lang.c (m2_language_defn): Update.
10910 * language.h (struct language_defn) <la_value_print_inner>: New
10911 member.
10912 * language.c (unknown_language_defn, auto_language_defn): Update.
10913 * go-lang.c (go_language_defn): Update.
10914 * f-lang.c (f_language_defn): Update.
10915 * d-lang.c (d_language_defn): Update.
10916 * c-lang.c (c_language_defn, cplus_language_defn)
10917 (asm_language_defn, minimal_language_defn): Update.
10918 * ada-lang.c (ada_language_defn): Update.
10919
a1f6a07c
TT
109202020-03-13 Tom Tromey <tom@tromey.com>
10921
10922 * c-valprint.c (c_value_print): Use common_val_print.
10923
410cf315
TT
109242020-03-13 Tom Tromey <tom@tromey.com>
10925
10926 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10927
72a45c93
TT
109282020-03-13 Tom Tromey <tom@tromey.com>
10929
10930 * f-valprint.c (f77_print_array_1, f_val_print): Use
10931 common_val_print.
10932
040f66bd
TT
109332020-03-13 Tom Tromey <tom@tromey.com>
10934
10935 * riscv-tdep.c (riscv_print_one_register_info): Use
10936 common_val_print.
10937
a6e05a6c
TT
109382020-03-13 Tom Tromey <tom@tromey.com>
10939
10940 * mi/mi-main.c (output_register): Use common_val_print.
10941
3444c526
TT
109422020-03-13 Tom Tromey <tom@tromey.com>
10943
10944 * infcmd.c (default_print_one_register_info): Use
10945 common_val_print.
10946
c2a44efe
TT
109472020-03-13 Tom Tromey <tom@tromey.com>
10948
10949 * valprint.h (common_val_print_checked): Declare.
10950 * valprint.c (common_val_print_checked): New function.
10951 * stack.c (print_frame_arg): Use common_val_print_checked.
10952
b0c26e99
TT
109532020-03-13 Tom Tromey <tom@tromey.com>
10954
10955 * valprint.c (do_val_print): New function, from val_print.
10956 (val_print): Use do_val_print.
10957 (common_val_print): Use do_val_print.
10958
ce3acbe9
TT
109592020-03-13 Tom Tromey <tom@tromey.com>
10960
10961 * valprint.c (value_print): Use scoped_value_mark.
10962
96c7f873
TV
109632020-03-13 Tom de Vries <tdevries@suse.de>
10964
10965 PR symtab/25646
10966 * psymtab.c (partial_symtab::partial_symtab): Don't set
10967 globals_offset and statics_offset. Push element onto
10968 current_global_psymbols and current_static_psymbols stacks.
10969 (concat): New function.
10970 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10971 element from current_global_psymbols and current_static_psymbols
10972 stacks. Concat popped elements to global_psymbols and
10973 static_symbols.
10974 (add_psymbol_to_list): Use current_global_psymbols and
10975 current_static_psymbols stacks.
10976 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10977 current_static_psymbols fields.
10978
6ba0a321
CB
109792020-03-12 Christian Biesinger <cbiesinger@google.com>
10980
10981 * corelow.c (sniff_core_bfd): Remove.
10982 (class core_target) <m_core_vec>: Remove.
10983 (core_target::core_target): Update.
10984 (core_file_fns): Remove.
10985 (deprecated_add_core_fns): Remove.
10986 (default_core_sniffer): Remove.
10987 (sniff_core_bfd): Remove.
10988 (default_check_format): Remove.
10989 (gdb_check_format): Remove.
10990 (core_target_open): Update.
10991 (core_target::get_core_register_section): Update.
10992 (get_core_registers_cb): Update.
10993 (core_target::fetch_registers): Update.
10994 * gdbcore.h (struct core_fns): Remove.
10995 (deprecated_add_core_fns): Remove.
10996 (default_core_sniffer): Remove.
10997 (default_check_format): Remove.
10998
227031b2
TT
109992020-03-12 Tom Tromey <tom@tromey.com>
11000
11001 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11002 CORE_ADDR.
11003 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11004
53807e9f
TT
110052020-03-12 Tom Tromey <tom@tromey.com>
11006
11007 * remote.c (remote_target::download_tracepoint)
11008 (remote_target::enable_tracepoint)
11009 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11010 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11011 sprintf_vma.
11012
64f25102
TT
110132020-03-12 Tom Tromey <tom@tromey.com>
11014
11015 * symfile-mem.c: Update CORE_ADDR size assert.
11016
272cd5a3
SM
110172020-03-12 Simon Marchi <simon.marchi@efficios.com>
11018
11019 * selftest.m4: Move to gdbsupport/.
11020 * acinclude.m4: Update path to selftest.m4.
11021
74cd3f9d
SM
110222020-03-12 Simon Marchi <simon.marchi@efficios.com>
11023
11024 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11025 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11026 gdbarch-selfselftests.c and selftest-arch.c.
11027 (SUBDIR_UNITTESTS_OBS): Rename to...
11028 (SELFTESTS_OBS): ... this.
11029 (COMMON_SFILES): Remove disasm-selftests.c and
11030 gdbarch-selftests.c.
11031 * configure.ac: Don't add selftest-arch.{c,o} to
11032 CONFIG_{SRCS,OBS}.
11033 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11034 preprocessor conditions.
11035
db6878ac
SM
110362020-03-12 Simon Marchi <simon.marchi@efficios.com>
11037
11038 * configure.ac: Don't source bfd/development.sh.
11039 * selftest.m4: Modify comment.
11040 * configure: Re-generate.
11041
4d696a5c
SM
110422020-03-12 Simon Marchi <simon.marchi@efficios.com>
11043
11044 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11045 not "true" or "false".
11046 * configure: Re-generate.
11047
8dd8e1c7
CB
110482020-03-12 Christian Biesinger <cbiesinger@google.com>
11049
11050 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11051 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11052 renamed to arm_nbsd_supply_gregset.
11053 (fetch_register): Update to call arm_nbsd_supply_gregset.
11054 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11055 (arm_netbsd_nat_target::fetch_registers): Update.
11056 (fetch_elfcore_registers): Removed.
11057 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11058 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11059 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11060 not require NetBSD system headers.
11061 (arm_nbsd_regset): New struct.
11062 (arm_nbsd_iterate_over_regset_sections): New function.
11063 (arm_netbsd_init_abi_common): Updated to call
11064 set_gdbarch_iterate_over_regset_sections.
11065 * arm-nbsd-tdep.h: New file.
11066
dd69bf7a
KB
110672020-03-11 Kevin Buettner <kevinb@redhat.com>
11068
11069 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11070 recursion.
11071
a0761e34
SM
110722020-03-11 Simon Marchi <simon.marchi@efficios.com>
11073
11074 * configure: Re-generate.
11075
e7a82140
TT
110762020-03-11 Tom Tromey <tromey@adacore.com>
11077
11078 * ada-typeprint.c (print_choices): Fix comment.
11079
dcc050c8
AB
110802020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11081
11082 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11083 previous item in the list, when the list has no items.
11084
1c33af77
TV
110852020-03-11 Tom de Vries <tdevries@suse.de>
11086
11087 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11088 PROP_LOCLIST handling code.
11089
8c95582d
AB
110902020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11091
11092 * buildsym-legacy.c (record_line): Pass extra parameter to
11093 record_line.
11094 * buildsym.c (buildsym_compunit::record_line): Take an extra
11095 parameter, reduce duplication in the line table, and record the
11096 is_stmt flag in the line table.
11097 * buildsym.h (buildsym_compunit::record_line): Add extra
11098 parameter.
11099 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11100 non-statement lines.
11101 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11102 this to the symtab builder.
11103 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11104 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11105 through to dwarf_record_line_1.
11106 * infrun.c (process_event_stop_test): When stepping, don't stop at
11107 a non-statement instruction, and only refresh the step info when
11108 we land in the middle of a line's range. Also add an extra
11109 comment.
11110 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11111 field.
11112 * record-btrace.c (btrace_find_line_range): Only record lines
11113 marked as is-statement.
11114 * stack.c (frame_show_address): Show the frame address if we are
11115 in a non-statement sal.
11116 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11117 (maintenance_print_one_line_table): Print a header for the is_stmt
11118 column, and include is_stmt information in the output.
11119 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11120 preference to non-statements.
11121 (find_pcs_for_symtab_line): Prefer is-statement entries.
11122 (find_line_common): Likewise.
11123 * symtab.h (struct linetable_entry): Add is_stmt field.
11124 (struct symtab_and_line): Likewise.
11125 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11126 arranging the line table.
11127
e4003a34
TV
111282020-03-07 Tom de Vries <tdevries@suse.de>
11129
11130 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11131 DIE.
11132
e8932576
TT
111332020-03-07 Tom Tromey <tom@tromey.com>
11134
11135 * valops.c (value_literal_complex): Remove obsolete comment.
11136 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11137 comment.
11138
29734269
SM
111392020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11140
11141 * infrun.h: Forward-declare thread_info.
11142 (set_step_info): Add thread_info parameter, add doc.
11143 * infrun.c (set_step_info): Add thread_info parameter, move doc
11144 to header.
11145 * infrun.c (process_event_stop_test): Pass thread to
11146 set_step_info call.
11147 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11148 set_step_info.
11149 (prepare_one_step): Add thread_info parameter, pass it to
11150 set_step_frame and prepare_one_step (recursive) call.
11151 (step_1): Pass thread to prepare_one_step call.
11152 (step_command_fsm::should_stop): Pass thread to
11153 prepare_one_step.
11154 (until_next_fsm): Pass thread to set_step_frame call.
11155 (finish_command): Pass thread to set_step_info call.
11156
b7d64b29
HD
111572020-03-06 Hannes Domani <ssbssa@yahoo.de>
11158
11159 * windows-tdep.c (windows_solib_create_inferior_hook):
11160 Check if inferior is running.
11161
09f2921c
TV
111622020-03-06 Tom de Vries <tdevries@suse.de>
11163
11164 * NEWS: Fix "the the".
11165 * ctfread.c: Same.
11166
fd760e79
TV
111672020-03-06 Tom de Vries <tdevries@suse.de>
11168
11169 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11170
20ea4a60
AB
111712020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11172
11173 * .dir-locals.el: Add a comment referencing the other copies of
11174 this file.
11175
0afbabf0
JB
111762020-03-05 John Baldwin <jhb@FreeBSD.org>
11177
11178 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11179 psargs.
11180
842806cb
TBA
111812020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11182
11183 * .gitattributes: New file.
11184
be1e3d3e
TT
111852020-03-04 Tom Tromey <tom@tromey.com>
11186
11187 * symmisc.c (print_symbol_bcache_statistics)
11188 (print_objfile_statistics): Update.
11189 * symfile.c (allocate_symtab): Use intern.
11190 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11191 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11192 macro_cache>: Remove.
11193 <string_cache>: New member.
11194 (struct objfile) <intern>: New methods.
11195 * elfread.c (elf_symtab_read): Use intern.
11196 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11197 (dwarf2_compute_name, dwarf2_physname)
11198 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11199 names.
11200 (guess_partial_die_structure_name): Update.
11201 (partial_die_info::fixup): Intern name.
11202 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11203 name.
11204 (dwarf2_name): Intern name. Update.
11205 * buildsym.c (buildsym_compunit::get_macro_table): Use
11206 string_cache.
11207
4e7625fd
TT
112082020-03-04 Tom Tromey <tom@tromey.com>
11209
11210 * jit.c (bfd_open_from_target_memory): Make "target" const.
11211 * corefile.c (gnutarget): Now const.
11212 * gdbcore.h (gnutarget): Now const.
11213
46f9f931
HD
112142020-03-04 Hannes Domani <ssbssa@yahoo.de>
11215
11216 * NEWS: Mention support for WOW64 processes.
11217 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11218 (amd64_windows_segment_register_p): Remove static.
11219 (_initialize_amd64_windows_nat): Update.
11220 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11221 * i386-windows-nat.c (context_offset): Update.
11222 (i386_mappings): Rename and remove static.
11223 (i386_windows_segment_register_p): Remove static.
11224 (_initialize_i386_windows_nat): Update.
11225 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11226 (STATUS_WX86_SINGLE_STEP): New macro.
11227 (EnumProcessModulesEx): New macro.
11228 (Wow64SuspendThread): New macro.
11229 (Wow64GetThreadContext): New macro.
11230 (Wow64SetThreadContext): New macro.
11231 (Wow64GetThreadSelectorEntry): New macro.
11232 (windows_set_context_register_offsets): Add static.
11233 (windows_set_segment_register_p): Likewise.
11234 (windows_add_thread): Adapt for WOW64 processes.
11235 (windows_fetch_one_register): Likewise.
11236 (windows_nat_target::fetch_registers): Likewise.
11237 (windows_store_one_register): Likewise.
11238 (display_selector): Likewise.
11239 (display_selectors): Likewise.
11240 (handle_exception): Likewise.
11241 (windows_continue): Likewise.
11242 (windows_nat_target::resume): Likewise.
11243 (windows_add_all_dlls): Likewise.
11244 (do_initial_windows_stuff): Likewise.
11245 (windows_nat_target::attach): Likewise.
11246 (windows_get_exec_module_filename): Likewise.
11247 (windows_nat_target::create_inferior): Likewise.
11248 (windows_xfer_siginfo): Likewise.
11249 (_initialize_loadable): Initialize Wow64SuspendThread,
11250 Wow64GetThreadContext, Wow64SetThreadContext,
11251 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11252 * windows-nat.h (windows_set_context_register_offsets):
11253 Remove declaration.
11254 (windows_set_segment_register_p): Likewise.
11255 (i386_windows_segment_register_p): Add declaration.
11256 (amd64_windows_segment_register_p): Likewise.
11257
440cf44e
LM
112582020-03-04 Luis Machado <luis.machado@linaro.org>
11259
11260 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11261 in "info registers" for AArch64/ARM.
11262
11263 The change caused "info registers" to not print GPR's.
11264
11265 gdb/ChangeLog:
11266
11267 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11268
11269 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11270 when reg->group is empty and reggroup is not.
11271
1009d92f
TT
112722020-03-03 Tom Tromey <tromey@adacore.com>
11273
11274 * dwarf2/frame.c (struct dwarf2_frame_cache)
11275 <checked_tailcall_bottom, entry_cfa_sp_offset,
11276 entry_cfa_sp_offset_p>: Remove members.
11277 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11278 (dwarf2_frame_prev_register): Don't call
11279 dwarf2_tailcall_sniffer_first.
11280 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11281 * frame-unwind.c (add_unwinder): New fuction.
11282 (frame_unwind_init): Use it. Add tailcall unwinder.
11283
5e5d66b6
AB
112842020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11285 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11286
11287 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11288 value should be printed as true.
11289
584cf46d
HD
112902020-03-03 Hannes Domani <ssbssa@yahoo.de>
11291
11292 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11293 (windows_init_abi): Set and use windows_so_ops.
11294
7b973adc
SDJ
112952020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11296
11297 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11298 when verifying if dealing with a convenience variable.
11299
bb7b70ab
LM
113002020-03-03 Luis Machado <luis.machado@linaro.org>
11301
11302 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11303
9822cb57
SM
113042020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11305
11306 * infrun.c (gdbarch_supports_displaced_stepping): New.
11307 (use_displaced_stepping): Break up conditions in smaller pieces.
11308 Use gdbarch_supports_displaced_stepping.
11309 (displaced_step_prepare_throw): Use
11310 gdbarch_supports_displaced_stepping.
11311
63e163f2
AB
113122020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11313
11314 * NEWS: Mention new behaviour of the history filename.
11315 * top.c (write_history_p): Add comment.
11316 (show_write_history_p): Add header comment, give a different
11317 message when history writing is on, but the history filename is
11318 empty.
11319 (history_filename): Add comment.
11320 (history_filename_empty): New function.
11321 (show_history_filename): Add header comment, give a different
11322 message when the filename is empty.
11323 (init_history): Compare history_filename against nullptr, and only
11324 read history if the filename is not empty.
11325 (set_history_filename): Add header comment, and only make
11326 non-empty filenames absolute.
11327 (init_main): Make the filename argument to 'set history filename'
11328 optional.
11329
81b86b97
CB
113302020-03-02 Christian Biesinger <cbiesinger@google.com>
11331
11332 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11333 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11334 (fetch_fp_register): Update.
11335 (fetch_fp_regs): Update.
11336 (store_fp_register): Update.
11337 (store_fp_regs): Update.
11338 (arm_netbsd_nat_target::read_description): New function.
11339 (fetch_elfcore_registers): Update.
11340
24ed6739
AB
113412020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11342
11343 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11344 general_thread if the stop reply is missing a thread-id.
11345 (remote_target::process_stop_reply): Use the first non-exited
11346 thread if the target didn't pass a thread-id.
11347 * infrun.c (do_target_wait): Move call to
11348 switch_to_inferior_no_thread to ....
11349 (do_target_wait_1): ... here.
11350
a84bb2a0
JT
113512020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11352
11353 * debuginfod-support.c: Include defs.h first.
11354
658dadf0
TV
113552020-02-28 Tom de Vries <tdevries@suse.de>
11356
11357 * symfile.c (set_initial_language): Use default language for lookup.
11358
4ebe4877
SM
113592020-02-28 Simon Marchi <simon.marchi@efficios.com>
11360
11361 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11362 reader variable, pass `this` to read_cutu_die_from_dwo.
11363
e5da1139
AM
113642020-02-27 Aaron Merey <amerey@redhat.com>
11365
11366 * source.c (open_source_file): Check for nullptr when computing
11367 srcpath.
11368
317f7127
TT
113692020-02-27 Tom Tromey <tromey@adacore.com>
11370
11371 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11372 member.
11373 (dwarf2_add_field): Don't update nfields.
11374 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11375
3104d9ee
AB
113762020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11377
11378 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11379 abs.
11380
b83470bf
TT
113812020-02-26 Tom Tromey <tom@tromey.com>
11382
11383 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11384 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11385 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11386 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11387 per_cu_data.
11388
edfe0a0c
TT
113892020-02-26 Tom Tromey <tom@tromey.com>
11390
11391 * dwarf2/index-write.c (psym_index_map): Change type.
11392 (add_address_entry_worker, write_one_signatured_type)
11393 (recursively_count_psymbols, recursively_write_psymbols)
11394 (class debug_names, psyms_seen_size, write_gdbindex)
11395 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11396
0d79cdc4
AM
113972020-02-26 Aaron Merey <amerey@redhat.com>
11398
11399 * Makefile.in: Handle optional debuginfod support.
11400 * NEWS: Update.
11401 * README: Add --with-debuginfod summary.
11402 * config.in: Regenerate.
11403 * configure: Regenerate.
11404 * configure.ac: Handle optional debuginfod support.
11405 * debuginfod-support.c: debuginfod helper functions.
11406 * debuginfod-support.h: Ditto.
11407 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11408 summary.
11409 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11410 when a dwz file cannot be found.
11411 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11412 debuginfo file cannot be found.
11413 * source.c (open_source_file): Query debuginfod servers when a
11414 source file cannot be found.
11415 * top.c (print_gdb_configuration): Include
11416 --{with,without}-debuginfod in the output.
11417
b65ce565
JG
114182020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11419
11420 * thread.c (thr_try_catch_cmd): Print thread name.
11421
d4c9a4f8
SM
114222020-02-26 Simon Marchi <simon.marchi@efficios.com>
11423
11424 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11425 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11426 dwarf2_fetch_die_type_sect_off): Move to...
11427 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11428 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11429 dwarf2_fetch_die_type_sect_off): ... here.
11430 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11431 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11432 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11433
0dce4280
TV
114342020-02-26 Tom de Vries <tdevries@suse.de>
11435
11436 PR gdb/25603
11437 * symfile.c (set_initial_language): Exit-early if
11438 language_mode == language_mode_manual.
11439
450a1bfc
SM
114402020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11441
11442 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11443 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11444 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11445
9e80cfa1
AB
114462020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11447
11448 * gdbtypes.c (create_array_type_with_stride): Handle negative
11449 array strides.
11450 * valarith.c (value_subscripted_rvalue): Likewise.
11451
09624f1f
LM
114522020-02-25 Luis Machado <luis.machado@linaro.org>
11453
11454 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11455
8cb5117c
SM
114562020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11457
11458 * loc.h (dwarf2_get_die_type): Move to...
11459 * read.h (dwarf2_get_die_type): ... here.
11460 * read.c (dwarf2_get_die_type): Move doc to header.
11461
c325c44e
JB
114622020-02-25 Joel Brobecker <brobecker@adacore.com>
11463
11464 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11465 'gnulib/Makefile.in' to the list.
11466
4ac93832
TT
114672020-02-24 Tom Tromey <tom@tromey.com>
11468
11469 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11470 Remove.
11471 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11472 XOBNEWVEC.
11473
197400e8
TT
114742020-02-24 Tom Tromey <tom@tromey.com>
11475
11476 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11477 New method.
11478 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11479 (dw2_do_instantiate_symtab, dw2_get_file_names)
11480 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11481
76935768
TT
114822020-02-24 Tom Tromey <tom@tromey.com>
11483
11484 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11485 make_scoped_restore.
11486 (dwarf2_psymtab::read_symtab): Don't clear
11487 reading_partial_symbols.
11488
a88ef40d
TV
114892020-02-24 Tom de Vries <tdevries@suse.de>
11490
11491 PR gdb/25592
11492 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11493
c9af6521
TV
114942020-02-24 Tom de Vries <tdevries@suse.de>
11495
11496 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11497 commands layout next/prev/regs.
11498
5707a07a
TT
114992020-02-22 Tom Tromey <tom@tromey.com>
11500
11501 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11502 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11503
3b0fb49e
TT
115042020-02-22 Tom Tromey <tom@tromey.com>
11505
11506 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11507
283be8bf
TT
115082020-02-22 Tom Tromey <tom@tromey.com>
11509
11510 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11511 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11512 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11513 * tui/tui.c (_initialize_tui): Add usage text.
11514
ca793b96
TT
115152020-02-22 Tom Tromey <tom@tromey.com>
11516
11517 * tui/tui-win.c (tui_set_focus_command)
11518 (tui_set_win_height_command): Use error_no_arg.
11519 (_initialize_tui_win): Update help text.
11520 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11521
432b5c40
TT
115222020-02-22 Tom Tromey <tom@tromey.com>
11523
11524 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11525 * tui/tui-disasm.h (struct tui_disasm_window)
11526 <display_start_addr>: Declare.
11527 * tui/tui-source.h (struct tui_source_window)
11528 <display_start_addr>: Declare.
11529 * tui/tui-winsource.h (struct tui_source_window_base)
11530 <show_source_line, display_start_addr>: New methods.
11531 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11532 Rename and move to protected section.
11533 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11534 (tui_source_window_base::do_erase_source_content): Update.
11535 (tui_source_window_base::show_source_line): Now a method.
11536 (tui_source_window_base::show_source_content)
11537 (tui_source_window_base::tui_source_window_base)
11538 (tui_source_window_base::rerender)
11539 (tui_source_window_base::refill)
11540 (tui_source_window_base::do_scroll_horizontal)
11541 (tui_source_window_base::set_is_exec_point_at)
11542 (tui_source_window_base::update_breakpoint_info)
11543 (tui_source_window_base::update_exec_info): Update.
11544 * tui/tui-source.c (tui_source_window::set_contents)
11545 (tui_source_window::showing_source_p)
11546 (tui_source_window::do_scroll_vertical)
11547 (tui_source_window::location_matches_p)
11548 (tui_source_window::line_is_displayed): Update.
11549 (tui_source_window::display_start_addr): New method.
11550 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11551 (tui_disasm_window::do_scroll_vertical)
11552 (tui_disasm_window::location_matches_p): Update.
11553 (tui_disasm_window::display_start_addr): New method.
11554
01b1af32
TT
115552020-02-22 Tom Tromey <tom@tromey.com>
11556
11557 * NEWS: Add entry for gdb.register_window_type.
11558 * tui/tui-layout.h (window_factory): New typedef.
11559 (tui_register_window): Declare.
11560 * tui/tui-layout.c (saved_tui_windows): New global.
11561 (tui_apply_current_layout): Use it.
11562 (tui_register_window): New function.
11563 * python/python.c (do_start_initialization): Call
11564 gdbpy_initialize_tui.
11565 (python_GdbMethods): Add "register_window_type" function.
11566 * python/python-internal.h (gdbpy_register_tui_window)
11567 (gdbpy_initialize_tui): Declare.
11568 * python/py-tui.c: New file.
11569 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11570
fc96d20b
TT
115712020-02-22 Tom Tromey <tom@tromey.com>
11572
11573 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11574
935c78c0
TT
115752020-02-22 Tom Tromey <tom@tromey.com>
11576
11577 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11578 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11579 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11580 (tui_set_win_focus_to): Move from tui-win.c.
11581
0240c8f1
TT
115822020-02-22 Tom Tromey <tom@tromey.com>
11583
11584 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11585 functions.
11586 (known_window_types): New global.
11587 (tui_get_window_by_name): Reimplement.
11588 (initialize_known_windows): New function.
11589 (validate_window_name): Rewrite.
11590 (_initialize_tui_layout): Call initialize_known_windows.
11591
fdb01f0c
TT
115922020-02-22 Tom Tromey <tom@tromey.com>
11593
11594 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11595 Remove constants.
11596 * tui/tui-winsource.h (struct tui_source_window_base)
11597 <tui_source_window_base>: Remove parameter.
11598 * tui/tui-winsource.c
11599 (tui_source_window_base::tui_source_window_base): Remove
11600 parameter.
11601 (tui_source_window_base::refill): Update.
11602 * tui/tui-stack.h (struct tui_locator_window)
11603 <tui_locator_window>: Update.
11604 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11605 Default the constructor.
11606 * tui/tui-regs.h (struct tui_data_item_window)
11607 <tui_data_item_window>: Default the constructor.
11608 (struct tui_data_window) <tui_data_window>: Likewise.
11609 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11610 Default the constructor.
11611 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11612 Default the constructor.
11613 <type>: Remove.
11614 (struct tui_win_info) <tui_win_info>: Default the constructor.
11615 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11616 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11617 Default the constructor.
11618
865a5aec
TT
116192020-02-22 Tom Tromey <tom@tromey.com>
11620
11621 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11622 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11623 * tui/tui-win.c (tui_resize_all): Don't call
11624 tui_delete_invisible_windows.
11625 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11626 done.
11627 (tui_set_layout): Update.
11628 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11629 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11630 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11631
e098d18c
TT
116322020-02-22 Tom Tromey <tom@tromey.com>
11633
11634 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11635 correctly.
11636
eb9c8874
TT
116372020-02-22 Tom Tromey <tom@tromey.com>
11638
11639 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11640
7eed1a8e
TT
116412020-02-22 Tom Tromey <tom@tromey.com>
11642
11643 * tui/tui-winsource.h (struct tui_source_window_iterator)
11644 <inner_iterator>: New etytypedef.
11645 <tui_source_window_iterator>: Take "end" parameter.
11646 <tui_source_window_iterator>: Take iterator.
11647 <operator*, advance>: Update.
11648 <m_iter>: Change type.
11649 <m_end>: New field.
11650 (struct tui_source_windows) <begin, end>: Update.
11651 * tui/tui-layout.c (tui_windows): New global.
11652 (tui_apply_current_layout): Clear tui_windows.
11653 (tui_layout_window::apply): Update tui_windows.
11654 * tui/tui-data.h (tui_windows): Declare.
11655 (all_tui_windows): Now inline function.
11656 (class tui_window_iterator, struct all_tui_windows): Remove.
11657
7c043ba6
TT
116582020-02-22 Tom Tromey <tom@tromey.com>
11659
11660 PR tui/17850:
11661 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11662 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11663 "height" argument.
11664 (class tui_layout_window) <get_sizes>: Likewise.
11665 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11666 argument.
11667 <get_sizes>: Add "height" argument.
11668 <m_vertical>: New field.
11669 * tui/tui-layout.c (tui_layout_split::clone): Update.
11670 (tui_layout_split::get_sizes): Add "height" argument.
11671 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11672 (tui_new_layout_command): Parse "-horizontal".
11673 (_initialize_tui_layout): Update help string.
11674 (tui_layout_split::specification): Add "-horizontal" when needed.
11675 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11676 argument.
11677 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11678 New methods.
11679
6bc56648
TT
116802020-02-22 Tom Tromey <tom@tromey.com>
11681
11682 * tui/tui-layout.h (enum tui_adjust_result): New.
11683 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11684 (class tui_layout_window) <adjust_size>: Return
11685 tui_adjust_result. Rewrite.
11686 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11687 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11688
c22fef7e
TT
116892020-02-22 Tom Tromey <tom@tromey.com>
11690
11691 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11692 parameter and return types.
11693 (class tui_layout_base) <specification>: Add "depth".
11694 (class tui_layout_window) <specification>: Add "depth".
11695 (class tui_layout_split) <specification>: Add "depth".
11696 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11697 and return types.
11698 (tui_new_layout_command): Parse sub-layouts.
11699 (_initialize_tui_layout): Update help string.
11700 (tui_layout_window::specification): Add "depth".
11701 (add_layout_command): Update.
11702
ee325b61
TT
117032020-02-22 Tom Tromey <tom@tromey.com>
11704
11705 * NEWS: Add "tui new-layout" item.
11706 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11707 Add new-layout command to help text.
11708 (validate_window_name): New function.
11709 (tui_new_layout_command): New function.
11710 (_initialize_tui_layout): Register "new-layout".
11711 (tui_layout_window::specification): New method.
11712 (tui_layout_window::specification): New method.
11713 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11714 method.
11715 (class tui_layout_window) <specification>: New method.
11716 (class tui_layout_split) <specification>: New method.
11717
416eb92d
TT
117182020-02-22 Tom Tromey <tom@tromey.com>
11719
11720 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11721 * tui/tui-win.c (window_name_completer): Update comment.
11722 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11723 Declare method.
11724 (class tui_layout_window) <replace_window>: Likewise.
11725 (class tui_layout_split) <replace_window>: Likewise.
11726 (tui_set_layout): Don't declare.
11727 (tui_set_initial_layout): Declare function.
11728 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11729 (asm_regs_layout): New globals.
11730 (tui_current_layout, show_layout): Remove.
11731 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11732 (find_layout, tui_apply_layout): New function.
11733 (layout_completer): Remove.
11734 (tui_next_layout): Reimplement.
11735 (tui_next_layout_command): New function.
11736 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11737 (tui_regs_layout): Reimplement.
11738 (tui_regs_layout_command): New function.
11739 (extract_display_start_addr): Rewrite.
11740 (next_layout, prev_layout): Remove.
11741 (tui_layout_window::replace_window): New method.
11742 (tui_layout_split::replace_window): New method.
11743 (destroy_layout): New function.
11744 (layout_list): New global.
11745 (add_layout_command): New function.
11746 (initialize_layouts): Update.
11747 (tui_layout_command): New function.
11748 (_initialize_tui_layout): Install "layout" commands.
11749 * tui/tui-data.h (enum tui_layout_type): Remove.
11750 (tui_current_layout): Don't declare.
11751
0dbc2fc7
TT
117522020-02-22 Tom Tromey <tom@tromey.com>
11753
11754 * tui/tui-regs.c (tui_reg_layout): Remove.
11755 (tui_reg_command): Use tui_regs_layout.
11756 * tui/tui-layout.h (tui_reg_command): Declare.
11757 * tui/tui-layout.c (tui_reg_command): New function.
11758
5afe342e
TT
117592020-02-22 Tom Tromey <tom@tromey.com>
11760
11761 * tui/tui.c (tui_rl_delete_other_windows): Call
11762 tui_remove_some_windows.
11763 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11764 Declare method.
11765 (class tui_layout_window) <remove_windows>: New method.
11766 (class tui_layout_split) <remove_windows>: Declare.
11767 (tui_remove_some_windows): Declare.
11768 * tui/tui-layout.c (tui_remove_some_windows): New function.
11769 (tui_layout_split::remove_windows): New method.
11770
427326a8
TT
117712020-02-22 Tom Tromey <tom@tromey.com>
11772
11773 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11774 * tui/tui-layout.h (tui_next_layout): Declare.
11775 * tui/tui-layout.c (tui_next_layout): New function.
11776
3fe12b6d
TT
117772020-02-22 Tom Tromey <tom@tromey.com>
11778
11779 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11780 correct coordinates.
11781
59b8b5d2
TT
117822020-02-22 Tom Tromey <tom@tromey.com>
11783
11784 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11785 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11786 DATA_WIN case.
11787
2a3d458b
TT
117882020-02-22 Tom Tromey <tom@tromey.com>
11789
11790 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11791 TUI_DISASM_WIN, not tui_win_list.
11792
3f0cbb04
TT
117932020-02-22 Tom Tromey <tom@tromey.com>
11794
11795 * valprint.c (generic_val_print_enum_1)
11796 (val_print_type_code_flags): Style member names.
11797 * rust-lang.c (val_print_struct, rust_print_enum)
11798 (rust_print_struct_def, rust_internal_print_type): Style member
11799 names.
11800 * p-valprint.c (pascal_object_print_value_fields): Style member
11801 names. Only call fprintf_symbol_filtered for static members.
11802 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11803 * f-valprint.c (f_val_print): Style member names.
11804 * f-typeprint.c (f_type_print_base): Style member names.
11805 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11806 call fprintf_symbol_filtered for static members.
11807 (cp_print_class_member): Style member names.
11808 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11809 member names.
11810 * ada-valprint.c (ada_print_scalar): Style enum names.
11811 (ada_val_print_enum): Likewise.
11812 * ada-typeprint.c (print_enum_type): Style enum names.
11813
d4d947ae
TT
118142020-02-21 Tom Tromey <tom@tromey.com>
11815
11816 * psympriv.h (struct partial_symtab): Update comment.
11817
e94e944b
TT
118182020-02-21 Tom Tromey <tromey@adacore.com>
11819
11820 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11821 type is CORE_ADDR.
11822
1eb73179
TV
118232020-02-21 Tom de Vries <tdevries@suse.de>
11824
11825 PR gdb/25534
11826 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11827 if dependencies[i]->user != NULL.
11828
4f180d53
AT
118292020-02-21 Ali Tamur <tamur@google.com>
11830
11831 * dwarf2/read.c (dwarf2_name): Add null check.
11832
22b6cd70
TT
118332020-02-20 Tom Tromey <tom@tromey.com>
11834
11835 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11836 ">=", in binary search.
11837 (dwarf2_find_containing_comp_unit): New overload.
11838 (run_test): New self-test.
11839 (_initialize_dwarf2_read): Register new test.
11840
bd0cf5a6
NC
118412020-02-20 Nelson Chu <nelson.chu@sifive.com>
11842
11843 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11844 * riscv-tdep.h: Likewise.
11845 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11846 rv32-only CSR.
11847 * features/riscv/64bit-csr.xml: Regenerated.
11848
3f702acd
SDJ
118492020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11850 Tom Tromey <tom@tromey.com>
11851
11852 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11853 of 'fputc_unfiltered'.
11854 (putchar_unfiltered): Call 'fputc_unfiltered'.
11855 (fputc_unfiltered): Call 'fputs_unfiltered'.
11856
d13c7322
AB
118572020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11858
11859 * config.in: Regenerate.
11860 * configure: Regenerate.
11861 * configure.ac: Add --with-python-libdir option.
11862 * main.c: Use WITH_PYTHON_LIBDIR.
11863
869d8950
TT
118642020-02-19 Tom Tromey <tom@tromey.com>
11865
11866 * symtab.c (general_symbol_info::compute_and_set_names): Use
11867 obstack_strndup. Simplify call to symbol_set_demangled_name.
11868
298e9637
SM
118692020-02-19 Simon Marchi <simon.marchi@efficios.com>
11870
11871 * dwarf2/read.c (allocate_signatured_type_table,
11872 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11873 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11874 Remove objfile parameter, update all callers.
11875
08410482
DE
118762020-02-19 Doug Evans <dje@google.com>
11877
11878 PR rust/25535
11879 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11880 rust_enum_variant calculation.
11881
dfdeeca1
TT
118822020-02-19 Tom Tromey <tromey@adacore.com>
11883
11884 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11885
2ef5453b
TT
118862020-02-19 Tom Tromey <tromey@adacore.com>
11887
11888 * ada-lang.c (cache_symbol): Use obstack_strdup.
11889
9f1528a1
AB
118902020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11891
11892 * configure: Regenerate.
11893
d3c22fa8
TT
118942020-02-19 Tom Tromey <tromey@adacore.com>
11895
11896 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11897 NULL check.
11898
bf84f706
MR
118992020-02-19 Maciej W. Rozycki <macro@wdc.com>
11900
11901 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11902
d1c9b20f
AB
119032020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11904
11905 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11906 if GDBSERVER is not defined.
11907 (riscv_tdesc_cache): Likewise, also store const target_desc.
11908 (STATIC_IN_GDB): Define.
11909 (riscv_create_target_description): Update declaration with
11910 STATIC_IN_GDB.
11911 (riscv_lookup_target_description): New function, only define if
11912 GDBSERVER is not defined.
11913 * arch/riscv.h (riscv_create_target_description): Declare only
11914 when GDBSERVER is defined.
11915 (riscv_lookup_target_description): New declaration when GDBSERVER
11916 is not defined.
11917 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11918 (riscv_linux_read_features): ...this, and return
11919 riscv_gdbarch_features instead of target_desc.
11920 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11921 (riscv_linux_read_description): Rename to...
11922 (riscv_linux_read_features): ...this.
11923 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11924 Update to use riscv_gdbarch_features and
11925 riscv_lookup_target_description.
11926 * riscv-tdep.c (riscv_find_default_target_description): Use
11927 riscv_lookup_target_description instead of
11928 riscv_create_target_description.
11929
373d7ac0
SM
119302020-02-18 Simon Marchi <simon.marchi@efficios.com>
11931
11932 * valprint.c (generic_val_print_enum_1): When printing a flag
11933 enum with value 0 and there is no enumerator with value 0, print
11934 just "0" instead of "(unknown: 0x0)".
11935
b29a2df0
SM
119362020-02-18 Simon Marchi <simon.marchi@efficios.com>
11937
11938 * valprint.c (generic_val_print_enum_1): Print unknown part of
11939 flag enum in hex.
11940
6740f0cc
SM
119412020-02-18 Simon Marchi <simon.marchi@efficios.com>
11942
11943 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11944 flag enums to contain duplicate enumerators.
11945 * valprint.c (generic_val_print_enum_1): Update comment.
11946
edd45eb0
SM
119472020-02-18 Simon Marchi <simon.marchi@efficios.com>
11948
11949 * dwarf2/read.c: Include "count-one-bits.h".
11950 (update_enumeration_type_from_children): If an enumerator has
11951 multiple bits set, don't treat the enumeration as a "flag enum".
11952 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11953 of flag enums have 0 or 1 bit set.
11954
6d0cf446
BE
119552020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11956
11957 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11958 conversion.
11959 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11960 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11961 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11962 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11963 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11964
7001c1b7
SM
119652020-02-18 Simon Marchi <simon.marchi@efficios.com>
11966
11967 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11968
fdb61c6c
SM
119692020-02-14 Simon Marchi <simon.marchi@efficios.com>
11970
11971 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11972 displaced_step_closure_up.
11973 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11974 (struct displaced_step_closure_up):
11975 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11976 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11977 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11978 Likewise.
11979 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11980 * gdbarch.c, gdbarch.h: Re-generate.
11981 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11982 displaced_step_closure_up.
11983 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11984 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11985 * infrun.h (displaced_step_closure_up): New type alias.
11986 (struct displaced_step_inferior_state) <step_closure>: Change
11987 type to displaced_step_closure_up.
11988 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11989 displaced_step_closure_up.
11990 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11991
a4a38eb4
TT
119922020-02-14 Tom Tromey <tom@tromey.com>
11993
11994 * minidebug.c (gnu_debug_key): New global.
11995 (find_separate_debug_file_in_section): Use it.
11996
e8217e61
SM
119972020-02-14 Simon Marchi <simon.marchi@efficios.com>
11998
11999 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12000 std::unique_ptr.
12001 * gdbarch.c: Re-generate.
12002 * gdbarch.h: Re-generate.
12003 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12004 change.
12005 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12006 type to std::unique_ptr.
12007 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12008 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12009 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12010 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12011 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12012 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12013 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12014 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12015 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12016
d8d83535
SM
120172020-02-14 Simon Marchi <simon.marchi@efficios.com>
12018
12019 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12020 std::unique_ptr.
12021 (displaced_step_clear): Rename to...
12022 (displaced_step_reset): ... this. Just call displaced->reset ().
12023 (displaced_step_clear_cleanup): Rename to...
12024 (displaced_step_reset_cleanup): ... this.
12025 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12026 (displaced_step_fixup): Likewise.
12027 (resume_1): Likewise.
12028 (handle_inferior_event): Restore child's memory before calling
12029 displaced_step_fixup on the parent.
12030 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12031 to std::unique_ptr.
12032 <step_closure>: Change type to std::unique_ptr.
12033
5f661e03
SM
120342020-02-14 Simon Marchi <simon.marchi@efficios.com>
12035
12036 * arm-tdep.c: Include count-one-bits.h.
12037 (cleanup_block_store_pc): Use count_one_bits.
12038 (cleanup_block_load_pc): Use count_one_bits.
12039 (arm_copy_block_xfer): Use count_one_bits.
12040 (thumb2_copy_block_xfer): Use count_one_bits.
12041 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12042 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12043 (thumb_get_next_pcs_raw): Use count_one_bits.
12044 (arm_get_next_pcs_raw): Use count_one_bits_l.
12045 * arch/arm.c (bitcount): Remove.
12046 * arch/arm.h (bitcount): Remove.
12047
8084e579
TT
120482020-02-14 Tom Tromey <tromey@adacore.com>
12049
12050 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12051 Update.
12052 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12053 * dwarf2/loc.c (call_site_find_chain_1): Return
12054 unique_xmalloc_ptr.
12055 (call_site_find_chain): Likewise.
12056
258bf0ee
RB
120572020-02-14 Richard Biener <rguenther@suse.de>
12058
12059 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12060 on expression with division operators.
12061
f98a8458
AKS
120622020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12063
12064 * MAINTAINERS (Write After Approval): Adding myself.
12065
d1437c0e
TT
120662020-02-12 Tom Tromey <tom@tromey.com>
12067
12068 * event-loop.c (event_data, gdb_event, event_handler_func):
12069 Remove.
12070
3d4560f7
TT
120712020-02-12 Tom Tromey <tom@tromey.com>
12072
12073 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12074 (dwarf2_frame_objfile_data): Add comment.
12075 (find_comp_unit, set_comp_unit): New functions.
12076 (dwarf2_frame_find_fde): Use find_comp_unit.
12077 (dwarf2_build_frame_info): Use set_comp_unit.
12078
21982304
TT
120792020-02-12 Tom Tromey <tom@tromey.com>
12080
12081 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12082 (comp_unit): Don't initialize objfile.
12083 (execute_cfa_program): Add text_offset parameter.
12084 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12085 (dwarf2_frame_cache): Update.
12086 (dwarf2_build_frame_info): Don't set "objfile" member.
12087
4debb237
TT
120882020-02-12 Tom Tromey <tom@tromey.com>
12089
12090 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12091 (decode_frame_entry): Likewise.
12092 (dwarf2_build_frame_info): Update.
12093
0d404d44
TT
120942020-02-12 Tom Tromey <tom@tromey.com>
12095
12096 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12097 (decode_frame_entry_1): Use the comp_unit obstack.
12098
a7a3ae5c
TT
120992020-02-12 Tom Tromey <tom@tromey.com>
12100
12101 * dwarf2/frame.c (struct comp_unit): Add initializers and
12102 constructor.
12103 (dwarf2_frame_objfile_data): Store a comp_unit.
12104 (dwarf2_frame_find_fde): Update.
12105 (dwarf2_build_frame_info): Use "new".
12106
a9d65418
TT
121072020-02-12 Tom Tromey <tom@tromey.com>
12108
12109 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12110 (dwarf2_fde_table): Typedef for std::vector.
12111 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12112 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12113 (decode_frame_entry): Update.
12114 (dwarf2_build_frame_info): Use "new".
12115
7559c217
CB
121162020-02-12 Christian Biesinger <cbiesinger@google.com>
12117
12118 * arm-tdep.c (arm_gdbarch_init): Update.
12119 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12120 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12121 have_neon, is_m>: Change to bool.
12122
aeefc73c
CB
121232020-02-12 Christian Biesinger <cbiesinger@google.com>
12124
12125 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12126
d27b8e5f
TT
121272020-02-12 Tom Tromey <tom@tromey.com>
12128
12129 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12130
cd5900f3
HD
121312020-02-12 Hannes Domani <ssbssa@yahoo.de>
12132
12133 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12134 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12135
f056b22b
TT
121362020-02-11 Tom Tromey <tom@tromey.com>
12137
12138 * psymtab.h: Update comment.
12139
f92ff6b5
TT
121402020-02-11 Tom Tromey <tom@tromey.com>
12141
12142 * gdb_obstack.h (struct auto_obstack): Use
12143 DISABLE_COPY_AND_ASSIGN.
12144
3fd6912b
TT
121452020-02-11 Tom Tromey <tom@tromey.com>
12146
12147 * dwarf2/frame.h (struct objfile): Don't forward declare.
12148
69ed9b74
CB
121492020-02-11 Christian Biesinger <cbiesinger@google.com>
12150
12151 * cris-tdep.c (cris_supply_gregset): Change signature to match
12152 what struct regset expects.
12153 (cris_regset): New struct.
12154 (fetch_core_registers): Remove.
12155 (cris_iterate_over_regset_sections): New function.
12156 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12157 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12158
bda874f6
CB
121592020-02-11 Christian Biesinger <cbiesinger@google.com>
12160
12161 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12162 registers.
12163
754e1564
CB
121642020-02-11 Christian Biesinger <cbiesinger@google.com>
12165
12166 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12167
8ddd8e0e
SM
121682020-02-11 Simon Marchi <simon.marchi@efficios.com>
12169
12170 * configure: Re-generate.
12171
898e7f60
SM
121722020-02-11 Simon Marchi <simon.marchi@efficios.com>
12173
12174 * configure: Re-generate.
12175
58df732b
SM
121762020-02-11 Simon Marchi <simon.marchi@efficios.com>
12177
12178 * acinclude: Update warning.m4 path.
12179 * warning.m4: Move to gdbsupport.
12180
da5bd37e
TT
121812020-02-11 Tom Tromey <tromey@adacore.com>
12182
12183 * remote.c (remote_console_output): Update.
12184 * printcmd.c (printf_command): Update.
12185 * event-loop.c (gdb_wait_for_event): Update.
12186 * linux-nat.c (sigchld_handler): Update.
12187 * remote-sim.c (gdb_os_write_stdout): Update.
12188 (gdb_os_flush_stdout): Update.
12189 (gdb_os_flush_stderr): Update.
12190 (gdb_os_write_stderr): Update.
12191 * exceptions.c (print_exception): Update.
12192 * remote-fileio.c (remote_fileio_func_read): Update.
12193 (remote_fileio_func_write): Update.
12194 * tui/tui.c (tui_enable): Update.
12195 * tui/tui-interp.c (tui_interp::init): Update.
12196 * utils.c (init_page_info): Update.
12197 (putchar_unfiltered, fputc_unfiltered): Update.
12198 (gdb_flush): Update.
12199 (emit_style_escape): Update.
12200 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12201 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12202 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12203 (stderr_file::write): Update.
12204 (stderr_file::puts): Update.
12205 * ui-file.h (ui_file_isatty, ui_file_write)
12206 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12207 (ui_file_puts): Don't declare.
12208
85f0dd3c
TV
122092020-02-10 Tom de Vries <tdevries@suse.de>
12210
12211 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12212 sentinel to char *.
12213
2e927613
TV
122142020-02-09 Tom de Vries <tdevries@suse.de>
12215
12216 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12217 filename if it matches "<artificial>".
12218
6bafc845
HD
122192020-02-09 Hannes Domani <ssbssa@yahoo.de>
12220
12221 * windows-tdep.c (struct enum_value_name): New struct.
12222 (create_enum): New function.
12223 (windows_get_siginfo_type): Create and use enum types.
12224
7928d571
HD
122252020-02-09 Hannes Domani <ssbssa@yahoo.de>
12226
12227 * NEWS: Mention $_siginfo support for Windows.
12228 * windows-nat.c (handle_exception): Set siginfo_er.
12229 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12230 (windows_xfer_siginfo): New function.
12231 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12232 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12233 (init_windows_gdbarch_data): New function.
12234 (get_windows_gdbarch_data): New function.
12235 (windows_get_siginfo_type): New function.
12236 (windows_init_abi): Register windows_get_siginfo_type.
12237 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12238
6751ebae
TT
122392020-02-08 Tom Tromey <tom@tromey.com>
12240
12241 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12242 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12243 <keep>: Declare method.
12244 <m_keep>: Remove member.
12245 <~cutu_reader>: Remove.
12246 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12247 (cutu_reader::cutu_reader): Update.
12248 (cutu_reader::keep): Rename from ~cutu_reader.
12249 (process_psymtab_comp_unit, build_type_psymtabs_1)
12250 (process_skeletonless_type_unit, load_partial_comp_unit)
12251 (load_full_comp_unit, dwarf2_read_addr_index)
12252 (read_signatured_type): Update.
12253
135f5437
TT
122542020-02-08 Tom Tromey <tom@tromey.com>
12255
12256 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12257 "want_partial_unit" parameter.
12258 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12259 Inline check for DW_TAG_partial_unit.
12260 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12261
9f66ff1c
TT
122622020-02-08 Tom Tromey <tom@tromey.com>
12263
12264 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12265 read.c.
12266 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12267 read.c.
12268
c8a7a66f
TT
122692020-02-08 Tom Tromey <tom@tromey.com>
12270
12271 * dwarf2/read.c (read_address): Move to comp-unit.c.
12272 (dwarf2_rnglists_process, dwarf2_ranges_process)
12273 (read_attribute_value, dwarf_decode_lines_1)
12274 (var_decode_location, decode_locdesc): Update.
12275 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12276 read.c. Remove "cu" parameter.
12277 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12278 method.
12279
8266302d
TT
122802020-02-08 Tom Tromey <tom@tromey.com>
12281
12282 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12283 (read_indirect_line_string): Update.
12284 * dwarf2/comp-unit.c (read_offset): Remove.
12285 (read_comp_unit_head): Update.
12286 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12287 method.
12288 (read_offset): Don't declare.
12289
4057dfde
TT
122902020-02-08 Tom Tromey <tom@tromey.com>
12291
12292 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12293 * dwarf2/read.c (struct comp_unit_head): Move to
12294 dwarf2/comp-unit.h.
12295 (enum class rcuh_kind): Move to comp-unit.h.
12296 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12297 (read_comp_unit_head, error_check_comp_unit_head)
12298 (read_and_check_comp_unit_head): Move to comp-unit.c.
12299 (read_offset, dwarf_unit_type_name): Likewise.
12300 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12301 (cutu_reader::cutu_reader, read_call_site_scope)
12302 (find_partial_die, follow_die_offset): Update.
12303 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12304
24aa364d
TT
123052020-02-08 Tom Tromey <tom@tromey.com>
12306
12307 * dwarf2/read.c (read_offset_1): Move to leb.c.
12308 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12309 (dwarf_decode_macro_bytes): Update.
12310 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12311 * dwarf2/leb.h (read_offset): Declare.
12312
2c7d5afc
TT
123132020-02-08 Tom Tromey <tom@tromey.com>
12314
12315 * dwarf2/read.c (dwarf2_section_size): Remove.
12316 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12317 Update.
12318 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12319
4075cb26
TT
123202020-02-08 Tom Tromey <tom@tromey.com>
12321
12322 * dwarf2/read.c (read_initial_length): Move to leb.c.
12323 * dwarf2/leb.h (read_initial_length): Declare.
12324 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12325 handle_nonstd parameter.
12326 * dwarf2/frame.c (read_initial_length): Remove.
12327 (decode_frame_entry_1): Update.
12328
09ba997f
TT
123292020-02-08 Tom Tromey <tom@tromey.com>
12330
12331 * dwarf2/loc.c (dwarf2_find_location_expression)
12332 (dwarf_evaluate_loc_desc::get_tls_address)
12333 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12334 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12335 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12336 (dwarf2_compile_property_to_c)
12337 (dwarf2_loc_desc_get_symbol_read_needs)
12338 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12339 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12340 (loclist_describe_location, loclist_tracepoint_var_ref)
12341 (loclist_generate_c_location): Update.
12342 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12343 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12344 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12345 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12346 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12347 (dwarf2_per_cu_data::addr_size)
12348 (dwarf2_per_cu_data::ref_addr_size)
12349 (dwarf2_per_cu_data::text_offset)
12350 (dwarf2_per_cu_data::addr_type): Now methods.
12351 (per_cu_header_read_in): Make per_cu "const".
12352 (dwarf2_version): Remove.
12353 (dwarf2_per_cu_data::int_type): Now a method.
12354 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12355 (set_die_type, read_array_type, read_subrange_index_type)
12356 (read_tag_string_type, read_subrange_type): Update.
12357 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12358 offset_size, ref_addr_size, text_offset, addr_type, version,
12359 objfile, int_type, addr_sized_int_type>: Declare methods.
12360
96c738c0
TT
123612020-02-08 Tom Tromey <tom@tromey.com>
12362
12363 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12364 Move earlier.
12365
8fdd972c
TT
123662020-02-08 Tom Tromey <tom@tromey.com>
12367
12368 * dwarf2/read.h (dwarf_line_debug): Declare.
12369 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12370 * dwarf2/read.c: Move line_header code to new files.
12371 (dwarf_line_debug): No longer static.
12372 * dwarf2/line-header.c: New file.
12373 * dwarf2/line-header.h: New file.
12374
03075812
TT
123752020-02-08 Tom Tromey <tom@tromey.com>
12376
12377 * dwarf2/read.c (struct line_header) <file_full_name,
12378 file_file_name>: Return unique_xmalloc_ptr.
12379 (line_header::file_file_name): Update.
12380 (line_header::file_full_name): Update.
12381 (dw2_get_file_names_reader): Update.
12382 (macro_start_file): Update.
12383
bb822404
TT
123842020-02-08 Tom Tromey <tom@tromey.com>
12385
12386 * dwarf2/read.c (struct line_header) <file_full_name,
12387 file_file_name>: Declare methods.
12388 (dw2_get_file_names_reader): Update.
12389 (file_file_name): Now a method.
12390 (file_full_name): Likewise.
12391 (macro_start_file): Update.
12392
009b64fc
TT
123932020-02-08 Tom Tromey <tom@tromey.com>
12394
12395 * dwarf2/read.c (dwarf_always_disassemble)
12396 (show_dwarf_always_disassemble): Move to loc.c.
12397 (_initialize_dwarf2_read): Move "always-disassemble" registration
12398 to loc.c.
12399 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12400 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12401 static.
12402 (show_dwarf_always_disassemble): Move from read.c.
12403 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12404
5895093f
TT
124052020-02-08 Tom Tromey <tom@tromey.com>
12406
12407 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12408 (create_quick_file_names_table): Return htab_up.
12409 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12410 Update.
12411 * dwarf2/read.h (struct dwarf2_per_objfile)
12412 <quick_file_names_table>: Now htab_up.
12413
b3b32279
TT
124142020-02-08 Tom Tromey <tom@tromey.com>
12415
12416 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12417
1d33d811
TT
124182020-02-08 Tom Tromey <tom@tromey.com>
12419
12420 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12421 Rewrite.
12422 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12423 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12424 (abbrev_table::abbrev_table): No longer inline.
12425 (ABBREV_HASH_SIZE): Remove.
12426 (abbrev_table::m_abbrevs): Now an htab_up.
12427
86de1d91
TT
124282020-02-08 Tom Tromey <tom@tromey.com>
12429
12430 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12431 (cutu_reader): Update.
12432 (build_type_psymtabs_1): Update.
12433 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12434 (abbrev_table::alloc_abbrev): Update.
12435 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12436 (abbrev_table::read): New static method, renamed from
12437 abbrev_table_read_table.
12438 (abbrev_table::alloc_abbrev)
12439 (abbrev_table::add_abbrev): Now private.
12440 (abbrev_table::abbrev_table): Now private.
12441 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12442
0335378b
TT
124432020-02-08 Tom Tromey <tom@tromey.com>
12444
12445 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12446 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12447 htab_up.
12448
48b490f2
TT
124492020-02-08 Tom Tromey <tom@tromey.com>
12450
12451 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12452 htab_up.
12453 (lookup_dwo_unit_in_dwp): Update.
12454 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12455 on obstack.
12456
bc68fb19
TT
124572020-02-08 Tom Tromey <tom@tromey.com>
12458
12459 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12460 obstack.
12461
d15acc42
TT
124622020-02-08 Tom Tromey <tom@tromey.com>
12463
12464 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12465 line_header_hash.
12466 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12467 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12468 Change type to htab_up.
12469
eaa5fa8b
TT
124702020-02-08 Tom Tromey <tom@tromey.com>
12471
12472 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12473 htab_up. Don't allocate on obstack.
12474 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12475 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12476 Change type to htab_up.
12477
b0b6a987
TT
124782020-02-08 Tom Tromey <tom@tromey.com>
12479
12480 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12481 Change type to htab_up.
12482 * dwarf2/read.c (create_signatured_type_table_from_index)
12483 (create_signatured_type_table_from_debug_names)
12484 (create_all_type_units, add_type_unit)
12485 (lookup_dwo_signatured_type, lookup_signatured_type)
12486 (process_skeletonless_type_unit): Update.
12487 (create_debug_type_hash_table, create_debug_types_hash_table):
12488 Change type of types_htab.
12489 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12490 htab_up. Don't allocate on obstack.
12491 (create_cus_hash_table): Change type of cus_htab parameter.
12492 (struct dwo_file) <cus, tus>: Now htab_up.
12493 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12494 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12495 (queue_and_load_all_dwo_tus): Update.
12496 * dwarf2/index-write.c (write_gdbindex): Update.
12497 (write_debug_names): Update.
12498
39856def
TT
124992020-02-08 Tom Tromey <tom@tromey.com>
12500
12501 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12502 dwarf2/read.c. Remove "next" member. Add constructor ntad
12503 destructor.
12504 (struct dwarf2_per_objfile) <queue>: New member.
12505 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12506 dwarf2/read.h.
12507 (dwarf2_queue, dwarf2_queue_tail): Remove.
12508 (class dwarf2_queue_guard): Add parameter to constructor. Use
12509 DISABLE_COPY_AND_ASSIGN.
12510 <m_per_objfile>: New member.
12511 <~dwarf2_queue_guard>: Rewrite.
12512 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12513 Update.
12514 (~dwarf2_queue_item): New.
12515
3e225074
TT
125162020-02-08 Tom Tromey <tom@tromey.com>
12517
12518 * dwarf2/read.c (struct die_info) <has_children>: New member.
12519 (dw2_get_file_names_reader): Remove has_children.
12520 (dw2_get_file_names): Update.
12521 (read_cutu_die_from_dwo): Remove has_children.
12522 (cutu_reader::init_tu_and_read_dwo_dies)
12523 (cutu_reader::cutu_reader): Update.
12524 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12525 Remove has_children.
12526 (build_type_psymtabs_1, process_skeletonless_type_unit)
12527 (load_partial_comp_unit, load_full_comp_unit): Update.
12528 (create_dwo_cu_reader): Remove has_children.
12529 (create_cus_hash_table, read_die_and_children): Update.
12530 (read_full_die_1,read_full_die): Remove has_children.
12531 (read_signatured_type): Update.
12532 (class cutu_reader) <has_children>: Remove.
12533
82ca8957
TT
125342020-02-08 Tom Tromey <tom@tromey.com>
12535
12536 * dwarf2/expr.c: Rename from dwarf2expr.c.
12537 * dwarf2/expr.h: Rename from dwarf2expr.h.
12538 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12539 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12540 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12541 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12542 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12543 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12544 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12545 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12546 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12547 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12548 * dwarf2/loc.c: Rename from dwarf2loc.c.
12549 * dwarf2/loc.h: Rename from dwarf2loc.h.
12550 * dwarf2/read.c: Rename from dwarf2read.c.
12551 * dwarf2/read.h: Rename from dwarf2read.h.
12552 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12553 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12554 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12555 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12556 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12557 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12558 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12559 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12560 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12561 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12562 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12563 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12564 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12565 Update.
12566 * Makefile.in (COMMON_SFILES): Update.
12567 (HFILES_NO_SRCDIR): Update.
12568
9e35d499
TT
125692020-02-08 Tom Tromey <tom@tromey.com>
12570
12571 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12572 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12573
1eba2311
TT
125742020-02-08 Tom Tromey <tom@tromey.com>
12575
12576 * dwarf2read.h (struct die_info): Don't declare.
12577
e41c2da2
TT
125782020-02-08 Tom Tromey <tom@tromey.com>
12579
12580 * dwarf2read.h (die_info_ptr): Remove typedef.
12581
4fc6c0d5
TT
125822020-02-08 Tom Tromey <tom@tromey.com>
12583
12584 * dwarf2read.c (read_call_site_scope)
12585 (handle_data_member_location, dwarf2_add_member_fn)
12586 (mark_common_block_symbol_computed, read_common_block)
12587 (attr_to_dynamic_prop, partial_die_info::read)
12588 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12589 (dwarf2_symbol_mark_computed, set_die_type): Update.
12590 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12591 method.
12592 (attr_form_is_block): Don't declare.
12593 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12594
cd6c91b4
TT
125952020-02-08 Tom Tromey <tom@tromey.com>
12596
12597 * dwarf2read.c (dwarf2_find_base_address, )
12598 (read_call_site_scope, rust_containing_type)
12599 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12600 (handle_data_member_location, dwarf2_add_member_fn)
12601 (get_alignment, read_structure_type, process_structure_scope)
12602 (mark_common_block_symbol_computed, read_common_block)
12603 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12604 (partial_die_info::read, read_attribute_value, new_symbol)
12605 (lookup_die_type, dwarf2_get_ref_die_offset)
12606 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12607 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12608 (dwarf2_symbol_mark_computed): Update.
12609 * dwarf2/attribute.h (struct attribute) <value_as_address,
12610 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12611 methods.
12612 (value_as_address, attr_form_is_section_offset)
12613 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12614 * dwarf2/attribute.c (attribute::value_as_address)
12615 (attribute::form_is_section_offset, attribute::form_is_constant)
12616 (attribute::form_is_ref): Now methods.
12617
162dce55
TT
126182020-02-08 Tom Tromey <tom@tromey.com>
12619
12620 * dwarf2read.c (struct attribute, DW_STRING)
12621 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12622 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12623 (attr_form_is_block, attr_form_is_section_offset)
12624 (attr_form_is_constant, attr_form_is_ref): Move.
12625 * dwarf2/attribute.h: New file.
12626 * dwarf2/attribute.c: New file, from dwarf2read.c.
12627 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12628
3054dd54
TT
126292020-02-08 Tom Tromey <tom@tromey.com>
12630
12631 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12632 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12633 Move.
12634 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12635 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12636 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12637 abbrev.c.
12638 * dwarf2/abbrev.h: New file.
12639 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12640 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12641
96b79293
TT
126422020-02-08 Tom Tromey <tom@tromey.com>
12643
12644 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12645 (dwarf2_section_size, dwarf2_get_section_info)
12646 (create_signatured_type_table_from_debug_names)
12647 (create_addrmap_from_aranges, read_debug_names_from_section)
12648 (get_gdb_index_contents_from_section, read_comp_unit_head)
12649 (error_check_comp_unit_head, read_abbrev_offset)
12650 (create_debug_type_hash_table, init_cu_die_reader)
12651 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12652 (read_comp_units_from_section, create_cus_hash_table)
12653 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12654 (create_dwp_v2_section, dwarf2_rnglists_process)
12655 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12656 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12657 (read_indirect_string_from_dwz, read_addr_index_1)
12658 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12659 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12660 (fill_in_loclist_baton): Update.
12661 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12662 get_containing_section, get_bfd_owner, get_bfd_section,
12663 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12664 (dwarf2_read_section, get_section_name, get_section_file_name)
12665 (get_containing_section, get_section_bfd_owner)
12666 (get_section_bfd_section, get_section_name, get_section_file_name)
12667 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12668 declare.
12669 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12670 (dwarf2_section_info::get_bfd_owner)
12671 (dwarf2_section_info::get_bfd_section)
12672 (dwarf2_section_info::get_name)
12673 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12674 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12675 (dwarf2_section_info::read): Now methods.
12676 * dwarf-index-write.c (class debug_names): Update.
12677
2c86cff9
TT
126782020-02-08 Tom Tromey <tom@tromey.com>
12679
12680 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12681 Move to dwarf2/section.h.
12682 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12683 (get_section_bfd_section, get_section_name)
12684 (get_section_file_name, get_section_id, get_section_flags)
12685 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12686 dwarf2/section.c.
12687 * dwarf2/section.h: New file.
12688 * dwarf2/section.c: New file, from dwarf2read.c.
12689 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12690
f4382c45
TT
126912020-02-08 Tom Tromey <tom@tromey.com>
12692
12693 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12694 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12695 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12696 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12697 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12698 * dwarf2/leb.h: New file, from dwarf2read.c.
12699 * dwarf2/leb.c: New file, from dwarf2read.c.
12700 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12701 Remove.
12702 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12703 (COMMON_SFILES): Add dwarf2/leb.c.
12704
01840b7a
JB
127052020-02-08 Joel Brobecker <brobecker@adacore.com>
12706
12707 GDB 9.1 released.
12708
dfcb27e4
IB
127092020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12710
12711 PR gdb/25190:
aac66a4c
SM
12712 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12713 * gdb/remote.c (remote_console_output): Update.
12714 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12715 (ui_file_puts): ...this.
12716 * gdb/ui-file.h (ui_file_puts): Add declaration.
12717 * gdb/utils.c (emit_style_escape): Update.
12718 (flush_wrap_buffer): Update.
12719 (fputs_maybe_filtered): Update.
12720 (fputs_unfiltered): Add function.
dfcb27e4 12721
faa17681
IB
127222020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12723
aac66a4c
SM
12724 * gdb/event-loop.c (gdb_wait_for_event): Update.
12725 * gdb/printcmd.c (printf_command): Update.
12726 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12727 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12728 (gdb_os_flush_stderr): Update.
12729 * gdb/remote.c (remote_console_output): Update.
12730 * gdb/ui-file.c (gdb_flush): Rename to...
12731 (ui_file_flush): ...this.
12732 (stderr_file::write): Update.
12733 (stderr_file::puts): Update.
12734 * gdb/ui-file.h (gdb_flush): Rename to...
12735 (ui_file_flush): ...this.
12736 * gdb/utils.c (gdb_flush): Add function.
12737 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12738
5abbbe1d
TT
127392020-02-07 Tom Tromey <tromey@adacore.com>
12740
12741 PR breakpoints/24915:
12742 * source.c (find_and_open_source): Do not check basenames_may_differ.
12743
919adfe8
TT
127442020-02-07 Tom Tromey <tom@tromey.com>
12745
12746 * README: Update gdbserver documentation.
12747 * gdbserver: Move to top level.
12748 * configure.tgt (build_gdbserver): Remove.
12749 * configure.ac: Remove --enable-gdbserver.
12750 * configure: Rebuild.
12751 * Makefile.in (distclean): Don't mention gdbserver.
12752
1d5d29e7
SV
127532020-02-06 Shahab Vahedi <shahab@synopsys.com>
12754
12755 * source-cache.c (source_cache::ensure): Surround
12756 get_plain_source_lines with a try/catch.
12757 (source_cache::get_line_charpos): Get rid of try/catch
12758 and only check for the return value of "ensure".
12759 * tui/tui-source.c (tui_source_window::set_contents):
12760 Simplify "nlines" calculation.
12761
6eb1129c
SV
127622020-02-06 Shahab Vahedi <shahab@synopsys.com>
12763
12764 * MAINTAINERS (Write After Approval): Add myself.
12765
c6a42d11
CB
127662020-02-05 Christian Biesinger <cbiesinger@google.com>
12767
12768 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12769 function call.
12770
c8ecdda6
CB
127712020-02-05 Christian Biesinger <cbiesinger@google.com>
12772
12773 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12774
f6480e70
MR
127752020-02-05 Maciej W. Rozycki <macro@wdc.com>
12776
12777 * nat/riscv-linux-tdesc.h: New file.
12778 * nat/riscv-linux-tdesc.c: New file, taking code from...
12779 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12780 ... here.
12781 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12782 NATDEPFILES.
12783
dcc9fbc6
AB
127842020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12785
12786 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12787 we don't set the fake simulator ptid to the null_ptid.
12788
719546c4
SM
127892020-02-03 Simon Marchi <simon.marchi@efficios.com>
12790
12791 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12792 * gdbthread.h (class thread_info) <resumed>: Likewise.
12793 * infrun.c (resume_1): Likewise.
12794 (proceed): Likewise.
12795 (infrun_thread_stop_requested): Likewise.
12796 (stop_all_threads): Likewise.
12797 (handle_inferior_event): Likewise.
12798 (restart_threads): Likewise.
12799 (finish_step_over): Likewise.
12800 (keep_going_stepped_thread): Likewise.
12801 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12802 (linux_handle_extended_wait): Likewise.
12803 * record-btrace.c (get_thread_current_frame_id): Likewise.
12804 * record-full.c (record_full_wait_1): Likewise.
12805 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12806 * target.c (target_resume): Likewise.
12807 * thread.c (set_running_thread): Likewise.
12808
e409c542
AKS
128092020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12810
12811 * f-valprint.c (f77_print_array_1): Changed datatype of index
12812 variable to LONGEST from int to enable it to contain bound
12813 values correctly.
12814
ee98c0da
MR
128152020-02-03 Maciej W. Rozycki <macro@wdc.com>
12816
12817 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12818 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12819 offsets according to FLEN determined.
12820 (riscv_linux_nat_target::read_description): Determine FLEN
12821 dynamically.
12822 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12823 according to FLEN determined.
12824 (riscv_linux_nat_target::store_registers): Likewise.
12825
aa66aac4
SV
128262020-02-01 Shahab Vahedi <shahab@synopsys.com>
12827
12828 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12829 when reg->group is empty and reggroup is not.
12830
fd9faca8
TT
128312020-01-31 Tom Tromey <tromey@adacore.com>
12832
12833 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12834 Call beneath target's mourn_inferior after unpushing.
12835
42330a68
AB
128362020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12837
12838 PR tui/9765
12839 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12840 have enough lines to fill the screen, still return the lowest
12841 address we found.
12842
7a27a45b
AB
128432020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12844
12845 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12846 '-', '<', and '>' commands.
12847
c47f70e2
PA
128482020-01-29 Pedro Alves <palves@redhat.com>
12849 Sergio Durigan Junior <sergiodj@redhat.com>
12850
12851 * infcmd.c (construct_inferior_arguments): Assert that
12852 'argc' is greater than 0.
12853
5133a315
LM
128542020-01-29 Luis Machado <luis.machado@linaro.org>
12855
12856 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12857 (BRK_INSN_MASK): Define to 0xd4200000.
12858 (aarch64_program_breakpoint_here_p): New function.
12859 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12860 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12861 breakpoint.c.
12862 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12863 breakpoint.h
12864 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12865 call gdbarch_program_breakpoint_here_p.
12866 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12867 default_program_breakpoint_here_p, changed return type to bool and
12868 simplified.
12869 * breakpoint.h (program_breakpoint_here): Moved prototype to
12870 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12871 return type to bool.
12872 * gdbarch.c: Regenerate.
12873 * gdbarch.h: Regenerate.
12874 * gdbarch.sh (program_breakpoint_here_p): New method.
12875 * infrun.c (handle_signal_stop): Call
12876 gdbarch_program_breakpoint_here_p.
12877
168f8c6b
TT
128782020-01-26 Tom Tromey <tom@tromey.com>
12879
12880 * ctfread.c (struct ctf_fp_info): Reindent.
12881 (_initialize_ctfread): Remove.
12882
128a391f
TT
128832020-01-26 Tom Tromey <tom@tromey.com>
12884
12885 * psymtab.c (partial_map_expand_apply)
12886 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12887 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12888 (psym_print_stats, psym_expand_symtabs_for_function)
12889 (psym_map_symbol_filenames, psym_map_matching_symbols)
12890 (psym_expand_symtabs_matching)
12891 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12892 (maintenance_check_psymtabs): Use new methods.
12893 * psympriv.h (struct partial_symtab) <readin_p,
12894 get_compunit_symtab>: New methods.
12895 <readin, compunit_symtab>: Remove members.
12896 (struct standard_psymtab): New.
12897 (struct legacy_psymtab): Derive from standard_psymtab.
12898 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12899 standard_psymtab.
12900 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12901
0494dbec
TT
129022020-01-26 Tom Tromey <tom@tromey.com>
12903
12904 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12905 read_dependencies. Add assert.
12906 * psymtab.c (partial_symtab::read_dependencies): New method.
12907 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12908 method.
12909 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12910 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12911 read_dependencies.
12912 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12913 Add assert.
12914
8566b89b
TT
129152020-01-26 Tom Tromey <tom@tromey.com>
12916
12917 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12918 Call expand_psymtab.
12919 (xcoff_read_symtab): Call expand_psymtab.
12920 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12921 legacy_expand_psymtab.
12922 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12923 method.
12924 (struct legacy_psymtab) <expand_psymtab>: Implement.
12925 <legacy_expand_psymtab>: New member.
12926 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12927 (parse_partial_symbols): Set legacy_expand_psymtab.
12928 (psymtab_to_symtab_1): Change argument order. Call
12929 expand_psymtab.
12930 (new_psymtab): Set legacy_expand_psymtab.
12931 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12932 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12933 expand_psymtab.
12934 (dwarf2_psymtab::expand_psymtab): Rename from
12935 psymtab_to_symtab_1. Call expand_psymtab.
12936 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12937 (dbx_end_psymtab): Likewise.
12938 (dbx_psymtab_to_symtab_1): Change argument order. Call
12939 expand_psymtab.
12940 (dbx_read_symtab): Call expand_psymtab.
12941 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12942 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12943 (ctf_psymtab::read_symtab): Call expand_psymtab.
12944
077cbab2
TT
129452020-01-26 Tom Tromey <tom@tromey.com>
12946
12947 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12948 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12949 messages.
12950 * mdebugread.c (mdebug_read_symtab): Remove prints.
12951 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12952 assert.
12953 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12954
891813be
TT
129552020-01-26 Tom Tromey <tom@tromey.com>
12956
12957 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12958 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12959 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12960 legacy_symtab.
12961 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12962 * psymtab.c (psymtab_to_symtab): Call method.
12963 (dump_psymtab): Update.
12964 * psympriv.h (struct partial_symtab): Add virtual destructor.
12965 <read_symtab>: New method.
12966 (struct legacy_symtab): New.
12967 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12968 (struct pst_map) <pst>: Now a legacy_psymtab.
12969 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12970 (new_psymtab): Use legacy_psymtab.
12971 * dwarf2read.h (struct dwarf2_psymtab): New.
12972 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12973 * dwarf2read.c (dwarf2_create_include_psymtab)
12974 (dwarf2_build_include_psymtabs, create_type_unit_group)
12975 (create_partial_symtab, process_psymtab_comp_unit_reader)
12976 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12977 (set_partial_user): Use dwarf2_psymtab.
12978 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12979 (psymtab_to_symtab_1, process_full_comp_unit)
12980 (process_full_type_unit, dwarf2_ranges_read)
12981 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12982 (dwarf_decode_lines): Use dwarf2_psymtab.
12983 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12984 (add_address_entry_worker, write_one_signatured_type)
12985 (recursively_count_psymbols, recursively_write_psymbols)
12986 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12987 (write_debug_names): Likewise.
12988 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12989 <pst>: Now a legacy_psymtab.
12990 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12991 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12992 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12993 * ctfread.c (struct ctf_psymtab): New.
12994 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12995 ctf_psymtab.
12996 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12997 (create_partial_symtab): Return a ctf_psymtab.
12998 (scan_partial_symbols): Update.
12999
c3693a1d
TT
130002020-01-26 Tom Tromey <tom@tromey.com>
13001
13002 * xcoffread.c (xcoff_start_psymtab): Use new.
13003 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13004 renamed from start_psymtab_common.
13005 * psympriv.h (struct partial_symtab): Add new constructor.
13006 (start_psymtab_common): Don't declare.
13007 * mdebugread.c (parse_partial_symbols): Use new.
13008 * dwarf2read.c (create_partial_symtab): Use new.
13009 * dbxread.c (start_psymtab): Use new.
13010 * ctfread.c (create_partial_symtab): Use new.
13011
32caafd0
TT
130122020-01-26 Tom Tromey <tom@tromey.com>
13013
13014 * xcoffread.c (xcoff_end_psymtab): Use new.
13015 * psymtab.c (start_psymtab_common): Use new.
13016 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13017 Update.
13018 * psympriv.h (struct partial_symtab): Add parameters to
13019 constructor. Don't inline.
13020 (allocate_psymtab): Don't declare.
13021 * mdebugread.c (new_psymtab): Use new.
13022 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13023 * dbxread.c (dbx_end_psymtab): Use new.
13024
abaa2f23
TT
130252020-01-26 Tom Tromey <tom@tromey.com>
13026
13027 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13028 allocate_psymtab. Update documentation.
13029 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13030 allocate_psymtab. Do not use new.
13031 (allocate_psymtab): Use new. Update.
13032
6d94535f
TT
130332020-01-26 Tom Tromey <tom@tromey.com>
13034
13035 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13036 * psymtab.c (psym_print_stats): Update.
13037 * psympriv.h (struct partial_symtab) <readin,
13038 psymtabs_addrmap_supported, anonymous>: Now bool.
13039 * mdebugread.c (psymtab_to_symtab_1): Update.
13040 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13041 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13042 (process_full_comp_unit, process_full_type_unit): Update.
13043 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13044 * ctfread.c (psymtab_to_symtab): Update.
13045
6f17252b
TT
130462020-01-26 Tom Tromey <tom@tromey.com>
13047
13048 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13049 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13050 * psymtab.c (psymtab_storage): Delete psymtabs.
13051 (psymtab_storage::allocate_psymtab): Use new.
13052 (psymtab_storage::discard_psymtab): Use delete.
13053 * psympriv.h (struct partial_symtab): Add constructor and
13054 initializers.
13055
f6f1cebc
TT
130562020-01-26 Tom Tromey <tom@tromey.com>
13057
13058 * machoread.c: Do not include psympriv.h.
13059
e47e48f6
PW
130602020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13061
13062 * NEWS: Mention the new option and the set/show commands.
13063
a2fedca9
PW
130642020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13065
13066 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13067 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13068 (validate_exec_file): New variables, enums, functions.
13069 (exec_file_locate_attach, print_section_info): Style the filenames.
13070 (_initialize_exec): Install show_exec_file_mismatch_command and
13071 set_exec_file_mismatch_command.
13072 * gdbcore.h (validate_exec_file): Declare.
13073 * infcmd.c (attach_command): Call validate_exec_file.
13074 * remote.c ( remote_target::remote_add_inferior): Likewise.
13075
7ffa82e1
AB
130762020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13077
13078 * frame.c (find_frame_sal): Move call to get_next_frame into more
13079 inner scope.
13080 * inline-frame.c (inilne_state) <inline_state>: Update argument
13081 types.
13082 (inilne_state) <skipped_symbol>: Rename to...
13083 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13084 (skip_inline_frames): Build vector of skipped symbols and use this
13085 to reate the inline_state.
13086 (inline_skipped_symbol): Add a comment and some assertions, fetch
13087 skipped symbol from the list.
13088
3d92a3e3
AB
130892020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13090
13091 * buildsym.c (lte_is_less_than): Delete.
13092 (buildsym_compunit::end_symtab_with_blockvector): Create local
13093 lambda function to sort line table entries, and use
13094 std::stable_sort instead of std::sort.
13095 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13096 markers when looking for a previous line.
13097
94a72be7
AB
130982020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13099
13100 * dwarf2read.c (lnp_state_machine::record_line): Include
13101 end_sequence parameter in debug print out. Record the line if we
13102 are at an end_sequence marker even if it's not the start of a
13103 statement.
13104 * symmisc.c (maintenance_print_one_line_table): Print end of
13105 sequence markers with 'END' not '0'.
13106
53af73bf
PA
131072020-01-24 Pedro Alves <palves@redhat.com>
13108
13109 PR gdb/25410
13110 * thread.c (scoped_restore_current_thread::restore): Use
13111 switch_to_inferior_no_thread.
13112 * exec.c: Include "progspace-and-thread.h".
13113 (add_target_sections, remove_target_sections):
13114 scoped_restore_current_pspace_and_thread instead of
13115 scoped_restore_current_thread.
13116 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13117 and aspace to the inferior before calling clone_program_space.
13118 Remove stale comment.
13119
3050c6f4
CB
131202020-01-24 Christian Biesinger <cbiesinger@google.com>
13121
13122 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13123 (arm_netbsd_nat_target::fetch_registers): ...this.
13124 (arm_nbsd_nat_target::store_registers): Rename to...
13125 (arm_netbsd_nat_target::store_registers): ...this.
13126
73685c7e
CB
131272020-01-24 Christian Biesinger <cbiesinger@google.com>
13128
13129 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13130 register_t.
13131
89203d40
CB
131322020-01-24 Christian Biesinger <cbiesinger@google.com>
13133
13134 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13135 Update comment.
13136 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13137 Likewise.
13138 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13139 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13140 the correct replacement (iterate_over_regset_sections).
13141 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13142 Update comment.
13143
1ba1ac88
AB
131442020-01-24 Graham Markall <graham.markall@embecosm.com>
13145
13146 PR gdb/23718
13147 * gdb/python/python.c (execute_gdb_command): Call
13148 async_enable_stdin in catch block.
13149
f3364a6d
AB
131502020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13151
13152 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13153 SWITCH_THRU_ALL_UIS.
13154
733d0a67
AB
131552020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13156
13157 PR tui/9765
13158 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13159 comment, add extra parameter, and update to store previous symbol
13160 when appropriate.
13161 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13162 add extra parameter.
13163 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13164 remove unneeded parameter, add try/catch around gdb_print_insn,
13165 rewrite to add items to asm_lines vector.
13166 (tui_find_backward_disassembly_start_address): New function.
13167 (tui_find_disassembly_address): Updated throughout.
13168 (tui_disasm_window::set_contents): Update for changes to
13169 tui_disassemble.
13170 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13171 number of lines to scroll.
13172
b3b3bada
SM
131732020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13174
13175 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13176 (SECT_OFF_DATA): Likewise.
13177 (SECT_OFF_RODATA): Likewise.
13178 (SECT_OFF_TEXT): Likewise.
13179 (SECT_OFF_BSS): Likewise.
13180 (struct objfile) <text_section_offset, data_section_offset>: New
13181 methods.
13182 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13183 objfile::text_section_offset.
13184 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13185 * coffread.c (coff_symtab_read): Likewise.
13186 (enter_linenos): Likewise.
13187 (process_coff_symbol): Likewise.
13188 * ctfread.c (get_objfile_text_range): Likewise.
13189 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13190 Use objfile::data_section_offset.
13191 * dwarf2-frame.c (execute_cfa_program): Use
13192 objfile::text_section_offset.
13193 (dwarf2_frame_find_fde): Likewise.
13194 * dwarf2read.c (create_addrmap_from_index): Likewise.
13195 (create_addrmap_from_aranges): Likewise.
13196 (dw2_find_pc_sect_compunit_symtab): Likewise.
13197 (process_psymtab_comp_unit_reader): Likewise.
13198 (add_partial_symbol): Likewise.
13199 (add_partial_subprogram): Likewise.
13200 (process_full_comp_unit): Likewise.
13201 (read_file_scope): Likewise.
13202 (read_func_scope): Likewise.
13203 (read_lexical_block_scope): Likewise.
13204 (read_call_site_scope): Likewise.
13205 (dwarf2_rnglists_process): Likewise.
13206 (dwarf2_ranges_process): Likewise.
13207 (dwarf2_ranges_read): Likewise.
13208 (dwarf_decode_lines_1): Likewise.
13209 (new_symbol): Likewise.
13210 (dwarf2_fetch_die_loc_sect_off): Likewise.
13211 (dwarf2_per_cu_text_offset): Likewise.
13212 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13213 * hppa-tdep.c (read_unwind_info): Likewise.
13214 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13215 * psympriv.h (struct partial_symtab): Likewise.
13216 * psymtab.c (find_pc_sect_psymtab): Likewise.
13217 * solib-svr4.c (enable_break): Likewise.
13218 * stap-probe.c (relocate_address): Use
13219 objfile::data_section_offset.
13220 * xcoffread.c (enter_line_range): Use
13221 objfile::text_section_offset.
13222 (read_xcoff_symtab): Likewise.
13223
ab53f382
SM
132242020-01-23 Simon Marchi <simon.marchi@efficios.com>
13225
13226 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13227 declaration to narrower scopes.
13228
e7eee665
SM
132292020-01-23 Simon Marchi <simon.marchi@efficios.com>
13230
13231 * darwin-nat.h (struct darwin_exception_msg, enum
13232 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13233 Move up.
13234 (class darwin_nat_target) <wait_1, check_new_threads,
13235 decode_exception_message, decode_message, stop_inferior,
13236 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13237 * darwin-nat.c (darwin_check_new_threads): Rename to...
13238 (darwin_nat_target::check_new_threads): ... this.
13239 (darwin_suspend_inferior_it): Remove.
13240 (darwin_decode_exception_message): Rename to...
13241 (darwin_nat_target::decode_exception_message): ... this.
13242 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13243 (darwin_decode_message): Rename to...
13244 (darwin_nat_target::decode_message): ... this.
13245 (cancel_breakpoint): Rename to...
13246 (darwin_nat_target::cancel_breakpoint): ... this.
13247 (darwin_wait): Rename to...
13248 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13249 instead of iterate_over_inferiors.
13250 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13251 (darwin_stop_inferior): Rename to...
13252 (darwin_nat_target::stop_inferior): ... this.
13253 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13254 (darwin_init_thread_list): Rename to...
13255 (darwin_nat_target::init_thread_list): ... this.
13256 (darwin_ptrace_him): Rename to...
13257 (darwin_nat_target::ptrace_him): ... this.
13258 (darwin_nat_target::create_inferior): Pass lambda function to
13259 fork_inferior.
13260 (darwin_nat_target::detach): Call stop_inferior instead of
13261 darwin_stop_inferior.
13262 * fork-inferior.h (fork_inferior): Change init_trace_fun
13263 parameter to gdb::function_view.
13264 * fork-inferior.c (fork_inferior): Likewise.
13265
c162ed3e
HD
132662020-01-23 Hannes Domani <ssbssa@yahoo.de>
13267
13268 * i386-cygwin-tdep.c (core_process_module_section): Update.
13269 * windows-nat.c (struct lm_info_windows): Add text_offset.
13270 (windows_xfer_shared_libraries): Update.
13271 * windows-tdep.c (windows_xfer_shared_library):
13272 Add text_offset_cached argument.
13273 * windows-tdep.h (windows_xfer_shared_library): Update.
13274
a1237872
SM
132752020-01-21 Simon Marchi <simon.marchi@efficios.com>
13276
13277 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13278
b3ee6dd9
SM
132792020-01-21 Simon Marchi <simon.marchi@efficios.com>
13280
13281 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13282 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13283 replace with range-based for.
13284 (gdbsim_interrupt_inferior): Remove.
13285 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13286 with a range-based for. Inline code from
13287 gdbsim_interrupt_inferior.
13288
f9fac3c8
SM
132892020-01-21 Simon Marchi <simon.marchi@efficios.com>
13290
13291 * infrun.c (proceed): Fix indentation.
13292
f6474de9
TT
132932020-01-21 Tom Tromey <tromey@adacore.com>
13294
13295 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13296 * python/python.c (python_extension_ops): Update.
13297 (gdbpy_colorize): New function.
13298 * python/lib/gdb/__init__.py (colorize): New function.
13299 * extension.h (ext_lang_colorize): Declare.
13300 * extension.c (ext_lang_colorize): New function.
13301 * extension-priv.h (struct extension_language_ops) <colorize>: New
13302 member.
13303 * cli/cli-style.c (_initialize_cli_style): Update help text.
13304
f0c702d4
LM
133052020-01-21 Luis Machado <luis.machado@linaro.org>
13306
13307 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13308 <cond>: Change type to bool.
13309 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13310 (aarch64_displaced_step_cb): Likewise.
13311 (aarch64_displaced_step_tb): Likewise.
13312
1ab139e5
LM
133132020-01-21 Luis Machado <luis.machado@linaro.org>
13314
13315 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13316 output.
13317
0c271889
LM
133182020-01-21 Luis Machado <luis.machado@linaro.org>
13319
13320 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13321 <pc_adjust>: Adjust the documentation.
13322 (aarch64_displaced_step_fixup): Check if PC really moved before
13323 adjusting it.
13324
4d89c1c7
TT
133252020-01-19 Tom Tromey <tom@tromey.com>
13326
13327 * disasm.c (~gdb_disassembler): New destructor.
13328 (gdb_buffered_insn_length): Call disassemble_free_target.
13329 * disasm.h (class gdb_disassembler): Declare destructor. Use
13330 DISABLE_COPY_AND_ASSIGN.
13331
c0ab21c2
TT
133322020-01-19 Tom Tromey <tom@tromey.com>
13333
13334 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13335 (die_reader_func_ftype): Remove.
13336 (cutu_reader): New class.
13337 (dw2_get_file_names_reader): Remove "data" parameter.
13338 (dw2_get_file_names): Use cutu_reader.
13339 (create_debug_type_hash_table): Update.
13340 (read_cutu_die_from_dwo): Update comment.
13341 (lookup_dwo_unit): Add dwo_name parameter.
13342 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13343 die_reader_func_ftype and data parameters.
13344 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13345 Remove die_reader_func_ftype and data parameters.
13346 (~cutu_reader): New; from init_cutu_and_read_dies.
13347 (cutu_reader::cutu_reader): Rename from
13348 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13349 and data parameters.
13350 (init_cutu_and_read_dies_simple): Remove.
13351 (struct process_psymtab_comp_unit_data): Remove.
13352 (process_psymtab_comp_unit_reader): Remove data parameter; add
13353 want_partial_unit and pretend_language parameters.
13354 (process_psymtab_comp_unit): Use cutu_reader.
13355 (build_type_psymtabs_reader): Remove data parameter.
13356 (build_type_psymtabs_1): Use cutu_reader.
13357 (process_skeletonless_type_unit): Likewise.
13358 (load_partial_comp_unit_reader): Remove.
13359 (load_partial_comp_unit): Use cutu_reader.
13360 (load_full_comp_unit_reader): Remove.
13361 (load_full_comp_unit): Use cutu_reader.
13362 (struct create_dwo_cu_data): Remove.
13363 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13364 dwo_unit parameters.
13365 (create_cus_hash_table): Use cutu_reader.
13366 (struct dwarf2_read_addr_index_data): Remove.
13367 (dwarf2_read_addr_index_reader): Remove.
13368 (dwarf2_read_addr_index): Use cutu_reader.
13369 (read_signatured_type_reader): Remove.
13370 (read_signatured_type): Use cutu_reader.
13371
45bbae5c
TT
133722020-01-19 Tom Tromey <tom@tromey.com>
13373
13374 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13375 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13376 (tui_wrefresh): Declare.
13377 * tui/tui-wingeneral.c (suppress_output): New global.
13378 (tui_suppress_output, ~tui_suppress_output): New constructor and
13379 destructor.
13380 (tui_wrefresh): New function.
13381 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13382 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13383 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13384 method.
13385 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13386 tui_wrefresh.
13387 (tui_data_window::no_refresh): New method.
13388 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13389 (tui_reg_command): Use tui_suppress_output
13390 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13391 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13392 method.
13393 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13394
4f13c1c0
TT
133952020-01-19 Tom Tromey <tom@tromey.com>
13396
13397 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13398 Handle case where symtab is null.
13399
fa47e446
SM
134002020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13401
13402 * linux-fork.c (one_fork_p): Simplify.
13403
26f42329
SM
134042020-01-17 Simon Marchi <simon.marchi@efficios.com>
13405
13406 * top.c (struct qt_args): Remove.
13407 (kill_or_detach): Change return type to void, replace `void *`
13408 parameter with a proper one.
13409 (print_inferior_quit_action): Likewise.
13410 (quit_confirm): Use range-based for loop to iterate over inferiors.
13411 (quit_force): Likewise.
13412
a9ac81b1
SM
134132020-01-17 Simon Marchi <simon.marchi@efficios.com>
13414
13415 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13416 `void *` parameter with proper parameters.
13417 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13418 (print_one_inferior): Change return type to void, replace `void *`
13419 parameter with proper parameters.
13420 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13421 inferiors.
13422 (get_other_inferior): Remove.
13423 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13424 inferiors.
13425
788eca49
SM
134262020-01-17 Simon Marchi <simon.marchi@efficios.com>
13427
13428 * mi/mi-interp.c (report_initial_inferior): Remove.
13429 (mi_interp::init): Use range-based for to iterate over inferiors.
13430
d9bc85b6
SM
134312020-01-17 Simon Marchi <simon.marchi@efficios.com>
13432
13433 * python/py-inferior.c (build_inferior_list): Remove.
13434 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13435
40c94099
CB
134362020-01-16 Christian Biesinger <cbiesinger@google.com>
13437
13438 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13439 (btrace_stitch_trace): Likewise.
13440 * charset.c (intermediate_encoding): Likewise (vaild).
13441 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13442 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13443 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13444
e0cdfe3c
HD
134452020-01-16 Hannes Domani <ssbssa@yahoo.de>
13446
13447 * windows-tdep.c (windows_get_tlb_type):
13448 Add rtl_user_process_parameters type.
13449
790f1718 134502020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13451 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13452
13453 PR build/24805
13454 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13455 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13456 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13457 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13458 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13459 (ps_plog): Redeclare exported functions with default visibility.
13460
3112ed97
NA
134612020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13462
13463 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13464 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13465
8dc3273e
SM
134662020-01-15 Simon Marchi <simon.marchi@efficios.com>
13467
13468 * infcmd.c (post_create_inferior): Use get_thread_regcache
13469 instead of get_current_regcache.
13470
ff47f4f0
TT
134712020-01-14 Tom Tromey <tom@tromey.com>
13472
13473 PR symtab/12535:
13474 * python/python.c (gdbpy_decode_line): Treat empty string the same
13475 as no argument.
13476
975f45b7
TT
134772020-01-14 Tom Tromey <tom@tromey.com>
13478
13479 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13480
25e57356
TT
134812020-01-14 Tom Tromey <tom@tromey.com>
13482
13483 * nat/linux-btrace.c: Don't include <config.h>.
13484 * nat/linux-ptrace.c: Don't include <config.h>.
13485 * nat/x86-linux-dregs.c: Don't include <config.h>.
13486
05ea2a05
TT
134872020-01-14 Tom Tromey <tom@tromey.com>
13488
13489 * configure: Rebuild.
13490 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13491
01027315
TT
134922020-01-14 Tom Tromey <tom@tromey.com>
13493
13494 * nat/x86-linux-dregs.c: Include configh.h.
13495 * nat/linux-ptrace.c: Include configh.h.
13496 * nat/linux-btrace.c: Include configh.h.
13497 * defs.h: Include config.h, bfd.h.
13498 * configure.ac: Don't source common.host.
13499 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13500 * configure: Rebuild.
13501 * acinclude.m4: Update path.
13502 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13503 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13504 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13505 (CLIBS): Add LIBSUPPORT.
13506 (CDEPS): Likewise.
13507 (COMMON_SFILES): Remove gdbsupport files.
13508 (HFILES_NO_SRCDIR): Likewise.
13509 (stamp-version): Update path to create-version.sh.
13510 (ALLDEPFILES): Remove gdbsupport files.
13511
b2ceabe8
TT
135122020-01-14 Tom Tromey <tom@tromey.com>
13513
13514 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13515 USE_WIN32API when needed.
13516 * configure.ac (USE_WIN32API): Don't define.
13517 (WIN32LIBS): Use WIN32APILIBS.
13518 * configure: Rebuild.
13519
25c51f71
TT
135202020-01-14 Tom Tromey <tom@tromey.com>
13521
13522 * configure: Rebuild.
13523 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13524
717c684d
BE
135252020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13526
13527 * skip.c (skip_function_command): Make skip w/o arguments use the
13528 name of the inlined function if pc is inside any inlined function.
13529
7da6a5b9
LM
135302020-01-14 Luis Machado <luis.machado@linaro.org>
13531
13532 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13533 * infrun.c (resume_1): Likewise.
13534 (handle_inferior_event): Remove stale comment.
13535 * linux-nat.c (linux_nat_target::resume): Update comments.
13536 (save_stop_reason): Likewise.
13537 (linux_nat_filter_event): Likewise.
13538 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13539
44e4c775
AB
135402020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13541
13542 * elfread.c (record_minimal_symbol): Set section index to 0 for
13543 non-allocatable sections.
13544
18a8505e
AT
13545
135462020-01-13 Ali Tamur <tamur@google.com>
13547
13548 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13549 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13550 to gdb::optional. Update comments.
13551 (dwo_file): Update comments.
13552 (read_attribute): Update API to take an additional out parameter,
13553 need_reprocess. This is used to mark attributes that need other
13554 attributes (e.g. str_offsets_base) for correct computation which may not
13555 have been read yet.
13556 (read_attribute_reprocess): New function declaration.
13557 (read_addr_index): Likewise.
13558 (read_dwo_str_index): Likewise.
13559 (read_stub_str_index): Likewise.
13560 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13561 (lookup_addr_base): New function definition.
13562 (lookup_ranges_base): Likewise.
13563 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13564 lookup_ranges_base.
13565 (init_cutu_and_read_dies): Update comments.
13566 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13567 unit. This is used to inherit parent's str_offsets_base and addr_base.
13568 Update comments.
13569 (init_cutu_and_read_dies_simple): Reflect API changes.
13570 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13571 (create_cus_hash_table): Change API to take parent compile unit.
13572 Reflect API changes.
13573 (open_and_init_dwo_file): Reflect API changes.
13574 (dwarf2_get_pc_bounds): Update comments.
13575 (dwarf2_record_block_ranges): Likewise.
13576 (read_full_die_1): Change implementation to reprocess attributes that
13577 need str_offsets_base and addr_base.
13578 (partial_die_info::read): Likewise.
13579 (read_attribute_reprocess): New function definition.
13580 (read_attribute_value): Change API to take an additional out parameter,
13581 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13582 when a non-dwo compile unit has index based attributes.
13583 (read_attribute): Reflect API changes.
13584 (read_addr_index_1): Reflect API changes. Update comments.
13585 (dwarf2_read_addr_index_data): Reflect API changes.
13586 (dwarf2_read_addr_index): Likewise.
13587 (read_str_index): Change API and implementation. This becomes a helper
13588 to be used by the new string index related methods. Update error
13589 message and comments.
13590 (read_dwo_str_index): New function definition.
13591 (read_stub_str_index): Likewise.
13592 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13593 * symfile.h (dwarf2_debug_sections): Likewise.
13594 * xcoffread.c (dwarf2_debug_sections): Likewise.
13595
0cac9354
SM
135962020-01-13 Simon Marchi <simon.marchi@efficios.com>
13597
13598 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13599 core_reg_sect type to gdb_byte *.
13600 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13601 * cris-tdep.c (fetch_core_registers): Likewise.
13602 * corelow.c (core_target::get_core_register_section): Change
13603 type of `contents` to gdb::byte_vector.
13604
9a6d629c
AB
136052020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13606
13607 * tui/tui-wingeneral.c (box_win): Position the title in the center
13608 of the border.
13609
d8b2f9e3
SM
136102020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13611
13612 * corelow.c (core_target::get_core_register_section): Use
13613 std::vector instead of alloca.
13614
bb564c58
SM
136152020-01-13 Simon Marchi <simon.marchi@efficios.com>
13616
13617 * warning.m4: Add -Wmissing-declarations to build_warnings.
13618 * configure: Re-generate.
13619
6b366111
SM
136202020-01-13 Simon Marchi <simon.marchi@efficios.com>
13621
13622 * python/python.c (init__gdb_module): Add declaration.
13623
6c265988
SM
136242020-01-13 Simon Marchi <simon.marchi@efficios.com>
13625
13626 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13627 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13628 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13629 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13630 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13631 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13632 * ada-exp.y (_initialize_ada_exp): Add declaration.
13633 * ada-lang.c (_initialize_ada_language): Add declaration.
13634 * ada-tasks.c (_initialize_tasks): Add declaration.
13635 * agent.c (_initialize_agent): Add declaration.
13636 * aix-thread.c (_initialize_aix_thread): Add declaration.
13637 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13638 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13639 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13640 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13641 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13642 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13643 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13644 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13645 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13646 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13647 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13648 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13649 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13650 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13651 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13652 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13653 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13654 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13655 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13656 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13657 * annotate.c (_initialize_annotate): Add declaration.
13658 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13659 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13660 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13661 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13662 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13663 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13664 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13665 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13666 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13667 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13668 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13669 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13670 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13671 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13672 * auto-load.c (_initialize_auto_load): Add declaration.
13673 * auxv.c (_initialize_auxv): Add declaration.
13674 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13675 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13676 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13677 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13678 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13679 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13680 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13681 * breakpoint.c (_initialize_breakpoint): Add declaration.
13682 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13683 * btrace.c (_initialize_btrace): Add declaration.
13684 * charset.c (_initialize_charset): Add declaration.
13685 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13686 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13687 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13688 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13689 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13690 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13691 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13692 * coffread.c (_initialize_coffread): Add declaration.
13693 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13694 * compile/compile.c (_initialize_compile): Add declaration.
13695 * complaints.c (_initialize_complaints): Add declaration.
13696 * completer.c (_initialize_completer): Add declaration.
13697 * copying.c (_initialize_copying): Add declaration.
13698 * corefile.c (_initialize_core): Add declaration.
13699 * corelow.c (_initialize_corelow): Add declaration.
13700 * cp-abi.c (_initialize_cp_abi): Add declaration.
13701 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13702 * cp-support.c (_initialize_cp_support): Add declaration.
13703 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13704 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13705 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13706 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13707 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13708 * ctfread.c (_initialize_ctfread): Add declaration.
13709 * d-lang.c (_initialize_d_language): Add declaration.
13710 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13711 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13712 * dbxread.c (_initialize_dbxread): Add declaration.
13713 * dcache.c (_initialize_dcache): Add declaration.
13714 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13715 * disasm.c (_initialize_disasm): Add declaration.
13716 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13717 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13718 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13719 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13720 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13721 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13722 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13723 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13724 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13725 * elfread.c (_initialize_elfread): Add declaration.
13726 * exec.c (_initialize_exec): Add declaration.
13727 * extension.c (_initialize_extension): Add declaration.
13728 * f-lang.c (_initialize_f_language): Add declaration.
13729 * f-valprint.c (_initialize_f_valprint): Add declaration.
13730 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13731 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13732 * filesystem.c (_initialize_filesystem): Add declaration.
13733 * findcmd.c (_initialize_mem_search): Add declaration.
13734 * findvar.c (_initialize_findvar): Add declaration.
13735 * fork-child.c (_initialize_fork_child): Add declaration.
13736 * frame-base.c (_initialize_frame_base): Add declaration.
13737 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13738 * frame.c (_initialize_frame): Add declaration.
13739 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13740 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13741 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13742 * gcore.c (_initialize_gcore): Add declaration.
13743 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13744 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13745 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13746 * gdbarch.c (_initialize_gdbarch): Add declaration.
13747 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13748 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13749 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13750 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13751 * go-lang.c (_initialize_go_language): Add declaration.
13752 * go32-nat.c (_initialize_go32_nat): Add declaration.
13753 * guile/guile.c (_initialize_guile): Add declaration.
13754 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13755 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13756 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13757 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13758 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13759 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13760 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13761 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13762 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13763 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13764 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13765 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13766 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13767 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13768 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13769 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13770 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13771 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13772 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13773 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13774 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13775 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13776 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13777 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13778 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13779 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13780 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13781 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13782 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13783 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13784 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13785 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13786 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13787 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13788 * infcall.c (_initialize_infcall): Add declaration.
13789 * infcmd.c (_initialize_infcmd): Add declaration.
13790 * inflow.c (_initialize_inflow): Add declaration.
13791 * infrun.c (_initialize_infrun): Add declaration.
13792 * interps.c (_initialize_interpreter): Add declaration.
13793 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13794 * jit.c (_initialize_jit): Add declaration.
13795 * language.c (_initialize_language): Add declaration.
13796 * linux-fork.c (_initialize_linux_fork): Add declaration.
13797 * linux-nat.c (_initialize_linux_nat): Add declaration.
13798 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13799 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13800 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13801 * m2-lang.c (_initialize_m2_language): Add declaration.
13802 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13803 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13804 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13805 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13806 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13807 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13808 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13809 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13810 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13811 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13812 * machoread.c (_initialize_machoread): Add declaration.
13813 * macrocmd.c (_initialize_macrocmd): Add declaration.
13814 * macroscope.c (_initialize_macroscope): Add declaration.
13815 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13816 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13817 * maint.c (_initialize_maint_cmds): Add declaration.
13818 * mdebugread.c (_initialize_mdebugread): Add declaration.
13819 * memattr.c (_initialize_mem): Add declaration.
13820 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13821 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13822 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13823 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13824 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13825 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13826 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13827 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13828 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13829 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13830 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13831 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13832 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13833 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13834 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13835 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13836 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13837 * mipsread.c (_initialize_mipsread): Add declaration.
13838 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13839 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13840 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13841 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13842 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13843 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13844 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13845 * nto-procfs.c (_initialize_procfs): Add declaration.
13846 * objc-lang.c (_initialize_objc_language): Add declaration.
13847 * observable.c (_initialize_observer): Add declaration.
13848 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13849 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13850 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13851 * osabi.c (_initialize_gdb_osabi): Add declaration.
13852 * osdata.c (_initialize_osdata): Add declaration.
13853 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13854 * parse.c (_initialize_parse): Add declaration.
13855 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13856 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13857 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13858 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13859 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13860 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13861 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13862 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13863 * printcmd.c (_initialize_printcmd): Add declaration.
13864 * probe.c (_initialize_probe): Add declaration.
13865 * proc-api.c (_initialize_proc_api): Add declaration.
13866 * proc-events.c (_initialize_proc_events): Add declaration.
13867 * proc-service.c (_initialize_proc_service): Add declaration.
13868 * procfs.c (_initialize_procfs): Add declaration.
13869 * producer.c (_initialize_producer): Add declaration.
13870 * psymtab.c (_initialize_psymtab): Add declaration.
13871 * python/python.c (_initialize_python): Add declaration.
13872 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13873 * record-btrace.c (_initialize_record_btrace): Add declaration.
13874 * record-full.c (_initialize_record_full): Add declaration.
13875 * record.c (_initialize_record): Add declaration.
13876 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13877 * regcache.c (_initialize_regcache): Add declaration.
13878 * reggroups.c (_initialize_reggroup): Add declaration.
13879 * remote-notif.c (_initialize_notif): Add declaration.
13880 * remote-sim.c (_initialize_remote_sim): Add declaration.
13881 * remote.c (_initialize_remote): Add declaration.
13882 * reverse.c (_initialize_reverse): Add declaration.
13883 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13884 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13885 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13886 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13887 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13888 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13889 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13890 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13891 Add declaration.
13892 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13893 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13894 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13895 * rust-exp.y (_initialize_rust_exp): Add declaration.
13896 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13897 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13898 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13899 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13900 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13901 * score-tdep.c (_initialize_score_tdep): Add declaration.
13902 * ser-go32.c (_initialize_ser_dos): Add declaration.
13903 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13904 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13905 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13906 * ser-uds.c (_initialize_ser_socket): Add declaration.
13907 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13908 * serial.c (_initialize_serial): Add declaration.
13909 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13910 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13911 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13912 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13913 * skip.c (_initialize_step_skip): Add declaration.
13914 * sol-thread.c (_initialize_sol_thread): Add declaration.
13915 * solib-aix.c (_initialize_solib_aix): Add declaration.
13916 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13917 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13918 * solib-frv.c (_initialize_frv_solib): Add declaration.
13919 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13920 * solib-target.c (_initialize_solib_target): Add declaration.
13921 * solib.c (_initialize_solib): Add declaration.
13922 * source-cache.c (_initialize_source_cache): Add declaration.
13923 * source.c (_initialize_source): Add declaration.
13924 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13925 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13926 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13927 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13928 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13929 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13930 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13931 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13932 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13933 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13934 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13935 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13936 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13937 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13938 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13939 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13940 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13941 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13942 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13943 * stabsread.c (_initialize_stabsread): Add declaration.
13944 * stack.c (_initialize_stack): Add declaration.
13945 * stap-probe.c (_initialize_stap_probe): Add declaration.
13946 * std-regs.c (_initialize_frame_reg): Add declaration.
13947 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13948 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13949 * symfile.c (_initialize_symfile): Add declaration.
13950 * symmisc.c (_initialize_symmisc): Add declaration.
13951 * symtab.c (_initialize_symtab): Add declaration.
13952 * target.c (_initialize_target): Add declaration.
13953 * target-connection.c (_initialize_target_connection): Add
13954 declaration.
13955 * target-dcache.c (_initialize_target_dcache): Add declaration.
13956 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13957 * thread.c (_initialize_thread): Add declaration.
13958 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13959 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13960 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13961 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13962 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13963 * tracectf.c (_initialize_ctf): Add declaration.
13964 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13965 * tracefile.c (_initialize_tracefile): Add declaration.
13966 * tracepoint.c (_initialize_tracepoint): Add declaration.
13967 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13968 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13969 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13970 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13971 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13972 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13973 * tui/tui.c (_initialize_tui): Add declaration.
13974 * typeprint.c (_initialize_typeprint): Add declaration.
13975 * ui-style.c (_initialize_ui_style): Add declaration.
13976 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13977 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13978 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13979 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13980 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13981 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13982 * unittests/filtered_iterator-selftests.c
13983 (_initialize_filtered_iterator_selftests): Add declaration.
13984 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13985 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13986 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13987 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13988 * unittests/main-thread-selftests.c
13989 (_initialize_main_thread_selftests): Add declaration.
13990 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13991 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13992 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13993 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13994 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13995 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13996 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13997 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13998 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13999 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14000 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14001 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14002 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14003 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14004 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14005 declaration.
14006 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14007 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14008 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14009 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14010 * user-regs.c (_initialize_user_regs): Add declaration.
14011 * utils.c (_initialize_utils): Add declaration.
14012 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14013 * valops.c (_initialize_valops): Add declaration.
14014 * valprint.c (_initialize_valprint): Add declaration.
14015 * value.c (_initialize_values): Add declaration.
14016 * varobj.c (_initialize_varobj): Add declaration.
14017 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14018 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14019 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14020 * windows-nat.c (_initialize_windows_nat): Add declaration.
14021 (_initialize_check_for_gdb_ini): Add declaration.
14022 (_initialize_loadable): Add declaration.
14023 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14024 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14025 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14026 * xcoffread.c (_initialize_xcoffread): Add declaration.
14027 * xml-support.c (_initialize_xml_support): Add declaration.
14028 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14029 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14030 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14031 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14032
e2de1eec
SM
140332020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14034
14035 * regformats/regdat.sh: Generate declaration for init function.
14036
e0037b4c
SM
140372020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14038
14039 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14040 up.
14041 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14042 close_one_inferior>: New methods.
14043 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14044 pass down target to find_inferior_pid.
14045 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14046 Pass down target to find_inferior_ptid.
14047 (gdbsim_target::create_inferior): Pass down target to
14048 add_thread_silent.
14049 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14050 target down to find_inferior_ptid and switch_to_thread.
14051 (gdbsim_target::close): Update to call close_one_inferior.
14052 (struct resume_data): Remove.
14053 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14054 directly, rather than through a void pointer.
14055 (gdbsim_target::resume): Update to call resume_one_inferior.
14056
58920b5b
SM
140572020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14058
14059 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14060
4ec89149
PA
140612020-01-12 Pedro Alves <palves@redhat.com>
14062
14063 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14064 directly for the current inferior instead of
14065 discard_all_inferiors.
14066 (discard_all_inferiors): Delete.
14067
7c392d1d
TT
140682020-01-11 Tom Tromey <tom@tromey.com>
14069
14070 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14071 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14072 deprecated_safe_get_selected_frame.
14073
d9ebdab7
TBA
140742020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14075
14076 * inferior.c (print_inferior): Switch inferior before printing it.
14077
f3c469b9
PA
140782020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14079 Pedro Alves <palves@redhat.com>
14080
14081 * progspace-and-thread.c (switch_to_program_space_and_thread):
14082 Assert there's an inferior for PSPACE. Use
14083 switch_to_inferior_no_thread to switch the inferior too.
14084 * progspace.c (program_space::~program_space): Call
14085 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14086 (program_space::free_all_objfiles): Don't call clear_symtab_users
14087 here.
14088 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14089
65c574f6
PA
140902020-01-10 Pedro Alves <palves@redhat.com>
14091
14092 * NEWS: Mention multi-target debugging, "info connections", and
14093 "add-inferior -no-connection".
14094
2f4fcf00
PA
140952020-01-10 Pedro Alves <palves@redhat.com>
14096
14097 * infrun.c: Include "target-connection.h".
14098 (check_multi_target_resumption): New.
14099 (proceed): Call it.
14100 * target-connection.c (make_target_connection_string): Make
14101 extern.
14102 * target-connection.h (make_target_connection_string): Declare.
14103
121b3efd
PA
141042020-01-10 Pedro Alves <palves@redhat.com>
14105
14106 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14107 * inferior.c (uiout_field_connection): New function.
14108 (print_inferior): Add new "connection-id" column.
14109 (add_inferior_command): Show connection number/string of added
14110 inferior.
14111 * process-stratum-target.h
14112 (process_stratum_target::connection_string): New virtual method.
14113 (process_stratum_target::connection_number): New field.
14114 * remote.c (remote_target::connection_string): New override.
14115 * target-connection.c: New file.
14116 * target-connection.h: New file.
14117 * target.c (decref_target): Remove process_stratum targets from
14118 the connection list.
14119 (target_stack::push): Add process_stratum targets to the
14120 connection list.
14121
4f837581
PA
141222020-01-10 Pedro Alves <palves@redhat.com>
14123
14124 Revert:
14125 2016-04-12 Pedro Alves <palves@redhat.com>
14126 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14127 Remove references to name.
14128 * serial.h (struct serial) <name>: Delete.
14129
f4ec508e
PA
141302020-01-10 Pedro Alves <palves@redhat.com>
14131
14132 * gdbarch-selftests.c (register_to_value_test): Remove "target
14133 already pushed" check.
14134
5b6d1e4f
PA
141352020-01-10 Pedro Alves <palves@redhat.com>
14136 John Baldwin <jhb@FreeBSD.org>
14137
14138 * aarch64-linux-nat.c
14139 (aarch64_linux_nat_target::thread_architecture): Adjust.
14140 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14141 (task_command_1): Likewise.
14142 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14143 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14144 (aix_thread_target::store_registers)
14145 (aix_thread_target::thread_alive): Adjust.
14146 * amd64-fbsd-tdep.c: Include "inferior.h".
14147 (amd64fbsd_get_thread_local_address): Pass down target.
14148 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14149 thread's gdbarch instead of target_gdbarch.
14150 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14151 get_last_target_status.
14152 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14153 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14154 inferiors.
14155 (update_inserted_breakpoint_locations): Skip if inferiors with no
14156 execution.
14157 (update_global_location_list): When handling moribund locations,
14158 find representative inferior for location's pspace, and use thread
14159 count of its process_stratum target.
14160 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14161 * bsd-uthread.c (bsd_uthread_target::wait): Use
14162 as_process_stratum_target and adjust thread_change_ptid and
14163 add_thread calls.
14164 (bsd_uthread_target::update_thread_list): Use
14165 as_process_stratum_target and adjust find_thread_ptid,
14166 thread_change_ptid and add_thread calls.
14167 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14168 find_thread_ptid call.
14169 * corelow.c (add_to_thread_list): Adjust add_thread call.
14170 (core_target_open): Adjust add_thread_silent and thread_count
14171 calls.
14172 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14173 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14174 * event-top.c (async_disconnect): Pop targets from all inferiors.
14175 * exec.c (add_target_sections): Push exec target on all inferiors
14176 sharing the program space.
14177 (remove_target_sections): Remove the exec target from all
14178 inferiors sharing the program space.
14179 (exec_on_vfork): New.
14180 * exec.h (exec_on_vfork): Declare.
14181 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14182 Pass it down.
14183 (fbsd_nat_target::update_thread_list): Adjust.
14184 (fbsd_nat_target::resume): Adjust.
14185 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14186 down.
14187 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14188 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14189 get_thread_arch_regcache call.
14190 * fork-child.c (gdb_startup_inferior): Pass target down to
14191 startup_inferior and set_executing.
14192 * gdbthread.h (struct process_stratum_target): Forward declare.
14193 (add_thread, add_thread_silent, add_thread_with_info)
14194 (in_thread_list): Add process_stratum_target parameter.
14195 (find_thread_ptid(inferior*, ptid_t)): New overload.
14196 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14197 parameter.
14198 (all_threads()): Delete overload.
14199 (all_threads, all_non_exited_threads): Add process_stratum_target
14200 parameter.
14201 (all_threads_safe): Use brace initialization.
14202 (thread_count): Add process_stratum_target parameter.
14203 (set_resumed, set_running, set_stop_requested, set_executing)
14204 (threads_are_executing, finish_thread_state): Add
14205 process_stratum_target parameter.
14206 (switch_to_thread): Use is_current_thread.
14207 * i386-fbsd-tdep.c: Include "inferior.h".
14208 (i386fbsd_get_thread_local_address): Pass down target.
14209 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14210 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14211 have_inferiors check.
14212 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14213 (inf_ptrace_target::attach): Adjust.
14214 * infcall.c (run_inferior_call): Adjust.
14215 * infcmd.c (run_command_1): Pass target to
14216 scoped_finish_thread_state.
14217 (proceed_thread_callback): Skip inferiors with no execution.
14218 (continue_command): Rename 'all_threads' local to avoid hiding
14219 'all_threads' function. Adjust get_last_target_status call.
14220 (prepare_one_step): Adjust set_running call.
14221 (signal_command): Use user_visible_resume_target. Compare thread
14222 pointers instead of inferior_ptid.
14223 (info_program_command): Adjust to pass down target.
14224 (attach_command): Mark target's 'thread_executing' flag.
14225 (stop_current_target_threads_ns): New, factored out from ...
14226 (interrupt_target_1): ... this. Switch inferior before making
14227 target calls.
14228 * inferior-iter.h
14229 (struct all_inferiors_iterator, struct all_inferiors_range)
14230 (struct all_inferiors_safe_range)
14231 (struct all_non_exited_inferiors_range): Filter on
14232 process_stratum_target too. Remove explicit.
14233 * inferior.c (inferior::inferior): Push dummy target on target
14234 stack.
14235 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14236 Add process_stratum_target parameter, and pass it down.
14237 (have_live_inferiors): Adjust.
14238 (switch_to_inferior_and_push_target): New.
14239 (add_inferior_command, clone_inferior_command): Handle
14240 "-no-connection" parameter. Use
14241 switch_to_inferior_and_push_target.
14242 (_initialize_inferior): Mention "-no-connection" option in
14243 the help of "add-inferior" and "clone-inferior" commands.
14244 * inferior.h: Include "process-stratum-target.h".
14245 (interrupt_target_1): Use bool.
14246 (struct inferior) <push_target, unpush_target, target_is_pushed,
14247 find_target_beneath, top_target, process_target, target_at,
14248 m_stack>: New.
14249 (discard_all_inferiors): Delete.
14250 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14251 (all_inferiors, all_non_exited_inferiors): Add
14252 process_stratum_target parameter.
14253 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14254 (target_last_proc_target): New global.
14255 (follow_fork_inferior): Push target on new inferior. Pass target
14256 to add_thread_silent. Call exec_on_vfork. Handle target's
14257 reference count.
14258 (follow_fork): Adjust get_last_target_status call. Also consider
14259 target.
14260 (follow_exec): Push target on new inferior.
14261 (struct execution_control_state) <target>: New field.
14262 (user_visible_resume_target): New.
14263 (do_target_resume): Call target_async.
14264 (resume_1): Set target's threads_executing flag. Consider resume
14265 target.
14266 (commit_resume_all_targets): New.
14267 (proceed): Also consider resume target. Skip threads of inferiors
14268 with no execution. Commit resumtion in all targets.
14269 (start_remote): Pass current inferior to wait_for_inferior.
14270 (infrun_thread_stop_requested): Consider target as well. Pass
14271 thread_info pointer to clear_inline_frame_state instead of ptid.
14272 (infrun_thread_thread_exit): Consider target as well.
14273 (random_pending_event_thread): New inferior parameter. Use it.
14274 (do_target_wait): Rename to ...
14275 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14276 down.
14277 (threads_are_resumed_pending_p, do_target_wait): New.
14278 (prepare_for_detach): Adjust calls.
14279 (wait_for_inferior): New inferior parameter. Handle it. Use
14280 do_target_wait_1 instead of do_target_wait.
14281 (fetch_inferior_event): Adjust. Switch to representative
14282 inferior. Pass target down.
14283 (set_last_target_status): Add process_stratum_target parameter.
14284 Save target in global.
14285 (get_last_target_status): Add process_stratum_target parameter and
14286 handle it.
14287 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14288 (context_switch): Check inferior_ptid == null_ptid before calling
14289 inferior_thread().
14290 (get_inferior_stop_soon): Pass down target.
14291 (wait_one): Rename to ...
14292 (poll_one_curr_target): ... this.
14293 (struct wait_one_event): New.
14294 (wait_one): New.
14295 (stop_all_threads): Adjust.
14296 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14297 event's target.
14298 (switch_back_to_stepped_thread): Also consider target.
14299 (print_stop_event): Update.
14300 (normal_stop): Update. Also consider the resume target.
14301 * infrun.h (wait_for_inferior): Remove declaration.
14302 (user_visible_resume_target): New declaration.
14303 (get_last_target_status, set_last_target_status): New
14304 process_stratum_target parameter.
14305 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14306 process_stratum_target parameter, and use it.
14307 (clear_inline_frame_state (thread_info*)): New.
14308 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14309 process_stratum_target parameter.
14310 (clear_inline_frame_state (thread_info*)): Declare.
14311 * linux-fork.c (delete_checkpoint_command): Pass target down to
14312 find_thread_ptid.
14313 (checkpoint_command): Adjust.
14314 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14315 instead of just tweaking inferior_ptid.
14316 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14317 (exit_lwp): Pass target down to find_thread_ptid.
14318 (attach_proc_task_lwp_callback): Pass target down to
14319 add_thread/set_running/set_executing.
14320 (linux_nat_target::attach): Pass target down to
14321 thread_change_ptid.
14322 (get_detach_signal): Pass target down to find_thread_ptid.
14323 Consider last target status's target.
14324 (linux_resume_one_lwp_throw, resume_lwp)
14325 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14326 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14327 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14328 (linux_nat_target::async_wait_fd): New.
14329 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14330 target down.
14331 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14332 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14333 * linux-thread-db.c (struct thread_db_info::process_target): New
14334 field.
14335 (add_thread_db_info): Save target.
14336 (get_thread_db_info): New process_stratum_target parameter. Also
14337 match target.
14338 (delete_thread_db_info): New process_stratum_target parameter.
14339 Also match target.
14340 (thread_from_lwp): Adjust to pass down target.
14341 (thread_db_notice_clone): Pass down target.
14342 (check_thread_db_callback): Pass down target.
14343 (try_thread_db_load_1): Always push the thread_db target.
14344 (try_thread_db_load, record_thread): Pass target down.
14345 (thread_db_target::detach): Pass target down. Always unpush the
14346 thread_db target.
14347 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14348 target down. Always unpush the thread_db target.
14349 (find_new_threads_callback, thread_db_find_new_threads_2)
14350 (thread_db_target::update_thread_list): Pass target down.
14351 (thread_db_target::pid_to_str): Pass current inferior down.
14352 (thread_db_target::get_thread_local_address): Pass target down.
14353 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14354 target down.
14355 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14356 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14357 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14358 (procfs_init_inferior): Rename to ...
14359 (procfs_target::procfs_init_inferior): ... this and adjust.
14360 (procfs_target::create_inferior, procfs_notice_thread)
14361 (procfs_do_thread_registers): Adjust.
14362 * ppc-fbsd-tdep.c: Include "inferior.h".
14363 (ppcfbsd_get_thread_local_address): Pass down target.
14364 * proc-service.c (ps_xfer_memory): Switch current inferior and
14365 program space as well.
14366 (get_ps_regcache): Pass target down.
14367 * process-stratum-target.c
14368 (process_stratum_target::thread_address_space)
14369 (process_stratum_target::thread_architecture): Pass target down.
14370 * process-stratum-target.h
14371 (process_stratum_target::threads_executing): New field.
14372 (as_process_stratum_target): New.
14373 * ravenscar-thread.c
14374 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14375 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14376 down.
14377 * record-btrace.c (record_btrace_target::info_record): Adjust.
14378 (record_btrace_target::record_method)
14379 (record_btrace_target::record_is_replaying)
14380 (record_btrace_target::fetch_registers)
14381 (get_thread_current_frame_id, record_btrace_target::resume)
14382 (record_btrace_target::wait, record_btrace_target::stop): Pass
14383 target down.
14384 * record-full.c (record_full_wait_1): Switch to event thread.
14385 Pass target down.
14386 * regcache.c (regcache::regcache)
14387 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14388 process_stratum_target parameter and handle it.
14389 (current_thread_target): New global.
14390 (get_thread_regcache): Add process_stratum_target parameter and
14391 handle it. Switch inferior before calling target method.
14392 (get_thread_regcache): Pass target down.
14393 (get_thread_regcache_for_ptid): Pass target down.
14394 (registers_changed_ptid): Add process_stratum_target parameter and
14395 handle it.
14396 (registers_changed_thread, registers_changed): Pass target down.
14397 (test_get_thread_arch_aspace_regcache): New.
14398 (current_regcache_test): Define a couple local test_target_ops
14399 instances and use them for testing.
14400 (readwrite_regcache): Pass process_stratum_target parameter.
14401 (cooked_read_test, cooked_write_test): Pass mock_target down.
14402 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14403 (get_thread_arch_aspace_regcache): Add process_stratum_target
14404 parameter.
14405 (regcache::target): New method.
14406 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14407 (regcache::registers_changed_ptid): Add process_stratum_target
14408 parameter.
14409 (regcache::m_target): New field.
14410 (registers_changed_ptid): Add process_stratum_target parameter.
14411 * remote.c (remote_state::supports_vCont_probed): New field.
14412 (remote_target::async_wait_fd): New method.
14413 (remote_unpush_and_throw): Add remote_target parameter.
14414 (get_current_remote_target): Adjust.
14415 (remote_target::remote_add_inferior): Push target.
14416 (remote_target::remote_add_thread)
14417 (remote_target::remote_notice_new_inferior)
14418 (get_remote_thread_info): Pass target down.
14419 (remote_target::update_thread_list): Skip threads of inferiors
14420 bound to other targets. (remote_target::close): Don't discard
14421 inferiors. (remote_target::add_current_inferior_and_thread)
14422 (remote_target::process_initial_stop_replies)
14423 (remote_target::start_remote)
14424 (remote_target::remote_serial_quit_handler): Pass down target.
14425 (remote_target::remote_unpush_target): New remote_target
14426 parameter. Unpush the target from all inferiors.
14427 (remote_target::remote_unpush_and_throw): New remote_target
14428 parameter. Pass it down.
14429 (remote_target::open_1): Check whether the current inferior has
14430 execution instead of checking whether any inferior is live. Pass
14431 target down.
14432 (remote_target::remote_detach_1): Pass down target. Use
14433 remote_unpush_target.
14434 (extended_remote_target::attach): Pass down target.
14435 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14436 (remote_target::append_resumption): Pass down target.
14437 (remote_target::append_pending_thread_resumptions)
14438 (remote_target::remote_resume_with_hc, remote_target::resume)
14439 (remote_target::commit_resume): Pass down target.
14440 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14441 (remote_target::interrupt_query)
14442 (remote_target::remove_new_fork_children)
14443 (remote_target::check_pending_events_prevent_wildcard_vcont)
14444 (remote_target::remote_parse_stop_reply)
14445 (remote_target::process_stop_reply): Pass down target.
14446 (first_remote_resumed_thread): New remote_target parameter. Pass
14447 it down.
14448 (remote_target::wait_as): Pass down target.
14449 (unpush_and_perror): New remote_target parameter. Pass it down.
14450 (remote_target::readchar, remote_target::remote_serial_write)
14451 (remote_target::getpkt_or_notif_sane_1)
14452 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14453 down target.
14454 (remote_target::mourn_inferior): Pass down target. Use
14455 remote_unpush_target.
14456 (remote_target::core_of_thread)
14457 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14458 (remote_target::pid_to_exec_file)
14459 (remote_target::thread_handle_to_thread_info): Pass down target.
14460 (remote_target::async_wait_fd): New.
14461 * riscv-fbsd-tdep.c: Include "inferior.h".
14462 (riscv_fbsd_get_thread_local_address): Pass down target.
14463 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14464 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14465 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14466 Adjust.
14467 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14468 * solib-svr4.c (enable_break): Pass down target.
14469 * spu-multiarch.c (parse_spufs_run): Pass down target.
14470 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14471 * target-delegates.c: Regenerate.
14472 * target.c (g_target_stack): Delete.
14473 (current_top_target): Return the current inferior's top target.
14474 (target_has_execution_1): Refer to the passed-in inferior's top
14475 target.
14476 (target_supports_terminal_ours): Check whether the initial
14477 inferior was already created.
14478 (decref_target): New.
14479 (target_stack::push): Incref/decref the target.
14480 (push_target, push_target, unpush_target): Adjust.
14481 (target_stack::unpush): Defref target.
14482 (target_is_pushed): Return bool. Adjust to refer to the current
14483 inferior's target stack.
14484 (dispose_inferior): Delete, and inline parts ...
14485 (target_preopen): ... here. Only dispose of the current inferior.
14486 (target_detach): Hold strong target reference while detaching.
14487 Pass target down.
14488 (target_thread_name): Add assertion.
14489 (target_resume): Pass down target.
14490 (target_ops::beneath, find_target_at): Adjust to refer to the
14491 current inferior's target stack.
14492 (get_dummy_target): New.
14493 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14494 has a thread running.
14495 (initialize_targets): Rename to ...
14496 (_initialize_target): ... this.
14497 * target.h: Include "gdbsupport/refcounted-object.h".
14498 (struct target_ops): Inherit refcounted_object.
14499 (target_ops::shortname, target_ops::longname): Make const.
14500 (target_ops::async_wait_fd): New method.
14501 (decref_target): Declare.
14502 (struct target_ops_ref_policy): New.
14503 (target_ops_ref): New typedef.
14504 (get_dummy_target): Declare function.
14505 (target_is_pushed): Return bool.
14506 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14507 (all_matching_threads_iterator::all_matching_threads_iterator):
14508 Handle filter target.
14509 * thread-iter.h (struct all_matching_threads_iterator, struct
14510 all_matching_threads_range, class all_non_exited_threads_range):
14511 Filter by target too. Remove explicit.
14512 * thread.c (threads_executing): Delete.
14513 (inferior_thread): Pass down current inferior.
14514 (clear_thread_inferior_resources): Pass down thread pointer
14515 instead of ptid_t.
14516 (add_thread_silent, add_thread_with_info, add_thread): Add
14517 process_stratum_target parameter. Use it for thread and inferior
14518 searches.
14519 (is_current_thread): New.
14520 (thread_info::deletable): Use it.
14521 (find_thread_ptid, thread_count, in_thread_list)
14522 (thread_change_ptid, set_resumed, set_running): New
14523 process_stratum_target parameter. Pass it down.
14524 (set_executing): New process_stratum_target parameter. Pass it
14525 down. Adjust reference to 'threads_executing'.
14526 (threads_are_executing): New process_stratum_target parameter.
14527 Adjust reference to 'threads_executing'.
14528 (set_stop_requested, finish_thread_state): New
14529 process_stratum_target parameter. Pass it down.
14530 (switch_to_thread): Also match inferior.
14531 (switch_to_thread): New process_stratum_target parameter. Pass it
14532 down.
14533 (update_threads_executing): Reimplement.
14534 * top.c (quit_force): Pop targets from all inferior.
14535 (gdb_init): Don't call initialize_targets.
14536 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14537 Declare.
14538 (windows_add_thread, windows_delete_thread): Adjust.
14539 (get_windows_debug_event): Rename to ...
14540 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14541 * tracefile-tfile.c (tfile_target_open): Pass down target.
14542 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14543 Forward declare.
14544 (switch_to_thread): Add process_stratum_target parameter.
14545 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14546 parameter. Use it.
14547 (mi_on_resume): Pass target down.
14548 * nat/fork-inferior.c (startup_inferior): Add
14549 process_stratum_target parameter. Pass it down.
14550 * nat/fork-inferior.h (startup_inferior): Add
14551 process_stratum_target parameter.
14552 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14553
75c6c844
PA
145542020-01-10 Pedro Alves <palves@redhat.com>
14555
14556 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14557 directly. Instead find the first thread in the thread list and
14558 use switch_to_thread.
14559
78f2c40a
PA
145602020-01-10 Pedro Alves <palves@redhat.com>
14561
14562 * remote.c (remote_target::remote_add_inferior): Don't bind a
14563 process to the current inferior if the current inferior is already
14564 bound to a process.
14565
e7af6c70
TBA
145662020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14567 Pedro Alves <palves@redhat.com>
14568
14569 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14570 If no process is specified, return null_ptid instead of
14571 inferior_ptid.
14572 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14573 TARGET_WAITKIND_SIGNALLED with no pid.
14574
31ba933e
PA
145752020-01-10 Pedro Alves <palves@redhat.com>
14576
14577 * remote.c (first_remote_resumed_thread): New.
14578 (remote_target::wait_as): Use it as default event_ptid instead of
14579 inferior_ptid.
14580
735fc2ca
PA
145812020-01-10 Pedro Alves <palves@redhat.com>
14582
14583 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14584
c17e02e1
PA
145852020-01-10 Pedro Alves <palves@redhat.com>
14586
14587 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14588 not -1.
14589
ab1ddbcf
PA
145902020-01-10 Pedro Alves <palves@redhat.com>
14591
14592 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14593 ptid to get_last_target_status.
14594 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14595 ptid to get_last_target_status.
14596 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14597 get_last_target_status.
14598 (info_program_command): Don't pass a target_waitstatus to
14599 get_last_target_status.
14600 * infrun.c (init_wait_for_inferior): Use
14601 nullify_last_target_wait_ptid.
14602 (get_last_target_status): Handle nullptr arguments.
14603 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14604 (print_stop_event): Don't pass a ptid to get_last_target_status.
14605 (normal_stop): Don't pass a ptid to get_last_target_status.
14606 * infrun.h (get_last_target_status, set_last_target_status): Move
14607 comments here and update.
14608 (nullify_last_target_wait_ptid): Declare.
14609 * linux-fork.c (fork_load_infrun_state): Remove local extern
14610 declaration of nullify_last_target_wait_ptid.
14611 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14612 to get_last_target_status.
14613
f3f8ece4
PA
146142020-01-10 Pedro Alves <palves@redhat.com>
14615
14616 * gdbthread.h (scoped_restore_current_thread)
14617 <dont_restore, restore, m_dont_restore>: Declare.
14618 * thread.c (thread_alive): Add assertion. Return bool.
14619 (switch_to_thread_if_alive): New.
14620 (prune_threads): Switch inferior/thread.
14621 (print_thread_info_1): Switch thread before calling target methods.
14622 (scoped_restore_current_thread::restore): New, factored out from
14623 ...
14624 (scoped_restore_current_thread::~scoped_restore_current_thread):
14625 ... this.
14626 (scoped_restore_current_thread::scoped_restore_current_thread):
14627 Add assertion.
14628 (thread_apply_all_command, thread_select): Use
14629 switch_to_thread_if_alive.
14630 * infrun.c (proceed, restart_threads, handle_signal_stop)
14631 (switch_back_to_stepped_thread): Switch current thread before
14632 calling target methods.
14633
db2d40f7
PA
146342020-01-10 Pedro Alves <palves@redhat.com>
14635
14636 * inferior.c (switch_to_inferior_no_thread): New function,
14637 factored out from ...
14638 (inferior_command): ... here.
14639 * inferior.h (switch_to_inferior_no_thread): Declare.
14640 * mi/mi-main.c (run_one_inferior): Use
14641 switch_to_inferior_no_thread.
14642
bd420a2d
PA
146432020-01-10 Pedro Alves <palves@redhat.com>
14644
14645 * infcmd.c (kill_command): Remove dead code.
14646
ddf5db90
PA
146472020-01-10 Pedro Alves <palves@redhat.com>
14648
14649 * remote.c (remote_target::mourn_inferior): No longer check
14650 whether the target is running.
14651
5018ce90
PA
146522020-01-10 Pedro Alves <palves@redhat.com>
14653
14654 * corelow.c (core_target::has_execution): Change parameter type to
14655 inferior pointer.
14656 * inferior.c (number_of_live_inferiors): Use
14657 inferior::has_execution instead of target_has_execution_1.
14658 * inferior.h (inferior::has_execution): New.
14659 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14660 inferior::has_execution instead of target_has_execution_1.
14661 * process-stratum-target.c
14662 (process_stratum_target::has_execution): Change parameter type to
14663 inferior pointer. Check the inferior's PID instead of
14664 inferior_ptid.
14665 * process-stratum-target.h
14666 (process_stratum_target::has_execution): Change parameter type to
14667 inferior pointer.
14668 * record-full.c (record_full_core_target::has_execution): Change
14669 parameter type to inferior pointer.
14670 * target.c (target_has_execution_1): Change parameter type to
14671 inferior pointer.
14672 (target_has_execution_current): Adjust.
14673 * target.h (target_ops::has_execution): Change parameter type to
14674 inferior pointer.
14675 (target_has_execution_1): Change parameter type to inferior
14676 pointer. Change return type to bool.
14677 * tracefile.h (tracefile_target::has_execution): Change parameter
14678 type to inferior pointer.
14679
74375d18
PA
146802020-01-10 Pedro Alves <palves@redhat.com>
14681
14682 * exceptions.c (print_flush): Remove current_top_target() check.
14683
acdf84a6
PA
146842020-01-10 Pedro Alves <palves@redhat.com>
14685
14686 * remote.c (show_remote_exec_file): Show the current inferior's
14687 exec-file instead of the command variable's value.
14688
ec506636
PA
146892020-01-10 Pedro Alves <palves@redhat.com>
14690
14691 * record-full.c (record_full_resume_ptid): New global.
14692 (record_full_target::resume): Set it.
14693 (record_full_wait_1): Use record_full_resume_ptid instead of
14694 inferior_ptid.
14695
873657b9
PA
146962020-01-10 Pedro Alves <palves@redhat.com>
14697
14698 * gdbthread.h (scoped_restore_current_thread)
14699 <dont_restore, restore, m_dont_restore>: Declare.
14700 * thread.c (thread_alive): Add assertion. Return bool.
14701 (switch_to_thread_if_alive): New.
14702 (prune_threads): Switch inferior/thread.
14703 (print_thread_info_1): Switch thread before calling target methods.
14704 (scoped_restore_current_thread::restore): New, factored out from
14705 ...
14706 (scoped_restore_current_thread::~scoped_restore_current_thread):
14707 ... this.
14708 (scoped_restore_current_thread::scoped_restore_current_thread):
14709 Add assertion.
14710 (thread_apply_all_command, thread_select): Use
14711 switch_to_thread_if_alive.
14712
7f0ae84c
GB
147132020-01-10 George Barrett <bob@bob131.so>
14714
14715 * stap-probe.c (stap_modify_semaphore): Don't check for null
14716 semaphores.
14717 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14718 for null semaphores.
14719
f5a7c406
AB
147202020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14721
14722 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14723 all source windows, and maintain horizontal scroll status while
14724 doing so.
14725
9ae6bf64
TT
147262020-01-09 Tom Tromey <tom@tromey.com>
14727
14728 PR tui/18932:
14729 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14730 update_source_window, not print_source_lines.
14731
b2efe70c
AB
147322020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14733
14734 * tui/tui.c (tui_enable): Register tui hooks after calling
14735 tui_display_main.
14736
5f23a082
CB
147372020-01-09 Christian Biesinger <cbiesinger@google.com>
14738
14739 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14740
3061113b
SM
147412020-01-08 Simon Marchi <simon.marchi@efficios.com>
14742
14743 * thread.c (print_thread_info_1): Fix indentation.
14744
57d75002
CB
147452020-01-09 Christian Biesinger <cbiesinger@google.com>
14746
14747 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14748 unique_xmalloc_ptr outside the if to always free the demangled name.
14749
6a053cb1
TT
147502020-01-08 Tom Tromey <tromey@adacore.com>
14751
14752 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14753 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14754 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14755 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14756 Remove.
14757 (section_offsets): New typedef.
14758 * symtab.c (fixup_section, get_msymbol_address): Update.
14759 * symmisc.c (dump_msymbols): Update.
14760 * symfile.h (relative_addr_info_to_section_offsets)
14761 (symfile_map_offsets_to_segments): Update.
14762 * symfile.c (build_section_addr_info_from_objfile)
14763 (init_objfile_sect_indices): Update.
14764 (struct place_section_arg): Change type of "offsets".
14765 (place_section): Update.
14766 (relative_addr_info_to_section_offsets): Change type of
14767 "section_offsets". Remove "num_sections" parameter.
14768 (default_symfile_offsets, syms_from_objfile_1)
14769 (set_objfile_default_section_offset): Update.
14770 (reread_symbols): No need to preserve section offsets by hand.
14771 (symfile_map_offsets_to_segments): Change type of "offsets".
14772 * stap-probe.c (relocate_address): Update.
14773 * stabsread.h (process_one_symbol): Update.
14774 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14775 (solib_target_relocate_section_addresses): Update.
14776 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14777 Update.
14778 * solib-frv.c (frv_relocate_main_executable): Update.
14779 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14780 * solib-aix.c (solib_aix_get_section_offsets): Change return
14781 type.
14782 (solib_aix_solib_create_inferior_hook): Update.
14783 * remote.c (remote_target::get_offsets): Update.
14784 * psymtab.c (find_pc_sect_psymtab): Update.
14785 * psympriv.h (struct partial_symbol) <address, text_low,
14786 text_high>: Update.
14787 * objfiles.h (obj_section_offset): Update.
14788 (struct objfile) <section_offsets>: Change type.
14789 <num_sections>: Remove.
14790 (objfile_relocate): Update.
14791 * objfiles.c (entry_point_address_query): Update
14792 (relocate_one_symbol): Change type of "section_offsets".
14793 (objfile_relocate1, objfile_relocate1): Change type of
14794 "new_offsets".
14795 (objfile_rebase1): Update.
14796 * mipsread.c (mipscoff_symfile_read): Update.
14797 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14798 parameter.
14799 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14800 (parse_external, psymtab_to_symtab_1): Update.
14801 * machoread.c (macho_symfile_offsets): Update.
14802 * ia64-tdep.c (ia64_find_unwind_table): Update.
14803 * hppa-tdep.c (read_unwind_info): Update.
14804 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14805 * dwarf2read.c (create_addrmap_from_index)
14806 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14807 (process_psymtab_comp_unit_reader, add_partial_symbol)
14808 (add_partial_subprogram, process_full_comp_unit)
14809 (read_file_scope, read_func_scope, read_lexical_block_scope)
14810 (read_call_site_scope, dwarf2_rnglists_process)
14811 (dwarf2_ranges_process, dwarf2_ranges_read)
14812 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14813 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14814 Update.
14815 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14816 Update.
14817 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14818 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14819 (process_one_symbol): Change type of "section_offsets".
14820 * ctfread.c (get_objfile_text_range): Update.
14821 * coffread.c (coff_symtab_read, enter_linenos)
14822 (process_coff_symbol): Update.
14823 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14824 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14825
456e800a
TT
148262020-01-08 Tom Tromey <tromey@adacore.com>
14827
14828 * dwarf2read.c (parse_macro_definition): Use std::string.
14829 (parse_macro_definition): Likewise.
14830
6dfa2fc2
TT
148312020-01-08 Tom Tromey <tromey@adacore.com>
14832
14833 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14834 (ATTR_ALLOC_CHUNK): Remove.
14835
421d1616
TT
148362020-01-08 Tom Tromey <tromey@adacore.com>
14837
14838 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14839
43816ebc
TT
148402020-01-08 Tom Tromey <tromey@adacore.com>
14841
14842 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14843 (dwarf2_compute_name, open_dwo_file): Likewise.
14844 (process_enumeration_scope): Use std::vector.
14845 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14846 (partial_die_info::fixup, dwarf2_start_subfile)
14847 (guess_full_die_structure_name, dwarf2_name): Likewise.
14848 (determine_prefix): Update.
14849 (guess_full_die_structure_name): Make return type const.
14850 (partial_die_full_name): Return unique_xmalloc_ptr.
14851 (DW_FIELD_ALLOC_CHUNK): Remove.
14852
4212d509
TT
148532020-01-07 Tom Tromey <tromey@adacore.com>
14854
14855 PR build/24937:
14856 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14857
06a6207a
JT
148582020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14859
14860 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14861
153d79c4
AB
148622020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14863
14864 * stack.c (print_frame_info): Move disassemble_next_line code
14865 inside source_print block.
14866
66182876
EZ
148672020-01-06 Eli Zaretskii <eliz@gnu.org>
14868
14869 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14870 gdb/signals.h, as we are now using native signal symbols.
14871
cbfa8581
SV
148722020-01-06 Shahab Vahedi <shahab@synopsys.com>
14873
14874 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14875 overflow by an early check of content vs threshold.
aac66a4c 14876 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14877 Likewise.
14878
3f602821
EZ
148792020-01-06 Eli Zaretskii <eliz@gnu.org>
14880
14881 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14882
a08c904d
JT
148832020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14884
14885 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14886 export table if no section contains it's RVA.
14887
89a65580
EZ
148882020-01-06 Eli Zaretskii <eliz@gnu.org>
14889
14890 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14891
8b7fcda2
HD
148922020-01-06 Hannes Domani <ssbssa@yahoo.de>
14893
14894 * source.c (print_source_lines_base): Set last_line_listed.
14895
a61b4f69
SV
148962020-01-06 Shahab Vahedi <shahab@synopsys.com>
14897
14898 * tui/tui-disasm.c: Remove trailing spaces.
14899
559e7e50
EZ
149002020-01-06 Eli Zaretskii <eliz@gnu.org>
14901 Pedro Alves <palves@redhat.com>
14902
14903 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14904 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14905 (windows_gdb_signal_to_target): New function, uses the above
14906 enumeration to convert GDB internal signal codes to equivalent
14907 Windows codes.
14908 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14909 * windows-nat.c: Include "gdb_wait.h".
14910 (get_windows_debug_event): Extract the fatal exception from the
14911 exit status and convert to the equivalent Posix signal number.
14912 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14913 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14914 * gdbsupport/gdb_wait.c: New file, implements
14915 windows_status_to_termsig.
14916 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14917 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14918
f2302a34
AB
149192020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14920
14921 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14922 show_layout.
14923
6a5206eb
LM
149242020-01-05 Luis Machado <luis.machado@linaro.org>
14925
14926 * aarch64-linux-nat.c
14927 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14928 and bfd_mach_aarch64.
14929
6ec1d75e
PW
149302020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14931
14932 * ui-file.c (stdio_file::can_emit_style_escape)
14933 (tee_file::can_emit_style_escape): Ensure style is used also on
14934 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14935 to gdb_stdout.
14936 * main.c (set_gdb_data_directory): Use file style to output the
14937 warning that the given pathname is not a directory.
14938 * top.c (show_history_filename, gdb_safe_append_history)
14939 (show_gdb_datadir): Use file style.
14940
44f81a76
HD
149412020-01-03 Hannes Domani <ssbssa@yahoo.de>
14942
14943 * solib-target.c (struct lm_info_target):
14944 Change offsets to be a unique_xmalloc_ptr.
14945 (solib_target_relocate_section_addresses): Update.
14946
25057eb0
HD
149472020-01-03 Hannes Domani <ssbssa@yahoo.de>
14948
14949 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14950
6e2118f5
BE
149512020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14952
14953 * MAINTAINERS (Write After Approval): Add myself.
14954
8133c7dc
LM
149552020-01-02 Luis Machado <luis.machado@linaro.org>
14956
14957 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14958 Cell BE architecture.
14959 * target.h (struct target_ops) <thread_architecture>: Likewise.
14960
48189bec
HD
149612020-01-01 Hannes Domani <ssbssa@yahoo.de>
14962
14963 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14964
ead1063b
HD
149652020-01-01 Hannes Domani <ssbssa@yahoo.de>
14966
14967 * MAINTAINERS (Write After Approval): Add myself.
14968
e5d78223
JB
149692020-01-01 Joel Brobecker <brobecker@adacore.com>
14970
14971 * gdbarch.sh: Update copyright year range of generated files.
14972
b811d2c2
JB
149732020-01-01 Joel Brobecker <brobecker@adacore.com>
14974
14975 Update copyright year range in all GDB files.
14976
5f4def5c
JB
149772020-01-01 Joel Brobecker <brobecker@adacore.com>
14978
14979 * copyright.py: Convert to Python 3.
14980
51fd4002
JB
149812020-01-01 Joel Brobecker <brobecker@adacore.com>
14982
14983 * copyright.py: Adapt after move of gnulib directory from gdb
14984 directory to toplevel directory.
14985
5fb651f2
JB
149862020-01-01 Joel Brobecker <brobecker@adacore.com>
14987
14988 * copyright.py (main): Exit if run from the wrong directory.
14989
5dd8bf88
JB
149902020-01-01 Joel Brobecker <brobecker@adacore.com>
14991
14992 * top.c (print_gdb_version): Change copyright year to 2020.
14993
9f71dacb 149942020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14995
9f71dacb 14996 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14997
9f71dacb 14998For older changes see ChangeLog-2019.
c906108c
SS
14999\f
15000Local Variables:
15001mode: change-log
15002left-margin: 8
15003fill-column: 74
15004version-control: never
57da7796 15005coding: utf-8
c906108c 15006End: